Permalink
Browse files

fixed my own breaking of generateGAUTH.sh

  • Loading branch information...
1 parent 265ac1b commit 53cd1c637b53f6ed26060fc77d9f4dfc90b549cb @kosborn committed Oct 23, 2012
Showing with 13 additions and 6 deletions.
  1. +2 −0 functions.sh
  2. +1 −6 generateGAUTH.sh
  3. +10 −0 testDynLoad.sh
View
@@ -28,6 +28,8 @@ RTMP=/data/local/tmp/
# Let's just make sure ADB and busybox (or whatever) are available...
+echo "Using: ${adb}"
+
if $adb version >/dev/null 2>/dev/null; then
# good to go
View
@@ -17,11 +17,6 @@ else
DBPath=$1
fi
-PASS=$(sqlite3 $DBPath "select password from accounts where type='com.google' limit 1")
+PASS=$(sqlite3 $DBPath "select password from accounts where type='com.google' and _id=5 limit 1")
-if [ $PASS -eq '' ]; then
curl --data "accountType=&Email=&has_permission=1&Token=${PASS}&service=weblogin%3Acontinue%3Dhttps%253A//www.google.com/dashboard/&source=&androidId=&app=&client_sig=&device_country=&operatorCountry=&lang=&RefreshServices=" -k "https://android.clients.google.com/auth"
-
-else
- echo '$PASS does not appear to be set. This could because accounts.db does not exist, or the schema does not match this script.'
-fi
View
@@ -9,6 +9,16 @@
# If adb is not in your $PATH, configure it with the line below
#alias adb=/home/usr/bin/adb
+if [ $tryStaticADB -eq 0 ]; then
+ # assume it's in $PATH...
+ adb=$(which adb)
+else
+ adbTMP=$PWD/includes/adb-arm-static
+ su -c "cp ${adbTMP} /data/local/tmp/adb-arm-static"
+ adb=/data/local/tmp/adb-arm-static
+ su -c "chmod 777 ${adb}"
+fi
+
# If you don't need busybox (i.e. laptop), set this to 1
IGNOREBUSYBOX=0

0 comments on commit 53cd1c6

Please sign in to comment.