Commit Graph

94173 Commits

Author SHA1 Message Date
Jeff Sharkey
3d80a7d36a Merge "Clean/destroy app shared storage via installd." 2018-08-28 19:37:19 +00:00
Rob Carr
2bbd6c348e Merge "Implement construction of container layers" 2018-08-28 18:34:24 +00:00
TreeHugger Robot
5733d64cac Merge "Remove links to @removed classes." 2018-08-28 18:22:47 +00:00
Sudheer Shanka
8e7cf05d27 Merge "Remove DefaultContainerService usage in StorageManagerService." 2018-08-28 18:01:24 +00:00
Mathew Inwood
bda1e07cba Merge "Add <p> to UnsupportedAppUsage javadoc." am: dfd7bc77c3 am: 5e99817407
am: 413ad6c727

Change-Id: I902de139a0a5508b1128fdd64274775c70225e6e
2018-08-28 09:23:37 -07:00
Mathew Inwood
a7da3e52a2 Merge "Add myself as OWNERS for UnsupportedAppUsage.java." am: 0589adc790 am: 48ae9cdf62
am: 5ac02a500a

Change-Id: Ib5e535c004d2188015e758a02afcd2eff782b3cd
2018-08-28 09:11:40 -07:00
Michael Wright
ca022f68af Remove links to @removed classes.
We should keep the docs around for system components, but we can't link
to them anymore in the public docs since the permissions are no longer
public.

Bug: 111131054
Test: m -j4 offline-sdk-docs
Change-Id: I6bce56f35c8ff046229ff33a004952bbcc0e48d7
2018-08-28 17:10:37 +01:00
Mathew Inwood
413ad6c727 Merge "Add <p> to UnsupportedAppUsage javadoc." am: dfd7bc77c3
am: 5e99817407

Change-Id: I1adcdf43489bfc1889b297e298c88fe2d814f65f
2018-08-28 09:10:24 -07:00
Mathew Inwood
5ac02a500a Merge "Add myself as OWNERS for UnsupportedAppUsage.java." am: 0589adc790
am: 48ae9cdf62

Change-Id: I21da319868587babe1c1624c9d29c36d890758b2
2018-08-28 08:58:20 -07:00
Mathew Inwood
5e99817407 Merge "Add <p> to UnsupportedAppUsage javadoc."
am: dfd7bc77c3

Change-Id: I7e9c71304d072d0883b004760d489637a1ff4b96
2018-08-28 08:54:05 -07:00
Mathew Inwood
48ae9cdf62 Merge "Add myself as OWNERS for UnsupportedAppUsage.java."
am: 0589adc790

Change-Id: I063c30a288ea9da59cfe4a55be3e6d63ee573a1f
2018-08-28 08:50:00 -07:00
Treehugger Robot
dfd7bc77c3 Merge "Add <p> to UnsupportedAppUsage javadoc." 2018-08-28 15:30:29 +00:00
Treehugger Robot
0589adc790 Merge "Add myself as OWNERS for UnsupportedAppUsage.java." 2018-08-28 15:24:23 +00:00
Mathew Inwood
8ea8654bae Add <p> to UnsupportedAppUsage javadoc.
To make HTML rendering of it readable.

Test: m
Change-Id: Ie829b422d6d905f44a909e4a402b61169268e940
2018-08-28 10:52:51 +01:00
Robert Carr
b6cd643969 Implement construction of container layers
Expose existing native functionality. In preparation for use as
bufferless-input-catching-surfaces.

Bug: 80101428
Bug: 113136004
Bug: 111440400
Change-Id: I455792aec3ee58d9dd20016b484ce7c27808d522
2018-08-27 18:14:14 -07:00
Sudheer Shanka
25469aacb8 Remove DefaultContainerService usage in StorageManagerService.
StorageManagerService uses DefaultContainerService to obtain ObbInfo
for files passed through mountObb() transaction. This change moves this
logic to client side and so ObbInfo will be passed as part of mountObb()
transaction.

Bug: 111838160
Test: atest src/android/os/storage/cts/StorageManagerTest.java
Test: atest core/tests/coretests/src/android/os/storage/StorageManagerIntegrationTest.java
Test: atest services/tests/servicestests/src/com/android/server/MountServiceTests.java
Change-Id: I29aee3aa54a45057df96aae289888161a3e3af71
2018-08-27 15:50:59 -07:00
Aurimas Liutikas
bf1c1fca55 Add comments about mData in TypedArray.
Test: None
Change-Id: I85556c7c26a7323012e552d69ab6bb1c741d9360
2018-08-27 15:45:48 -07:00
TreeHugger Robot
84f7d7b37c Merge "Deprecate Resources#getMovie()" 2018-08-27 21:06:28 +00:00
Jeff Sharkey
4e7a765855 Clean/destroy app shared storage via installd.
In P we moved destroying per-user shared storage into installd,
where it can iterate quickly over large sets of files.  This change
now moves cleaning/destroying of per-app shared storage data down into
installd, letting us greatly simplify the logic in PMS to no longer
require spinning up DefaultContainerService.  This also fixes an
obscure bug where DCS (which always runs as USER_SYSTEM) wasn't able
to clear shared storage for secondary users.

This also gives us the ability to target specific storage devices
by UUID, such as when the user has migrated their primary shared
storage to an adopted device.

We no longer distinguish between keeping or deleting OBB files
during various operations, since upcoming changes in the Q release
will mean OBB files are no longer shared between users, and they'll
now live inside a sandbox that will be fully cleared when the user
clears data.  (Going forward, apps should be using splits instead
of OBBs, so they're effectively deprecated.)

Uses newer "const" feature of AIDL to ensure constant values remain
consistent between native and Java code.

Bug: 111854851, 111838160
Test: atest android.appsecurity.cts.StorageHostTest#testCache
Change-Id: Ib90be155718a768da76110fbfcf010a471b37378
2018-08-27 20:42:47 +00:00
Tej Singh
008ecd3de0 Merge "DiskStats Westworld Migration" 2018-08-27 18:58:06 +00:00
TreeHugger Robot
6c05ade479 Merge "Throttle requests to ActivityManager.getProcessMemoryInfo()." 2018-08-27 15:37:33 +00:00
Sudheer Shanka
f5e4b2b275 Merge "Add @TestApi to ActivityManager.IMPORTANCE_CANT_SAVE_STATE_PRE_26." 2018-08-27 01:34:53 +00:00
Dianne Hackborn
8c76d91bd2 Throttle requests to ActivityManager.getProcessMemoryInfo().
This is very expensive and needs to run in the system process, we
don't want apps abusing it.

Also don't allow apps to get information about anything but their
own process, unless they have the appropriate privileged permissions.

Bug: 112537519
Test: manual
Change-Id: I01997d6f888341e8eb2afe6a69545dd5be013744
2018-08-26 18:19:07 -07:00
Makoto Onuki
efa01c37b7 Merge "Fix OWNERS (change google.com to android.com)" am: 7a8e363c0b am: 906a31f49f
am: 8fd96af2b1

Change-Id: Ibe5b3d6bf9d11fce9d091eb3e3872b6cd9e66afc
2018-08-25 23:33:02 -07:00
Makoto Onuki
8fd96af2b1 Merge "Fix OWNERS (change google.com to android.com)" am: 7a8e363c0b
am: 906a31f49f

Change-Id: Ie5089669974c9e9e9c99525c50eddaef6f479874
2018-08-25 23:23:37 -07:00
Makoto Onuki
906a31f49f Merge "Fix OWNERS (change google.com to android.com)"
am: 7a8e363c0b

Change-Id: Ic3e8861a95ac025d1ff6f68943ef460b94d3c501
2018-08-25 23:11:13 -07:00
TreeHugger Robot
db3e20f17f Merge "Trigger am and wm presubmit tests for code change under core/java/android/app" 2018-08-25 00:50:33 +00:00
Zhi An Ng
82e3988254 Merge "Revert "Throttle requests to ActivityManager.getProcessMemoryInfo()."" 2018-08-25 00:23:47 +00:00
TreeHugger Robot
4ace75e1b7 Merge "Remove an obsolete comment about BridgeIInputMethodManager" 2018-08-24 23:59:41 +00:00
TreeHugger Robot
8084b2b25d Merge "Truncate(*1) it if WAL file is too big when opening DB" 2018-08-24 23:30:18 +00:00
Yohei Yukawa
383c93adf5 Remove an obsolete comment about BridgeIInputMethodManager
BridgeIInputMethodManager has been removed [1].

 [1]: I6cc2ec078230064fcce3656788589af59a1f7e2d
      116000a4c644ddd562efeb1ee549909be0d7b332

Bug: 27297992
Test: compile
Change-Id: Iba6e1bb90c92692ab16ab2dd9d83665fe7e1c48c
2018-08-24 15:34:15 -07:00
Makoto Onuki
d52f363924 Merge "Actually make OWNERS in sync with the internal version" am: 7e54042f9c
am: 83c37379da

Change-Id: I1bbd7ccc7b610d9cbdcf9f7f8f52b734679766cd
2018-08-24 15:17:22 -07:00
Makoto Onuki
83c37379da Merge "Actually make OWNERS in sync with the internal version"
am: 7e54042f9c

Change-Id: Id6f2551434279d9d5be0c0cb2c72d59393bd4095
2018-08-24 15:08:00 -07:00
Makoto Onuki
96e06002ed Truncate(*1) it if WAL file is too big when opening DB
*1 -- not truncate(2) but "PRAGMA wal_checkpoint(TRUNCATE)"

Otherwise, depending on how an app operate on a DB, SQLite may not
have a chance to "shrink" the WAL file.

Fixes: 112777941
Bug: 111939259
Test: atest /android/master/frameworks/base/core/tests/coretests/src/android/database/sqlite/SQLiteCompatibilityWalFlagsTest.java
Test: Manual test with google dailer:
1. With normalized_spam.db-wal > 100MB and receive a phone call
-> WAL file gets truncated to 0 bytes.

2. Restart the dialer process and receive a phone call again
-> WAL file is already 0 bytes; won't be truncated.

3. Restart with the WAL file deleted
Same as #2. WAL file will be created before the added logic, but is 0 bytes,
so it won't be truncated.

4. Test with settings put global sqlite_compatibility_wal_flags truncate_size=1024
-> make sure the threshold is overridden

Change-Id: I2b193603e5dfa493ccccb8123db592f0e9c0e7ae
2018-08-24 15:07:21 -07:00
Makoto Onuki
1fda56bbda Fix OWNERS (change google.com to android.com)
Bug: N/A
Test: N/A
Change-Id: I9a9eecfff1a72d7da55be0df73f29985b19c1e38
2018-08-24 14:58:42 -07:00
Makoto Onuki
7e54042f9c Merge "Actually make OWNERS in sync with the internal version" 2018-08-24 21:56:34 +00:00
Dan Shi
a0ed8af84b Trigger am and wm presubmit tests for code change under core/java/android/app
The imports setting allows Test Mapping to automatically run presubmit tests
for ActivityManager and WindowManager, when code is changed under
core/java/android/app

Bug: 111302567
Test: local run atest
Change-Id: I5e2c935a56f339c2073426c9b01c7f4b345c16f2
2018-08-24 14:46:17 -07:00
Bill Napier
d7d338f359 Revert "Throttle requests to ActivityManager.getProcessMemoryInfo()."
This reverts commit 1f3b0302fd.

Reason for revert: broke SDK builds.  See ab/4976218

Change-Id: Id532e20eed8e13735a09cca5affc92005b685744
2018-08-24 21:13:13 +00:00
Sudheer Shanka
ae6d1c9a28 Merge "Create sandboxes for newly installed apps." 2018-08-24 21:06:29 +00:00
Chih-hung Hsieh
625a46dfb1 Merge "Use multiple patterns and emails in per-file syntax." am: 62d0edc6ef am: f16ded6120
am: 26b072d20d

Change-Id: I5929eb1f8c5906dd6fb1dc1f2166d26a7f6d7c27
2018-08-24 13:39:51 -07:00
Chih-hung Hsieh
26b072d20d Merge "Use multiple patterns and emails in per-file syntax." am: 62d0edc6ef
am: f16ded6120

Change-Id: I76a342fdc7097ba5941f78873145999612379e6c
2018-08-24 13:13:34 -07:00
TreeHugger Robot
fd6c590953 Merge "Throttle requests to ActivityManager.getProcessMemoryInfo()." 2018-08-24 19:56:34 +00:00
Chih-hung Hsieh
f16ded6120 Merge "Use multiple patterns and emails in per-file syntax."
am: 62d0edc6ef

Change-Id: I15a2aaf9dd002f1164146d81e8adbbe2bca74231
2018-08-24 12:48:10 -07:00
Makoto Onuki
83c1a68491 Actually make OWNERS in sync with the internal version
Bug: N/A
Test: N/A
Change-Id: Idc1dcc7753a5cf731475ae0f8f01ccd54ac0e3b3
2018-08-24 12:47:20 -07:00
Ryan Mitchell
2d50001f29 Merge "AFW: Lookup shared library resource ids" 2018-08-24 19:20:16 +00:00
Chih-hung Hsieh
62d0edc6ef Merge "Use multiple patterns and emails in per-file syntax." 2018-08-24 18:52:43 +00:00
Makoto Onuki
49a46611ef Merge "Update OWNERS for database code" am: aea74ff62a
am: 92732c2a25

Change-Id: I43a02b809a275df2ddbc2987f811a5f40c2a8461
2018-08-24 11:29:37 -07:00
Dianne Hackborn
1f3b0302fd Throttle requests to ActivityManager.getProcessMemoryInfo().
This is very expensive and needs to run in the system process, we
don't want apps abusing it.

Also don't allow apps to get information about anything but their
own process, unless they have the appropriate privileged permissions.

Bug: 112537519
Test: manual
Change-Id: I103a11f8d5b49fd4536795ea52c05de297698cb5
2018-08-24 11:27:50 -07:00
Ryan Mitchell
b9b540baf1 AFW: Lookup shared library resource ids
Shared libraries were failing to retrieve correct resource ids from the
values of attributes in xml files. The packages of the shared ids were
not changed from 0 to their runtime assigned package ids.

Bug: 112776204
Test: atest FieldsClassificationTest#testGetAlgorithm
Change-Id: I509bc7632f5ec3e9b644e590934e6cf569a4d938
2018-08-24 10:11:01 -07:00
Makoto Onuki
92732c2a25 Merge "Update OWNERS for database code"
am: aea74ff62a

Change-Id: I7c5ea848faaf7bc463b8640f9f922c3649a46409
2018-08-24 09:38:49 -07:00