[Q] Problem running CASUAL - AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin

I'm trying to use CASUAL with my AT&T GS4 (sch-i337) as discussed in this thread:
http://forum.xda-developers.com/showthread.php?t=2297900
Sadly I seem to be the noob who proves that it is not noob-proof. My post count is too low to post in that thread, so I'm posting here instead.
I get nowhere because CASUAL never detects my phone. My phone has USB debug mode enabled and is running pure stock MDL firmware, unrooted . My computer is running Win 7 x64, has AV and firewall disabled, latest Java installed, and no 3rd party USB drivers for the phone. The phone shows up normally in Windows Explorer, and I can browse the files on it. I tried 2 different USB cables, rebooted both the phone and computer, and always get the same result.
Here's the CASUAL log:
Code:
[DEBUG]working
[INFO]We are running Windows 7
Creating Temp Folder in:T:\Temp\CASUALMomDad-2013-07-30-23.56.04\CASUAL Cross-platform Android Scripting and Unified Auxiliary Loader
Revision:774 build:6,461
CASUAL Copyright (C) 2013 Adam Outler
This program comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it, under certain conditions; run
'T:\samsung_i337\Root-and-Recovery-ATT-TMO-GS4-CASUAL-R774b--Nightly.jar --license'
for details. http://android-casual.googlecode.com for source.
[DEBUG]ClassJar:jar:file:/T:/samsung_i337/Root-and-Recovery-ATT-TMO-GS4-CASUAL-R774b--Nightly.jar!/CASUAL/CASUALTools.class
[DEBUG]launching GUI
[DEBUG]Picking Jar File:/T:/samsung_i337/Root-and-Recovery-ATT-TMO-GS4-CASUAL-R774b--Nightly.jar ..scanning.
[DEBUG]Found Windows Computer
[DEBUG]Attempting to write T:\Temp\CASUALMomDad-2013-07-30-23.56.04\Elevate.exe
[DEBUG]File verified.
[DEBUG]Attempting to write T:\Temp\CASUALMomDad-2013-07-30-23.56.04\adb.exe
[DEBUG]File verified.
[DEBUG]Attempting to write T:\Temp\CASUALMomDad-2013-07-30-23.56.04\AdbWinApi.dll
[DEBUG]File verified.
[DEBUG]Attempting to write T:\Temp\CASUALMomDad-2013-07-30-23.56.04\AdbWinUsbApi.dll
[DEBUG]File verified.
[DEBUG]Searching for scripts
[DEBUG]Setting executable T:\Temp\CASUALMomDad-2013-07-30-23.56.04\adb.exe. Result=true
[VERBOSE]TimeOut on T:\Temp\CASUALMomDad-2013-07-30-23.56.04\adb.exe after 5000ms. Returning what was received.
[VERBOSE]ADB Server Started!!!
[DEBUG][TRANSLATION]@interactionWindowsDeviceNotDetected
[DEBUG][STANDARDMESSAGE]@interactionWindowsDeviceNotDetected
[RESPONSEEXPECTED]
Thanks in advance for any help.

Uninstall the phone drivers from your computer. Remove kies if it is installed. Reboot pc and phone. Give her another try.
When you connect the phone, run casual and let it get the correct drivers. Don't install them via windows.

I assume you have read and know this but open your settings and select about phone and then make sure your baseband does not end with MF3. Otherwise CASUAL won't work. A root method and all that jazz still needs to be found for that baseband.
Sent from my SAMSUNG-SGH-I337 using xda app-developers app

system is not seeing your device, make sure debug is selected, and it looks to me also that you have a driver conflict, if you have keis, I suggest removing the drivers.

xBeerdroiDx said:
Uninstall the phone drivers from your computer. Remove kies if it is installed. Reboot pc and phone. Give her another try.
When you connect the phone, run casual and let it get the correct drivers. Don't install them via windows.
Click to expand...
Click to collapse
Thanks, but no phone drivers or Kies have ever been installed on that computer. Rebooted phone and computer several times. Tried several different builds of CASUAL. Phone is never detected by CASUAL.

CAG-man said:
I assume you have read and know this but open your settings and select about phone and then make sure your baseband does not end with MF3. Otherwise CASUAL won't work. A root method and all that jazz still needs to be found for that baseband.
Click to expand...
Click to collapse
Thanks, but as mentioned in the OP, the phone has stock MDL baseband, so that's not the issue. I never actually get far enough for that to be an issue.

Gave up on original Win 7 x64 computer. Switched to another computer with Win Vista x32. As be.fore, this computer has never had phone drivers or Kies installed. When I plug the phone into the computer, Windows successfully detects it and I can browse the files in Windows Explorer. And yes the phone definitely has USB debugging mode enabled.
With the last couple of nightly builds, CASUAL tells me that the phone is detected. However, there seems to be an error in those builds because the script is missing. Looking in the temp folder where CASUAL extracts the files, there is no SCRIPTS subfolder. Therefore the "Do It" button does nothing. Here is an example log:
Code:
[DEBUG]working
[INFO]We are running Windows Vista
Creating Temp Folder in:C:\Users\Admin\AppData\Local\Temp\CASUALAdmin-2013-07-31-22.49.17\CASUAL Cross-platform Android Scripting and Unified Auxiliary Loader
Revision:778 build:6,497
CASUAL Copyright (C) 2013 Adam Outler
This program comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it, under certain conditions; run
'C:\Users\Admin\Downloads\gs4\Root-and-Recovery-ATT-TMO-GS4-CASUAL-R778b--Nightly.jar --license'
for details. http://android-casual.googlecode.com for source.
[DEBUG]launching GUI
[DEBUG]Picking Jar File:/C:/Users/Admin/Downloads/gs4/Root-and-Recovery-ATT-TMO-GS4-CASUAL-R778b--Nightly.jar ..scanning.
[DEBUG]Found Windows Computer
[DEBUG]Attempting to write C:\Users\Admin\AppData\Local\Temp\CASUALAdmin-2013-07-31-22.49.17\Elevate.exe
[DEBUG]File verified.
[DEBUG]Attempting to write C:\Users\Admin\AppData\Local\Temp\CASUALAdmin-2013-07-31-22.49.17\adb.exe
[DEBUG]File verified.
[DEBUG]Attempting to write C:\Users\Admin\AppData\Local\Temp\CASUALAdmin-2013-07-31-22.49.17\AdbWinApi.dll
[DEBUG]File verified.
[DEBUG]Attempting to write C:\Users\Admin\AppData\Local\Temp\CASUALAdmin-2013-07-31-22.49.17\AdbWinUsbApi.dll
[DEBUG]File verified.
[DEBUG]Searching for scripts
[DEBUG]Setting executable C:\Users\Admin\AppData\Local\Temp\CASUALAdmin-2013-07-31-22.49.17\adb.exe. Result=true
[VERBOSE]ADB Server Started!!!
[VERBOSE]TimeOut on C:\Users\Admin\AppData\Local\Temp\CASUALAdmin-2013-07-31-22.49.17\adb.exe after 5000ms. Returning what was received.
[DEBUG]Controls Enabled status: true
[DEBUG]State Change Detected, The new state is: 1
[DEBUG]Device Connected
[DEBUG]@stateConnected
[DEBUG]Controls Enabled status: true
Going back to the last instabuild R773b, it does properly extract the SCRIPTS folder, but it never detects the phone (or detects it only momentarily). Here's the log:
Code:
[DEBUG]working
[INFO]We are running Windows Vista
Creating Temp Folder in:C:\Users\Admin\AppData\Local\Temp\CASUALAdmin-2013-07-31-22.56.50\CASUAL Cross-platform Android Scripting and Unified Auxiliary Loader
Revision:773 build:6,423
CASUAL Copyright (C) 2013 Adam Outler
This program comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it, under certain conditions; run
'C:\Users\Admin\Downloads\gs4\Root-and-Recovery-ATT-TMO-GS4-CASUAL-R773b--InstaBuild.jar --license'
for details. http://android-casual.googlecode.com for source.
[DEBUG]ClassJar:jar:file:/C:/Users/Admin/Downloads/gs4/Root-and-Recovery-ATT-TMO-GS4-CASUAL-R773b--InstaBuild.jar!/CASUAL/CASUALTools.class
[DEBUG]launching GUI
[DEBUG]Picking Jar File:/C:/Users/Admin/Downloads/gs4/Root-and-Recovery-ATT-TMO-GS4-CASUAL-R773b--InstaBuild.jar ..scanning.
[DEBUG]parsing SCRIPTS/
[DEBUG]Found Windows Computer
[DEBUG]Attempting to write C:\Users\Admin\AppData\Local\Temp\CASUALAdmin-2013-07-31-22.56.50\Elevate.exe
[DEBUG]File verified.
[DEBUG]Attempting to write C:\Users\Admin\AppData\Local\Temp\CASUALAdmin-2013-07-31-22.56.50\adb.exe
[DEBUG]File verified.
[DEBUG]Attempting to write C:\Users\Admin\AppData\Local\Temp\CASUALAdmin-2013-07-31-22.56.50\AdbWinApi.dll
[DEBUG]File verified.
[DEBUG]Attempting to write C:\Users\Admin\AppData\Local\Temp\CASUALAdmin-2013-07-31-22.56.50\AdbWinUsbApi.dll
[DEBUG]File verified.
[DEBUG]parsing SCRIPTS/-build.properties
[DEBUG]parsing SCRIPTS/GS4 Root and Loki Recovery.meta
[DEBUG]parsing SCRIPTS/GS4 Root and Loki Recovery.scr
[DEBUG]parsing SCRIPTS/GS4 Root and Loki Recovery.txt
[DEBUG]parsing SCRIPTS/GS4 Root and Loki Recovery.zip
[VERBOSE]found zip at SCRIPTS/GS4 Root and Loki Recovery.zip
[DEBUG]parsing SCRIPTS/-logo.png
[DEBUG]parsing SCRIPTS/-Overview.txt
[DEBUG]
Starting CASPAC unzip.
[DEBUG][TRANSLATION]@noUpdateRequired
[INFO]Verified up-to-date.
[DEBUG]unzip of SCRIPTS/GS4 Root and Loki Recovery.zip is beginning.
[VERBOSE]Unzipping busybox
[VERBOSE]Unzipping pwn
[VERBOSE]Unzipping Superuser.apk
[VERBOSE]Unzipping su
[VERBOSE]Unzipping recovery.img
[VERBOSE]Unzip Complete
[DEBUG]unzip of SCRIPTS/GS4 Root and Loki Recovery is complete.
[DEBUG]Searching for scripts
[INFO]misc hacks for AT&T Galaxy S4
[DEBUG]adding SCRIPTS/GS4 Root and Loki Recovery to UI
[INFO]
[DEBUG]Setting executable C:\Users\Admin\AppData\Local\Temp\CASUALAdmin-2013-07-31-22.56.50\adb.exe. Result=true
[VERBOSE]ADB Server Started!!!
[VERBOSE]TimeOut on C:\Users\Admin\AppData\Local\Temp\CASUALAdmin-2013-07-31-22.56.50\adb.exe after 5000ms. Returning what was received.
[DEBUG]Controls Enabled status: true
[DEBUG]State Change Detected, The new state is: 1
[DEBUG]Device Connected
[DEBUG]@stateConnected
[DEBUG]Controls Enabled status: true
[DEBUG]State Change Detected, The new state is: 0
[DEBUG]@stateDisconnected
[DEBUG]Device Removed
[DEBUG]Controls status: false
The originally posted build 527 also does not detect the phone. Here's a log from that version:
Code:
[INFO]We are running Windows Vista
Creating Temp Folder in:C:\Users\Admin\AppData\Local\Temp\AdminTEMPCASUAL9F5DDC95\CASUAL Cross-platform Android Scripting and Unified Auxiliary Loader
Revision:527 build:3,811
CASUAL Copyright (C) 2013 Adam Outler
This program comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it, under certain conditions; run
'C:\Users\Admin\Downloads\gs4\Root%20and%20Recovery%20for%20ATT-TMO%20GS4-CASUAL-R527b.jar --license'
for details. http://android-casual.googlecode.com for source.
[DEBUG]Picking Jar File:/C:/Users/Admin/Downloads/gs4/Root%20and%20Recovery%20for%20ATT-TMO%20GS4-CASUAL-R527b.jar
[DEBUG]Found Windows Computer
[DEBUG]Found: GS4 Root and Loki Recovery
[DEBUG]OMFGWOOT GUI running!
[INFO]misc hacks for AT&T Galaxy S4
[DEBUG]Searching for scripts
[DEBUG]Updating Scripts for UI
[VERBOSE]From Resource: true
[INFO]--GS4 Root and Loki Recovery--
[INFO]This will install root and recovery for you Qualcomm based Samsung Galaxy S4
##############################
# Motochopper Copyright (C) 2013 Dan Rosenberg (@djrbliss)
# Loki Copyright (C) 2013 Dan Rosenberg (@djrbliss)
# TWRP recovery - Team Win
##############################
# Instructions:
# 1. Put your device in debugging mode
# 2. Attach it via USB
# 3. Click the Do It button
##############################
[DEBUG]Created zipResource at /SCRIPTS/GS4 Root and Loki Recovery.zip
[DEBUG]Exiting comboBoxUpdate()
[DEBUG]attempted to lock controls but controls are not availble yet
[DEBUG]Extracting archive....
[DEBUG]Target Script Is resource
[VERBOSE]Unzipping busybox
[VERBOSE]Unzipping pwn
[DEBUG]Attempting to write C:\Users\Admin\AppData\Local\Temp\AdminTEMPCASUAL9F5DDC95\Elevate.exe
[DEBUG]File verified.
[DEBUG]Attempting to write C:\Users\Admin\AppData\Local\Temp\AdminTEMPCASUAL9F5DDC95\adb.exe
[VERBOSE]Unzipping Superuser.apk
[DEBUG]File verified.
[DEBUG]Attempting to write C:\Users\Admin\AppData\Local\Temp\AdminTEMPCASUAL9F5DDC95\AdbWinApi.dll
[VERBOSE]Unzipping su
[VERBOSE]Unzipping recovery.img
[DEBUG]File verified.
[DEBUG]Attempting to write C:\Users\Admin\AppData\Local\Temp\AdminTEMPCASUAL9F5DDC95\AdbWinUsbApi.dll
[DEBUG]File verified.
[DEBUG]sleeping for Windows ADB start
[VERBOSE]Unzip Complete
[DEBUG]Attempting to write C:\Users\Admin\AppData\Local\Temp\AdminTEMPCASUAL9F5DDC95\adb_usb.ini
[DEBUG]File verified.
[DEBUG]###executing: C:\Users\Admin\AppData\Local\Temp\AdminTEMPCASUAL9F5DDC95\adb.exe###
[VERBOSE]List of devices attached
[DEBUG]Device List:
[DEBUG]unknown
At this point I've wasted several hours trying to get this tool to work and have gotten nowhere, so I'm feeling pretty frustrated.

