Commit Graph

6638 Commits

Author SHA1 Message Date
Yandry Perez Clemente
f812cff14a Merge "Add error id when build is debuggable." into sc-dev am: 0f7f3f233c am: c45736f350 am: f61b5365f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14717691

Change-Id: If3467f87908647bf8d8c019bbbc33690b538ddf2
2021-06-03 10:19:12 +00:00
Yandry Perez Clemente
0f7f3f233c Merge "Add error id when build is debuggable." into sc-dev 2021-06-03 09:44:12 +00:00
John Tsai
d43c64b474 Merge "Revert "Release cblocks back to the free pool"" into sc-dev am: 5d1934f765 am: 1feca3fd23 am: a70195fd55
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14809870

Change-Id: Id7f8f1f87bdf3e0877a1f82886dd68f8698718a3
2021-06-03 03:00:07 +00:00
John Tsai
5d1934f765 Merge "Revert "Release cblocks back to the free pool"" into sc-dev 2021-06-03 02:13:03 +00:00
John Tsai
516cb2d025 Revert "Release cblocks back to the free pool"
This reverts commit e41b029d85.

Reason for revert: b/189985437

com.android.tradefed.targetprep.TargetSetupError[APK_INSTALLATION_FAILED|520001|DEPENDENCY_ISSUE]: Failed to install com.android.devicehealthchecks with ...

Change-Id: I06fe7d94f6dab474c74b093de8692f08d4031b62
2021-06-03 02:10:26 +00:00
Patrick Baumann
c11f6f59e0 Merge "Release cblocks back to the free pool" into sc-dev am: 81858ab41c am: 0fe981de59 am: 011292e331
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14736611

Change-Id: I93134c9a782a07f5564f72bd087d93e0c06f3713
2021-06-02 21:34:38 +00:00
Patrick Baumann
81858ab41c Merge "Release cblocks back to the free pool" into sc-dev 2021-06-02 20:35:15 +00:00
Songchun Fan
d641248213 [SettingsProvider] revert max sdk restriction for mobile_data am: 9dbc816ac7 am: 5dc0da82f8 am: 72b12f1368
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14791440

Change-Id: I11555a7432a52764f489b6f16165d085018ca50f
2021-06-02 19:47:31 +00:00
Songchun Fan
9dbc816ac7 [SettingsProvider] revert max sdk restriction for mobile_data
BUG: 189872797
Test: atest android.appsecurity.cts.ReadableSettingsFieldsTest
Change-Id: I18b6cf90a79ffb6c28604c1967d7208c523f4b13
2021-06-02 18:55:14 +00:00
Songchun Fan
66159954a0 Merge "[SettingsProvider] add maxTargetSdk in @Readable" into sc-dev am: 52109a9328 am: 681ae40c72 am: 6191f23c83
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14744258

Change-Id: I6d819327a191632dd280bcff456fc263aba90ffa
2021-06-01 16:59:25 +00:00
Beth Thibodeau
80eaca0a92 Merge "Add recommendation setting and remove app settings" into sc-dev am: 8beb8407ec am: 259f4ccc12 am: 91cfd439e4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14722119

Change-Id: Ic1c054031fef786021f5d4ac6cc005986b6ce2bb
2021-05-28 03:06:49 +00:00
Todd Kennedy
e41b029d85 Release cblocks back to the free pool
Modern f2fs implementations starting in S support compression
natively within the file system. The data blocks of specific
installation artifacts [eg. .apk, .so, ...] can be compressed
at the file system level, making them look and act like any
other uncompressed file, but consuming a fraction of the space.

However, the unused space is not free'd automatically. Instead,
we must manually tell the file system to release the extra
blocks [the delta between the compressed and uncompressed block
counts] back to the free pool.

Because of how compression works within the file system, once
the blocks have been released, the file becomes read-only and
cannot be modified until the free'd blocks have again been
reserved from the free pool. For these installation artifacts,
that is not a concern.

Test: atest CtsAppSecurityHostTestCases:SplitTests
Test: atest CtsAppSecurityHostTestCases:IsolatedSplitsTests
Test: atest CtsAppSecurityHostTestCases:PkgInstallSignatureVerificationTest
Test: atest CtsLibnativehelperTestCases
Test: atest PackageManagerTests
Test: Manual. Boot the device and see cblocks for stub APKs are released
Test: Manual. Disable and re-enable stub APK and see cblocks are released
Bug: 188928405
Change-Id: I4b29dab263d02a79d7b1593d35ae28101d33679a
2021-05-28 02:59:47 +00:00
Songchun Fan
8b54307ce6 [SettingsProvider] add maxTargetSdk in @Readable
New annotation field that allows Settings key owners to specify the
maximum target sdk level of the caller app allowed to read the
hidden settings key.

Test: atest android.appsecurity.cts.ReadableSettingsFieldsTest
BUG: 187314081
Change-Id: Ibb603df4c8bca75e3788258e69862595c22e5154
2021-05-27 15:00:41 -07:00
Beth Thibodeau
8beb8407ec Merge "Add recommendation setting and remove app settings" into sc-dev 2021-05-27 16:19:17 +00:00
Ludvig Hansson
dd29fd05f9 Add system setting for CW Home Ready
Add a system setting to signal that the Clockwork
Home application has finished initializing.

The setting is marked as transient so it's value
is not persistent during device reboot.

Bug: 149253712
Change-Id: I74e75509dd22b3a1a5cc4c88866d059fed44a347
(cherry picked from commit 3084060da2b4c4fc66a47b75ef85adc11c4de36f)
2021-05-26 12:02:29 -07:00
Beth Thibodeau
18c36e88a8 Add recommendation setting and remove app settings
- Add a new setting to control whether smartspace recommendations are
enabled
- Remove setting to block individual apps from resumption

Bug: 187925818
Test: atest MediaDataManagerTest
Change-Id: If1d5f4c5a204e655a90dd2cca6687acdfcd12fec
2021-05-26 14:27:54 -04:00
Yandry Perez Clemente
a253a2b8a8 Add error id when build is debuggable.
Bug: b/188122403
Test: Manual. Triggered an ANR and verified the error id is present in
the ANR dropbox entry.

Change-Id: Id6ac956ca5fe635189d12a9e2c0ba14e26e8719d
2021-05-25 14:29:37 +01:00
Soonil Nagarkar
2f06b5a085 Merge "Update location bypass allowlist" into sc-dev am: 20b934e7db am: 54d0f31169 am: 0e6e99d6d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14671675

Change-Id: I8ab762faa63cb39c2ea810248a830a4122aa49b5
2021-05-22 05:23:22 +00:00
Soonil Nagarkar
1ea818347e Update location bypass allowlist
Create a new DeviceConfig entry to replace the prior Settings entry on
which the location ignore settings allowlist is based. This allows us to
allowlist based on attribution tag, and eliminate holes for large
applications.

Test: manual + CTS + GTS
Bug: 187421886
Change-Id: I31e61db79b93e202bd8c66efae1bb5aaf0c88ff5
2021-05-21 09:25:47 -07:00
TreeHugger Robot
63ba4d5720 Merge "Controls - Use new privacy setting" into sc-dev am: 20e75f17e5 am: e4bfa0943e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14548608

Change-Id: I0b3f1d5a945ed72a026c4d827671c0a6d64ffe09
2021-05-20 00:24:12 +00:00
Tom Natan
e5d224c438 Merge "Add @TestApi to NAMESPACE_CONSTRAIN_DISPLAY_APIS." into sc-dev am: 1d2868c45b am: d831d15831
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14594231

Change-Id: I757a53a4a03711913b1b3b7b82a116f2152c624e
2021-05-19 23:50:30 +00:00
TreeHugger Robot
0bab57f691 Merge "Add a secure settings to control game dashboard shortcut." into sc-dev am: 59d20a8fb0 am: 3dcbe5be38
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14533076

Change-Id: I0a7c6040f580cbf459acb2ea272be123888baab4
2021-05-19 23:47:20 +00:00
TreeHugger Robot
d4aa927399 Merge "Intent to LockscreenSettings page on wallet overflow menu clicked." into sc-dev am: e265a992a6 am: 596e388a06
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14550725

Change-Id: Idcad2b5d78bfaa207d5b323758ec589c2d5c150b
2021-05-19 23:20:57 +00:00
Neil Fuller
733f3dbed6 Merge "Add device_config cmds for disabling syncs" into sc-dev am: 9f47ce098b am: 081472b391
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14426683

Change-Id: Ia542ac632f2a78b86fc1742572e606bbbf009e4a
2021-05-19 22:52:54 +00:00
Yandry Perez Clemente
1530150778 Merge "Add a unique id to Perfetto trace and ANR dropbox header." into sc-dev am: c1b0d9ac23 am: 72eefed0f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14344157

