Commit Graph

13703 Commits

Author SHA1 Message Date
Andrii Kulian
591eb66db7 Merge "Schedule local activity relaunch" into pi-dev am: 1ed9f4294c
am: aad8cbf14e

Change-Id: I135975e50bde928f5d18cd0993f22b1d857fbb44
2018-05-04 11:51:32 -07:00
Andrii Kulian
aad8cbf14e Merge "Schedule local activity relaunch" into pi-dev
am: 1ed9f4294c

Change-Id: I7ff272e057bed855ce187aa759f197807a50d683
2018-05-04 11:41:59 -07:00
Andrii Kulian
1ed9f4294c Merge "Schedule local activity relaunch" into pi-dev 2018-05-04 18:23:32 +00:00
android-build-team Robot
7c39b7af3c Merge "Just drop the default WP bitmap, don't explicitly recycle it" into pi-dev am: 018166c16e
am: 9f275bd435

Change-Id: I77b78cb14e3cb7df901f8dd077c5c91faa21cf16
2018-05-04 11:16:44 -07:00
android-build-team Robot
9f275bd435 Merge "Just drop the default WP bitmap, don't explicitly recycle it" into pi-dev
am: 018166c16e

Change-Id: If56a713c4c8032fbf4cd0707715d6952ba641ee4
2018-05-04 11:04:11 -07:00
android-build-team Robot
018166c16e Merge "Just drop the default WP bitmap, don't explicitly recycle it" into pi-dev 2018-05-04 17:47:04 +00:00
Rose Liu
6de5ddc64f Merge "Add @SystemApi to related VR functions that will be used by VrCore Services." 2018-05-04 17:20:52 +00:00
Andrii Kulian
320e3b546f Schedule local activity relaunch
If local activity relaunch is executed immediately, and if
recreate() was called from a lifecycle callback, then existing
instance of activity will be destroyed while ActivityThread may
continue using it to finish performing a transaction item.
To remove this double lifecycle loop we now schedule local activity
relaunch on client thread instead of executing it immediately.
It worked in similar way until changes in b/30060825.

Bug: 78576150
Bug: 64610483
Bug: 30060825
Test: ActivityLifecycleTests
Change-Id: Ic0cef229f2f9df0fa40066d8540c4b29da7bdc58
2018-05-03 17:34:16 -07:00
android-build-team Robot
8966f68c30 Merge "Add app op for Bluetooth scans" into pi-dev
am: 6fb01a8a56

Change-Id: I42db780781f14b1ba7fcf8116e8d6509eb6ec664
2018-05-03 17:24:24 -07:00
android-build-team Robot
6fb01a8a56 Merge "Add app op for Bluetooth scans" into pi-dev 2018-05-04 00:01:53 +00:00
Dianne Hackborn
e29b9f8f0c Merge "Add app op for Bluetooth scans" 2018-05-04 00:00:07 +00:00
Dianne Hackborn
e04f13d9ea Add app op for Bluetooth scans
Bug: 78480444
Test: manual
Change-Id: I5a88abc8f26e7505ebfbd76137f13f75be6e5ff9
2018-05-03 12:02:32 -07:00
Andrii Kulian
1e7b265308 Merge "Preserve custom activity intent on relaunch" into pi-dev am: 1b59867b9f
am: 8dab13567a

Change-Id: I2fe6d88f2995ec10a65bf87825ff27dad6122760
2018-05-03 11:52:31 -07:00
Andrii Kulian
8dab13567a Merge "Preserve custom activity intent on relaunch" into pi-dev
am: 1b59867b9f

Change-Id: I7fa71c11e25e08d65b9e0a4e8349b934d6bf9cb1
2018-05-03 11:41:45 -07:00
Andrii Kulian
1b59867b9f Merge "Preserve custom activity intent on relaunch" into pi-dev 2018-05-03 18:26:04 +00:00
android-build-team Robot
7c9ec58363 Merge "In place split install native support" into pi-dev am: f4e0438a46
am: 3bc573f375

Change-Id: I18405fea7c2c0813ab352c6c7a686ebb28c9db13
2018-05-03 10:04:02 -07:00
android-build-team Robot
3bc573f375 Merge "In place split install native support" into pi-dev
am: f4e0438a46

Change-Id: Idcc754d4a87a830136119f395670084204d7bc3f
2018-05-03 09:51:56 -07:00
android-build-team Robot
f4e0438a46 Merge "In place split install native support" into pi-dev 2018-05-03 16:38:54 +00:00
android-build-team Robot
290879a583 Merge "old paths contains all entries when updating" into pi-dev am: f5cb5e5525
am: 9cfb90e85b

