Commit Graph

468813 Commits

Author SHA1 Message Date
Bernardo Rufino
353c754cd0 Remove FLAG_SHOW_FOR_ALL_USERS to avoid crash
Temporarily removing flag to avoid crash in bug linked while we figure
out a solution for this. More details on bug linked.

Test: 1. Settings > Security > Enable Screen pinning.
      2. From overview > Tap on any app info > Select screen pinning
         > Tap on home bar and observe logcat
      3. Verify no crash
Bug: 149408635
Change-Id: Ieba081eae3f0cd66f99c54a2deb4e9653ec4cd9d
2020-02-13 15:20:24 +00:00
Richard Coles
e6c57082d8 Merge "Disable CFI in libpac." 2020-02-13 15:14:42 +00:00
Menghan Li
b9d84550d5 Merge "Remove the toast null pointer checker" 2020-02-13 14:49:53 +00:00
Beverly Tai
aead434f80 Merge "Add NotifCollection dismiss methods" 2020-02-13 14:48:42 +00:00
Automerger Merge Worker
cc104cc3ec Merge "Add @ChangeId for CTS test" am: 8e08b87e82 am: 1a321133af am: 914b5ecc9f
Change-Id: Idaa31b3c471e5a747fd9b8f705c47872264a062e
2020-02-13 14:43:54 +00:00
Antoan Angelov
be26a656e7 Merge "Autolaunch when active tab has 1 target and inactive tab has 0 targets." 2020-02-13 14:33:24 +00:00
Alex Johnston
090fa3c637 Add permission to ACTION_RESET_PROTECTION_POLICY_CHANGED
* Introduced new permission MANAGE_FACTORY_RESET_PROTECTION
  which allows an application to set a factory reset
  protection (FRP) policy.
* Added the new permission as the receiver permission when sending
  a broadcast in setFactoryResetProtectionPolicy.

Bug: 148596703
Test: atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testFactoryResetProtectionPolicy
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testFactoryResetProtectionPolicy

Change-Id: I2a9c859c2304c12b58d7f16e6bae6dac15d3f8eb
2020-02-13 14:31:15 +00:00
Automerger Merge Worker
914b5ecc9f Merge "Add @ChangeId for CTS test" am: 8e08b87e82 am: 1a321133af
Change-Id: I89c520b19dca046b4ed49028de627ace16f11ee2
2020-02-13 14:26:23 +00:00
Automerger Merge Worker
1a321133af Merge "Add @ChangeId for CTS test" am: 8e08b87e82
Change-Id: Iedf068f910721679097ccd0f222e844c2448f837
2020-02-13 14:16:20 +00:00
Nikita Ioffe
8f0f950227 Merge "Log UserspaceRebootReported atom from system_server" 2020-02-13 14:12:24 +00:00
Song Pan
6a0fd8b041 Implement the InstallerAllowedByManifest rule.
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/integrity
Test: atest frameworks/base/core/tests/coretests/src/android/content/integrity
Bug: 148780440
Change-Id: Ie452e2a8a93b31ee91ae6d3e119212684c022c6a
2020-02-13 13:56:28 +00:00
Andrei-Valentin Onea
8e08b87e82 Merge "Add @ChangeId for CTS test" 2020-02-13 13:51:38 +00:00
Pavel Grafov
a210870598 Merge "Add COPE related metric." 2020-02-13 13:42:06 +00:00
menghanli
1cb9b23177 Remove the toast null pointer checker
The crash happens on the user long press volume key
3 seconds to trigger the accessibility service and pop up toast.

Bug: 142529032
Test: Manual test
Change-Id: I64b939b1efba772a5ea9ca55b00ee1e29ab26f37
2020-02-13 13:33:57 +00:00
Wale Ogunwale
595316bb20 Merge "Revert "Revert "Revert "Enable insets flag for IME"""" 2020-02-13 13:18:56 +00:00
Wale Ogunwale
13c9a90696 Revert "Revert "Revert "Enable insets flag for IME"""
This reverts commit 925c658631.

Reason for revert: Causing WindowManager pre-submits to fail.

Change-Id: I11dfc87e7fb2741b237688865eeefbd9e29dc981
2020-02-13 13:17:45 +00:00
Peter_Liang
515b989fb8 Change the attribute format of htmlDescription.
After the discussion, shouldn't let developers use the general
string which is non resource id. And only support the resource id string.

Bug: 142532186
Test: manual test
Change-Id: I912effc500c72d2ac83cc344f4e4099f6f469652
2020-02-13 21:08:39 +08:00
Dan Zimmerman
a05766e507 [DexLoadReporter] Report classloader contexts directly from classloader
At the moment classloader contexts are incorrectly computed in the
PackageManager for secondary dex files. There are two issues:

(1) The wrong computed classLoaderContext will be reported for a secondary
    dex file if it was loaded at the same time as a primary dex file
    - This is due to the continue statement that doesn't increment
      dexPathIndex
(2) If a secondary dex file was loaded with a shared library then that
    shared library info isn't passed through the dex load reporting
    infrastructure, and thus its classloader context is incorrectly computed
    in PackageManager.

In order to fix the issues described above & prevent further classloader
context computation divergences between the package manager and the
runtime, lets compute the classloader context in the runtime at dex load
time and report the expected classloader context directly to
DexLoadReporter (and thus the package manager).

Notes: This is mostly just a refactor (i.e. there are a lot of line
changes, but functionally speaking this set of CLs doesn't do much
except change where the classloader context is computed)

Addendum: The bugs described above could also be fixed by:
- changing DexLoadReporter to report information about shared libraries that
  the reported classloaders depend on to PackageManager
- Teach DexoptUtils.processContextForDexLoad about shared libraries
- Fix dexPathIndex calculation in DexManager

I opted for this set of changes instead because this reduces the
possibility of context computation divergence between the framework and the
runtime. Additionally it feels more "solid" that the classloader context
is now computed directly when a dex file is loaded, rather than the
context recreated later on in the PackageManager.

Test: atest com.android.server.pm.dex.DexManagerTests
Test: atest com.android.server.pm.PackageManagerServiceTest
Test: Install app depending on shared library & uses secondary dex
files; adb shell pm bg-dexopt-job; launch app and see odex file
successfully loaded (from smaps/no logcat errors)

Bug: 148494302
Change-Id: I00357cfe086ff149f92c1078c6df6daa713c8f7c
2020-02-13 04:31:55 -08:00
Kyunglyul Hyun
f108d2f54c Link MediaRouter2 from MediaRouter
Recommend using MediaRouter2 over MediaRouter

Bug: 148379928
Test: N/A
Change-Id: I0fea9f46f6956a42399b9c9b742438168e7b20a7
2020-02-13 21:28:19 +09:00
Anna Malova
b186af1bfb Disable CFI in libpac.
Bug: 147359729
Bug: 145990493
Test: Run proxy CTS tests on cuttlefish
Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testProxyPacProxyTest

Change-Id: I5b1bb53b3acb2b5587657ce266070ca7c09f2f9d
2020-02-13 12:20:31 +00:00
Joanne Chung
1676bec234 Prevent crash app when AutofillManager#startSessionLocked() is called
Bug: 141165119
Test: atest CtsAutoFillServiceTestCases
Test: manual. Install sample app in bug and make sure app does not
crash and log error after applying the fix.

Change-Id: If61553126b694a0d520691a963f728cb46cb521d
2020-02-13 20:19:39 +08:00
Ricky Wai
88b369a487 Mount private volume hook after prepareUserData
As CE and DE data directory may not be ready when volume is mounted
(like a new volume). We try to mount data mirror after user data is
prepared. It will skip mounting data mirror if it's already mounted.

Bug: 149027213
Test: After reverting ag/10156695 and aosp/1218838, can see virtual disk
is mounted correctly in adb shell mount, and test app works and mounted
correctly after pm move-package.

Change-Id: If433914a93f7e6154f31715869f52b387157b2dd
2020-02-13 12:00:13 +00:00
Automerger Merge Worker
4bfcfe795f Merge "Add Intdef annotation for eventId in logEvent" am: 3fa7b28384 am: 0dbbbdf479 am: bf3b421486
Change-Id: I7caa207fb35e8088e50de0651a72a6d9628e7ce2
2020-02-13 11:24:43 +00:00
Automerger Merge Worker
bf3b421486 Merge "Add Intdef annotation for eventId in logEvent" am: 3fa7b28384 am: 0dbbbdf479
Change-Id: I347743db825730d5c1d3b0e56b7527ce9cb3df02
2020-02-13 11:10:15 +00:00
Automerger Merge Worker
0dbbbdf479 Merge "Add Intdef annotation for eventId in logEvent" am: 3fa7b28384
Change-Id: Ic9b5ea605164340d5c2461eb7a1a752bb5b36bad
2020-02-13 10:56:35 +00:00
Bernardo Rufino
83d9034a37 Merge "Use SDK_INT constant in the javadoc of SAW intents" 2020-02-13 10:52:01 +00:00
Bernardo Rufino
4a0b15a1dc Merge "Add unit tests for ToastUI" 2020-02-13 10:50:10 +00:00
Chiachang Wang
3fa7b28384 Merge "Add Intdef annotation for eventId in logEvent" 2020-02-13 10:44:57 +00:00
hughchen
b3d68f670f List most recently disconnected devices in the List
- This CL use getMostRecentlyConnectedDevices() to get the
  most recently disconnected devices.
- Register CachedBluetoothDevice.Callback to oberve the device
  connection state used to update UI.
- Update UI when receive onRoutesRemoved().
- Add getMostRecentlyConnectedDevices() and
  setMostRecentlyConnectedDevices() in ShadowBluetoothAdapter.java
- Add test case.

Bug: 149267220
Test: make -j42 RunSettingsLibRoboTests
Change-Id: I43660dc76cf5194cb24d83b5a17d4725fe750e6a
2020-02-13 18:11:24 +08:00
Yi-Ling Chuang
e2b34e433f Add a feature flag for contextual home v2.
Bug: 143055685
Test: rebuild
Change-Id: I6ab53dc05a07aa8fc4cadd9b555d049fd42c7315
2020-02-13 18:05:38 +08:00
Alex Johnston
7ab8a28306 Merge "Rename lockdown admin configured networks API" 2020-02-13 09:51:00 +00:00
SongFerngWang
e0ab4318cc Config of LTE signal strength default value remove SNR
parameters_used_for_lte_signal_bar_int default value set
"RSRP = 1 << 0"

Bug: 146317112
Test: 1. atest SignalStrengthTest.java
2. atest cts/tests/tests/telephony/current/src/android/telephony/cts/SignalStrengthTest.java
Change-Id: I75d5719a743ce815990a17c640bfb15e47d7802a
Merged-In: Ifd8ba60f112832aac975974e5f29290ac48c18b2
2020-02-13 17:29:12 +08:00
SongFerngWang
680c986fb5 Config of LTE signal strength default value remove SNR
parameters_used_for_lte_signal_bar_int default value set
"RSRP = 1 << 0"

Bug: 146317112
Test: 1. atest SignalStrengthTest.java
2. atest cts/tests/tests/telephony/current/src/android/telephony/cts/SignalStrengthTest.java
Change-Id: Ifd8ba60f112832aac975974e5f29290ac48c18b2
2020-02-13 17:16:39 +08:00
Sunny Shao
9de5cca3fe Add a SchedulesProvider
- Provide an abstract api named getScheduleInfoList.
- Implement a ScheduleInfo class.

Fixes: 148995400
Test: compilation
Change-Id: I236627daa478fb2d2d138a8832680b1ec2464b3b
2020-02-13 17:04:20 +08:00
Automerger Merge Worker
4dad38c02b Merge "Change timestamp unit from nanos to millis" am: 4aee28ea31 am: 3a63fa76ed am: f5ef40c934
Change-Id: I4db855e9cf6e39c128b2ece9d4c61c326e919b3c
2020-02-13 09:03:25 +00:00
Automerger Merge Worker
f5ef40c934 Merge "Change timestamp unit from nanos to millis" am: 4aee28ea31 am: 3a63fa76ed
Change-Id: I50f8f739eaf93050cc3f282aca273af5dc6a8e3c
2020-02-13 08:51:40 +00:00
Bernardo Rufino
c692869c1e Use SDK_INT constant in the javadoc of SAW intents
Instead of hardcoding 11.

