679 Commits

Author SHA1 Message Date
Remi NGUYEN VAN
dacee147b4 Remove deps from framework on netd interfaces
If included in framework.jar, the interfaces conflict with any app that
needs to depend on them, including the NetworkStack.

Bug: 124033493
Test: atest FrameworksNetTests NetworkStackTests
Change-Id: I2db9f87b7154130726d4700b241d55b041635d98
Merged-In: I0ecae20d514bf888f3a80331f19369ceb1c52aa3
2019-02-14 17:26:59 +09:00
Jack Yu
0ab3258763 Removed unused variables in cat service
Test: build
Change-Id: I62448494ffddbf2a578302873c8758321766e3d7
2019-02-11 13:48:58 -08:00
Scott Randolph
9f7bc7d616 Merge "Implementation of Remote-SIM." 2019-01-24 05:01:05 +00:00
Vasu Nori
aea0391cf6 Implementation of Remote-SIM.
Design doc http://shortn/_GG690j15js

1. Modified SmsManager to send message thru Bluetooth if the subscription
   is for a Remote-SIM.
2. Added new column 'subscriptionType' to SubscriptionInfo.
3. SubscriptionManager:
  a. Added new constants for Local SIM and Remote SIM
  b. Added hidden APIs to add/remove Remote SIM subscriptions

Bug: 112321331
Test: tested manually and w/ unittests
Change-Id: Ib15553a806691a258fc00f7aaf812b8a9d49c2e9
2019-01-23 14:25:32 -08:00
Chris Wailes
0bab727de3 Removed false positives from the greylist.
This commit removes several Zygote related functions and types from the
greylist that are not required to be there.

Topic: zygote-prefork
Test: make
Bug: 68253328
Change-Id: I25022d976e7444489aad1aeb1ce6b05736233476
Merged-In: I25022d976e7444489aad1aeb1ce6b05736233476
2019-01-23 13:32:03 -08:00
Remi NGUYEN VAN
6c7877b7bb Add UserHandle constants to SystemApi
The affected constants are already SystemApi in internal.

Bug: 112869080
Test: m
Change-Id: Iacefdefa59346eaebd8b92743fe8710845edcc29
Merged-In: I261dfcc5cfdfc76bda5d70181785e11c2715a558
2019-01-23 11:06:18 +09:00
Remi NGUYEN VAN
3b887bdf4a Merge "Expose UIDs for NetworkStack permission checks" 2019-01-22 13:40:57 +00:00
Remi NGUYEN VAN
0d81df94cd Expose UIDs for NetworkStack permission checks
The UIDs are unlikely to change and added as public API.

Test: m
Bug: 112869080
Change-Id: I5477093a4c8593dd9ada7587b86c65352e628c34
2019-01-22 20:44:06 +09:00
Lorenzo Colitti
a27da72cd1 Expose ServiceSpecificException as @SystemApi.
This class is useful as a system API because:

- It is one of the few exceptions that is natively Parcelable.
- It is directly supported by native code without using JNI,
  using Status::fromServiceSpecificError.
- Unlike other natively parcelable exceptions, it contains both
  an error message and an error code.

Test: m
Bug: 112869080
Change-Id: Ica3e88c2b6877e429a61b053d75f69b9f19fc74a
2019-01-22 18:44:12 +09:00
Chen Xu
30b6573ec7 Merge "refactor updateIccId for msim" 2019-01-16 23:39:18 +00:00
Sundong Ahn
8b444f63b7 Add public API
RepetitiveTest class is added to public API in android.test.base

Bug: 110404779
Test: m -j
Change-Id: I80e772354c8cabf30ef513701cb7850590926dca
Merged-In: I80e772354c8cabf30ef513701cb7850590926dca
(cherry picked from commit 78db121770e6619661ff195f33ec0ff3673219f5)
2019-01-16 19:26:54 +09:00
chen xu
89da624894 refactor updateIccId for msim
Bug: 120686729
Test: Manual test under msim configurations
Change-Id: I9708dea75f6bcf1db82fed7f42d7c2828b192583
(cherry picked from commit 9f1beb6b3c78a3cdea530190367051d2c806c1a1)
Merged-in: I9708dea75f6bcf1db82fed7f42d7c2828b192583
2019-01-16 00:38:26 -08:00
Holly Jiuyu Sun
997a88853b Merge "Support profile policy rule as a resolvable error." 2019-01-14 23:35:56 +00:00
Jack Yu
c9e3eef543 Cleaned up dead code
Cleaned up dead code and simplified code path.

