CASUAL Fastboot support [alpha] - Nexus 7 Android Development

Hi guys, This simple reboot test will help out quality control for future hacks.
Introduction
I've been working on CASUAL for about a year now. It stands for Cross-Platform ADB Scripting Universal Android Loader. Its purpose is to be a Windows/Linux/Mac scripting language for ADB.... until now.
Today I added fastboot support into the repository located here: http://android-casual.googlecode.com
Purpose
I would like help verifying this works on your operating system and work out any kinks which may occur. This should one-click reboot your device from adb into fastboot, then back into adb.
Instructions
ensure you have java up-to-date http://www.java.com/en/download/installed.jsp
Download CASUAL Revision 161 Build 2,744 from here: http://d-h.st/RH9
Double click the downloaded-file or right-click-run the CASUAL file
Connect your device and observe that your device is "connected" in CASUAL.
Click the Do It button
Report back with your Operating system and that your device rebooted into fastboot, then back into Android.
note to Linux users: You need to set up your UDEV rules for permissions.
note to Windows users: Ensure you have Nexus 7 Drivers installed.
Conclusion
Anyone with a device capable of fastboot may test. I would appreciate any help.

known issues upon release:
Windows - CASUAL must be started twice.- issue corrected with multi-threaded adb task and 200 ms delay.
none
Discovered issues:
Mac using improper binary Thanks Shaka Huang on G+
No way to start if in fastboot mode- added double-click to enable Do It button
CASUAL fails on Linux if UDEV not set- automatic permissions elevation on $FASTBOOT command for Linux
No active issues
Devices tested:
Galaxy Nexus
Nexus 4
Nexus 7
Karbonn A9
Fastboot capable devices with issues:
Kindle Fire. Fire fire fire bootloader does not support fastboot reboot. Developer contacted, potential fix in FFF2.0
Known working Operating systems:
Windows 7
Windows 8
Linux 64
Mac OS X 10.8.2
Still need Windows Vista, Linux32 and Mac OS-X Leopard/Snow Leopard.

Casual test, Kubuntu Linux 12.04, 64-bit, Sun java JDK, version 6
I got the following error:
$ java CASUAL-Revision152a.jar
Exception in thread "main" java.lang.NoClassDefFoundError: CASUAL-Revision152a/jar
Caused by: java.lang.ClassNotFoundException: CASUAL-Revision152a.jar
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: CASUAL-Revision152a.jar. Program will exit.

redstar427 said:
I got the following error:
$ java CASUAL-Revision152a.jar
Exception in thread "main" java.lang.NoClassDefFoundError: CASUAL-Revision152a/jar
Caused by: java.lang.ClassNotFoundException: CASUAL-Revision152a.jar
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: CASUAL-Revision152a.jar. Program will exit.
Click to expand...
Click to collapse
He said to update to latest Java version which means you must have Java 7
Sent from my Nexus 7 using Tapatalk 2

Android development requires JDK version 6
Android development requires JDK version 6, so if version 7 is required for this, then I will drop out of the testing.

redstar427 said:
Android development requires JDK version 6, so if version 7 is required for this, then I will drop out of the testing.
Click to expand...
Click to collapse
The java running on your computer is different from the java development kit. JRE is backwards compatible. The JDK must be version 6 for Android.

I just fixed the Windows 2x start bug which has been plaguing this project from the start. I also fixed the Mac-uses-linux-fastboot bug which was reported on G+. https://plus.google.com/u/0/104711040110222472212/posts/R7A8CjQcjde

works fine even with Java version 6, I just forgot a parameter
Earlier I forgot the "-jar" parameter.
Once added it worked just fine on my Samsung Galaxy Nexus.
http://paste.ubuntu.com/1519115/

works fine with
- Windows 7 x64
- Nexus 4 & Nexus 7
:good:

Works fine Windows 8 x64 & Nexus 7 CM 10.1

Tested both my
-Galaxy Nexus(Maguro) and
-Nexus 7 (Grouper)
on
Mac OS X 10.8.2
Works on both

I'm VERY happy with the progress so far!
Confirmed working devices: Galaxy Nexus, Nexus 4, Nexus 7
Confirmed Working OS's: Windows 7, Windows 8, Linux 64, Mac OS X 10.8.2
I still need testing on Windows Vista, Linux32 and Mac OS-X Leopard/Snow Leopard.
Issues Corrected:
Windows - CASUAL must be started twice.- issue corrected with multi-threaded adb task and 200 ms delay.
none
Mac using improper binary Thanks Shaka Huang on G+
No way to start if in fastboot mode- added double-click to enable Do It button
CASUAL fails on Linux if UDEV not set- automatic permissions elevation on $FASTBOOT command for Linux
I've uploaded a new version.. CASUAL Revision 161 Build 2,744 includes all the above features And, if you double click the "Do It!" button, it will enable the button.

Confirmed it worked on my Nexus 7 on Snow Leopard (10.6.8). CASUAL still shows a message "<waiting for device>rebooting"

AdamOutler said:
The java running on your computer is different from the java development kit. JRE is backwards compatible. The JDK must be version 6 for Android.
Click to expand...
Click to collapse
So im fairly new to linux. How do I go about, if even possible, to update JRE to 7 while keeping my JDK at version 6...

Adam,
I tested both my Nexus 7 (stock, rooted, 4.2.1) and Nexus 4 (CM10.1), both successfully.
I'm running Ubuntu 12.04 64bit
Then, just for kicks, I tested in on a Kindle Fire running AOSP 4.2.1 by Hashcode. The Kindle Fire rebooted but did not go to the fastboot menu. The bootloader that it is running is FireFireFire and running TWRP for recovery.
Happy to test more if needed.
Thanks,
Marty

we need more tests not just the nexus line-up

Worked great for me
Win7 x64

Fully working on my CM 10.1 HTC Desire Z, Windows 8
Nexus One, ROM CM7.2 OS - Mac OS 10.7.5

dank101 said:
we need more tests not just the nexus line-up
Click to expand...
Click to collapse
This did get posted in the Nexus 7 Android Development forums...

.torrented said:
This did get posted in the Nexus 7 Android Development forums...
Click to expand...
Click to collapse
I'm bringing people in via +CASUAL on Google Plus. They're coming in slowly. I could potentially ask a news writer to cover this later.. But I'm happy with the progress so far.

Related

[Q] Eclipse ADK Beginner's Issue

I am running Linux (Ubuntu 10.10) on a 64-bit platform, and I have installed Eclipse Helios with ADK 2.3.3 & 3.0. I'm new to Android development, and am trying to run a sample app [~/android-sdk-linux_x86/docs/resources/samples/Wiktionary/...]. However, I am getting the following error messages when I Run it:
Code:
[2011-04-14 14:24:23 - Snake] Still no compatible AVDs with target 'Android 3.0': Aborting launch.
[2011-04-14 14:24:23 - Snake] Performing com.example.android.snake.Snake activity launch
[2011-04-14 14:24:46 - Snake] Launch canceled!
Where can I find an Android Virtual Machine for my Android 2.3.3 (on my 64-bit Linux)?
Hi!
You should rename your thread to "SDK",since "ADK" means a completely different on Android.
First off, can you please all steps you took to install eclipse and the sdk ?
Make sure you follow step-by-step this guide: developer.android.com/sdk/installing.html
Robson

adb, ubuntu and sm-p901

I am having serious trouble connecting my Samsung Galaxy Note PRO 12.2" (SM-P901) to adb on Ubuntu 14.04.
I have the latest Android SDK, This happened when I had Android 4.4 installed, and also now when I have Android 5.0.2 installed. I uninstalled
Code:
android-tools-{adb, fastboot, etc}
to ensure I have only SDK tools, My Galaxy Note 8.0 (GT-N5100) is working fine with adb and IntelliJ IDEA, I can see my photos perfectly for both tablets, both tablets were recognized perfectly from a windows host machine. My VMware XP client can also recognize only the GT-N5100 via
Code:
adb devices
I have read through the closest thread related to my problem

[Q] Opensuse and ADB/Fastboot

Hello,
I am primarily a windows user but have tinkered with various Linux distros over the years. Really enjoying running the latest Opensuse 42.1 with the kde desktop.
My wife wants me to root her Moto G 1st edition, which I did a few years ago on Windows 7.
Curious to know how Opensuse and ADB/Fastboot play when it comes to rooting, flashing factory images etc?
With windows 7 I found it pretty straight forward, however I seem to remember it was a bit of a nightmare on Ubuntu getting the distro to find the phone (my HTC) and I gave up. Tried the 51 android rules and all that, but still no luck.
To get to the point, anyone have Opensuse playing nicely with their Moto G' and could post some instructions so I can get back to rooting?
Thanks,
Simply install Android Tools.
In openSUSE: http://software.opensuse.org/package/android-tools
In Ubunutu: sudo apt-get install android-tools-adb android-tools-fastboot
Tip: 'sudo' may be required to run fastboot / adb - i.e, sudo fastboot devices
Does it still need 51 android rules creating for the device? I had an awful time with permissions and trying to find the phone on Mint (Ubuntu based) last time I tried this.
Many thanks for your reply.
maritimesbob said:
Does it still need 51 android rules creating for the device? I had an awful time with permissions and trying to find the phone on Mint (Ubuntu based) last time I tried this.
Click to expand...
Click to collapse
No configuration or setup is required.

Windows Management Framework 5.0 for Windows RT

Hi there. I'm not sure about existing Windows Management Framework 5.0 with PowerShell 5.0 for Windows RT so I start this thread.
According to MS KB, Windows RT is noted in prerequisites
https://support.microsoft.com/en-us...ork-5-0-rtm-on-windows-8-1-and-windows-server
although it's not a prove that PowerShell 5.0 existed for Windows RT. MS don't publish direct links for MSU for Windows RT at Windows Update Catalog. In the same time there is PowerShell 6.0 compiled for both 32 and 64 bit ARM
https://github.com/PowerShell/PowerShell/releases
but arm build isn't in MSU but zip. When I ran install script I've got lot of errors.
So I'm askin for help for PowerShell 5.0 MSU for Windows RT. Preinstalled PowerShell 4.0 in windows Rt is outdated and doesn't have some modules I need. Just it.
hooddy said:
Hi there. I'm not sure about existing Windows Management Framework 5.0 with PowerShell 5.0 for Windows RT so I start this thread.
According to MS KB, Windows RT is noted in prerequisites
https://support.microsoft.com/en-us...ork-5-0-rtm-on-windows-8-1-and-windows-server
although it's not a prove that PowerShell 5.0 existed for Windows RT. MS don't publish direct links for MSU for Windows RT at Windows Update Catalog. In the same time there is PowerShell 6.0 compiled for both 32 and 64 bit ARM
https://github.com/PowerShell/PowerShell/releases
but arm build isn't in MSU but zip. When I ran install script I've got lot of errors.
So I'm askin for help for PowerShell 5.0 MSU for Windows RT. Preinstalled PowerShell 4.0 in windows Rt is outdated and doesn't have some modules I need. Just it.
Click to expand...
Click to collapse
Why are you doing powershell scripting on RT anyways? If you are serious about it, at the very least get a linux machine (windows would be preferable)
Qiangong2 said:
Why are you doing powershell scripting on RT anyways? If you are serious about it, at the very least get a linux machine (windows would be preferable)
Click to expand...
Click to collapse
I just need PowerShell 5.x for my purposes. To make some thing and create some stuff under Windows, not unix like environment (for instances checkin out for bleaches).
I like WinRT seriously. Like this way. I just need latest PowerShell if it exist. That's it.
hooddy said:
I just need PowerShell 5.x for my purposes. To make some thing and create some stuff under Windows, not unix like environment (for instances checkin out for bleaches).
I like WinRT seriously. Like this way. I just need latest PowerShell if it exist. That's it.
Click to expand...
Click to collapse
There is no WMF5.0 for RT. If you look at the site you linked to, it doesn't apply to Windows RT. It just says you need the 2014 rollup update that was released for all 8.1 devices including RT.
Qiangong2 said:
There is no WMF5.0 for RT. If you look at the site you linked to, it doesn't apply to Windows RT. It just says you need the 2014 rollup update that was released for all 8.1 devices including RT.
Click to expand...
Click to collapse
Ok. That's all I'm askin for to know. Sad(((

VM software for 32-bits

Hi
I am on Windows 10 ( 32-bits system) on an oldish Intel 2- Core 14-2120 3.30 GHZ 32-bits CPU. I want to virtualize a 2nd OS ( Windows 10) in order to switch between the two OS without having to reboot each time. Unfortunately all the Virtualization softwares I have looked into, are designed for 64-bits. I tried a few of them and I invariably get a message that I cannot install because a 64-bits platform is required.
I have been able to install only an older VMware app. ( v. 5 or so) It did go in. and I was able to create a VM box by following the instructions. However I hit a brick wall: when I try to install the CD from the optical drive, I do get the Windows Logo on the VB screen, but it stops there and I cannot install the virtual Windows 10. Why? How can I finalize the 3nd OS installation?
Thanks
Ittiandro
VirtualBox is available as 32-bit edition, too.
It didn't help me
It would be helpful if you specified what virtualization applications you had used for this. I know for sure that there are virtualization apps that allow you to virtualize a 2nd OS (Windows 10) on 32-bit systems like yours. I suggest that you try using VMware 7 for this, as I have often used this piece of software myself, and I can say that this is the best virtualization software that I have tried for purposes similar to yours. I won't be able to test any other virtualization apps of this kind since I have a 64-bit operating system now, but I'm sure you will succeed.

Categories

Resources