Commit Graph

2303 Commits

Author SHA1 Message Date
TreeHugger Robot
2ddb627c77 Merge "Enhance Settings deep link transition" into tm-dev am: 73d2d07d1e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17290004

Change-Id: Ie78032f2edb7a3e0081b79cb95886f0c375d0a02
2022-03-24 10:37:14 +00:00
TreeHugger Robot
73d2d07d1e Merge "Enhance Settings deep link transition" into tm-dev 2022-03-24 10:16:46 +00:00
Philip Junker
c4648f276b Merge "Add special app access for turning on the screen." into tm-dev am: bf4878c877
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17182673

Change-Id: Ia91f563137a21fe5628ca98564d2cc8669d52807
2022-03-24 10:07:12 +00:00
Philip Junker
bf4878c877 Merge "Add special app access for turning on the screen." into tm-dev 2022-03-24 10:02:49 +00:00
Jason Chiu
177573c892 Enhance Settings deep link transition
Since the deep link mechanism uses a trampoline activity to redirect the
target activity, and the targeting activity is launched in a separate
task, there will be two transitions played, where one is the splash
screen with the trampoline acitvity and another one is the task
transition. This makes the UX weird.

To avoid this, this CL tries to make the targeting activity launch in
the same task as the trampoline acitivity by removing the taskAffinity,
so there won't be a task transition.

Fix: 215275940
Test: Create a settings shortcut on the home screen and launch it.
Change-Id: I7621ab9f1132acbf619495801a3b985c5c3b1b5d
2022-03-24 12:42:01 +08:00
Yuri Ufimtsev
b1469cce58 Merge "Declare task affinity for entries that could be launched by SafetyCenter" into tm-dev am: 7e7d3f898e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17134743

Change-Id: Ic2fe73e794f3f41708308762757270024e696a93
2022-03-22 13:55:33 +00:00
Yuri Ufimtsev
be98245015 Declare task affinity for entries that could be launched by SafetyCenter
Test: manual

Bug: 222676668
Change-Id: I44c2f0cee61ffd8f10284cda5a740a9e9d9ea7bb
2022-03-22 10:36:28 +00:00
Bonian Chen
bb44ceb407 Merge "[Settings] Enable support for AdaptiveIcon (Data Usage, Hotspot, VPN)" into tm-dev 2022-03-22 03:12:17 +00:00
Bonian Chen
c79e74dd49 [Settings] Avoid popup activity get bringup from recent history
A popup dialog is designed to sit on top of an single instance activity.
Although activity might #finish(), but will be restarted due to staying
in the recent history.

Remove it from recent history may allow end user not seeing that UI.

Bug: 202033230
Test: local
Change-Id: Id1d52eefb90d011296495f39b1533a1af68435f1
(cherry picked from commit f81eaeb8fa)
2022-03-21 08:08:07 +00:00
Bonian Chen
3370b50c6b Merge "[Settings] Avoid popup activity get bringup from recent history" 2022-03-21 08:06:17 +00:00
Bonian Chen
b6a4bc9d3f [Settings] Enable support for AdaptiveIcon (Data Usage, Hotspot, VPN)
This is a change to enable the support of AdaptiveIcon for following
widgets:
1. Data Usage
2. Wi-Fi Hotspot
3. VPN

Bug: 225252321
Test: local
Change-Id: I523dee9cfd435a95fd31e8730053e0d9ff2c2339
(cherry picked from commit 86027479cb)
2022-03-21 00:18:26 +00:00
Philip Junker
8a9780527e Add special app access for turning on the screen.
Bug: 216114297
Test: manually built and installed on device, verified absence of jank.
Test: atest SettingsRoboTests:TurnScreenOnDetailsTest
Test: atest SettingsRoboTests:TurnScreenOnSettingsTest
Change-Id: I1ed5948504222b537207978cbaa117b48aa28e6c
2022-03-18 14:53:13 +00:00
Bonian Chen
f81eaeb8fa [Settings] Avoid popup activity get bringup from recent history
A popup dialog is designed to sit on top of an single instance activity.
Although activity might #finish(), but will be restarted due to staying
in the recent history.

Remove it from recent history may allow end user not seeing that UI.

Bug: 202033230
Test: local
Change-Id: Id1d52eefb90d011296495f39b1533a1af68435f1
2022-03-18 16:52:40 +08:00
Bonian Chen
86027479cb [Settings] Enable support for AdaptiveIcon (Data Usage, Hotspot, VPN)
This is a change to enable the support of AdaptiveIcon for following
widgets:
1. Data Usage
2. Wi-Fi Hotspot
3. VPN

Bug: 225252321
Test: local
Change-Id: I523dee9cfd435a95fd31e8730053e0d9ff2c2339
2022-03-18 09:23:19 +08:00
TreeHugger Robot
93d881598b Merge "Set higher priority for ADD_DEVICE_ADMIN intent" into tm-dev am: 5f6aee1cf7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17197594

