Commit Graph

13434 Commits

Author SHA1 Message Date
Amith Yamasani
92e2dadc0d Merge "Rethrow SecurityExceptions in UsageStatsManager" into pi-dev
am: c1eddaed6e

Change-Id: I3a8bdfe2858c88854ab15aba6a619aac1fd66945
2018-05-15 11:00:25 -07:00
TreeHugger Robot
c1eddaed6e Merge "Rethrow SecurityExceptions in UsageStatsManager" into pi-dev 2018-05-15 17:40:32 +00:00
Jason Monk
2af66fb30f Merge "Fix crash when loading resources without code" into pi-dev
am: c46279aa98

Change-Id: I3af4a66f050380c507ec59b9136f2ef6a4f41848
2018-05-15 09:52:15 -07:00
TreeHugger Robot
c46279aa98 Merge "Fix crash when loading resources without code" into pi-dev 2018-05-15 16:33:20 +00:00
Jason Monk
2544c6917a Fix crash when loading resources without code
Should use default appComponentFactory, not the actual one from the
app because we have no code.

Test: manual
Change-Id: I982967543c4cf5c28b19b36b6d183a30052bf602
Fixes: 78883500
2018-05-15 11:30:09 -04:00
Felipe Leme
aae288a6a5 Merge "Don't call setAutofillClient() on base Context if it's null." into pi-dev
am: 6d0842154b

Change-Id: Ifc971e81483b5bcf08c6f0af9789b88905dc17ad
2018-05-14 23:01:10 -07:00
TreeHugger Robot
6d0842154b Merge "Don't call setAutofillClient() on base Context if it's null." into pi-dev 2018-05-15 05:47:51 +00:00
Felipe Leme
d247de85bb Don't call setAutofillClient() on base Context if it's null.
Test: atest CtsAutoFillServiceTestCases
Test: changed activity on autofill sample to override attachBaseContext() by
      calling super.attachBaseContext(null) - the activity still crashes, but
      not on attachBaseContext().

Fixes: 79707861

Change-Id: Idfaa9c596cc338ab815441138ce06ba64cd3b4d2
2018-05-14 18:03:15 -07:00
Amith Yamasani
fd44f27b51 Rethrow SecurityExceptions in UsageStatsManager
Some of the newer methods were not rethrowing the system server
exceptions. When not returning a default value, rethrow the
RemoteException from the system server.

Bug: 79692228
Test: atest CtsUsageStatsTestCases:UsageStatsTest
Change-Id: I7b2ae735fc97f3e1903903ed5c98ce914aeaa84a
2018-05-14 14:47:19 -07:00
Dianne Hackborn
82a87674ce Merge "Allow device/profile owners to change app ops modes." into pi-dev
am: adaca2146d

Change-Id: I23dc01f573266a182fff2106318b867920a3f91a
2018-05-14 14:22:38 -07:00
Dianne Hackborn
adaca2146d Merge "Allow device/profile owners to change app ops modes." into pi-dev 2018-05-14 20:43:31 +00:00
Dianne Hackborn
d52544183e Allow device/profile owners to change app ops modes.
This allows them to continue to have this capability the
same as before we locked down access to it.

Bug: 78480444
Test: manual
Change-Id: If2b0722945235eb67676ace3f54efaa71a64bcde
2018-05-14 11:29:43 -07:00
Winson Chung
59ff523949 Merge changes from topic "sysui_flags_drop" into pi-dev
am: 53ae6a82cd

Change-Id: I88661e52aedee934e5b5cdbfd1d457d2c6a7d1c1
2018-05-11 15:59:45 -07:00
Winson Chung
53ae6a82cd Merge changes from topic "sysui_flags_drop" into pi-dev
* changes:
  Clean up Recents animation api
  Expose the system ui visibility flags and translucent state with snapshot
2018-05-11 22:18:37 +00:00
Amith Yamasani
36424476bb Merge "Add limits to App Usage Observer Api" into pi-dev
am: 98fd4fa0f4

Change-Id: I79e58fa83b389bffeb5b286cbddbbfe15de17caf
2018-05-11 12:19:32 -07:00
Amith Yamasani
98fd4fa0f4 Merge "Add limits to App Usage Observer Api" into pi-dev 2018-05-11 19:03:11 +00:00
Jason Monk
16db9b96bf Merge "Allow onGetSliceDescendants to be slow" into pi-dev
am: 02b9592ff1

Change-Id: I91899f01fd769c313e62000eee277ab3242099f0
2018-05-11 10:37:59 -07:00
TreeHugger Robot
02b9592ff1 Merge "Allow onGetSliceDescendants to be slow" into pi-dev 2018-05-11 17:21:28 +00:00
Jason Monk
a66dfee8d0 Allow onGetSliceDescendants to be slow
Because sometimes it needs to be

Test: existing tests
Bug: 79132845
Bug: 77873463
Change-Id: I93aa8553c48c856bf96c347a229be6e770751708
2018-05-11 08:23:59 -07:00
Brad Stenning
2b557bebaa Merge "Add a path to allow detection of task changes to the top of the ActivityView" into pi-dev
am: 47a8ecce90

Change-Id: I5c585d2ca5cb29fb9f4fc2188575233ea70277e3
2018-05-10 20:14:18 -07:00
TreeHugger Robot
47a8ecce90 Merge "Add a path to allow detection of task changes to the top of the ActivityView" into pi-dev 2018-05-11 02:45:25 +00:00
Kenny Guy
dd2ea24a43 Merge "Fix colorized messaging layout and smart replies." into pi-dev
am: a1aafd7718

Change-Id: I61d1fb493bba02f06a66d63b7bf7f3ed16148305
2018-05-10 04:48:29 -07:00
Kenny Guy
14d035c969 Fix colorized messaging layout and smart replies.
Modify messaging style and smart replies view to
cope with colorized backgrounds.

Bug: 78928664
Bug: 77927019
Test: atest SystemUITests (with patch from ag/3992401)
Test: visual - see bug for screenshots

Change-Id: Iee66931574fb48d0340986bf520532f798ef59fc
2018-05-10 10:25:14 +01:00
Dianne Hackborn
74dc457242 Merge "Further flesh out app ops foreground state." into pi-dev
am: 7105e2ca9a

Change-Id: I3a8056b6685ad7687ff5d54748c242eb9c906343
2018-05-09 22:59:34 -07:00
Dianne Hackborn
65a4f251c7 Further flesh out app ops foreground state.
Fix some bugs, add the ability to monitor state changes, improve
dumpsys output to help debugging, add a new check API that allows
the caller to get the real state.

Bug: 78480444
Test: atest FrameworksServicesTests:AppOpsServiceTest
Test: atest CtsPermissionTestCases:AppOpsTest
Change-Id: I3d41be9968c1d95a1456f4052da958ea64aa068d
2018-05-09 18:02:35 -07:00
Patrick Baumann
e4f5215f44 Merge "Allows disk reads when adding native paths to classloader" into pi-dev
am: 147ef6b1a4

Change-Id: I8d7e6d5acfa18169ab34aa8014d706201fa00ea4
2018-05-09 14:34:44 -07:00
Patrick Baumann
5c5daa4c3f Allows disk reads when adding native paths to classloader
In the cases that the classloader is being updated on the main thread,
temporarily allows disk reads so that native paths can be checked for
directory vs. APK.

Change-Id: I89cab9c7fcb71b8eff8891db974285844affe220
Fixes: 79425683
Test: atest WebViewHostSideStartupTest
2018-05-09 11:17:04 -07:00
Rubin Xu
08a3535505 Merge "Allow profile owner to disable iris/face on personal keyguard" into pi-dev
am: 54a514eda0

Change-Id: I8516f3ffa4c655195da3863d6ac23ab52af4ef70
2018-05-09 09:20:25 -07:00
Rubin Xu
54a514eda0 Merge "Allow profile owner to disable iris/face on personal keyguard" into pi-dev 2018-05-09 16:06:43 +00:00
Jiyong Park
4269c971be Merge "Basedir of a bundled app is added to the permitted paths" into pi-dev
am: 7df104c4bb

Change-Id: I60e0f2596b08194569aa0d5d4303b6892622a9c5
2018-05-09 08:01:36 -07:00
Jiyong Park
7df104c4bb Merge "Basedir of a bundled app is added to the permitted paths" into pi-dev 2018-05-09 14:48:45 +00:00
android-build-team Robot
e15af7df87 Merge "Introduce hidden constant EXTRA_PROVISIONING_USE_MOBILE_DATA" into pi-dev
am: caec3f0acb

Change-Id: Ifbdea61ee322a3a4f7d000eefbfb30f9628c879a
2018-05-09 05:03:07 -07:00
android-build-team Robot
caec3f0acb Merge "Introduce hidden constant EXTRA_PROVISIONING_USE_MOBILE_DATA" into pi-dev 2018-05-09 11:55:26 +00:00
Winson Chung
173020c2ef Expose the system ui visibility flags and translucent state with snapshot
- Allow SystemUI/Launcher to determine whether the snapshot is of a
  translucent activity (to reduce overdraw by skipping drawing task
  background) and also the sysui visibility flags are (to determine how
  to update the nav bar while animating before the app is started.
- Fixing issue where the recents animation was reporting task fillsparent
  state instead of the app's fillsparent state (as we do in normal remote
  animations)

Bug: 79228291
Bug: 77984778
Bug: 78659249
Test: atest FrameworksServicesTests:TaskSnapshotPersisterLoaderTest
Change-Id: I19bdf7f780e7d94014d6a115bf84fa614b1dffa0
2018-05-08 17:56:05 -07:00
Makoto Onuki
d91222836e Merge "Pre-cache more system servers" into pi-dev
am: 0c2985384b

Change-Id: Ic6b58e5d2a1e1df1ccf683c09e6422fdd16e5c78
2018-05-08 13:41:06 -07:00
Alex Chau
eca99a0ae1 Introduce hidden constant EXTRA_PROVISIONING_USE_MOBILE_DATA
- EXTRA_PROVISIONING_USE_MOBILE_DATA is to indicate mobile data should be used for device owner provisioning
- This constant is hidden as API for P is already frozen. The constant hardcoded by developers in a QR code or NFC payload, which should work in P regardless if the constant is hidden.
- Our team will be responsible of communicating this new extra to developers desposite it's not appearing in public javadoc

Bug: 78594515
Test: None
Change-Id: I06000cf9156ef54adc3c8fe12fdb3fa73075a859
2018-05-08 20:42:15 +01:00
Makoto Onuki
4589565b63 Pre-cache more system servers
Bug: 78792330
Test: Boot system
Change-Id: Id65d9f7d9a697e3c85b410e5da4028a712e4347a
2018-05-08 10:01:16 -07:00
Jiyong Park
29d9eba79b Basedir of a bundled app is added to the permitted paths
For bundled apps, add the base directory of the app (e.g.,
/system/app/Foo/) to the permitted paths so that it can load libraries
embedded in module apks under the directory. For now, GmsCore is relying
on this, but this isn't specific to the app. Also note that, we don't
need to do this for unbundled apps as entire /data is already set to
the permitted paths for them.

Bug: 79211269
Test: m -j
Test: permitted paths of PrebuiltGmsCore contains
/system/priv-app/PrebuiltGmsCorePix

Change-Id: Id9a874fcec8479e952ab94cf33b2537f9aacd691
2018-05-05 19:41:58 +09:00
Michael Wachenschwanz
c870309921 Add limits to App Usage Observer Api
Added a minimum time limit for App Time Limit Observers and a maximum
number of observers an app can register to AppTimeLimitController

Also fix small bug with mDpmInternal initialization

Change-Id: I8c0861d79711149f3ecd92ba4660f7b207e9b921
Fixes: 78890515
Fixes: 79230583
Test: atest AppTimeLimitController
Test: atest cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java#testAppUsageObserver
2018-05-04 14:43:04 -07:00
Brad Stenning
a1dbe9cbfa Add a path to allow detection of task changes to the top of the ActivityView
Bug:79141700

Test: Manual with and app that registers for the new event.
Change-Id: I26aa2f6cd0ada1eb777364213c159e1e7d951a33
2018-05-04 12:15:29 -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
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
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
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
3bc573f375 Merge "In place split install native support" into pi-dev
am: f4e0438a46

Change-Id: Idcc754d4a87a830136119f395670084204d7bc3f
2018-05-03 09:51:56 -07:00