Add Shell permission to support manual testing
Add android.permission.SUGGEST_TELEPHONY_TIME_AND_ZONE to the shell process to enable command-line injection of time zone suggestions to the time_zone_detector service. Shell already has permissions like SET_TIME_ZONE that allow the time zone to be set directly, so this is not a security regression. Bug: 227337462 Test: adb shell cmd time_zone_detector suggest_telephony_time_zone --slot_index 0 --zone_id Europe/London --quality single --match_type country Ignore-AOSP-First: Merge conflict, AOSP cherry-pick will land after Change-Id: I377cab85a1b39ef2887b452d1ffcdc5b00a8d5ab
This commit is contained in:
parent
5a79258c64
commit
c55590c810
@ -495,6 +495,9 @@
|
||||
<!-- Permission needed for CTS test - DefaultDisplayModeTest -->
|
||||
<uses-permission android:name="android.permission.MODIFY_USER_PREFERRED_DISPLAY_MODE" />
|
||||
|
||||
<!-- Permissions needed for manual testing telephony time zone detector behavior -->
|
||||
<uses-permission android:name="android.permission.SUGGEST_TELEPHONY_TIME_AND_ZONE" />
|
||||
|
||||
<!-- Permissions needed for CTS test - TimeManagerTest -->
|
||||
<uses-permission android:name="android.permission.MANAGE_TIME_AND_ZONE_DETECTION" />
|
||||
<uses-permission android:name="android.permission.SUGGEST_EXTERNAL_TIME" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user