Skip to content

Commit

Permalink
Use Package Manager to disable stock OTA
Browse files Browse the repository at this point in the history
This reverts commit ea14a88.

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

Change-Id: Ie3162ca4b18a7bc9c55613af39e88ea980407e5f

Conflicts:
	config/common.mk
  • Loading branch information
pawitp authored and aways committed Sep 1, 2013
1 parent 96e68d1 commit 0bbb514
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 23 deletions.
4 changes: 0 additions & 4 deletions config/common.mk
Expand Up @@ -125,10 +125,6 @@ PRODUCT_COPY_FILES += \
vendor/carbon/prebuilt/common/bin/99-backup.sh:system/addon.d/99-backup.sh \
vendor/carbon/prebuilt/common/etc/backup.conf:system/etc/backup.conf

# block stock OTAs
PRODUCT_COPY_FILES += \
vendor/carbon/prebuilt/common/bin/otablock:system/bin/otablock

# SELinux filesystem labels
PRODUCT_COPY_FILES += \
vendor/carbon/prebuilt/common/etc/init.d/50selinuxrelabel:system/etc/init.d/50selinuxrelabel
Expand Down
6 changes: 6 additions & 0 deletions overlay/common/frameworks/base/core/res/res/values/config.xml
Expand Up @@ -13,5 +13,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>

10 changes: 0 additions & 10 deletions prebuilt/common/bin/otablock

This file was deleted.

9 changes: 0 additions & 9 deletions prebuilt/common/etc/init.carbon.rc
Expand Up @@ -50,12 +50,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

0 comments on commit 0bbb514

Please sign in to comment.