diff options
author | Eugene Susla <eugenesusla@google.com> | 2018-11-05 12:23:30 -0800 |
---|---|---|
committer | Eugene Susla <eugenesusla@google.com> | 2018-11-15 11:25:39 -0800 |
commit | e4ee2c21388fc04a4da16c87de7ffe9f001b2015 (patch) | |
tree | dbc8d456e82770e41b03c644c74926be7baf2b6a /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 27600ff5ddb3aff918013bf76e5f8d4130e11263 (diff) |
Flip appops corresponding to default-granted permissions
Not that we're starting to change appops' default values
for sms/calllog permissions, default grants by DefaultPermissionGrantPolicy
must take care to also flip the appops, otherwise permission grants don't
take the desired effect.
This also fixes the `appops get` shell command to reflect both uid and
package mode, consistent with how appops are checked
Bug: 117623587
Test: - enable kill switch for sms access restriction
- adb install -g $ANDROID_BUILD_TOP/out/target/product/sailfish/data/app/CellBroadcastReceiverTests/CellBroadcastReceiverTests.apk
- launch the app and press any button
- ensure no "Appop denial" warning in logcat
----
- adb shell appops get com.android.cellbroadcastreceiver android:receive_sms
- ensure result reflects uid mode
Change-Id: I59bb0c89423d3636c310c21b7a1cbf0481c992eb
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions