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
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
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
- 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
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
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
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
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
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
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