Commit Graph

1562 Commits

Author SHA1 Message Date
Shafik Nassar
854c557ca4 Merge "Allow MediaProvider to request REGISTER_STATS_PULL_ATOM" into rvc-dev am: f59cdcf6dc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11880479

Change-Id: I802a9b91db2ad2cf74852c1af1b582a81bca91db
2020-06-18 12:41:38 +00:00
Shafik Nassar
f59cdcf6dc Merge "Allow MediaProvider to request REGISTER_STATS_PULL_ATOM" into rvc-dev 2020-06-18 12:25:55 +00:00
Enrico Granata
a2a7b8909b Merge "Move car companion device support app perms to framework" into rvc-dev am: 561b09994b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11853982

Change-Id: I991a2c31bb9060108ac2e3f6d44569c8e480f508
2020-06-17 20:02:57 +00:00
shafik
44f3ca5679 Allow MediaProvider to request REGISTER_STATS_PULL_ATOM
MediaProvider needs the permission to register a StatsPullCallback in
statsd to pull the external storage metrics.

Test: build
Bug: 149669087
Change-Id: I4f7e09c2e514e2290d1cd5ac765bb115e7ade9ef
2020-06-17 11:34:01 +01:00
Hao Chen
8de2ca3e5c Move car companion device support app perms to framework
Test: build and flash the trout PDK, boot to the UI
Bug: 158483244
Change-Id: Ic8cd135cde2d616e5a8d36b71de56acba4dab261
2020-06-16 21:30:12 +00:00
Andrew Walbran
ae0e270ff7 Merge "Add keylayout for SnakeByte iDroid:con" am: 99ce8c4945 am: f8b50f034a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1331927

Change-Id: I0b3ef96e98ff8ee11d3b807c98f24c2dff8e8ac2
2020-06-15 12:45:33 +00:00
Andrew Walbran
99ce8c4945 Merge "Add keylayout for SnakeByte iDroid:con" 2020-06-15 12:04:43 +00:00
Andrew Walbran
ba81efe04a Add keylayout for SnakeByte iDroid:con
This is a Bluetooth game controller which supports Android, but the
thumbstick buttons had the wrong keycodes.

Test: manual test with Gamepad Tester app
Change-Id: Id7d8ccbf282e25fd076903cbf9f3d66d30941c3e
2020-06-14 10:16:28 +01:00
Yan Zhu
78a201ba95 Merge "Install auto-generrate overlay packages even when not included in whitelist" into rvc-dev am: b6ac0061fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11529815

Change-Id: I86ae7d8b23708ee443d33f5ee17717c04cab931c
2020-06-10 04:38:17 +00:00
Yan Zhu
b6ac0061fa Merge "Install auto-generrate overlay packages even when not included in whitelist" into rvc-dev 2020-06-10 04:23:30 +00:00
Zhomart Mukhamejanov
678cc7d33d Move car bugreport app perms to framework.
Change-Id: I5e541138c35cdf67d18ce5475221baeb3e7faef4
Test: emulator
Bug: 158151004
2020-06-09 13:34:02 -07:00
TreeHugger Robot
ba6d043909 Merge "Move car bugreport app perms to framework." into rvc-dev am: 94bedc9aec
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11784244

Change-Id: I45cb0ff585ef2ea8f23868dfa226432bfda7ee84
2020-06-09 01:21:53 +00:00
Yan Zhu
31b01e4bc5 Install auto-generrate overlay packages even when not included in whitelist
Detect auto-generated overlay packages according to the suffix
(.auto_generated_rro_vendor_ OR .auto_generated_rro_product_)

Bug: 156668533
Bug: 140120696
Test: logcat: set DEBUG=true
adb logcat UserManagerService | grep overlay
atest
FrameworksServicesTests:com.android.server.pm.UserSystemPackageInstallerTest
-c