Success!!
It seemed to me that I was having driver problems (except for the builds that are missing the script). So despite all the advice to the contrary, I decided to try installing the Samsung USB driver and then retry CASUAL. That did the trick (on the Vista machine, I didn't try it on the Win 7 machine).
The Samsung USB driver can be downloaded here:
http://www.samsung.com/us/support/owners/product/SGH-I337ZKAATT
After installing that (which literally took about an hour with the hard drive constantly busy), then I ran that latest CASUAL instabuild (r773b) and it worked like a charm.
Yay! Now off to freeze the stupid AT&T software update tasks to make sure they don't push MF3 to me.

spocko said:
Thanks, but as mentioned in the OP, the phone has stock MDL baseband, so that's not the issue. I never actually get far enough for that to be an issue.
Click to expand...
Click to collapse
Yikes. Sorry. I reread OP and I missed the MDL part. I see it now. Lol
Sent from my SAMSUNG-SGH-I337 using xda app-developers app

spocko said:
It seemed to me that I was having driver problems (except for the builds that are missing the script). So despite all the advice to the contrary, I decided to try installing the Samsung USB driver and then retry CASUAL. That did the trick (on the Vista machine, I didn't try it on the Win 7 machine). The Samsung USB driver can be downloaded here:
http://www.samsung.com/us/support/owners/product/SGH-I337ZKAATT After installing that (which literally took about an hour with the hard drive constantly busy), then I ran that latest CASUAL instabuild (r773b) and it worked like a charm. Yay! Now off to freeze the stupid AT&T software update tasks to make sure they don't push MF3 to me.
Click to expand...
Click to collapse
Good job! It seems to always be that way -several hours of frustration where every "correct step" just does not work, then all of the sudden . . .success! Not sure I would have figured it out quickly either -although I did load the Samsung driver myself prior to using CASUAL so I did not have any experience of CASUAL getting drivers for me. . . It's a good data point thanks! Good idea to kill the AT&T OTA as soon as you can! Next stop. . .nice roms to customize!

Related

Ubuntu LiveCD with ADB and Unrevoked Recovery installer(Guide).

I have been helping out with rooting HTC Aria's over in IRC in the #liberatedAria channel for a while now. A lot of people have problems with drivers on Windows. The easiest solution for them to do this has been to download an Ubuntu LiveCD and use it to root their phone, however many people know nothing about Linux at all and feel daunted by this.
I have created a customized Ubuntu LiveCD that has a script that downloads the Unrevoked Teams reflash, untars it, and runs it as root to root HTC's phones that are supported by the tool (HTC Evo, Hero, Aria, Desire, and Incredible). It also has the Android SDK included and added to the path so it is accessible from a terminal. Everything can be done without a single change to the computer you are doing it on.
Download the iso image here:
MD5: 9a34c343e8f610e66674af9384334bf6
ubuntu-10.04-desktop-i386-HTCROOT.iso Primary
ubuntu-10.04-desktop-i386-HTCROOT.iso FileFactory.com
Burn the iso to a cd (This can be done with any cd burning software, imgburn found here is free)
[Optional]
If you do not have a CD drive, you can create a bootable flash drive by using the tool found here:Pendrive Linux
Put the CD into your computer cd/dvd drive and reboot your computer.
You must make your computer boot from CD, there are many different ways to do this depending on what computer you have, most recent computers have this enabled by default. Here is a guide that may help if you can't get this to work:Enable Boot from CD
Once it boots from the cd it will show a small picture of a keyboard and a person, do not press anything here and it will come to a window that will allow you to select your language.
Select your language and click "Try Ubuntu 10.04 LTS". This will boot up to a standard Ubuntu livecd desktop.
On your phone click menu, settings, applications, development, usb debugging
On the computer click "Places" on the top menubar and click "Home Folder". This will open a file explorer window, in that window is a script called "reflash.sh".
Double click reflash.sh. A window will pop up asking you what to do with this file, click "Run in Terminal". This will go get from the internet the current version of Unrevoked recovery installer from unrevoked.com/recovery, unzip/tar it, and run it as root.
Once it is complete you will be looking at the unrevoked3 screen and you should follow the prompts on screen.
You will then follow the prompts on the screen to plug in your phone, from the notification pane in android select charge only.
unrevoked3 will reboot your phone twice and leave you in ClockworkMod Recovery. On the computer at the bottom of the window it will say "Done".
Close the window, if you do not need to do anything further you can shut down the machine and be back in windows with nothing changed on your windows system.
Congratulations, your phone is now rooted and has ClockworkMod recovery installed.
There are other guides to setup of sideloading for the aria as well as how to load roms. You can do these using this live cd as well, this is a full ubuntu 10.04 livecd with only games and open office removed, and the unrevoked3 installer and the android sdk installed, it is already in the path and you can use adb commands from the terminal without having to switch directories(however it can be found in /opt/android-sdk-linux_86).
I would like to thank The Unrevoked team for making such a nice tool, and website that made this possible. I would like to that the guys in IRC on Freenode.net channels #liberatedAria and #koush for everything I've learned recently as well as all the great work they have done. Thanks also to Attn1 for making some nice roms for the HTC Aria and gave me the idea to create this. Thanks to Downer3d for the torrent mirror. Thanks to Neolobster for the new faster mirror.
Allowing Non-Market Apps using this cd on the stock ARIA rom:
Click Applications in the upper left corner.
Go to Accessories, click Terminal. This will put in you a terminal in the default users home folder. Because ADB(and android sdk) are in the path you do not need to change any directories. Start the phone in CLockworkmod with data mounted from the partitions menu and plug the phone into the computer.
Code:
sudo su
adb pull /data/data/com.android.providers.settings/databases/settings.db settings.db
echo "update secure set value = 1 where name = 'install_non_market_apps';"|sqlite3 ./settings.db
adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
adb reboot
What this does:
Switch user to root.
ADB pulls the file that contains the setting to allow non market apps down to the machine from the phone.
The next line runs a sql update of the field install_non_market_apps in table 'secure' and sets the value to 1 (on).
ADB then pushes the file back to the phone in its original location.
You then use ADB to reboot the phone to enable it.
Thats awesome!! If I didnt already go through all the trouble of doing it on my Windows box I would definitely try your live CD. I already have 10.04 installed on my laptop and I never really thought of trying it on there. I wonder if it would have been easier....oh well. Thanks again. Im sure there are plenty of people out there that will find this very useful.
Much easier. And yes, this IS awesome. Great job, Shad0wf0x. This kicks ass.
This is a fantastic idea, I had a ton of trouble rooting my Aria on Win7 x64 and downloading and using Ubuntu 10.04 eventually proved to be much easier. If your iso works as advertised I can see this possibly being the most pain-free solution for annoyed Windows rooters.
Sent from my HTC Liberty using XDA App
This works wonderfully for rooting and sideloading apps (the only issue there was figuring out I needed the root account and permissions). As painless as a dentist trip.
If I was to install Ubuntu from that LiveCD, would it still have the Android SDK on it or would I need to reinstall it? I like not having to cd to it.
the android sdk is installed on the livecd and in the path, you'll have it every time you boot up, the part the script downloads will be gone on a second boot(unrevoked.com's recovery installer)
Great job!
Do u think that u could add some other HTC devices, in the future?
Awesome, thanks!
matteios said:
Great job!
Do u think that u could add some other HTC devices, in the future?
Click to expand...
Click to collapse
The devices supported are the devices supported by the unrevoked3 tool, I am not part of their team, just trying to help out some windows users who have driver problems.
Virtual image?
Has anyone created a virtual image of s full Android dev system? That would sure be handy!
jmdearras said:
Has anyone created a virtual image of s full Android dev system? That would sure be handy!
Click to expand...
Click to collapse
not sure if this is what you're looking for, but it'll help.
http://forum.xda-developers.com/showthread.php?t=701816
Problem with reflash.sh tool
I followed all the steps, till the final step, and it said failed to flash recovery image and my phone only booted up once. Am I doing something wrong?
I am currently running.
Version 2.2 updated OTA last week Aug 3rd
Kernel version - 2.6.32.15
build #: 3.26.651.6
software: 3.26.651.6
PRI version: 1.40_003
jbwfg said:
I followed all the steps, till the final step, and it said failed to flash recovery image and my phone only booted up once. Am I doing something wrong?
I am currently running.
Version 2.2 updated OTA last week Aug 3rd
Kernel version - 2.6.32.15
build #: 3.26.651.6
software: 3.26.651.6
PRI version: 1.40_003
Click to expand...
Click to collapse
it says in your signature you have 2.2 updated OTA, that must mean you have an evo, and those aren't supported by the unrevoked tool when running 2.2.
awesome shortcut for rooting phones, however I followed the steps and it is saying that the hero is not supported at this time? Did i do something wrong, I'm running 2.27.651.5
I've burned the the iso file to a cd but I'm not able to get the boot-up to work correctly..or to come up at all, when re-booting windows.
@lcw
When you boot, you will need to hit your bios and select your CD drive as a boot device. Then enjoy the ride - easy as falling off a bike.
I cannot get my dell d600 or d630 to boot. The CD spins but I get the message "No bootable device".
I verified that the ubunto_*HTCROOT.iso file 641,942 kb is the only file on the CD.
Can someone please help.
pinkpanther2000 said:
I cannot get my dell d600 or d630 to boot. The CD spins but I get the message "No bootable device".
I verified that the ubunto_*HTCROOT.iso file 641,942 kb is the only file on the CD.
Can someone please help.
Click to expand...
Click to collapse
You're not supposed to burn the ISO file onto a disc as a file. You're supposed to burn the contents of the ISO to a disc.
Sent from my HTC Liberty using XDA App
I attempted to boot from the CD, I get the person/keyboard screen then i get the Ubuntu screen, then my computer goes black, any solutions?
This is the BEST way to root your Aria. Big props to everyone that helped create it. You guys are the best.

[Q] Troubles with ADB on Windows XP SP3. Help.

Hi,
I have a Windows XP SP3 (i386) that just won't let me use ADB. It doesn't work in ways I will describe shortly, and it never worked, on none of the ROMs I had. I had four roms in total in the past 3 weeks: Rooted original 2.1, non rooted JPM, rooted Kyrillos 3.0 and now I run rooted Lestatious 2.0 Build 1.2.6, akin' to go for 1.7.0.
I am primarily a Linux user (fedora 14 x86_64), and adb works fine for me there. As does ADB over WiFi (both Linux and Windows). For all my needs so far, Linux was enough, ODIN worked from the start, so I never bothered to find what's wrong with the Windows' adb.
But trying out Lestatious, I now have the need to update the rom using Windows, and it wouldn't be bad at all to use some other already prepared scripts for Windows I stumple upon on the forums.
As far as drivers go, I have the freshest Kies installed. I have the necessary Android SDK parts installed. Debugging mode is selected on the phone.
Actually, I am at the point where I have the WHOLE Android SDK installed, and have spent way more time on researching and googling and debugging than I would've needed to convert Lestatious' batch scripts into bash ones. And almost literally, pulling my hair out.
I'm no total noob when it comes to flashing/hacking/rooting/modding devices. I've even done my own Pandora battery switch mod for PSP for God's sake!
But this just stumps me....completely.
All this behaves the same, no matter what combination of starting and killing adb I do, pulling cable out, disabling debugging mode, plugging in, unplugging, enabling debugging, plugging in, etc. It also makes no difference whether I use Android SDK adb or, let's say, Lestatious' supplied adb.
Also note that I have both tools and platform-tools folder in my PATH variable.
Code:
C:\>adb kill-server
C:\>adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
C:\>adb devices
List of devices attached
myserialno;-) device
C:\>adb remount
error: protocol fault (status 72 65 6d 6f?!)
C:\>adb shell df
error: protocol fault (status 2f 64 65 76?!)
C:\>adb shell ls
error: protocol fault (status 73 71 6c 69?!)
C:\>adb root
error: protocol fault (status 61 64 62 64?!)
Although it does give me protocol fault, the device does disconnect/reconnect:
Code:
C:\>adb usb
error: protocol fault (status 72 65 73 74?!)
Phone does reboot:
Code:
C:\>adb reboot
error: protocol fault (no status)
Have to break this one, because it never returns:
Code:
C:\>adb shell
^C
Any help will be greatly appreciated.
Thank you.
can i post reply?
[email protected] said:
can i post reply?
Click to expand...
Click to collapse
STOP! NOW!
Sent from my ACID Lestatious 2.0 BUILD 1.7 Galaxy 3 FROYO
Sounds like a Samsung USB driver issue to me. Make sure you got the right ones. Are you using 64-bit or 32-bit windows?
Thom47 said:
Sounds like a Samsung USB driver issue to me. Make sure you got the right ones. Are you using 64-bit or 32-bit windows?
Click to expand...
Click to collapse
Thanks for taking interest in my problem.
I'm using 32-bit Windows XP (with SP3).
I did not fiddle with any drivers, I would if I found any . The drivers were installed with the Samsung Kies software. I also tried uninstalling and installing Kies. The Kies is version Kies_2.0.0.11032_12_9.exe downloaded from UK Samsung Support for Galaxy i5800.
Just to be sure, and because I have access to two completely identical machines (yes, hardware and software is the same, except the Android part).
On one machine I have the complete Android SDK, earlier version of Kies (updated yesterday to the latest version).
On the second machine I have only the latest Kies (never updated, installed it this morning). And no SDK, just Lestatious' adb.exe and AdbWinApi.dll.
The behavior stays the same.
Thanks
Well, try these. They're Samsung's USB drivers for our phone. If possible, try starting from the beginning eg. remove all traces of KIES and your phone, and then apply the downloaded driver. By this I mean "uninstall" the phone from your computer.
Thom47 said:
Well, try these. They're Samsung's USB drivers for our phone. If possible, try starting from the beginning eg. remove all traces of KIES and your phone, and then apply the downloaded driver. By this I mean "uninstall" the phone from your computer.
Click to expand...
Click to collapse
Thanks. I will try it as soon as I get home from work.
Thanks again.
Thom47 said:
Well, try these. They're Samsung's USB drivers for our phone. If possible, try starting from the beginning eg. remove all traces of KIES and your phone, and then apply the downloaded driver. By this I mean "uninstall" the phone from your computer.
Click to expand...
Click to collapse
So, I used usbdeview to uninstall the device first. Then I uninstalled Samsung Kies. And finally Samsung USB drivers that get installed with Kies automatically.
I rebooted, just to be sure. Installed the drivers linked in Thom47's post, and rebooted again.
I ran the adb start-server. Connected my device (which was correctly recognized, just as before). The end result is the same. Although status gives a bit different numbers:
Code:
C:\Documents and Settings\Miki>adb shell ls
error: protocol fault (status 1b 5b 31 3b?!)
C:\Documents and Settings\Miki>adb shell
^C
But looking at the adb client source code, I see that the numbers represent 4 Bytes of data read from some file descriptor when getting adb status. It's a bit too late to follow up what file descriptor, but as readx (used to transfer the first 4B from file descriptor into buffer) is sometimes used for reading device drivers because of its portability, this definitely points a finger to some sort of driver issue.
Just thought that it might help to list connected devices when the phone is plugged in (debugging mode, of course):
ADB Interface->Samsung Android Composite ADB Interface
Disk Drives->SAMSUNG GT-I5800 Card USB Device
Modems->Samsung Android USB Modem (is this supposed to be here?)
USB Controllers->SAMSUNG Android USB composite device
Click to expand...
Click to collapse
Update: I just quickly skimmed through the code to see what is the file descriptor, and it's actually just a socket connection to ADB port. So, if I understood it correctly, the first 4B read by readx are reply from the device (?!). Still could be driver related in my opinion.
Thanks
Right, well that's where my knowledge on linux and stuff ends, so I think you should make a new thread to some general forum, since this might not be related to our phone only.
Will do. Thanks for the help.
--
Sent from my GT-I5800

Can't get USB drivers installed

I'm trying to get my ADB interface working via the male-to-male USB cable. I can't install the drivers. I'm running windows 7 64 bit and copying the DLL's from i386 (I have an intel processor) to c:\Windows\SysWOW64 then using the command prompt in administrator mode: regsvr32 "filename".dll and I get the message "the module 'module name' was loaded but the entry-point DIIRegisterServer was not found. Make sure that 'module name.dll' is a valid DLL or OCX file and then try again."
I've also tried installing the drivers from the device manager and selecting a path to the driver folder.
Af far as I can tell these are the universal USB drivers. Any ideas?
Phoenix4848 said:
I'm trying to get my ADB interface working via the male-to-male USB cable. I can't install the drivers. I'm running windows 7 64 bit and copying the DLL's from i386 (I have an intel processor) to c:\Windows\SysWOW64 then using the command prompt in administrator mode: regsvr32 "filename".dll and I get the message "the module 'module name' was loaded but the entry-point DIIRegisterServer was not found. Make sure that 'module name.dll' is a valid DLL or OCX file and then try again."
I've also tried installing the drivers from the device manager and selecting a path to the driver folder.
Af far as I can tell these are the universal USB drivers. Any ideas?
Click to expand...
Click to collapse
AARRGGHH! Windows and its damn' driver problems! First did you disable driver verification? If not Google it. Then install MoDaCo's drivers using the Windows GUI tools (IIRC you get there from Device Manager). If all that doesn't "take", my best advice is to wipe all trace of Windows off your computer and install a sane operating system. Too radical a fix? OK, your funeral, but here's a halfway fix: download this Puppy Linux live-CD .iso that I've doctored with Fastboot and ADB binaries, and burn it to a CD.
http://www.mediafire.com/download/62oh30gzjzvsbew/sulu2-528.007-android.iso
Make sure you know how to burn a CD from a .iso file. The end result will have files and folders, not just a single .iso file on it. It's a bootable CD, so you guessed it, boot your PC to the CD. Don't try to run it in a VM, it won't work. Click on the terminal icon on the desktop and you have a box that looks and acts like the Windows DOS box; the OS commands are somewhat different but the fastboot and adb ones are exactly the same. In fact the terminal is the same as the one in Android, and since both devices are Linux now, driver problems disappear!
Do whatever dastardly deeds you want to the MOJO with Fastboot or ADB, eject the Linux disc, reboot--and as far as your PC is concerned, it never happened. The live-CD won't leave a trace unless you specifically tell it to.
Most of the tutorials on this MOJO forum give commands like "fastboot-linux flash twrp(version), this is MoDaCo's version of Fastboot. I put this live-CD together using Google's binaries so that command would look like "fastboot flash twrp(version). Keep in mind that with the MOJO the device ID string is mandatory; see the TWRP recovery thread for details, but you can't just send "fastboot devices", it won't work, you must send fastboot -i 0x0738 devices, or go straight to flashing or booting.
Well I don't know if I just cleared the waters some or just stirred it up more, but good luck and I hope I helped a little anyway!
This was how I was able to install my drivers on my Win 7.
Assuming that you've downloaded the superboot-mmm file and you've extracted to your C: drive:
1. Go to Devices and Printers under Control Panel
2. Right Click on the Fastboot device, and click on Properties
3. Click on the Driver tab, and click on Update Driver (or click on Properties)
4. Click on Browse My Computer For Driver Software (manually)
5. Browse the following location (or copy and paste this: C:\r3-mojo-superboot-mmm\windows.driver)
6. Select Next
7. The driver will be installed
If you now replug the MOJO, you should be able to see Madcatz ADB Interface under Hardware Tab when you click Properties
Source: my blog
Hope it helps.
Yes! Thank you
Yes, the problem was I was going a folder too deep in selecting the driver from the device manager. Thank you.

A quick tutorial of installing Windows RT 8.1 on recent Lumia

2/18 Update:
USB charging and controller works, audio probably works. Here's some update on this project:
Battery
Put C:\DPP and C:\EFIESP back. Nokia's driver reads C:\EFIESP\Battery.json in kernel mode (WTF). If you have NokiaEnergyDriver.sys and other PMIC/PEP/MIPI BIF (on some models) drivers installed, you should get battery show up.
Sign drivers?
Yes. Sign everything to prevent bad things from happening. I used a commercial certificate for conveience , but you don't have to do that. Here's a handy script that generates a self-signed certificate and installs it on your phone: https://gist.github.com/imbushuo/4de89ad18a0f538d8ebd18bf6daca56a
Download it, run it as administrator and specify ImageDir to your phone's partition (in mass storage mode). Then sign all your drivers binaries (and catalogs as well) with the fingerprint provided.
When signing your drivers, remember timpstamp all drivers. DigiCert's help documentation is useful for signing binaries.
Turn off UMCI
See https://forum.xda-developers.com/showpost.php?p=36394268&postcount=222. Set UMCIAuditMode key to allow all desktop applications and UMDF drivers load.
Make USB work
You will need several supplemental drivers from Windows Phone: BattFltr.sys, CAD.sys, ufx01000.sys, ufxsynposys.sys (or ufxchipidea.sys, depends on your chipset). Copy registry keys (HKLM\ControlSet001\Services and HKLM\ControlSet001\Enum\ROOT\CAD / HKLM\ControlSet001\Enum\ROOT\BattFltr) add supplemental WDF registry keys. Some files are attached as attachments, so you can take a look to get some idea about that.
Make Windows Store Apps work on unsupported resolution
See my blog post.
---------
While this project is not totally finished (e.g. No Battery status/charging unknown, no cellular, no audio), I decided to post this thread as many people asked me about the tutorial. This is just a brief tutorial, you need to have plenty of time on this to make this happen. Be careful as some steps are very dangerous.
This tutorial is provided AS-IS, without any implicit or expressed warranties. By reading this brief tutorial, you are agreed that you are taking your own risk trying this. I am not responsible for any possible consequences of installing Windows RT or other non-Windows Phone OS on Lumia phones. If your phone ships with Windows 10 Mobile, then this tutorial might not fit you. You can try drivers from other models, but I have no guarantee on this.
General workflow
- Unlock your phone with WPInternals 2.4
- Enter mass storage mode, copy registry files from MainOS partition
- Copy files from DPP partition
- Download Windows RT 8.1 ISO (publicly available on Internet, Google it)
- Download a Lumia 2520 recovery image for some files (I will post these files later)
- Download a Windows Phone 8.1 firmware for your phone
- Extract drivers, re-assembly INF files
- Patch some drivers (see my note)
- Self-sign some drivers (see my note)
- Make sure you know what you are doing: Delete MainOS and Data partition, create new NTFS partition for Windows RT. Do not touch other partitions.
- Apply system image (dism works fine)
- Copy DPP files back (C:\DPP)
- Modify sysprep tasks (see my note)
- Apply BCD configuration
- Boot
- Let OOBE fail once
- Go to mass storage mode again, mount registry and force OOBE run again
- Have fun
Notes on this project
ACPI
Reading ACPI DSDT table will help you understand your phone architecture. ACPI tables are located in PLAT partition. It is easy to extract them with 7-zip (after converting FFU to VHD). To decompile dsdt.aml, you need to download iASL tool, which is available on Internet.
Certain devices, like touch screen or panel, require other devices have driver loaded and enabled. This is not shown in Qualcomm's ACPI implementation. In my case, I need PEP, PEP 3rd, GPIO, BAM, I2C Device, QMUX, Shared Memory drivers loaded to make touchscreen work. It varies by model.
Re-assembly INF files
Mount SYSTEM registry from your phone or FFU, go to DriverDatabase\DriverPackages\<Some Driver Package>, each key in driver package key matches INF sections respectively. See some driver INF files to get some idea.
Remember to check ControlSet001\Service for additional information if necessary. If you are working on Windows Phone 8.1 firmware, check \Windows\System32\Packages to make sure you've got correct files and registry configs. These files are gzipped.
Patch drivers
Certain drivers read DPP partition for device-specific calibration information. While Qualcomm shares the codebase between Windows RT and Windows Phone, DPP partition is handled differently between platforms. You can search Unicode string "PhoneNT" to determine whether drivers read DPP or not.
To fool drivers think they are living in Windows Phone, you can create another multi-string value in the ProductOptions key. I created a value called "AnotherSuite" and filled "PhoneNT" in. Then I modified all "ProductSuite" Unicode strings in drivers to "AnotherSuite". Remember to re-calculate linker checksum (dependencies) and PE checksum.
This is critical to make wireless (Wi-Fi and Bluetooth) subsystem work.
Graphics
DO NOT use user-mode driver module from WP on Windows RT. The Windows Phone Qualcomm GPU driver does not implement DirectX 9, which is required by Windows desktop. Using WP UM driver will crash DWM.
To correctly enable GPU acceleration, use kernel driver and decoder module from your firmware, and user mode driver from Lumia 2520's recovery image. At least this works on Lumia 640 XL.
Touchscreen
Touchscreen works, however, WP driver reports wrong metric system to Windows RT. To workaround this, modify SYSTEM\TOUCH key, make some value larger than expected. See my value for 640XL in attachment.
Remove some sysprep tasks
Remove BCD and WinRE specialization and generalization tasks from sysprep task definition. OOBE will fail still. Boot to mass storage mode, mount SYSTEM registry, change setup type to 1 (see your current OS for ideas about other values), change program path to oobe\msoobe.exe. You should be able to see normal OOBE then.
BCD and Driver Signing
Test signing should be on. Disabling integrity check is recommended (though documentation says this key is ignored prior to Windows 10). Copy catalogs to the new OS, and self-sign drivers you patched.
Kernel Debugger
To enable WinDbg KD, modify your phone BCD:
Code:
bcdedit /store <Path> /dbgsettings usb TARGETNAME:WOATARGET
bcdedit /store <Path> /set {Your OS GUID} Debug On
Connect your phone to PC, start WinDbg, USB kernel debugging, target name "WOATARGET".
Have fun with Windows RT on Lumia, I am going to continue working on audio and battery
Follow
Ty Imbushuo , GREAT WORK
didnt you forgot to make efiesp guid to a efi partition else bcd cant be updated
Is there a way to patch the kernel or a bypass to avoid SECURITY_SYSTEM BSOD on MSM8960 devices?
Thanks for your work. I hope to get a newer Windows Phone soon and try Win10PE, I'm working on a custom shell that hopefully grants it a good experience on handheld devices since we lack ARMv7 ShellExperiences
J0SH1X said:
didnt you forgot to make efiesp guid to a efi partition else bcd cant be updated
Click to expand...
Click to collapse
Qualcomm's firmware is weird, so I didn't do that. (They hard-coded something) Maybe I will try it later with a dev board and see what will happen.
Fantastic job :good:
Is it possible to enable a second external monitor via Miracast ?
What about bluetooth keyboard and mouse ?
Lumia 950/XL should also support 2x monitors ( DisplayPort/HDMI via USB-C ).
It also has more RAM and might run apps better than L640.
imbushuo said:
Qualcomm's firmware is weird, so I didn't do that. (They hard-coded something) Maybe I will try it later with a dev board and see what will happen.
Click to expand...
Click to collapse
thats weired on my 930 this is NEEDED to get rt to boot but weired enough my 640 lte doesnt boot it at alll but sadly i dont get how to reassamble the inf files (im litterally just comparing my compiled touch driver inf with the registry of my 930)
I can not find the windows rt on the Internet. Can I send the file link download?
imbushuo said:
While this project is not totally finished (e.g. No Battery status/charging unknown, no cellular, no r FFU, go to DriverDatabase\DriverPackages\<Some Driver Package>, each key in driver package key matches INF sections res
Click to expand...
Click to collapse
I use google translate so it's hard to follow, it's great when you have a video tutorial, everything is more intuitive and easy.
INF files Qualcomm ARM-based View attachment Inf.zip
prokakavip said:
I use google translate so it's hard to follow, it's great when you have a video tutorial, everything is more intuitive and easy.
Click to expand...
Click to collapse
If you are an end user I would recommend waiting for WPInternals partition dumps for your device
I knew this solution... so they cant make general Qualcomm drivers never. Device specification is nightmare. Better get a hammer and deepmagic
Thank you for all the effort of going through this and providing the information.
Can somebody whoever upload fixed registry files and drivers? i was able to follow all steps successfully (except these parts) but on first boot i just get a blue screen with a sad smiley.
Also, i assumed you meant applying the install.wim image via DISM from the Windows RT 8.1 ISO.
(For those who need more help with this, Google: "Append, apply, and export volume images with a Windows Image (.wim) file",
i'm not allowed to post links due to post count).
Die Anleitung ist jetzt auch in deutsch verfügbar und hier zu finden:
Windows RT 8.1 auf ein Lumia installieren
WPVision.de said:
Die Anleitung ist jetzt auch in deutsch verfügbar und hier zu finden:
Click to expand...
Click to collapse
I registered and it still said i'm not allowed to visit the forum because i dont have permission.
D-V-D-K said:
I registered and it still said i'm not allowed to visit the forum because i dont have permission.
Click to expand...
Click to collapse
That's correct, because you did not follow the guidelines.
The activation for this area is done manually by your first post.
Samuelgames said:
If you are an end user I would recommend waiting for WPInternals partition dumps for your device
Click to expand...
Click to collapse
Can you upload your partition dumps for 640xl?
Removed. Sorry I was being rash.
spavlin said:
INF files Qualcomm ARM-based View attachment 4410518
Click to expand...
Click to collapse
but theese inffiles arent redone from registry
for example touch driver is missing
imbushuo said:
- Download a Lumia 2520 recovery image for some files (I will post these files later)
Click to expand...
Click to collapse
Use at your own risk!
Some Lumia 2520 Firmware And Driver Update ‎10. ‎6. ‎2014:
Code:
http://au.ds.download.windowsupdate.com/c/msdownload/update/driver/drvs/2014/03/20623735_d3143757b17f94d00f53dc6f3f4dbdf48c36430e.cab
http://au.ds.download.windowsupdate.com/c/msdownload/update/driver/drvs/2014/03/20624060_4b5dec4829bf5e013bf5e6c045a4ed9367afe88d.cab
http://au.ds.download.windowsupdate.com/c/msdownload/update/driver/drvs/2014/03/20624064_70ea6951b8f7c7d72963c38e302356f46642ec85.cab
http://au.ds.download.windowsupdate.com/c/msdownload/update/driver/drvs/2014/03/20624552_3c10b74a53f010a90539ea1e606f562d65a03082.cab
http://au.ds.download.windowsupdate.com/c/msdownload/update/driver/drvs/2014/03/20626644_7f0f6945d5e0e19e78b3794490990145b98e2c0c.cab
http://au.ds.download.windowsupdate.com/d/msdownload/update/driver/drvs/2014/04/20639225_555ea122b93d34720513db1b344254a0a69a158c.cab
http://au.ds.download.windowsupdate.com/c/msdownload/update/driver/drvs/2014/04/20639552_08956ac77c46334650fc675794d58325f279ddbb.cab
http://au.ds.download.windowsupdate.com/c/msdownload/update/driver/drvs/2014/04/20640693_4d4f789e1349e350324fb7e31b60514ae191cb46.cab
http://au.ds.download.windowsupdate.com/c/msdownload/update/driver/drvs/2014/04/20642401_1278d3d9f4ae8d1903ec0c6f0861ec9912139b96.cab
http://au.ds.download.windowsupdate.com/c/msdownload/update/driver/drvs/2014/04/20643591_beca8afddf93a8679f6e875f5abfc44f9395975a.cab
http://au.ds.download.windowsupdate.com/c/msdownload/update/driver/drvs/2014/04/20643598_4a154479fe2ad83eef04c99e96e44b0e88efce8e.cab
http://au.ds.download.windowsupdate.com/c/msdownload/update/driver/drvs/2014/04/20643814_2d9a86009238af018f92aa76a9be453ef9231424.cab

Motion Sense Radar Bypass

Hello everyone! I'm looking some advice from the wise about bypassing the region restrictions for the Soli Radar (Motion Sense) in my Pixel 4. I am pretty new at running ADB (Android Debug Bridge) from my Windows PC. That said, I'm sure I overlooked something very simple. I can't get the commands to work at all. I followed the XDA YouTube video step by step on how to install and setup the SDK Platform tools on my PC. As well as how to prepare my device to receive commands from my PC. But it fails every time. I'm pretty sure that I'm just running the ADB incorrectly, but I don't know. I have only been able to find instructions on how to install and setup the SDK package. But no clear instructions on how exactly to utilize it. Again, I've never done this before. I am running the latest version on Android 10 on my phone and my PC is running Windows 10. And before running any commands, I verified that the device is in fact attached to the PC by running "adb devices" first. I wish there was an option to attach a screenshot of failure message I'm getting. But it says:
setprop: failed to set property 'pixel.oslo.allowed_override' to 'true'
I get this same failure when I run the alternative command line as well. And I have tried both command prompt and Power Shell and receive the same failure message. Anything advice that can be shot my way would be greatly appreciated. Thanks!
First check the windows 10 device manager to confirm that your device and computer are successfully connected.
Then try to replace with a new data cable, a USB 2.0 cable may be better.
Is the phone bootloader unlocked or have you rooted it yet? Honestly I am not sure if either of those are required for the changes, but I suspect they are. If you haven't rooted the phone yet, then I bet you don't have the correct privileges to make those kind of changes to the phone.

Categories

Resources