Commit Graph

1300 Commits

Author SHA1 Message Date
TreeHugger Robot
a1d5731beb Merge "Move SystemUI to /system_ext" 2019-12-19 02:17:02 +00:00
Automerger Merge Worker
5dfe7b9e51 Merge "[Tether11] Grant privileged permissions for tethering" am: b04cf17d71 am: 906a909c32 am: 323d51382a
Change-Id: I633592a7304130cd660ea861348141f02cdf9e52
2019-12-18 00:32:59 +00:00
Mark Chien
b04cf17d71 Merge "[Tether11] Grant privileged permissions for tethering" 2019-12-18 00:11:43 +00:00
Mark Chien
a6a6915f1c Merge "Add TETHER_PRIVILEGED permission to shell for CTS test." 2019-12-18 00:08:58 +00:00
Ytai Ben-tsvi
0d52f4202c Merge changes from topic "soundtrigger_refactor"
* changes:
  Migrate SoundTrigger implementation to new service
  Implement the soundtrigger_middlewware service
  Add a permission for preempting sound trigger sessions
  Sound trigger middleware service definition
  Add audio.common types AIDL definition
2019-12-17 22:33:55 +00:00
markchien
840abdc14c [Tether11] Grant privileged permissions for tethering
Since tethering is moved from systemServer to networkStack
process, it would lose privileged capability. Grant privileged
permissions for tethering individually. Grant MANAGE_USB to control
usb rndis function. Grant MODIFY_PHONE_STATE to know whether DUN
is required. Grant READ_NETWORK_USAGE_HISTORY to update tethering
usage. Grant UPDATE_APP_OPS_STATS to check WRITE_SETTINGS permission.

Bug: 144320246
Test: -build, flash, boot
      -atest TetheringTests

Change-Id: Id6e71b58e027d6ba90551084367ef881652c2555
2019-12-18 01:06:36 +08:00
Automerger Merge Worker
50682787ba Merge "Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission" am: 8893c6f9ac am: e8f7e5f483 am: 81358e51d0
Change-Id: Ie6d7fe61c21f170bb63c5a22e6f785cffa8f14fc
2019-12-17 14:37:54 +00:00
markchien
a2ce459f65 Add TETHER_PRIVILEGED permission to shell for CTS test.
Grant TETHER_PRIVILEGED permissions to the shell identity
for use within CTS tests.

Bug: 145490751
Test: atest CtsTetheringTest
Change-Id: Ifad265cdc5e0b1b1b2fa8f4f79eeb7dd18493624
2019-12-17 21:24:23 +08:00
Jeongik Cha
d45d9e111b Move SystemUI to /system_ext
we plan to forbid hidden API in product partition.
So this app should be moved to /system_ext because it uses hidden API.
It is not permanent, so they can be moved back to /product due to
needs if there isn't hidden usage anymore.

Bug: 137908189
Test: m
Test: check whether device boots successfully
Test: atest SystemUITests
Change-Id: I54f86496d4a0045af3576091cce00e5cd285b4f8
2019-12-17 07:19:45 +00:00
TreeHugger Robot
e754074a05 Merge "move privapp_whitelist_com.android.storagemanager to system_ext" 2019-12-16 09:19:31 +00:00
paulhu
741e513050 Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission
Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission to phone
package in privapp permission list.

Bug: 146222771
Test: build, flash, boot to home
Change-Id: I1c88b892b1d2f50856b139a5cad5dc8b07a006be
2019-12-16 09:02:36 +00:00
Ytai Ben-Tsvi
0b0441d16c Add a permission for preempting sound trigger sessions
Previously, the power to preempt sound trigger recognition sessions
for the sake of being able to capture audio on platforms that don't
support doing both concurrently, was implicitly granted based on
process (audio_server) co-location with the sound trigger service.
Since this service is now being migrated out of audio_server, a new
permission is introduced and granted to the audio server.

