From 97345e62a9cf32f6c53636b4c65eca70b0bb30b8 Mon Sep 17 00:00:00 2001 From: Nabil Hachicha Date: Wed, 3 Feb 2016 19:00:21 +0000 Subject: [PATCH] unlocking device after the app is installed --- scripts/test.sh | 1 - tests/react-test-app/run-android.sh | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index 5be21733..d86cffe2 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -112,7 +112,6 @@ case "$TARGET" in npm install open_chrome react-native start & - unlock_device ./run-android.sh # Despite the docs claiming -c to work, it doesn't, so `-T 1` alleviates that. diff --git a/tests/react-test-app/run-android.sh b/tests/react-test-app/run-android.sh index 4f61ac73..122e69a4 100755 --- a/tests/react-test-app/run-android.sh +++ b/tests/react-test-app/run-android.sh @@ -10,7 +10,9 @@ npm install realm realm-tests cp ../../src/object-store/parser/queryTests.json node_modules/realm-tests/query-tests.json +echo "Reversing port for physical device" adb reverse tcp:8081 tcp:8081 adb forward tcp:8082 tcp:8082 - react-native run-android +echo "Unlocking device" +adb shell input keyevent 82