Change-Id: I019fa52c8b397ba33d900375fd2419fe0451da61
2022-03-17 04:22:09 +00:00
Tsung-Mao Fang
56e9b25b5f Set higher priority for ADD_DEVICE_ADMIN intent
Settings should set android:priority of the intent-filter > 1
so that regular apps can't provide an alternative.

Test: Rebuilt apk
Fix: 197960672
Change-Id: Ic12db4fa5e6a5f803930deba2a81254c375403df
2022-03-16 18:03:40 +08:00
Corina Grigoras
5a1f4f2de3 Merge "Rename READ_MEDIA_IMAGE to READ_MEDIA_IMAGES" into tm-dev am: f2c1c97edc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17149237

Change-Id: I89ebb3f7b4fa8f59c8e3133004b826c35d339c6e
2022-03-10 22:03:21 +00:00
Corina Grigoras
f2c1c97edc Merge "Rename READ_MEDIA_IMAGE to READ_MEDIA_IMAGES" into tm-dev 2022-03-10 21:36:38 +00:00
Tom Hsu
76147437bf Merge "[Panlingual] Revamp the panlingual UI in Settings." 2022-03-10 13:06:47 +00:00
TreeHugger Robot
377d4dfea4 Merge "Add highlight menu key for app pages" into tm-dev am: 439bd335a4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17148789

Change-Id: I5b3a8d326cbcd08508adbbdddf495117ab534826
2022-03-10 10:15:56 +00:00
TreeHugger Robot
439bd335a4 Merge "Add highlight menu key for app pages" into tm-dev 2022-03-10 09:56:35 +00:00
Jason Chiu
bbb9f20346 Add highlight menu key for app pages
Fix: 216402156
Test: manual
Change-Id: I8a79e72e07739aca831a62b8186bdaaa3dc69870
2022-03-10 15:34:55 +08:00
Jay Thomas Sullivan
cd2109a17b Rename READ_MEDIA_IMAGE to READ_MEDIA_IMAGES
This permission was only created very recently, and it is unlikely that
any apps are using it yet.

After its creation, it was decided that it should be renamed.

Bug: 223691971
Test: atest CtsPermissionTestCases CtsPermission3TestCases
Change-Id: If82cee5995a2adc8e1b1fcc88ea7b540e7df0fac
2022-03-09 22:34:52 -08:00
PETER LIANG
9ecf3b2b44 Merge "Fix that the theme of "Vision Settings" was inconsistent with "Anything else?"." into tm-dev am: 66a510d2dd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17137385

Change-Id: Idada6dac443ebf07e64fa387354d0ae7911fc8c1
2022-03-10 05:57:46 +00:00
Peter_Liang
d2fc78d797 Fix that the theme of "Vision Settings" was inconsistent with "Anything else?".
Remove theme attribute in the xml to avoid overriding.

Fix: 220127506
Fix: 219417232
Fix: 219415822
Fix: 223341110
Fix: 222415445
Fix: 219592951
Test: manual test
Change-Id: I8075be594714dfbd941cdcc642453500f093fc26
2022-03-10 01:07:26 +08:00
tom hsu
6fc5bb64dc [Panlingual] Revamp the panlingual UI in Settings.
- Create a Activity to contain AppLocaleDetail and
    LocalePickerWithRegion
  - Update the Entry from apps language page

Bug: 223089715
Test: local test pass
Change-Id: Id01e93f3df32412c7323ca577a149009eb1862ad
2022-03-09 17:06:33 +08:00
TreeHugger Robot
d0c2f30970 Merge "Revert "Remove the fallback AddSupervisedUserActivity."" 2022-03-07 18:41:45 +00:00
Yasin Kilicdere
a30b27657b Revert "Remove the fallback AddSupervisedUserActivity."
This reverts commit 86f3500439.

Reason for revert: Real flow is not ready yet, so we still need the fallback activity.

Change-Id: I34dc5386ff8c18a62b4b11e25fd355a62602329f
2022-03-04 15:44:42 +00:00
Menghan Li
5658c482a2 Merge "Remove font size & screen size setup flow instance" into tm-dev am: d3ec64104d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17049975

Change-Id: I9f2fe85a7ddd78bc093878f8ad81ac19083d2735
2022-03-03 15:12:06 +00:00
Menghan Li
d3ec64104d Merge "Remove font size & screen size setup flow instance" into tm-dev 2022-03-03 14:40:17 +00:00
menghanli
a3c62aa1c7 Remove font size & screen size setup flow instance
Bug: 219882220
Bug: 214881137
Test: Build & flash; visual inspection; make RunSettingsRoboTests
Change-Id: I797738388a9fc3e8af21ccee3c1d34771b46126d
2022-03-03 07:43:37 +00:00
Yasin Kilicdere
87c063e051 Merge "Remove the fallback AddSupervisedUserActivity." 2022-03-02 20:15:41 +00:00
Tom Hsu
2788e6e073 Merge "[Tetheirng] Show a dialog indicate tethering is unsupported by carrier." am: d915b09e21 am: 0e8aed527f am: 293571f054 am: d626cb16f8
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1984590

Change-Id: Iee2086215a2c7079831afaab626cbfab103a3957
2022-03-02 12:53:36 +00:00
Tom Hsu
d626cb16f8 Merge "[Tetheirng] Show a dialog indicate tethering is unsupported by carrier." am: d915b09e21 am: 0e8aed527f am: 293571f054
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1984590

Change-Id: Ib7b1d25aa8ff2e1f172eebf148790873cc292ded
2022-03-02 12:42:33 +00:00
Tom Hsu
0e8aed527f Merge "[Tetheirng] Show a dialog indicate tethering is unsupported by carrier." am: d915b09e21
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1984590

Change-Id: I5de3906942beb7efe557e3491468f91f9d67db48
2022-03-02 11:59:46 +00:00
Adam Bookatz
74f60b3e3f Merge "Fallback Home doesn't restart on keyboard change" into tm-dev am: f886179845
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17009044

Change-Id: I1ddd80925bcf2bc1dbafca1bbfcf12620c3476de
2022-03-01 23:17:57 +00:00
Adam Bookatz
f886179845 Merge "Fallback Home doesn't restart on keyboard change" into tm-dev 2022-03-01 22:51:27 +00:00
Yasin Kilicdere
86f3500439 Remove the fallback AddSupervisedUserActivity.
Rollback the changes done in ag/16388725 and ag/16709333

Bug: 209659998
Test: croot && make RunSettingsRoboTests -j40 ROBOTEST_FILTER="com.android.settings.users.UserSettingsTest"

Change-Id: I75b85df50a3caff55375ad261a97225377644a38
2022-03-01 21:59:23 +00:00
tom hsu
427906c29e [Tetheirng] Show a dialog indicate tethering is unsupported by carrier.
Bug: 161206517
Test: manual
Change-Id: I45a2e42367850ab6fc901fe508671677d843b793
2022-03-01 18:10:10 +08:00
Tsung-Mao Fang
be8c6ce724 Merge "Media permission update for Android T" into tm-dev am: 27bef200be
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16972172

Change-Id: Id19f23a3de163a0859418d3e9fc86654cd370221
2022-03-01 03:45:24 +00:00
Adam Bookatz
eb89d146f2 Fallback Home doesn't restart on keyboard change
Fallback Home gets launched multiple times due to
CONFIG_KEYBOARD_HIDDEN, which is irrelevant for it. So we mark the
activity to not be restarted on this config change.

Test: manual
Bug: 215439232
Change-Id: I558091979840a6b664e39f6b8bd22957d1b2b729
2022-02-25 00:49:15 +00:00
Tsung-Mao Fang
09c96a331b Media permission update for Android T
To improve user clarity of the storage permission and
reduce the number of apps with broad file access,
we will update the Files & Media permission model
for apps targeting API 32.

Apps must now request permission for images, videos,
or audio files independently.

Test: Build apk and see Storage page works.
Fix: 220259725
Change-Id: I8f14cf5b4b48c6b28374ba7266c62a3897cdda8e
2022-02-22 17:06:01 +08:00
Yi-Ling Chuang
2a3337a17c Enable GWPAsan for Settings
Enable this to detect memory bugs.

Fixes: 220248277
Test: Local start up time test and memory usage test.
Change-Id: I529507931f372f1e1f7bf6ae580fdb35651e6bd0
2022-02-18 14:43:48 +08:00
Marie Matheson
3b3c6bc564 Merge "Send safety center status on boot" 2022-02-17 15:45:12 +00:00
Marie Matheson
1106faf2cf Send safety center status on boot
Bug: 215517959
Test: atest SettingsUnitTests
Change-Id: Id34d68063b2bacd07c932b294b36546160384e92
2022-02-14 20:33:57 +00:00
Lucas Silva
cce99074e9 Merge "Move Dream OOBE activity to SettingsGoogle" 2022-02-14 15:31:07 +00:00
Peter_Liang
61264d046d Polish and humanize the title for the entry of Text and Reading Options in SuW.
Bug: 219163254
Test: manual test
Change-Id: Ic908918a1b4978dd10e42e13c619bb8d0a697467
2022-02-12 17:38:41 +08:00
PETER LIANG
87e9c68550 Merge "New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (16/n)." 2022-02-12 03:27:06 +00:00
Lucas Silva
3eb4cb41ae Move Dream OOBE activity to SettingsGoogle
This will only be used on pixel devices.

Bug: 217555049
Test: locally on device
Change-Id: Ica7cddae8b8b8693a83da95d25a8d0827aed0945
2022-02-11 16:22:54 +00:00
Marie Matheson
cf6ec6a251 Merge "Adds LockScreen SafetySource and SafetySource broadcast receivers." 2022-02-11 14:35:20 +00:00