Change-Id: Ifcdfc2a5543d814fb0630a45cdd9bcdba4d92107
Bug: 142070343
2019-12-13 10:45:42 -08:00
Louis Chang
677921fc25 Merge ActivityDisplay and DisplayContent into one class (77/n)
Bug: 80414790
Test: Existing tests pass
Change-Id: I1924af0d353406ad950b9758e19384a579ad1426
2019-12-13 17:51:46 +08:00
Issei Suzuki
324f2845f5 Merge "Separate animation applying logic from commitVisibility" 2019-12-12 05:44:26 +00:00
Jeongik Cha
f32bbcf742 move privapp_whitelist_com.android.storagemanager to system_ext
As StorageManager, permissions.xml should follow the app's partition.

Test: m && check booting
Bug: 137908189
Change-Id: Ie791b5fbe1b1906537a57e8f1c34029c0f092afc
2019-12-11 22:02:59 +09:00
TreeHugger Robot
69218ced43 Merge "Move 'privapp_whitelist_com.android.launcher3' to system_ext" 2019-12-11 03:53:17 +00:00
Issei Suzuki
2bcbd6809c Separate animation applying logic from commitVisibility
Test: Refactoring. Pass existing tests.
Bug: 131661052

Change-Id: Ic455bcf77d405410ed8639664b643564fb089338
2019-12-11 11:33:31 +08:00
PO HUNG CHEN
e607256c64 Merge "Fix boot failure on aosp_pixel-userdebug" 2019-12-11 02:09:09 +00:00
Howard Chen
c38989264e Fix boot failure on aosp_pixel-userdebug
Test: Boot test
Bug: 145904897
Change-Id: Icb83f886c8734aee8d77d455754ffa37336aa6d9
2019-12-10 12:42:15 +08:00
Greg Kaiser
6074b2592e Add some sounds used by KeyguardViewMediator
Logcat failures indicate these three sounds are used in Android Go
builds.

Bug: 145923544
Test: Boot wembley and no longer see error in logcat about these files.
Change-Id: I3ee3248125d4f08a5ad71d1936a88484a8964fa2
2019-12-09 12:28:00 -08:00
PO HUNG CHEN
63a772c070 Merge "Allow the DSU Loader to install DSU package" 2019-12-09 03:36:45 +00:00
Jeff Sharkey
993b3ed571 Merge "Structure MediaProvider as an APEX." 2019-12-08 21:20:34 +00:00
TreeHugger Robot
93b3b42b65 Merge "Move 'privapp_whitelist_com.android.settings' to system_ext" 2019-12-05 04:09:20 +00:00
Jeff Sharkey
5fceb1574f Structure MediaProvider as an APEX.
Based on guidance from the Mainline team, we're placing the
MediaProvider APK inside a new APEX, as this will allow us to
move MediaStore.java inside the module boundary in a future CL.

As part of this restructuring, we need the pre-Mainline APK to
remain intact to preserve the user's media database.  There is
already logic in place from previous CLs that will migrate data
from the pre-Mainline to the post-Mainline world, including tests
to verify that the migration works.

Bug: 144247087
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I4c45dcf019442013da8fce0223ed0be896dedef4
2019-12-04 16:28:42 -07:00
Tyler Gunn
bf7be6def1 Merge "Car mode InCallService changes." am: 1d4fcf1703 am: 920d3e0fbf
am: bed4e9789c

Change-Id: I10f1de2db0dfc6657c7aece1e31f35da5c07a37c
2019-12-04 14:46:55 -08:00
Tyler Gunn
1d4fcf1703 Merge "Car mode InCallService changes." 2019-12-04 16:50:47 +00:00
Jeongik Cha
9a970c0494 Move 'privapp_whitelist_com.android.launcher3' to system_ext
As AOSP launcher is moved to system_ext, its permission files will follow the app location.

Test: m
Bug: 137908189
Change-Id: I5d11e3901633be82f375c56a5ef2c79b6e0b0922
2019-12-04 13:09:41 +09:00
Jeongik Cha
a8eb85afb4 Move 'privapp_whitelist_com.android.settings' to system_ext
As Settings is moved to system_ext, its permission files will follow the app location.

Test: m
Bug: 137908189
Change-Id: I58ae29a6454f91f222b15ccbd9d3e5b5d5889289
2019-12-04 12:35:08 +09:00
TreeHugger Robot
e7366b91e1 Merge "move privapp_whitelist_com.android.provision to system_ext" 2019-12-04 00:19:00 +00:00
TreeHugger Robot
b7b7cb0128 Merge "privapp_whitelist_com.android.emergency to system_ext" 2019-12-04 00:18:27 +00:00
Bookatz
52c7408b15 Fix typos in preinstalled-packages-platform.xml
Test: N/A (just comments)
Change-Id: Id383cba37379dc94fe5cb2b81a5bb70acbe7f614
2019-12-03 09:31:05 -08:00
Howard Chen
a46d15d66f Allow the DSU Loader to install DSU package
The DSU Loader is an Activity for developers to select a DSU
package and install.

Bug: 140090894
Test: click settings->developer option->debug::DSU Loader
Change-Id: If661ee3865ecc6234c19a7cf7376df1677313f60
2019-12-02 19:13:38 +08:00
Tyler Gunn
f701f7a765 Car mode InCallService changes.
1. Grant ENTER_CAR_MODE and CONTROL_INCALL_EXPERIENCE permissions to the
shell identity for use within CTS tests.
2. Remove un-needed Telecom shell command.

Test: unit tests, telecom CTS tests, manual testing
Bug: 144345414
Change-Id: I54a2e723d6ef9552117e6cadf4ab7c449dd5e3cb
2019-11-26 13:43:53 -08:00
TreeHugger Robot
b80612d1e2 Merge "UserSystemPackageInstaller uses user types" 2019-11-26 19:35:50 +00:00
Roshan Pius
dc4c722068 Merge changes from topic "wifi_mainline_apex"
* changes:
  Revert "Add a new wifi protection level"
  Revert "Mainline wifi stack module"
  Revert "WifiManager: Retrieve IWifiManager service lazily"
  Revert "Sysui/WifiTracker: Changes to support late starting wifi service"
2019-11-26 19:22:17 +00:00
TreeHugger Robot
d5617a96f0 Merge "privapp_whitelist_com.android.carrierconfig to system_ext" 2019-11-26 14:38:13 +00:00
Jeongik Cha
2c979fcb5f move privapp_whitelist_com.android.provision to system_ext
Test: m
Bug: 137908189
Change-Id: I183397b6e7e3783e26f1fd345c357af47410bb22
2019-11-26 16:15:40 +09:00
Jeongik Cha
38ed7d7410 privapp_whitelist_com.android.emergency to system_ext
Test: m
Bug: 137908189
Change-Id: I50c04967fb5a3e4f3227b50d750f24d3d8deeec4
2019-11-26 16:13:57 +09:00
Jeongik Cha
228ef6fa66 privapp_whitelist_com.android.carrierconfig to system_ext
Test: m
Bug: 137908189
Change-Id: I65cb7cb998d23541c8bcd2cfd81c8a9b94e7eccc
2019-11-26 15:55:47 +09:00
Roshan Pius
ac76d48454 Revert "Mainline wifi stack module"
This reverts commit 6f5338dd8f.

Reason for revert: Wifi services no longer plan to be a separate
APK/process for mainline. Will instead become a jar loaded from Apex.

Bug: 144722612
Test: Device boots up & connects to wifi networks.
Change-Id: I293e36973c4bdbd8bf9db2fcd78e61e6c38b39f4
2019-11-25 20:59:31 -08:00
Bonian Chen
073cdcab42 [Settings] Change the ordering of permission
Move READ_PRIVILEGED_PHONE_STATE based on alphabet ordering.

Bug: 144960427
Test: build pass
Change-Id: Ia86e20afc87725b012014b272b5c2f570aa31ca8
2019-11-26 09:22:56 +08:00
Roshan Pius
40ff6d65cc Merge "Revert "privapps-permission: Make REQUEST_NETWORK_SCORES a privilged permission"" 2019-11-25 17:34:36 +00:00
Roshan Pius
8533a06a9d Revert "privapps-permission: Make REQUEST_NETWORK_SCORES a privilged permission"
This reverts commit 82f37f83a8.

Reason for revert: Wifi services no longer plan to be a separate
APK/process for mainline. Will instead become a jar loaded from Apex.

Bug: 145114247
Change-Id: I993dd4d35cc280afe6dc044fa1dee0ea268f9bca
2019-11-25 14:36:16 +00:00
Bookatz
a8c2d2a553 UserSystemPackageInstaller uses user types
UserSystemPackageInstaller was recently introduced and used a subset of
UserInfo flags to specify which package should be installed on which
user.
ag/9507174 introduced the notion of user types to UserManager.

The current cl does the following:

UserSystemPackageInstaller now uses user types instead of UserInfo
flags. This includes both base types (SYSTEM, FULL, PROFILE), as well as
specific user types (like guest, managed profiles, etc.). OEMs can
therefore specify on which type of user each system package should be
installed.

(Installing based on the ephemeral flag is therefore no longer
available, but since it wasn't being used for this purpose, that's
okay.)

Bug: 134605778
Bug: 142151520
Bug: 142482943
Test: atest UserSystemPackageInstallerTest
Change-Id: Ibd6de29e4f4861e91e282edfdd3100dc2d2e2f5f
2019-11-22 10:53:08 -08:00
Issei Suzuki
d4ee1cc971 Clean up visibility related flags in ActivityRecord
- Replace mClientHidden by mClientVisible

Test: Refactoring, all existing tests pass.
Bug: 80414790
Change-Id: I4c122bf5418182ab7456ee2548195dbbab79fad6
2019-11-21 15:56:53 +01:00
Issei Suzuki
f2f6c91dd3 Clean up visibility related flags in WindowToken
- Replace isHidden() and setHidden() by isVisible() and setVisible()
  in accordance with variable names.
- Move isVisible() from AppRecord to WindowToken

Test: Refactoring CL, existing tests pass.
Bug: 80414790
Change-Id: Ib39200acbedf204adf57c06a8b8bbb3d07f959d1
2019-11-21 15:56:26 +01:00
Issei Suzuki
17c36347cc Merge "Clean up visibility related flags in ActivityRecord" 2019-11-21 14:53:41 +00:00
Tyler Gunn
5474568b87 Merge "Add prioritized enableCarMode API in UiModeManager"
am: 8e7a1f8528

Change-Id: I81d8b4a457c567e19c3c8e499cc1f08e1c8af3b3
2019-11-20 00:17:34 -08:00
Tyler Gunn
8e7a1f8528 Merge "Add prioritized enableCarMode API in UiModeManager" 2019-11-20 07:08:19 +00:00
Wale Ogunwale
7a8889a816 Remove Task#numFullscreen & ActivityRecord#sendingToBottom/remove (70/n)
- Task#numberFullscreen was only used in one location where we
needed to figure-out if the task has occluding activities.
Just use the hierarchy to figure that out vs. keeping track of
a variable that adds confusion.
- ActivityRecord#sendingToBottom was used to prevent focus and
orientation changes from activity moved to the bottom, however
since we are traversing the hierarchy from top-to-bottom we
should process activities on-top first vs the onces that have
already moved to the bottom.
- ActivityRecord#remove is no longer needed as the object won't
be connected to the hierarchy when it is removed.

Test: They pass!
Bug: 80414790
Bug: 35699615
Change-Id: I23f6501a65bf745dc0fb819c30543cd21241fa91
2019-11-19 23:37:07 +00:00