1424 Commits

Author SHA1 Message Date
Jayachandran C
4eda57e047 Move ACTION_SIGNAL_STRENGTH_CHANGED to local
Also remove the reference to PhoneStateIntentReceiver as its being
removed as part of this CL

Bug: 147314715
Test: Build and basic sanity
Change-Id: I04d766ddae7958f0d2f35b50154e5e6d2f8dce7e
2020-01-08 12:01:21 -08:00
Malcolm Chen
8a8b120093 [Telephony Mainline] Make newFromBundle and fillInNotifierBundle System
API

The APIs are used in several placed where listens to
SERVICE_STATE_CHANGE broadcast.

Bug: 140908357
Test: build
Change-Id: I84543dbb056694d975799c7959c7ed66e286c530
2020-01-02 15:27:33 -08:00
Winson
14ff71712c Revert "Revert "Deprecate PackageParser#Package""
This reverts commit 8e18a0ab8980a3092d6c7e1d2edc6407655af609.

Exempt-From-Owner-Approval: Revert to re-add approved change

Change-Id: I5b5195470f365a2347cbf444cc0494d119e42ffc
2019-12-06 12:24:05 -08:00
Artur Satayev
e4ed4d879b Merge "Filter greylist-max-o.txt." am: a6933d2279 am: 24d6768385
am: 91d7defcfc

Change-Id: Idab8e1b98a7c8caedc06c2513686a0b803a71c83
2019-11-26 00:36:43 -08:00
Artur Satayev
98c0f563d1 Filter greylist-max-o.txt.
Keep only signatures that are present in public releases for P and Q based on android_runtime.hiddenapi.bootclasspath.public.

Bug: 137350495
Test: diff hiddenapi-flags.csv
Change-Id: If270ec7e77e299558988e3f49a9e16ba65ac6afd
2019-11-25 17:39:12 +00:00
Terry Wang
ecc0d1b2c1 Add a new system service for app search project
Bug: 142567528
Test: manual
Change-Id: Iefb426383f94ec89c896065c798b22cfb2977bf3
2019-11-21 14:15:22 -08:00
satayev
57db484acb Merge "Add OWNERS for frameworks/base/config/hiddenapi*." am: 2c3312dda8 am: 677b6b6c3c
am: cc37f4bdf6

Change-Id: I4cd6adf9ce5e1888f14074b0e93a5628b751bf60
2019-11-21 06:50:58 -08:00
Artur Satayev
9dadbaa617 Add OWNERS for frameworks/base/config/hiddenapi*.
Test: N/A
Change-Id: Iaf914899686ea6e8be7462f0c1df0646c4fa69b0
Merged-In: Iaf914899686ea6e8be7462f0c1df0646c4fa69b0
2019-11-21 12:21:12 +00:00
Artur Satayev
45628328b0 Move resource IDs to greylist-max-q.
go/cleanup-greylist-txt

Bug: 137350495
Test: m, manual inspection of out/soong/hiddenapi/hiddenapi-flags.csv
Change-Id: I851236a8060e05724833d9dbcd4c5a79763d4c40
Merged-In: I851236a8060e05724833d9dbcd4c5a79763d4c40
2019-11-20 16:56:22 +00:00
Artur Satayev
d52aef7c11 Move resource IDs to greylist-max-q.
go/cleanup-greylist-txt

Bug: 137350495
Test: m, manual inspection of out/soong/hiddenapi/hiddenapi-flags.csv
Change-Id: I851236a8060e05724833d9dbcd4c5a79763d4c40
2019-11-20 10:32:23 +00:00
Artur Satayev
751e55114c Add @UnsupportedAppUsage annotations for greylist.
go/cleanup-greylist-txt

These have already been greylisted, however due to bugs/omissions in the tooling have been kept in go/greylist-txt instead of being annotated in the code.

This is partial merge of aosp/Id6c1f5e403a0e66edb1102ee45f3bf19f244fb09. Telephony greylist cleanup has been done separately. Note that annotations outside of frameworks/base/ have been merged from AOSP.

Bug: 137350495
Test: m
Exempt-From-Owner-Approval: merge
Change-Id: I015c466e8b69cc0fed5e9d394ba865aad11d8ba6
2019-11-19 15:05:35 +00:00
Artur Satayev
fc46be7dbd Add @UnsupportedAppUsage annotations for greylist.
go/cleanup-greylist-txt

These have already been greylisted, however due to bugs/omissions in the tooling have been kept in go/greylist-txt instead of being annotated in the code.

Bug: 137350495
Test: m

Change-Id: Id6c1f5e403a0e66edb1102ee45f3bf19f244fb09
Merged-In: Id6c1f5e403a0e66edb1102ee45f3bf19f244fb09
2019-11-08 16:17:13 +00:00
Artur Satayev
ee9c6e7571 Add @UnsupportedAppUsage annotations for max-p.
See go/UnsupportedAppUsage for more details.

These have already been greylisted, however due to bugs/omissions in the tooling have been kept in go/greylist-txt instead of being annotated in the code.

Bug: 137350495
Test: m
Change-Id: I5aa29a49b193db47aaee4d3a756c17f48cc9f0b1
Merged-In: I5aa29a49b193db47aaee4d3a756c17f48cc9f0b1
2019-11-08 16:17:13 +00:00
Sudheer Shanka
a83671193b Merge "Add a new system service for blob store management." 2019-11-08 04:05:35 +00:00
Sudheer Shanka
f5b36964e0 Add a new system service for blob store management.
This change adds a bare-bones system service, implementation will follow
later.

Bug: 143559646
Test: atest cts/tests/BlobStore/src/com/android/cts/blob/BlobStoreManagerTest.java
Change-Id: Idf21dfcd11dd32a42b62c6ad965d6f5ad7eed1b4
2019-11-07 13:37:14 -08:00
Roshan Pius
3ab732bce1 wifi: Formalize wifi resource usages
Move all wifi specific resources (only used from within wifi stack) from
framework core to wifi APK. Also, mark some resources as @SystemApi
which are used by the wifi stack & other parts of the system.

Bug: 143464763
Test: Compiles
Change-Id: Ide9708c87c2a9b3c943744decff639ad1dfde985
2019-11-07 11:08:04 -08:00
Amit Mahajan
4ae457ad9d Merge "Create @SystemApi CarrierMessagingServiceWrapper." 2019-11-04 22:54:58 +00:00
Amit Mahajan
02e56cc0ba Create @SystemApi CarrierMessagingServiceWrapper.
This is primarily a wrapper over ICarrierMessagingService
that to create a stable API to communicate with CarrierMessagingService.

Test: basic messaging sanity
Bug: 143609473
Merged-in: I67fda8bab3902b358c483f992633dbdfe3a8cda2
Change-Id: I67fda8bab3902b358c483f992633dbdfe3a8cda2
(cherry picked from commit 92642659e81b2358dce0969661003287564ace03)
2019-11-04 12:44:01 -08:00
Chen Xu
7a79194fcb Merge "new TelephonyRegistryManager" 2019-11-04 18:21:51 +00:00
Chen Xu
1f1c25e815 new TelephonyRegistryManager
today telephonyRegistry lives in system process
this is intended to persists all telephony listeners when
phone process crash. Telephony today notify system server by
using AIDL APIs directly. Instead, we are exposing a proper API
surface: telephonyRegistryManager where only phone app and
carrier privileged apps are allowed to use APIs in
TelephonyRegistryManger to notify telephony related status update.

Bug: 140908357
Test: Build & Manaul
Change-Id: I1b750751148925b4a7bd94553318907654012fc1
(cherry picked from commit 288b71c8c11dc25fa1dab4aadc1525d0c576008a)
Merged-in: I1b750751148925b4a7bd94553318907654012fc1
2019-11-01 22:44:36 +00:00
Amit Mahajan
82f245f3ba Move mms related code from opt/telephony to base/telephony.
In an effort to remove it from telephony-common as that will not be
accessible to other modules, and some of them need mms code like
MmsService, TelephonyProvider, Bluetooth.

Test: basic sanity
Bug: 140763963
Merged-in: I03eda5a5dbd003659a90e2b9f6be9d4c2b767add
Change-Id: I03eda5a5dbd003659a90e2b9f6be9d4c2b767add
(cherry picked from commit fda8bc058c24c70a2800454f945b9528c5b87699)
2019-11-01 12:47:10 -07:00
Makoto Onuki
152742f27a Undo the jobscheduler / device idle initialization with callbacks
We'll be able to expose system APIs from jobscheduler-framework.jar and
use them from framework-minus-apex.jar, so these elaborated initialization
will not be needed.

Bug: 142281756
Test: boot, "dumpsys batterstats"
Change-Id: I957642fc2573818d138450747e0690d7176636ad
2019-11-01 08:19:38 -07:00
Chen Xu
fba9ca44a2 make CallerInfo as SystemAPI
1. move CallerInfo from telephony.internal to andorid.telephony package
2. expose APIs inside CallerInfo which are consumed by non-telephony
code.

Bug: 140908357
Test: Build
Change-Id: Ie95897c77e97e40f5357c107aede82edfea44d5a
(cherry picked from commit b9a1eefec66e8c2cd5ab9dab512bb729ef2caae8)
Merged-in: Ie95897c77e97e40f5357c107aede82edfea44d5a
2019-10-21 21:39:58 -07:00
Amit Mahajan
d355153dcb Create frameworks/base/telephony/common for common non-mainline telephony code.
And move mms util code to the new folder.

Test: basic sanity
Bug: 140763963
Change-Id: I0d92ed3fca1fc186484ea8d3c5d17b6e332e7d22
2019-10-01 11:29:23 -07:00
Winson Chiu
8e18a0ab89 Revert "Deprecate PackageParser#Package"
This reverts commit 243e7ea14b32747b3d12b1e83625eddb917c5990.

Reason for revert: b/141854898

Exempt-From-Owner-Approval: Revert for failure to boot

Change-Id: Id6812e5ecf7d88504706b2c4110d83f1034ab85c
2019-10-01 00:23:30 +00:00
Winson
243e7ea14b Deprecate PackageParser#Package
Replaces PackageParser#Package and it's related structures with
ParsingPackage, ParsedPackage, and AndroidPackage.

This is a large scoped CL, the first step in an eventual goal
to refactor how data is handled in the package parsing and install
process. It introduces as few logic changes as necessary. Mostly
migrating to interfaces and renaming, moving parsing data calls into
3 separate interfaces that outline the intended flow for parsing.

ParsingPackage is built and used during what was PackageParser, now
replaced by ApkParseUtils and it's related classes. This is almost
exactly what was parsed from the XML/files on disk.

ParsedPackage is used when the object exits PackageParser and is
adjusted by PackageManagerService to what is considered the final
"parsed" state, adjusted from literal values, but consistent given
the same APK on disk. This should eventually be moved out of PMS
and possibly collapsed into the previous interface entirely.

AndroidPackage is the final state of the package after parsing and
adjustment has completed and no more mutations should be expected.
There are a few exceptions to this, included in AndroidPackageWrite,
which will eventually be refactored into PackageSetting or another
state class.

This marks PackageParser#Package and all the old infrastructure with
@Deprecated, as none of them are used internally. All usages were
converted, and the legacy Package is only built for un-converted tests
and @UnsupportedAppUsage methods.

There are numerous TODOs still outstanding, but addressing them
in this initial CL would introduce several logic changes. They've been
marked with the bug number and will be handled in follow ups.

This is being merged with caution thrown to the wind because
testing this on devices and in development will be the best way
to debug differences introduced by the migration. Getting it merged
as early as possible gives the most amount of time to fix regressions.

