Commit Graph

509067 Commits

Author SHA1 Message Date
Zoran Jovanovic
0f942f99ca OMS: Add config_signature policy handling
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
2020-10-14 14:52:46 -07:00
Treehugger Robot
82cb76f908 Merge "Stop keeping freeform activities visible." 2020-10-07 19:40:05 +00:00
Brad Ebinger
ec6681c927 Merge changes from topic "redo_ims_poll"
* changes:
  Remove "one shot" type of FeatureCallback
  Clean up IMS based interfaces to use a push model instead of poll
2020-10-07 17:49:29 +00:00
Garfield Tan
1bb6900a61 Stop keeping freeform activities visible.
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
2020-10-07 10:43:04 -07:00
Anton Hansson
b0ba7618c8 Merge "Add genrule for combined-removed-dex" 2020-10-07 09:54:43 +00:00
Mark Chien
818da784dd Merge "Make the IP subnet persistent till reboot" 2020-10-07 09:39:29 +00:00
Chiachang Wang
1c7bc039ea Merge "Update to positive logic to better match the method naming" 2020-10-07 08:21:32 +00:00
Chiachang Wang
836af202e0 Merge "Prevent going through unnecessary networks" 2020-10-07 08:21:04 +00:00
Chiachang Wang
8c1372ed1d Update to positive logic to better match the method naming
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
2020-10-07 06:48:15 +00:00
Hai Zhang
1839f9f7f8 Merge "Add myself to system server permission code OWNERS." 2020-10-07 05:31:10 +00:00
Paul Hu
bbab1d3b4f Merge "Make PendingIntent immutable" 2020-10-07 03:53:30 +00:00
Hai Zhang
4e17c9292a Add myself to system server permission code OWNERS.
Test: presubmit
Change-Id: I19a532d54f8126adfae2b3ab50e5b138a90f8c8b
2020-10-07 00:03:33 +00:00
Xin Li
85e07ab8bb Merge "DO NOT MERGE - Merge RP1A.201005.006" 2020-10-06 20:17:27 +00:00
Treehugger Robot
4d96662b1f Merge "Expose getSmsCapacityOnIcc()" 2020-10-06 20:12:05 +00:00
Steven Moreland
d806764162 Merge "HIDL: unsilence error for local Java binder" 2020-10-06 19:38:50 +00:00
Taesu Lee
a248f3586f Expose getSmsCapacityOnIcc()
Unhide getSmsCapacityOnIcc() and it requires READ_PHONE_STATE instead.

Bug: 154878196
Test: Manual

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Merged-in: I86ba39d5073227ff55251fabc614fd3b9347285e
Change-Id: I86ba39d5073227ff55251fabc614fd3b9347285e
2020-10-06 18:13:58 +00:00
The Android Open Source Project
e325f5b1ae DO NOT MERGE - Merge RP1A.201005.006
Bug: 168212094
Merged-In: Iac1f8eafc4d25a5a7c8b6d8eed3f6686705fc2fb
Change-Id: Id9e5f7c81b0629d5b4dde43271d0120be43f16be
2020-10-06 16:49:03 +00:00
Tyler Gunn
2046a9dced Merge "Make android.telecom.action.POST_CALL a protected broadcast." 2020-10-06 16:12:23 +00:00
Anton Hansson
a15427af11 Add genrule for combined-removed-dex
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
2020-10-06 12:58:51 +00:00
markchien
6626f7bcc9 Make the IP subnet persistent till reboot
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
2020-10-06 20:25:19 +08:00
Mohammad Islam
f9e818047f Merge "Rewrite how we abandon sessions" 2020-10-06 11:24:08 +00:00
Treehugger Robot
e50b18b0c6 Merge "Add synchronized to make sure data correctness" 2020-10-06 10:47:33 +00:00
paulhu
5eba425107 Make PendingIntent immutable
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
2020-10-06 16:23:44 +08:00
Chiachang Wang
c3207fbf8d Prevent going through unnecessary networks
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
2020-10-06 15:38:32 +08:00
Yo Chiang
3313038017 Merge "Dismiss DSU notification in executeDiscardCommand()" 2020-10-06 04:24:41 +00:00
Treehugger Robot
8dcc0164cc Merge "Remove vts10 related configs" 2020-10-05 20:48:26 +00:00
Treehugger Robot
e7899bcd32 Merge "Bluetooth: Spell mandatory correctly" 2020-10-05 19:55:21 +00:00
Steven Moreland
57fd6a5f10 Merge "Binder interface tokens: remove extra mallocs" 2020-10-05 18:55:58 +00:00
Steven Moreland
b219d80fb5 Binder interface tokens: remove extra mallocs
- 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
2020-10-05 18:55:40 +00:00
Anton Hansson
a474d0e92f Merge "Add last_released checking for non-updatable API" 2020-10-05 18:41:06 +00:00
Myles Watson
70b5ba179c Bluetooth: Spell mandatory correctly
Bug: 169654068
Test: compilation
Change-Id: Ibb0046180760e27d6991ae17849a7405738b6f01
2020-10-05 11:23:24 -07:00
Dan Shi
9eeeaf5cc8 Remove vts10 related configs
Bug: 169581727
Test: build
Change-Id: I3ffbad3d70662aaca948943c9dfaa47b37597922
2020-10-05 11:04:45 -07:00
Brad Ebinger
a7df4c0be6 Remove "one shot" type of FeatureCallback
Instead of having a special case for ImsManager#getInstance,
implement it properly.

Test: atest CtsTelephonyTestCases

Merged-In: I2e986fb2a1086043a25b11c71c005481cea74196
Change-Id: I2e986fb2a1086043a25b11c71c005481cea74196
2020-10-05 11:04:40 -07:00
Brad Ebinger
1e9cc7b2e5 Clean up IMS based interfaces to use a push model instead of poll
[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
2020-10-05 11:03:59 -07:00
Anton Hansson
3258a479d3 Add last_released checking for non-updatable API
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
2020-10-05 16:23:27 +01:00
Anton Hansson
c2ee800f20 Merge "Re-submit "Add genrules for merged removed.txt files"" 2020-10-05 12:48:39 +00:00
Anton Hansson
c29f606cc7 Merge "Explicitly reference framework-wifi app build rule" 2020-10-05 12:27:45 +00:00
Treehugger Robot
68d17855ea Merge "Build stub libraries with smaller deps" 2020-10-05 11:17:01 +00:00
Anton Hansson
35d5ae3aa0 Explicitly reference framework-wifi app build rule
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
2020-10-05 11:43:39 +01:00
Treehugger Robot
f1df6bf33a Merge "Reconnect CEC HAL callback" 2020-10-05 09:38:35 +00:00
Jiyong Park
c0f8a28e54 Build stub libraries with smaller deps
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
2020-10-05 18:30:33 +09:00
Yo Chiang
569c31cef6 Dismiss DSU notification in executeDiscardCommand()
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
2020-10-05 08:57:50 +00:00
Treehugger Robot
0989373740 Merge "Make PrivateAddressCoordinator ignore vpn network" 2020-10-05 04:10:48 +00:00
Tyler Gunn
c99d9173d6 Make android.telecom.action.POST_CALL a protected broadcast.
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
2020-10-02 18:24:53 +00:00
Anton Hansson
3c1aa119fc Re-submit "Add genrules for merged removed.txt files"
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
2020-10-02 17:48:07 +01:00
Steven Moreland
1f125fcd66 Merge "Move AIDL files to declared packages." 2020-10-02 16:37:24 +00:00
Rick Yiu
fe6160ab9c Merge "Revert "Refine documentation for Process.setThreadPriority"" 2020-10-02 12:23:53 +00:00
Rick Yiu
b01d0fe127 Merge "Revert "Implement the ThreadPrioritySetter interface"" 2020-10-02 12:23:53 +00:00
Treehugger Robot
e80c7cb69a Merge "FileBridge: fix fd ownership mismanagement." 2020-10-01 22:35:55 +00:00
Steven Moreland
028f65fa86 HIDL: unsilence error for local Java binder
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
2020-10-01 22:29:35 +00:00