Commit Graph

11480 Commits

Author SHA1 Message Date
TreeHugger Robot
2b22592e66 Merge "Add FrameworksServicesTests into PackageManager's test plan" 2021-11-30 03:50:33 +00:00
TreeHugger Robot
68572f3333 Merge "[NETREC] Deprecate NetRec" 2021-11-30 02:10:05 +00:00
Jackal Guo
5ed96afb90 Merge "Set CATEGORY_UNDEFINED as default category" 2021-11-30 02:00:24 +00:00
TreeHugger Robot
7a3825459d Merge "Adds the basic API of the attestation verification framework." 2021-11-29 23:15:34 +00:00
Dave McCloskey
b9b25ef742 Adds the basic API of the attestation verification framework.
Bug: 201696614
Change-Id: I59d90091106db6e6343f3a6fb698f01559841137
Test: N/A (non-functional API definition)
CTS-Coverage-Bug: 201337503
2021-11-29 10:08:41 -08:00
Etan Cohen
def47e0e27 [NETREC] Deprecate NetRec
Bug: 194534319
Test: builds
Change-Id: I4583fa7d9700bab80e5606f9f4aad6b162f8bf47
2021-11-29 17:49:13 +00:00
Felka Chang
ce0f0a13dc Add FrameworksServicesTests into PackageManager's test plan
Pixel_3_XL takes 8 minutes and 47.3 seconds to complete 778
com.android.server.pm.* tests in FrameworksServicesTests.
* Using "include-filter": "com.android.server.pm."
* Using @Presubmit annotation
* Using @Postsubmit annotation for the tests calling removeUser
* http://ab/I78200009998421269

Pixel_3_XL takes 11 minutes and 26 seconds to complete 778
com.android.server.pm.* tests in FrameworksServicesTests.
* http://ab/I40700009998455294

Bug: 180650365

Test: TP="FrameworksServicesTests:com.android.server.pm"; \
  TP_LIB="${TP}.parsing.library" ; atest \
  ${TP}.ApexManagerTest \
  ${TP}.AppsFilterTest \
  ${TP}.BundleUtilsTest \
  ${TP}.CompatibilityModeTest \
  ${TP}.CrossProfileAppsServiceImplTest \
  ${TP}.InstallerTest \
  ${TP}.KeySetManagerServiceTest \
  ${TP}.ModuleInfoProviderTest \
  ${TP}.PackageInstallerSessionTest \
  ${TP}.PackageManagerServiceTest \
  ${TP}.PackageManagerSettingsTests \
  ${TP}.PackageParserTest \
  ${TP}.PackageSignaturesTest \
  ${TP}.PackageUserStateTest \
  ${TP}.PackageVerificationStateTest \
  ${TP}.ParallelPackageParserTest \
  ${TP}.PreferredComponentTest \
  ${TP}.RestrictionsSetTest \
  ${TP}.ScanTests \
  ${TP}.SELinuxMMACTest \
  ${TP}.ShortcutManagerTest2 \
  ${TP}.ShortcutManagerTest3 \
  ${TP}.ShortcutManagerTest4 \
  ${TP}.ShortcutManagerTest5 \
  ${TP}.ShortcutManagerTest6 \
  ${TP}.ShortcutManagerTest7 \
  ${TP}.ShortcutManagerTest8 \
  ${TP}.ShortcutManagerTest9 \
  ${TP}.ShortcutManagerTest10 \
  ${TP}.ShortcutManagerTest11 \
  ${TP}.SuspendDialogInfoTest \
  ${TP}.UserDataPreparerTest \
  ${TP}.UserManagerServiceCreateProfileTest \
  ${TP}.UserManagerServiceIdRecyclingTest \
  ${TP}.UserManagerServiceTest \
  ${TP}.UserManagerServiceUserInfoTest \
  ${TP}.UserManagerServiceUserTypeTest \
  ${TP}.UserManagerTest \
  ${TP}.UserRestrictionsUtilsTest \
  ${TP}.UserSystemPackageInstallerTest \
  ${TP}.WatchedIntentHandlingTest \
  ${TP}.backup.BackupUtilsTest \
  ${TP}.dex.ArtStatsLogUtilsTest \
  ${TP}.dex.DexMetadataHelperTest \
  ${TP}.dex.DexoptOptionsTests \
  ${TP}.dex.DexoptUtilsTest \
  ${TP}.dex.DynamicCodeLoggerTests \
  ${TP}.dex.PackageDexUsageTests \
  ${TP}.dex.PackageDynamicCodeLoadingTests \
  ${TP}.parsing.PackageInfoUserFieldsTest \
  ${TP}.parsing.PackageParserLegacyCoreTest \
  ${TP}.parsing.PackageParsingDeferErrorTest \
  ${TP_LIB}.AndroidHidlUpdaterTest \
  ${TP_LIB}.AndroidNetIpSecIkeUpdaterTest \
  ${TP_LIB}.AndroidTestBaseUpdaterTest \
  ${TP_LIB}.AndroidTestRunnerSplitUpdaterTest \
  ${TP_LIB}.ApexSharedLibraryUpdaterTest \
  ${TP_LIB}.ComGoogleAndroidMapsUpdaterTest \
  ${TP_LIB}.OrgApacheHttpLegacyUpdaterTest \
  ${TP_LIB}.PackageBackwardCompatibilityTest \
  ${TP_LIB}.RemoveUnnecessaryAndroidTestBaseLibraryTest \
  ${TP_LIB}.RemoveUnnecessaryOrgApacheHttpLegacyLibraryTest \
  ${TP}.permission.LegacyPermissionManagerServiceTest
Change-Id: I01efe1b6b88ff9912594048cb6e09fd786e4c983
2021-11-29 17:48:18 +08:00
Xinyi Zhou
97e88eea69 Add NearbyService
Design doc: go/nearby-mainline-highlevel-design

Test: loaded on device.
Bug: 189954300
Change-Id: I399cdba08846a3eca1d7cd9378607b30fa8fd72d
2021-11-27 23:15:38 -08:00
Alex Buynytskyy
36837c8948 Merge "Add public API to obtain digests of a file." 2021-11-24 23:10:27 +00:00
Elliot Sisteron
6d8c763114 Merge "Adding SafetyCenter system service and permission." 2021-11-24 23:05:43 +00:00
Marin Shalamanov
8a40b4bfe3 Merge "Add XML configuration for density" 2021-11-24 12:40:19 +00:00
Anubhav Kakkar
8256a39802 Merge "Remove unnecessary comment character "/**"" 2021-11-24 07:26:32 +00:00
Jackal Guo
4aa280fe1f Set CATEGORY_UNDEFINED as default category
It's possible that there is no tag <application> in the mainfest.
Therefore, category wouldn't be set to CATEGORY_UNDEFINED properly.
Assign the proper default value for this case.

Fix: 207456733
Test: atest AndroidPackageInfoFlagBehaviorTest
Test: atest AndroidPackageParsingEquivalenceTest
Change-Id: I5fb82fea5ccdf216b5825c0c3a254d8be3666c04
2021-11-24 15:01:56 +08:00
Rhed Jao
903e3bbcae Merge "Fix PackageManager did not recognize OTA when only upgrade product" 2021-11-24 01:56:41 +00:00
Marin Shalamanov
a822ccd755 Add XML configuration for density
This CL adds a <densityMap> element to the existing
display device configuration XML files. This can be used
to configure the logical display density per resolution.

Additionally densityMap can be placed in a default.xml file.
This config will be used if there is no per display configuration,
for example for external displays.

If there is no densityMap, the will fallback to the previous
logic and will get the density value provided by SurfaceFlinger
(which is the value of ro.sf.lcd_density).

Bug: 160147805
Fixes: 207330669
Test: atest DensityMapTest DisplayContentTests
Test: manually change the display mode on a device and make sure
    that the density changes (= icons on the launcher stay
    at the same size)
Test: manually on device with config_maxUiWidth make
    sure that when changing to a resolution bigger than
    config_maxUiWidth the density is scaled propertly

Change-Id: I7e31ffb7ab5d1ba4fbeff902d2ddb6fa9b2995fd
2021-11-23 23:56:12 +01:00
Elliot Sisteron
56c1563b3a Adding SafetyCenter system service and permission.
This implements a basic version of go/angel-in-mainline-api, only
for the bits that are unlikely to change (i.e. introduce the ability
for safety sources to provide data to the safety center).

SELinux Policy changes in aosp/1897505 and aosp/1899011

Test: ag/16284943
Ignore-AOSP-First: Yes
Bug: 203098016
Bug: 203400898
Bug: 205111656
Change-Id: I5d139782decf5226f0c4a8dcaed7c5691a86fed4
2021-11-23 21:47:25 +00:00
Elliot Sisteron
c71f19f0fa Merge "Adding intent action for SafetyCenterActivity." 2021-11-23 21:40:43 +00:00
Anubhav Kakkar
3a52228799 Remove unnecessary comment character "/**"
Bug: None
Test: make (change is only in comments)
Change-Id: I0fe398460c7f388d270a20f60985707a49433671
2021-11-23 12:21:39 +00:00
Alex Buynytskyy
578ac90250 Add public API to obtain digests of a file.
Bug: 204208748
Fixes: 204208748
Test: atest ChecksumsTest
Change-Id: I8d52e6b5b4f7156964c64da47c68084472d9c32f
2021-11-22 21:23:22 -08:00
Mark Cwalinski
1da46d96e4 Merge "Update javadoc for EXTRA_SHOWING_ATTRIBUTION" 2021-11-22 18:38:26 +00:00
Jon Eckenrode
2bde8d52ac Merge "Reconciled description of WindowManager with description of Context#createDisplayContext()." am: 92a4b54de5 am: 98951a99f4 am: abce82bc5d am: 75954281b3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1882528

Change-Id: I744c7fe36f8069025d48198cbec08d2a491631ab
2021-11-22 17:20:48 +00:00
Jon Eckenrode
75954281b3 Merge "Reconciled description of WindowManager with description of Context#createDisplayContext()." am: 92a4b54de5 am: 98951a99f4 am: abce82bc5d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1882528

Change-Id: Ib93e924bc133945c119e1bdac7c6ecb643b80a7e
2021-11-22 17:07:17 +00:00
Jon Eckenrode
abce82bc5d Merge "Reconciled description of WindowManager with description of Context#createDisplayContext()." am: 92a4b54de5 am: 98951a99f4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1882528

Change-Id: Icb9a08416599e1dcad31e146a2b8f82bb1ef8281
2021-11-22 16:50:58 +00:00
Jon Eckenrode
98951a99f4 Merge "Reconciled description of WindowManager with description of Context#createDisplayContext()." am: 92a4b54de5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1882528

Change-Id: I894941a064dc61c68722036081f0617c47804c83
2021-11-22 16:38:54 +00:00
Jon Eckenrode
92a4b54de5 Merge "Reconciled description of WindowManager with description of Context#createDisplayContext()." 2021-11-22 16:21:19 +00:00
Anubhav Kakkar
a1749585d3 Merge "Shift execution of Intent.ACTION_LOCALE_CHANGED broadcast to a new broadcast queue dedicated to offload foreground broadcast queue" 2021-11-19 14:01:11 +00:00
TreeHugger Robot
d708f3f010 Merge "Fix ACTION_ONE_HANDED_SETTINGS breaks CTS IntentTest" 2021-11-19 09:53:15 +00:00
Rhed Jao
d150569b03 Fix PackageManager did not recognize OTA when only upgrade product
- Introduce the PackagePartitions.FINGERPRINT to represent the
  fingerprint of the build and all system partitions. Using it to
  determine whether the system update has occurred.

- Update PackageManager relating modules to replace Build.FINGERPRINT
  with the PackagePartitions.FINGERPRINT.

Bug: 135224411
Test: atest PackagePartitionsTest
Change-Id: I4c6244cd71cd0954b4d551f62b81b6ce3e2c4b17
2021-11-19 13:59:52 +08:00
Rhed Jao
e299f5d2ff Merge "Reset component enabled settings when clearing app data" 2021-11-19 02:33:31 +00:00
Bill Lin
d515f6724f Fix ACTION_ONE_HANDED_SETTINGS breaks CTS IntentTest
The CTS test will check new added intent is expected
android.signature.cts.intent.IntentTest#shouldNotFindUnexpectedIntents

If the new added intent should belong to allow list,
we should add it into
cts/tests/signature/intent-check/DynamicConfig.xml

However, in One handed mode case, I think it's make
sense to define in settings provider
frameworks/base/core/java/android/provider/Settings.java

Test: atest android.signature.cts.intent.IntentTest
Fixes: 206824091
Fixes: 206989400

Change-Id: Ibee10261a780737a83f5e5b3dff5c20bc31ceafe
2021-11-19 02:33:01 +00:00
Treehugger Robot
4f10090196 Merge "Create StatsBootstrapAtomService" am: e9f913aee8 am: c2566e6582 am: c74d9d6911 am: c9c355889c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885469

Change-Id: I30eeb8206bca1d8d298977a80bcd35c554e98fe5
2021-11-19 00:40:21 +00:00
Treehugger Robot
c9c355889c Merge "Create StatsBootstrapAtomService" am: e9f913aee8 am: c2566e6582 am: c74d9d6911
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885469

Change-Id: Ia2fa8a3d576b41a0b55cbdd6dc29a3d3126e9cfa
2021-11-19 00:22:11 +00:00
Treehugger Robot
c74d9d6911 Merge "Create StatsBootstrapAtomService" am: e9f913aee8 am: c2566e6582
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885469

Change-Id: I08d70d539650a2bec4e08681f3c6bd7bd12698cd
2021-11-19 00:04:36 +00:00
Treehugger Robot
c2566e6582 Merge "Create StatsBootstrapAtomService" am: e9f913aee8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1885469

Change-Id: I9fe270fa5bffb2edd912ba59fbc6c002497e76b4
2021-11-18 23:48:16 +00:00
Treehugger Robot
e9f913aee8 Merge "Create StatsBootstrapAtomService" 2021-11-18 23:25:21 +00:00
Tej Singh
da79f2a110 Create StatsBootstrapAtomService
Design doc is at go/statsd-bootstrap-logging. Creates a proxy service for
logging atoms from bootstrap processes to statsd. Service has one API,
which converts StatsBootstrapAtom into StatsEvent and logs to statsd.
This should only used by processes that start in the bootstrap namespace
and cannot directly link statsd's libraries to log to statsd.

Bug: 204889815
Test: booted, made sure binder service was published.
Change-Id: I09709a30a42a7a398234c995324f62a0d62ad24f
2021-11-18 13:27:21 -08:00
Anubhav Kakkar
dafeebda80 Shift execution of Intent.ACTION_LOCALE_CHANGED broadcast to a new broadcast queue dedicated to offload foreground broadcast queue
Bug: b/200765359

Test: Check broadcast related bugs such as b/200765359 wherein  foreground broadcasts are taking long time to execute in case when Intent.ACTION_LOCAL_CHANGED is sent by the platform just before them

Change-Id: Ic9cf30cdb0b6d18815b043f1094fb46762fee7d6
2021-11-18 18:40:12 +00:00
Xin Li
10d9972786 Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918
Bug: 205056467
Merged-In: I13199bc39e9445929195f3d15579cbffe94e92b0
Change-Id: I35fa3c6c2abf679c51033f1395a08d511ed8739f
2021-11-18 17:00:37 +00:00
Gavin Corkery
29b5b4da7d Merge "Start SupplementalProcessManagerService" 2021-11-18 09:57:57 +00:00
TreeHugger Robot
95ee224ba8 Merge "Updating documentation for broadcast receivers." 2021-11-17 23:44:33 +00:00
Jacob Hobbie
b887009f0a Updating documentation for broadcast receivers.
Forgot to propagate updated flag documentation to all versions of
register receiver, and
needed to include a link to system broadcasts (which has replaced all
instances of the term protected broadcasts).

Test: comments only, not needed
Bug: 202146686
Change-Id: I61804cd3f3738093bc8a08d2bff6c7a5a863e7f1
2021-11-17 13:58:30 -08:00
Rhed Jao
20ebc021d6 Reset component enabled settings when clearing app data
Introduces a new attriubte named resetEnabledSettingsOnAppDataCleared
for the components in the manifest such as activity, receiver,
provider and service. If the value is true, the enabled settings of
components in the application will be reset to the default value when
the application's user data is cleared.

Bug: 148803217
Test: atest PackageManagerTest
Test: atest AndroidPackageTest
Change-Id: Id10ae9768835b20619122a6435442fbdaefb9318
2021-11-17 19:54:04 +08:00
Mark Cwalinski
97c4d98302 Update javadoc for EXTRA_SHOWING_ATTRIBUTION
Bug: 205738667

Change-Id: Ib32e904163164b8a9dbc5c2cf50b655b35b93a04
2021-11-17 00:13:40 +00:00
Jason Chang
2c06638912 (1/n) Implement One-handed mode Quick Settings tile
Integrate One-handed mode Quick Settings tile with One-handed mode
SettingsProvider changes.

Bug: 201743873
Bug: 202132480

Test: manually test One-handed mode quick settings tile actions.
Test: atest SystemUITests
Change-Id: Ib624ad3196f534dcd07467a8d47ea5ee413d0cd5
2021-11-16 16:47:46 +08:00
Xiaoyu Jin
07d5ae6a67 Merge "Add @SystemApi registerContentObserverForAllUsers in ContentResolver" 2021-11-16 05:16:52 +00:00
Ankita Vyas
fe32fa927d Merge "Add link to the api in the javadoc for Intent.ACTION_LOCALE_CHANGED." 2021-11-16 04:53:46 +00:00
Xiaoyu Jin
c06b02ddba Add @SystemApi registerContentObserverForAllUsers in ContentResolver
Also add ContentObserver#onChange(boolean, Collection, int, UserHandle) so
clients can know the corresponding UserHandle for the notification.

Bug: 203606981
Test: atest CtsContentTestCases and manual testing to verify the observer can get notifications for
all the users.

Change-Id: Icec7e70b71d7de1c15faf1736539f169856304a8
2021-11-16 02:02:16 +00:00
TreeHugger Robot
999f7cec62 Merge "Add feature flag for Android automotive OS templates host" into sc-v2-dev am: 23039de620
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16215805

Change-Id: I87cc82f541f7959782fe668c0e2fdc15b9a218c9
2021-11-13 00:22:05 +00:00
TreeHugger Robot
23039de620 Merge "Add feature flag for Android automotive OS templates host" into sc-v2-dev 2021-11-13 00:09:56 +00:00
TreeHugger Robot
661dc27679 Merge "Add feature flag for Android automotive OS templates host" 2021-11-13 00:09:54 +00:00