Commit Graph

1270 Commits

Author SHA1 Message Date
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
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
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
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
Tyler Gunn
18325cf2d4 Merge "Add prioritized enableCarMode API in UiModeManager" 2019-11-19 23:16:33 +00:00
Issei Suzuki
1669ea4bc8 Clean up visibility related flags in ActivityRecord
- Replace visible and hiddenRequested flag by a single flag
  mVisibleRequested.
- Merge setVisible() into setVisiblity().

Test: Refactoring, all existing tests pass.
Bug: 80414790
Change-Id: I7bafdb86e6b8431046775d3968d24f85c3fac45a
2019-11-19 17:16:39 +01:00
Tyler Gunn
daef668a99 Add prioritized enableCarMode API in UiModeManager
Per design doc (go/android-car-mode-design), added new system API to
enable car mode and specify a priority for the calling app.
Also modified UiModeManager to pass the package name of the caller to
UiModeManagerService.

Bug: 136109592
Test: Added new unit tests and CTS tests.
Test: Added Telecom test app functionality to verify.
Change-Id: I2848039c9ea18ba93e7694e04c4e5dc70759daa3
2019-11-18 13:03:30 -08:00
Jean-Michel Trivi
0fb6ac46d9 Merge "AudioPackage11.mk: fix typo" am: 2f7b351010 am: 15b30f03f4
am: 8367ff5263

Change-Id: Ib6e954140ef689c561ec2f2429c1944833dd15c3
2019-11-14 10:48:42 -08:00
Jean-Michel Trivi
15b30f03f4 Merge "AudioPackage11.mk: fix typo"
am: 2f7b351010

Change-Id: Ifcfb74ba46add7f492980f2270e1dc35de8ae765
2019-11-14 10:32:58 -08:00
Jean-Michel Trivi
76c707467d AudioPackage11.mk: fix typo
Fix typo after file name introduced
by dc54082abe

Bug: 144470640
Test: add frameworks/base/data/sounds/AudioPackage11.mk in product mk and build
Change-Id: I75101b12596b2b50d8017325f55cd85ea836f6a8
2019-11-14 08:36:10 -08:00
Issei Suzuki
430a111553 Revert "Clean up visibility related flags in ActivityRecord"
This reverts commit f8c7ced903.

Reason for revert: broke dev test (com.roidapp.photogrid)
Fixes: 144403961
2019-11-14 16:20:52 +01:00
Issei Suzuki
7b9e257908 Revert "Clean up visibility related flags in WindowToken"
This reverts commit cf0d2ae88d.

Reason for revert: broke dev test (com.roidapp.photogrid)
Fixes: 144403961

Change-Id: I77920d16062190b4565d4c95687b06fc587f9817
2019-11-14 16:19:54 +01:00
Issei Suzuki
e63eac7a99 Revert "Clean up visibility related flags in ActivityRecord"
This reverts commit c0edbbb521.

Reason for revert: broke dev test (com.roidapp.photogrid)
Fixes: 144403961

Change-Id: I71ef435cfbdab46d2e57f2ed68af3eff04958a99
2019-11-14 16:03:02 +01:00
Jeff Sharkey
97d3ca1e8f Merge changes from topic "legacycodez"
* changes:
  Progress towards splitting MediaProvider UID.
  Progress towards splitting MediaProvider UID.
2019-11-13 20:53:45 +00:00
Issei Suzuki
c0edbbb521 Clean up visibility related flags in ActivityRecord
- Replace mClientHidden by mClientVisible

Test: Refactoring, all existing tests pass.
Bug: 80414790
Change-Id: Ica79662b7c2d85d6862b96d1e6cedfde704a2c15
2019-11-13 16:58:14 +01:00
Jeff Sharkey
7e9699f83a Progress towards splitting MediaProvider UID.
We're working towards making MediaProvider into a Mainline module,
which means it can no longer share the "android.media" UID built
into the OS.  The major reason for this is because they're signed
with separate keys, but a secondary reason is that we don't know what
database customizations an OEM has performed in their MediaProvider.

Ensure that packages are requesting the permissions they actually
depend on, instead of relying on permissions requested by other
packages under the shared UID.

Bug: 144247087
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Iea42a69dd270682258314126f6540478aece3e59
2019-11-12 15:48:52 -07:00
Issei Suzuki
cf0d2ae88d 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: Ie77bf1d00336e655b1fbee15d419c6959da2e0c9
2019-11-12 18:26:12 +01:00
Issei Suzuki
f8c7ced903 Clean up visibility related flags in ActivityRecord
- Replace visible and hiddenRequested flag by a single flag
  mVisibleRequested.
- Merge setVisible() into setVisiblity().

Test: Refactoring, all existing tests pass.
Bug: 80414790
Change-Id: I2a959632430d90ef5c0f738aa791ef230c4a21f1
2019-11-12 18:14:14 +01:00
TreeHugger Robot
59cee214bf Merge "Merge Task and TaskRecord into one class (65/n)" 2019-11-12 04:11:33 +00:00
Louis Chang
cdec080895 Merge Task and TaskRecord into one class (65/n)
Merge Task and TaskRecord into a single Task class. Also Consolidate
updateTaskMovement() call points to TaskStack.onChildPositionChanged().

Bug: 80414790
Test: Existing tests pass
Change-Id: Iec0101b211bf34fab42131aae6cddfe1262e2add
2019-11-12 10:29:39 +08:00
Bonian Chen
a9fe205c51 Merge "[Settings] Permission to access ImsMmTelManager" 2019-11-12 00:41:23 +00:00
Vadim Caen
311fef7bee Call end callback for custom rotation anim.
The onAnimationEnd callback was not called when a cutstum animation was
set (e.g: JUMPCUT) causing WindowState.mOrientationChanging to never be
reset to false and drawing being held.

Bug: 142255739
Test: atest PixelCopyTest#testWindowProducerCropTopLeft
Change-Id: If35a0bb0ad94050fba086cb81f8265c0bf0535eb
2019-11-08 11:55:54 +01:00
Bonian Chen
ac5d9371aa [Settings] Permission to access ImsMmTelManager
Add READ_PRIVILEGED_PHONE_STATE permission

Bug: 140542283
Test: Manual
Change-Id: If88c6e3e1b5084a27c95b875bc74d28d0af908df
2019-11-08 17:13:41 +08:00
TreeHugger Robot
d41a725956 Merge "Generalized AppWindowThumbnail as WindowContainerThumbnail" 2019-11-06 22:16:20 +00:00
lumark
bc0032a39c Generalized AppWindowThumbnail as WindowContainerThumbnail
Also modified some miscellaneous code logics related animation.

Bug: 142617871
Bug: 131661052
Test: Refactoring, existing tests pass.
Change-Id: Ia06d500bc6b6bf247d840d14cc81d2358af2d400
2019-11-07 01:56:56 +08:00
Jordan Liu
608d940823 Merge "Move cell broadcast service module directory"
am: efa3cc419c

Change-Id: Ib742b26e57c2bbd1e3ea7bc766a35a7251b44221
2019-11-05 16:59:27 -08:00
Jordan Liu
776242c0c6 Move cell broadcast service module directory
Update the permissions and resource to reflect this move.

Bug: 135956699
Test: manual
Change-Id: I8c798f48e3a342cc2ce29d1f7f199ae1337ff2d0
Merged-In: I8c798f48e3a342cc2ce29d1f7f199ae1337ff2d0
2019-11-05 11:28:53 -08:00
Roshan Pius
41f3c6330c wifi: Allow wifi to get INTERACT_ACROSS_USERS_FULL
Bug: 142234604
Test: Can provision & connect to R2 passoint network
Change-Id: I2bbf8aea169c600ce6b75eaefc52ddc755be4004
2019-11-05 18:47:54 +00:00
Siarhei Vishniakou
a3492cae1e Fix layout for Razer Serval
Ensure all of the keys are mapped.

Test: atest RazerServalTest
Bug: 136263708
Change-Id: I550d5e4e46cbc8549f0bcf075ad5ac39870c3487
2019-11-04 23:29:15 -06:00
Issei Suzuki
860fbc04ed Removed unused flag ActivityRecord.inPendingTransaction
Test: no-op change, still all tests pass
Change-Id: Ib350f75fbdabcb21930e95cc316563168b6f117d
2019-11-01 14:46:35 +01:00
TreeHugger Robot
6aba85af50 Merge changes If1c39d09,I3f8719c7
* changes:
  Promote AppWindowToken.applyAnimationLocked() to the base class.
  Unify animation methods into new WindowContainer#isAnimating()
2019-10-31 12:31:36 +00:00
Xin Li
6f48900f50 DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
Bug: 142003500
Change-Id: If5056a73ede668b0048ca107b686413695e5b3b6
2019-10-30 14:33:01 -07:00
TreeHugger Robot
25b0bbb71d Merge "Add new permission that lets incidentd call dropbox" 2019-10-30 20:11:35 +00:00