Test: Telephony sanity tests + unit tests
Bug: 73659459
Change-Id: I0c066d59f2fde9af315f4dabe0fe7b55600fa9f8
2019-01-07 16:54:16 -08:00
Jack Yu
f05919ab76 Stop exposing reasons through phone state listener
The data connection reasons are implementation details
of telephony and should not be exposed externally. The
data connection fail cause, which is different from
reasons, are still available.

Test: Telephony sanity tests + unit tests
Bug: 73659459

Merged-In: Ia005abf19664e6213118ee932495950af118456d
Change-Id: Ia005abf19664e6213118ee932495950af118456d
(cherry picked from commit 4d1c9450005dbd05c5c619d444938467068047a3)
2019-01-07 06:39:38 +00:00
Jack Yu
239aa0ae0a Cleaned up dead code
Renamed the scanning state to retrying. Removed the
old retrying dead code.

Test: Telephony sanity tests
Bug: 73659459

Merged-In: I54849bafbd0d05206e67636f0717b4b833a5e229
Change-Id: I54849bafbd0d05206e67636f0717b4b833a5e229
(cherry picked from commit 5de4a2d86972a882dafc24b541164a68a37adf31)
2019-01-06 11:48:32 -08:00
Mathew Inwood
aeda49d185 Merge "Limit access to suspected false positives." 2019-01-02 12:30:32 +00:00
sqian
c18b326a5b Add Emergency Dial into RIL and Remove PhoneNumberUtils Ecclist check
Bug: 112657134
Test: Treehugger
Change-Id: I297334be370688fd9a9d46920a09152f57152039
Merged-In: I297334be370688fd9a9d46920a09152f57152039
(cherry picked from commit 6279e97c43f80012cc3a5a6f269506fb55a165e3)
2018-12-28 11:00:26 -08:00
Mathew Inwood
55418eada5 Limit access to suspected false positives.
Members modified herein are suspected to be false positives: i.e. things
that were added to the greylist in P, but subsequent data analysis
suggests that they are not, in fact, used after all.

Add a maxTargetSdk=P to these APIs. This is lower-risk that simply
removing these things from the greylist, as none of out data sources are
perfect nor complete.

For APIs that are not supported yet by annotations, move them to
hiddenapi-greylist-max-p.txt instead which has the same effect.

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 115609023
Test: m
Change-Id: Ia937d8c41512e7f1b6e7f67b9104c1878b5cc3a0
Merged-In: I020a9c09672ebcae64c5357abc4993e07e744687
2018-12-28 14:26:35 +00:00
Holly Jiuyu Sun
132b49ad1e Support profile policy rule as a resolvable error.
Resolvable errors in the download step are present in a bit map and
returned to the calling app. The calling app can resolve all the
resolvable errors at one time.
Also pass cardId around for future use.

Bug: 68941776
Test: test on phone
Change-Id: I37a365bce2eb183161a2649ca8098504b6ed2370
Merged-In: I37a365bce2eb183161a2649ca8098504b6ed2370
2018-12-20 16:05:37 -08:00
Jack Yu
5bf83d8e24 Moved data settings to phone
Since there are multiple DcTrackers, but we only have
one set of data settings. So we need to move them from
DcTracker to Phone.

Test: Telephony sanity tests + unit tests
Bug: 73659459

Merged-In: Ica24b708beb63156937e88198a4c915485771b0a
Change-Id: Ica24b708beb63156937e88198a4c915485771b0a
(cherry picked from commit 335860e44f6c7d040646be9d50c862b9c6488dec)
2018-12-20 15:25:21 -08:00
Paul Duffin
bf76cf7c82 Remove uses of libcore.io DropBox and EventLogger
DropBox and EventLogger provide hooks for use by framework to intercept
messages sent by libcore. However, neither of these mechanisms are
actually used by libcore so there is no point in framework code using
it.

(cherry picked from commit ecb6124d540975d8f2466bc9d9bf4b79bc6ff972)

Bug: 119748341
Test: make checkbuild, flash
Merged-In: I9dbd1b6dea92f7441efb6d0a579efd13bc0e5139
Change-Id: I65425e49ab9ad9752b65772d27f788d1a674eeff
2018-12-17 12:10:11 +00:00
chen xu
1afc47b154 move and rename DcFailCause to DataFailCause
Bug: 119891533
Test: Build
Change-Id: I6f0e474a9ee3f8befc8b0a221713a2080b59844c
Merged-in: I6f0e474a9ee3f8befc8b0a221713a2080b59844c
2018-12-13 12:54:38 -08:00
Paul Duffin
352956b07e Switch last c.a.i18n.phonenumbers hiddenapi entries to annotations
Previous changes could not remove these entries as they are implicit
methods, i.e. are not present in the source, and so could not be
annotated. That is no longer true and so these entries can now be
removed.

This was tested by making and then manually checking that the generated
out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt was the
same (after sorting) before and after this change.

Bug: 117818301
Bug: 119861512
Test: as above
Change-Id: Ic33c693f50cac011332c5ba5a5c0e2b6562e6ef8
2018-12-10 16:05:54 +00:00
Jack Yu
b3206eeb94 Cleaned up dead code
Cleaned up dead code for CleanupDataConnection and
CleanupAllDataConnections. Also renamed the internal
version.

There is no logic change in this change.

Test: Unit tests and telephony sanity tests
Bug: 73659459
Merged-In: I3c9ed9502960c3f743f41078089cfff611cd96b0
Change-Id: I3c9ed9502960c3f743f41078089cfff611cd96b0
(cherry picked from commit 746d10446c77218b430e31ae0fcc0d0925bd45fc)
2018-12-07 11:38:55 -08:00
David Brazdil
d719f5131a Rename hiddenapi config files
Rename files to reflect new API list naming convention:
  light-greylist => greylist
  max-sdk-p-blacklist => greylist-max-p

This also removes unused files (private-dex.txt, public-dex.txt,
removed-dex.txt) and merges vendor.txt into greylist.txt.

Test: m appcompat
Test: frameworks/base/tools/hiddenapi/generate_hiddenapi_lists_test.py
Merged-In: I4922ecb011a03bef3fa105f8181d1851d2cc496a
Change-Id: I4922ecb011a03bef3fa105f8181d1851d2cc496a
2018-12-05 16:29:53 +00:00
Jack Yu
f49d54c200 Support multiple DcTracker for IWLAN refactoring
If the device is configured as AP-assited mode, multiple
DcTrackers will be created for each corresponding
data service. For legacy mode, only one DcTracker will
be created.

Test: Unit tests and telephony sanity tests
Bug: 73659459

Merged-In: I9f6afd65093dd1c65841466c6ff063717bb5bdaa
Change-Id: I9f6afd65093dd1c65841466c6ff063717bb5bdaa
(cherry picked from commit 21096187156c0b2e40d1e943cb250fbdca9de022)
2018-12-04 16:14:36 -08:00
Jack Yu
08f0b659ac Merge "Fixed race condition in data connection" 2018-11-30 19:47:57 +00:00
Jack Yu
6661f5181a Fixed race condition in data connection
Fixed that multiple threads are accessing
APN contexts associated with the data connection.

Test: Telephony sanity tests and unit tests
Bug: 120088861
Merged-In: Iffc840715684f4db78f3635b403e1b2772412099
Change-Id: Iffc840715684f4db78f3635b403e1b2772412099
(cherry picked from commit a7f9dce360e47df579c8bc4c526c0bf8358d4a00)
2018-11-29 17:21:46 -08:00
Brad Ebinger
7d0dbe6954 Actually check for READ_PHONE_STATE permission for Voicemail query
We were not checking READ_PHONE_STATE permission when callers
were querying for the number of voicemails the user had for a
subscription.

Removes old ITelephony#getVoiceMessageCount method from graylist
because it hasn't been used since kitkat and does not allow for
READ_PHONE_STATE permission checks.

Bug: 119884553
Test: manual
Change-Id: Ic6c29b123e192caf663d0e0c8da559116d1a78c9
2018-11-29 15:17:33 -08:00
Paul Duffin
900ab8acce Remove remaining libcore entries from light greylist
Removes the libcore entries that have been added since the previous
entries were removed. The entries are now specified using
UnsupportedAppUsage annotations.

This was tested by making and then manually checking that the generated
out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt was the
same (after sorting) before and after this change.

Test: see above
Bug: 117818301
Change-Id: Ie2ab636f61697664eced59969d12aa46103d96a1
2018-11-29 09:41:56 +00:00
vichang
81dc06e259 Merge "Fix warning in config/boot-image-profile.txt" 2018-11-28 18:34:32 +00:00
Victor Chang
e6b7c73b86 Fix warning in config/boot-image-profile.txt
The warning was caused by 6ea0cb0d65ee13b9c4014d56ccb4926ac49c6e4a

Test: m droid
Change-Id: Icafd6b841778f3d1dd79b2f5f8b5b70e79c36621
2018-11-28 15:26:23 +00:00
Neil Fuller
d48dbc9a34 Merge "Track move of timezone classes to libcore.timezone" 2018-11-28 15:23:48 +00:00
Treehugger Robot
669037f821 Merge "Remove com.android.okhttp.... classes from light grey list" 2018-11-27 17:31:14 +00:00
Neil Fuller
b8383a10b9 Track move of timezone classes to libcore.timezone
Some time zone related libcore classes are moving from
libcore.util to libcore.timezone.

