Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,495 Members 37,382 Now Online
XDA Developers Android and Mobile Development Forum

[Release][Linux] ModeDetect USBID Detector

Tip us?
 
AdamOutler
Old
(Last edited by AdamOutler; 11th September 2011 at 08:38 PM.)
#1  
AdamOutler's Avatar
Recognized Developer - OP
Thanks Meter 9,623
Posts: 5,196
Join Date: Feb 2011
Location: Louisiana

 
DONATE TO ME
Cool [Release][Linux] ModeDetect USBID Detector

Introduction:
Sometimes a device's screen can be deceiving. black-screen, white-screen, -Phone--/!\--PC. All of these can be a download mode. Sometimes a black screen brick can actually be in a rare S5PC110 development mode where you can use UnBrickable Mod without a hardware modification. ModeDetect for Linux. It will work on any Linux based OS with Java installed.

instructions:
  1. Install Linux on your computer. Install Ubuntu if you don't have Linux.
  2. Ensure you have the latest version of Java.
  3. Download and run the detector here: http://code.google.com/p/hummingbird...downloads/list.

Simply remove the battery, plug in USB and insert the battery
Try again while holding Vol+ and Vol-
Try using a 301Kohm Jig in the USB slot with the battery inserted then plug in the USB cable.

Results:
All you need to do is run it, and plug in your questionable device. If it shows anything besides the image below, then you're not bricked.

If it will only show the image above, then you can apply UnBrickable Mod, or JTAG to your device to recover it.


If it shows this, regardless of what's on your screen, you're in download mode:


If it shows this, regardless of what's on your screen, you can use UnBrickable Mod to recover it.



Currently the supported modes are:
S5PC110 (UnBrickable Mod)
Download Mode
Samsung Kies mode
Media Player mode
Mass Storage device
ADB debug mode
Samsung GMO Modem
Fastboot mode


Conclusion:
I hope this helps someone. Mode Detector is a simple app which looks at the lsusb device IDs and gives a nice GUI front-end for interpenetration of the results. This app should be the last thing you play with before you decide to open it, or send it in for repair.
Flash with Odin on Windows, Linux and Mac. Use JOdin3, Available in a web browser or offline
Check out my developer pages. Add me to your circles on Google Plus.
Wanna see the longest Linux BASH script ever made? click here.
The Following 29 Users Say Thank You to AdamOutler For This Useful Post: [ Click to Expand ]
 
Smasher816
Old
#2  
Smasher816's Avatar
Senior Member
Thanks Meter 166
Posts: 389
Join Date: Jan 2011
Location: Missouri

 
DONATE TO ME
Any ideas?
Code:
$ java -jar UnBrickDetector.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/jdesktop/application/SingleFrameApplication
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Caused by: java.lang.ClassNotFoundException: org.jdesktop.application.SingleFrameApplication
	at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
	... 11 more
Could not find the main class: com.AdamOutler.UnBrickDetector.UnBrickDetectorApp. Program will exit.
and remember use the THANKS button

Retired: Samsung Captivate
Current: Samsung Galaxy S III

Glitch Updater App (Developed by yours truly)
The Following 2 Users Say Thank You to Smasher816 For This Useful Post: [ Click to Expand ]
 
AdamOutler
Old
(Last edited by AdamOutler; 11th September 2011 at 05:26 AM.)
#3  
AdamOutler's Avatar
Recognized Developer - OP
Thanks Meter 9,623
Posts: 5,196
Join Date: Feb 2011
Location: Louisiana

 
DONATE TO ME
Try redownloading it. There may have been something wrong with the download. It's a very straight forward program.
Flash with Odin on Windows, Linux and Mac. Use JOdin3, Available in a web browser or offline
Check out my developer pages. Add me to your circles on Google Plus.
Wanna see the longest Linux BASH script ever made? click here.
 
Smasher816
Old
#4  
Smasher816's Avatar
Senior Member
Thanks Meter 166
Posts: 389
Join Date: Jan 2011
Location: Missouri

 
DONATE TO ME
Ya the new Mode-Detector.jar worked fine.
Its just the usb + vm, not so much :P
and remember use the THANKS button

Retired: Samsung Captivate
Current: Samsung Galaxy S III

Glitch Updater App (Developed by yours truly)
 
AdamOutler
Old
#5  
AdamOutler's Avatar
Recognized Developer - OP
Thanks Meter 9,623
Posts: 5,196
Join Date: Feb 2011
Location: Louisiana

 
DONATE TO ME
Quote:
Originally Posted by Smasher816 View Post
Ya the new Mode-Detector.jar worked fine.
Its just the usb + vm, not so much :P
Linux is the best primary OS. Everything works with Linux, at least to the extent that it can be passed to a virtual machine without problems
Flash with Odin on Windows, Linux and Mac. Use JOdin3, Available in a web browser or offline
Check out my developer pages. Add me to your circles on Google Plus.
Wanna see the longest Linux BASH script ever made? click here.
The Following User Says Thank You to AdamOutler For This Useful Post: [ Click to Expand ]
 
LOSTLOGIC89
Old
#6  
LOSTLOGIC89's Avatar
Senior Member
Thanks Meter 576
Posts: 1,951
Join Date: Nov 2010
Location: Casablanca

 
DONATE TO ME
Quote:
Originally Posted by AdamOutler View Post
Linux is the best primary OS. Everything works with Linux, at least to the extent that it can be passed to a virtual machine without problems
I second that


Fasty KK4 Edition for Captivate :Fasty KK4 Edition
FASTY ICS FOR HTC SENSATION : http://forum.xda-developers.com/show....php?t=1404659
FASTY FOR XPERIA ARC AND ARC S : http://forum.xda-developers.com/show...1#post20761351
Donate to support my samsung captivate fund or my work or to simply to buy me a drink: DONATE

Cheap and Reliable Hosting : http://www.host1plus.com/p/1256.html
The Following User Says Thank You to LOSTLOGIC89 For This Useful Post: [ Click to Expand ]
 
Kyuta Syuko
Old
(Last edited by Kyuta Syuko; 11th September 2011 at 05:04 PM.)
#7  
Senior Member
Thanks Meter 592
Posts: 1,671
Join Date: Aug 2009
Quote:
Originally Posted by AdamOutler View Post
Linux is the best primary OS. Everything works with Linux, at least to the extent that it can be passed to a virtual machine without problems
What VM Program are you using? VirtualBox? Also how well do most of today's games run on a VM Windows?
Samsung Galaxy S4 Active

Build:1306 1308
ROM: Stock KOT49H.I537UCUCNE3
Theme: ADW Samoled Icon & Font, DCikonZ Skin, PlanetScapes LWP
Launcher: Apex Pro


Samsung Captivate

Build:1009
Bootloaders: I897UCKK4
ROM: SlimBean 4.2.2b6
Kernel: Samurai 2.0.2β ~ lulzactive ~ ROW ~ 1200 OC w/112% LiveOC (1344 total)
Modem: UGKG3
Theme: None
Launcher: Apex Pro


Mobile ODIN

Everyone needs a Dropbox
 
Pirateghost
Old
#8  
Pirateghost's Avatar
Recognized Developer
Thanks Meter 7,275
Posts: 10,587
Join Date: Jul 2010

 
DONATE TO ME
Quote:
Originally Posted by Kyuta Syuko View Post
What VM Program are you using? VirtualBox? Also how well do most of today's games run on a VM Windows?
good luck getting decent performance in a VM for gaming (im not talking about facebook bejeweled, im talking about MW3, Black Ops, BF3, etc

gaming is the only reason i still have a desktop running windows

i use virtualbox on my windows machine for some vms
i use vmware workstation on my laptop (running ubuntu 10.10 64bit) to run windows 7 pro 64bit vm when i need it. i can do some basic gaming on there, but it would die if i tried to run call of duty.
The Following User Says Thank You to Pirateghost For This Useful Post: [ Click to Expand ]
 
Kyuta Syuko
Old
#9  
Senior Member
Thanks Meter 592
Posts: 1,671
Join Date: Aug 2009
That's what I thought =|
Samsung Galaxy S4 Active

Build:1306 1308
ROM: Stock KOT49H.I537UCUCNE3
Theme: ADW Samoled Icon & Font, DCikonZ Skin, PlanetScapes LWP
Launcher: Apex Pro


Samsung Captivate

Build:1009
Bootloaders: I897UCKK4
ROM: SlimBean 4.2.2b6
Kernel: Samurai 2.0.2β ~ lulzactive ~ ROW ~ 1200 OC w/112% LiveOC (1344 total)
Modem: UGKG3
Theme: None
Launcher: Apex Pro


Mobile ODIN

Everyone needs a Dropbox
 
AdamOutler
Old
#10  
AdamOutler's Avatar
Recognized Developer - OP
Thanks Meter 9,623
Posts: 5,196
Join Date: Feb 2011
Location: Louisiana

 
DONATE TO ME
Quote:
Originally Posted by Pirateghost View Post
good luck getting decent performance in a VM for gaming (im not talking about facebook bejeweled, im talking about MW3, Black Ops, BF3, etc

gaming is the only reason i still have a desktop running windows

i use virtualbox on my windows machine for some vms
i use vmware workstation on my laptop (running ubuntu 10.10 64bit) to run windows 7 pro 64bit vm when i need it. i can do some basic gaming on there, but it would die if i tried to run call of duty.
If you have enough memory you will not notice much of a difference. I don't. Install 3d extensions and allocate as many processor cores to it as possible. Enable all the options. Its a slight slowdown but nothing noticeable.

I have a quad core i5 with 12gigs of memory and a nVidia 200 series video card. It works well.
Flash with Odin on Windows, Linux and Mac. Use JOdin3, Available in a web browser or offline
Check out my developer pages. Add me to your circles on Google Plus.
Wanna see the longest Linux BASH script ever made? click here.

The Following User Says Thank You to AdamOutler For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes