Commit Graph

993 Commits

Author SHA1 Message Date
David Brazdil
f72534931b Merge "Add entry to hidden API greylist" am: e860c63891 am: 14c6783a2b
am: 4c9cb6aa76

Change-Id: I40b47a64b361b555a625ee472b31d373f2a7d86d
2018-09-19 02:12:01 -07:00
Andreas Gampe
ff647f505b Merge "Update boot image profile to include Object.wait()" am: ba0b212a33 am: 0d68d68b39
am: 4af76de6da

Change-Id: Ibd56ba7fd9ef20dd94072aa8f22235f22d56cbf6
2018-09-18 23:09:59 -07:00
David Brazdil
7394fbf22a Add entry to hidden API greylist
Bug: 114488777
Test: m appcompat
Change-Id: I8207503ab2904eb61e0f49e1fa317602d9fa145d
2018-09-19 05:34:44 +00:00
Andreas Gampe
5afc95c2c4 Update boot image profile to include Object.wait()
Bug: 116028959
Test: m
Test: inspect oatdump
Change-Id: I5aefa4e334d61cd24f110a35a0084d563a8aca63
2018-09-18 14:21:11 -07:00
David Brazdil
b9a881573b Merge changes I66bbe8b5,Ie54677db am: 4f5f8f4192 am: 27f86bfb81
am: b97e7a0678

Change-Id: Id4bd58ad3a56cd6868e6fee6baf83681ab31a248
2018-09-17 22:59:05 -07:00
David Brazdil
4f5f8f4192 Merge changes I66bbe8b5,Ie54677db
* changes:
  Add api to hidden API light grey
  Add new entries to hidden API light grey
2018-09-18 04:02:34 +00:00
Steven Moreland
b7b257fcb1 Merge "Revert "preloaded-classes: remove core HIDL libs"" am: 6e9ce1a296 am: 1266b4f491
am: 8e638ef6b8

Change-Id: I7e9c0510188fa9061f5a03737b6c881c266df15a
2018-09-17 18:39:12 -07:00
Steven Moreland
6e9ce1a296 Merge "Revert "preloaded-classes: remove core HIDL libs"" 2018-09-17 23:40:39 +00:00
Steven Moreland
0c697ee37f Revert "preloaded-classes: remove core HIDL libs"
This reverts commit 766b425c27.

Appears to be the cause of a 14ms regression in wifi startup time in system server that could be offset here (and potentially other places) by keeping the preload in zygote. A local trial of five showed this revert to take it 111.2ms -> 108ms. The variance is likely too high for this to be significant, however, logically, in the short term, these libraries are being used, and so preloading makes sense. I'll leave further changes to this list to the owners of this list.

Test: boot walleye 5 times w/ and w/o this test, and find small gain in reverting this.
Reason for revert: b/115771598

Change-Id: Ia53dbe8b70900d6f04011b15cbdddf786378fc3b
2018-09-17 18:11:02 +00:00
Adam Vartanian
9cfb9ce7f8 Merge "Update greylist for Conscrypt update" am: 27eec4b376 am: b4c55fac9a
am: 223c3ef691

Change-Id: Icb3187632d62bf313840c6f497115a6210cde7aa
2018-09-17 07:27:04 -07:00
Adam Vartanian
27eec4b376 Merge "Update greylist for Conscrypt update" 2018-09-17 12:36:50 +00:00
David Brazdil
2a706f89f5 Add api to hidden API light grey
Bug: 115409173
Test: m appcompat
Change-Id: I66bbe8b5cd1eed56c2dba74aac05f7a0baaff260
2018-09-15 03:49:58 +01:00
David Brazdil
8adc0a8877 Add new entries to hidden API light grey
Bug: 115479641
Test: m appcompat
Change-Id: Ie54677db0370ad1da8a5ed6253027a2e789ca5bc
2018-09-15 03:49:42 +01:00
Jeff Sharkey
7da7681c6b Merge "Provide paths of interest to vendors." 2018-09-13 21:19:14 +00:00
Jeff Sharkey
e0339a6f6e Merge "Support more createPackageContextAsUser() users." 2018-09-13 20:08:57 +00:00
Jeff Sharkey
70eb34a23c Provide paths of interest to vendors.
Also update docs on path translation APIs, which are now no-ops.

Bug: 112159421
Test: none
Change-Id: I0912a6adb233b39f61728642fcefb83a74fa6662
2018-09-13 12:04:38 -06:00
Steven Moreland
eb3c1e75b5 preloaded-classes: remove core HIDL libs am: 766b425c27 am: 91eb5b062d
am: 0da2bc6b21

Change-Id: I0137d506f07853861961312db16e79736a03c14c
2018-09-13 10:28:34 -07:00
Steven Moreland
91eb5b062d preloaded-classes: remove core HIDL libs
am: 766b425c27

Change-Id: Ia7989be30be230cbad93e51a1efe033f49f2e37b
2018-09-13 09:34:06 -07: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
TreeHugger Robot
071f28ded1 Merge "Revert the mandatory backups feature." 2018-09-13 08:45:35 +00:00
lumark
90120a8b5b Support IME Window to show in secondary display.
1) Moving WMS.setInputMethodWindowLocked to DisplayContent,
   each display can have its own IME window.
2) Add getDisplayIdFromWindow in WindowManagerInternal,
   used for InputMethodManagerService to know which display
   for given IME window token.
3) Support add / remove IME window according displayId.
4) Modify WMS.inputMethodClientHasFocus to traverse all active display
   if inputMethodClient focused.
5) Add displayId parameter for IInputMethod.initializeInternal to
   update context display then client can addView to right display.

Note: 1) There should be zero behavior difference as long as the target
         app is running on the default display.
      2) The current implementation is not final and there are still
         chances that the current IME may not work well or even crash
	 depending on how the IME is implemented.

Bug: 111364446
Test: manual, use ActivityView & launch Messages in VirtualDisplay,
      tap search icon to see if soft input keyboard shown &
      app window size is adjusted by soft input.
Change-Id: I8da315936caebdc8b2c16cff4e24192c06743251
2018-09-13 12:52:40 +08:00
Jeff Sharkey
ec5f7d1625 Support more createPackageContextAsUser() users.
We created this API to make it easy to pass a given UserHandle into
all Managers obtained from a given Context, which works great for
"normal" users, but we should also support special users like ALL
and CURRENT.

Also add an AutoCloseable marker to make try-with-resources easier.

Bug: 112153259
Test: atest android.content.cts.ContextTest
Change-Id: I261dfcc5cfdfc76bda5d70181785e11c2715a558
2018-09-12 14:02:11 -06: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
Lenka Trochtova
3b6e08772e Revert the mandatory backups feature.
Bug: 79736299
Test: make RunFrameworksServicesRoboTests
Test: cts-tradefed run cts -m CtsBackupHostTestCase

Change-Id: I1209174c9f6aa794c7ca67f4a8737c0589d5fd69
2018-09-12 13:39:05 +02: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
d855bd60e7 Merge "Revert "Check in P dark greylist, use it for hidden API list generation"" am: e87700fc97 am: 5c6894a85b
am: e39835cd8f

Change-Id: I4fda8b3d7519f8ab242c04e1f9547285f1acacf4
2018-09-11 10:39:24 -07:00
David Brazdil
4a55eebf26 Revert "Check in P dark greylist, use it for hidden API list generation"
This reverts commit 3cc74c71ef.
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
91a6b8bfa9 Merge "Framework: Ensure important fdsan function is compiled" am: d5af15ee91 am: c21378ea83
am: 45564930be

Change-Id: I4250b2b874b1f4ee88dc6a4e4005ce3f9f808164
2018-09-10 16:03:33 -07:00
Andreas Gampe
350694ad10 Framework: Ensure important fdsan function is compiled
Compile ForwardingOs fdsan-using functions. Follow-up to commit
5625660c65.

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
68b8394d98 Merge "Framework: Ensure important fdsan function is compiled" am: afd30193a2 am: 2e657316c4
am: 9bf4ce737b

Change-Id: I66ad80be0c5c1894cf78f8d5e20109a5398f3cf4
2018-09-07 21:39:13 -07: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
d3e4a4aead Merge changes from topic "hiddenapi-dark-grey" am: 3d93d8f323 am: 5c776dea7e
am: fa5ad5cb9b

Change-Id: I22668080195cc78f3ee2576f6094eeb524781c96
2018-09-07 03:43:20 -07:00
David Brazdil
a5249f9b0d Check in P dark greylist, use it for hidden API list generation am: 3cc74c71ef am: 38d2793a7d
am: a77f53d1e3

Change-Id: I42afed836a9e325cdf10585eb62aaf9cab35c5d2
2018-09-07 03:32:05 -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
Charles Chen
3b37d4d803 Merge "Fix WM input limitations on secondary displays (3/4)" 2018-09-06 11:26:44 +00: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
c5ef1e2589 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: I51bf94b736cae57780708a70947511c409a2dfb6
2018-08-31 12:20:15 +01:00
Philip P. Moltmann
4e615e6986 Factor some RestrictedLockUtils out of SettingLib
Also make the new lib only use system-apis.

This allows mainline module to use the new
RestrictedLockUtilsSettingLib.

Unfortunately the whole RestrictedLockUtils would have caused to much
new system-api. Hence it was split into RestrictedLockUtils and
RestrictedLockUtilsInternal. This caused a lot of trivial code changes.

Bug: 110953302
Test: Built
Change-Id: I693b3bf56f3be71f0790776e3aad5694717786ef
2018-08-30 11:59:29 -07:00
Mathew Inwood
98e9ad1645 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: I67c8b71ea535ebffb10bf577948bd4ccb8ca069d
2018-08-30 13:38:42 +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
Arthur Hung
39134b21d8 Fix WM input limitations on secondary displays (3/4)
One DisplayContent contains one InputMonitor now.
- Change setInputWindow of InputManagerService updated by displayId,
  so Window Handles in InputDispather can be updated by each DisplayContent.
- Only exist one focus in current state, reset it if in removed DisplayContent,
  will be updated by default display or focused display.
- Add displayId parameter for createInputConsumer and destroyInputConsumer,
  so InputConsumer from PIP, RecentApp and Wallpaper can be supported in multi-display.

Bug: 111363643
Test: atest WindowManagerSmokeTest ActivityManagerMultiDisplayTests
Test: atest com.android.server.wm.DisplayContentTests
Test: atest libinput_tests inputflinger_tests
Change-Id: I999c355be1789af5759f00206475d004e10116e3
2018-08-30 09:59:09 +00:00
Mathew Inwood
fa4ccace61 Merge "Add @UnsupportedAppUsage annotations" 2018-08-30 07:55:39 +00:00
Vishnu Nair
aeab1b8251 SF: Remove setFinalCrop impl 1/2
setFinalCrop functionality is reimplemented by creating a new bounds layer
and applying a crop on this layer. see ag/4625718

Test: go/wm-smoke

Change-Id: I3ffb6dc2e2afd5170f6c6dee9e928ed0600656b1
2018-08-29 08:37:38 -07:00
Mathew Inwood
c8344a1963 Merge "Add @UnsupportedAppUsage annotations" 2018-08-29 12:15:18 +00:00
TreeHugger Robot
1201c5b265 Merge "Remove IInputMethodManager.getEnabledInputMethodList() from greylist" 2018-08-29 08:46:34 +00:00
Jeff Sharkey
3d80a7d36a Merge "Clean/destroy app shared storage via installd." 2018-08-28 19:37:19 +00:00
Yohei Yukawa
40b5923302 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
Change-Id: Idf9fa866f73dbd151bb67f60dbd57041d9055a23
2018-08-28 12:05:41 -07:00
Nandana Dutt
5285dcb1ba Greylist CAPTURE_{SECURE_}VIDEO_OUTPUT permissions
These permissions are now signature only and have been
removed from the SDK. Add to light greylist.

BUG: 111131054
Test: make & verified generated file
out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt
contains the permissions.

Change-Id: I9ba89b42906a3e352184c9df9132cf1236271592
2018-08-28 16:06:03 +01:00