597 Commits

Author SHA1 Message Date
Adam Vartanian
27eec4b376 Merge "Update greylist for Conscrypt update" 2018-09-17 12:36:50 +00:00
Steven Moreland
82e3d2f066 Merge changes from topic "remove-hidl-boot-jars"
* changes:
  pm: Add hidl libraries to old class paths.
  preloaded-classes: remove core HIDL libs
2018-09-13 15:14:35 +00:00
Adam Vartanian
c3dc82878f Update greylist for Conscrypt update
Conscrypt has been refactored to eliminate the ConscryptSocketBase
class, so its greylisted methods no longer exist.

Test: make droid
Change-Id: Iffcfe529d960a397d0ced012f5a97de93dde69fa
2018-09-13 11:01:14 +01:00
Steven Moreland
766b425c27 preloaded-classes: remove core HIDL libs
These are being removed from boot jars.

Test: (sanity) boot device, no longer see 'Class not found for preloading'
Bug: 77307025
Change-Id: I854d3397ff362495ff392c2c4ea8594d1b2449bd
2018-09-12 09:17:53 -07:00
Yohei Yukawa
0a828f5f13 Remove IInputMethodManager.getEnabledInputMethodList() from greylist
App developers must never need to call this IPC method directly via
reflection.  The same functionality has been exposed as a public API
InputMethodManager#getEnabledInputMethodList() since its beggining.

Just for the record, this is what
InputMethodManager#getEnabledInputMethodList() is doing.

  public List<InputMethodInfo> getEnabledInputMethodList() {
      try {
          return mService.getEnabledInputMethodList();
      } catch (RemoteException e) {
          throw e.rethrowFromSystemServer();
      }
  }

Bug: 112722706
Test: compile
Merged-In: Idf9fa866f73dbd151bb67f60dbd57041d9055a23
Change-Id: Idf9fa866f73dbd151bb67f60dbd57041d9055a23
2018-09-11 13:48:02 -07:00
David Brazdil
4a55eebf26 Revert "Check in P dark greylist, use it for hidden API list generation"
This reverts commit 3cc74c71ef907a76547424aea6597f7b2907e9fb.
We saw app crashes due stricter classification of non-SDK APIs.

Bug: 115284625
Bug: 113881436
Test: phone boots

Change-Id: I689d0fbf66fabeffa5032e13f2f1f314c50b6cc5
2018-09-11 11:43:07 +01:00
Andreas Gampe
350694ad10 Framework: Ensure important fdsan function is compiled
Compile ForwardingOs fdsan-using functions. Follow-up to commit
5625660c650a0923d4c7f020f2eb7eef7d5962d4.

The function is relatively hot now, and importantly part of the
'abort' stack for fdsan issues.

Test: m
Change-Id: Iad9883b8fd85fc362bb3252739e3e3acc45373af
2018-09-10 21:27:20 +00:00
Andreas Gampe
5625660c65 Framework: Ensure important fdsan function is compiled
Compile IoUtils fdsan-using functions.

Test: m
Change-Id: If1f3d7fc57890309c15794cee5cd0f338cbd2bd8
2018-09-07 09:58:37 -07:00
David Brazdil
ae88d4e21e Ignore comment lines in hidden api lists
It is sometimes useful to add comments at the top of a source file. This
patch changes hidden API list generation to ignore lines beginning with
a hash.

Note that due to the sorting constraints on hidden API lists, comments
can be only at the top of the files.

Test: m appcompat
Change-Id: I1bc6fd44d1b1f10a5adc45093d7f7ed5a0c5a54f
2018-09-06 15:10:28 +01:00
David Brazdil
3cc74c71ef Check in P dark greylist, use it for hidden API list generation
We want to preserve the same semantics as P wrt dark greylist. This will
eventually become the "blacklist for target SDK >= P".

Bug: 113881436
Test: phone boots
Change-Id: I3bb72102e1d054eb0f2cae089ab633a0bc2bb276
2018-09-06 11:10:51 +01:00
Mathew Inwood
6ab42e28a9 Delete hiddenapi-p-light-greylist.
It's not used, and there is no reason to keep it now that P has been
pushed to AOSP.

Test: N/A
Change-Id: Ib025116032bdb215dba5b51de4c7ea8ad7dd10d5
Merged-In: I51bf94b736cae57780708a70947511c409a2dfb6
2018-08-31 13:38:38 +01:00
Mathew Inwood
71da3a1fe4 Add @UnsupportedAppUsage annotations
For all remaining unannotated code.

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: I32861fa341a08f11a9c50c07a1ef7404dadf6bb6
Merged-In: I67c8b71ea535ebffb10bf577948bd4ccb8ca069d
2018-08-30 13:38:01 +01:00
Mathew Inwood
fa4ccace61 Merge "Add @UnsupportedAppUsage annotations" 2018-08-30 07:55:39 +00:00
Mathew Inwood
84e829dce6 Remove suspected false positives from light greylist.
These APIs are only seen to be used by code in java packages
com.android.server.* which corresponds to AOSP code that has been linked
into applications.

Linking system server code into apps like this is unlikely to work, and
should not be expected to work. It's likely that this has been done
accidentally, and the code is not actually used at runtime.

Bug: 112826823
Test: m
Change-Id: If4a3bbe8a0d1a81384b47b35cfcd9a0723be8273
Merged-In: I0a72458d66b6af515e1da68d449d9b166680c258
2018-08-28 14:32:31 +01:00
Neil Fuller
69a13aded0 Merge "Track rename of org.kxml to com.android.org.kxml 2" 2018-08-24 11:53:05 +00:00
Mathew Inwood
b4936a336b Add @UnsupportedAppUsage annotations
For packages:
  com.android.internal.telephony

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: Ib9bb9c8ba23a3305c8b72600fa5fd3109b4f6ee1
Merged-In: Ia06d9a50c456201dc7ecb960ff1a1563617777a5
2018-08-23 11:47:41 +01:00
Mathew Inwood
a838206e94 Add @UnsupportedAppUsage annotations
For packages:
  android.telephony
  android.telephony.cdma
  android.telephony.data
  android.telephony.euicc
  android.telephony.gsm
  android.telephony.ims
  android.telephony.ims.aidl
  android.telephony.ims.compat
  android.telephony.ims.compat.feature
  android.telephony.ims.compat.stub
  android.telephony.ims.feature
  android.telephony.ims.stub
  android.telephony.mbms
  android.telephony.mbms.vendor

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: I02d900d6d0ec9a6b2172a71911fec61d04e4d235
Merged-In: I22547ac0ed384d74d61cfd51d20c140e392a597f
2018-08-23 09:37:53 +01:00
Mathew Inwood
30ea09ab75 Merge "Remove @UnsupportedAppUsage annotations from generated code." 2018-08-22 07:01:45 +00:00
Mathew Inwood
df82ab2de2 Merge "Add @UnsupportedAppUsage annotations" 2018-08-22 06:56:20 +00:00
Mathew Inwood
29ec6e6264 Remove @UnsupportedAppUsage annotations from generated code.
Revert back to using the greylist file for this code, since the annotations
would be lost next time the code is regenerated.

Bug: 110868826
Test: m

Merged-In: Ib245a2f1457ced34d5b1a3248161fa4a211ba5e9
Change-Id: Ib245a2f1457ced34d5b1a3248161fa4a211ba5e9
2018-08-21 17:27:35 +01:00
Mathew Inwood
a85f4eb6c6 Add @UnsupportedAppUsage annotations
For packages:
  android.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: Idf7ccc7a850fa984ea16f91cdd70159087274e5c
Merged-In: Ic61019b1df85448a158fc2ba55c326353222c6b9
2018-08-21 16:08:34 +01:00
Neil Fuller
12a0f5ff79 Track rename of org.kxml to com.android.org.kxml 2
Update boot-image-profile.txt to track libcore class renames.

The class renames may have caused a regression in some
performance metrics, though overall boot time was unaffected.

There's no reason not to update the boot-image-profile.txt.

Metrics affected:
SystemServerTiming_StartUsageService_avg
SystemServerTiming_StartJobScheduler_avg
SystemServerTiming_StartJobScheduler_avg

Test: build only
Bug: 111055375
Bug: 112595254
Change-Id: Ia421cb5dfd46cd0661fe51d481e8fca6aa35b60f
2018-08-21 11:00:27 +01:00
Mathew Inwood
a4be791434 Merge "Add @UnsupportedAppUsage annotations" 2018-08-20 14:42:25 +00:00
Mathew Inwood
e5ad598d11 Add @UnsupportedAppUsage annotations
For packages:
  android.view.textservice
  android.view.textclassifier.logging
  android.view.textclassifier
  android.view.inputmethod
  android.view.autofill
  android.view.accessibility
  android.view

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: Ie4663ebd4640b2893e575e599582d2c9530da313
Merged-In: I4147b038ed7adf0311ee9918b44766f82a057eaf
2018-08-20 14:52:19 +01:00
Mathew Inwood
c185f08c4a Add @UnsupportedAppUsage annotations
For packages:
  com.android.internal
  com.android.internal.annotations
  com.android.internal.app
  com.android.internal.app.procstats
  com.android.internal.appwidget
  com.android.internal.backup
  com.android.internal.car
  com.android.internal.content
  com.android.internal.inputmethod
  com.android.internal.location
  com.android.internal.logging
  com.android.internal.midi
  com.android.internal.net
  com.android.internal.os
  com.android.internal.policy
  com.android.internal.statusbar
  com.android.internal.telecom
  com.android.internal.telephony.euicc
  com.android.internal.textservice
  com.android.internal.util
  com.android.internal.view
  com.android.internal.view.animation
  com.android.internal.view.menu
  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: I1c2954c5a579f073017c1794fd2d200e0a471602
Merged-In: Ib31b52e6957869e5744dadbb35cb4584ef17187f
2018-08-20 14:28:54 +01:00
Mathew Inwood
9513a9e215 Merge "Add @UnsupportedAppUsage annotations" 2018-08-20 10:01:30 +00:00
Neil Fuller
dd64992fcd Merge "Track rename of org.kxml to com.android.org.kxml" 2018-08-20 09:30:24 +00:00
Mathew Inwood
e84b5dc01f Merge "Add @UnsupportedAppUsage annotations" 2018-08-20 08:55:09 +00:00
Mathew Inwood
2382108d01 Merge "Add @UnsupportedAppUsage annotations" 2018-08-20 08:54:17 +00:00
Mathew Inwood
585f2716e3 Add @UnsupportedAppUsage annotations
For packages:
  javax.microedition.khronos.opengles
  javax.microedition.khronos.egl

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: I0af80d46c5810dab9f7002cc33537e9356ae55d1
Merged-In: I3615f60789c14c44284c896c3a9ea291100dff8e
2018-08-17 15:32:35 +01:00
Mathew Inwood
eac8d0a362 Add @UnsupportedAppUsage annotations
For packages:
  android.preference

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: I6a39e2a1e1eb65cde9d200fb794c6592982f1272
Merged-In: I31a80552a66554d876edd01950df368c31239c2b
2018-08-17 13:51:26 +01:00
Mathew Inwood
473b9d5bfc Add @UnsupportedAppUsage annotations
For packages:
  android.media.tv
  android.media.soundtrigger
  android.media.session
  android.media.projection
  android.media.midi
  android.media.effect.effects
  android.media.effect
  android.media.browse
  android.media.audiopolicy
  android.media.audiofx
  android.media

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: I9b58cb2d1e02d9156a7b0d19c1feff4bcd2c53a9
Merged-In: I3bd40136d7fc948f66eca6b2d139c15e39c5a248
2018-08-17 09:07:01 +01:00
Treehugger Robot
d9381f5e56 Merge "Add @UnsupportedAppUsage annotations" 2018-08-17 07:46:52 +00:00
Mathew Inwood
42afea26b8 Add @UnsupportedAppUsage annotations
For packages:
  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: Ic22415d3e70a3b75a6418f96beb371d0445c7484
Merged-In: I41643e1e47391a12b0aed3058b3d9987a8e6ee2f
2018-08-16 19:18:28 +01:00
Mathew Inwood
4dbdcf43ad Add @UnsupportedAppUsage annotations
For packages:
  android.security.net.config
  android.security.keystore
  android.security.keymaster
  android.security

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: Ifed4da56531195f64fd53d84f14b4e8298843b2c
Merged-In: I7762dd647bede8abc9be2c538af3a3a99a25a73e
2018-08-16 18:49:37 +01:00
Mathew Inwood
2ee069f73d Merge "Add @UnsupportedAppUsage annotations" 2018-08-16 16:37:49 +00:00
Mathew Inwood
792fb35cee Merge "Add @UnsupportedAppUsage annotations" 2018-08-16 16:16:48 +00:00
Mathew Inwood
d717c04b12 Merge "Add @UnsupportedAppUsage annotations" 2018-08-15 15:41:26 +00:00
Mathew Inwood
348a7e7315 Merge "Add @UnsupportedAppUsage annotations" 2018-08-15 14:40:24 +00:00
Mathew Inwood
4c3bf0f36a Merge "Add @UnsupportedAppUsage annotations" 2018-08-15 13:32:44 +00:00
Mathew Inwood
b558baa4cc Merge "Add @UnsupportedAppUsage annotations" 2018-08-15 13:32:04 +00:00
Treehugger Robot
d08509363c Merge "Add @UnsupportedAppUsage annotations" 2018-08-15 12:32:09 +00:00
Mathew Inwood
9cf99fd91f Add @UnsupportedAppUsage annotations
For packages:
  android.text.util
  android.text.style
  android.text.method
  android.text.format
  android.text

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: I5be178ad05f2ff98bcf31e24cd4eb33961887c38
Merged-In: I9afbd4ca8826c37cb70db43252e39b9a674e5ae0
2018-08-15 12:49:00 +01:00
Mathew Inwood
9feefd2f5f Merge "Add @UnsupportedAppUsage annotations" 2018-08-15 11:37:37 +00:00
Mathew Inwood
06f2e6b7c8 Merge "Add @UnsupportedAppUsage annotations" 2018-08-15 11:36:01 +00:00
Treehugger Robot
fd07385fea Merge "Add @UnsupportedAppUsage annotations" 2018-08-15 10:11:01 +00:00
Mathew Inwood
72982a5404 Merge "Add @UnsupportedAppUsage annotations" 2018-08-15 10:10:35 +00:00
Neil Fuller
6f358b1947 Track rename of org.kxml to com.android.org.kxml
Update preloaded-classes to track libcore class renames.

The class renames may have caused a regression in some
performance metrics, though overall boot time was unaffected.
This is probably because the first user is now paying the cost
of the class initialization and that happens to be in the affected
metrics. There's no reason not to update the preloaded-classes.

Metrics affected:
SystemServerTiming_StartUsageService_avg
SystemServerTiming_StartJobScheduler_avg
SystemServerTiming_StartJobScheduler_avg

Test: build only
Bug: 111055375
Bug: 112595254
Change-Id: If1697918046ec7f186c095eaf68864d075989b9c
2018-08-15 10:40:47 +01:00
Mathew Inwood
1c77a11db2 Add @UnsupportedAppUsage annotations
For packages:
  android.content.res
  android.content.pm.split
  android.content.pm.permission
  android.content.pm.dex
  android.content.pm
  android.content.om
  android.content

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: Ie932bb108f8e21aad8576e444d43e7a553a4d128
Merged-In: Ia79256a3d04e16dd78331a61af0dcddc5fc1599b
2018-08-15 09:59:43 +01:00
Treehugger Robot
3683071fe2 Merge "Add @UnsupportedAppUsage annotations" 2018-08-15 07:36:26 +00:00