summaryrefslogtreecommitdiff
path: root/src/com/android/server/util/PermissionUtil.java
AgeCommit message (Collapse)Author
2020-05-13Add test for NetworkStackService dumpsys versionRemi NGUYEN VAN
The test verifies that each method on INetworkStackConnector updates the version received from the remote, and that the output of dumpsys version matches the expected template. This logic will be changed in R to include interface hashes, so a test is important to verify that Q behavior remains the same to avoid breaking Q conformance tests. Test: atest NetworkStackTests:NetworkStackServiceTest Bug: 137328719 Original-Change: https://android-review.googlesource.com/1293754 Merged-In: Icaab91d2cb4c62930f969612545e369f09f1b0c7 Change-Id: Icaab91d2cb4c62930f969612545e369f09f1b0c7
2019-09-03Refactor NetworkStackService for testabilityRemi NGUYEN VAN
Refactor some methods to allow integration testing between ConnectivityService and NetworkStack. The integration tests override some NetworkStack methods to mock permission checks or NetworkMonitor network requests. Test: atest NetworkStackTests Change-Id: Ib5b4458f0b4d1423759e1e4016ab961d3ced7b48
2019-06-18NetworkStack: Allow modules with network_stack uidRoshan Pius
The wifi service will start running with network_stack uid, so allow modules with the same uid to use the network stack interfaces. Note: Only modules signed with the same certificate (same as network_stack APK) can share the uid, so this is restricted to Google signed modules. Bug: 113174748 Test: Local wifi stack testing Change-Id: I0fa1eef691601afd837a83a0dd041f8870ddfc77 (cherry-picked from 204d6c5b211c7ad5cb71b885bcb1bf4fa1a34c21)
2019-06-04Check system_server PID in NetworkStack callsRemi NGUYEN VAN
Add a check that callers with UID 1000 always have the same PID. This is a proxy for checking that no system is designed to bind to the network stack unless it is the system_server, as otherwise either the system_server would start crashing, or that system would not have access to binder calls. Also remove access from PHONE_UID as it is not being used. Test: Flashed, WiFi working, Bluetooth reverse tethering shows no permission issue. Bug: 133209255 (patched automatically from Ib848aaaedfd599c1d4437378846c7dda74352019) (command: git -C [qt repo] show -p 4895c5 | patch -p3) Merged-In: I1205ae4b1062fe78f1e2283d6c308caa58651e86 Change-Id: I42215bd8b14d66d0150e7dac04fbb28feef991a6
2019-03-08Give Telephony the permissions to access the network stack.Chalard Jean
Test: manual Change-Id: I28308f421aa955fe110b50452b115a0178b24745
2019-01-31Fix bluetooth tethering on multi-userRemi NGUYEN VAN
Bluetooth runs as UID 1001002 when on a secondary user. With this change the NetworkStack verifies that the calling UID matches the Bluetooth app regardless of the user. Test: flashed, BT reverse tethering still working as primary user (no option to turn on as secondary user on phones) Bug: 123655057 Change-Id: I23f9c5fa40f3bb676ac65dd8c15106c9d78309a4
2019-01-21Allow Bluetooth to bind to NetworkStackRemi NGUYEN VAN
Test: flashed, verified bluetooth tethering gets IP address Bug: b/112869080 Change-Id: Idfbfdf54754fea46eb0099b9b9a3bdc29dd241e0
2019-01-09Move DhcpServer to NetworkStack appRemi NGUYEN VAN
Test: atest FrameworksNetTests && atest NetworkStackTests Bug: b/112869080 Change-Id: I96c40e63e9ceb37b67705bdd4d120307e114715b