medium · M8 · MASVS-PLATFORM-1 · PTKD-CFG-SHAREDUID
Deprecated android:sharedUserId in use
sharedUserId makes the app share its Linux UID (and therefore private data and permissions) with other same-signer apps. It is deprecated and a lateral-movement risk.
How it is exploited
sharedUserId merges your app's Linux UID with any app signed by the same key that declares the same value. One compromised or careless app in the set reads every other app's private storage.
Why it matters
Your app's sandbox is only as strong as the weakest app sharing the UID; the mechanism is deprecated for exactly this reason.
How to fix it
- Plan the migration off sharedUserId (Android 10+ supports untangling with sharedUserMaxSdkVersion).
- Move cross-app data flows to a ContentProvider or bound service with signature permissions.
Does your app have this?
PTKD checks your build or your source project for PTKD-CFG-SHAREDUID and every other check in this knowledge base.
Scan your appReferences
Related checks (M8)
- JavaScript obfuscation in the build
- Export compliance (ITSAppUsesNonExemptEncryption) not declared
- HealthKit app that also ships an ads SDK
- Hardcoded unlock or promo code
- Purchases SDK configured with an empty or test key
- Purchase screen falls back to made-up prices or 'coming soon' text
- False-urgency copy on a purchase screen
- Hardcoded price on a purchase screen