Bug: 146563745
Test: Builds
Change-Id: I3e4002134010558b224492512bd76958edc8e4dc
2020-02-13 08:51:22 +00:00
Bernardo Rufino
c05f6adebc Add unit tests for ToastUI
Bug: 144754526
Fix: 147802103
Test: atest ToastUITest
Change-Id: I277db0d8770da62fcfeaa794a7df44e500396733
2020-02-13 08:51:07 +00:00
Louis Chang
b1a3e7ede0 Prevent position topmost task to top
Home stack was reordered to bottom after user switched. So, we
were able to navigate through all tasks by back key.

Position topmost task to top doesn't seem necessary, but had
unintentionally moved its parent to top.

Bug: 148087585
Test: switch user and go back
Change-Id: If0230a7ef5a118b442bea72e7a35defe9d4dea75
2020-02-13 16:47:10 +08:00
Robert Horvath
40fd197d0d Merge "Add additional dirty checks in updateWakefulnessLocked" 2020-02-13 08:40:47 +00:00
Anna Malova
f8bd2c5bdf Merge "Use synchronize methods instead of synchronized blocks in PacWebView." 2020-02-13 08:37:54 +00:00
Benedict Wong
64e8db802c Implement Ikev2VpnRunner
This change adds the implementation for IKEv2/IPsec VPNs.

Bug: 144246767
Test: Manually tested
Change-Id: I5ccec756cec49ccf57ccc4d5ad800eeb5d595a76
2020-02-13 00:33:44 -08:00
Automerger Merge Worker
3a63fa76ed Merge "Change timestamp unit from nanos to millis" am: 4aee28ea31
Change-Id: I714f88d77722e3794f5527e6d10161632be2fba4
2020-02-13 08:32:34 +00:00
Automerger Merge Worker
98e89b627c Merge "Fix incorrect interpolation of active bucket for partial requests." am: 96e15285ad am: 96fc3f8e20 am: b8da3eb33d
Change-Id: I3a7df5061e0a2a90231072a5cd3e8c799302b346
2020-02-13 08:26:15 +00:00
Mingming Cai
4aee28ea31 Merge "Change timestamp unit from nanos to millis" 2020-02-13 08:16:18 +00:00
Automerger Merge Worker
b8da3eb33d Merge "Fix incorrect interpolation of active bucket for partial requests." am: 96e15285ad am: 96fc3f8e20
Change-Id: I1d6aa0c23fd227eca478e4a6ab5fd7dd26e4c297
2020-02-13 08:07:01 +00:00
Automerger Merge Worker
96fc3f8e20 Merge "Fix incorrect interpolation of active bucket for partial requests." am: 96e15285ad
Change-Id: Ibfaf1e3d13ce758323c30381ba44702b6016d9eb
2020-02-13 07:53:18 +00:00
Louis Chang
e5d3d7eb4e Force stop app if it has failures during trial launch
Activities could be remained at foreground when it has failures
in trial launch, which affects testing results of other apps.

Bug: 149326995
Test: atest google/perf/app-startup/hermetic-apps/cold-dropcache-test
Change-Id: Id364461ff5a97384590d1dc7cfb59cc8cf4e88a6
2020-02-13 15:39:27 +08:00
Maciej Żenczykowski
96e15285ad Merge "Fix incorrect interpolation of active bucket for partial requests." 2020-02-13 07:37:57 +00:00
Automerger Merge Worker
c4d21d434e [automerger skipped] Merge "Add permission check for CaptivePortal#reevaluateNetwork" am: 4940da0b98 am: 8c5e78eae6 am: b41fe0a9a3 -s ours
am skip reason: Change-Id I559d42089aeb09801d14c251c5165fca793c3cb3 with SHA-1 a1b805852e is in history

Change-Id: I312db6a0bd341833c53f83be3d72da5b1bf9d7cf
2020-02-13 07:29:44 +00:00