[MOD] eRecovery for CM7/stock ...

Search This thread

Huexxx

Senior Member
Jul 21, 2009
1,966
5,059
46
Madrid
Redmi Note 10 Pro
Hi all!

Surfing a bit into XDA, I've created this mod in order to add to Froyo/GB/CM7 the way to access CWM on boot pressing any hardware keys.

Once installed, to access recovery you only have to repeatedly press any hard key; it works like eRecovery in Nova ROM.

In order to install/remove it, you only have to flash it via CWM, so you need CWM recovery installed at your OB.


V20B:

Installer: http://dl.dropbox.com/u/4629711/zeus/huexxx-eRecovery-V20B.zip
Remover: http://dl.dropbox.com/u/4629711/zeus/huexxx-eRecovery-remover-V20B.zip


V20N:

Installer: http://dl.dropbox.com/u/4629711/zeus/huexxx-eRecovery-V20N.zip
Remover: http://dl.dropbox.com/u/4629711/zeus/huexxx-eRecovery-remover-V20N.zip


CM7:

Installer: http://dl.dropbox.com/u/4629711/cm7/huexxx-eRecovery-CM7.zip
Remover: http://dl.dropbox.com/u/4629711/cm7/huexxx-eRecovery-remover-CM7.zip


Stock V10D:

Installer: http://dl.dropbox.com/u/4629711/cm7/huexxx-eRecovery-V10D.zip
Remover: http://dl.dropbox.com/u/4629711/cm7/huexxx-eRecovery-remover-V10D.zip


Stock V10E:

Installer: http://dl.dropbox.com/u/4629711/cm7/huexxx-eRecovery-V10E.zip
Remover: http://dl.dropbox.com/u/4629711/cm7/huexxx-eRecovery-remover-V10E.zip


PD: This stuff will probably work flawlessly in other stock rom versions, but to ensure that it will work, send me your /system/bin/pvrsrvinit file indicating your ROM version and I will create a specific .zip for this version. Thanks pbog1 for the file.


Credits go to knzo and D4rKn3sSyS.

If you find this useful, please thank it!

Regards.
 
Last edited:

Huexxx

Senior Member
Jul 21, 2009
1,966
5,059
46
Madrid
Redmi Note 10 Pro
Yeah, it's still at beta stage.

I though it would be a good point because is just before init.d starts.

I will find the first service and hijack it, but at least this mod can handle framework's loopboots.

Regards!
 

zogoibi

Senior Member
Aug 18, 2011
419
76
This is great news!! AAMOF, the no-hard-reboot is one of the things that prevents me from flashing these days. Last time I bicked the phone I lost one full day.

I'll install this as soon as it's improved.

Thank you Huexx!
 

knzo

Senior Member
Nov 24, 2010
1,992
3,899
Try to inject: /system/bin/pvrsrvinit.
It's the PowerVR SGX 540 driver and it's earlier in the boot.

Rename it to /system/bin/pvrsrvinit2, then create an empty bash file with that name and inject the command I used on my eRecovery and in the last line (after the keypress check) run /system/bin/pvrsrvinit2 or it won't boot.
 

Huexxx

Senior Member
Jul 21, 2009
1,966
5,059
46
Madrid
Redmi Note 10 Pro
Hi all.

Looking at init.rc and according with the suggested service by knzo, why you say that my inject point would be sooner?

sysinit is executed before ueventd, console, adbd, pvrsrvinit, etc... it's before ALL the services, and I haven't to modify it because it's a script by itself.

Regards.
 

knzo

Senior Member
Nov 24, 2010
1,992
3,899
sysinit is executed before ueventd, console, adbd, pvrsrvinit, etc... it's before ALL the services, and I haven't to modify it because it's a script by itself.

That doesn't even make sense.

You want to execute a sh without console running?
Or why can you see the first init.d in the adb logcat then?

Just because it comes in a previous line doesn't make it start sooner.
 
Last edited:

Huexxx

Senior Member
Jul 21, 2009
1,966
5,059
46
Madrid
Redmi Note 10 Pro
Well, if I've understood, the place at init.rc doesn't determines the run order, doesn't it?

Then how can you know which service will be launched the first?

If I hack pvrsrvinit, would it check for keystroke sooner?

Regards.
 

dxdiag32

Senior Member
Feb 21, 2011
902
350
Chongqing
it make nosense at all.
i don't know where i did wrong.
hijack pvrsrvinit,and create init.d folder ,write script to make original pvrsrvinit run...
 

Top Liked Posts