summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorFelipe Leme <felipeal@google.com>2018-08-17 10:47:42 -0700
committerFelipe Leme <felipeal@google.com>2018-08-17 10:56:33 -0700
commit9648463dbc5a299265ca43afb9d89c12d3a2ad1a (patch)
tree3c4095d0129c2dcbc82e0b13300b4e41517cb7f1 /tools/aapt2/java/JavaClassGenerator.cpp
parent804574644849ef39d63d6515497469ee3b33b1d8 (diff)
Fixed autofill Shell cmds that set Global settings.
These commands used to set internal variables, which on Q moved to Settings, and changing these settings fail on on unroot devices: java.lang.SecurityException: Package android does not belong to 2000 at android.app.AppOpsManager.checkPackage(AppOpsManager.java:2394) at android.content.ContentProvider.getCallingPackage(ContentProvider.java:784) So, we have 2 solutions here: 1.Deprecate the commands in favor of the 'settings' command 2.Call the SettingsProvider as the system process (uid 1000) This CL takes the 2nd approach, as these commands (specially 'autofill set log_level') are widely spread and used by developers for debugging. Test: adb unroot && atest CtsAutoFillServiceTestCases Fixes: 112562057 Change-Id: I6256d5098fb8ed3353189a53ee5e85c34519bad4
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions