Commit Graph

640958 Commits

Author SHA1 Message Date
kholoud mohamed
2c09c34140 Fix security vulnerability in DPMS#isProvisioningAllowed
isProvisioningAllowed was calling packageManager#getPackageUidAsUser for
the provided packageName to compare against the callerUid, this call
throws a NameNotFoundException if the package isn't installed. This allows the caller to identify if an package is installed or not without holding the QUERY_ALL_PACKAGES permission.
This is now changed to call packageManager#getPackagesForUid for the calling uid and comparing it against the provided packageName.
If an uninstalled package is provided, it will now fail with a general
error message "Caller uid doesn't match the one for the provided package."

Test: Confirmed that the PoC app can no longer query which packages are
installed
Test: atest com.android.cts.devicepolicy.CustomManagedProfileTest#testIsProvisioningAllowed
Bug: 184525395

Change-Id: I13135d941f4944b4313ab2a2b20f1af30a5880a5
2021-04-29 13:36:57 +01:00
Kholoud Mohamed
5f1dcc5d8f Merge "Fix security vulnerability in DPMS#setProfileOwner" into sc-dev 2021-04-29 12:35:01 +00:00
Bill Yi
5f8034930c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I508fe5c7565a8d3ba0f506cf9b981da98fc86061
2021-04-29 12:28:08 +00:00
Anton Hansson
059a42d17e Merge "Convert java_library_static to java_library" am: 0f6542d422 am: 6b26dfae04 am: 76dbe0d124
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1686656

Change-Id: I381ce7489c4747a3f26d2821b2b1acdb2dab3195
2021-04-29 11:38:31 +00:00
Aravind Angadi
736b8cdeb5 CEC: Drop TODOs marked as fixed/obsolete
Bug: 159901363
Test: None
Change-Id: Ibc18c8eafd65bba6f8b179e20034a1b8fd78f324
2021-04-29 17:02:26 +05:30
Jordan Demeulenaere
147de5aa3d Fix HUN launch animation.
This CL fixes HUN launch animation by making sure that the HUN is hidden
only when the launch animation is ended, cancelled, aborted or timed
out.

See b/186389197#comment2 for before/after videos.

Bug: 186389197
Test: Click a HUN notification
Test: atest ActivityLaunchAnimatorTest
Change-Id: I3c8e1d8195124946aef5a25c411b6913157179b8
2021-04-29 13:30:43 +02:00
Aravind Angadi
fb3272ffc5 CEC: Drop obsolete method
Discarding switchToRelevantInputForDeviceAt method

Bug: 159901363
Test: make
Change-Id: Iedc08d5354736db24e9f32c336cc6004390a30a6
2021-04-29 17:00:33 +05:30
Anton Hansson
76dbe0d124 Merge "Convert java_library_static to java_library" am: 0f6542d422 am: 6b26dfae04
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1686656

Change-Id: I7bb3bbb2a4f674328b5e43f91c5f25885e391895
2021-04-29 11:21:57 +00:00
Mihai Popa
d32571e9b5 Dismiss magnifier correctly in concurrent editing scenario
Fixes: 186505600
Test: manual testing
Change-Id: I864f03e976be92c232f51a576043cb49731cda26
2021-04-29 11:04:59 +00:00
kholoud mohamed
a74b54f7f9 Add metrics in AccountManager
Add metrics for addAccount, addAccountExplicitly,
startAddAccountSession, and getAuthToken

Bug: 182980755
Test: verified manually using
make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive 103

Change-Id: I6cc0f9cb7a4b1e53d22ddcef0f03e7d42587b42e
2021-04-29 12:01:58 +01:00
Anton Hansson
6b26dfae04 Merge "Convert java_library_static to java_library" am: 0f6542d422
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1686656

Change-Id: I9f7ac868de9b259a1162597e819e7b1b900298bb
2021-04-29 11:00:32 +00:00
Ming-Shin Lu
a891293720 Merge "Don't attach IME screenshot when performing non-task transition" into sc-dev 2021-04-29 10:59:51 +00:00
Mill Chen
e6d4fbb189 Merge "Make collapsing toolbar load font synchronously" into sc-dev 2021-04-29 10:57:07 +00:00
Anton Hansson
0f6542d422 Merge "Convert java_library_static to java_library" 2021-04-29 10:45:25 +00:00
Jeff Chang
64458eaa1f Merge "Start activity with focus root task for staged split" into sc-dev 2021-04-29 10:35:31 +00:00
TreeHugger Robot
00ea5427b6 Merge "Fix pass null TranslationCapability to dispatchRequestTranslation()" into sc-dev 2021-04-29 10:29:56 +00:00
Kholoud Mohamed
d462813702 [automerger skipped] Merge "Add a new permission to install testOnly apps" am: 71d89f5d0d am: bc7a72187d am: d4f1cb46f3 -s ours
am skip reason: Merged-In I047a4013fb3462db3487eab2d1635ea75ae29264 with SHA-1 dead379e48 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689746

Change-Id: Ib090f41ce6141b3885066aab6f89c1bd0174a543
2021-04-29 10:27:54 +00:00
Treehugger Robot
fe69da2d49 [automerger skipped] Merge "Add getters to NetworkStateSnapshot" am: 2f83b6a72d am: 289a438f06 am: bbf4c3c2ce -s ours
am skip reason: Merged-In Id1707753b42ae88d2b95e4bd00a792609434e4f5 with SHA-1 d78c60c10a is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684649

Change-Id: Ice81dc86428db24ce535ad052e5b594e18d401b8
2021-04-29 10:26:50 +00:00
Lucy Chang
83cb5cca94 Merge "Adds install source checks for accessibility service" into sc-dev 2021-04-29 10:17:05 +00:00
Bernardo Rufino
dc3727ebd7 Exempt the default browser from trampoline restrictions
After conversations with Chrome team, it was decided that we would
exempt the default browser from trampoline restrictions until T on the
grounds that they have to migrate the web ecosystem for a proper
long-term solution and couldn't avoid targeting the latest SDK.

Their transition plan is on: https://docs.google.com/document/d/1ptX0057LGTGCtTT_a3Gi2_MMyh8Pw-FM8aiRH4IWdVs/edit

Test: CTS coming
Test: atest com.android.server.notification.RoleObserverTest
Bug: 185460438
Change-Id: Ie86060c9f202776cb24bb5a58eb15bb7722d090e
2021-04-29 11:14:07 +01:00
Kholoud Mohamed
d4f1cb46f3 Merge "Add a new permission to install testOnly apps" am: 71d89f5d0d am: bc7a72187d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689746

Change-Id: Iddb8ddbd27e4a21dbd34420501797c190480d45a
2021-04-29 10:03:44 +00:00
Treehugger Robot
bbf4c3c2ce Merge "Add getters to NetworkStateSnapshot" am: 2f83b6a72d am: 289a438f06
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684649

Change-Id: Ia6047f77624d6be82dc2528f52f7c77bf5b29c17
2021-04-29 10:02:43 +00:00
Nataniel Borges
4b2f1da126 Fix pip window visibility assertions
1) Fix `Could not find: PipApp`, the test previously used the launcher name, instead of the window name for assertion

2) The command previously missed a `verify` call to actually execute the assertion

Bug: 186115871
Bug: 186445782
Test: atest FlickerTests WMShellFlickerTests
Change-Id: Ie9274e273bcda2be24491705cd28d7dc0d5ea5db
2021-04-29 12:02:31 +02:00
Tsung-Mao Fang
9194430a66 Fix the padding for top intro preference
Test: Rebuilt apk and see the screen
Fix: 186717581
Change-Id: I2de39ddbda7a77f9e508101ba0e6497fa13a883a
2021-04-29 17:44:04 +08:00
Kholoud Mohamed
bc7a72187d Merge "Add a new permission to install testOnly apps" am: 71d89f5d0d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689746

Change-Id: I337626f46f9e44322c537ad2243dc0185f45b83e
2021-04-29 09:43:10 +00:00
Treehugger Robot
289a438f06 Merge "Add getters to NetworkStateSnapshot" am: 2f83b6a72d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684649

Change-Id: I3263514a5d75141c81e5f9d7389603ed369e95df
2021-04-29 09:39:19 +00:00
Kholoud Mohamed
71d89f5d0d Merge "Add a new permission to install testOnly apps" 2021-04-29 09:35:22 +00:00
Eran Messeri
e192379833 Document access to device identifiers on managed devices
Document when, on a managed device or profile, the DPC can
read hardware identifiers, and when it must use the new
enrollment-specific ID.

Bug: 172636282
Test: m docs
Change-Id: I783725853d0654d49518a38d8d8d04b3ca7e3ab0
2021-04-29 10:33:07 +01:00
Bowgo Tsai
d5b4a59bc0 Merge "Revert "[SettingsProvider] Remove @Readable for NFC_PAYMENT_DEFA..."" into sc-dev 2021-04-29 09:29:50 +00:00
Treehugger Robot
16897d63f2 [automerger skipped] Merge "Add getters to UnderlyingNetworkInfo" am: e2e8b9ce88 am: b2551d4cc9 am: 2d96bac3aa -s ours
am skip reason: Merged-In Id59744097208d91298a25ef110ade91a9cf291a1 with SHA-1 f6008978c4 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684651

Change-Id: I9ac1f63c16debb8269b240380257bffd934021d1
2021-04-29 09:23:49 +00:00
Treehugger Robot
2f83b6a72d Merge "Add getters to NetworkStateSnapshot" 2021-04-29 09:20:34 +00:00
Michał Brzeziński
4380046455 Merge "Removing unnecessary QuickSettings clip bounds in split shade" into sc-dev 2021-04-29 09:14:41 +00:00
Martijn Coenen
166400b045 Merge "Revert "Revert "Fixup app-private dirs that are not writable.""" into sc-dev 2021-04-29 09:02:45 +00:00
Treehugger Robot
2d96bac3aa Merge "Add getters to UnderlyingNetworkInfo" am: e2e8b9ce88 am: b2551d4cc9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684651

Change-Id: I33d2bbca5a72ab8500a7886073c9f4c4d1b84925
2021-04-29 08:57:50 +00:00
Alina Zaidi
0a33298578 Merge "Change background color of work widgets, for when work profile is off." into sc-dev 2021-04-29 08:57:45 +00:00
TreeHugger Robot
51cac482f5 Merge "Update documentation for activity flags." into sc-dev 2021-04-29 08:48:15 +00:00
Jayachandran Chinnakkannu
1fe2aa14c4 Add new provisioning flag for VOIMS opt-in
Bug: 177009570
Test: By Manual
1. Call setProvisioningIntValue() and getProvisioningIntValue()

2. Enable/disable the value and dial a VoLTE call
2-1. Set value to 1
2-2. Dial a call
2-3. From ImsPhoneCallTracker and GsmCdmaPhone's log, VoLTE is
 registered and device is trying IMS PS call
2-4. Set value to 0
2-5. Dial a call
2-6. From ImsPhoneCallTracker and GsmCdmaPhone's log, VoLTE is
unregistered and device is trying (non-IMS) CS call

3. atest

Change-Id: I0b8af8fe6c9a34a56f9e2275df0a03ba093f439e
Merged-In: I0b8af8fe6c9a34a56f9e2275df0a03ba093f439e
2021-04-29 08:25:21 +00:00
Treehugger Robot
b2551d4cc9 Merge "Add getters to UnderlyingNetworkInfo" am: e2e8b9ce88
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684651

Change-Id: I97222bb04bdea78178741245016658cad7f082dc
2021-04-29 08:16:36 +00:00
Wilson Wu
37051aef38 Make IInputMethodPrivilegedOperations to async (6/N)
-. Remove VoidResultCallback of applyImeVisibility.
   and let it be truly asynchronous.
-. Rename this method to applyImeVisibilityAsync.

Bug: 183587528
Test: atest CtsInputMethodTestCases
Change-Id: Ica564c526223d32641a2485c0c0f3490fe4bfd39
2021-04-29 16:05:05 +08:00
Alex Johnston
412667ddaf Merge "Disable security and network logging COPE" into sc-dev 2021-04-29 08:04:23 +00:00
Edgar Wang
10e7500ac1 Remove dividers of TopIntroPreference
- Following UX request to remove dividers of TopIntro.

Bug: 182854896
Change-Id: I601e87e8f20e25fde3197674f9503ab9dff292a0
Merged-In: I601e87e8f20e25fde3197674f9503ab9dff292a0
Test: manual
(cherry picked from commit b7f3cde587)
2021-04-29 07:57:54 +00:00
Bowgo Tsai
42c0359ff4 Revert "[SettingsProvider] Remove @Readable for NFC_PAYMENT_DEFA..."
Revert "Add an exception for Settings.Secure.NFC_PAYMENT_DEFAULT..."

Revert submission 14326766-b/174151290

Reason for revert: potential test error for b/186717555
Reverted Changes:
I97fcd5550:[SettingsProvider] Remove @Readable for NFC_PAYMEN...
I6e55bef75:Add an exception for Settings.Secure.NFC_PAYMENT_D...

Bug: 186717555
Bug: 182283321
Bug: 174151290
Change-Id: Ib84c57b855ffe10870fda2568a7499746f0d2335
2021-04-29 07:44:33 +00:00
Treehugger Robot
e2e8b9ce88 Merge "Add getters to UnderlyingNetworkInfo" 2021-04-29 07:29:08 +00:00
Grace Jia
d5eb6fb0ef Add D2D sharing level setting APIs.
Test: unit test, cts test
Bug: 163085177
Change-Id: I86f88d68c8629a0329dcde7b2d17928cacec37e7
Merged-In: I86f88d68c8629a0329dcde7b2d17928cacec37e7
2021-04-29 15:27:42 +08:00
SongFerng Wang
09ca8113f5 Merge "Add CAPABILITY_PHYSICAL_CHANNEL_CONFIG_1_6_SUPPORTED" into sc-dev 2021-04-29 07:15:25 +00:00
Joanne Chung
be4bdf0a11 Fix pass null TranslationCapability to dispatchRequestTranslation()
We only provide text-text capability now and when the UiTranslation
APIs are called, the model files should be ready. To simplify the call
flow, we hardcode the TranslationCapability now. If more capabilities
are supported, we will call the API to get the TranslationCapability.

Bug: 183589662
Test: atest CtsTranslationTestCases

Change-Id: Iea1baac7988402298b2577d03adf9d889f45ad53
2021-04-29 15:08:58 +08:00
Tianjie Xu
285e375408 Merge changes Ia43ab0ab,I0c4b91aa am: 474d549f7c am: 38762c75d1 am: af1f784ee0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690266

Change-Id: I0155ccab9da75bf5b5f34825a21003545219b512
2021-04-29 06:31:41 +00:00
Alexander Dorokhine
91568a6dfa Remove AndroidFuture from AppSearch.
It is a hidden API and cannot be used in mainline.

Bug: 181787682
Test: Presubmit
Change-Id: I74a1aafdad8dec110b19ecc61a0668ae380196e7
2021-04-28 23:10:42 -07:00
Tianjie Xu
af1f784ee0 Merge changes Ia43ab0ab,I0c4b91aa am: 474d549f7c am: 38762c75d1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690266

Change-Id: I527307961df8d8e8932b704cb63c959b0f6f4ee8
2021-04-29 06:02:44 +00:00
lucychang
f1f2c84756 Adds install source checks for accessibility service
Adds install source checks for accessibility services. An
accessibility category service must be installed from the
given allow list or not from the default installer if no
allow list provided.

Bug: 182959209
Test: atest AccessibilitySecurityPolicyTest

Change-Id: I023c15b9ebd87785e2f7eb1e218bec4ad006e52f
2021-04-29 05:55:54 +00:00