1
0
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:
Ning Chen 2023-12-21 05:29:18 -08:00 committed by GitHub
parent 01b4b28ff8
commit 2fc3ddc34d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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