summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2020-09-08 14:39:38 +0200
committerMartijn Coenen <maco@google.com>2020-09-08 14:23:31 +0000
commit27c52fcaa8f7c649be01763443df21f7dffeb028 (patch)
treeb00f38e062445fe8f17d42e1b9de95035120bb0f /tools/aapt2/java/JavaClassGenerator.cpp
parentc4f4369fe9e944e6d1ed1f8dcd3cd14d78a82941 (diff)
Don't kill for REQUEST_INSTALL_PACKAGES on default/error mode
transition. When handling unknown sources, PackageManager transitions from MODE_DEFAULT to MODE_ERRORED, causing us to kill the app before the user has even decided whether to allow external sources or not. Since MODE_DEFAULT and MODE_ERRORED are the same from a storage point of view, ignore transitions between the two. This required some AppOps changes to store the previous mode and pass it in. Bug: 162849988 Test: run Epic installer Change-Id: Ic866216f877e9b727fe70556f66dd998966fe0a2 Merged-In: Ic866216f877e9b727fe70556f66dd998966fe0a2
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions