[General Topics] S0AndS0:
Who Likes Java and want's it easy on ARM?

So after some many days (weeks that turned to months) there is now hope for those that want to install Java 7 ARM (soft float) to their Android devices running Linux and Raspberry Pi without all the hassle of doing the "manual install of to many commands"... instead I've taken the directions for installing Java from source and translated it into a "one click" script that can be run with one command and two yes answers to the prompts that will prompt you "do you want to continue"

This is still a ruff draft but should be functional

https://docs.google.com/document/d/1JaIGZHtiCJNYwB0sUiwSCsXyfDqYlNvw2Ho4rh0opSo/edit?usp=sharing

just copy past into a blank document and run with ssh or in a terminal window and it'll ask you two times to continue; just hit "y" and enter if you want to test it and start running or compiling Java on your ARM hardware without all the hassle of learning how to install it the hard way :D

I'll be adding some more fun and functional updates to the script so that we can try previous versions and the latest one Java 8; which supports hard float (which seems to be a winner in many of the communities that wish to run pre-compiled Java apps and scripts that where originally found only on PC versions of Linux and Windows), when I'm done testing some of the functionality and compatibility of Java 7. And there will be automatic switches or directions included for easy switching between installed versions of Java so we can all test which works best for our specific devices so that we can get as many devices ready for developing and testing the limits of what can be done with Java on ARM.

Currently I'll be testing Maptools with this, then I'll be re-testing jMonkey, then I'll be testing Casual, then I'll be adding other fun things such as Blinder and other user/reader requested things that are related to porting things to ARM and Linux Android as a whole :cool:

Furthermore I'm also re-opening my work in Pen-Testing and those that have requested info on that will be receiving emails/PM's with my progress and testing results of what can be done for that field. This is for the security professionals that don't want to lug around a laptop or set up a remote way of running some of the network security testing without something that attracts a whole lot of attention from those that are being investigated. But dew to some of the missuses this is on a more privet setting for now... that is until I've got it all easy for people to just install and play with to test their own home security.

Update 06252013- so I've tested the install script for Java 7 ARM and it has some weird '?'s that come in threes... kinda odd, and the download doesn't work unless you go to the Java web address and accept their licens agreement first, then the download part of the script will work, I'll be adding instructions within the script to avoid anyone having a bad download error from coming up.

I've also documented much of adding pentesting stuff and am going to beguin testing when I get my WiFi router reset to "punching bag" settings :D

Update 06262012- Still writing some replies to those that have contacted me off thread. And testing *All* of my recent script edits... already seeing some strangeness but nothing broken so far...a few hours latter; found some broken things in both scripts, turns out the place holder in google docs for comments get pasted over; fixed everything that I found causing errors, now testing Java and Crazyflie installer scripts again :D

Update 06272013- The Java installer is still on the "operation table" because the download from the main site requires that you agree to their licencing agreement. I'll be looking/digging though the archive download mirrors for one that we all can directly download from. Until then readers and script testers can still use the "parts" of the script if you (the reader) puts the download from Java (the tar.gz file) into "/usr/lib/vm" after the script has run though the "first part" (when it unpackes itself into $HOME/Java7ARM/") then hit "n" or "no" to exit without running auto mode and run though a modified auto install... I'll post more details about this after work today, maybe, and get to rewriting it too.

On a happier/exciting note; I've been contacted by someone though the Maptools forums who has much more experience with making user interface control for Android (buttons) and their willing to help us all with making the "copainion to linux" app a reality. I still have much in the way of work to do down this "branch" of development. However, I've been compiling all the features that other users want and my own expectations of what this app should be doing (it's going to be mind blowing for other devs that want to run free and mobile) and I'll be shearing the "outline" (with pictures) of what this app will likely look like so readers know what to be looking forward to downloading from the app store :D

On this tangent; I'm still looking for testers and a few more designers to join this dev "A Team" I'm building to fully explore all the things that we can do with mobile Linux (about 1 to 3 more individuals) and if you (the reader) wishes to test or help code this new Android App and get in on the "ground floor" then feel free to contact me through any of the many methods available.

~The first things that are on my list of things to build into this app are; a package installer, repo list modifier, and RDP modified to display specific windows or desktops at the correct resolution for each device. These features will make apt-get commands though the Andoid GUI and likely have similarities to "synaptic package manager" in how it "feels" to the user; meaning it's going to be way friendlier for "new" Linux users to set up their personal mobile dev platform with button pushes instead of command line commands. And the modified RDP should get us faster screen response times and better use of each different Android device's screen resolution.

~~ future updates to this app will also include video and audio support. I've been looking into this and now think it shouldn't be to difficult to get working...

Update 06272013 8am myTime- I found out that I've the day off from work today :D sooooo I'll be online all day for support with anything having to do with my work here on XDA and Maptools so feel free to hit me up readers if you got questions or specific issues and I'll do my best to help wile I'm running tests and re-writes of my scripts.

Update (a little wile latter) muuuwaahaahaa.... stackoverflow for the win, I think I'll be able to do the Java install *Fully* automatic now... edits and tests and progress report coming soon to a thread near you ;D

Update 10pm myTime- last one for tonight anywhere for me. I've some responces pending all over the place but I've work so sleep is the next thing for me after this update...

So stack overflow has a "posible" solution but is going to require some very clever re-writing befor it'll work; discoverd this to be very true for Java 7 not long after my last update. So I wrote a new one start to finish, debuged it, and tested it, and debuged it (a few times on each of the last ones) and now think it may very well be "near" done (my network died a few times so I'll have to test it again to be sure it's truly done. Be back tomorrow at somepoint I'm sure :cool:

Edit: Link to new Maptools and Java 7 install script below

https://docs.google.com/document/d/1W0Hb9B_MNs5CAFxoL_IaCVnmN1BWVvokBYViYlwBXOU/edit

Update 07012013- been doing lots of work at my job, which is nice and all... Also been doing lots of test runs of the above script and massive debugging; most of the parts work just fine, just have a few more errors to code around and it should work :D I'll be at it all day tomorrow so it had better be done ;)

Update 07032013- I've re-installed Linux to my other device (Epic 4G) trying out Lenny; this should help with me building more compatible scripts and possibly edits to the guide as well. A few hours later... Off from work and getting down on more debugging of installers.

Update 07042013- ~~~~~~~~~~~~~

Big Note About the scripts that I'm writing for ARM

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

~ So Google docs introduces lots of strange characters into the text that you can't see easily; these "strange characters" are then being read and interpreted and are essentially corrupting the script and what it's supposed to do; causing all sorts of errors for users and myself.

~ How do we solve this?

~ I'll be uploading ".txt" formatted versions of All the scripts that I currently have public on Google docs and linking them into this post here and "the guide" as well so that anyone with a rooted Android phone or Raspberry Pi may then download a non-corrupt version of the following scripts with two different methods...

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

* ~Corrupt ~* CrazyFlieInstallerARM * ~Corrupt ~*

* ~Corrupt ~* JavaSourceInstallARM * ~Corrupt ~*

* ~Corrupt ~* jMonkeyInstallerARM * ~Corrupt ~*

* ~Corrupt ~* MaptoolsInstallerARM * ~Corrupt ~*

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

~~~~~~~~~Method 1~~~~~~~~~~

use the above "corrupt" versions from Google docs on a PC

- mouse over to "File"

- mouse down to "Download as >"

- click on "Plain Text (.txt)"

- download and then transfer to your device

- on the Android device --

-- rename the script from " *.txt " to " *.sh " with a file browser

-- open a terminal window and type "deb"

-- log in as your user that isn't root but has sudo permissions

-- use the " ls " command to navigate to the script file was renamed

-- example : " ls /sdcard/Adev/Scripts/ "

-- when you've found the script that you want to run then use " sh "

-- example : " sh /sdcard/Adev/Scrips/MaptoolsInstallerARM.sh "

--- if you see "???" before and after lines on the running script

--- then it's got something funkiness in it and you should try "Method 2"

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

~~~~~~~~~Method 2~~~~~~~~~~

use the following links and just copy past into a new "blank file"

CrazyFlieInstallerARM

https://docs.google.com/file/d/0B46yVbeWkbYKQkxnZkJFUUJxc0k/edit?usp=sharing

JavaSourceInstallARM

https://docs.google.com/file/d/0B46yVbeWkbYKTFNsRU00Z1BNeEE/edit?usp=sharing

jMonkeyInstallerARM

https://docs.google.com/file/d/0B46yVbeWkbYKN3lUemVITldudGs/edit?usp=sharing

MaptoolsInstallerARM

https://docs.google.com/file/d/0B46yVbeWkbYKWk1MeU0yNXZZbnM/edit?usp=sharing

-- or --

use the links with a "wget" command in a terminal window (Android or Linux "wget" works ;) )

cd /sdcard/ADev/Scripts

wget -c https://docs.google.com/file/d/0B46yVbeWkbYKQkxnZkJFUUJxc0k/edit?usp=sharing

Hope this helps with running these scripts without errors leaking in and messing with what we're all trying to do here :D

Update 07052013- I've some work to do today but I'll be around with an update for the maptools install script... Which is working much better ;)

Update 07062013- the ppa that I've been trying to use seems to be in a many year battle with Oracle. There's quite a bit of "it's up" and "it's down again" for months on end. I'll be looking at the "install from source" scripts I've been working on and figure out the "install" portion wile I'm camping this weekend :) get that figured out and just have people download Java with an Android web browser; then script in a "find to install"...be back in a few days...

Update 07162013- good news on the Java install script; had to majorly re-write and debug but it now produces Java related errors :) which I'm calling a good thing :) because that means I've only a little bit more to debug... Link to new script will be here shortly and screen shots when it runs completely :D