No description. Add one?
  • Java 78%
  • Kotlin 11.8%
  • AIDL 4.4%
  • C++ 3.7%
  • C 1.5%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Junyu Lai f014ae2f2a Use MANAGE_USERS permission to check for admin user
The current implementation uses MANAGE_USERS, CREATE_USERS, or
QUERY_USERS to check if the user is an admin. However,
QUERY_USERS is not a privileged permission until Android U.
This can cause issues on devices running older Android versions
(e.g., T) where the tethering module requires this check but
doesn't have the necessary permission, leading to crashes.

This change updates the code to use MANAGE_USERS, a privileged
permission since 2015, to reliably determine if the user is
an admin across different Android versions.

Test: Manual on T device:
      1. Mock entitlement and enable hotspot
      2. Check granted permissions of android.uid.networkstack
Fix: 366816004
Change-Id: Iee060f0225d23c62d836f0211c63b649e539f77b
2024-10-28 17:31:22 +08:00
bpf Merge "KernelUtils.h: add 6.12 to isLtsKernel()." into main 2024-09-27 22:46:19 +00:00
clatd [DON'T BLOCK] Test ownership migration rules 2024-01-31 12:34:50 +00:00
common [Thread][API] add API for ephemeral key. 2024-09-29 02:35:44 +00:00
framework Merge "Fix comment" into main 2024-09-12 15:51:40 +00:00
framework-t [Thread][API] add API for ephemeral key. 2024-09-29 02:35:44 +00:00
nearby Add persist.bluetooth.finder.supported property 2024-09-23 09:41:36 +00:00
networksecurity Migrate CT namespace to "network_security" 2024-09-16 12:12:14 +00:00
remoteauth Merge "Use LazyLock rather than lazy_static macro." into main 2024-09-11 17:46:22 +00:00
service bpf: merge block.c into netd.c 2024-09-19 00:40:53 +00:00
service-t Fix deadlock from outside Perfetto mutex 2024-09-18 18:41:11 +00:00
staticlibs Support get multiple ipv4/ipv6 addresses in apf_utils 2024-09-27 06:55:54 +00:00
tests Merge "Fix the test flake in testRemoveServicesAfterSocketDestroyed" into main 2024-09-27 06:31:38 +00:00
Tethering Use MANAGE_USERS permission to check for admin user 2024-10-28 17:31:22 +08:00
thread [Thread] Add unit test for ephemeral key API 2024-09-29 02:35:51 +00:00
tools Update aospify_device for T device 2024-05-22 13:10:19 +09:00
.gitignore Ignores vim temporary files from git 2023-12-23 17:45:32 +08:00
OWNERS Move the owner of xfrm netlink source code to its own directory. 2023-11-22 18:50:00 +09:00
OWNERS_core_networking Mark Martin as LAST_RESORT_SUGGESTION 2024-09-26 22:29:48 +00:00
OWNERS_core_networking_xts Add "no-op refactors" reviews for delegated reviewers 2024-06-20 06:29:09 +00:00
PREUPLOAD.cfg Enable builtin formatting hooks 2024-07-17 11:51:08 +09:00
TEST_MAPPING Add CtsHostsideNetworkTests to postsubmit. 2024-09-09 20:03:03 +09:00