Commit Graph

87586 Commits

Author SHA1 Message Date
Jeff Sharkey
bdfb26ac3b DO NOT MERGE: Check provider access for content changes.
am: 11e3e52bd9

Change-Id: Ice374d398888e2898f571cee7df73f5e47921655
2016-12-02 18:19:51 +00:00
Jeff Sharkey
bc7aae3610 DO NOT MERGE. Retain DownloadManager Uri grants when clearing.
am: 17010dc0d2

Change-Id: I7c6d507411864912937c9dbacc985cb834760cfe
2016-12-02 02:05:34 +00:00
Jeff Sharkey
17010dc0d2 DO NOT MERGE. Retain DownloadManager Uri grants when clearing.
As part of fixing a recent security issue, DownloadManager now needs
to issue Uri permission grants for all downloads.  However, if an app
that requested a download is upgraded or otherwise force-stopped,
the required permission grants are removed.

We could tell DownloadManager about the app being stopped, but that
would be racy (due to background broadcast), and waking it up would
degrade system health.  Instead, as a special case we now only
consider clearing DownloadManager permission grants when app data
is being cleared.

Bug: 32172542, 30537115
Test: builds, boots, app upgrade doesn't clear grants
Change-Id: I7e3d4546fd12bfe5f81b9fb9857ece58d574a6b9
(cherry picked from commit 23ec811266)
2016-12-02 00:05:40 +00:00
Scott Main
192a8c4973 Add cross-links between FINE and COARSE location permissions. bug: 25371600 am: 3fef783359
am: c8b11fb7cb

Change-Id: I6db78aa2008d2bdd675a87daeae132e5f5c09371
2016-11-18 15:24:18 +00:00
Scott Main
c8b11fb7cb Add cross-links between FINE and COARSE location permissions. bug: 25371600
am: 3fef783359

Change-Id: I7a7e25c37fcd7863f51ea116f624d0bdc2d0c5c6
2016-11-18 15:17:06 +00:00
Jeff Sharkey
11e3e52bd9 DO NOT MERGE: Check provider access for content changes.
For an app to either send or receive content change notifications,
require that they have some level of access to the underlying
provider.

Without these checks, a malicious app could sniff sensitive user data
from the notifications of otherwise private providers.

Test: builds, boots, PoC app now fails
Bug: 32555637
Change-Id: If2dcd45cb0a9f1fb3b93e39fc7b8ae9c34c2fdef
2016-11-17 21:01:43 +00:00
Scott Main
3fef783359 Add cross-links between FINE and COARSE location permissions.
bug: 25371600

Change-Id: I7af21b063533085ce20c51d18f118c7752fd77f0
(cherry picked from commit b18745616f)
2016-11-16 04:08:16 +00:00
Narayan Kamath
c50c43667f Zygote: Additional whitelisting for legacy devices. am: 5e2f7c6229 am: 6bf96c1192 am: 22e45fa247 am: d98e75feca
am: 87dc13f249

Change-Id: I7e23610ef0799dcfb3ac3598011280de22ffc25f
2016-11-14 13:09:06 +00:00
Narayan Kamath
87dc13f249 Zygote: Additional whitelisting for legacy devices. am: 5e2f7c6229 am: 6bf96c1192 am: 22e45fa247
am: d98e75feca

Change-Id: Ic63a80f3a591956fd82a223c74050a24d7805add
2016-11-14 12:52:53 +00:00
Narayan Kamath
d98e75feca Zygote: Additional whitelisting for legacy devices. am: 5e2f7c6229 am: 6bf96c1192
am: 22e45fa247

Change-Id: I70befe1803e89e9e2bbcaa70738cf53b16ec7280
2016-11-11 00:10:31 +00:00
Narayan Kamath
d17867203b Zygote: Additional whitelists for runtime overlay / other static resources. am: 4e8ba1d73e am: d501e032d8
am: 932cd0ed0e

Change-Id: Iadfa4ef7ca1537df9c9a0d53bb75dce0f64be567
2016-11-11 00:04:27 +00:00
Narayan Kamath
22e45fa247 Zygote: Additional whitelisting for legacy devices. am: 5e2f7c6229
am: 6bf96c1192

Change-Id: I65bc57fa4fe9fa1257ce0f4b5836616594643234
2016-11-10 23:58:54 +00:00
Narayan Kamath
932cd0ed0e Zygote: Additional whitelists for runtime overlay / other static resources. am: 4e8ba1d73e
am: d501e032d8

Change-Id: I97c4e04554c2da5bee56dc741cf71c7d2f1cba60
2016-11-10 23:56:58 +00:00
Narayan Kamath
6bf96c1192 Zygote: Additional whitelisting for legacy devices.
am: 5e2f7c6229

Change-Id: I36adcd8393eab2bb4421f9e3e72302c5db37422a
2016-11-10 23:40:36 +00:00
Narayan Kamath
d501e032d8 Zygote: Additional whitelists for runtime overlay / other static resources.
am: 4e8ba1d73e

Change-Id: I52347c0024cc230d6e3db739eaafd78989c18430
2016-11-10 23:39:03 +00:00
Chris Elliott
06a55fb553 Merge "DO NOT MERGE ANYWHERE Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission" into cw-e-dev 2016-11-10 17:48:24 +00:00
Narayan Kamath
720fcbc1f7 Zygote : Block SIGCHLD during fork.
am: dfcc79ee8e

Change-Id: I64b380e54d73c777898ece33ba62b838b556921b
2016-11-10 10:15:56 +00:00
Hugo Benichi
f88508bd3e DO NOT MERGE ANYWHERE Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission
This patch creates a new permission used by ConnectivityService to give
access to restricted networks without the NET_CAPABILITY_NOT_RESTRICTED
capability bit on.

Bug: 24497316
Change-Id: I5b6c8a9ef14395b2f1ab26cb17b24d7876ec79f1
2016-11-09 19:08:30 -08:00
Narayan Kamath
4f65baa12f Zygote: Additional whitelists for runtime overlay / other static resources.
am: 25cd01cc69

Change-Id: I64dce88921b36a58dc66cd4b89e571ce9b8114eb
2016-11-09 20:13:16 +00:00
Narayan Kamath
dfcc79ee8e Zygote : Block SIGCHLD during fork.
We close the android logging related sockets prior as late as possible
before every fork to avoid having to whitelist them. If one of the
zygote's children dies after this point (but prior to the fork), we can
end up reopening the logging sockets from the SIGCHLD signal handler.

To prevent this from happening, block SIGCHLD during this critical
section.

Bug: 32693692
Test: Manual

(cherry picked from commit e9a525829a)

Zygote: Unblock SIGCHLD in the parent after fork.

Follow up to change e9a525829a. Allows the zygote to
receive SIGCHLD again and prevents the zygote from getting into a
zombie state if it's killed.

Contributed-By: rhed_jao <rhed_jao@htc.com>
Bug: 32693692
Test: manual

(cherry picked from commit c7161f756e86b98f2244a04d9207b47149965fd7)

Change-Id: If89903a29c84dfc9b056f9e19618046874bba689
2016-11-09 18:30:55 +00:00
Narayan Kamath
12f98789bf Merge "Zygote: Additional whitelists for runtime overlay / other static resources." into nyc-dev 2016-11-09 09:48:43 +00:00
Narayan Kamath
5e2f7c6229 Zygote: Additional whitelisting for legacy devices.
On M and below, we provide a blanket whitelist for all files under
"/vendor/zygote_whitelist". This path is whitelisted purely to allow
this patch to be applied easily on legacy devices and configurations.

Note that this does not amount to a loosening of our security policy
because whitelisted files are reopened anyway.

Bug: 32691930
Test: manual
Change-Id: If5b53f6f0a707f8d36603c09bfd3f72dbfbbbb99
2016-11-07 19:59:29 +00:00
Narayan Kamath
4e8ba1d73e Zygote: Additional whitelists for runtime overlay / other static resources.
Partially cherry picked from commit 1c15c63578.

These files are safe to reopen for the same reason that files in
/system/framework are. They're regular files and will not change after
the first zygote fork.

Bug: 32618130

Change-Id: I119e0bfcbf397cb331064adf148d92a5cd3ea92f
2016-11-07 19:49:23 +00:00
Narayan Kamath
25cd01cc69 Zygote: Additional whitelists for runtime overlay / other static resources.
Partially cherry picked from commit 1c15c63578.

These files are safe to reopen for the same reason that files in
/system/framework are. They're regular files and will not change after
the first zygote fork.

Bug: 32618130

Change-Id: I119e0bfcbf397cb331064adf148d92a5cd3ea92f
2016-11-07 16:59:05 +00:00
Shuo Gao
1b5d5bd119 DO NOT MERGE ANYWHERE Enable shader cache for applications that shared UID with multiple packages
from AOSP: https://android-review.googlesource.com/#/c/209490/

Frameworks supported a mature mechanism for shader cache per each package already,
but as a special case such as Settings APP, if there are several packages in this
application which means that multiple packages shared the same SharedUserID with it,
it won't initialize the graphics disk caches, thereby APP like Settings have to
rebuild and relink shader every time during launch, which cause a bad launching
performance, so here to enable the GFX and RS cache initialization for multiple
shared packages case too.

Change-Id: If0f927e3399b775804abf1d9a868887951f471c5
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
2016-10-25 18:49:47 -07:00
Thomas Buhot
80e6d8873b DO NOT MERGE ANYWHERE libhwui: make setSurface asynchronous
from AOSP: https://android-review.googlesource.com/#/c/183305/

On the critical path of the cold launch of applications
the main thread of the started application tells the RenderThread
to create a surface. This process is synchronous and blocks
the main thread of the application until the creation
of the EGLContext is complete.
As a consequence the launch time of the application is delayed
by time spent allocating the EGL Context in the RenderThread.

With this optimization the launch time of any application
is improved (for example settings by 20 to 40 ms).

Change-Id: Ibf47aaa0abb8dedf7aa00693073db3785d9d6b08
Signed-off-by: Thomas Buhot <thomas.buhot@intel.com>
Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
2016-10-25 18:48:50 -07:00
Xin Li
9b9906e9c0 Merge "Merge "DO NOT MERGE - Added Emergency affordance feature"
into nougat-dev" into nyc-dev.

Change-Id: Iffde36524f2335b90d4887dcdd189eaf55dc60e6
2016-10-13 13:40:33 -07:00
Selim Cinek
95e1865ef6 DO NOT MERGE - Added translations for emergency action string
Bug: 30404490
Change-Id: Ic20d93005882bb71cef32a705443e427b0a9bd71
2016-10-12 23:23:32 +00:00
Selim Cinek
e6680d93db DO NOT MERGE - Added Emergency affordance feature
Added a service that listens whether emergency affordances
are necessary.

If the they are needed, it adds an option to the
global actions dialog that directly launches the
emergency call and also adds a long-press listener
to the keyguard emergency button.

Test: adb shell settings put global force_emergency_affordance 1 && adb shell settings put global emergency_affordance_number 111112
Bug: 30404490
Change-Id: Ib96a15da2ef4b568a8d77140ebca6aa6f20f5ddb
2016-10-06 01:29:56 +00:00
Hemal Patel
eb21088b67 Docs: Fixed the Service link
am: 1918214589

Change-Id: Icfd4e033b7ef9bd915f106abc789f11fb4ede301
2016-10-01 01:45:58 +00:00
Hemal Patel
1918214589 Docs: Fixed the Service link
Bug: 29086415
Change-Id: Id9505ade39c19eb817f556d72f689568148e1782
2016-09-30 14:59:23 -07:00
Kevin Hufnagle
c012a7ed7a docs: Added min/max values and descriptions for alpha getter/setter in ImageView
am: bdb308a059

Change-Id: Ida297f581f7177cd92ec4157a1b735c91d2e26a4
2016-09-26 23:37:36 +00:00
Kevin Hufnagle
2e8026acc0 docs: Added note in getCacheDir() that developers can use directory obtained from getExternalCacheDir() to store app caches larger than 1 MB.
am: e9681e192a

Change-Id: Ide8f3c2dd5414737c798c20c1fe9f11dcd9640ce
2016-09-26 23:36:25 +00:00
Kevin Hufnagle
9402b319fe docs: Removed all instances of "i.e." in IntentFilter parameter descriptions.
am: e20b3d78e3

Change-Id: I8d677ebcf03c28f46874514408240162cd6331c5
2016-09-26 23:34:58 +00:00
Kevin Hufnagle
ad5cafd283 docs: Added note in LayoutTransition class reference that APPEARING and DISAPPEARING animation timelines cannot overlap
am: 5232329b4e

Change-Id: Ib3f8ffa61495a237c6e69b8f9260b46027c26a2a
2016-09-26 23:15:18 +00:00
Kevin Hufnagle
fcd4541b06 docs: Clarified definition of KeyEvent.Callback.onKeyMultiple()
am: b248b1f689

Change-Id: Ie7380c80fc81b65a89337c7c126abc1dfe58a76e
2016-09-26 23:12:46 +00:00
Kevin Hufnagle
2c885fc5ea docs: Fixed example of ACTION_VIEW intent
am: aedfd75b1b

Change-Id: Iaaaa1cb0f6d796ad5c5c178c70850fd83e635013
2016-09-26 23:00:51 +00:00
Kevin Hufnagle
ade93296ff Merge "docs: Added min/max values and descriptions for alpha getter/setter in ImageView" into nyc-dev 2016-09-26 22:55:34 +00:00
Kevin Hufnagle
996274a611 Merge "docs: Added note in getCacheDir() that developers can use directory obtained from getExternalCacheDir() to store app caches larger than 1 MB." into nyc-dev 2016-09-26 22:55:00 +00:00
Kevin Hufnagle
4738231a55 Merge "docs: Removed all instances of "i.e." in IntentFilter parameter descriptions." into nyc-dev 2016-09-26 22:54:28 +00:00
Kevin Hufnagle
d23fc43965 docs: Adjusted return value desc. for getApplicationEnabledSetting
am: 5add769f59

Change-Id: Ic0566aa6e2764a9d0db58c6f66ad028229a8fdca
2016-09-26 22:52:54 +00:00
Kevin Hufnagle
0b498d6139 Merge "docs: Added note in LayoutTransition class reference that APPEARING and DISAPPEARING animation timelines cannot overlap" into nyc-dev 2016-09-26 22:46:58 +00:00
Kevin Hufnagle
358b289a4d Merge "docs: Clarified definition of KeyEvent.Callback.onKeyMultiple()" into nyc-dev 2016-09-26 22:46:02 +00:00
Kevin Hufnagle
adca055df1 Merge "docs: Fixed example of ACTION_VIEW intent" into nyc-dev 2016-09-26 22:40:15 +00:00
Kevin Hufnagle
91ade06f93 Merge "docs: Adjusted return value desc. for getApplicationEnabledSetting" into nyc-dev 2016-09-26 22:35:27 +00:00
Mark Lu
e9480d08d3 docs: improve docs for sqlite package summary
am: 59640a9f1c

Change-Id: I2198d8f3a88980594011072f0dbd3b6a02635939
2016-09-26 17:23:38 +00:00
Mark Lu
376f3e6b3a docs: Update docs for SQLiteDatabase replace methods
am: 1e20208d90

Change-Id: Ibf13d426352f8845b9fd8086ebfbf54af3f3017c
2016-09-26 17:22:15 +00:00
Hemal Patel
6a400a5190 Fixed a typo in the code sample
am: 247d1c9ea8

Change-Id: I2f004e4900ed39d6564e0c3947f27fa79eac2266
2016-09-26 17:21:00 +00:00
Mark Lu
0a544fa4a7 Merge "docs: improve docs for sqlite package summary" into nyc-dev 2016-09-26 17:12:51 +00:00
Mark Lu
b764c94a26 Merge "docs: Update docs for SQLiteDatabase replace methods" into nyc-dev 2016-09-26 17:12:32 +00:00