Bug: 119026403
Test: build only
Change-Id: Ic807977a85276b888362295d1d305effe33076fc
2018-11-27 14:44:59 +00:00
Neil Fuller
787e1ce12e Merge "Hand-edit boot-image-profile.txt to move classes" 2018-11-27 14:38:47 +00:00
Paul Duffin
6cc41d5320 Remove com.android.i18n.phonenumbers.... classes from light grey list
Removes almost all the com.android.i18n.phonenumbers.... classes from
the light grey lists as they are now using UnsupportedAppUsage
annotation.

The only ones that are left are ...->values()... methods which are the
synthetic methods created by the compiler when compiling an enum class.
It is not currently possible to use annotations for those as they do
not exist in the source code, bug 119861512 tracks the changes.

This was tested by making and then manually checking that the generated
out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt was the
same (after sorting) before and after this change.

Test: see above
Bug: 117818301
Change-Id: Ifb8f243ca2e519fd9d0aca04722ae5155913e91e
2018-11-27 12:53:19 +00:00
Paul Duffin
e1e1e2849d Remove com.android.okhttp.... classes from light grey list
Removes all the com.android.okhttp.... classes from the light grey
lists as they are now using UnsupportedAppUsage annotation.

This was tested by making and then manually checking that the generated
out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt was the
same (after sorting) before and after this change.

Test: see above
Bug: 117818301

Change-Id: I4840dd010cd61023968af298946884c692736893
2018-11-27 12:09:25 +00:00
Neil Fuller
828d4a195c Hand-edit boot-image-profile.txt to move classes
Some classes have recently moved from libcore.util to libcore.timezone.

Bug: 120039104
Bug: 119026403
Test: build only
Change-Id: Ia1b4b9d096cbaeba85e7da032a4e6927b389b8f0
2018-11-27 11:52:06 +00:00
Andreas Gampe
b896d4fa3b Merge "Framework: Remove some methods from boot image profile" 2018-11-21 22:25:22 +00:00
David Brazdil
cb7fa2f389 Check in P dark greylist
Test: m appcompat
Change-Id: If4d7377631c1e8c1194a7bd70814b663d9af17fb
2018-11-20 16:36:21 +00:00
sqian
91412858b7 Remove dummy subscription ids
Test: Treehugger
Bug: 119144366
Change-Id: Ied6d1bd084b2632e72ef60bd96c8a1e6c9d1a16e
Merged-In: Ied6d1bd084b2632e72ef60bd96c8a1e6c9d1a16e
(cherry picked from commit bfde48f4ed4958251d28e695a39ce88f10f3542f)
2018-11-19 12:54:44 -08:00
Neil Fuller
80a2e6e628 Merge "Track changes in system/timezone / libcore" 2018-11-19 11:38:14 +00:00
Neil Fuller
0ac8df0e9a Track changes in system/timezone / libcore
The version information about time zone formats is moving
to a new libcore class TzDataSetVersion.

Bug: 119026403
Test: build
Change-Id: I6f80f16f9cd7e37fc04d75c89483497f4f00a6a5
2018-11-18 15:52:02 +00:00
Janis Danisevskis
b0358e72be Multi-threaded keystore
This patch makes the framework use the asynchronous keystore api model.

Bug: 111443219
Test: Ran full keystore cts test suite
Change-Id: I8d1fdc70cb9eb501d3f22a97d1221904c2ef8f9a
2018-11-14 09:59:16 -08:00
Treehugger Robot
cacc09018b Merge "Remove com.android.bouncycastle.... classes from light grey list" 2018-11-13 15:26:21 +00:00
Treehugger Robot
5cc3d900b9 Merge "Remove com.android.conscrypt.... classes from light grey list" 2018-11-13 15:26:15 +00:00
Paul Duffin
1e5fc351c2 Remove com.android.bouncycastle.... classes from light grey list
Removes all the com.android.bouncycastle.... classes from the light grey
lists as they are now using UnsupportedAppUsage annotation.

This was tested by making and then manually checking that the generated
out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt was the
same (after sorting) before and after this change.

Test: see above
Bug: 117818301
Change-Id: Id2de74e4c3b84646ebaa3bb0d18113fc593d3200
2018-11-13 09:10:44 +00:00
Paul Duffin
551fb88d04 Remove com.android.conscrypt.... classes from light grey list
Removes all the com.android.conscrypt.... classes from the light grey
lists as they are now using UnsupportedAppUsage annotation.

This was tested by making and then manually checking that the generated
out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt was the
same (after sorting) before and after this change.

Test: see above
Bug: 117818301
Change-Id: Ib2298ef17eeab4874265b72b19dddc912079500f
2018-11-13 09:10:44 +00:00