133 Commits

Author SHA1 Message Date
Andrei-Valentin Onea
9b5b3eaa84 Merge "Automatically greylist code in 3P packages" am: 1f80714c2d am: 8b1745650b
am: 4f0fdf2d43

Change-Id: Iaa456ba488b37b87b1b65e312074a60c9b43a9a2
2019-04-02 06:54:25 -07:00
Andrei-Valentin Onea
1f80714c2d Merge "Automatically greylist code in 3P packages" 2019-04-02 13:10:37 +00:00
Andrei Onea
a6e09b4273 Automatically greylist code in 3P packages
generate_hidden_api_lists now receives a file containing package names
which need to be greylisted (although it could be made to work with any
api list required).
Also took the opportunity to clean up the tests to reflect the more
strict code.

Bug: 129387816
Test: m appcompat
Test: frameworks/base/tools/hiddenapi/generate_hiddenapi_lists_test.py
Change-Id: I619f8581d166aa48eda572bc0053d8739d6420eb
2019-04-01 15:32:36 +01:00
Andrei Onea
eecddd581e Add @UnsupportedAppUsage annotations
For packages:
  com.android.internal.app
  com.android.internal.database
  com.android.internal.http
  com.android.internal.os
  com.android.internal.policy
  com.android.internal.util
  com.android.internal.view
  com.android.internal.view.menu
  com.android.internal.widget
  com.android.server.net
  com.android.server
  com.google.android.collect
  com.google.android.util

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Merged-In: Ia5306f4713298b46ae3aba6fc9d87fae41f8a593
Change-Id: Ie26033d486033289ad3e010a534a921d29c3b2ca
2019-03-27 11:22:20 +00:00
Andrei Onea
15884391c0 Add @UnsupportedAppUsage annotations
For packages:
  com.android.internal.app
  com.android.internal.database
  com.android.internal.http
  com.android.internal.os
  com.android.internal.policy
  com.android.internal.util
  com.android.internal.view
  com.android.internal.view.menu
  com.android.internal.widget
  com.android.server.net
  com.android.server
  com.google.android.collect
  com.google.android.util

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: Ia5306f4713298b46ae3aba6fc9d87fae41f8a593
2019-03-22 17:58:43 +00:00
Irina Dumitrescu
c90674dcc2 Change existing LockPatternUtil APIs to fail untrusted password updates.
Add alternative APIs to allow untrusted password changes explicitly, so the caller
can choose to use them if needed.

Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
Bug: 120039091
Change-Id: I4ca03c9185081d300d7e325965b1e20515e33d51
2019-03-22 16:07:03 +00:00
Andrei Onea
fbc8cfdc94 Add @UnsupportedAppUsage annotations
For packages:
  android.companion
  android.filterfw
  android.hardware.camera2.utils
  android.inputmethodservice
  android.net.nsd
  android.os
  android.preference
  android.security.keymaster
  android.service.dreams
  android.telecom
  android.telephony.ims.compat.feature
  android.telephony
  android.util
  android.view.accessibility
  android.media.effect

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Merged-In: I9c2f8347952f3cc65759472b0e1a2717b285e44e
Change-Id: I14793863cf815fa3383fec6c6bf5a9365c2e17eb
2019-03-22 11:43:11 +00:00
Andrei Onea
e30e3928f9 Add @UnsupportedAppUsage annotations
For packages:
  android.companion
  android.filterfw
  android.hardware.camera2.utils
  android.inputmethodservice
  android.net.nsd
  android.os
  android.preference
  android.security.keymaster
  android.service.dreams
  android.telecom
  android.telephony.ims.compat.feature
  android.telephony
  android.util
  android.view.accessibility
  android.media.effect

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I9c2f8347952f3cc65759472b0e1a2717b285e44e
2019-03-21 14:04:57 +00:00
Andrei-Valentin Onea
2bbb9c537e Merge "Add @UnsupportedAppUsage annotations" 2019-03-18 17:28:44 +00:00
Andrei Onea
dcb67738f6 Add @UnsupportedAppUsage annotations
For packages:
  android.os

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Merged-In: I4ece0a3f37f88fc2508cb965092aed7cabc61819
Change-Id: I0d942254f06c1a355fb906640e223ad34cced6ab
2019-03-18 12:04:18 +00:00
Andrei Onea
24ec321bf3 Add @UnsupportedAppUsage annotations
For packages:
  android.os

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I4ece0a3f37f88fc2508cb965092aed7cabc61819
2019-03-15 18:44:27 +00:00
Andrei Onea
56e9194d39 Add @UnsupportedAppUsage annotations
For packages:
  com.android.internal.telephony
  com.android.internal.telephony.cat
  com.android.internal.telephony.cdma
  com.android.internal.telephony.gms
  com.android.internal.telephony.imsphone
  com.android.internal.telephony.uicc

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Merged-In: Ib70dd739d8067ca2e37f0dbc6c48a2d625935a4b
Change-Id: Ib7d46597f0d43a9e61141c96737976b02a1df008
2019-03-15 12:31:49 +00:00
Treehugger Robot
fe86a00845 Merge "Remove SMSDispatcher.sendData() from greylist as it's params changed" 2019-03-15 03:42:09 +00:00
Amit Mahajan
370e9a0eff Remove SMSDispatcher.sendData() from greylist as it's params changed
Test: none
Bug: 120403639
Merged-in: Ib70dd739d8067ca2e37f0dbc6c48a2d625935a4b
Change-Id: I0218764fc02d3f6b9f12b3480aba9742a52b8413
2019-03-14 13:30:59 -07:00
Andrei Onea
cd0d609f75 Add @UnsupportedAppUsage annotations
For packages:
  com.android.internal.telephony
  com.android.internal.telephony.cat
  com.android.internal.telephony.cdma
  com.android.internal.telephony.gms
  com.android.internal.telephony.imsphone
  com.android.internal.telephony.uicc

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: Ib70dd739d8067ca2e37f0dbc6c48a2d625935a4b
2019-03-13 15:54:15 +00:00
Kiyoung Kim
5cba0cff2c Add product apk support from libnativeloader
Currently libnativeloader appends vendor lib path if apk is from vendor
partition. Similar to this we should add product lib path if apk if from product partition.

Bug: 124705551
Test: m -j && tested from crosshatch with product apps (such as Wallpaper)
Change-Id: Ic85b16e8e4484a35c659c16e067f1e7c7285d05e
Merged-In: Iaa8d0ea61b1b9ab8a1da676a492f75c6a5d71d5d
2019-03-11 11:42:28 +09:00
Andrei-Valentin Onea
10c573ff85 Merge "Add @UnsupportedAppUsage annotations" 2019-03-07 17:26:15 +00:00
Andrei-Valentin Onea
5d256870aa Merge "Add @UnsupportedAppUsage annotations" 2019-03-07 17:26:09 +00:00
Andrei-Valentin Onea
315404a9a5 Merge "Add @UnsupportedAppUsage annotations" 2019-03-07 16:30:32 +00:00
Andrei-Valentin Onea
722dff1f35 Merge "Add @UnsupportedAppUsage annotations" 2019-03-07 10:20:28 +00:00
Kiyoung Kim
9b56c81652 Merge "Add product apk support from libnativeloader" 2019-03-07 05:46:26 +00:00
Andrei-Valentin Onea
f304f4d2ea Merge "Add @UnsupportedAppUsage annotations" 2019-03-06 18:01:47 +00:00
Andrei-Valentin Onea
842e3aa420 Merge "Add @UnsupportedAppUsage annotations" 2019-03-06 17:19:05 +00:00
Andrei-Valentin Onea
cf03906edc Merge "Add @UnsupportedAppUsage annotations" 2019-03-06 17:18:05 +00:00
Andrei-Valentin Onea
8cbc2e9ad1 Merge "Add @UnsupportedAppUsage annotations" 2019-03-06 17:17:27 +00:00
Andrei Onea
94970e6914 Add @UnsupportedAppUsage annotations
For packages:
  android.accounts
  android.app

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Merged-In: I65c961e3f59b9868156b3ee6a3b1cab81b0e9d25
Change-Id: I47b5f45ced1c6e385ed24424e442c76fc0487af7
2019-03-06 15:46:04 +00:00
Andrei Onea
890db3d672 Add @UnsupportedAppUsage annotations
For packages:
  android.speech
  android.telephony.mbms.vendor
  android.view
  android.webkit

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Merged-In: Iefe25091fa0fcc0adfe4ff85fe5e3ab3ac9c5f10
Change-Id: I04104cf3852a0a7440676ccc55dd96c1eec730c4
2019-03-06 15:43:49 +00:00
Andrei Onea
8c2fb5b99b Add @UnsupportedAppUsage annotations
For packages:
  android.database
  android.hardware.display
  android.hardware.input
  android.hardware.location
  android.location
  android.media
  android.media.projection
  android.media.tv

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Merged-In: I570c08292f8a9f512c96f9dce13f5337718f112c
Change-Id: I1d6c60fcb53f404d5775163bf6929395921f5a45
2019-03-06 15:39:19 +00:00
Andrei-Valentin Onea
94aeae08c0 Merge "Add @UnsupportedAppUsage annotations" 2019-03-06 15:06:05 +00:00
Jack Yu
ea741435e4 Fixed that DcTracker does not use correct data registration info
Fixed by using correct info from the corresponding transport

Test: Unit tests + manual
Bug: 126436426

Merged-In: Ie8ae20423b794622b6a6141faf68c01b75c144ce
Change-Id: Ie8ae20423b794622b6a6141faf68c01b75c144ce
(cherry picked from commit 1fa6cf157806673ca65383d281ca344329e28c28)
2019-03-04 21:15:36 -08:00
TreeHugger Robot
24c873a6e5 Merge "Fixed that DcTracker does not use correct data registration info" 2019-03-05 04:21:13 +00:00
Andrei Onea
4b2116ca79 Add @UnsupportedAppUsage annotations
For packages:
  android.accounts
  android.app

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I65c961e3f59b9868156b3ee6a3b1cab81b0e9d25
2019-03-04 16:29:55 +00:00
Andrei Onea
d4915d1d5c Add @UnsupportedAppUsage annotations
For packages:
  android.app.admin
  android.app.backup
  android.app.job
  android.app.usage
  android.bluetooth
  android.content
  android.content.om
  android.content.pm

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Merged-In: Id84ee490f3435a196fca10a89bda9f7217b750c6
Change-Id: I0e3753f8907f8eb38215ba96706470e834438f3a
2019-03-04 12:56:53 +00:00
Andrei-Valentin Onea
52f7220a06 Merge "Add @UnsupportedAppUsage annotations" 2019-03-04 12:42:01 +00:00
Jack Yu
1fa6cf1578 Fixed that DcTracker does not use correct data registration info
Fixed by using correct info from the corresponding transport

Test: Unit tests + manual
Bug: 126436426

Change-Id: Ie8ae20423b794622b6a6141faf68c01b75c144ce
2019-03-01 17:00:06 -08:00
Paul Duffin
ae3b4c44fb Merge "Switch android.test and junit classes to use UnsupportedAppUsage" am: 7bb0bcd305 am: b5ccf0e21c
am: d75f1793e6

Change-Id: I7a7c34980507393ec855c9e161ca0a922ed57fe4
2019-03-01 07:08:14 -08:00
Paul Duffin
997fa46197 Switch android.test and junit classes to use UnsupportedAppUsage
The UnsupportedAppUsage annotations could not be added directly to the
java files in src/ as they have to be built against the current api
which does not include the annotation. Instead this uses the same
technique as used for libcore/ojluni files and adds the annotations to
stub files (in hiddenapi/src) which are built as part of the
android.test.base-hiddenapi target. That target is added to a special
whitelist in build/soong/java/config/config.go which causes the
hiddenapi information to be extracted from the target.

Also, updates the preupload check to prevent anymore entries being
added to the config/hiddenapi-greylist.txt for android.test or junit
classes.

Bug: 73711752
Test: m cts-hiddenapi_flags-csv and check that it contained the
        correct entries even though they had been removed from
	config/hiddenapi-greylist.txt
