[AT&T Samsung Galaxy S 4 Android Development] S0AndS0:
Casual on ARM (Raspberry Pi & Android running Linux)

Hello all,

I ran across Casual a wile back and saw that it was confirmed to work on Raspberry Pi. However, I believe we can go one step further in having this all run easy... so I wrote a script to install Java's JDK (version 7u21 soft float for ARM Linux) from source, link just bellow. Which should allow for easy install to ARM Linux (such as one of your rooted phones that has USB host mode)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

https://docs.google.com/document/d/1uLeoparEcGvfcfrkakSVmOEdVNcOxZ0RXd9D-_uWc6Q/edit?usp=sharing

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Steps to use to run the script successfully

1. achieve root on an Android device

2. Download and install Linux using Debian Kit (an App from the Android Marketplace) use the following link to step you through the process of using Debian Kit to install Linux or use the original developer's "read me" that comes with it.

http://xdaforums.com/showpost.php?p=40434455&postcount=2

3. Download Java ARM soft float JDK from the following link. You'll want to download it to your SD card's "download" folder because that's where the install script will look for it

http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

4. Use the script I wrote to then copy, extract, and install Java's JDK from "tar.gz" by coping and pasting it into a "blank file" on your device's sdcard; usually I put such things in the following directory

/sdcard/ADev/Scripts/JDK_ARM_InstallScript.sh

5. then log into the GUI side of Linux on your Android running Linux with one of the following links

http://xdaforums.com/showpost.php?p=40435001&postcount=6

and or

http://xdaforums.com/showpost.php?p=40435199&postcount=9

6. within the GUI connection on Linux (you'll want to be loged in as a "normal" user with sudo permissions) run the following command in a Linux terminal window to install Java's JDK with the script from step 4

sh /sdcard/ADev/Scripts/JDK_ARM_InstallScript.sh

7. the script will prompt for the sudo password; this is for the apt-get update and install commands as well as all the other sudo permission related things that it has to get done for you, so input it and hit "y" and "enter" to say yes to the script prompts or hit "n" and "enter" to abort the script at any prompt.

Note you can hit "Y" and "enter" and then abort after the script has unpacked itself with "N" and "enter" and then run "Script_Runner" to get back to the automated run process at a latter time; such as if you wish to make edits and mods to the components for your individual needs.

8. download and unpack the Casual pre-reqs and install them using the documentation already available and test USB to USB connection between two android devices and see if the one running Linux recognizes the plugged in device...

I'll be making mods and edits to the installer script so it doesn't produce any errors when running that are fatal and eventually add driver downloads and such into the process so that all one has to do is plug one device into another and have a happy hacking experience after a few seconds for the device to become "recognized" and then "connected" and then "rooted" or whatever you have in mind with Casual :D

Edit: [MENTION=3682533]AdamOutler[/MENTION];

If you would be so kind as to provide a list of links or features you wish to have added to the shell script I wrote; I'll be sure to add them in and update it so everyone may have an easy time :D

Oh and feel free to hit me up through any of the social forums I frequent.