Waiting for tests of all the functionality could take literal years
before covering enough to merge this with all regressions verified.

Given a sample size of 4 heap dumps and the caveat it was taken very
early in the migration, there is a memory overhead of about 200 KB
versus the legacy implementation. This should be verified more
accurately and addressed in follow ups.

This CL also kills child/parent package support, since that's
broken already, and difficult to support with the new interface
structure.

Bug: 135203078

Test: booted an emulator, works generally as expected

Specific tests which failed / failed to build were fixed, but because
not all tests are currently passing before this change, not all were
verified.

Change-Id: I4ba050c228e6c60b8f63a9e3347b1f9a57ef794a
2019-09-26 13:27:17 -07:00
Chen Xu
8dcf873d9a Merge "Revert "remove symbols from greylist"" 2019-09-26 03:45:27 +00:00
Soonil Nagarkar
68e6b3af88 Merge "Add Executor APIs to LocationManager" 2019-09-25 22:08:07 +00:00
Soonil Nagarkar
4551405b93 Add Executor APIs to LocationManager
Add executor support for all LM APIs and consolidate various GNSS
listeners. Also fixes some edge cases around multithreaded listener
callback delivery.

Bug: 136212299
Test: Manual
Change-Id: I2e863e41de846e739654362e859b58a5ed45c673
2019-09-25 20:56:48 +00:00
Chen Xu
6155eb9663 Revert "remove symbols from greylist"
This reverts commit 27c4e658b3fedee791835a40f5f28a6c60e89dd3.

Reason for revert: <potential performance regression. revert for now and looking for possible optimization from ART team>

Change-Id: I5bf728e4f6789d7e6398cf90f22fbf3a24d481c2
2019-09-23 18:51:02 -07:00
Chen Xu
288b71c8c1 new TelephonyRegistryManager
today telephonyRegistry lives in system process
this is intended to persists all telephony listeners when
phone process crash. Telephony today notify system server by
using AIDL APIs directly. Instead, we are exposing a proper API
surface: telephonyRegistryManager where only phone app and
carrier privileged apps are allowed to use APIs in
TelephonyRegistryManger to notify telephony related status update.

Bug: 140908357
Test: Build & Manaul
Change-Id: I1b750751148925b4a7bd94553318907654012fc1
2019-09-22 19:56:39 -07:00
Amit Mahajan
97bc2c59d7 Merge "Move mms related code from opt/telephony to base/telephony." 2019-09-18 16:41:48 +00:00
Chen Xu
b9a1eefec6 make CallerInfo as SystemAPI
1. move CallerInfo from telephony.internal to andorid.telephony package
2. expose APIs inside CallerInfo which are consumed by non-telephony
code.

Bug: 140908357
Test: Build
Change-Id: Ie95897c77e97e40f5357c107aede82edfea44d5a
2019-09-12 23:21:06 -07:00
Amit Mahajan
fda8bc058c Move mms related code from opt/telephony to base/telephony.
In an effort to remove it from telephony-common as that will not be
accessible to other modules, and some of them need mms code like
MmsService, TelephonyProvider, Bluetooth.

Test: basic sanity
Bug: 140763963
Change-Id: I03eda5a5dbd003659a90e2b9f6be9d4c2b767add
2019-09-12 14:36:10 -07:00
Mathieu Chartier
754df4cbeb Merge "Remove android.permission.PermissionManager from blacklist" am: cbc3d5d0ea am: e52e78ba8e am: fb05e52a9d
am: 637868ad54

Change-Id: I8e3ddf4e175c3681884930bc894fadc9e076a7fe
2019-09-12 12:12:25 -07:00
Mathieu Chartier
942300fa20 Remove android.permission.PermissionManager from blacklist
This is getting pulled in from somewhere, removing to fix
PreloadCheck test.

