summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Rambo Wang <rambowang@google.com> 2022-05-06 00:53:34 +0000
committer Cherrypicker Worker <android-build-cherrypicker-worker@google.com> 2024-03-20 18:08:45 +0000
commitb092825f8de742c35006ef60fe483a0ef6d8a6d2 (patch)
tree7f8e7a476f3660a38dae59fca5f229830b19531d /libs/androidfw/AttributeResolution.cpp
parentdc57784603d6250a2d97b5e52d24c8483029a460 (diff)
CarrierAppUtils: uninstall prebuild carrier app at most once
Pixels (and other OEM products) have feature to integrate preloaded carrier apps (e.g. Tycho for Google Fi). The carrier app will be uninstalled/hidden firstly if it does not get the carrir privileges. When user insert SIM for the carrier, the carrier app will be shown again, saving the user effort/cost to download the carrier app from play store. The issue scenario here is that after user has upgraded the carrier app (e.g. through PlayStore) and then OTA upgrading a new android release which integrated a new verion of carrier app, the hiding logic is triggered again, causing the tycho apk upgrading to the new prebuild version but with the previous activation data cleared. The CL makes sure the uninstalling logic is only triggered at most once. This means, on OTA upgrading to newer carrier app, the newer carrier app does get installed but the hiding logic will not trigger and previous activation data is kept. Bug: 158028151 Test: atest CarrierAppUtilsTest Test: Regression test (go/hide_carrier_app_test_plan) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:38a4f7e32bb2ba608ceb2df0d33413bd4d060ed9) Merged-In: I59ef6170484e08b4558a8918d02bbb801005f175 Change-Id: I59ef6170484e08b4558a8918d02bbb801005f175
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions