622 Commits

Author SHA1 Message Date
Anton Hansson
a3e79fbb8c frameworks/base: Set LOCAL_SDK_VERSION where possible.
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Change-Id: Ibcffec873a693d1c792ca210fb597d2bf37e9068
Merged-In: I4233b9091d9066c4fa69f3d24aaf367ea500f760
2018-02-28 17:15:21 +00:00
Bill Yi
bf4d0c615e Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 69925163
Change-Id: Ie7f618c50bfc451f5204eee4a297556adb196b46
2017-11-29 22:56:53 -08:00
Xin Li
220871a697 Merge commit '98e12851336b7db16e583f9afac63ecc97465980' from
oc-mr1-dev-plus-aosp-without-vendor into stage-aosp-master.

Change-Id: Ia7b8da4a00d215160e4a4fa40f6044208d1297b7
Merged-In: I19846d2a3ee27aecbae2367a74ee49082eea154d
2017-11-14 12:31:11 -08:00
Bill Yi
93811e9fa0 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 68003463
Change-Id: If95ea8054ecb9379831d35c7dbc0e66da6eb40cf
2017-10-19 21:12:57 -07:00
Sudheer Shanka
1605878d62 Merge "Add PACKAGE_USAGE_STATS permission to shell." into oc-mr1-dev
am: 471656b6d8

Change-Id: Iacf518f35cf807811113d86911f40009e8506f94
2017-09-06 05:04:46 +00:00
Sudheer Shanka
93bfd052a8 Add PACKAGE_USAGE_STATS permission to shell.
This is needed for calling AM.registerUidObserver.

Fixes: 64400666
Test: cts-tradefed run singleCommand cts-dev -m CtsAppTestCases -t \
      android.app.cts.ActivityManagerProcessStateTest
Change-Id: I4f500d0d8d516b6b8961ea2f8c083add3ae949a9
2017-09-01 16:48:05 -07:00
Bill Yi
1098d47f28 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: Id452855fd3f6af7d1daaa2aede1baa65a78c557f
2017-08-29 19:42:12 -07:00
Rebecca Silberstein
81b3107d48 Merge "Add wifi permissions to shell" into oc-mr1-dev
am: d3428e9a3b

Change-Id: I4aa82e6a8a9e9a11415e3020d6508a83cdfb453e
2017-08-24 22:47:29 +00:00
Rebecca Silberstein
2d935e1f75 Add wifi permissions to shell
Add wifi-related permissions to the shell's manifest.

Bug: 64683466
Test: manually verified wifi can be toggled when airplane mode is active
Change-Id: I790ab5fc01f5c76fd98dedae4b9bfe88ecb48f69
2017-08-18 09:26:30 -07:00
Bill Yi
d0db1d6100 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: I25b0f7f60b6825fa291bc57bf5aaa9c0e634c342
2017-08-15 15:11:58 -07:00
Bill Yi
7c6f6cab13 Import translations. DO NOT MERGE
Change-Id: I3e617e1a004e45b485658d496e09cd4c732415cc
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-08-06 01:47:13 -07:00
Andrii Kulian
02689a7884 DO NOT MERGE Add permission to launch activities on VD
1. Added permission ACTIVITY_EMBEDDING which allows apps to launch
activities on virtual displays.
2. Allow owner of display to launch activities from same app without
permission check to owned display.
3. Added permission checks for launching on secondary displays to
more target task/stack resolution paths in ActivityStarter.

Bug: 63117330
Test: android.server.cts.ActivityManagerDisplayTests
Test: go/wm-smoke
Change-Id: If169a77fb56241e06f7de20168dc38c4b0a217f5
(cherry picked from commit 71587649836d8e97c2ca00d968fc95293b59b0d3)
2017-07-21 18:31:20 +00:00
Felipe Leme
85ac627e78 Don't tag bugreport notifications as System.
Otherwise, they'll skip DND settings.

Test: mmm -j32 frameworks/base/packages/Shell && adb install -r -g ${OUT}/data/app/ShellTests/ShellTests.apk && adb shell am instrument -e class com.android.shell.BugreportReceiverTest$1 -w com.android.shell.tests/android.support.test.runner.AndroidJUnitRunner

Bug: 63509844

Change-Id: I7d802b4c8d115c989979a9edaff2f83fc19a4eae
2017-07-14 11:32:46 -07:00
Jeff Sharkey
5ab0243330 Only require that system UIDs tag their sockets.
Apps with a normal UID are typically isolated enough to not require
socket tagging; we're mostly interested in tracking down internal
UIDs that have lots of code sharing the same UID.

Also fix up everyone doing manual string checks of Build.TYPE, since
we now have first-class fields for those.

Bug: 38126076
Test: builds, boots
Change-Id: I3a40348196bd8459289f2b9355d9783a07f1e7dd
2017-06-27 11:11:06 -06:00
Felipe Leme
70395a7c23 Fixed focus navigation on bugreport dialog.
Test: manual verification with bluetooth keyboard
Test: not ran unit tests because they're currently broken.

Fixes: 62872207

Change-Id: I2a42153d04deadde65b2778457b91189d4af511f
2017-06-26 14:58:23 -07:00
TreeHugger Robot
0ecc0ff5e0 Merge "Enable wide color gamut rendering" 2017-06-02 20:07:56 +00:00
Romain Guy
26a2b97dbe Enable wide color gamut rendering
When wide color gamut rendering is requested, hwui will now
use an rgba16f scRGB-nl surface for rendering. This change
also fixes the way screenshots are handled in the platform
to behave properly with wide gamut rendering.

This change does not affect hardware layers. They also
need to use rgba16f scRGB-nl; this will be addressed in
another CL.

Bug: 29940137
Test: CtsUiRenderingTestCases, CtsGraphicsTestCases

Change-Id: I68fd96c451652136c566ec48fb0e97c2a7a257c5
2017-06-02 11:02:13 -07:00
Amit Pawar
44ff1b7e78 Merge "Fix #62169466 bug report sharing options empty" into oc-dev am: 4d473c65cb
am: e775158c6b

Change-Id: Ice0e3330502330dde934d7e7544e466fcffcacca
2017-05-30 20:39:37 +00:00
Amit Pawar
e775158c6b Merge "Fix #62169466 bug report sharing options empty" into oc-dev
am: 4d473c65cb

Change-Id: I13b21aa8b731e09d22955d177589635427c1fb39
2017-05-30 20:28:39 +00:00
Amith Yamasani
1d6e1759d2 Fix #62169466 bug report sharing options empty
Was caused by a new requirement to not offer to show
non-exported intent handlers as options. For first
time warning dialog, don't show a chooser activity.

Change-Id: Ibada9a7a14b77ec0670bf35ba0944f369d42bf69
Fixes: 62169466
Test: manual
Test: mmm -j32 frameworks/base/packages/Shell && adb install -r -g ${OUT}/data/app/ShellTests/ShellTests.apk && adb shell am instrument -e class com.android.shell.BugreportReceiverTest$1 -w com.android.shell.tests/android.support.test.runner.AndroidJUnitRunner
2017-05-30 20:04:32 +00:00
Makoto Onuki
72f378d0c1 Merge "Working around bugreport crash issues" into oc-dev am: 5176a4cda3
am: 44cb1486f3

Change-Id: I70495f11952e9d234d74fa3fd7149dec70fb7350
2017-05-25 18:27:52 +00:00
Makoto Onuki
44cb1486f3 Merge "Working around bugreport crash issues" into oc-dev
am: 5176a4cda3

Change-Id: Id5f50a4fad73b51079685b86839ccbe9912c2148
2017-05-25 18:19:18 +00:00
Makoto Onuki
22291dde0a Working around bugreport crash issues
Overall we need more synchronization, but I'm taking a safe approach
here for oc-dev for now.

Bug: 62043115
Test: adb shell am instrument -w com.android.shell.tests
Change-Id: I0e22c5160cb96ce51dc1775237f01b7bf5c97a17
2017-05-25 00:24:58 +00:00
Felipe Leme
2127630a7d Merge "Fixed assertions on bugreport share notification." into oc-dev am: 39b375c9db
am: 6fbbedb6be

Change-Id: I36b5fcffeb58e83236553137f92bcc64104c0381
2017-05-24 21:53:58 +00:00
Felipe Leme
6fbbedb6be Merge "Fixed assertions on bugreport share notification." into oc-dev
am: 39b375c9db

Change-Id: I90ec303a24376b63b59dbc0035f56058c062a2af
2017-05-24 21:46:30 +00:00
Felipe Leme
6540574ecc Fixed assertions on bugreport share notification.
Fixes: 36698286
Test: mmm -j32 frameworks/base/packages/Shell && adb install -r -g ${OUT}/data/app/ShellTests/ShellTests.apk && adb shell am instrument -e class com.android.shell.BugreportReceiverTest$1 -w com.android.shell.tests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I0f3586309103a07afca5be3d1e3073d8a5dd04ec
2017-05-24 11:58:17 -07:00
Ben Lin
14ec967020 Merge "Make BugreportStorageProvider subclass FileSystemProvider." 2017-05-24 00:12:15 +00:00
Bryce Lee
1cb141c3a8 Merge "Add new task flag when starting chooser activity in bug report." into oc-dev am: 2981584b12
am: 9b16304f30

Change-Id: Ia42d9e20ed7fc1572ca21b7caa2e13439a93070e
2017-05-23 19:42:34 +00:00
Bryce Lee
9b16304f30 Merge "Add new task flag when starting chooser activity in bug report." into oc-dev
am: 2981584b12

Change-Id: Ic3e10886851b94eb79202b404368c6c7696ca986
2017-05-23 19:35:35 +00:00
Bryce Lee
6483b86a92 Add new task flag when starting chooser activity in bug report.
This flag is required whenever starting an activity from a
non-activity context.

Change-Id: Ia77e6e7801d712a20d407bc2ac92e543bc287010
Fixes: 62016780
Test: Click on generated bug report notification
2017-05-23 09:02:09 -07:00
Ben Lin
d8235e2647 Make BugreportStorageProvider subclass FileSystemProvider.
This allows it to gain all the benefits of FSP, ie. listening in on
File-system level changes without any explicitly notification Uri
passing back and forth.

This also reverts commit 6c9ff513c6d7d3de7ab8920d88111c2b1dc1bb1f.

Test: Manual test.
Bug: 38183534
Change-Id: I30a1d8489ec8732bdb80611bd8fa7099763de2a3
2017-05-22 17:15:51 -07:00
Bill Yi
816dcfc5a1 Import translations. DO NOT MERGE
Change-Id: I45ac4cb992313e5eecd6c1af90b8c4181738e4c7
Auto-generated-cl: translation import
2017-05-10 21:38:49 -07:00
Bill Yi
eaf1ab6a90 Import translations. DO NOT MERGE
Change-Id: I6e0931e889755b20c3a8f486fbe7d6fc9bbe22bd
Auto-generated-cl: translation import
2017-05-08 23:15:12 -07:00
Bill Yi
f16b3529d2 Import translations. DO NOT MERGE
Change-Id: If07572e1b86e9171b2e8075348cb34920c5799be
Auto-generated-cl: translation import
2017-05-04 17:53:11 -07:00
Bill Yi
b5fcd9031d Import translations. DO NOT MERGE
Change-Id: Ia06f4c8f73b012dbfd17c0681ea17d7eaa2c3137
Auto-generated-cl: translation import
2017-04-29 10:01:47 -07:00
TreeHugger Robot
762f79e579 Merge "Import translations. DO NOT MERGE" 2017-04-27 19:55:52 +00:00
Makoto Onuki
db7bd128e4 Merge "Only show progress log every 10%" into oc-dev am: b4e05340e4
am: ceb39b04e5

Change-Id: I5c7148c5a1ef4ceca4ec4e341d92685c2f2131c3
2017-04-26 23:39:38 +00:00
Makoto Onuki
ceb39b04e5 Merge "Only show progress log every 10%" into oc-dev
am: b4e05340e4

Change-Id: Iae1786f56313537acddd5b7ad5aaa1ae9510a5da
2017-04-26 23:29:27 +00:00
Bill Yi
e08f35e5fa Import translations. DO NOT MERGE
Change-Id: I2dbeef826cc19ae801ea7670132d9ee7fdc5abd1
Auto-generated-cl: translation import
2017-04-26 00:20:11 -07:00
Makoto Onuki
c6cf2b8072 Only show progress log every 10%
Bug: 37501913
Test: manual
Change-Id: Ib7d14da0af33d39aa29b0b58c63c51e1059e0ada
2017-04-21 12:01:03 -07:00
Bill Yi
88ab6c1304 Merge "Import translations. DO NOT MERGE" into oc-dev 2017-04-12 20:19:39 +00:00
Jeff Sharkey
b758d37338 Merge "Grant Shell ability to clear cached app data." into oc-dev am: 1f58ad1a2f
am: 003572c3c8

Change-Id: Ifcb2d020b44fd69c08e411e5ace3d054887565eb
2017-04-11 23:30:12 +00:00
Jeff Sharkey
003572c3c8 Merge "Grant Shell ability to clear cached app data." into oc-dev
am: 1f58ad1a2f

Change-Id: Ieb4f37b861b9fd5a49d30d607de5589a355aa67d
2017-04-11 23:21:20 +00:00
Jeff Sharkey
a4daf89f0f Grant Shell ability to clear cached app data.
It already has CLEAR_APP_USER_DATA to clear everything inside app
storage, and clearing cached data is a subset of that.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 36731175
Change-Id: Iefc5be6c80e2562a95424fd6fe413bdb018201a9
2017-04-11 13:03:54 -06:00
Bill Yi
fbfa8d152f Import translations. DO NOT MERGE
Change-Id: I9b511db2ea0cb1976da208ff2aed2b48309a8784
Auto-generated-cl: translation import
2017-04-11 11:46:06 -07:00
Bill Yi
0ce53e517b Import translations. DO NOT MERGE
Change-Id: I9a94d8ec49ccccaa96264255fb25880194d8b1d1
Auto-generated-cl: translation import
2017-04-07 18:13:06 -07:00
Bill Yi
a26fc4989b Import translations. DO NOT MERGE
Change-Id: I607c98eb9f7d6c2b0df215be63e3f4431d911d5f
Auto-generated-cl: translation import
2017-04-07 18:09:24 -07:00
TreeHugger Robot
9b4a020d35 Merge "Change test type from InstrumentationTest to AndroidJUnitTest" 2017-04-01 01:22:46 +00:00
Winson Chung
c3bb1cecd0 Merge "Removing unnecessary permission." into oc-dev am: 26437c0f22
am: d889ca83c8

Change-Id: I50dd54a704707d64607e8ba3588e23c02056cb1b
2017-04-01 00:55:34 +00:00
Winson Chung
d889ca83c8 Merge "Removing unnecessary permission." into oc-dev
am: 26437c0f22

Change-Id: I877a50a58ede582ee446160b3adbc8713a60b9ee
2017-04-01 00:50:43 +00:00