From e9b49e122f146b28b711f374d8cedc15b57cf59a Mon Sep 17 00:00:00 2001 From: Gioacchino Mazzurco Date: Mon, 12 Mar 2018 17:06:01 +0100 Subject: [PATCH] Update Android quirks documentation --- README-Android.asciidoc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README-Android.asciidoc b/README-Android.asciidoc index da4149cda..40efe9c12 100644 --- a/README-Android.asciidoc +++ b/README-Android.asciidoc @@ -159,9 +159,14 @@ export BACKUP_DIR="org.retroshare.android.qml_app.backup" adb root +## Launch the app to make sure the parent directory exists and has proper owner +adb shell monkey -p org.retroshare.android.qml_app -c android.intent.category.LAUNCHER 1 +sleep 1s + adb shell am force-stop org.retroshare.android.qml_app sleep 1s + APP_OWNER="$(adb shell busybox ls -lnd ${ORIG_DIR} | awk '{print $3":"$4}')" adb shell rm -rf ${ORIG_DIR}/files adb push ${BACKUP_DIR}/files/ ${ORIG_DIR}/files/