[Q] S4 Root on Mac - T-Mobile Samsung Galaxy S 4

I just got the S4 brand new and now im trying to root it.
Ive tried the mottochopper and it installs Super user but when I open it, it says the superuser binary (su) must be updated. and when I click install it says that there was an error installing.
So what should I do now?

I made a tutorial for this: http://forum.xda-developers.com/showthread.php?t=2442262

theexel said:
I made a tutorial for this: http://forum.xda-developers.com/showthread.php?t=2442262
Click to expand...
Click to collapse
Thanks for the reply.. Ive tried this too and in terminal i get this:
Chases-MacBook-Pro:~ ChasePierce$ sudo heimdall flash --recovery untitled \Users\chasepierce\Desktop\recovery.img--cache untitled\Users\chasepierce\Desktop\cache.img.ext4
Password:
Sorry, try again.
Password:
Invalid argument: UserschasepierceDesktoprecovery.img--cache
Action: flash
Arguments:
--repartition --pit <filename>
--<partition name>|--<partition identifier> <filename> [...]
[--verbose] [--no-reboot] [--stdout-errors] [--delay <ms>]
[--usb-log-level <none/error/warning/debug>]
or:
--<partition name>|--<partition identifier> <filename> [...]
[--pit <filename>]
[--verbose] [--no-reboot] [--stdout-errors] [--delay <ms>]
[--usb-log-level <none/error/warning/debug>]
Description: Flashes one or more firmware files to your phone. Partition names
(or identifiers) can be obtained by executing the print-pit action.
WARNING: If you're repartitioning it's strongly recommended you specify
all files at your disposal.

Run this:
sudo heimdall flash --RECOVERY Users/chasepierce/Desktop/recovery.img --CACHE Users/chasepierce/Desktop/cache.img.ext4
Or I'd be more than happy to help you out over TeamViewer as I myself have a mac.

theexel said:
Run this:
sudo heimdall flash --RECOVERY Users/chasepierce/Desktop/recovery.img --CACHE Users/chasepierce/Desktop/cache.img.ext4
Or I'd be more than happy to help you out over TeamViewer as I myself have a mac.
Click to expand...
Click to collapse
That would be rad!

ChaseSTi said:
That would be rad!
Click to expand...
Click to collapse
PM sent.

theexel said:
PM sent.
Click to expand...
Click to collapse
Thank you soo much!

Related

[HOWTO]Do a backup of your current kernel and use it for recovery

This is a new device and the development is starting quickly. Many user that haven't the device is starting to develop some stuff for it also if they don't have the phone ( like me ).
Kernel testing can cause softbrick that can be easy fixed flashing again the stock kernel. The following steps explain how to do a backup of your current kernel so you can use it to restore your device.
It's a very simple guide.....
IMPORTANT You need to use adb ( also terminal emulator is good) and you need to be root!
Code:
su
dd if=/dev/block/bml7 of=/sdcard/boot.img
tar cvf /sdcard/kernel-backup.tar /sdcard/boot.img
IMPORTANT: Write the commands exactly like i wrote and put attention that in the second command. I wrote "BML7" not "BM17" but you have to write without capital letter so "bml7" OK?
After this you'll have a file called kernel-backup.tar in your SDcard. Save it and, in case of softbrick testing a new kernel, put your phone in download mode and flash it with odin (PDA field).
Wish this can help you...
Bye
I got
Code:
su
# dd if=/dev/block/bml7 of=/sdcard/boot.img
dd if=/dev/block/bml7 of=/sdcard/boot.img
# tar cvf /sdcard/kernel-backup.tar /sdcard/boot.img
tar cvf /sdcard/kernel-backup.tar /sdcard/boot.img
tar: removing leading '/' from member names
sdcard/boot.img
#
Nvm.. my bad
noobwithgalaxyy said:
I got
Code:
su
# dd if=/dev/block/bml7 of=/sdcard/boot.img
dd if=/dev/block/bml7 of=/sdcard/boot.img
# tar cvf /sdcard/kernel-backup.tar /sdcard/boot.img
tar cvf /sdcard/kernel-backup.tar /sdcard/boot.img
tar: removing leading '/' from member names
sdcard/boot.img
#
Click to expand...
Click to collapse
check your sd card root. the files are there.
it creates two files..."boot.img" and "karnel-backup.tar"...
which one should I flash with Odin??
amlanpaira said:
it creates two files..."boot.img" and "karnel-backup.tar"...
which one should I flash with Odin??
Click to expand...
Click to collapse
The tar file
The problem is that odin wont flash it i guess !
Sent from my GT-S5360 using XDA App
It doesn't.. I checked..
Sent from my GT-S5360 using XDA App
noobwithgalaxyy said:
It doesn't.. I checked..
Sent from my GT-S5360 using XDA App
Click to expand...
Click to collapse
As i expected !!!we have big problem with odin ...
Sent from my GT-S5360 using XDA App
Yeah we do have a problem.. but Skin did make it work(flashing CWM was successful, even though it didn't work)
If he can let us know how and why other single file flashes do not work..
@ skin1980 can we convert somehow this tar file to update.zip so we can flash it from CWM recovery?
get back up ...
Thank you ..
now and discover how to use it if you need
I wonder if it has the backing of the baseband
Here in Brazil is put another baseband .... we are unsigned operators: /
Code:
C:\Users\hubert>adb shell
$ su
su
# dd if=/dev/block/bml7 of=/sdcard/boot.img
dd if=/dev/block/bml7 of=/sdcard/boot.img
# tar cvf /sdcard/kernel-backup.tar /sdcard/boot.img
tar cvf /sdcard/kernel-backup.tar /sdcard/boot.img
tar: not found
#
what am I doing wrong?
Preterer said:
Code:
C:\Users\hubert>adb shell
$ su
su
# dd if=/dev/block/bml7 of=/sdcard/boot.img
dd if=/dev/block/bml7 of=/sdcard/boot.img
# tar cvf /sdcard/kernel-backup.tar /sdcard/boot.img
tar cvf /sdcard/kernel-backup.tar /sdcard/boot.img
tar: not found
#
what am I doing wrong?
Click to expand...
Click to collapse
both the files are now on your sd card check them...........
rohit589769 said:
both the files are now on your sd card check them...........
Click to expand...
Click to collapse
You are wrong, there is only boot.img .
Preterer said:
Code:
C:\Users\hubert>adb shell
$ su
su
# dd if=/dev/block/bml7 of=/sdcard/boot.img
dd if=/dev/block/bml7 of=/sdcard/boot.img
# tar cvf /sdcard/kernel-backup.tar /sdcard/boot.img
tar cvf /sdcard/kernel-backup.tar /sdcard/boot.img
tar: not found
#
what am I doing wrong?
Click to expand...
Click to collapse
You have to install busybox!
look for busybox installers on Market!
I've created a tar and flashed it with odin. It works fine.
I'm currently working on a replacement for heimdall that will support this phone and some others. So if you make a backup you will be able to restore it later.
s0unds said:
I've created a tar and flashed it with odin. It works fine.
I'm currently working on a replacement for heimdall that will support this phone and some others. So if you make a backup you will be able to restore it later.
Click to expand...
Click to collapse
Keep us updated please for anything new!
Sent from my GT-S5360 using XDA App
Is the boot.img and kernel-backup.tar only sized 5MB?
Sent from my GT-S5360 using XDA App
qtu said:
Is the boot.img and kernel-backup.tar only sized 5MB?
Sent from my GT-S5360 using XDA App
Click to expand...
Click to collapse
It's a really small file, cause it's only Kernel, not whole sys.
Preterer said:
It's a really small file, cause it's only Kernel, not whole sys.
Click to expand...
Click to collapse
I see! Thanks a lot! Now, my kernel is backed-up.

[HOWTO] Flash the new bootloader in Linux

Perhaps everyone concerned already is aware of this, however I did not find any thread with anything approaching explicit instructions for loading the new bootloader (provided in the CM thread), or, for that matter, any bootloader, on Linux.
Please let me know if any of this is unclear and/or needs to be more explicit.
Compile heimdall:
This can be skipped if you already have a version of heimdall that works with your phone.
For this you will need essential build tools and git. Installing this is distro dependant. For deb based distros (Debian, Ubuntu, etc), you can use:
Code:
sudo apt-get install build-essentials git{/CODE]
[INDENT][LIST=1]
[*]In a good working directory: download [URL="http://sourceforge.net/projects/libusbx/files/latest/download?source=files"]the libusbx source[/URL] and untar, in my case: [CODE]tar -xjf libusbx-1.0.15.tar.bz2
[*]clone the heimdall repo:
Code:
git clone git://github.com/Benjamin-Dobell/Heimdall.git
[*]Change into the libusbx directory (in my case libusbx-1.0.15) and compile it:
run
Code:
./configure
make
sudo make install
[*]Change into the libpit directory within the heimdall repo and compile it:
run
Code:
./configure
make
sudo make install
[*]Change into the heimdall directory in the heimdall repo and compile it:
run
Code:
./configure
make
sudo make install
[*]You should now have a working heimdall install, you can verify by doing:
Code:
heimdall version
[/LIST][/INDENT]
Flash the new bootloader:
Go here to find the Odin flashable bootloader appropriate to your phone. Download it.
Rename the file to remove the md5 (so that it has the tar extension); this is optional, but makes bash filename completion work.
Go somewhere you can work with the files and untar the file, in my case:
Code:
tar -xf I747UCDLK3_aio.tar
Put phone into download mode (there are various ways; search it if you need). Start with cable disconnected.
Connect the USB cable.
Use heimdall to flash all the parts:
Code:
heimdall flash --ABOOT aboot.mbn --RPM rpm.mbn --SBL2 sbl2.mbn --SBL3 sbl3.mbn --TZ tz.mbn
a lot of people wont have git installed. so you might want to explain that here also so that they will be able to clone the heimdall repo.
Install Git:
sudo apt-get install git

Ace 2 - Reset counter via SSH

Because I cannot post in the dev forum I write it here:
I tried to reset my flash counter and binary status according to:
http://forum.xda-developers.com/showthread.php?p=38116366#post38116366
Plattform: Leaked JB, Android 4.1.2
I've rooted the phone and installed CWM 6. I tried to apply the zip in CWM but got Signature verification failed.
The easiest way for me was to do it directly on a ssh console (I used SSH Droid Pro): I unzipped the file from the post linked above and entered the following commands on a root ssh console:
Code:
dd if=/dev/zero of=/dev/block/mmcblk0 bs=1 count=1 seek=3145732
dd if=02.hex of=/dev/block/mmcblk0 bs=1 count=1 seek=3145736
Works perfectly and is quite easy!
ace2-user said:
Because I cannot post in the dev forum I write it here:
I tried to reset my flash counter and binary status according to:
http://forum.xda-developers.com/showthread.php?p=38116366#post38116366
Plattform: Leaked JB, Android 4.1.2
I've rooted the phone and installed CWM 6. I tried to apply the zip in CWM but got Signature verification failed.
The easiest way for me was to do it directly on a ssh console (I used SSH Droid Pro): I unzipped the file from the post linked above and entered the following commands on a root ssh console:
Code:
dd if=/dev/zero of=/dev/block/mmcblk0 bs=1 count=1 seek=3145732
dd if=02.hex of=/dev/block/mmcblk0 bs=1 count=1 seek=3145736
Works perfectly and is quite easy!
Click to expand...
Click to collapse
You can try Triangle Away 2.90
I thinks it work fine and is very rasy

Problems with TWRP

Hi all,
I tried to update TWRP to twrp-3.0.2.0-n5110.img.tar by copying over the tar file to the sdcard folder, renaming it to twrp.img and issuing this command:
adb shell dd if=/sdcard/twrp.img of=/dev/block/mmcblk0p6
Now I can't boot the device - it only boots to the 'Downloading' screen, no matter what button combinations I use. If i use vol-down and power I get the ODIN message top left.
Can anyone help me reset it?
My main computer is a mac so I used heimdall to try flashing TWRP.:
heimdall flash --RECOVERY filename.img
Same problem...
skinnydog said:
My main computer is a mac so I used heimdall to try flashing TWRP.:
heimdall flash --RECOVERY filename.img
Same problem...
Click to expand...
Click to collapse
OK, back in business. It helps if you flash the .img file instead of the .tar file

booting custom kernel

SOLVED: I was using the G980F boot.img instead of G985F image. THANKS everyone
The device won't reboot if I unpack and repack the boot.img on S20
Did someone else here succeed in flashing a new boot.img ? THANKS
Code:
[email protected]:~/GS20_kernel_build$ unpackbootimg -i boot.img
BOARD_KERNEL_CMDLINE androidboot.hardware=exynos990
BOARD_KERNEL_BASE 10000000
BOARD_PAGE_SIZE 2048
[email protected]:~/GS20_kernel_build$ mkbootimg --kernel boot.img-zImage --ramdisk boot.img-ramdisk.gz -o boot_repacked.img
[email protected]:~/GS20_kernel_build$ heimdall flash --BOOT ./boot_repacked.img
[...]
Downloading device's PIT file...
PIT file download successful.
Uploading BOOT
100%
BOOT upload successful
Ending session...
Rebooting device...
modem__ said:
The device won't reboot if I unpack and repack the boot.img on S20
Did someone else here succeed in flashing a new boot.img ? THANKS
Code:
[email protected]:~/GS20_kernel_build$ unpackbootimg -i boot.img
BOARD_KERNEL_CMDLINE androidboot.hardware=exynos990
BOARD_KERNEL_BASE 10000000
BOARD_PAGE_SIZE 2048
[email protected]:~/GS20_kernel_build$ mkbootimg --kernel boot.img-zImage --ramdisk boot.img-ramdisk.gz -o boot_repacked.img
[email protected]:~/GS20_kernel_build$ heimdall flash --BOOT ./boot_repacked.img
[...]
Downloading device's PIT file...
PIT file download successful.
Uploading BOOT
100%
BOOT upload successful
Ending session...
Rebooting device...
Click to expand...
Click to collapse
You need to make a tar file containing the img and flash it with odin. You need a Windows computer for that. Linux won't do sadly
If you don't feel like making a flashable zip file you can just use dd to install it from within TWRP (via terminal on console or ADB) if you have that installed:
dd if=boot_repacked.img of=/dev/block/by-name/boot
No Windows/Odin required.
sjevtic said:
If you don't feel like making a flashable zip file you can just use dd to install it from within TWRP (via terminal on console or ADB) if you have that installed:
dd if=boot_repacked.img of=/dev/block/by-name/boot
No Windows/Odin required.
Click to expand...
Click to collapse
dd always scares me lol.
You sure this works with S20? Even Fastboot fllashing doesn't work so I doubt this will
JanBoyGamer23 said:
dd always scares me lol.
You sure this works with S20? Even Fastboot fllashing doesn't work so I doubt this will
Click to expand...
Click to collapse
My phone wouldn't boot last night after I tried flashing my own boot image and this was how I put the previous one back. It booted right up.

Categories

Resources