[Q] Find out if device run TWRP or CWM recovery from CODE? - Android Q&A, Help & Troubleshooting

Hi,
I've created a simple app flashing util.
But i need to figure out if the device is running TWRP recovery or CWM recovery.
I found out that devices with TWRP installed has a file in "/sdcard/TWRP/.version" but that file exists even if we later changed to CWM from TWRP.
Is there any build property or something to figure out what recovery is currently active on the device?

Related

how to install cwm recovery in recovery mode (currently twrp running)

hi all. this is my first post, had to make an account to seek help.
in short i rooted my LG G2 D800 at&t, and installed cloudyg2 3.3 on it and forgot to install kk bootloader,
i did make a nandroid backup , the rom didnt worked, i restored the backup and now it also gets stucked at boot screen.
i then tried to copy rom in the mobile using adb push and adb sideload but it doesnt works, now i want to install cwm recovery with a hope to get it fixed.
is there any way to install cwm recovery while in twrp recovery in recovery mode?
thanks in advance

twrp

guys, whats the last version of twrp and how can i install it? Do i need to root my phone or can i flash directly one custom rom after i install the twrp?
The twrp functions for rom flashing. There is no root required because it is a system before the actual Android system. You should read some articles about what twrp is and stuff.

[Q] Modifying the system partition

I accidentally modified the /system folder's permission using Root Browser.
Now the phone is bricked.
It's a mediatek device that made it much difficult to fix.
No backups, no custom recovery, and I can't find any similar roms either.
It still boots but direct to the stock recovery.
Is there anyway I could change the permission of the system partition when the phone is turned off or at recovery mode?
I tried adb but it needs the phone to be fully booted.
SP flashtool can detect the phone. I was thinking if it's possible to flash a script there.
Or make a flashable zip and use the stock recovery's "apply update from sdcard"
Few more details:
Mediatek 6575
Android 4.0.3
Can't find any roms or custom recovery for the device in the internet.

Correct Twrp recovery for Sgp611 MM

Hi, what is the correct version of Twrp recovery for 6.0.1 stock, since Nuts dualrecovery is not compatible? Thanks
https://eu.dl.twrp.me/scorpion_windy/
Please Help
So I am a total noob. Never rooted a device before. The only reason I'm doing it is cos my kid wants to do gps spoofing with pokemon go. I have already made a mistake as I have unlocked the bootloader without backing up the DRM keys. Now Im tyring to install twrp. On most tutorials it looks straight forward but on the TWRP official site it says....
The Xperia devices have a recovery-in-boot arrangement. This means that the recovery is booted using the regular kernel / boot image in the device. Team Win has worked with the FreeXperia device maintainers to come up with a way to extract the ramdisk from the FOTAKernel partition and use the ramdisk from that partition instead of the recovery that is included in the boot image of your device. This means that if you install current CM nightlies and flash TWRP to the FOTAKernel partition, you will be able to use TWRP instead of the CWM or CM recovery that normally comes in a CM boot image. Other boot images including stock kernels can be repacked to include this extraction utility to allow you to use TWRP from the FOTAKernel partition. This setup allows you to choose what recovery you want to have installed and allows you to update your recovery more easily. Unfortunately this setup requires that the boot image that you have installed include the ramdisk extraction utility. The source for this utility is here:
I really don't know what any of this means. Ive downloaded the utility but have no idea how to use it.
Oh and I also have a xperia z3 tablet sgp611.

Question How to install TWRP permanently for Redmi Note 10 (sunny)?

I am having a tough time installing TWRP on (sunny) as I am not used to A/B partitioned devices. The stock recovery is replaced every time once I boot back to system. I have been using fastboot to get the custom recovery. It would be helpful if someone could tell how to get it installed permanently as there is no recovery partition in A/B devices. There was no option for Recovery Ramdisk in TWRP.
Thank You
If you change the boot.img, the recovery is automatically changed. There is no other way.
The boot.img includes the recovery. This is the reason.
So is there no way to get recovery without altering the boot?
Once you install the ROM via TWRP, I believe you need to go to Advanced > Install Recovery Ramdisk > flash the TWRP image file from microSD.
I haven't gotten to test this myself since I am still waiting for the bootloader unlock, others can confirm if it is the case or if I said something false.
Alternatively, I think crDroid dev for this phone bundles it with TWRP... actually, I think dev dropped it in latest release.
syntheticdingo said:
Once you install the ROM via TWRP, I believe you need to go to Advanced > Install Recovery Ramdisk > flash the TWRP image file from microSD.
I haven't gotten to test this myself since I am still waiting for the bootloader unlock, others can confirm if it is the case or if I said something false.
Alternatively, I think crDroid dev for this phone bundles it with TWRP... actually, I think dev dropped it in latest release.
Click to expand...
Click to collapse
I am using an unofficial twrp and it is not having Install ramdisk option.
Unofficial Twrp 3.5.1 Sunny
1) Installing boot.img changes the recovery to the one it contains.
2) You can change the recovery by subsequently installing recovery on the ramdisk.
But whenever I flash the boot.img again, the recovery changes again.
Even version 3.5.1 of TWRP includes a ramdisk installation feature. Look for it in "Advanced".
StaryMuz said:
1) Installing boot.img changes the recovery to the one it contains.
2) You can change the recovery by subsequently installing recovery on the ramdisk.
But whenever I flash the boot.img again, the recovery changes again.
Even version 3.5.1 of TWRP includes a ramdisk installation feature. Look for it in "Advanced".
Click to expand...
Click to collapse
As I said before that option isn't available in the Advanced option despite me looking for it.
EDIT: I used a different recovery.img TWRP 3.5.2 for sunny, and it had the option. I am linking it here so you can use it.

Categories

Resources