Prevent stock OTA activities from running in CM
Change-Id: I3f586cd246fc351afb82c94f41329bf930f6f41a
This commit is contained in:
parent
754bef5027
commit
a0919a9671
@ -108,6 +108,10 @@ PRODUCT_COPY_FILES += \
|
|||||||
vendor/cm/prebuilt/common/bin/compcache:system/bin/compcache \
|
vendor/cm/prebuilt/common/bin/compcache:system/bin/compcache \
|
||||||
vendor/cm/prebuilt/common/bin/handle_compcache:system/bin/handle_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
|
# Terminal Emulator
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
vendor/cm/proprietary/Term.apk:system/app/Term.apk \
|
vendor/cm/proprietary/Term.apk:system/app/Term.apk \
|
||||||
|
9
prebuilt/common/bin/otablock
Normal file
9
prebuilt/common/bin/otablock
Normal 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
|
@ -48,3 +48,12 @@ service sysinit /system/bin/sysinit
|
|||||||
user root
|
user root
|
||||||
oneshot
|
oneshot
|
||||||
disabled
|
disabled
|
||||||
|
|
||||||
|
# Block stock OTA activities
|
||||||
|
service otablock /system/bin/otablock
|
||||||
|
user root
|
||||||
|
oneshot
|
||||||
|
disabled
|
||||||
|
|
||||||
|
on property:dev.bootcomplete=1
|
||||||
|
start otablock
|
||||||
|
Loading…
Reference in New Issue
Block a user