diff options
author | Martijn Coenen <maco@google.com> | 2020-09-08 14:39:38 +0200 |
---|---|---|
committer | Martijn Coenen <maco@google.com> | 2020-09-08 16:21:51 +0200 |
commit | e9e278f67074892adf3a57bb314dfc362b486149 (patch) | |
tree | f3c53288df77c6de5a1fa6c6a312e45300e227a6 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | d5283affca31570b3adf1e87af42bab60d8ff5f1 (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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions