296655 Commits

Author SHA1 Message Date
Todd Kennedy
078f538eb2 Launch ephemeral intent
In MR1, the ephemeral application was launched via the supervisor.
In O, the ephemeral application is installed on the system as a
proper application and runs natively.

Bug: 30204367
Test: build & install the framework and run 'adb shell am start -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d "https://www.tripadvisor.com/Tourism-g33020-San_Jose_California-Vacations.html"'
Change-Id: Iea496862aeb72c6bfde439620950ba951d859cc7
2016-11-22 13:29:11 -08:00
Steven Moreland
e4e166790b Merge "LightService: log errors." 2016-11-21 21:39:41 +00:00
TreeHugger Robot
78d6e340e1 Merge "No direct Uri grants from system." 2016-11-21 20:29:04 +00:00
Philip P. Moltmann
76932df9ec Merge "Wait when other thread is binding to print spooler" 2016-11-21 19:21:24 +00:00
Jeff Sharkey
2dfe92c2df No direct Uri grants from system.
The system should never be extending Uri permission grants from
itself, since it automatically holds all the permissions.  Instead,
the system should always be a mediator between two specific app, and
it should be using startActivityAsCaller() if it needs to extend
permissions.

Blocking at this level fixes an entire class of confused deputy
security issues.

Test: builds, normal intent resolution UI works
Bug: 33019296
Change-Id: Iaa57c393a386d8068e807d0dd0caccc89d8a11db
2016-11-21 12:03:22 -07:00
Jeff Tinker
66f6547ba9 Merge "Removing widevine classic" 2016-11-21 17:53:18 +00:00
Torne (Richard Coles)
2c0dc3e094 Merge "Precreate the classloader for the WebView." am: 566b1c80e4 am: 1feb782f01 am: 9565860b08
am: 7e17c6b0f1

Change-Id: Ie512327827e48319b3244a8d3041cb78538109d3
2016-11-21 17:18:55 +00:00
Torne (Richard Coles)
7e17c6b0f1 Merge "Precreate the classloader for the WebView." am: 566b1c80e4 am: 1feb782f01
am: 9565860b08

Change-Id: I070288a127cbaa08f05b49f66e23ea0ec298040b
2016-11-21 17:13:45 +00:00
Torne (Richard Coles)
9565860b08 Merge "Precreate the classloader for the WebView." am: 566b1c80e4
am: 1feb782f01

Change-Id: Iec0bf848e4c25afc6a6b9ee83339a03f314adee9
2016-11-21 17:08:46 +00:00
Torne (Richard Coles)
1feb782f01 Merge "Precreate the classloader for the WebView."
am: 566b1c80e4

Change-Id: Ic79079748dae515cb8d89ef99148755ac65f1d47
2016-11-21 17:04:22 +00:00
Treehugger Robot
566b1c80e4 Merge "Precreate the classloader for the WebView." 2016-11-21 16:54:53 +00:00
Jeff Sharkey
ca50c360bf Merge "Check provider access for content changes." 2016-11-21 16:19:43 +00:00
Ian Pedowitz
cd3672586e Merge "Revert "Lists returned from OS aren't mutable."" 2016-11-21 15:13:30 +00:00
Ian Pedowitz
4fe2517732 Revert "Lists returned from OS aren't mutable."
This reverts commit 97449fa389dbc1ab872d63fde001bae7a659991b.

Bug: 33034458
Bug: 33032977
Bug: 27856974
Change-Id: If913e587ce4a48b9ed1c7c0a811bc39ce4e31d3c
2016-11-21 15:09:54 +00:00
Torne (Richard Coles)
3b6ca99b10 Precreate the classloader for the WebView.
We want to create the classloader for the WebView in advance in the
zygote so that it can preload Java and native code for its children, but
the zygote can't talk to the package manager (so doesn't have a
PackageInfo for the APK) and also doesn't have an ActivityThread, so
constructing a LoadedApk is difficult.

Instead, we use the fact that ApplicationLoaders contains a
process-global cache of classloaders for APKs, and prepopulate a cache
entry without constructing a LoadedApk. This requires making
ApplicationLoaders public. To calculate the correct library paths from
the information the zygote has, we reuse the logic in LoadedApk (which
is already public, and just needs a small change to allow a null
ActivityThread when checking for instrumentation).

The other parameters for classloader creation (target SDK, bundled app,
etc) are hardcoded to usable values for the WebView's case. WebView
never needs to use any system libraries that aren't public so claiming
it's not bundled is fine even when that isn't actually true, and WebView
will always target the current platform API level.

Once the classloader is created, look up the factory class and call
preloadInZygote on it to give it a chance to preload the native library
and do other shared initialisation.

Bug: 21643067
Test: enable multiprocess WebView, examine librank output to see sharing
Change-Id: I696ead637e3f7382bcc58cfaf61eac5921862015
2016-11-21 15:04:13 +00:00
Tobias Thierer
03c28084d5 Merge "API: Rename Collections.singleton*() type arg E -> T" 2016-11-21 14:33:53 +00:00
Tobias Thierer
be7e5900b2 API: Rename Collections.singleton*() type arg E -> T
This rename is part of the update of Collections.java to OpenJDK8u60.

This is compatible change because generic type argument names affect
neither compile time nor runtime compatibility.

The build system (incorrectly) flags this as a change to a released
API. Removing or changing released public APIs is infeasible on AOSP.
Therefore this change will remain restricted to internal branches
until the API is released.

Bug: 31902309
Test: make
Change-Id: I54bc3d6321429ff18c6057332b469286e8b1d42d
2016-11-21 11:45:27 +00:00
TreeHugger Robot
6b18e8f58c Merge "Import translations. DO NOT MERGE" 2016-11-21 07:26:08 +00:00
TreeHugger Robot
583727a345 Merge "Update the documentation related to VD / AVD" 2016-11-21 05:49:19 +00:00
Bill Yi
f3daae9a16 Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: b9762351a3 -s ours am: 00544de5d0 -s ours
am: 059022bc1b  -s ours

Change-Id: Ie0f0b1e584527475c30aff1b45f957789b0cac14
2016-11-21 02:36:47 +00:00
Bill Yi
e291f00d8a Import translations. DO NOT MERGE am: 2bfcd92a56 -s ours am: c530f91d8d -s ours
am: b4013c83be  -s ours

Change-Id: Ib21972c9ae333143ce12e33e4f7175c799bcb69d
2016-11-21 02:35:46 +00:00
Bill Yi
9282876d7c Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: 1ad0a421a6 -s ours am: c8d1cba0fa -s ours
am: 28345564b1  -s ours

Change-Id: I66f0140a84d555679c1f61df787dffc3128bb49f
2016-11-21 02:34:40 +00:00
Bill Yi
5f9416b379 Import translations. DO NOT MERGE am: e65b214f31 -s ours am: 584f7438ad -s ours
am: 31174c35f0  -s ours

Change-Id: I079e4f35c405cb614403de53284b4abfd447fd82
2016-11-21 02:33:31 +00:00
Bill Yi
cbae2ec617 Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: 5770cc3c21 -s ours am: b712d61315 -s ours
am: 641a470843  -s ours

Change-Id: I7cf89e650005871658ae2247374ac95d62247206
2016-11-21 02:32:27 +00:00
Bill Yi
0522a57b4b Import translations. DO NOT MERGE am: de5a72d802 -s ours am: 1959d2182c -s ours
am: 8fb0ffb4d0  -s ours

Change-Id: I45f39dd9afc3ade0431550c20e6fa1efe907b8ad
2016-11-21 02:31:15 +00:00
Bill Yi
bfba02e23e Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: dc92c70106 -s ours am: fb8a4d17c2 -s ours
am: e083c8ea88  -s ours

Change-Id: I9952e7ec17edfe7746c99dd5aa5e96c54e4ca100
2016-11-21 02:28:03 +00:00
Bill Yi
14c7b3a4dc Import translations. DO NOT MERGE am: 2a2e8ce297 -s ours am: 3ea5862bb1 -s ours
am: e71efd830b  -s ours

Change-Id: I78aff8732c8a3e9e581f08464f706441a4446c02
2016-11-21 02:26:57 +00:00
Bill Yi
ff78f44595 Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: 81abcfea7b -s ours am: bb7bad413a -s ours
am: 44ceb0eef5  -s ours

Change-Id: I287d63ac13ab680e2c103262caac3ecf5b8435fe
2016-11-21 02:25:55 +00:00
Bill Yi
fc6a9e8226 Import translations. DO NOT MERGE am: 521b3d5259 -s ours am: db8719a721 -s ours
am: d19aba43cd  -s ours

Change-Id: I8a0451022b919ce20e19f1076e5759522c211596
2016-11-21 02:24:48 +00:00
Bill Yi
bac2ad743b Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: f94b944f80 -s ours am: 56cfda2ed4 -s ours
am: b8953810e8  -s ours

Change-Id: I4da36c04729ebc2bdb3f9d18f473537adbd4828f
2016-11-21 02:23:42 +00:00
Bill Yi
b2b6691991 Import translations. DO NOT MERGE am: 149b6ede65 -s ours am: f4561d90dc -s ours
am: c2574b9ba6  -s ours

Change-Id: I5846a654d802435a00cdb0e8b034ff2111fbb8be
2016-11-21 02:22:39 +00:00
Bill Yi
059022bc1b Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: b9762351a3 -s ours
am: 00544de5d0  -s ours

Change-Id: I6f8aabe8b93dd3a81f615bdc33cd7ce8997a65e8
2016-11-21 02:20:24 +00:00
Bill Yi
b4013c83be Import translations. DO NOT MERGE am: 2bfcd92a56 -s ours
am: c530f91d8d  -s ours

Change-Id: I10126d3aa1d2c315445a22059182d95c03f71520
2016-11-21 02:19:20 +00:00
Bill Yi
28345564b1 Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: 1ad0a421a6 -s ours
am: c8d1cba0fa  -s ours

Change-Id: I485a1f07041a16db18feec8cc83b282363bec568
2016-11-21 02:18:15 +00:00
Bill Yi
31174c35f0 Import translations. DO NOT MERGE am: e65b214f31 -s ours
am: 584f7438ad  -s ours

Change-Id: I420d94ba079fa629dc1427b868a2633d98fd296a
2016-11-21 02:17:10 +00:00
Bill Yi
641a470843 Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: 5770cc3c21 -s ours
am: b712d61315  -s ours

Change-Id: Ia30f6cfcc7f7aa54ce3dab4e0f6cdbc75f75204f
2016-11-21 02:16:11 +00:00
Bill Yi
8fb0ffb4d0 Import translations. DO NOT MERGE am: de5a72d802 -s ours
am: 1959d2182c  -s ours

Change-Id: Ic59f23548fff2936730508652c2175859871cb43
2016-11-21 02:15:10 +00:00
Bill Yi
a3c92c19ac Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: 577b77a87a -s ours am: 875ecf8dcf -s ours
am: 4286a5b80a  -s ours

Change-Id: I348dd1a2a98f005b4c761e46a2eb1ac36c8104da
2016-11-21 02:15:01 +00:00
Bill Yi
e083c8ea88 Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: dc92c70106 -s ours
am: fb8a4d17c2  -s ours

Change-Id: Iad52ae446ff8eb6a628ef29a7bd2013e7f060994
2016-11-21 02:14:05 +00:00
Bill Yi
2965a76b63 Import translations. DO NOT MERGE am: a54b679f2a -s ours am: 1d4aff76fa -s ours
am: 23e3ac4cb5  -s ours

Change-Id: Ib6aee525905d5b38687214e2d9a386a246cba7b5
2016-11-21 02:13:57 +00:00
Bill Yi
e71efd830b Import translations. DO NOT MERGE am: 2a2e8ce297 -s ours
am: 3ea5862bb1  -s ours

Change-Id: Ic7e86d0fc29124ff060e45a0e37e8f6b12b6eb64
2016-11-21 02:13:00 +00:00
Bill Yi
0372d8da44 Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: a4c8fe82e8 -s ours am: bbdb6e79ba -s ours
am: bd36ee3b77  -s ours

Change-Id: If42d45c864baf815fd23507cc74390d9e2c4be1d
2016-11-21 02:12:52 +00:00
Bill Yi
44ceb0eef5 Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: 81abcfea7b -s ours
am: bb7bad413a  -s ours

Change-Id: I82a6ab8827a3b8416d797493f07f0b036af8d4ea
2016-11-21 02:11:59 +00:00
Bill Yi
ef75fd7ac1 Import translations. DO NOT MERGE am: 484b776b78 -s ours am: 80cfaad5e4 -s ours
am: 175d2b2848  -s ours

Change-Id: I9de82526de99f4504e3348934b7b30f578dc3d72
2016-11-21 02:11:49 +00:00
Bill Yi
d19aba43cd Import translations. DO NOT MERGE am: 521b3d5259 -s ours
am: db8719a721  -s ours

Change-Id: I1391a2c743347808cb0a215fb40eeeb0c7267b52
2016-11-21 02:10:54 +00:00
Bill Yi
9c5c479e91 Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: 9fb559183f -s ours am: 7edeb95b59 -s ours
am: b521fe6756  -s ours

Change-Id: I27b995b52d91d527824139156e0afef4275e4bbe
2016-11-21 02:10:41 +00:00
Bill Yi
b8953810e8 Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: f94b944f80 -s ours
am: 56cfda2ed4  -s ours

Change-Id: Ia1590d2e57d40b54fc799ba63a6e488b131dcc2f
2016-11-21 02:09:48 +00:00
Bill Yi
212ef3d273 Import translations. DO NOT MERGE am: 44fc3e0900 -s ours am: 1a9f44a604 -s ours
am: ffcdd21814  -s ours

Change-Id: I118efb46fb9ad277e893e051f3110e90ee534b1d
2016-11-21 02:09:37 +00:00
Bill Yi
c2574b9ba6 Import translations. DO NOT MERGE am: 149b6ede65 -s ours
am: f4561d90dc  -s ours

Change-Id: Ie0f3bd3f011183c33640ad58dd094d54bbb0a2ac
2016-11-21 02:08:42 +00:00
Bill Yi
62b82f4815 Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: c3ba50cc48 -s ours am: f9bdf27124 -s ours
am: e01dadb8bf  -s ours

Change-Id: Ifa08f376895bd9c238aceb7a2c0a48447ef1bd2e
2016-11-21 02:06:16 +00:00