OSDN Git Service

DevelopmentSettings: Add an opt-out for recovery updater
authorAdrian DC <radian.dc@gmail.com>
Tue, 10 Jun 2014 02:16:24 +0000 (21:16 -0500)
committerAdrian DC <radian.dc@gmail.com>
Thu, 15 Sep 2016 17:26:56 +0000 (10:26 -0700)
commit4a78446c3e9eab9c116e1523425d366f401ef13e
tree187ab5a0d790153e49f2b39843f0d9fe54f82f2b
parent8bac7b3f128db6df21acbc8b7668d240e9bc1802
DevelopmentSettings: Add an opt-out for recovery updater

 * Some devices should not have this option,
    for instance all Sony devices supported on CyanogenMod
    already include the ROM's recovery inside the ramdisk
    and provide their own init_sony boot selection

 * Makes sure a user did not enable the option
    on old installations by disabling it if needed

 * Disable the recovery updater through the new overlay

 * Prevent recovery updater related features to run, and
    pass an additional context argument from BootReceiver
    to initializeUpdateRecoveryOption to access resources

 * Similar to the original CM 11.0 commit by Dan Pasanen

Change-Id: I1963e27e59353e1a7e26a4edf905bee6c9da0571
res/values/config.xml
src/com/android/settings/DevelopmentSettings.java
src/com/android/settings/cyanogenmod/BootReceiver.java