Skip to content

Commit

Permalink
Try to fix issue where our transport doesn't get registered in emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
grote committed Jun 6, 2024
1 parent 0e224b1 commit 22c66fc
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,18 @@
# SPDX-License-Identifier: Apache-2.0
#

adb root
sleep 5
adb remount
echo "Disable auto-restore"
adb shell bmgr autorestore false

echo "Installing Seedvault app..."
adb shell mkdir -p /system/priv-app/Seedvault
adb push app/build/outputs/apk/release/app-release.apk /system/priv-app/Seedvault/Seedvault.apk

echo "Installing Seedvault permissions..."
adb push permissions_com.stevesoltys.seedvault.xml /system/etc/permissions/privapp-permissions-seedvault.xml
adb push allowlist_com.stevesoltys.seedvault.xml /system/etc/sysconfig/allowlist-seedvault.xml
#echo "Install Android Test app"
#adb install app/build/outputs/apk/release/app-release.apk
./gradlew --stacktrace :app:installDebugAndroidTest
sleep 10

echo "Setting Seedvault transport..."
sleep 10
adb shell bmgr transport com.stevesoltys.seedvault.transport.ConfigurableBackupTransport
adb shell bmgr transport com.stevesoltys.seedvault.transport.ConfigurableBackupTransport | grep "Unknown transport" && exit 1

D2D_BACKUP_TEST=$1

Expand Down

0 comments on commit 22c66fc

Please sign in to comment.