Change-Id: I63f21a16b8e5f59c1fd6cefb242b8b22dd564eaa
2018-05-03 06:48:01 -07:00
android-build-team Robot
9cfb90e85b Merge "old paths contains all entries when updating" into pi-dev
am: f5cb5e5525

Change-Id: I13b2118b834e9f255c83cf737ae1d9e8d93c9245
2018-05-03 06:39:29 -07:00
android-build-team Robot
f5cb5e5525 Merge "old paths contains all entries when updating" into pi-dev 2018-05-03 13:26:50 +00:00
Todd Kennedy
b9656a93aa old paths contains all entries when updating
In certains circumstances, only the base and split APKs were included in
the "old paths" list when updating the application info. Instead, this
list should contain _all_ elements, including any additional libraries
that may be added to the overall classpath.

Bug: 77342775
Test: Manual. Install a package. Install a split with --dont_kill. See that the path doesn't contain duplicate entries
Change-Id: Id9739cce215ab07bff1b17966583c0cf51a0b34a
2018-05-03 11:02:30 +01:00
Mathew Inwood
691d346bd0 Merge "Pass package name to runtime." into pi-dev am: e9db89cc76
am: c83131679c

Change-Id: Ib2ef1b2ed28ed017de517db519b0b81f34db395d
2018-05-03 01:30:30 -07:00
Mathew Inwood
c83131679c Merge "Pass package name to runtime." into pi-dev
am: e9db89cc76

Change-Id: I4b64ad026f53dc2abbf36017b425c70c74ad0a91
2018-05-03 01:21:40 -07:00
Mathew Inwood
e9db89cc76 Merge "Pass package name to runtime." into pi-dev 2018-05-03 08:12:02 +00:00
Andrii Kulian
770c403069 Preserve custom activity intent on relaunch
An activity can have a custom intent set via Activity#setIntent().
This was lost in ag/3305584

Change-Id: I88f3e164d2cf7f6c62989bba05cd84b9b83befc3
Fixes: 73181785
Test: ActivityThreadTest#testCustomIntentPreservedOnRelaunch
2018-05-02 18:40:59 -07:00
Dianne Hackborn
6b590c3934 Add app op for Bluetooth scans
Bug: 78480444
Test: manual
Change-Id: I0e747ed5301640af04ec4d6ef2ba5ee6c2de495a
Merged-In: I5a88abc8f26e7505ebfbd76137f13f75be6e5ff9
2018-05-02 17:40:50 -07:00
rongliu
55492665f8 Add @SystemApi to related VR functions that will be used by VrCore
Services.

We added them to grey list, but it would be better to make them proper
SystemApi.

Bug: 74430927
Test: Run VR app, not seeing VR related "Accessing hidden field" log.

Change-Id: I9e6ec7eb35244fbac4f6448721458efbee65a887
2018-05-02 17:40:47 -07:00
android-build-team Robot
dba9b84ab8 Merge "Work on issue #77931346: The notification that should not be named appeared" into pi-dev am: 12f404e3e3
am: 0c728e411a

Change-Id: Id0396b3974fe21bc346040bb4fd78d935777f782
2018-05-02 14:24:15 -07:00
Christopher Tate
1c827da635 Just drop the default WP bitmap, don't explicitly recycle it
Recycling invalidates it out from under any client code that might
have retained the reference previously.  That's not sociable.

Just drop the internal cache reference.  The underlying storage will
be properly freed by GC if it's genuinely not being used anywhere
else.

Change-Id: I94e0e2ba2b78daa40c8026e6fc72fda3bed57ae3
Fixes: 79108131
Bug: 74534423
Test: atest android.content.cts.ContextWrapperTest#testAccessWallpaper
2018-05-02 13:18:35 -07:00
android-build-team Robot
0c728e411a Merge "Work on issue #77931346: The notification that should not be named appeared" into pi-dev
am: 12f404e3e3

Change-Id: I19f5b0cbafed7234e96edd0793413b37cd0a14a7
2018-05-02 11:05:11 -07:00
android-build-team Robot
12f404e3e3 Merge "Work on issue #77931346: The notification that should not be named appeared" into pi-dev 2018-05-02 17:47:15 +00:00
Mathew Inwood
37b6ca82ed Pass package name to runtime.
When binding an application in ActivityThread, pass the package name to
the runtime so it knows which package is running in the process.

Bug: 77517571
Test: m
Change-Id: Ia646599ca45b76ebcd068fcc50df23659e89b82b
2018-05-02 10:43:24 +01:00
Dianne Hackborn
6793fe9086 Merge "Work on issue #78480444: Start tracking uid state in app ops" into pi-dev
am: 55c2d4106a

