android_packages_modules_Co.../Tethering
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Junyu Lai a80fd3deba try-catch when calling createContextAsUser
There is no safe way to invoke this method correctly since the
package might not be installed for certain user type by OEM.

Thus, improve error handling and logging into WTF counter metrics.

Test: Manual:
  1. Use internal main branch
  2. Modify xml under vendor/google/data/etc/sysconfig to
     configure tethering only installs on the SYSTEM user
  3. Mock the device as entitlement required (ag/29664886)
  4. Create a secondary user which has the permission to
     enable tethering (go/hsum)
  5. adb shell pm list packages --user 10 | grep tether
  6. m statsd_testdrive && statsd_testdrive -e 979
  7. Enable tethering
Test: atest TetheringTests:EntitlementManagerTest
Bug: 382628161
Change-Id: I233cad672e41d2b4687e53e61b93dcea9eb07817
2025-01-22 11:22:59 +08:00
..
apex Conditionally include VCN in Tethering module 2024-12-09 12:04:12 -08:00
apishim Simplify tethering active session counting 2024-10-03 16:04:56 +08:00
common/TetheringLib Merge "Remove WRITE_SETTINGS permission from Tethering APIs" into main 2024-12-18 18:42:49 -08:00
jni remove dead register_com_android_networkstack_tethering_BpfUtils 2023-11-07 17:23:11 -08:00
res Import translations. DO NOT MERGE ANYWHERE 2024-08-06 15:20:29 -07:00
src try-catch when calling createContextAsUser 2025-01-22 11:22:59 +08:00
tests try-catch when calling createContextAsUser 2025-01-22 11:22:59 +08:00
Android.bp try-catch when calling createContextAsUser 2025-01-22 11:22:59 +08:00
AndroidManifest.xml Use MANAGE_USERS permission to check for admin user 2024-10-28 17:31:22 +08:00
AndroidManifestBase.xml
jarjar-rules.txt Fix jarjar rules for tethering apk 2022-05-31 15:20:52 +08:00
lint-baseline.xml Baseline NewApi issues 2024-01-25 02:41:58 +00:00
OWNERS
proguard.flags SyncSM10: explicitly keep TetheringUtils jni methods 2023-09-14 14:39:25 +00:00