Bug: 140912480
Test: atest PreloadCheck
Change-Id: I8eea07930732865cc72fea0e352a1704d1c26118
2019-09-12 17:06:31 +00:00
Chen Xu
c1f208cd69 Merge "remove symbols from greylist" 2019-09-04 23:31:25 +00:00
Chen Xu
27c4e658b3 remove symbols from greylist
telephony-common is not intended to used by any apps and
being in boot class is not updatability friendly.
We are removing telephony-common from bootclass and apply
<uses-library> in manifest instead.
for apps targeting < R will auto load telephony-common lib
for app compatibility. For apos >=R, only allow usage for
phone UID.

Bug: 135955937
Test: Build
Change-Id: Ia318661546df6d8516328886e5cc0c54d5cfafe6
2019-09-04 11:42:14 -07:00
Jordan Liu
d41a61df80 Merge "Change CellBroadcast APIs to SystemApi"
am: 82454e029f

Change-Id: Ic39446ab84f910b0f5225ad42f061e2a525ec868
2019-09-03 13:52:14 -07:00
Jordan Liu
e4141f0e8b Change CellBroadcast APIs to SystemApi
Bug: 135956699
Test: atest SmsManagerPermissionTest
Change-Id: Ibbb22505a80567d1c08cffe9b7a7fdbd10890abe
Merged-In: Ibbb22505a80567d1c08cffe9b7a7fdbd10890abe
2019-09-03 11:32:58 -07:00
Nicolas Geoffray
366fbdc3d4 Merge "More classes in profile" 2019-09-02 13:57:45 +00:00
Jordan Liu
9cdab3bf86 Merge "Change CellBroadcast APIs to SystemApi" 2019-08-31 04:56:14 +00:00
Jordan Liu
657ef5a7e8 Change CellBroadcast APIs to SystemApi
Bug: 135956699
Test: atest SmsManagerPermissionTest
Change-Id: Ibbb22505a80567d1c08cffe9b7a7fdbd10890abe
2019-08-30 14:27:39 -07:00
Nicolas Geoffray
edca8a977a More classes in profile
Add arrays and classes that are referenced by compiled code.

Test: boot

Change-Id: Iabc1789dc28e45901cb7052765655073bd37467e
2019-08-30 15:55:36 +00:00
TreeHugger Robot
d5314968e6 Merge "Revert "[DO NOT MERGE] Disable com.android.preload.check.PreloadCheck#testBlackList"" into stage-aosp-master 2019-08-29 18:25:23 +00:00
Rubin Xu
6762470fc2 Merge "Make DPM.isActivePasswordSufficient() synchronous again" 2019-08-29 12:24:00 +00:00
Ian Kasprzak
fc005b8d7c Revert "[DO NOT MERGE] Disable com.android.preload.check.PreloadCheck#testBlackList"
This reverts commit 869b47338876897d9bc89f5e8fcc9c92ad438218.

Reason for revert: Test is fixed.

Change-Id: I7f305f428a0f39a09e0d31512e4efa752e39b1bd
2019-08-29 04:12:55 +00:00
Andreas Gampe
cb3b4825e3 Framework: Clean up blacklist
Remove entries that should not be in the blacklist.

Partially reverts commit 00b23d3cb1ac527b6f61d23bdff998946c6ee3e1.

Test: m
Merged-In: I658f31f1df299eb06fb353e8bba118470112d80b
Change-Id: I658f31f1df299eb06fb353e8bba118470112d80b
2019-08-28 19:28:54 +00:00
Ian Kasprzak
869b473388 [DO NOT MERGE] Disable com.android.preload.check.PreloadCheck#testBlackList
Disabling in preparation for merge to aosp-master (Q release).

Test: Forrest - go/forrest_run/L13300000358776692
BUG: 139540082
BUG: 139305203
Change-Id: I2da5daf011bfe44648aa6e3cc969db2689d79b76
2019-08-27 22:32:08 +00:00
TreeHugger Robot
903102c430 Merge "Don't refer to DeviceIdle from SystemServiceRegistry" 2019-08-23 15:38:42 +00:00