Change-Id: I4d44e5aa76fc14ddb5049d617650a19d1bf9255e
2018-05-02 00:07:13 -07:00
Dianne Hackborn
025d4a59fc Work on issue #77931346: The notification that should not be named appeared
Keep track of whether a foreground service has been shown in a
notification channel and, the first time one is, make sure the channel
is sufficiently important regardless of what the user or app last
set for it.

Bug: 77931346
Test: runtest systemui-notification
Change-Id: Idecad2dceb8cc918feec91ca1ee26edf3d3ab7de
2018-05-01 22:56:23 -07:00
Dianne Hackborn
b6b8e186ba Merge "Work on issue #78480444: Start tracking uid state in app ops" 2018-05-02 00:37:49 +00:00
Dianne Hackborn
2378a4a3fa Work on issue #78480444: Start tracking uid state in app ops
Introduce new app op mode that uses uid state to determine whether
the caller has access.  This will determine what noteOp() and
startOp() return, based on the state of the uid.

Bug: 78480444
Test: atest FrameworksServicesTests:AppOpsServiceTest
Test: atest CtsPermissionTestCases:AppOpsTest
Change-Id: I12b744b74f3129782dbda9567043f5170919b5d3
Merged-In: I55fd74023cc4dae8151372e28c3afc7d259c7a1c
2018-05-01 17:36:28 -07:00
Dianne Hackborn
c216a263e0 Work on issue #78480444: Start tracking uid state in app ops
Introduce new app op mode that uses uid state to determine whether
the caller has access.  This will determine what noteOp() and
startOp() return, based on the state of the uid.

Bug: 78480444
Test: atest FrameworksServicesTests:AppOpsServiceTest
Test: atest CtsPermissionTestCases:AppOpsTest
Change-Id: I55fd74023cc4dae8151372e28c3afc7d259c7a1c
2018-05-01 16:14:30 -07:00
Tyler Gunn
b02996cb14 Merge "Require READ_CALL_LOG permission to see phone numbers in phone state." into pi-dev am: 7f556daa41
am: d6aef2176f

Change-Id: Id4b1f204061f6c7f6c12c2faa392015ade4c4b7f
2018-05-01 13:52:35 -07:00
Tyler Gunn
d6aef2176f Merge "Require READ_CALL_LOG permission to see phone numbers in phone state." into pi-dev
am: 7f556daa41

Change-Id: Icd641707eef832fd5f3d393c64ce9b3483770e9d
2018-05-01 13:41:49 -07:00
Tyler Gunn
7f556daa41 Merge "Require READ_CALL_LOG permission to see phone numbers in phone state." into pi-dev 2018-05-01 20:27:15 +00:00
Makoto Onuki
633c4d9875 Merge "Propagate calling UID to AM from LauncherApps" into pi-dev am: eac8a05d19
am: f683c14bd4

Change-Id: I3c1d47b97d39bb2e1f1a7e3639375251b69110a6
2018-05-01 09:14:44 -07:00
Makoto Onuki
f683c14bd4 Merge "Propagate calling UID to AM from LauncherApps" into pi-dev
am: eac8a05d19

Change-Id: I0c9bfeb58bd51954f9ec11944ad20e996e1caa8f
2018-05-01 09:01:05 -07:00
Makoto Onuki
eac8a05d19 Merge "Propagate calling UID to AM from LauncherApps" into pi-dev 2018-05-01 15:50:37 +00:00
Julia Reynolds
fd99572d30 Merge "Update logic for interruptive notifications" into pi-dev am: 618033a1c7
am: 902f2eadea

Change-Id: I2c9878f72b9beb7c2c039d3f58c843fa692e02d5
2018-05-01 06:04:49 -07:00
Julia Reynolds
902f2eadea Merge "Update logic for interruptive notifications" into pi-dev
am: 618033a1c7

Change-Id: I6d081459b209f403129d3786af6ccd4b4d7843c8
2018-05-01 05:55:29 -07:00
Julia Reynolds
618033a1c7 Merge "Update logic for interruptive notifications" into pi-dev 2018-05-01 12:47:41 +00:00
Chris Wren
654bc74dbd Merge "Add implementation for SliceMetrics" into pi-dev am: 32491b6f8e
am: e032e2ff4a

Change-Id: I0eb27889a32c02c7a5f74eff1dd7fce05bf7d060
2018-05-01 05:15:40 -07:00
Chris Wren
e032e2ff4a Merge "Add implementation for SliceMetrics" into pi-dev
am: 32491b6f8e

Change-Id: Ib53f378419a7c5479662f6242e23dddc7a8ba01d
2018-05-01 05:05:58 -07:00
Chris Wren
32491b6f8e Merge "Add implementation for SliceMetrics" into pi-dev 2018-05-01 11:52:42 +00:00