Change-Id: I1835eb923bf2421b2e171be0ac0fa400b6fd38f7
2020-06-08 16:34:34 -07:00
Zhomart Mukhamejanov
9fd6408edd Move car bugreport app perms to framework.
Change-Id: I5e541138c35cdf67d18ce5475221baeb3e7faef4
Test: emulator
Bug: 158151004
2020-06-07 18:04:19 -07:00
Xin Li
d7785982ac Merge "Merge QQ3A.200605.002 into master" 2020-06-06 01:41:11 +00:00
TreeHugger Robot
ee5837a47b Merge "Adding incremental related peremissions to Shell" into rvc-dev am: d1f5bf1f93
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11722415

Change-Id: Id297f0a5f071ab2fe92366a5386097d84bd0a8c9
2020-06-04 22:36:19 +00:00
Dimuthu Gamage
8589197fb5 Adding incremental related peremissions to Shell
This is expected to be used with adoptShellPermission in the Incremental
CTS tests.

Test: atest android.content.pm.cts.PackageManagerShellCommandTest
(There will be future tests relying on this)

Bug: 158024822
Change-Id: I46674498783c5323668ff775c76ff31a304aeadb
2020-06-04 17:04:44 +00:00
Sung Min Lee
2b3c00b99f Add CAPTURE_AUDIO_OUTPUT permission required for GTS test
GtsDialerAudioTestCases require this privileged permission for testing in GTS.

Bug: 157243201
Test: run gts -m GtsDialerAudioTestCases
Change-Id: I32516e5dcf966b05cfb8ab4956a0cdb183298f2a
Merged-In: I32516e5dcf966b05cfb8ab4956a0cdb183298f2a
2020-06-03 22:09:35 -07:00
Sung Min Lee
3c0fe83b63 Merge "Add CAPTURE_AUDIO_OUTPUT permission required for GTS test" into rvc-dev am: 5bafce8420
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11712625

Change-Id: I59aa0b8b5327685cd6658a6a0a382f61c1d3ea7a
2020-06-04 01:22:17 +00:00
Sung Min Lee
5bafce8420 Merge "Add CAPTURE_AUDIO_OUTPUT permission required for GTS test" into rvc-dev 2020-06-04 01:07:27 +00:00
TreeHugger Robot
39f422e78c Merge "Add keylayout for Xbox controller over USB" into rvc-dev am: f7deec1444
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11707675

Change-Id: I2b3f8fa576f5a7ae6baf29c67cb12160e1cb25e6
2020-06-03 23:52:27 +00:00
TreeHugger Robot
f7deec1444 Merge "Add keylayout for Xbox controller over USB" into rvc-dev 2020-06-03 23:40:37 +00:00
Siarhei Vishniakou
4647f1866c Add keylayout for Xbox controller over USB
Without a custom layout, this controller has incorrect mappings for the
right stick and gas/break axes.
Add a custom layout to ensure all axes and keys are mapped properly.

Bug: 157852643
Test: connected controller to the phone and verified mappings using the
controllerTester app

Change-Id: I1f65fe973652e25fab5e6e29ab598eee54e33e06
2020-06-03 12:35:19 -07:00
Sung Min Lee
a90b1fcaca Add CAPTURE_AUDIO_OUTPUT permission required for GTS test
GtsDialerAudioTestCases require this privileged permission for testing in GTS.

Bug: 157243201
Test: run gts -m GtsDialerAudioTestCases
Change-Id: I32516e5dcf966b05cfb8ab4956a0cdb183298f2a
2020-06-02 21:24:59 -07:00
Yo Chiang
572f829f7f Merge "Remove font symlinks hack" am: df792ee3f2 am: f369e4f670
Original change: undetermined

Change-Id: If3a07de26e209dd9f7f4cfa2c3cfed1459b44acc
2020-06-02 11:15:03 +00:00
Yo Chiang
f369e4f670 Merge "Remove font symlinks hack" am: df792ee3f2
Original change: undetermined

Change-Id: I890a67df43166c0c2f7362896162e55901830c10
2020-06-02 10:57:24 +00:00
Yo Chiang
df792ee3f2 Merge "Remove font symlinks hack" 2020-06-02 10:38:16 +00:00
Mina Granic
ce89357221 Merge "Whitelist READ_PRIVILEGED_PHONE_STATE permission needed by Build.getSerial()." into rvc-dev am: 3420744449
Change-Id: I87ba76fba86a254cb01ee6ab9142a072f6a558ed
2020-05-29 16:50:24 +00:00
Mina Granic
3420744449 Merge "Whitelist READ_PRIVILEGED_PHONE_STATE permission needed by Build.getSerial()." into rvc-dev 2020-05-29 16:43:43 +00:00
TreeHugger Robot
fc7c4138ef Merge "Add LOCATION_HARDWARE permission to shell." into rvc-dev am: 8a6ef8e52d
Change-Id: Ica09e8dba5b17f0df7d15f980c284b48defac8d0
2020-05-28 19:45:06 +00:00
Chen Xu
129cfaccc4 Merge "support cellbroadcast data migration by dafault" into rvc-dev am: ef0740e227
Change-Id: I7a981e5a17df180310b3e9c1fac5aa5262007834
2020-05-28 01:06:38 +00:00
Wei Wang
96f7636149 Add LOCATION_HARDWARE permission to shell.
A few location System APIs require LOCATION_HARDWARE permssion. Adding
this permission to shell so CTS tests can adopt this permission.

Bug:154347471

Test: atest PrivilegedLocationPermissionTest
Change-Id: I4abe4dc044ec4a3ab62352cc0f4a1726bebac633
2020-05-27 17:53:31 -07:00
Chen Xu
ef0740e227 Merge "support cellbroadcast data migration by dafault" into rvc-dev 2020-05-28 00:24:30 +00:00
Chen Xu
1d4939fff2 support cellbroadcast data migration by dafault
As part of mainline effort, cellbroadcastreceiver package name has been
renamed. Now its a completely new apk with different uid. That said all
user data e.g, cellbroadcast history and user preference from legacy app
com.android.cellbroadcastreceiver are gone. This change is to support
preserve user data when devices upgrate to R and take cellbraodcast.
mainline module.
1. create legacy cellbroadcast app with old pakcage name
com.android.cellbroadcastreceiver. this app only surface the old data
and should not contains any activities/services to handle emergecy apert
2. legacy cellbroadcast app will be included to the system image by
default. OEMs are free to remove it if they don't care data loss or
after R data migration is done. leagcy app will not be part of
com.android.cellbroadcast apex.
3. the real mainline module rename to com.android.cellbroadcast.module

Bug: 155844209

Change-Id: I5e61c7e777526e038cd8d9971a2c5b87c00eaacb
Merged-in: I5e61c7e777526e038cd8d9971a2c5b87c00eaacb
2020-05-27 20:25:10 +00:00
TreeHugger Robot
0bbc0e252c Merge "Add Effect_Tick.ogg back to Android TV devices" into rvc-dev am: a12b964839
Change-Id: Ice679162b985abdca668b0859b3cd74766943026
2020-05-27 19:55:58 +00:00
Robin Lee
3bf241ba1c Add Effect_Tick.ogg back to Android TV devices
Change-Id: I61039a9f3bae072cbf059c784b579ca3aa7f77be
Test: adb shell input keyevent DPAD_RIGHT
Test: ls $OUT/product/media/audio/ui
Bug: 157310189
Bug: 132316308
2020-05-27 18:14:35 +00:00
minagranic
f750a61838 Whitelist READ_PRIVILEGED_PHONE_STATE permission needed by Build.getSerial().
Bug: 144779107
Test: Plugged the phone, no SecurityException, started Phantoscope.
Change-Id: I2af21c1318fabb4d9a8b9bc6808dc163a3e353b5
2020-05-27 17:40:41 +00:00
Taran Singh
816b9c374c Merge "Add Insets dumps and IME debug logs" into rvc-dev am: e20c25ddc6
Change-Id: Ic644e48d41209ce171c568e87358a86090249b3f
2020-05-27 15:24:27 +00:00
Taran Singh
e20c25ddc6 Merge "Add Insets dumps and IME debug logs" into rvc-dev 2020-05-27 15:12:30 +00:00
Taran Singh
85661e3f9e Add Insets dumps and IME debug logs
Add more dumps and logs to better help debug IME insets better
Logging can be enabled by setting InsetsController.DEBUG to true.

Bug: 154348613
Test: manually build and flash.
      Verify showing and hiding IME shows logs.
      verify adb shell dumpsys window windows has new dumps

Change-Id: Iad0a21d81a22d6acfaaf5c5ca8b5131eec411e79
2020-05-27 15:12:07 +00:00
Treehugger Robot
5da33eca4e Merge "Add keylayout for HORIPAD for Nintendo Switch" am: 9ea883f4a3 am: 226410ff53
Change-Id: I79d82bafcc321f87af216cdee70e574447d4d1fc
2020-05-27 15:11:24 +00:00
Treehugger Robot
226410ff53 Merge "Add keylayout for HORIPAD for Nintendo Switch" am: 9ea883f4a3
Change-Id: Ic145e79673090a13e3847ba65d0a04f99a2074ee
2020-05-27 14:58:44 +00:00
Yo Chiang
5585f04ae6 Remove font symlinks hack
Remove Android.mk symlink hack.
Use Android.bp prebuilt_font's symlinks property to install symlinks.

Bug: 157537895
Test: m DroidSansMono.ttf
Test: m Roboto-Regular.ttf Roboto-Bold.ttf
Test: # system/fonts/DroidSans.ttf -> Roboto-Regular.ttf
Test: # system/fonts/DroidSans-Bold.ttf -> Roboto-Bold.ttf
Change-Id: I5b311a3e32bd688e2a6be20d9b81d24560b7e133
2020-05-27 18:08:11 +08:00
TreeHugger Robot
629cac54f6 Merge "Add support for TvInputManager.acquireTvInputHardware CTS" into rvc-dev am: f49fa1a9ea
Change-Id: I5a4cbbb4bda0e975129108ee32dd3c1965bed24f
2020-05-27 04:48:53 +00:00
TreeHugger Robot
f49fa1a9ea Merge "Add support for TvInputManager.acquireTvInputHardware CTS" into rvc-dev 2020-05-27 04:39:45 +00:00
TreeHugger Robot
2f34b5f9fb Merge "Fix black screen during Quick switch" into rvc-dev am: c82ee307b1
Change-Id: I93231dd8c485d2ae20aaed9946863e5c97076cd0
2020-05-25 18:27:03 +00:00
Ming-Shin Lu
aa9376bc4f Fix black screen during Quick switch
When quick switch a delayed task, before onTaskAppeared called,
if the user holds gesture on nav bar, TRANSIT_WALLPAPER_OPEN from closing
app happens will cancel recents animation when
WC#applyAnimationUnchecked, and that will cause the black screen if the
delayed task not yet drawn and there is no recents task snapshot on top.

Since cancelling recents animation during quick switching doesn't make
sense, to fix that, we should check the animation task target if is
still controlled by recents animation, if so, we should not cancel it.

Also, make sure if the appeared task has already been in task target list,
(i.e. task A appreared, quick switch to task B, before task B appeared,
quick switch back to task A) if so, we don't need to callback task
appeared again.

Fix: 156670249
Test: manual as issue test steps.
Change-Id: I303403d63c91c08fabcb8c5b1b1aac42c4ec65db
2020-05-25 21:20:33 +08:00
Andrew Walbran
386d9691c3 Add keylayout for HORIPAD for Nintendo Switch
This is a third-party USB game controller for the Nintendo Switch, but
doesn't require the special driver needed for the official controllers.

The same button layout is used as for the Nintendo Switch Pro Controller.

Test: manual test with Gamepad Tester app
Change-Id: Ie424bbe8fe40853b5c8683d6094e2c6d3cf55a5b
2020-05-19 22:52:31 +01:00
TreeHugger Robot
43ddb44202 Merge "Screen recording doesnt record internal audio" into rvc-dev am: 3ccf874dca
Change-Id: Icb1ad78c63b8b81dc386be86cfdadbbce403a22b
2020-05-18 16:50:38 +00:00
TreeHugger Robot
3ccf874dca Merge "Screen recording doesnt record internal audio" into rvc-dev 2020-05-18 16:37:11 +00:00