Change-Id: Ifaf15d2751f54cb03f8402b866a0ee4da7acc4d2
2019-03-01 10:39:16 +00:00
Andrei Onea
cf1a82953b Add @UnsupportedAppUsage annotations
For packages:
  com.android.internal.app
  com.android.internal.appwidget
  com.android.internal.location
  com.android.internal.os
  com.android.internal.policy
  com.android.internal.statusbar
  com.android.internal.telecom
  com.android.internal.telephony
  com.android.internal.widget

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Merged-In: I6eba34467b2492047e5264684312adfa029eb317
Change-Id: I413c4b6dd12bcf40b69423718ed278cbefe82087
2019-02-28 17:01:29 +00:00
Andrei-Valentin Onea
5ac2de02f6 Merge "Add @UnsupportedAppUsage annotations" 2019-02-28 16:44:23 +00:00
Andrei-Valentin Onea
94bd7aac42 Merge "Add @UnsupportedAppUsage annotations" 2019-02-28 15:21:13 +00:00
Andrei Onea
efd37eff41 Add @UnsupportedAppUsage annotations
For packages:
  android.net
  android.net.wifi
  android.nfc

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Merged-In: I7489aad1dceeb18ed7ca48a1ed8829a668b3fa04
Change-Id: I16570aef456b45a5543bf889dddc7a0d25441928
2019-02-28 14:39:20 +00:00
Andrei Onea
5ac62403d4 Add @UnsupportedAppUsage annotations
For packages:
  com.android.ims
  com.android.ims.internal
  com.android.ims.internal.uce.options
  com.android.ims.internal.uce.presence
  com.android.ims.internal.uce.uceservice

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Merged-In: I13583455e85c78cfca5f4d67e4b982b58178104e
Change-Id: I448267cfb48838115b1fa1b88a1d167aab81ce4e
2019-02-28 14:29:13 +00:00
Andrei-Valentin Onea
b6965dfcc4 Merge "Add @UnsupportedAppUsage annotations" 2019-02-28 14:23:14 +00:00
Andrei-Valentin Onea
34ccde884d Merge "Add @UnsupportedAppUsage annotations" 2019-02-28 13:50:19 +00:00
Andrei Onea
ffeefd3cd3 Add @UnsupportedAppUsage annotations
For packages:
  android.security
  android.service.dreams
  android.service.euicc
  android.service.vr
  android.service.wallpaper

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Merged-In: I1c8ae08f8d3b4b2f5bf365468f22155f8def09fe
Change-Id: I09850a52193a28b0f884cfa01b564c29d25d41ed
2019-02-28 13:46:06 +00:00
Andrei-Valentin Onea
37b7e5846f Merge "Add @UnsupportedAppUsage annotations" 2019-02-28 13:07:02 +00:00
Andrei Onea
fa152f9517 Add @UnsupportedAppUsage annotations
For packages:
  com.android.internal.app
  com.android.internal.appwidget
  com.android.internal.location
  com.android.internal.os
  com.android.internal.policy
  com.android.internal.statusbar
  com.android.internal.telecom
  com.android.internal.telephony
  com.android.internal.widget

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I6eba34467b2492047e5264684312adfa029eb317
2019-02-27 16:42:54 +00:00
Andrei Onea
4aa2a2015b Add @UnsupportedAppUsage annotations
For packages:
  android.security
  android-service.dreams
  android.service.euicc
  android.service.vr
  android.service.wallpaper

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I1c8ae08f8d3b4b2f5bf365468f22155f8def09fe
2019-02-27 16:28:07 +00:00
Andrei Onea
903da3725f Add @UnsupportedAppUsage annotations
For packages:
  com.android.ims
  com.android.ims.internal
  com.android.ims.internal.uce.options
  com.android.ims.internal.uce.presence
  com.android.ims.internal.uce.uceservice

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I13583455e85c78cfca5f4d67e4b982b58178104e
2019-02-27 15:45:38 +00:00
Andrei Onea
f4fb6fb754 Add @UnsupportedAppUsage annotations
For packages:
  android.speech
  android.telephony.mbms.vendor
  android.view
  android.webkit

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: Iefe25091fa0fcc0adfe4ff85fe5e3ab3ac9c5f10
2019-02-27 15:42:25 +00:00