system/corennnnn
Revisão | ff6444acf2f6be39db736cc3d9b1962cd0d39fbe (tree) |
---|---|
Hora | 2016-09-04 08:46:00 |
Autor | Brint E. Kriebel <bekit@cyng...> |
Commiter | Steve Kondik |
init: update recovery when enabled in settings
Update the recovery image only if the option is enabled
under Developer options
This reverts commit 231e0a9e6a1da6fa4a188840f68af649669e417f.
Change-Id: I928f7ee8bb3eaf5581bb8225661d253ecca0c4ef
Change CM recovery install script filename [2/2]
This is part 2/2 to maintain backwards compatibility with CWM's
verify_root_and_recovery() function. CWM checks if install-recovery.sh
exists and has an executable flag set, then offers to disable the script
for the user. CM now controls this with the persist.sys.recovery_update
property which is configurable via settings, so we don't need to
double-check this.
This changes the name of the recovery install script to
install-cm-recovery.sh.
Change-Id: I275dd358b46c626dfcb8fe02c583a308d5a89c56
init: Move install-recovery.sh back to the standard location
L moved the location of install-recovery.sh from /system/etc/ to
/system/bin. Since CWM recovery isn't looking for this location
anyway, let's return the file to this standard location. This allows
all other code in L to function properly.
Maintain the change to the init to allow flash_recovery to be disabled
in settings.
Change-Id: I8a85db8addeb75a2fd60d809c5ed4edc619ef7ed
@@ -642,3 +642,9 @@ on property:ro.debuggable=1 | ||
642 | 642 | service flash_recovery /system/bin/install-recovery.sh |
643 | 643 | class main |
644 | 644 | oneshot |
645 | + disabled | |
646 | + | |
647 | +# update recovery if enabled | |
648 | +on property:persist.sys.recovery_update=true | |
649 | + start flash_recovery | |
650 | + |