mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-04 15:41:57 +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
|
lunch aosp_cf_x86_64_phone-userdebug
|
||||||
#acloud reconnect --autoconnect adb
|
#acloud reconnect --autoconnect adb
|
||||||
|
|
||||||
adb root
|
|
||||||
adb shell rm -rf '/data/local/tmp/*'
|
adb shell rm -rf '/data/local/tmp/*'
|
||||||
|
|
||||||
run_example <<EOF
|
run_example <<EOF
|
||||||
@ -80,6 +79,7 @@ function birthday_server() {
|
|||||||
# ANCHOR: birthday_server
|
# ANCHOR: birthday_server
|
||||||
m birthday_server
|
m birthday_server
|
||||||
adb push "$ANDROID_PRODUCT_OUT/system/bin/birthday_server" /data/local/tmp
|
adb push "$ANDROID_PRODUCT_OUT/system/bin/birthday_server" /data/local/tmp
|
||||||
|
adb root
|
||||||
adb shell /data/local/tmp/birthday_server
|
adb shell /data/local/tmp/birthday_server
|
||||||
# ANCHOR_END: birthday_server
|
# ANCHOR_END: birthday_server
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user