Commit Graph

95421 Commits

Author SHA1 Message Date
Jeff Sharkey
5f97b7ee27 Merge "Magic to keep "_data" paths working." 2018-10-26 19:31:08 +00:00
Sudheer Shanka
041d55c1e0 Merge "Update StorageManagerService handling of packages info." 2018-10-26 17:29:24 +00:00
Jeff Sharkey
bc2ae00878 Magic to keep "_data" paths working.
As part of the storage changes in Q, we're removing the ability for
apps to directly access storage devices like /sdcard/.  (Instead,
they'll need to go through ContentResolver.openFileDescriptor() to
gain access.)  However, in several places we're returning raw
filesystem paths in the "_data" column.  An initial attempt to simply
redact these with "/dev/null" shows that many popular apps are
depending on these paths, and become non-functional.

So we need to somehow return "_data" paths that apps can manually
open.  We explored tricks like /proc/self/fd/ and FUSE, but neither
of those are feasible.  Instead, we've created a cursor that returns
paths of this form:

/mnt/content/media/audio/12

And we then hook Libcore.os to intercept open() syscalls made by
Java code and redirect these to CR.openFileDescriptor() with Uris
like this:

content://media/audio/12

This appears to be enough to keep most popular apps working!  Note
that it doesn't support apps that try opening the returned paths
from native code, which we'll hopefully be solving via direct
developer outreach.

Since this feature is a bit risky, it's guarded with a feature flag
that's disabled by default; a future CL will actually enable it,
offering a simple CL to revert in the case of trouble.

Bug: 111268862, 111960973
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: Ied15e62b46852aef73725f63d7648da390c4e03e
2018-10-26 09:32:29 -06:00
Olivier Gaillard
91559181e4 Merge "Update BinderCallsStats perf tests to use a more realistic workload." 2018-10-26 14:16:48 +00:00
Nicolas Geoffray
7fa407f752 Merge "Attach SharedLibraryInfo to a Package." 2018-10-26 12:56:01 +00:00
TreeHugger Robot
0e93685da4 Merge "Update BinderCallsStats to use the worksource." 2018-10-26 11:21:31 +00:00
TreeHugger Robot
4807b6b226 Merge "Fix 2 graphical issues for drag resizing." 2018-10-26 08:41:35 +00:00
Olivier Gaillard
88de48f78e Update BinderCallsStats to use the worksource.
We update UidEntry to use the worksource when it is set.

Test: unit test
Change-Id: I7ddfcfcd87de21e6e0ded94a943ae71f1980a5ce
2018-10-26 08:08:28 +00:00
TreeHugger Robot
b99853ce3a Merge "Allow all system configs in /product_services" 2018-10-26 05:46:36 +00:00
Chong Zhang
d31872bc6a Merge "Color aspects keys information stored database" am: e4c918ba8e am: 89c615866a
am: e8c39f3ba0

Change-Id: I08c65f1b032fe92994202b64900cccc4f61adaef
2018-10-25 21:36:59 -07:00
Luke Huang
1edf4c6397 Merge "Firewall-related commands porting" am: 1acfa7de1b am: 6ba18c6b03
am: b87796365e

Change-Id: I3a2d3115a9664fd2be458076d7a7092a7cb5293c
2018-10-25 21:21:01 -07:00
Chalard Jean
96d551145d Merge "To support skip464xlat per Network" am: a01c77a499 am: e826aa52e4
am: fbb737678b

Change-Id: I4a6d7480e2e7e775e511cc7eaaabe65b6a3bde7d
2018-10-25 20:09:15 -07:00
Jan Kowal
f4ae587aed Merge "Fix for android.hardware.radio.Utils.createIntSet" am: b25190cf62 am: e01a3fd480
am: a5b038fb9e

Change-Id: If938c1028dac3a93d5152a370ef47df20b38052b
2018-10-25 19:26:22 -07:00
Kevin Chyn
ed5b85e3b1 Merge "Surface IBiometricsFace#userActivity to FaceManager" 2018-10-26 01:20:19 +00:00
Kevin Chyn
c8f0754e44 Merge "Add face acquired constants" 2018-10-26 01:19:47 +00:00
Hans Boehm
c18cd05c6f Merge "Remove NotificationVisibility storage pool" am: 24141e8124 am: cd2a7fb3b6
am: 8e96fe2c7f

Change-Id: I48d179b2e44b55541a5fe7b89d2daa1f7eeb5dd4
2018-10-25 17:51:50 -07:00
Sudheer Shanka
2ac25a96e7 Update StorageManagerService handling of packages info.
Instead of maintaining local copy of all appIds and sandboxIds,
StorageManagerService will just get required packages info
from PackageManagerService when an user starts and passes it
to vold.

Bug: 117988901
Test: manual
Change-Id: Ib7411645bd0c5e2801bc998d92fda00bceb9c258
2018-10-25 17:42:20 -07:00
TreeHugger Robot
f2e324bcdb Merge "Fix local Binder call scenario of IMMS#addClient()" 2018-10-25 23:53:20 +00:00
Steven Moreland
748f697207 Merge "pm: Disallow HIDL libs from boot jars >= Q." am: 06182b0764 am: 7430f3e6fd
am: 71ac2676b6

Change-Id: I4daf19b65d9b3e24c196e6ede697935b5c5460a3
2018-10-25 16:51:48 -07:00
Kevin Chyn
57f119b667 Surface IBiometricsFace#userActivity to FaceManager
Fixes: 117631611

Test: Builds
Change-Id: Ia2631be24a6920cb0f014d6f9e38c6337db4219b
2018-10-25 15:27:28 -07:00
TreeHugger Robot
f7082520bf Merge "Factor out InputMethodManager#forContext()" 2018-10-25 19:39:41 +00:00
TreeHugger Robot
f456997a8a Merge "Make pattern animation a little faster" 2018-10-25 19:35:22 +00:00
Garfield Tan
fbd8ea649f Fix 2 graphical issues for drag resizing.
1. There used to be double offset from the origin.

This is because we used to (in NYC) make the surface position to display
origin and draw content with a offset in the surface. However we lately
let the surface position be inherited from task surface position, so
there will be an offset from surface position and an offset from drawing
content in that surface.

To fix the bug I removed the offset in drawing content. That offset is
provided by WindowState#getBackdropFrame() so it just solved the issue
by moving frame to the origin.

2. Window quickly jumps when user starts drag resizing a window.

The reason is out of synchronization between surface insets change and
graphical buffer update. When user is drag resizing, we suppress window
shadow to save some graphical resources, which will consequently change
surface insets. Change in surface insets will cause the surface being
repositioned to reflect the new surface insets because window frame
doesn't change. However the content is still drawn at old location with
old surface insets for the first a few frames, so the content jumps to a
wrong location for a split second. This also happens when users stop
drag resizing.

I kept the old surface insets when user is resizing so there won't be
surface reposition at the beginning and end of drag resizing, but still
suppress the shadow by adjusting the elevation of DecorView.

Also fixed a synchronization issue we found in BackdropFrameRenderer,
and cleaned up code in it.

Bug: 113254346
Test: Manual tests show drag resizing for both freeform and split screen
works.
Change-Id: I42349f88f14af35fac7c65e784462b5f2e1a71c7
2018-10-25 11:24:35 -07:00
Kevin Chyn
f2aa603524 Add face acquired constants
Bug: 118382625

Test: Builds
Change-Id: I9d4024f1077a397dcb0895b16164a59a18449ce5
2018-10-25 10:54:01 -07:00
Makoto Onuki
25c782f9f2 Merge "DB Wipe detection" 2018-10-25 17:40:43 +00:00
Jeff Sharkey
da3b55a122 Merge "Reroute Uri conversions though MediaProvider." 2018-10-25 16:57:59 +00:00
John Reck
fcf14cfd94 Merge "Add theme & View API to control force-dark" 2018-10-25 16:35:10 +00:00
Olivier Gaillard
8a3e20a76c Update BinderCallsStats perf tests to use a more realistic workload.
Test: this is a test
Change-Id: I6dc7151c3df2a1e488db7d1b703ca29049b2e01a
2018-10-25 16:46:59 +01:00
TreeHugger Robot
1d63e024de Merge changes Ic6b623a7,Ib6811066
* changes:
  Makes minor modifications to Intent-based Service APIs
  Adds AIDL definitions for register/unregisterIntent
2018-10-25 15:14:17 +00:00
TreeHugger Robot
bd70ed4cfa Merge "Implement TextClassifierImpl.detectLanguage()" 2018-10-25 13:19:24 +00:00
Hung-ying Tyan
01ab87764e Allow all system configs in /product_services
Bug: 110072687
Test: build pass

Change-Id: I5629d8b984eeb2f9f6c80c931231de6ed35fe707
2018-10-25 10:11:12 +00:00
Misha Wagner
cc065fb95e Modify Process::readProcFile to read in variable size file
The original Process::readProcFile could only read files smaller than 256 bytes.
This change allows the function to read in larger files. For files smaller than
256 bytes, the added cost is only an extra read call, which returns zero.

Documentation has also been added to Process::readProcFile.

Test: Used in change 5168194

Change-Id: I82f27355276e08f96bdb5fe7da49514a87afb429
2018-10-25 10:51:40 +01:00
Chong Zhang
e8c39f3ba0 Merge "Color aspects keys information stored database" am: e4c918ba8e
am: 89c615866a

Change-Id: Ida5168cf1cea927dd79a9c2bacee0a156af60b76
2018-10-24 20:22:18 -07:00
Luke Huang
b87796365e Merge "Firewall-related commands porting" am: 1acfa7de1b
am: 6ba18c6b03

Change-Id: I15cedc624dc20168edc8feecf78affb9fad5482b
2018-10-24 19:49:58 -07:00
Chong Zhang
e4c918ba8e Merge "Color aspects keys information stored database" 2018-10-25 02:04:48 +00:00
Jeff Sharkey
643e99ef06 Reroute Uri conversions though MediaProvider.
Upcoming changes will prevent apps from reading "_data" columns
directly, which is required to convert between DocumentsProvider and
MediaProvider Uris.  To solve this, delegate the call() through
MediaProvider, where it can perform the "_data" lookup on behalf
of the caller.

Also add new getMediaUri() call to offer symmetry.

Bug: 111960973, 117627072, 110961701
Test: atest android.provider.cts.MediaStoreUiTest
Change-Id: I53c640704d86047d7a4bf1702aca027873395abf
2018-10-24 19:34:09 -06:00
Luke Huang
1acfa7de1b Merge "Firewall-related commands porting" 2018-10-25 00:20:12 +00:00
Chalard Jean
fbb737678b Merge "To support skip464xlat per Network" am: a01c77a499
am: e826aa52e4

Change-Id: I944738258051525b371bd17dd3ee7b411b82d12b
2018-10-24 17:19:51 -07:00
Jan Kowal
a5b038fb9e Merge "Fix for android.hardware.radio.Utils.createIntSet" am: b25190cf62
am: e01a3fd480

Change-Id: I51f552b40809c95620fbd3fbec4e21913bb74710
2018-10-24 16:24:13 -07:00
Nathan Harold
41e2d7494f Merge "Move some members to the "Q blacklist"." am: f5cf9f24ed
am: 13c9e7e2f3

Change-Id: Ia2419cce28d26d9464da2a5172cb332b629e943e
2018-10-24 16:14:06 -07:00
Yohei Yukawa
cb768bcbbf Fix local Binder call scenario of IMMS#addClient()
This is a follow up CL to my previous CL [1] that enabled per-display
InputMethodManager (IMM) instance.

One thing I mistakenly assumed in my previous CL is that there is
always a process boundary between IMM#createRealInstance() and
IMMS#addClient(), which is not true when IMM is being instantiated in
the system server process.  This means that IMMS may associate an IME
client to wrong PID/UID/DisplayID when certain conditions are met.

With this CL, IMM#createRealInstance() always clears calling identity
so chat IMMS#addClient() can work correctly even for local Binder call
scenarios.

 [1]: I78ad7cccb9586474c83f7e2f90c0bcabb221c47b
      4052a10f29

Bug: 115893206
Bug: 117594679
Fix: 118335706
Test: atest ActivityManagerMultiDisplayTests
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Test: atest FrameworksCoreTests:android.view.inputmethod.InputMethodManagerTest
Test: Manually tested with manually simulating the problematic scenario
Change-Id: I318d32d8997b0acb4fb193fe46831bdc9a4dd083
2018-10-24 16:05:09 -07:00
Yohei Yukawa
f682b1a5c4 Factor out InputMethodManager#forContext()
This CL aims to factor out InputMethodManager#forContext() and its
related methods.  This is still a mechanical refactoring hence there
should be no behavior change.

Bug: 115893206
Bug: 117594679
Bug: 118335706
Test: atest ActivityManagerMultiDisplayTests
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Test: atest FrameworksCoreTests:android.view.inputmethod.InputMethodManagerTest
Change-Id: I457745e18bfbd3e2787c5b438eee962a1928326e
2018-10-24 16:05:02 -07:00
Arthur Ishiguro
2640f0b7d7 Makes minor modifications to Intent-based Service APIs
Bug: 117612105
Test: None
Change-Id: Ic6b623a78a1a807363de403050f027ad3f950817
2018-10-24 15:33:09 -07:00
Arthur Ishiguro
a7c3797577 Adds AIDL definitions for register/unregisterIntent
Bug: 117612105
Test: Compile only
Change-Id: Ib68110664468afc56a33d3c5069f725014473ee1
2018-10-24 15:32:25 -07:00
Hans Boehm
8e96fe2c7f Merge "Remove NotificationVisibility storage pool" am: 24141e8124
am: cd2a7fb3b6

Change-Id: Ice97927d55a7c6bf867bcb136bf661243b572c19
2018-10-24 15:19:58 -07:00
Lucas Dupin
f84fa0052e Make pattern animation a little faster
Test: visual
Bug: 74259090
Change-Id: I49bb13621542c9dae015c76320cb2d1d2cde5e7e
2018-10-24 22:04:01 +00:00
Bill Yi
8b634e9191 Merge pie-platform-release to aosp-master - DO NOT MERGE
Change-Id: I695db52f5e22509401258e8b083e7650d401d993
2018-10-24 14:48:44 -07:00
Steven Moreland
71ac2676b6 Merge "pm: Disallow HIDL libs from boot jars >= Q." am: 06182b0764
am: 7430f3e6fd

Change-Id: I0f2fa1c1571283d247fb6ac344b0dc5b6085d3aa
2018-10-24 14:44:14 -07:00
John Reck
a2d20b447a Add theme & View API to control force-dark
Bug: 102591313
Test: CTS android.uirendering.cts.testclasses.ForceDarkTests

Change-Id: I6ba129681aed8e2f3f1b1ac60d458bb5f5393e9b
2018-10-24 10:17:20 -07:00
Eugene Susla
c63d1cc434 Merge "Temporary fix for sms cts regression" 2018-10-24 17:06:29 +00:00