Use Package Manager to disable stock OTA

This reverts commit ea14a88a2a.

Using the Package Manager prevents any danling wakelock from
killed service/receiver.

Change-Id: Ie3162ca4b18a7bc9c55613af39e88ea980407e5f
This commit is contained in:
Pawit Pornkitprasan 2013-09-01 16:07:57 +07:00 committed by Ricardo Cerqueira
parent eb7754adb6
commit 8b9f177f00
4 changed files with 6 additions and 23 deletions

View File

@ -108,10 +108,6 @@ 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

@ -19,5 +19,11 @@
<bool name="config_cellBroadcastAppLinks">true</bool>
<!-- Disable stock OTA components if installed -->
<string-array name="config_disabledComponents" translatable="false">
<item>com.google.android.gsf/com.google.android.gsf.update.SystemUpdateActivity</item>
<item>com.google.android.gsf/com.google.android.gsf.update.SystemUpdateService</item>
<item>com.google.android.gsf/com.google.android.gsf.update.SystemUpdateService$Receiver</item>
</string-array>
</resources>

View File

@ -1,10 +0,0 @@
#!/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
pm disable com.google.android.gsf/com.google.android.gsf.update.SystemUpdateService\$Receiver

View File

@ -48,12 +48,3 @@ 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