1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmz007 6d24f2138b
Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56)
3 years ago
..
res Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
src/com/android/cts/devicepolicy/accountcheck/tester Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
Android.bp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
AndroidManifest.xml Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
README.txt Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago

README.txt

This package helps creating accounts with DPM.ACCOUNT_FEATURE_DEVICE_OR_PROFILE_OWNER_ALLOWED / DISALLOWED.


Note: AccountCheckHostSideTest should pass even with a pre-existing ALLOWED account.  Meaning, even
after you followed the below steps to add an ALLOWED account, AccountCheckHostSideTest should
still pass.

- Build
$ mmma -j cts/hostsidetests/devicepolicy/app/AccountCheck/Tester/

- Install
$ adb install  -r -g  ${ANDROID_PRODUCT_OUT}/data/app/CtsAccountCheckAuthAppTester/CtsAccountCheckAuthAppTester.apk


- Add an account with DEVICE_OR_PROFILE_OWNER_ALLOWED.
adb shell am startservice -a add_account \
    --esa features android.account.DEVICE_OR_PROFILE_OWNER_ALLOWED \
    com.android.cts.devicepolicy.accountcheck.tester/.TestAuthenticator

- Add an account with DEVICE_OR_PROFILE_OWNER_DISALLOWED.
adb shell am startservice -a add_account \
    --esa features android.account.DEVICE_OR_PROFILE_OWNER_DISALLOWED \
    com.android.cts.devicepolicy.accountcheck.tester/.TestAuthenticator

- Verify
$ dumpsys-account
User UserInfo{0:Owner:13}:
  Accounts: 1
    Account {name=8894956487610:android.account.DEVICE_OR_PROFILE_OWNER_ALLOWED, type=com.android.cts.devicepolicy.authcheck.tester}