Prevent stock OTA activities from running in CM

Change-Id: I3f586cd246fc351afb82c94f41329bf930f6f41a
This commit is contained in:
Ricardo Cerqueira 2013-08-27 22:15:26 +01:00
parent 4f4c30b7a4
commit ea14a88a2a
3 changed files with 22 additions and 0 deletions

View File

@ -112,6 +112,10 @@ PRODUCT_COPY_FILES += \
vendor/cm/prebuilt/common/bin/compcache:system/bin/compcache \
vendor/cm/prebuilt/common/bin/handle_compcache:system/bin/handle_compcache
# block stock OTAs
PRODUCT_COPY_FILES += \
vendor/cm/prebuilt/common/bin/otablock:system/bin/otablock
# Terminal Emulator
PRODUCT_COPY_FILES += \
vendor/cm/proprietary/Term.apk:system/app/Term.apk \

View File

@ -0,0 +1,9 @@
#!/system/bin/sh
## If these activities are installed, get rid of them. We don't want updates
## coming in from outside CM
exec 2>/dev/null
pm disable com.google.android.gsf/com.google.android.gsf.update.SystemUpdateActivity
pm disable com.google.android.gsf/com.google.android.gsf.update.SystemUpdateService

View File

@ -49,3 +49,12 @@ service sysinit /system/bin/sysinit
user root
oneshot
disabled
# Block stock OTA activities
service otablock /system/bin/otablock
user root
oneshot
disabled
on property:dev.bootcomplete=1
start otablock