mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-02 06:32:19 +02:00
Add adb root for service deployment (#1550)
Otherwise ``` $ adb shell /data/local/tmp/birthday_server thread 'main' panicked at birthday_service/src/server.rs:16:10: Failed to register service: PERMISSION_DENIED ```
This commit is contained in:
parent
01b4b28ff8
commit
2fc3ddc34d
@ -56,7 +56,6 @@ source build/envsetup.sh
|
||||
lunch aosp_cf_x86_64_phone-userdebug
|
||||
#acloud reconnect --autoconnect adb
|
||||
|
||||
adb root
|
||||
adb shell rm -rf '/data/local/tmp/*'
|
||||
|
||||
run_example <<EOF
|
||||
@ -80,6 +79,7 @@ function birthday_server() {
|
||||
# ANCHOR: birthday_server
|
||||
m birthday_server
|
||||
adb push "$ANDROID_PRODUCT_OUT/system/bin/birthday_server" /data/local/tmp
|
||||
adb root
|
||||
adb shell /data/local/tmp/birthday_server
|
||||
# ANCHOR_END: birthday_server
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user