358 Commits

Author SHA1 Message Date
Remi NGUYEN VAN
2e35424ad2 Merge "Rename NetworkStack package" am: e4a40c77e1 am: 69728afbc7
am: 8f46e05096

Change-Id: I9d5b907c3bcd9b15899307927b8518a9f60eceba
2019-02-17 17:34:12 -08:00
Remi NGUYEN VAN
e4a40c77e1 Merge "Rename NetworkStack package" 2019-02-18 01:07:51 +00:00
TreeHugger Robot
2a10cb0c3e Merge "Add DynamicAndroidInstallationService" 2019-02-13 16:44:55 +00:00
Remi NGUYEN VAN
2134893486 Merge "Remove INTERACT_ACROSS_USERS_FULL for NetworkStack" am: 749dfc3083 am: 082034a6dd
am: 67e46255ea

Change-Id: I57248b9294e239d031dcf36cf75e94bf58919701
2019-02-11 21:20:07 -08:00
Remi NGUYEN VAN
749dfc3083 Merge "Remove INTERACT_ACROSS_USERS_FULL for NetworkStack" 2019-02-12 04:47:43 +00:00
Sergii Piatakov
b7c41e9afd Merge "Grant Shell ability to clear instant app" am: f5a0e41e18 am: 7282c21b57
am: 57ee0ed8d2

Change-Id: I8a6d3b87d3bf0711fcd70f9965164b46a789b9fb
2019-02-11 20:35:33 -08:00
Treehugger Robot
f5a0e41e18 Merge "Grant Shell ability to clear instant app" 2019-02-12 03:42:40 +00:00
Remi NGUYEN VAN
8c0d94608c Rename NetworkStack package
Set the new name to com.android.networkstack. Also rename the stub APK
to com.android.networkstack.permissionstub.

Also add shared UID to the NetworkStackPermissionStub to enforce
signature restrictions on the UID.

Test: booted, WiFi working
Bug: 124033493
Change-Id: Id8967db08b7faaa659b20f86f1013493eb0e188f
2019-02-08 15:32:21 +09:00
Malcolm Chen
b8f1b10871 Adding READ_PRECISE_CALL_STATE permission in phone app.
This is needed if internal component wants to listen to
precise call state change.

Bug: 117980553
Test: unittest
Change-Id: Id5a60519cbf1d724f939fc10b1f03cccfe5c1b5c
Merged-In: Id5a60519cbf1d724f939fc10b1f03cccfe5c1b5c
2019-02-07 17:37:36 -08:00
Anton Hansson
b71394a63d Merge "Remove privapp permission grant for dmservice" 2019-02-07 08:07:28 +00:00
Remi NGUYEN VAN
f871bfb8c7 Remove INTERACT_ACROSS_USERS_FULL for NetworkStack
Replace with INTERACT_ACROSS_USERS, which is needed to send the
ACTION_NETWORK_CONDITIONS_MEASURED broadcast.

Also cleanup some non-privileged permissions that were added to the
priv-app file.

Test: built, booted, broadcast and captive portal login work
Bug: 123846255
Change-Id: I3c97c166e80c19bf57fa047709c8b91fca75d635
2019-02-07 02:39:57 +00:00
Anton Hansson
6db0deae3f Remove privapp permission grant for dmservice
Not part of the platform.

Test: boot blueline
Change-Id: I7778d32d6f07aa4e8bddd20e1ea4f35b1f0a8ef3
2019-02-05 16:27:39 +00:00
Varun Shah
913a014f5f Merge "Add OBSERVE_APP_USAGE permission to shell for CTS test." 2019-02-05 15:21:25 +00:00
Anton Hansson
8c31ae712e Merge "Separate privapp grant for dialer" am: 5d7fc9568e am: ce448e631b
am: a0a2d9a09a

Change-Id: I84a41eeb16cab36cec91d7d6a53695fcadc984ee
2019-02-04 21:52:05 -08:00
Nadia Benbernou
af41d5f7bd Merge "Make sure notifications from the default sms app do not get filtered to the non-interruptive section." 2019-02-04 17:25:31 +00:00
Po-Chien Hsueh
64aa78297f Add DynamicAndroidInstallationService
DynamicAndroidInstallationService is a framework service to download,
unzip and write DynamicAndroid images. Apps should interact with it
using DynamicAndroidClient. Or, developers can use adb am commmands.

Test: build and run on internal target
Bug: 122015653
Change-Id: I7c834ed37de52840a407fb140743eda1f2bd82e8
2019-02-02 23:46:03 +08:00
Varun Shah
0586192423 Add OBSERVE_APP_USAGE permission to shell for CTS test.
Bug: 123314449
Test: atest android.content.pm.cts.LauncherAppsTest
Change-Id: I5e58aefa9920dd4a974d24388f8ecd8dea7936b3
2019-02-01 17:29:48 +00:00
Nadia Benbernou
1ee91a3ce8 Make sure notifications from the default sms app do not get filtered to the non-interruptive section.
Bug: 123365364
Test: Unit tests and manual testing.
Change-Id: Ide41ff9656ee81aa4fc6f6bcdd00ae886a0e13ee
2019-01-31 14:04:54 -05:00
Julia Reynolds
876219430d Tests for matchesCallFilter
Test: cts
Bug: 123406095
Change-Id: Ibece70d3e5d77d447ece4f3d3118b315a8d6e5cb
2019-01-30 10:39:08 -05:00
Joe Onorato
e21ab7eab4 Add IncidentCompanionService
It is a helper in the system process that helps dumpstate and incidentd get
user confirmation to share reports

Bug: 123543706
Test: bit GooglePermissionControllerTest:*
Change-Id: Ia3fe4bd5257044ed89fe56ce683876fa03ba6c36
2019-01-29 09:59:28 -08:00
Joe Onorato
5a15b55107 Added a new "incidentReportApprover" permission protection flag.
This gives the ONE app installed on the system the permission to
authorize the sharing of incident and bug reports with an app.

Currently that app is PermissionController.  Package Manager
enforces that there is only one installed, and refused to boot
if that isn't the case.

Bug: 123543706
Test: bit GooglePermissionControllerTest:*
Change-Id: I76a7fad0ea36359bbb0ff09669df46202d059dab
2019-01-29 09:59:28 -08:00
yuemingw
11c4babf59 Allow ManagedProvisioning to access imei and serial number.
Bug: 122721358
Test: manual
Change-Id: I0d8f191f4f1bc1d8a87842db717af329681b012a
2019-01-28 18:32:27 +00:00
Anton Hansson
832f74662d Separate privapp grant for dialer
This app is moving to /product, so split it out of the grant
file on /system. The grant file is made required by the app itself.

Bug: 122353713
Test: boot aosp_blueline
Change-Id: I5e304e9df8af6c974b59a56edee7dcd0a932de3f
2019-01-25 14:03:37 +00:00
Malcolm Chen
da40c6d70c Adding READ_PRECISE_CALL_STATE permission in phone app.
This is needed if internal component wants to listen to
precise call state change.

Bug: 117980553
Test: unittest
Change-Id: Id5a60519cbf1d724f939fc10b1f03cccfe5c1b5c
2019-01-22 21:53:16 +00:00
Treehugger Robot
1eb5db6cf0 Merge "Change the impl lib name of java_sdk_library" 2019-01-17 10:01:37 +00:00
Sundong Ahn
f8732bb2db Change the impl lib name of java_sdk_library
The impl lib name of java_sdk_library is changed to {module_name}.jar
instead of {module_name}.impl.jar
android.test.mock.impl is removed from stubs_defaults.
RepetitiveTest class is added to public API in android.test.base

Bug: 110404779
Test: m -j
Change-Id: I5dd7f3a28bc22136b4e921de3eb5a3e77e5fc75f
Merged-In: I5dd7f3a28bc22136b4e921de3eb5a3e77e5fc75f
(cherry picked from commit b7540bf1a3f7e7f041ea8b3d3a3a23b15cab187c)
2019-01-17 09:43:25 +09:00
TreeHugger Robot
f8e7ff9175 Merge "Change the impl lib name of java_sdk_library" 2019-01-16 10:47:25 +00:00
Anton Hansson
14a4f42bba Merge "Move settings intelligence grant file to /product" am: eaeedb1c0d am: d6e981eaa0
am: a78fb89cb0

Change-Id: I05dcf630fd493d17d8fe51c4090d1cbdb4efb10b
2019-01-16 02:15:46 -08:00
Sundong Ahn
b7540bf1a3 Change the impl lib name of java_sdk_library
The impl lib name of java_sdk_library is changed to {module_name}.jar
instead of {module_name}.impl.jar
android.test.mock.impl is removed from stubs_defaults.
RepetitiveTest class is added to public API in android.test.base

Bug: 110404779
Test: m -j
Change-Id: I5dd7f3a28bc22136b4e921de3eb5a3e77e5fc75f
2019-01-16 12:20:55 +09:00
Michal Karpinski
7093732100 Merge "Add a new START_ACTIVITIES_FROM_BACKGROUND signature|privileged|vendorPrivileged|oem permission" 2019-01-15 14:36:41 +00:00
Anton Hansson
13dd25747f Merge "Move a set of app privapp grants to /product" am: 65f8be9940 am: 65200e83c2
am: ea2ee8d2ba

Change-Id: Ie01d987cbc547424cee7d82d2ebc54192f492e4d
2019-01-15 06:19:02 -08:00
Anton Hansson
d231ab271c Merge "Split out more privapp permissions" am: 7e620669cf am: 530a86ef3a
am: 2dd31acf42

Change-Id: I5a18b51e5f66f9782e77dbee7b57716bb9b48b14
2019-01-15 06:08:46 -08:00
Anton Hansson
edd61059d8 Move settings intelligence grant file to /product
The app is moving to /product, so move its privapp permission
grant along with it.

Bug: 122353713
Test: make
Test: boot aosp product
Change-Id: Ib4041ac5e39fa037939326db9c858db78d31d51b
2019-01-15 10:34:44 +00:00
Anton Hansson
221f4d4614 Move a set of app privapp grants to /product
These apps are moving to /product, so move the grant
files to /product as well.

Bug: 122353713
Test: make
Test: boot aosp product
Change-Id: Ief20d30ddb834a63cec8ed070022bb5165e07497
2019-01-15 10:33:38 +00:00
Anton Hansson
27eedf5052 Split out more privapp permissions
These apps are all moving to /product, so split them
out of the grant file on /system. For now, make them
required by the /system file. As part of moving the
an app to /product, the grant file will be made required
by the app itself.

Bug: 122353713
Test: make
Exempt-From-Owner-Approval: approved already
Change-Id: If207576d1e78037159051de25a733d90c1cb29c8
2019-01-15 10:32:32 +00:00
Anton Hansson
099d53b9cb Separate privapp grant for settings.intelligence
This app is moving to /product, so split it out of the grant
file on /system. For now, make it required by the /system file.
As part of moving the an app to /product, the grant file will
be made required by the app itself.

Bug: 122353713
Test: make
Exempt-From-Owner-Approval: approved already
Change-Id: I994137279b2c25938fd9967027f606a88bb39468
Merged-In: I994137279b2c25938fd9967027f606a88bb39468
2019-01-15 10:30:19 +00:00
Michal Karpinski
7b97a0267b Add a new START_ACTIVITIES_FROM_BACKGROUND
signature|privileged|vendorPrivileged|oem
permission

And grant it to SystemUI and Shell (adb shell am start).

Bug: 110956953
Test: atest WmTests:ActivityStarterTests
Change-Id: I4885a9a62ee8d47a3aef85f0e34b746c3f51ca2b
2019-01-14 18:13:47 +00:00
Anton Hansson
1e4e66e756 Separate privapp grant for settings.intelligence
This app is moving to /product, so split it out of the grant
file on /system. For now, make it required by the /system file.
As part of moving the an app to /product, the grant file will
be made required by the app itself.

Bug: 122353713
Test: make
Change-Id: I994137279b2c25938fd9967027f606a88bb39468
2019-01-14 15:16:49 +00:00
Anton Hansson
7736426465 Convert data/etc/Android.mk to blueprint
Should produce identical artifacts.

Test: boot blueline
Change-Id: Iad06f3efc727d97bdef3d4a7cec9b2b1fbc775b9
Merged-In: Iad06f3efc727d97bdef3d4a7cec9b2b1fbc775b9
(cherry picked from commit 8fe7b41bc9333b33e38571edf7fcc3560cbb2366)
2019-01-14 09:24:21 +00:00
Anton Hansson
77cf075561 Merge "Move Settings privapp-permissions to /product" 2019-01-14 09:06:25 +00:00
Anton Hansson
b7909f3a2b Move SystemUI and its permissions to /product
Since this app is frequently customized by OEMs, it doesn't
fit in the mainline /system image right now. Move it to
/product.

Bug: 110072687
Test: make
Test: boot blueline
Test: atest SystemUITests
Change-Id: If27bcccd62f239f716db5ee7f4f1418d936e1cf4
Merged-In: If27bcccd62f239f716db5ee7f4f1418d936e1cf4
(cherry picked from commit 9068f65e4f72792fdb579862ceb01b6a390a56a0)
2019-01-11 16:32:33 +00:00
Anton Hansson
60027be024 Move Settings privapp-permissions to /product
The app is moving to /product, so move the permission
grants as well.

Bug: 110072687
Test: boot blueline
Change-Id: I34fcab908db5b7a96a50b45bb45941282b05a82d
Merged-In: I34fcab908db5b7a96a50b45bb45941282b05a82d
(cherry picked from commit 948abe768e10590a77fd4c3e2afc1e3c414b3fe1)
2019-01-11 16:29:00 +00:00
Anton Hansson
2012be2471 Move Settings/SystemUI permissions to separate files
This makes it possible to move the permission around separately
from all the other permissions. This permission file is included
automatically when the respective app is included.

Bug: 110072687
Test: make
Change-Id: I91b30561d4a4000334ffbf3b98bb632d962f4b97
Merged-In: I91b30561d4a4000334ffbf3b98bb632d962f4b97
2019-01-11 16:24:28 +00:00
Remi NGUYEN VAN
6206098206 Merge "Add priv-app permissions for NetworkStack" am: f012a17962 am: b5d67e5d90
am: 12c6c157c2

Change-Id: I96c955fd22da183d90697bd1bcd34deaa307a693
2019-01-09 05:47:54 -08:00
Sanry Huang
b35a2fc2bb Merge "Cleanup usages of MANAGE_ACTIVITY_STACKS permission" 2019-01-09 12:16:27 +00:00
Remi NGUYEN VAN
5dbf057436 Add priv-app permissions for NetworkStack
Bug: b/112869080
Test: m, flashed, booted
Change-Id: Ia2cf0f708d815a5e5f49924fb15bb9c728f4ad56
2019-01-09 10:41:44 +09:00
chen xu
516b1a9709 Merge "whitelist pri permission for carrierconfig app" am: 4eba7c3cfc am: ba764da4dc
am: 4d07d9d1e7

Change-Id: Ife00aa79179bb3b28d45f652e538e07ed3d23b27
2018-12-20 20:42:34 -08:00
Treehugger Robot
4eba7c3cfc Merge "whitelist pri permission for carrierconfig app" 2018-12-21 03:56:21 +00:00
chen xu
7007c0d05e whitelist pri permission for carrierconfig app
Bug: 121350842
Test: Build
Change-Id: If804e18265a917e841d6afc1b7a450321cc1cc77
2018-12-21 01:05:40 +00:00
chen xu
970d77913b new SystemAPI for preciseCallState and DisconnectCause
1. decouple disconnectCause and preciseDisconnectCuase from
 preciseCallState.
 2. expose preciseCallState to SystemAPI and expose
onPreciseCallStateChanged to System API
3. remove/hide ImsReasonInfo from PreciseDisconnectCuase
4. expose DiconnectCuase and PreciseDisconnectCause to System API
5. new onDisconnectCauseChanged API on PhoneStateListener for CS call
 and use ImsCallSessionListener for IMS call(imsreasonInfo)
6. add read_precise_phone_state to shell apk to enable GTS test

Bug: 119890559
Test: atest GtsGmscoreHostTestCases:TelephonyHostTest#testPhoneStateListener
Change-Id: If9256feff16b6bcaef1dfe194c2b0df2a48436b0
(cherry picked from commit 6a942d488af3356fe84b0cef396e613d8d74101e)
Merged-in: If9256feff16b6bcaef1dfe194c2b0df2a48436b0
2018-12-20 18:41:11 +00:00