yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Android Development] XxLordxX:
Galaxy S4 Rooter!​

Features:

How to use:

Operational Systems Tested:

Operational Systems Covered:

To-do list:

Special Credits

Special Thanks:

Download Link:

https://www.dropbox.com/s/8xuzy7k6w2y7gov/S4.sh?dl=0
[Galaxy S 4 i9505 Android Development] XxLordxX:
Reserved for changelog
[Galaxy S 4 i9505 Android Development] antz88c:
will this work on mac or anything for mac?

thanks.
[Galaxy S 4 i9505 Android Development] XxLordxX:
Not yet, it requires a programme, however I can add soon and send to you test ;).

Thanks for the interest :)

"This Story Ends Where It Began" - Octavarium (Dream Theater)

Sent from my Galaxy S4
[Galaxy S 4 i9505 Android Development] antz88c:
Okay, let me know, so i can test . Thanks.
[Galaxy S 4 i9505 Android Development] nolinuxnoparty:
Awesome work Nick aka [MENTION=4169130]XxLordxX[/MENTION]

Hope to see more from you ;) (If you know what I mean ;))
[Galaxy S 4 i9505 Android Development] acey_zero:
Is this safe for an m919 (T-Mobile variant)?
[Galaxy S 4 i9505 Android Development] port76:
can I use on windows 7
[Galaxy S 4 i9505 Android Development] XxLordxX:
I never tested, so I can't tell you, I'll check the Root method for m919 and then I'll send you an updated script. But I've been quite busy, so I still have to develop the Mac script. As soon as I can I send you.

Windows relies on .bat files, which is very different from .sh, I was developing the Windows version, however I never ended, because as I said, I'm quite busy currently. As soon as I can I'll do it! But, you can try running it with Cygwin.

"This Story Ends Where It Began" - Octavarium (Dream Theater)

Sent from my GT-I9505
[Galaxy S 4 i9505 Android Development] acey_zero:
Thanks! I actually went ahead and figured out how to use Heimdall, but others might still find it useful to know.
[Galaxy S 4 i9505 Android Development] inga22:
Not working

When I get into recovery mode It get stucked "Your device must be restarting now...". I can click on "Mounts and Storage Menu" then on "Mount /system/". But it never get out of "Your device must be restarting now...".

It already changed the status to custom.

What can I do now?

Thanks for the linux script btw :D
[Galaxy S 4 i9505 Android Development] XxLordxX:
Okay, let's see what's the matter... You said you get the "Your device must be restarting now", so I guess your PC didn't recognize it after the recovery install, which I find weird, did you try running the script again?

I'm glad you liked the script :),

~Lord

"We think so supersonic and we make our bombs atomic" - Eagle Fly Free (Helloween)
[Galaxy S 4 i9505 Android Development] inga22:
Yes, I did it several times. When it gets to the "philz_touch" it don't recognize. When I restart it in the recovery mode again it goes to an android recovery mode and now the script ask to go to "Mount and Storage". I'm using opensuse 12.03 and heimdall 1.4.1
[Galaxy S 4 i9505 Android Development] XxLordxX:
Hi,

I slightly edited my script, so I believe you'll be able to get it now ;).

Good luck,

~Lord

PS.: Here's the link: https://docs.google.com/file/d/0B0KdSAj41Z3AM1pNSGhMZjVaVm8/edit?usp=sharing

"We think so supersonic and we make our bombs atomic" - Eagle Fly Free (Helloween)
[Galaxy S 4 i9505 Android Development] inga22:
Hey Lord, that worked! Thanks a lot! Now I need to discover what to do with a rooted phone (first android phone ever). :)
[Galaxy S 4 i9505 Android Development] Gnome:
This only works on I9505 right?
[Galaxy S 4 i9505 Android Development] XxLordxX:
For the time being yes, as soon as possible I'll update with GT-I9500 root method :).

"This Story Ends Where It Began" - Octavarium (Dream Theater)

Sent from my Monster S4
[Galaxy S 4 i9505 Android Development] Rogoshin:
Ubuntu 13.10

Will there be a version for 13.10 :confused:
[Galaxy S 4 i9505 Android Development] XxLordxX:
Hi,

Sorry, but the Ubuntu 13.10 still isn't supported by Heimdall, as soon as it is supported I will update the tool.

Also I have good news. I'm updating the script with a new method, still no updates for Mac neither GT-I9500, but as soon as the new method is finished I'll update with the GT-I9500 method.

~Lord

"This Story Ends Where It Began" - Octavarium (Dream Theater)

Sent from my Monster KitKated S4
[Galaxy S 4 i9505 Android Development] hohassan444:
I use heimdall on ubuntu 13.10 64 bit without problems .
[Galaxy S 4 i9505 Android Development] XxLordxX:
Hi,

So that means Ubuntu 13.10 can run this script, may I ask you which Heimdall version you ran? Then I will update the script text to let users run it on Ubuntu 13.10.

Thanks for the up,

~Lord

"This Story Ends Where It Began" - Octavarium (Dream Theater)

Sent from my Monster KitKated S4
[Galaxy S 4 i9505 Android Development] Jospo84:
Sorry but i have to ask! Does it trigger knox counter? I need to rooooooooooooooot!!
[Galaxy S 4 i9505 Android Development] XxLordxX:
Hi,

Yes it does, as it involves flashing a recovery. You can find a guide on Galaxy S4 development or Q&A probably ;).

~Lord

"Time is too short to cry, long enough to try." - March of Time (Helloween)

Sent from my KitKat Nexus 10
[Galaxy S 4 i9505 Android Development] Jospo84:
Hey..sorry if i bother someone..i read that knox 0x1 will block ota updates..is it true????
[Galaxy S 4 i9505 Android Development] XxLordxX:
Hi,

In the knox Q&A, it's reported that you can still receive updates with the knox 0x1, I recommend you checking it ;).

~Lord

"Time is too short to cry, long enough to try." - March of Time (Helloween)

Sent from my KitKat Nexus 10
[Galaxy S 4 i9505 Android Development] SeiferTV:
Used it on ubuntu 14.04 64 bits, picking the 13.10 settings. Evrything working just fine
[Galaxy S 4 i9505 Android Development] XxLordxX:
Hi,

Thanks for sharing this info! I'll add it right now to the OP ;).

~Lord
[Galaxy S 4 i9505 Android Development] lawrence750:
Has anyone tried this with a live distro of Ubuntu?
[Galaxy S 4 i9505 Android Development] mahdi87_gh:
After Downloadin everything i get this :

Rebooting...

/S4.sh: line 359: /usr/bin/adb: No such file or directory

You may need to read something...

Make sure you do it and press Vol+

Press [Enter] key when device is on download mode...

I checked, there is adb file in that directory! what's wrong?
[Galaxy S 4 i9505 Android Development] eilu1183:
This is amazing. I could kiss you! :good::D
[Galaxy S 4 i9505 Android Development] rsanjai:
does this script work on i9500??
[Galaxy S 4 i9505 Android Development] marcusw03:
Download Link Defunct

Add a new link or should we flag as defunct? Is that an option?
[Galaxy S 4 i9505 Android Development] XxLordxX:
Hi,

Sorry I didn't notice the link was down... I need to update some links within the script and I will reupload.

Thanks for notifying!

All the best,

~Lord

"And people think so supersonic and they make their bombs atomic" - Eagle Fly Free (Helloween)

Sent from my Nexus 10
[Galaxy S 4 i9505 Android Development] kingstondude:
recovery.img error

Rebooting...

You may need to read something...

Make sure you do it and press Vol+

Press [Enter] key when device is on download mode...

Checking if device is found...

Device detected

If it doesn't show, press Crt-C in..

5

4

3

2

1

0

Flashing recovery...

ERROR: Failed to open file "recovery.img"

Your device must be restarting now...

This is what I'm getting when I try to run this script.
[Galaxy S 4 i9505 Android Development] kingstondude:
Problem with the Philz touch zip file downloading??

Press [Enter] key to continue...

Downloading recovery...

--2016-03-27 09:57:55-- http://fs1.d-h.st/download/00056/cLG/philz_touch_5.08.0-i9505.zip

Resolving fs1.d-h.st (fs1.d-h.st)... 74.50.117.136

Connecting to fs1.d-h.st (fs1.d-h.st)|74.50.117.136|:80... connected.

HTTP request sent, awaiting response... 302 Moved Temporarily

Location: http://d-h.st/cLG [following]

--2016-03-27 09:57:56-- http://d-h.st/cLG

Resolving d-h.st (d-h.st)... 199.193.117.44

Connecting to d-h.st (d-h.st)|199.193.117.44|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: unspecified [text/html]

Saving to: ‘philz_touch_5.08.0-i9505.zip’

[ <=> ] 15,245 --.-K/s in 0.07s

2016-03-27 09:57:56 (219 KB/s) - ‘philz_touch_5.08.0-i9505.zip’ saved [15245]

Archive: philz_touch_5.08.0-i9505.zip

End-of-central-directory signature not found. Either this file is not

a zipfile, or it constitutes one disk of a multi-part archive. In the

latter case the central directory and zipfile comment will be found on

the last disk(s) of this archive.

unzip: cannot find zipfile directory in one of philz_touch_5.08.0-i9505.zip or

philz_touch_5.08.0-i9505.zip.zip, and cannot find philz_touch_5.08.0-i9505.zip.ZIP, period.

rm: cannot remove ‘META-INF’: No such file or directory

Dependecies download/setup complete!

Press [Enter] key to proceed with root...
[Galaxy S 4 i9505 Android Development] XxLordxX:
Hi,

Hmm... It seems to be having problems with the download, I'll check the script this weekend since I'm pretty busy until then. Thanks for notifying and sorry for the inconvenience..

All the best,

~Lord
[Galaxy S 4 i9505 Android Development] aquapark:
I downloaded the file directly and it extracted ok, but daemon doesnt' see the phone anyway. I think it's because now Verizon Galaxy s4 runs Android 5. I am on Ubuntu 12.10.
[Galaxy S 4 i9505 Android Development] XxLordxX:
Hi,

Sorry for taking so long... But have you tried turning on USB Debugging? Or could you be more specific regarding when the daemon doesn't see the phone?

All the best,

~Lord
[Galaxy S 4 i9505 Android Development] aquapark:
***Update. I got another laptop and tried ubuntu 16 on it. It has all the tools up to date. I installed adb tool and it was 1.32 version. I used kingroot on the phone. Then using adb and a bunch of other tools to dump phone memory and search for deleted pics.

Here is the write up: I can't post links here, just google "one way to use a linux computer to recover files from android"

****

Hi, sure I turned USB debugging on. I tried using "adb devices", but it shows the device "????? restricted" and then, when the

gvsf-mtp package detects and shows the contents of the phone, adb devices returns "[somename] offline"

I tried to solve this offline problem and found in other threads that it's due to old adb version - it doesn't work well with androind 5.0.1. I could not update adb though because the newer package required an updated openssl to 1.0.2 which for some reason I couldn't do in my ubuntu.
[Galaxy S 4 i9505 Android Development] greyoda:
There's a small bug in the Arch install, it downloads

heimdall.tar.xz

but then tries to install

heimdall.tar.x
[Upgrading, Modifying and Unlocking] obelix:
Since most of the retail HTC devices are bootloader locked, how do the flashing tools bypass this? In my experience if you go into bootloader flashing mode on a Himalaya or Blue Angel, if you try and use the mtty utility to flash a bin image using "l image.bin" you get an error of:

"Not allow operation" which means that the bootloader is locked to prevent flashing. Obviously the tools posted here don't hit this obstacle so I'm curious how that works. Also if you use the tools posted here to flash a different ROM, do any of these upgrades end up rewriting the bootloader as well to end up giving you an unlocked bootloader that would accept the load (l) commands to flash images?

I thought these devices required a special SDIO card only HTC has to unlock the bootloader.

Thanks for the info.
[Upgrading, Modifying and Unlocking] zxvf:
Bootloader

You can unlock some settings by using the PASSWORD BOOTLOADER command

worked for my HTC audiovox vx6600 Harrier (Verizon CDMA) but to load the .bin file with l It didn't seem to work I got not allowed, a way around that was to interrupt the process when doing a real upgrade and it should but u in a DBG> mode then u can do l file.bin (ones u connect using mtty) I've been wondering how do u send a .bin file using mtty, I didn't see any options besides downloading from it, but not uploading to it... can u help me with that step? where do I put the .bin file? or will it open a "file open" window when I type that command?
[Upgrading, Modifying and Unlocking] obelix:
Thats interesting! What does the PASSWORD BOOTLOADER do and where do you enter that command?

Can you detail more about what upgrade you interupted and how you interrupted it? Where do you see the debug mode? I would have tjought that interrupting the ROM flash would not affect the ability to access the load (l) command.

OK, to use a bin file you need to do this. Simply put the bin file in the same PC directory as the mtty utility (ie mtty16.exe) and then once you bring up the app in USB flashing mode you press Enter to get the prompt and then just type: l flash.bin

Basically whatever the local file name is type that name. If you want to place the image somewhere else then it would be something like:

l c:\flash.bin

Just keep the filename short to make it foolproof to type.

Let me know if you get get this to work. I'm curious if once this is done and you again boot up into USB flash mode and use mtty and then use the load command, do you now get it to work or do you again see the Not allow operation error.

What I am hoping is if doing a process of getting a new image on a Blue Angel (Harrier in your case) gets the bootloader in a state where it could be backed up and then restored onto a different device allowing its bootloader to be flash unlocked.

Have you seen any tools posted here to back up and restore the

BlueAngel bootloader?

This is fun stuff!
[Upgrading, Modifying and Unlocking] obelix:
That great info. You posted the syntax for the Task command but didn't say how you used it.

after the USB> prompt what did you type?

I'm assuming you use mtty and then do:

USB> PASSWORD BOOTLOADER

and then perhaps:

USB> task xx

but I dont know what values you used

and then:

USB> ds2 step #1

USB> ds2 step#2

so once you did that what ROM did you decide to load? I assume you went for some sort of CDMA flavor? What did you end up gaining from the upgrade since you were probbaly already on Windows Mobile 2003 SE

Thanks!
[Upgrading, Modifying and Unlocking] obelix:
looks like PASSWORD BOOTLOADER does not work. I got:

USB>PASSWORD BOOTLOADER

Invalid command : PASSWORD

For a help screen, use command ? or h

is that how it works?

How did you do the method from your original post where you somehow interrupted a flash and then were able to use the l command?

Thanks.
[Upgrading, Modifying and Unlocking] zxvf:
No it should have said something similar to this:

USB>l

Not allow operation!

USB>help

Invalid command : help

For a help screen, use command ? or h

USB>password boot

HTCSInvalid password.R¿ËPHTCEUSB>

USB>password bootloader

HTCSInvalid password.R¿ËPHTCEUSB>

USB>password BOOTLOADER

HTCSPass.< YHTCEUSB>BOOTLOADER

I did a couple typos so u can see what I get when it doesn't like the password.

I havn't decided on what to load I was trying to load the latest bootloader which is for the himalaya, and I did what u said l c:\wall515.bin and it said something like :F=c:\wall515.bin and then preparing to send, and nothing happened after that, the terminal locked i did a couple ctrl + (a key) to try and get out it seems that i got out with ctrl + a (perhaps abort) ?

I did realize though that I was in the CDMA DBG> section, not just the DBG> like before this might be because I interrupted a radio upgrade, and not a regular WCE upgrade / etc so I'm going to try and do it again, this is my main phone so I have to keep it working so I immediately just undid everything.

and as for the syntax for d2s:

d2s hex_start_location amount_to_copy

so for example say my RADIO starts at address 60000000 and I want to copy 5MB then the proper command would be

ds2 60000000 00500000

you should get something like

SD:Waiting for card insert.........

CMD3 for SD, it's OK, ready to get RCA from response.

SD:Detected one card

SD:ready for transfer OK

Total card size=1D50000ze=0

****************

Store image to SD/MMC card successful.

but u will have to be identified in order for any of the commands to work, what version do u have (what phone, model, etc.. ) GSM or CDMA? etc

I also have a program that can be used to dump the ROM from the command prompt.. u might of heard of it already, dumprom.exe and memdump.exe and a new one called mtrw which seems promesing but it doesn't seem to allow u to enter a password I think it's programmed to do that automagically, i'm going to try and get the source code, and fix it so it does.. also get a closer look on what it's actually doing

p.s the syntax of the others are basically the same

for task u would do something like

task 7 0

Type(hex) 7: Do flash ROM lock/unlock and [value]: 1(lock) and 0(unlock).

also check out this site:

http://wiki.xda-developers.com/wiki/HimalayaBootloader

alrighty heading to bed

tty tommorow
[Upgrading, Modifying and Unlocking] obelix:
That password technique worked but didn't really have an effect. I was already able to do the d2s command.

I sure would like to get the (l) command working and get past the Not allow operation! error.

Did you say you had been trying a Himalaya bootloader on your Harrier?

I have never seen that DBG> mode you were referring to. how do you get into that mode?

Thanks for the great info.
[Upgrading, Modifying and Unlocking] obelix:
grabbing that bootloader

I saw you said that you dumped the bootloader. I have not seen a tool that does that for a BlueAngel & Harrier. Ideally if somebody came up with an unlocked bootloader then that tool could maybe be used to dujmp that unlocked bootload and then push it to another device.

It sounds like your interrupt technique might be safest to try with an upgrade that only is doing the ROM and nothing else. if there is one thing I've seen hose HTC devices up badly is a messed up radio flash.

Have you been interrupting an upgrade using BaUpgradeUt.exe or doing a boot and restoring from SD card?
[Upgrading, Modifying and Unlocking] mamaich:
Re: grabbing that bootloader

what? Any tool that dumps ROM can dump a bootloader. Or even more. You can extract bootloader from any ROM update.
[Upgrading, Modifying and Unlocking] obelix:
I dont doubt it but without knowing how large and the location of a Blue Angel bootloader I wouldn't know where to begin. I wouldn't necessarily want a bootloader from a ROM update as it would be more useful to extract a bootloader from a bootloader unlocked device and then use that to unlock another. HTC has most of its retail Blue Angel & Hima devices bootloader locked so that if you prefer to go through the mtty utility and do a "l blueangel.bin" technique to flash the OS thats going to fail. So that leaves converting a .bin to a .nbf file or replacing the locked bootloader with one thats unlocked.

Are there places in the wiki that detail the positions of the bootloader within Blue Angel memory?
[Upgrading, Modifying and Unlocking] obelix:
zxvf, did you say you were using the himaupdate program to do the flash? I thought that BaUpgradeUt.exe needed to be used. BaUpgradeUt.exe does not give any messages that say that say it is erasing ROM. Also since the BaUpgradeUt.exe depends on an ActiveSync connection, how can you start the upgrade and then disconnect at the right moment and then plug in the cable and get to mtty? I only know about getting to the command line interface via the mtty app.

Curious to hear more!
[Upgrading, Modifying and Unlocking] J.S.:
Seems that the guy above is having a leaked version of Magneto for BlueAngel and he is not willing to share it.

There is no .bin file out there from HTC. Only Microsoft released the Magneto update as a .bin file.

So before helping him he should clarify why he want all the info from here and is not sharing his Magneto image.

John
[Upgrading, Modifying and Unlocking] obelix:
nope no Magneto stuff. I am strictly trying to work out the the innards of the mtty program and how to get past the locked bootloader. I could have been doing this on my Wallaby and Himalaya as well but am playing with the BA for now. From what I hear you'll never see Magneto on a Blue Angel, its already end of life. If it ever shows up it will simply be some mobile operator's experiment. I dont trust those folks to release any upgrades, they only want to sell new devices.
[Upgrading, Modifying and Unlocking] Kevlar-Source:
Bootloader dumping and flashing

I seriously advise you not to try that...

I tried that on 2 different Blue Angels an they go trashed.

Back to scrap.

Although you can get the exact blocks to extract and the exact memory intervals they are allocated in you have no way to determine if thay are the same on the "destination" BA, Therefore, you take an enormous risk on doing this.

I tried to do thatbecause on Portugal Operators sim-locked BA the lock information is actually on the bootloader.

Till now... No luck.

I even considered payinf the £20 IMEI-CHECK ask for but i think that it is not as thrilling as trying to do it by yourself, with your own work and burnt lashes. Apart from that, £20 are allways £20 :wink:

By the way, any development on the BA sim-unlocking ?

Cheers :)
[Upgrading, Modifying and Unlocking] zxvf:
sorry for not responding any sooner but I hadn't been able to get online, anyways, there are MANY tools as mamiach (pardon if I typed it incorrectly) that you can use to extract the bootloader, and I'm actually quiet confused on what program I've used I though they were just different versions, and a little bit different, never actually knew one was for upgrades and the other one was for full installs.. what I think I did was while it was trying to right to the bootloader I must have interrupted it and it might have immediately put it self in full acess / dbg mode (this is just IMHO) in order to save it self.. because I do recall it even said it on the screen I've tried and tried, and i'm kinda close to giving up thus, It's been twice that I almost didn't have a phone :/ if you need any programs u are sure to find them on the xda-dev FTP, and/or my website http://www.hexcode.net/xda-dev its a mirror or XDA-DEV that the Admin's been using to restore the site.. I'm currently in the process of installing Windows Mobile 2005, but not having much luck, I'm going to keep on trying, oh yea, when I unpluged it, I right away plugged it into the cradle again, and made activesync disabled, and start mtty and thats how I got the DBG> mode. other then that I'm not sure what to say, there are also programs that suppose to help u with installing new bootloaders like pnewbootloader.exe but they seem to be for the XDA2 so I'm not sure if they work, also if this might be of any help another password I've found that they are using is AYaLaMiH (himalaya spelled backwords) hope that helps.. ciao