Skip to content

Commit

Permalink
More robust ADB connection
Browse files Browse the repository at this point in the history
  • Loading branch information
ikalkov authored Aug 28, 2016
1 parent 27d5018 commit 0ac6c19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/gapps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ wait_for_adb()
while true; do
sleep 1
adb kill-server > /dev/null
sleep 1
adb connect $ADB_ADDRESS > /dev/null
sleep 1
if is_booted; then
break
fi
Expand Down Expand Up @@ -149,7 +151,7 @@ install_package()
wait_for_adb
reboot_device

echo " * Waiting for ADB (errors are OK)..."
echo " * Waiting for ADB..."
wait_for_adb

echo " * Applying correct permissions..."
Expand Down

0 comments on commit 0ac6c19

Please sign in to comment.