Brown - Getting Ripper to Work
Update: Since I seem to be updating the script a bit, I'll just leave a link to the file here: install.sh. If you need it, just download it from there from now on. Script is currently working with TippyTipper and HelloAUT, testing the others.
Hey guys, I magically got the ripper to work for TippyTipper so I'll detail my steps a little bit.
1. On a brand new virtual machine, install openjdk-6-jdk, set the JAVA_HOME, install ant, subversion, python, and checkout the guitar project. The commands are in the attached install.sh script. Keep in mind if you run the install.sh it resets the JAVA_HOME upon exit, so just set it again afterwards or comment out or type in the commands alone.
2. Build adr using ant adr.dist in the guitar/ folder.
3. copy the contents of the android folder from android.zip (from Brian Robbins) into adr-aut folder in guitar/dist/guitar/. Merge all and Overwrite all.
4. In a terminal go to guitar/dist/guitar/adr-aut, and type in ./setup-tools.sh
5. Same location type in ./build.sh TippyTipper
6. Same location type in ./run.sh TippyTipper
This worked for me, hopefully we can start replicating this soon.
TODO:
-Figure out why the test cases are timing out on the initial steps.
Hey guys, I magically got the ripper to work for TippyTipper so I'll detail my steps a little bit.
1. On a brand new virtual machine, install openjdk-6-jdk, set the JAVA_HOME, install ant, subversion, python, and checkout the guitar project. The commands are in the attached install.sh script. Keep in mind if you run the install.sh it resets the JAVA_HOME upon exit, so just set it again afterwards or comment out or type in the commands alone.
2. Build adr using ant adr.dist in the guitar/ folder.
3. copy the contents of the android folder from android.zip (from Brian Robbins) into adr-aut folder in guitar/dist/guitar/. Merge all and Overwrite all.
4. In a terminal go to guitar/dist/guitar/adr-aut, and type in ./setup-tools.sh
5. Same location type in ./build.sh TippyTipper
6. Same location type in ./run.sh TippyTipper
This worked for me, hopefully we can start replicating this soon.
TODO:
-Figure out why the test cases are timing out on the initial steps.
Leave a comment
Here's what I did. Got rid of my old vm, then did this
rm -rf guitar
svn co https://guitar.svn.sourceforge.net/svnroot/guitar/trunk guitar
cd guitar
ant adr.dist
then merged and replaced the stuff emailed by Bryan to cd /home/asif/guitar/dist/guitar/adr-aut/
then did
cd /home/asif/guitar/dist/guitar/adr-aut/
then did
./setup-tools.sh
./build.sh TippyTipper
./run.sh TippyTipper
also tried in this order
./build.sh TippyTipper
./setup-tools.sh
./run.sh TippyTipper
rm -rf guitar
svn co https://guitar.svn.sourceforge.net/svnroot/guitar/trunk guitar
cd guitar
ant adr.dist
then merged and replaced the stuff emailed by Bryan to cd /home/asif/guitar/dist/guitar/adr-aut/
then did
cd /home/asif/guitar/dist/guitar/adr-aut/
then did
./setup-tools.sh
./build.sh TippyTipper
./run.sh TippyTipper
also tried in this order
./build.sh TippyTipper
./setup-tools.sh
./run.sh TippyTipper
on 2012-02-17 05:53 *
By matthew.green
So at this point multiple problems have come to surface since my successful build. When I run my setup-tools.sh, when it's completed, it deletes all the files in the folder. There is an explicit command to do this on line 46 "rm -rf *" That's not normal
Brown have you seen this before?
I'm gonna redo your step and comment out the remove command.
Brown have you seen this before?
I'm gonna redo your step and comment out the remove command.
on 2012-02-17 06:14 *
By matthew.green
Asif: When you run ./run.sh TippyTipper does the emulator even start up? If so does it load the TippyTipper App?
on 2012-02-18 01:37 *
By matthew.green
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/
The install.sh script here is updated. This new script handles all of the calls including downloading the zip file of the complex inputs that Brian provided us with. Of note, I changed the setup-tools.sh and run.sh to include absolute paths to guitar since in setup-tools.sh it would occassionally be in a different directory than what run.sh was expecting guitar to be in. So please use the script instead of using the copy from Brian.
Usage =>
1. Download to home directory
2. chmod +x install.sh
3. ./install.sh TippyTipper
You should be able to change TippyTipper to one of the other apps but I haven't tried any others at this point.
Usage =>
1. Download to home directory
2. chmod +x install.sh
3. ./install.sh TippyTipper
You should be able to change TippyTipper to one of the other apps but I haven't tried any others at this point.
on 2012-02-18 02:41 *
By matthew.green
Asif, please move to the chat
file:b-iTKUwN4r4A1nacwqjQWU
install.sh file updated again, including the ability to build and run individual projects without having to rerun setup-tools and initial stuff.
install.sh file updated again, including the ability to build and run individual projects without having to rerun setup-tools and initial stuff.
Ok I installed a new vm, and all I did is ran the install.sh script from my homefolder.
So after making the script executable I ran ./install.sh -isb TippyTipper.
And as usual got stuck on getRootWindows.
Last few lines of output are as followed. And this text file has all the output text I could copy from the buffer http://dl.dropbox.com/u/39234642/output.txt
294 KB/s (105857 bytes in 0.350s)
The emulator is booting.
We will retry.
The emulator is booting.
We will retry.
==> Install AUT: adr-aut/TippyTipper/bin/no_fault/aut-resigned.apk
254 KB/s (240949 bytes in 0.924s)
About to rip the application
./adr-ripper.sh -cp . -c net.mandaria.tippytipper.activities.TippyTipper -pt 10737 -g ./Demo/Demo.GUI -l ./Demo/Demo.log
[main] ERROR configuration.xml not found!!!
[main] ERROR No configuration file. Using an empty one...
==> Waiting until the emulator prepared
==> Starting AUT
==> getRootWindows
So after making the script executable I ran ./install.sh -isb TippyTipper.
And as usual got stuck on getRootWindows.
Last few lines of output are as followed. And this text file has all the output text I could copy from the buffer http://dl.dropbox.com/u/39234642/output.txt
294 KB/s (105857 bytes in 0.350s)
The emulator is booting.
We will retry.
- daemon not running. starting it now on port 5037 *
- daemon started successfully *
The emulator is booting.
We will retry.
- daemon not running. starting it now on port 5037 *
- daemon started successfully *
==> Install AUT: adr-aut/TippyTipper/bin/no_fault/aut-resigned.apk
254 KB/s (240949 bytes in 0.924s)
About to rip the application
./adr-ripper.sh -cp . -c net.mandaria.tippytipper.activities.TippyTipper -pt 10737 -g ./Demo/Demo.GUI -l ./Demo/Demo.log
[main] ERROR configuration.xml not found!!!
[main] ERROR No configuration file. Using an empty one...
==> Waiting until the emulator prepared
==> Starting AUT
==> getRootWindows