Change-Id: Ib8014149be29046767020dede79a9a01d98fce23
2021-05-19 22:52:31 +00:00
Matt Pietal
abc6e0c51b Controls - Use new privacy setting
Wallet/controls privacy setting has been moved and split into
two. Migrate the old setting if the user had previously used
controls. From the QS tile, launch the activity differently when on
the lock screen.

Fixes: 188175341
Test: atest DeviceControlsTileTest
Change-Id: If38ae1c3f0bcc8e0e75146dda09276c13a0604e9
2021-05-18 10:14:32 -04:00
Tom Natan
1d2868c45b Merge "Add @TestApi to NAMESPACE_CONSTRAIN_DISPLAY_APIS." into sc-dev 2021-05-18 08:25:45 +00:00
Peiyong Lin
6ea3ca56f5 Add a secure settings to control game dashboard shortcut.
Add a secure settings to control the game dashboard shortcut always on
option for all games.

Bug: b/185822999
Test: manual
Change-Id: I96b6ebd6c25230e8f12f3871ef1e78fcce9225e8
2021-05-18 00:19:39 +00:00
TreeHugger Robot
e265a992a6 Merge "Intent to LockscreenSettings page on wallet overflow menu clicked." into sc-dev 2021-05-17 17:48:18 +00:00
Neil Fuller
9f47ce098b Merge "Add device_config cmds for disabling syncs" into sc-dev 2021-05-17 16:17:12 +00:00
Yandry Perez Clemente
b19fc200dc Add a unique id to Perfetto trace and ANR dropbox header.
The unique id is added so that the trace and ANR can be easily linked
server side. Also moves the logging of the ANR atom before the ANR dump
takes place so that the Perfetto trace captures data closer to the point
in time when the ANR happens.

Bug: b/188122403
Test: Manual.
 1. Enabled the flag:

 adb shell device_config put perfetto_error_logger append_perfetto_uuid
 true

 2. Triggered an ANR using a test app. Logs from PerfettoTraceErrorLogger:

 adb logcat -s PerfettoTraceErrorLogger
 --------- beginning of main
 04-30 14:07:02.527 1782 12583 I PerfettoTraceErrorLogger: Pushing trace
 counter: 6c555dc6-3f46-4997-8844-706d91156600#PerfettoMonitoredCrash

 3. The UUID is present in the ANR dropbox headers:

 adb shell dumpsys dropbox data_app_anr --print | grep
 6c555dc6-3f46-4997-8844-706d91156600
 PerfettoUUID: 6c555dc6-3f46-4997-8844-706d91156600

Change-Id: If7110692cb0856e693f595e24b067ce1bc7d0a38
2021-05-17 11:35:29 +00:00
tomnatan
3d09726f29 Add @TestApi to NAMESPACE_CONSTRAIN_DISPLAY_APIS.
Bug: 187408243
Test: NA
Change-Id: I7e27118b5cc52cf325f936b454beb2b1995d2df9
2021-05-17 09:11:08 +00:00
Silin Huang
dbc335b1c1 Intent to LockscreenSettings page on wallet overflow menu clicked.
see demo:
https://drive.google.com/file/d/1qO2b5hS3tE8KQt1PtJBIeEJ8r_ti8PWw/view?usp=sharing&resourcekey=0-zZhi6fNdZGnveawEh3fxRA

Test: manual
Bug: 186496392
Change-Id: Id68faf3e2746f66e6633d5a25e64de3f0833d3ef
2021-05-17 02:57:30 +00:00
Neil Fuller
ad3d45a642 Add device_config cmds for disabling syncs
This adds a "sync disabled" mode which disables bulk updates to
device_config (AKA server flags). This is intended for use during
automated and manual tests that use device_config settings to set the
device into specific states for tests. Without this, devices can sync at
an arbitrary point during a test which can undo device_config changes
the tests have made and cause them to fail / flake.

This mechanism is independent of the mechanism used to sync, thereby
making it suitable for use in CTS or other AOSP tests, i.e. to disable
sync regardless of whether GMS core or an alternative is handling the
sync.

Test: atest core/tests/coretests/src/android/provider/DeviceConfigTest.java
Bug: 185786624
Change-Id: Icd0ce798642eb136dc8b9b1a58a4ecbc6212fdba
2021-05-14 11:26:13 +01:00
George Chang
e2417af788 Merge "[SettingsProvider] Remove @Readable for NFC_PAYMENT_DEFAULT_COMPONENT" into sc-dev am: c80d117764
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14442228

Change-Id: I177ab56e20e140f28b5154483519be2dc986e512
2021-05-12 16:14:39 +00:00
Tom Natan
b2d92ef7b0 Merge "Add CONSTRAIN_DISPLAY_APIS namespace." into sc-dev am: e68bdc6c8b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14468602

Change-Id: I9b6fe188b616348021ef8c3f076e7ddf48aa0418
2021-05-12 16:14:12 +00:00
George Chang
c80d117764 Merge "[SettingsProvider] Remove @Readable for NFC_PAYMENT_DEFAULT_COMPONENT" into sc-dev 2021-05-12 16:09:17 +00:00
Tom Natan
e68bdc6c8b Merge "Add CONSTRAIN_DISPLAY_APIS namespace." into sc-dev 2021-05-12 15:56:01 +00:00
tomnatan
92084dc6ae Add CONSTRAIN_DISPLAY_APIS namespace.
Bug: 187408243
Test: manual
Change-Id: I62fc909eafec83a9da84b9f6b4897610ceaa07f5
2021-05-12 09:10:15 +00:00
PETER LIANG
46379dcec5 Merge changes from topic "a11y_floating_menu_migration_tooltip" into sc-dev am: 74a435858a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13990513

Change-Id: I3e009d9a5b9afe42ae37e8127ac2c92f89552146
2021-05-12 03:23:33 +00:00
PETER LIANG
74a435858a Merge changes from topic "a11y_floating_menu_migration_tooltip" into sc-dev
* changes:
  Add the new migration tooltip for accessibility floating menu.(2/n)
  Add the new migration tooltip for accessibility floating menu.(1/n)
  Add key ACCESSIBILITY_FLOATING_MENU_MIGRATION_TOOLTIP_PROMPT.
2021-05-12 02:59:10 +00:00
Haiping Yang
edbaedf568 Merge "Add global settings keys for sysui package and main activity" 2021-05-11 02:33:46 +00:00
John Li
cb5837ffb5 Merge "Add javadoc for Secure.UI_TRANSLATION_ENABLED" into sc-dev am: ebad1be9bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14484642

Change-Id: Ic908223838c34bad7394d79ba4dc67ede390e774
2021-05-11 00:51:06 +00:00
John Li
ebad1be9bb Merge "Add javadoc for Secure.UI_TRANSLATION_ENABLED" into sc-dev 2021-05-11 00:45:55 +00:00
haiping
41d20af652 Add global settings keys for sysui package and main activity
Test: manual
Bug: 155178776

Change-Id: I86eff7004b141a394bc5bcf209f67e63676e0e4f
2021-05-10 19:56:28 +00:00
John Li
9113ce63fa Add javadoc for Secure.UI_TRANSLATION_ENABLED
Bug: 186240729
Test: manual
Change-Id: I4b997e9958c2272019138ec25c87d021da241b4e
2021-05-10 19:06:36 +08:00
Songchun Fan
f1423369fb Merge "Remove @GuardedBy on a final, immutable field" into sc-dev am: 9dba9a6782
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14467996

Change-Id: If9d37e179ef9d2cb3ac9ed600e09bbfc6020d550
2021-05-07 17:20:54 +00:00
Neil Fuller
0541a04273 Remove @GuardedBy on a final, immutable field
Remove @GuardedBy on a final, immutable field as it is causing
errorprone warnings on a work-in-progress commit.

ContentProviderHolder.mUri is accessed in multiple places without
holding mLock, and it is final and documented as immutable so should be
safe to access without mLock. This commit should reduce ErrorProne
warnings now and in future.

Bug: 185786624
Test: build / treehugger only
Change-Id: Ic7fbe550ff6f538f336cfb859f66daa94844ca28
2021-05-07 10:56:01 +01:00
George Chang
c484b05bf2 [SettingsProvider] Remove @Readable for NFC_PAYMENT_DEFAULT_COMPONENT
BUG: 182283321
Test: atest CtsNfcTestCases
Test: atest android.appsecurity.cts.ReadableSettingsFieldsTest
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.nfc
Change-Id: Ic01511201dc1e5e9009ecc41cd8611c503702f79
2021-05-06 16:16:20 +08:00
Peter_Liang
0c6aa86ea7 Add key ACCESSIBILITY_FLOATING_MENU_MIGRATION_TOOLTIP_PROMPT.
The key used to show the migration information related to
the accessibility floating menu.

Bug: 175365399
Test: atest SettingsProviderTest
Change-Id: Ifabc412b990c72ad345bab2d5d8539a57bd6ca5d
2021-05-05 19:24:30 +08:00