Alongside SIGNATURE and ACTOR_SIGNATURE policies, add CONFIG_SIGNATURE
policy to overlayable that overlay fulfills if it is signed with the
same certificate as the reference package whose package name is
declared in 'config-signature' tag of SystemConfig and is vetted by
OMS that it's a system pre-installed package.
BUG: 158726924
TEST: regular aapt2, idmap2, OMS tests
Merged-In: I645ee72271496008742886274be0d63a2985201b
Change-Id: I645ee72271496008742886274be0d63a2985201b
This logic was introduced when there could be multiple tasks in the
freeform stack so it was necessary to keep freeform tasks visible even
when they are not in the front. However right now stack and task are the
same so activities became the children of the original stack, and we
don't have the need to keep activities behind the top activity always
visible.
Bug: 161366153
Bug: 166012554
Bug: 167751180
Test: atest ActivityVisibilityTests#testConvert* on freeform first
devices.
Change-Id: Ibeeba5ca8b6b60583eec9cbee9b7209ee17b1037
Merged-In: Ibeeba5ca8b6b60583eec9cbee9b7209ee17b1037
The method checkInterfacePresent seems that should return if the
interface is present or not, but it actually return an opposite
result. It may confuse the caller. E.g. The override method in
VpnTest assume it always returns true in the test. It will fail
the vpn start flow due to interface gone.
Bug: 169215213
Test: atest FrameworksNetTess
Change-Id: I3e9a64f0900336b8205674b94db68f090b4e9ff9
This is a module that aims to have the same contents as
out/soong/hiddenapi/combined-dex-api generated by hiddenapi_singleton.go
inside soong, but generated using a different method that does not
depend on the monolithic droidstubs rule in frameworks/base.
This is part of a series of changes to remove all the dependencies on
the monolithic droidstub rules, so that they can eventually be removed.
Bug: 169034951
Bug: 169395887
Test: m combined-dex-api
Change-Id: I2c4a76aa1d85ef44fc467474afacec20901aee13
Make the IP subnet persistent if it do not conflict with upstream.
It allow client to reuse its IP that usually reduce DHCP procedure.
Bug: 168169687
Test: atest TetheringTests
Change-Id: Iddc5304730dce7b11c5d124b7eddce057d752bbd
PacManager puts up a notification with PendingIntent, but this
PendingIntent is mutable that content can be changed by someone.
So make the PendingIntent to be immutable to fix the content.
Bug: 169790636
Test: atest FrameworksNetTests
Change-Id: I415c8ea715b8152c975a71bdd09822211fd89b5b
The outer interface is taken in the constructor of
LegacyVpnRunner. The interface is used to set the type of
connection type. One interface should not map to more than one
network. Go through all the network is unnecessary if the target
connection is found. Thus, skip other networks if target network
is found.
Bug: 169215213
Test: atest FrameworksNetTests
Test: build and manually test to add legacy vpn
Change-Id: I31096d07177f5ae168becb1b4311f7b8eeac855a
- writeInterfaceToken/enforceInterfaceToken try to get the interface
token with GetStringRegion, so for classes with short enough
interface descriptors, the string is allocated on the stack. A size
of 64 was chosen since the longest interface descriptor in a
frameworks/base AIDL file is ~40 characters.
- remove extra creation of String16 for writeInterfaceToken
Bug: 169674485
Test: atest aidl_integration_test
Change-Id: I78092abaa4df758ab699fcb103aa619b0b426e6c
Instead of having a special case for ImsManager#getInstance,
implement it properly.
Test: atest CtsTelephonyTestCases
Merged-In: I2e986fb2a1086043a25b11c71c005481cea74196
Change-Id: I2e986fb2a1086043a25b11c71c005481cea74196
[RESUBMISSION AFTER REVERT aosp/1443078]
Instead of requiring that listeners poll for an ImsFeature binder
when they go down, modify interfaces to notify listeners when a
new instance of a Binder is available.
Test: atest CtsTelephonyTestCases FrameworksTelephonyTests ImsCommonTests
Test: manual E2E tests of IMS functionality (call, SMS, settings...)
Merged-In: I0bb48f82ecf7a1283be8fd441a787dff587d6d61
Change-Id: I0bb48f82ecf7a1283be8fd441a787dff587d6d61
This makes the build fail when APIs are removed from the (non-updatable)
framework.jar, and e.g. into a module. This is in general not safe, so
is a reasonable default. When it needs overriding (when e.g. creating
now modules), incompatibilities.txt can be used for that.
Bug: 170105267
Test: m checkapi
Change-Id: If608be48276f0a7f76afd714656267ed379ce062
Merged-In: If608be48276f0a7f76afd714656267ed379ce062
This works around a build-system limitation where it does not know
which jars to feed r8 to resolve all classes during proguarding.
Bug: 160453030
Bug: 169931783
Test: build_mainline_modules.sh (with prebuilt sdk)
Change-Id: I3d9f2049cf898b5e551a5c5764df423abaa5e92d
Merged-In: I3d9f2049cf898b5e551a5c5764df423abaa5e92d
The stub libraries had a dependency to framework-internal-util which is
a collection of java static libraries whose source code is
auto-genmerated (e.g. via protoc, aidl, etc.)
The library was added as a dependency because some Java files that are
fed into the metalava for the stub code generation have references to
some of the auto-generated symbols. However, this is more than
necessary. Furthermore, that setup will create a circular dependency
when framework-internal-utils (or its transitive dependencies) have a
dependency to the stub libraries due to 'sdk_version' setting.
Fixing the problem by replacing the dependency to
framework-internal-util with a few number of libraries.
Bug: 169618843
Test: m
Change-Id: I30c953ed220e84ab295548845fff0b26e3c060b6
Dismiss notification even if there is no active DSU installation.
Bug: 170072953
Test: Install a DSU system.
Reboot into guest system and reboot back to host system.
`adb shell gsi_tool wipe`
Press "Discard" in the DSU notification, the notifiction is dismissed.
Change-Id: I6f217c4ba287e4789d61182a12485db60f9605c9
Ultimately we only want Telecom to be able to broadcast this and use it
to open an activity in an app implementing the CallScreeningService API.
Test: Added CTS permissions verifier test to confirm this is protected.
Bug: 169834488
Change-Id: I0ca1b680b6bacc2597a59714b2c1a3363fe8057f
No diffs vs monoliths. The TARGET_BUILD_APPS issue has been fixed.
Bug: 169034951
Test: for p in "" "system-" "module-lib-"; do
for t in "current" "removed"; do
echo "${p}${t}:"
echo "$(diff -u0 \
<($CANON frameworks/base/api/${p}${t}.txt | sort) \
<($CANON out/soong/.intermediates/frameworks/base/api/frameworks-base-api-${p}${t}-merged.txt/gen/${p}${t}.txt | sort))"
done
done
(cherry picked from commit cfb26e3b4c)
Change-Id: I1f637b69d96c0b86f4f30da6b68f06a382e50d28
HIDL Java never originally supported passthrough HALs. However, even
though after a series of bug fixes were created, they are believed to
work, they are still untested, and there is a desire to avoid adding
additional complexity by introducing this usecase, which hasn't been
needed from the birth to the beginning of the deprecation of HIDL.
Bug: 169369810
Test: RemoteException, instead of silent failure
10-01 22:25:30.691 3701 3701 E android_os_HwBinder: Local Java Binder not supported.
10-01 22:25:30.691 3701 3701 E android_os_HwBinder: Uncaught exception!
10-01 22:25:30.692 3704 3704 E HidlTestJava: Error
10-01 22:25:30.692 3704 3704 E HidlTestJava: android.os.RemoteException: HwBinder Error: (-2147483648)
10-01 22:25:30.692 3704 3704 E HidlTestJava: at android.os.HwRemoteBinder.transact(Native Method)
10-01 22:25:30.692 3704 3704 E HidlTestJava: at android.hardware.tests.baz.V1_0.IBaz$Proxy.haveSomeStructWithInterface(IBaz.java:2497)
10-01 22:25:30.691 3701 3701 E android_os_HwBinder: Local Java Binder
Change-Id: Ic69c4c860fd5b93320c249ab460bf1c6192fe3e2