We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is your feature request related to a problem? Please describe.
Problem: Can't test non-primary user (=userId=0) case on Android
install-apks only pushes data to /sdcard, but adb shell only supports /sdcard for primary user.
install-apks
/sdcard
adb shell
Describe the solution you'd like
Take extra parameter --user-id, so data can be pushed to per-user storage (/data/media/${user_id}/)
--user-id
/data/media/${user_id}/
Additional context
You can reproduce the issue by creating additional user, and try test app installation there.
The text was updated successfully, but these errors were encountered:
Let me share possible workaround for the record.
In the Android shell (root + remount)
cp -R /sdcard/Android/data/${pkg_name} /data/media/$(am get-current-user)/Android/data/ chmod -R 777 /data/media/$(am get-current-user)/Android/data/${pkg_name}
Sorry, something went wrong.
No branches or pull requests
Is your feature request related to a problem? Please describe.
Problem: Can't test non-primary user (=userId=0) case on Android
install-apks
only pushes data to/sdcard
, butadb shell
only supports/sdcard
for primary user.Describe the solution you'd like
Take extra parameter
--user-id
, so data can be pushed to per-user storage (/data/media/${user_id}/
)Additional context
You can reproduce the issue by creating additional user, and try test app installation there.
The text was updated successfully, but these errors were encountered: