Verizon unlock/tmobile unbrick image - T-Mobile Samsung Galaxy S 5

I'm working on a method by which I would be able to completely unlock the bootloader on a g900v, but I need someone here to run this command: busybox dd if=/dev/block/mmcblk0 of=/sdcard/unlockbin.bin bs=500000000 count=1
and upload the file and post a link here. This needs to be from a t-mobile g900t phone, and I would really prefer it be the block count I specified, definitely not smaller. Thanks in advance for the help, I really think this will work :fingers-crossed:
edit: I found a file for it elsewhere if a mod wants to remove this thread

Related

[Q] How to make odin flashable files

Hi
As topic says, it was easy (was a well informed thread) to do on the SGS1.
Now that the SGS2 used EXT partitions and has a different system structure, does anyone know how to do this?
Will love to know.
Thank you!
This should help:
http://forum.xda-developers.com/showthread.php?t=1081239
That helps a bit,
But still, isn't there a way to use "DD" command in adb to dump the files?
Sure, you can use dd from an ADB shell as well, but those raw dd dumps are not directely flashable via Odin - sadly.
For that one would need to do the repacking part of the above linked thread, those .img's should then be flashable via Odin (I have yet to try myself, but I'm interested in this as well, so I might give this a shot over the weekend or so).
Do you know what blocks I need to dump?
Or can you refer me to a list?
If I have the block addresses I could try it myself as well
Here you go:
http://forum.xda-developers.com/showpost.php?p=16058773&postcount=5

[SOLVED][$300][BOUNTY] Making your own PG05IMG, Flashing Roms with ADB

** ADMINS/MODS, if your going to delete this thread, if you dont' mind please advising me on the correct way to post this or correct place, Thanks **
******************************************************
QUESTION: How can I create a update.zip (i.e., PG05IMG.zip) for the thunderbolt and then flash it with fastboot or in bootloader.
ANSWER: Flash a rom on your phone and then using adb
adb shell dd if=/dev/block/mmcblk0p25 of=/sdcard/system.img
Make a zip folder and put in it system.img along with boot.img from the
rom zip and whatever other partitions you want, perhaps a radio
mdm9k.img and radio.img along with a recovery.img and you can
make your own little custom rom to be flashed with fastboot or as an
update, then you can either put it on the sd card as an PG05IMG.zip and do
a bootloader update (s-off only) or fastboot flash zip (zipname.zip)
for eng-hboot only... really cool.
******************************************************
******************************************************
******************************************************
******************************************************************************************************************************************************************
1. Ok I've been trying dilligently in the past to do 2 things. I want to create my own SYSTEM.img from the roms i'm making so I can create PG05IMG's instead of .zips to flash, that way i can include the radio etc., this is for learning purposes (PLEASE DO NOT SUGGEST WELL KNOWN METHODS OR SIMPLY QUESTION WHY IM DOING THIS UNLESS ITS INVOLVED IN THE SOLUTION PROCESS.)
I have tried several different methods for backing up my system.img etc., I need someone to help me with this, and I'm willing to donate to get this done.
2. Secondly, I need to figure out a way to flash roms from command line using adb while the phone is in recovery, I don't have any problem flashing roms with fastboot if someone can show me or explain how to make the system.img actually work.
Already tried this:
Code:
adb push C:\ROM.zip /data/
adb shell
recovery --update_package=DATA:ROM.zip
This would simply make the thunderbolt go to an exclamation point and do nothing.
I was however able to get this to work on the same version of recovery 5.0.2.1 on a Nexus S I9020T, but not on the Thunderbolt ADR6400L.
Simple anlysis of questions
1. How can I turn a rom.zip (system folder) into a (system.img) "fastboot flashable"
2. How can I take a rom.zip and flash it in recovery using adb
Donation negotiable, and I appreciate any time/clues/answers/suggestions, but I really need to figure this out.
Hi there,
I have a plan in the works already since the beginning of last month. I call it CASUAL. Cross-platform Adb Scripting, Unified Android Loader. Its purpose is to do exactly what you wish. This is a project I intend to begin work on next month. I've set up a repository for the work and I will begin soon. Basically, it will do exactly what you want.
Edit: I do not intend on rushing for the bounty. My goal is to do it right. If someone wishes to rush it, go ahead and collect the bounty. My goal is to provide something which will create an infrastructure contained within a single cross-platform java file. I've got most of the heavy lifting already done from my Heimdall one-click project. However, in order to complete the job, it seems that I must reformat my desktop because my IDEs are acting wonkey.
AdamOutler said:
Hi there,
I have a plan in the works already since the beginning of last month. I call it CASUAL. Cross-platform Adb Scripting, Unified Android Loader. Its purpose is to do exactly what you wish. This is a project I intend to begin work on next month. I've set up a repository for the work and I will begin soon. Basically, it will do exactly what you want.
Edit: I do not intend on rushing for the bounty. My goal is to do it right. If someone wishes to rush it, go ahead and collect the bounty. My goal is to provide something which will create an infrastructure contained within a single cross-platform java file. I've got most of the heavy lifting already done from my Heimdall one-click project. However, in order to complete the job, it seems that I must reformat my desktop because my IDEs are acting wonkey.
Click to expand...
Click to collapse
Adam thanks for your response, really great to hear and the fact that your not rushing for money is great too I understand. But hey, without regard to the cross platform ADB rom flasher, can you just point me in the right direction as far as where to go to learn how to say, "make a system.img of a rom" so I can fastboot flash it..
Like so I can take a rom zip and be able to turn it into a system image that is fastboot flashable on the thunderbolt... at that point i can just manually flash the boot.img and radio and i'm good to go.
So if i can just figure out how to do that one little thing that would be huge and much appreciated... thanks so much man. I will gladly donate for an answer to this question.
halfcab123 said:
Adam thanks for your response, really great to hear and the fact that your not rushing for money is great too I understand. But hey, without regard to the cross platform ADB rom flasher, can you just point me in the right direction as far as where to go to learn how to say, "make a system.img of a rom" so I can fastboot flash it..
Like so I can take a rom zip and be able to turn it into a system image that is fastboot flashable on the thunderbolt... at that point i can just manually flash the boot.img and radio and i'm good to go.
So if i can just figure out how to do that one little thing that would be huge and much appreciated... thanks so much man. I will gladly donate for an answer to this question.
Click to expand...
Click to collapse
Generally, to flash a ROM, you type:
Code:
adb reboot bootloader
then on your desktop you use fastboot and type
Code:
fastboot oem unlock
fastboot flash your partition your file...
I'd follow this guide to get S-OFF: http://forum.xda-developers.com/showthread.php?t=1310014 then find your neato-bandito rom from this forum: http://forum.xda-developers.com/forumdisplay.php?f=943 and flash it.
AdamOutler said:
Generally, to flash a ROM, you type:
Code:
adb reboot bootloader
then on your desktop you use fastboot and type
Code:
fastboot oem unlock
fastboot flash your partition your file...
I'd follow this guide to get S-OFF: http://forum.xda-developers.com/showthread.php?t=1310014 then find your neato-bandito rom from this forum: http://forum.xda-developers.com/forumdisplay.php?f=943 and flash it.
Click to expand...
Click to collapse
Thanks Adam, but, I already know how to flash partitions in fastboot, but what i need to know is how to "make" partitions. as in like, take a system folder and turn it in to a system.img so i can fastboot flash system system.img
Please please need to know thanks
halfcab123 said:
Thanks Adam, but, I already know how to flash partitions in fastboot, but what i need to know is how to "make" partitions. as in like, take a system folder and turn it in to a system.img so i can fastboot flash system system.img
Please please need to know thanks
Click to expand...
Click to collapse
That's not overly hard to do. There's a guide I think on the cyanogen website for how to do it. Basically you use the "dd" tool in linux.
yareally said:
That's not overly hard to do. There's a guide I think on the cyanogen website for how to do it. Basically you use the "dd" tool in linux.
Click to expand...
Click to collapse
Dude please, can you walk me through it, like I said I'll donate. Or alteast give me a link to where its at, then i'll turn this post into a how to for noobs. I learn at 300,000,000 m/s^2
halfcab123 said:
Dude please, can you walk me through it, like I said I'll donate. Or alteast give me a link to where its at, then i'll turn this post into a how to for noobs. I learn at 300,000,000 m/s^2
Click to expand...
Click to collapse
It looks like there's a stupidly large amount of partitions on the Thunderbolt. if you can do this:
Code:
adb shell mount
and get the partition information, I can tell you how to do a backup and restore.
it will be something like this.. this gets run once to get a temporary storage area on the /sdcard
Code:
adb shell mkdir /sdcard/mybackup
Code:
mkdir /PATH/TO/YOUR/DESKTOP/backup
adb shell dd if=/dev/block/mmcblk0p25 of=/sdcard/mybackup/system.img
adb pull /sdcard/mybackup/system.img /PATH/TO/YOUR/DESKTOP/backup/system.img
These commands do: make a new folder for working on your desktop. direct disk backup of mmcblk0p25 (SYSTEM partition). Pull the system.img to your working folder on your desktop.
If you have your image on a Linux or Mac desktop, you can mount it like this..
Code:
cd /PATH/TO/YOUR/DESKTOP/backup
mkdir MountFolder
sudo mount ./system.img ./MountFolder
#if this doesnt work, then do this
sudo mont -o loop -t ext3 ./system.img ./MountFolder
you can make changes to the system which has been mounted onto your computer. Then unmount it and push it back to your device.
to unmount and flash it back you do this:
Code:
sudo umount ./MountFolder
adb push /PATH/TO/YOUR/DESKTOP/backup/system.img /sdcard/mybackup/system.img
adb shell dd if=/sdcard/mybackup/system.img of=/dev/block/mmcblk0p25
This pushes your backup to your device, then does a direct disk write of the image file to the disk partition
↑ last poster pretty much sums it up in detail
AdamOutler said:
It looks like there's a stupidly large amount of partitions on the Thunderbolt. if you can do this:
Code:
adb shell mount
and get the partition information, I can tell you how to do a backup and restore.
it will be something like this.. this gets run once to get a temporary storage area on the /sdcard
Code:
adb shell mkdir /sdcard/mybackup
Code:
mkdir /PATH/TO/YOUR/DESKTOP/backup
adb shell dd if=/dev/block/mmcblk0p25 of=/sdcard/mybackup/system.img
adb pull /sdcard/mybackup/system.img /PATH/TO/YOUR/DESKTOP/backup/system.img
These commands do: make a new folder for working on your desktop. direct disk backup of mmcblk0p25 (SYSTEM partition). Pull the system.img to your working folder on your desktop.
If you have your image on a Linux or Mac desktop, you can mount it like this..
Code:
cd /PATH/TO/YOUR/DESKTOP/backup
mkdir MountFolder
sudo mount ./system.img ./MountFolder
#if this doesnt work, then do this
sudo mont -o loop -t ext3 ./system.img ./MountFolder
you can make changes to the system which has been mounted onto your computer. Then unmount it and push it back to your device.
to unmount and flash it back you do this:
Code:
sudo umount ./MountFolder
adb push /PATH/TO/YOUR/DESKTOP/backup/system.img /sdcard/mybackup/system.img
adb shell dd if=/sdcard/mybackup/system.img of=/dev/block/mmcblk0p25
This pushes your backup to your device, then does a direct disk write of the image file to the disk partition
Click to expand...
Click to collapse
This is very informative and I actually realized something that I think will definitely help me, however its kinda not really the answer to my question.. and at the same time it is kind of another solution to the question that I asked.
What I asked was how to turn the system folder from a *.zip "rom" into a system.img that was fastboot flashable
You basically told me how to make a backup of the system, modify, and flash back to my phone.... which is interesting...
Basically what I take from this, please let me know if i'm on the right track here:
If the goal is to flash a rom on an htcdev unlocked phone one would:
(assuming system.img already created from backup, flashing to another phone)
Code:
adb reboot recovery
adb shell dd if=/dev/zero of=/dev/block/mmcblk0p6 (data wipe)
adb shell mount /sdcard/
adb shell dd if=/sdcard/system.img of=/dev/block/mmcblk0p25
adb reboot bootloader
fastboot erase cache
fastboot flash boot boot.img
fastboot reboot
After trying this, I was both unable to mount sd card for some odd reason
using adb shell mount /sdcard/ and I was also unable to wipe data
at partition mmcblk0p6 with /dev/zero it just hung for 4 minutes.. does it take longer ? I ended it.
My only other option that I can think of is to downgrade the thunderbolt and run revo to get s-off and then make a PG05IMG.zip with a custom system.img and boot.img and flash it as a PG05IMG.zip in bootloader... so coming from this direction which seems to be much much easier, if I say took a PG05IMG for the MR4 (2.11.605.9) replaced the hboot with an eng-hboot, replaced the system.img and the boot.img would it work ??? I'm going to try it lol, probably going to be an epic fail.. any comments appreciated.
UPDATE: after posting this I realized that with a revolutionary s-off, the hboot is protected from being updated with an RUU, in bootloader so I would not have to worry about replacing the HBOOT, the only reason I even mentioned it was because I know that the hboot in the official MR4 RUU is the dev method supported hboot and would probably throw a security warning after flashing... etc., once again any help is great.
There is no direct 1:1 way to convert. However, you can use the update script in the Meta folder as a guide. It will have information to copy files into the system folder and applysymlinks. The commands used by recovery all have a Linux equal.
Delete = rm
Delete recursive = rm -rf
symlink = ln -s
copy = cp
These are android recovery commands which must be translated to their Linux shell equivalants.
AdamOutler said:
There is no direct 1:1 way to convert. However, you can use the update script in the Meta folder as a guide. It will have information to copy files into the system folder and applysymlinks. The commands used by recovery all have a Linux equal.
Delete = rm
Delete recursive = rm -rf
symlink = ln -s
copy = cp
These are android recovery commands which must be translated to their Linux shell equivalants.
Click to expand...
Click to collapse
what if i just straight take the system.img and boot.img and throw them in a PG05IMG.zip and use bootloader to update, will that work ?
halfcab123 said:
what if i just straight take the system.img and boot.img and throw them in a PG05IMG.zip and use bootloader to update, will that work ?
Click to expand...
Click to collapse
I don't know what a pg05img is. However, with samsung devices, we use dd'd system images to flash with Odin. Odin works sorta like fastboot. I don't know if that will help you because I generally use Samsung devices and Samsung does things differently than the rest of Android. From what I understand, fastboot flashing is similar, but I don't know if you can DD an image from a device and just fastboot flash it back onto a device. You can do this with Odin. I don't think there are provisions for flashing images in recovery directly. They DO have executables encorperated within zip files for flashing modems and bootloaders. Before trying a non-standard flashing method, you need to do some reading. It can be risky.
AdamOutler said:
I don't know what a pg05img is. However, with samsung devices, we use dd'd system images to flash with Odin. Odin works sorta like fastboot. I don't know if that will help you because I generally use Samsung devices and Samsung does things differently than the rest of Android. From what I understand, fastboot flashing is similar, but I don't know if you can DD an image from a device and just fastboot flash it back onto a device. You can do this with Odin. I don't think there are provisions for flashing images in recovery directly. They DO have executables encorperated within zip files for flashing modems and bootloaders. Before trying a non-standard flashing method, you need to do some reading. It can be risky.
Click to expand...
Click to collapse
I just made my own PG05IMG.zip and updated in bootloader and it booted into a custom rom, and this is after i erased userdata, cache, system, so i know it works, i even
fastboot oem rebootRUU
fastboot flash zip "customzip.zip"
and that worked too, so stoked man, I can't believe I finally figured it out.
As soon as you told me the mmcblk0p25 could be backed up, it clicked, funny thing is I knew that but I guess I just didn't think it was that simple.

Requesting Unbrick img for MJ7 for hard bricked

I know not a lot of people have their MJ7 rooted at this point but for those who did it can you upload an unbrick image archived using the following code
Code:
su
dd if=/dev/block/mmcblk0 of=/sdcard/backup.bin bs=1024 count=131072
I am trying the SD card unbrick method to see if I can unbrick my hard bricked (bootloader flashed) phone.
this is one of the many guides for the method: http://forum.xda-developers.com/showthread.php?t=2369125
the img file size should be 128mb, so please zip/compress before upload.
Thanks in advance!
Ah I see you requested me to upload one in the other thread. Sorry I didnt see your message. But bootloader version does matter. That being said I would upload one if I had an MJ7 debrick image. C'mon people upload this, it would also help development because we'd be able to experiment knowing we could unbrick. OP let me know if you need help creating it after someone hopefully uploads one.
Sent from my SCH-I545 using XDA Premium 4 mobile app
I am a complete noob, but my MJ7 S4 is rooted. Can you help me figure out where I'm supposed to put this code?
TheOnlyChicken said:
I am a complete noob, but my MJ7 S4 is rooted. Can you help me figure out where I'm supposed to put this code?
Click to expand...
Click to collapse
Yes if launch any command shell apps like Busybox and type in
Code:
su
dd if=/dev/block/mmcblk0 of=/sdcard/mmcblk0.img bs=1M count=100
It would copy the debrick img file from your phone onto your SD card and then if you don't mind please upload that file. Thanks!
Oops I have to have 10 posts for some reason... What should I do? Can I private message you or something? BTW the file is 100b, did I do something wrong?
I have a rooted S4 on mj7, let me know if you still need this
Sent from my SCH-I545 using xda app-developers app
Here's mine.
Maybe itll help someone let me know what else i can do.
I'm on MJ7 rooted.
arrowproof said:
Yes if launch any command shell apps like Busybox and type in
Code:
su
dd if=/dev/block/mmcblk0 of=/sdcard/mmcblk0.img bs=1M count=100
It would copy the debrick img file from your phone onto your SD card and then if you don't mind please upload that file. Thanks!
Click to expand...
Click to collapse
Let me know if that's what you were looking for.
Verizon Galaxy S4
# MJ7 #
ALL Knoxed Up!
Mistertac said:
Let me know if that's what you were looking for.
Verizon Galaxy S4
# MJ7 #
ALL Knoxed Up!
Click to expand...
Click to collapse
hmm I guess 1M doesn't register on the phone... can you try again with this
Code:
su
dd if=/dev/block/mmcblk0 of=/sdcard/backup.bin bs=1024 count=131072
the file size should be 128mb and then please zip/compress before upload. thanks
Here you go, I verified it was 128mb. It exceeds upload limit, so added to my dropbox.
https://www.dropbox.com/s/nsjor6ida1132cw/backup.zip
arrowproof said:
hmm I guess 1M doesn't register on the phone... can you try again with this
Code:
su
dd if=/dev/block/mmcblk0 of=/sdcard/backup.bin bs=1024 count=131072
the file size should be 128mb and then please zip/compress before upload. thanks
Click to expand...
Click to collapse
Here's mine as well. Verified 128mb.
https://www.dropbox.com/s/0yjgduyqg5ecgyd/backup.zip
Verizon Galaxy S4
# MJ7 #
ALL Knoxed Up!
Let us know if it works OP. I couldnt get MDK or ME7 to go reliably.
Sent from my SCH-I545 using XDA Premium 4 mobile app
failed
tried 3 different debrick file all failed to even get the phone turn on
arrowproof said:
tried 3 different debrick file all failed to even get the phone turn on
Click to expand...
Click to collapse
Try win32 disk imager on a class 10 sdcard mTching phone internal storage

Dump bootloader images

Someone mind dumping the bootloader image for this device?
if you are savvy with adb it can be done via rooted adb shell
Code:
dd if=/dev/block/mmcblk0 of=/sdcard/Unbrick_Files/unbrick_sm-g900t.img bs=4096 count=50000
or if you want quick and easy this flashable zip will dump the image, zip it up and put it on your sdcard for faster uploading
http://shabbypenguin.com/getdownload.php?file=Tools/Unbrick-Creator.zip
shabbypenguin said:
Someone mind dumping the bootloader image for this device?
if you are savvy with adb it can be done via rooted adb shell
Code:
dd if=/dev/block/mmcblk0 of=/sdcard/Unbrick_Files/unbrick_sm-g900t.img bs=4096 count=50000
or if you want quick and easy this flashable zip will dump the image, zip it up and put it on your sdcard for faster uploading
http://shabbypenguin.com/getdownload.php?file=Tools/Unbrick-Creator.zip
Click to expand...
Click to collapse
Hey Shabby o/ nice too see a familiar user around. Just moved from sprint. If no one else does it I can do it later =)
Shoulon said:
Hey Shabby o/ nice too see a familiar user around. Just moved from sprint. If no one else does it I can do it later =)
Click to expand...
Click to collapse
Thanks, but im only visiting
i actually moved back to sprint. tmobile has some good deals and its awesome using any gsm device, but signal inside my house is terrible. i hopped on a fellow dev's framily plan so its 25 a month, plus 15 a month for a nexus 5. stinks to be locked to certain devices, but in my area spark is about to light up and at least now im no contract with em .
shabbypenguin said:
Someone mind dumping the bootloader image for this device?
if you are savvy with adb it can be done via rooted adb shell
Code:
dd if=/dev/block/mmcblk0 of=/sdcard/Unbrick_Files/unbrick_sm-g900t.img bs=4096 count=50000
or if you want quick and easy this flashable zip will dump the image, zip it up and put it on your sdcard for faster uploading
http://shabbypenguin.com/getdownload.php?file=Tools/Unbrick-Creator.zip
Click to expand...
Click to collapse
Here you go! http://www.mediafire.com/download/8e1cdcj7dho92b1/unbrick_sm-g900t.img.gz
You making something for us, Shabby?
BLuFeNiX said:
Here you go! http://www.mediafire.com/download/8e1cdcj7dho92b1/unbrick_sm-g900t.img.gz
You making something for us, Shabby?
Click to expand...
Click to collapse
Thanks!, and actually. you just did
this is an image that can be used with sdcard booting and unbrick peoples phones . ill probably bug someone like @mattlgroff to do the writeup tutorial though, hes a bit more known on the TMO side of things.
shabbypenguin said:
Thanks!, and actually. you just did
this is an image that can be used with sdcard booting and unbrick peoples phones . ill probably bug someone like @mattlgroff to do the writeup tutorial though, hes a bit more known on the TMO side of things.
Click to expand...
Click to collapse
Awesome! I can't wait to see what comes of this.
shabbypenguin said:
Thanks!, and actually. you just did
this is an image that can be used with sdcard booting and unbrick peoples phones . ill probably bug someone like @mattlgroff to do the writeup tutorial though, hes a bit more known on the TMO side of things.
Click to expand...
Click to collapse
baiscally woould it work the same way like the N900T SD boot tutorial just use this IMG file i guess??
man if you explain to me i can write it even in spanish
Gracias amigos
what ever became of this?

Need Debrick.img for g900t3

Can someone with a g900t3 that's rooted make a debrick.img for me
To create a Debrick IMG :
You need to be rooted
Need to install busybox
Need terminal emulator
Open terminal and type
busybox dd if=/dev/block/mmcblk0 of=/sdcard/200mb.img bs=4096 count=50000
After running that command you should find a img in your sdcard can someone upload that img for me.
Just bricked my G900T3 today, so I'm also interested

Categories

Resources