2 ms·
(disclosure: I co-develop apps in the android sec/privacy space) Every device branded as running "Android" must pass Google's Compatibility Test Suite (CTS) [0
by ignoramous 5y ago
(disclosure: I co-develop apps in the android sec/privacy space)
Every device branded as running "Android" must pass Google's Compatibility Test Suite (CTS) [0]. One look at the tests suggest that many of the adb commands Universal Android Debloater (UAD) [1] relies on are infact part of CTS:
- pm uninstall: https://cs.android.com/android/platform/superproject/+/master:cts/tests/tests/content/src/android/content/pm/cts/PackageManagerTest.java;drc=e2f88805cab390f89c1805e35ed2ba5f444430b7;l=1465 https://cs.android.com/android/platform/superproject/+/maste...
- pm clear: https://cs.android.com/android/platform/superproject/+/master:cts/tests/tests/role/src/android/app/role/cts/RoleManagerTest.java;drc=512939f36d4b60f6ef3f2ebfd22d3d77fd712417;l=408 https://cs.android.com/android/platform/superproject/+/maste...
- am force-stop: https://cs.android.com/android/platform/superproject/+/master:cts/tests/tests/os/src/android/os/cts/AutoRevokeTest.kt;drc=4ebe4f93bd823ef7b56747937d639c38dc8b75fc;l=407 https://cs.android.com/android/platform/superproject/+/maste...
and so on...
[0] https://source.android.com/compatibility/cts https://source.android.com/compatibility/cts
[1] adb commands used by UAD: https://github.com/0x192/universal-android-debloater/blob/28647f38cbf9497af60a4d31eb0c230aeeae294d/src/core/sync.rs#L119-L229 https://github.com/0x192/universal-android-debloater/blob/28...
- kiallmacinnes 5y agoI don't see anything in there that requires `adb uninstall com.sony.foo` to work, for example? The command should generally work, sure, but that doesn't appear to require the command should work for all stock package names.
- ignoramous 5y agoIf you are an OEM, you may violate the spirit of the CTS at your own expense.