Commit Graph

94033 Commits

Author SHA1 Message Date
Felipe Leme
5284336dec Fix UserInfo Parcel
ag/9372503 put the order of reading preCreated from a UserInfo parcel
in the wrong spot. We fix it here.

Test: none
Merged-In: I4502e901ff2aac977c584fa8c5a3d1263be33572
Change-Id: I4502e901ff2aac977c584fa8c5a3d1263be33572
(cherry picked from commit e80af14d33)
2019-10-18 13:07:13 -07:00
Felipe Leme
0b3863f4ac Added new (hidden) UserManager API to get all users, including pre-created ones.
Bug: 140750212
Test: manual verification

Merged-In: Iaef9db6216a7b18bf6f1f3e19f4a7428ec99f1da
Change-Id: Iaef9db6216a7b18bf6f1f3e19f4a7428ec99f1da
(cherry picked from commit 09a7f2df68)
2019-10-18 11:05:09 -07:00
Felipe Leme
7ad2f6bdad Added option to pre-create user templates to optimize first user creation time.
Initial user creation is slow because the system must prepare per-user data (like storage and
permissions) whose cost is proportional to the number of pre-installed apps. On automovive's
reference implementation, it can take more than 10s, which is a bad user experience.

This change lets OEMs pre-create some users , so that high initial-creation cost is "paid" during
the initial boot. On automotive, it improves the creation of an additional user (or guest user)
in about 7s (from ~17s to 9s).

Bug: 111451156
Bug: 132111956
Bug: 140750212
Bug: 140868593

Test: manual verification
Test: atest FrameworksServicesTests:UserControllerTest#testStartTemplateUser_background

Merged-In: I81de1b5376dc9c42b63be8853d7204c88826401f
Change-Id: I81de1b5376dc9c42b63be8853d7204c88826401f
(cherry picked from commit c1ca4410e1)
2019-10-18 11:05:06 -07:00
Pinyao Ting
8deca19926 fix the issue slice cannot be triggered from uri
Bug: 122879432
Change-Id: Id36a45bbbdb858b5b8d9fd6f1b3f5f97eb84e9fd
Test:
1. install SliceViewer (https://github.com/android/user-interface-samples/releases)
2. adb shell am start -d "slice-https://sliceviewer.android.example.com/hello"
(cherry picked from commit 09b91e6027)
2019-10-18 16:12:47 +00:00
Edgar Wang
ba07c45dcb Remove assist_gesture_enabled related keys from backup list
Bug: 142312794
Test: atest & manual
Change-Id: I261ad35f4b7a2c7ac706f092b1be85f4aa41a9d6
Merged-In: Ied7d97d4b4b0955981824d7342aabe74d06a0c1f
2019-10-14 19:07:43 +08:00
Edgar Wang
587ba7e46e Remove aware sensor related features from backup list
Bug: 142312794
Test: atest & manual
Change-Id: Id2611b3cbdaea57e9e8c563aac211796d27a49a7
Merged-In: Ifed4ebb5f5a2ebff0420b3ff1ab1e9a533829566
2019-10-14 19:01:14 +08:00
Kevin Hufnagle
e9c81c3e2f Merge "docs: Updated SECURITY_PATCH field description" into qt-dev am: 3c92f24adb
am: 7b02dd8342

Change-Id: I342ac4968830434af50e7523ba785089d78c3ca9
2019-10-08 12:08:13 -07:00
Kevin Hufnagle
7b02dd8342 Merge "docs: Updated SECURITY_PATCH field description" into qt-dev
am: 3c92f24adb

Change-Id: Ieb7549bb38439ad297bba0f5a4b64870919651a7
2019-10-08 12:00:20 -07:00
Kevin Hufnagle
3c92f24adb Merge "docs: Updated SECURITY_PATCH field description" into qt-dev 2019-10-08 18:36:19 +00:00
Alan Stokes
9ed11c9dea Merge "Revert new app installed notification doc" into qt-dev am: 98540e2a16
am: 24e18b415f

Change-Id: I2675329bb8a87beb1e8c221f35e12f0fa675445a
2019-10-07 08:30:38 -07:00
Alan Stokes
24e18b415f Merge "Revert new app installed notification doc" into qt-dev
am: 98540e2a16

Change-Id: I12b1bf9c6c078ee1629e2135140ccd59b8f9da81
2019-10-07 08:18:41 -07:00
Alan Stokes
98540e2a16 Merge "Revert new app installed notification doc" into qt-dev 2019-10-07 14:41:57 +00:00
Philip P. Moltmann
7cd4256dde Merge "Update PermissionChecker usages to avoid unnecessary attribution." into qt-dev am: 0a71df1f7e
am: 43f6144e21

Change-Id: Ib8548cbfc7531a5f5e9100ae26cf9b6c8f97760f
2019-10-04 12:05:17 -07:00
Philip P. Moltmann
43f6144e21 Merge "Update PermissionChecker usages to avoid unnecessary attribution." into qt-dev
am: 0a71df1f7e

Change-Id: I658626de14fa325e08db3aead53707d8d3e00d3b
2019-10-04 11:43:06 -07:00
Ricky Wai
5f5bacfda0 Revert new app installed notification doc
Bug: 111214100
Test: Able to compile
Change-Id: Id4fdabf0e8c69074eb8cb5838ab11d9d5f030093
2019-10-04 16:10:17 +01:00
Svet Ganov
7fe065eb66 Update PermissionChecker usages to avoid unnecessary attribution.
We had accidental usages of the PermissionChecker for cases where no
private data was provided to the app but the checkPermission API on
the latter also did blame data access on the app. The PermissionChecker
was designed to handle IPC calls and not for generic API checks.

To avoid future accidental incorrect PermissionChecker usages this
change renames the existing APIs of the latter to clearly indicate
that they should be used for data delivery and also adds sibling
methods for doing the same permission checks for preflight purposes.
Also the documentation is improved to furhter assist developers.

In addition, this change fixes accidental permission checker usages
that blame when they should not by using the new preflight flavor
of the permission check APIs.

Test:
    atest com.android.settingslib.location.RecentLocationAppsTest
    atest CtsPermissionTestCases
    added: LocationAccessCheckTest#notificationOnlyForAccessesSinceFeatureWasEnabled
    added: LocationAccessCheckTest#noNotificationIfFeatureDisabled
    added: LocationAccessCheckTest#noNotificationIfBlamerNotSystemOrLocationProvider
    added: LocationAccessCheckTest#testOpeningLocationSettingsDoesNotTriggerAccess

bug:141028068
Merged-In: I65c71569d0dd8a40bc6fecabb22c5373dd6e806e
Change-Id: I65c71569d0dd8a40bc6fecabb22c5373dd6e806e
2019-10-03 21:58:13 +00:00
Kevin Hufnagle
3f80c14817 Merge "docs: Added link to multi-window drag how-to guide" into qt-dev am: 667b944522
am: 52145e2481

Change-Id: Ide5e154813dce831fb117a7d23e85737088b63bb
2019-09-30 09:29:21 -07:00
Kevin Hufnagle
52145e2481 Merge "docs: Added link to multi-window drag how-to guide" into qt-dev
am: 667b944522

Change-Id: Ic5039fb781c73c2e1691c4c32afc7e35a9713683
2019-09-30 09:23:00 -07:00
Kevin Hufnagle
667b944522 Merge "docs: Added link to multi-window drag how-to guide" into qt-dev 2019-09-30 16:10:39 +00:00
Anna Malova
47e276ed96 Merge "[WebView] Minor javadoc fix for WebSettings." into qt-dev am: 63c65616ae
am: e4cbd008c0

Change-Id: I723bd55fbf1e525876290436deb8acf7ae337b22
2019-09-30 04:21:53 -07:00
Anna Malova
e4cbd008c0 Merge "[WebView] Minor javadoc fix for WebSettings." into qt-dev
am: 63c65616ae

Change-Id: I3ee0487212dfb139da111e9a7314dc781db66b63
2019-09-30 04:08:44 -07:00
Kevin Hufnagle
36ef69743c docs: Added link to multi-window drag how-to guide
Test: make ds-docs -j32

Bug: 71008103
Change-Id: Ifcc50920cf3828697add018d1d3a6a827c7c9f98
2019-09-27 23:56:09 +00:00
joshmccloskey
cfc621518c Added secure setting for face re enrollment.
Test: Verified that the flag could be modified with
adb shell settings put secure...
Bug: 141380252

Change-Id: Ifa24b688a487482e5b02689c1046d85423f73280
2019-09-26 15:54:45 -07:00
Anna Malova
7374ce19ac [WebView] Minor javadoc fix for WebSettings.
No change to logic.

Test: N/A
Bug:132394762
Change-Id: I957b0d8a03cd937b38611e32f6c012b01a6ad7da
2019-09-25 12:19:27 +01:00
Lucas Dupin
7b4d885c7c Fix wrong Notification refactor
We're wrongly showing the BigText content after ag/5928752

Fixes: 141446552
Test: post big text notification, look at lock screen
Change-Id: I02506a160afefb457f86eb00adccdaff44ddbd29
2019-09-25 01:05:14 +00:00
Kevin Hufnagle
5061c99b61 Merge "docs: Modernized AccessibilityNodeProvider example" into qt-dev am: e49cbb3a5d
am: 786e8a2849

Change-Id: I71ff61397d44812647124042e73a655a6710ff01
2019-09-24 15:14:14 -07:00
Kevin Hufnagle
786e8a2849 Merge "docs: Modernized AccessibilityNodeProvider example" into qt-dev
am: e49cbb3a5d

Change-Id: I24a281dd7194ea5c731ecc02371734fe1fa315f8
2019-09-24 15:06:18 -07:00
Kevin Hufnagle
e49cbb3a5d Merge "docs: Modernized AccessibilityNodeProvider example" into qt-dev 2019-09-24 21:18:39 +00:00
Kevin Hufnagle
25309b11da Merge "docs: List BIOMETRIC_WEAK in setPasswordQuality()" into qt-dev am: 2a082b1e9e
am: 096ece8f53

Change-Id: I03b4f71aaa643e08a661fe383f2cff91c7a136f9
2019-09-23 16:19:39 -07:00
Kevin Hufnagle
096ece8f53 Merge "docs: List BIOMETRIC_WEAK in setPasswordQuality()" into qt-dev
am: 2a082b1e9e

Change-Id: I74d42b68ebed97c2db3a179e92ba3196ffc7a04f
2019-09-23 16:08:03 -07:00
Kevin Hufnagle
2a082b1e9e Merge "docs: List BIOMETRIC_WEAK in setPasswordQuality()" into qt-dev 2019-09-23 22:45:45 +00:00
Lorenzo Colitti
34c5cbeba2 Merge "notify netd about uid internet permission changes when package replaced" into qt-qpr1-dev 2019-09-21 01:00:55 +00:00
Philip P. Moltmann
0698185471 Merge "[DO NOT MERGE] Split access-media-storage from read-external-storage" into qt-qpr1-dev 2019-09-20 23:09:43 +00:00
Kevin Hufnagle
379b87531b Merge "docs: Fixed link to material design for ScrollView" into qt-dev am: 80b543b45a
am: 71f8040c3b

Change-Id: I317e75554f4741551e8221bfacb447ad0e914f4e
2019-09-20 15:47:23 -07:00
Kevin Hufnagle
71f8040c3b Merge "docs: Fixed link to material design for ScrollView" into qt-dev
am: 80b543b45a

Change-Id: Ic7cc4494a88e6feaedf85626270ed1e8057189f5
2019-09-20 15:39:50 -07:00
Kevin Hufnagle
80b543b45a Merge "docs: Fixed link to material design for ScrollView" into qt-dev 2019-09-20 22:14:46 +00:00
Philip P. Moltmann
ac7b10c135 [DO NOT MERGE] Split access-media-storage from read-external-storage
And also pre-grant it to all apps that currently get any storage
permission pre-granted

Test: atest SplitPermissionTest
      m -j gts && gts-tradefed run commandAndExit gts-dev -m GtsPermissionTestCases --test=com.google.android.permission.gts.DefaultPermissionGrantPolicyTest#testDefaultGrantsWithRemoteExceptions
      Manual testing:
         All combinations of
           - App targetSdk = 28 and 29 (and 22 for extra credit)
           - App having the <uses-permission> tag for
             ACCESS_MEDIA_LOCATION or not
           - Upgrade from P->Q-QPR and from vanilla Q->Q-QPR
         Further upgrade of targetSdk from 28->29 while on Q-QPR
         ==> All permission behavior should make sense. Sometimes there
             are weird, but expected behaviors. Hence we need to
             collect the results and then look at the unexpected ones.
             See SplitPermissionTest for some tests I added for the
             location-background permission which was split from
             the fine/coarse-location permissions
Fixes: 141048840,140961754
Change-Id: Ib9f50d25c002036f13cf2d42fc4d1b214f20920c
2019-09-20 16:45:58 +00:00
wangmingming1
4a4ceeeb79 notify netd about uid internet permission changes when package replaced
1. If a previous version of an app doesn't declare internet permission;
2. The User upgraded it to a new version and the new one does declare the
internet permission;
3. The new app are not allowed to access the internet until next boot

Bug: 137864893
Test: Manual, just make sure the onPackageChanged would be executed on package changes
Change-Id: I69cdbb16a027a9c4e974b32371b1f64a23a51a23
Signed-off-by: wangmingming1 <wangmingming1@xiaomi.com>
2019-09-20 03:23:23 +00:00
Kevin Hufnagle
d9c7b449fe docs: Updated SECURITY_PATCH field description
Test: make ds-docs -j32

Bug: 127625306
Change-Id: I052bb647ebb36ea3c9a788be592e7de9cd969e10
2019-09-20 00:59:33 +00:00
Kevin Hufnagle
926edfeb0c docs: Fixed link to material design for ScrollView
Test: make ds-docs -j32

Bug: 141024886
Change-Id: I69d05cdf99d91f74143454c78c000128d1da42ce
2019-09-19 23:50:47 +00:00
Philip P. Moltmann
4052d36f62 Fix dumpsys for appops proxy field
- Make flags is the last parameters in access decipher methods.
  All calling code assumes this.
- Get proxyUid info from the appropriate field
- Don't create proxy entries if uid is invalid
- Fixed some incorrect docs

Test: adb shell dumpsys appops now shows proxy information
Fixes: 141328071
Change-Id: I2f94e9b171133141643e628c9224d8d74ec5ad87
2019-09-19 16:12:43 -07:00
Kevin Hufnagle
c67e4da871 Merge "docs: Add condition for hiding synth. activities" into qt-dev am: 00537efd07
am: 12298403b0

Change-Id: I7a71cdb8fd5ecfd008d0e8257185cdd8c5366ce0
2019-09-18 17:39:27 -07:00
Kevin Hufnagle
12298403b0 Merge "docs: Add condition for hiding synth. activities" into qt-dev
am: 00537efd07

Change-Id: I1ec3fb8fea7f6b5fe292807b3951fb265a9cbb94
2019-09-18 17:32:55 -07:00
Kevin Hufnagle
00537efd07 Merge "docs: Add condition for hiding synth. activities" into qt-dev 2019-09-19 00:20:47 +00:00
TreeHugger Robot
51cf32b4f3 Merge "Camera: fix NPE from bad requestID" into qt-qpr1-dev 2019-09-18 20:54:27 +00:00
Seigo Nonaka
dbf4d68906 Merge "Do not compute outside given range in TextLine" into qt-dev am: 01082fe6ae
am: a2778ebe0d

Change-Id: I07c9f4c9a8bd9b6cdfa0f4da215d1b6f63ca9961
2019-09-18 13:30:17 -07:00
Seigo Nonaka
a2778ebe0d Merge "Do not compute outside given range in TextLine" into qt-dev
am: 01082fe6ae

Change-Id: I9d88c47a16747009fda893660fd36d325d212a40
2019-09-18 13:17:17 -07:00
TreeHugger Robot
01082fe6ae Merge "Do not compute outside given range in TextLine" into qt-dev 2019-09-18 20:05:29 +00:00
Yin-Chia Yeh
f83a966064 Camera: fix NPE from bad requestID
This avoid NPE exception and accompanying logspam from binder
callbacks.

Test: N/A
Bug: 141250131
Merged-In: I729f4905c94698c95733570abe92ca3ba9163cc5
Change-Id: I729f4905c94698c95733570abe92ca3ba9163cc5
(cherry picked from commit 67bd78ad73)
2019-09-18 18:14:16 +00:00
TreeHugger Robot
27d33b157c Merge "Passing caller package name to setBluetoothTethering" into qt-qpr1-dev 2019-09-18 00:56:12 +00:00