Results 1 to 24 of 24
- 03-13-2012, 04:07 PM
Thread Author #1
my root guide for stock 2.3.6 replenish
alt link: [url]http://forum.xda-developers.com/showthread.php?t=1545112.html[url]
REVISED TUTORIAL IN ROOTING 2.3.6 SAMSUNG REPLENISH
warning for experienced adb users!: this was made with noobs in mind. you may learn something (from me! a noob! XD) but anyways, enjoy!
this does not affect anything on the phone except for adding the ability to access root permissions. CWM is not permanent, it disappears after you use it, and nothing on the phone is affected, as far as i know, but i had just factory reset the phone, so use at your own risk...
you may need to know:
root of a drive- drives are designated C:\ or D:\ or whatever letter in windows. Just go to "computer" and double click the first item. That location is the "root" of a drive.
Note: make sure you have at least 400 mb of memory (i know, thats alot, but just in case) on your sd card so you can back up your entire phone! i reccomend doing every optional step!!! It'll save you hassle if you have problems. If you can't make room for some reason, and you still wanna try, you should skip step 8. I don't suggest it though.
1. download "odin.zip" and "su" here: and unzip to your desktop. if you dont have the android sdk, simply copy the "adb.exe" file from "odin.zip" to the root of your primary drive for later. Just go to "computer" and double click the top icon/item. It should say something about C:/. If you're on Mac, sorry. Idk much about it. As for Linux, I have no clue how you'd even try to do this. I love Linux but, sadly, can't experiment with this in it. WINE has its limits....... And I don't think adb or Odin would work.
2. download the "su" file and put into into "platform-tools" where you installed the android sdk, if you have it, or put onto the root of your primary drive if you havent.
3. start phone while holding "spacebar" and "p". "downloading..." should appear on the screen in yellow text
4. plug into the computer and run "Odin_Multi_Downloader_v4.42.exe"
5. select SPHM580.ops for "OPS" and Replenish-CWM5.tar for "One Package" (they should be the only options) DO NOT CHANGE ANYTHING ELSE!!!!!
6. hit "Start" and DO NOT REMOVE PHONE FROM USB.
7. as the phone reboots, hold "u" until CWM opens and set the phone down. you should close Odin now.
8. use the volume keys to navigate to the backup and restore option and use enter to select backup. wait for it to finish completely and take you back to the the CWM main UI. backing up here creates a pure recovery, untouched by anything. CWM is NOT installed into this recovery. continue with the guide.
9. open the command prompt (type cmd.exe in search or run in the start menu, depending on your version of windows) or use some form of terminal emulator on your operating system of choice. command prompt is preferred due to the fact i know it can get the job done, but do what you will.
10. navigate to the drive your sdk is on and into "platform-tools" or to the folder you put the adb.exe and su files on. the default should be [name of drive]:\Users\[username]\. use the "cd.." command til youre at the root of the drive, and if you installed the sdk, type "cd android-sdk-windows/platform-tools" or just go to the root of the drive and go to the next step if you havent. just be sure adb.exe and su are there.
11. type this in line for line, with enters in between. the blue "~#" in the later lines is the prompt you should have. do not type this. it will be in blue. (clockworkmod should still be open on your phone at this point)
adb shell
~#mount -o remount,rw -t rfs /dev/block/stl12 /system
~#exit
adb push su /system/bin/
adb shell
~#chmod 777 /system/bin/su
~#reboot
DO NOT CLOSE THE COMMAND PROMPT YET FOR THE SAKE OF CONVENIENCE
If you have problems with that, try using CWM to mount "/system". Some friendly people over at androidcentral pointed that out. I personally didn't have that problem, but I'm glad it's fixed.
12. when your phone has rebooted, go back to the open command prompt, which should be where it was before you typed "adb shell"
13. type "adb shell". you will see a prompt of "$." type "su." if you have a prompt of "#" rejoice! you have permanent root! now you can go on the Play Store and find "Superuser" and "Busybox" (they should be free. if you cant find it, get ahold of me and ill try to supply the newest updates) if not, and you have a backup from optional step 2, you should go through til you hit CWM and restore the backup. if not, make one now and reattempt everything aside from downloads and the moving the files around on your computer. Also, someone said something about "chmod 06755 /system/bin/su", so if you might try using that instead of "chmod 777 /system/bin/su". 777 worked for me, but maybe this works better for you.
OPTIONAL FINISH STEP: I dont know how you install CWM permanently, but you should do this so you can make backups of your rom and store them somewhere like on a box.com or mediafire.com account if you decide to mess with something on your phone. (use hjsplit to break it into pieces for uploading and reassemble after download for flashing if its too big). to use a recovery, enter CWM (either the way i have here or if you have permanently installed, just reboot and hold "u") and navigate to "backup and restore," "restore," and select the recovery you wish to use on your sd card (make sure when you take out a backup for storage, you zip up the entire folder with the name that contains the date and time of your backup.) it will overwrite everything on your phone to be exactly like it was when you backed it up.
good luck! have fun!
Note: if you rename the CWM backup file, make sure it DOESN'T HAVE A SPACE or it'll give you something about md5 or something not matching. If it says this, remove any spaces in the name and try again. I had it happen on my xperia play and freaked, thinking it was soft-bricked permanently one time, til I found out about cwm's glitch with that.
Also, I uploaded pretty much everything needed for rooting the phone, with comments pertaining to each file. This includes current (as of July 31, 2012) copies of Superuser.apk, a busybox installer, and the busybox and su binaries, as well the Odin package containing the tools to temp flash CWM.
the odin.zip file and the process of achieving CWM temp-flashing was found at [Root Method] Samsung Replenish Android 2.3.6 and credit for that part is given to joshua.worth, although I took it a different path than he did.
Update to above info: to simplify things, I uploaded all relevant files to box so people can get them easier. The su file went missing from xda, most importantly, so I fixed that, and added an updated binary in case someone has trouble with the other one.
contact me at if you cant pm me.
Sorry if it takes a while to respond. Life's been kinda crazy for me lately, and I am using my new phone (no service) to do this over wifi.Last edited by isavegas; 07-31-2012 at 01:45 AM. Reason: revisions and added outside source of files for people without androidcentral accounts
Thanked by 2: - 03-21-2012, 06:23 PM #2
Re: my root guide for stock 2.3.6 replenish
I tried following your guide but i'm stuck at the point where you use the adb shell and mount the mtdblock3. when i run the mount command i get an invalid argument. i downloaded terminal emulator and cd into /dev/block but could not find the mtdblock3 file in there. any ideas for what i'm doing wrong?
- 03-21-2012, 07:00 PM #3
Re: my root guide for stock 2.3.6 replenish
yea guys im having the same problem with the mount command. i get this:
C:\>adb shell
~ # mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount: mounting /dev/block/mtdblock3 on /system failed: Invalid argument - 03-22-2012, 12:22 AM #4
- 03-22-2012, 06:53 AM #5
- 03-22-2012, 11:02 AM #6
- 03-27-2012, 06:43 AM #7
- 05-13-2012, 06:10 PM #8
Re: my root guide for stock 2.3.6 replenish
Ok,
This is my wife's phone, and I am quite happy just being able to use ODIN to get a CWM backup of her device
Sprint Samsung Replenish
Android Version: 2.3.6
Baseband: S:M580.06 x.FA19
Kernel: 2.6.35.7
However, I get the CHMOD done on the su file, reboot, and I am neither able to run 'su', nor am I able to install busybox (obvious reasons). There is a good chance this is not working for me at this point due to some OTA update that occurred since this was released, but I have followed the directions as stated by "isavegas" with the addition that I did have to use CWM to mount the /system (as suggested by ddubczak). This has to be done prior to step 8 in order to do the remount command.
At any rate, I get all the way to the point where I have used adb push to get the version of su from the zip into the /system/bin folder. Just for good measure, I have also copied su to the /system/xbin, but still no dice. I have listed what I get below, and I have tried this all the way through three times with the same result. I am asking for advice before I wipe my wife's phone and simply load one of the pre-root ROMs:
C:\Program Files\Android\android-sdk\platform-tools>adb shell
~ # mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
~ # exit
exit
C:\Program Files\Android\android-sdk\platform-tools>adb push su /system/xbin/su
549 KB/s (26324 bytes in 0.046s)
C:\Program Files\Android\android-sdk\platform-tools>adb push su /system/bin/su
411 KB/s (26324 bytes in 0.062s)
C:\Program Files\Android\android-sdk\platform-tools>adb shell
~ # ls
ls
boot etc sd-ext
cache init sdcard
data init.rc sys
datadata lib system
default.prop proc tmp
dev res ueventd.goldfish.rc
efs root ueventd.rc
emmc sbin ueventd.sph-m580.rc
~ # cd /system
cd /system
/system # cd xbin
cd xbin
/system/xbin # ls
ls
dexdump su
/system/xbin # ls -al
ls -al
drwxr-xr-x 1 root shell 0 May 13 22:46 .
drwxr-xr-x 1 root root 0 May 13 22:45 ..
-rwxr-xr-x 1 root shell 60264 Aug 1 2008 dexdump
-rw-rw-rw- 1 root root 26324 Jun 4 2011 su
/system/xbin # chmod 777 /system/xbin/su
chmod 777 /system/xbin/su
/system/xbin # chmod 777 /system/bin/su
chmod 777 /system/bin/su
/system/xbin # ls -al
ls -al
drwxr-xr-x 1 root shell 0 May 13 22:46 .
drwxr-xr-x 1 root root 0 May 13 22:45 ..
-rwxr-xr-x 1 root shell 60264 Aug 1 2008 dexdump
-rwxrwxrwx 1 root root 26324 Jun 4 2011 su
/system/xbin # reboot
reboot
C:\Program Files\Android\android-sdk\platform-tools>adb devices
List of devices attached
M580e06d7c51 device
C:\Program Files\Android\android-sdk\platform-tools>adb shell
$ su
su
Permission denied
$ sudo
sudo
sudo: permission denied
$ su
su
Permission denied
$
C:\Program Files\Android\android-sdk\platform-tools>Last edited by Unit01; 05-13-2012 at 06:36 PM.
- 05-13-2012, 07:04 PM #9
- 05-23-2012, 02:25 AM #10
- 05-23-2012, 07:26 AM #11
- 07-15-2012, 06:28 PM #12
- 07-16-2012, 09:45 PM #13
- 07-19-2012, 09:58 AM #14
- 07-19-2012, 11:01 AM #15
- 07-19-2012, 01:11 PM #16
- 07-19-2012, 02:03 PM #17
Re: my root guide for stock 2.3.6 replenish
- 07-22-2012, 10:34 PM #18
- 07-27-2012, 01:55 PM
Thread Author #19
Re: my root guide for stock 2.3.6 replenish
Hey everyone, I'm SOOO sorry I haven't been available, but my life has been pretty hectic these last few monthes. I'll go over this again and revise it, but I no longer have the device, nor a computer. SOOOOOOO sorry. All advice will be theoretical, but ill do my best.
- 07-27-2012, 02:24 PM
Thread Author #20
Re: my root guide for stock 2.3.6 replenish
Uhhhhhhhhh.... I have no clue what you're doing with all the stuff after pushing su. You obviously outclass me when it comes to this stuff. Lol. Only thing I can think of is that you have to use superuser (app from the play store) to give anything other than adb root permissions. Is adb getting su on a normal boot? Busybox and any terminal emulator get denied, I think, by default if superuser isn't there to give it permission. It's like on pc Linux, where you have to use the terminal, which has root permissions locked by password, to give other programs permission to boot with root. But there is no built in terminal in android, only adb. So superuser fills the slot, and gives you the ability to run android apps with root permissions without using adb to force it to give it to them every time it calls for them. And trust me, that would be very hard to set up.
Anyways, point is, try installing superuser and THEN try installing Busybox. - 07-27-2012, 02:55 PM
Thread Author #21
Re: my root guide for stock 2.3.6 replenish
no, It's not a temp root. This root, if done right, is a permanent root that I couldn't get rid of no matter what I did. For several days afterwards, I tried restoring it to the backup I made with CWM before rooting it and I tried deleting "su" via multiple methods. Nothing worked. The su binary refused to go away. No clue why it doesn't work for you, but i took a stock samsung replenish, did the exact steps I put in the guide, and turned it into a rooted device that had stock EVERYTHING, but with 1 tiny binary in it that allowed me to get root whenever I wanted via superuser.apk or the Android Debug Bridge.
- 11-03-2012, 02:14 PM #22
Re: my root guide for stock 2.3.6 replenish
this has given me few issues, but one many people are stuck on, is what I'm stuck on as well:
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb push su/system/bin
Android Debug Bridge version 1.0.29
-d - directs command to the only connected USB devic
e
returns an error if more than one USB device is
present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is r
unning.
-s <serial number> - directs command to the USB device or emulator w
ith
the given serial number. Overrides ANDROID_SERI
AL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
devices - list all connected devices
connect <host>[:<port>] - connect to a device via TCP/IP
Port 5555 is used by default if no port number
is specified.
disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
Port 5555 is used by default if no port number
is specified.
Using this command with no additional arguments
will disconnect from all connected TCP/IP devic
es.
device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(-l means list but don't copy)
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] [--algo <algorithm name> --key <hex-encoded key> --
iv <hex-encoded iv>] <file>
- push this package file to the device and instal
l it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data
)
('-s' means install on SD card instead of inter
nal storage)
('--algo', '--key', and '--iv' mean the file is
encrypted already)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories
)
adb bugreport - return all information from the device
that should be included in a bug report.
adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|-nosy
stem] [<packages...>]
- write an archive of the device's data to <file>
.
If no -f option is supplied then the data is wr
itten
to "backup.ab" in the current directory.
(-apk|-noapk enable/disable backup of the .apks
themselves
in the archive; the default is noapk.)
(-shared|-noshared enable/disable backup of the
device's
shared storage / SD card contents; the defau
lt is noshared.)
(-all means to back up all installed applicatio
ns)
(-system|-nosystem toggles whether -all automat
ically includes
system applications; the default is to inclu
de system apps)
(<packages...> is the list of applications to b
e backed up. If
the -all or -shared flags are passed, then t
he package
list is optional. Applications explicitly g
iven on the
command line will be included even if -nosys
tem would
ordinarily cause them to be omitted.)
adb restore <file> - restore device contents from the <file> backup
archive
adb help - show this help message
adb version - show version num
scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb status-window - continuously print device status for a specifie
d device
adb remount - remounts the /system partition on the device re
ad-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
tloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on th
e specified port
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns
adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /data partitions will be u
pdated.
- If it is "system" or "data", only the corresponding partition
is updated.
environmental variables:
ADB_TRACE - Print debug information. A comma separated list
of the following values
1 or all, adb, sockets, packets, rwx, usb, sync
, sysdeps, transport, jdwp
ANDROID_SERIAL - The serial number to connect to. -s takes prior
ity over this if given.
ANDROID_LOG_TAGS - When used with the logcat option, only these de
bug tags are printed.
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell
~ # chmod 777 /system/bin/su
chmod 777 /system/bin/su
chmod: /system/bin/su: No such file or directory
~ # chmod 06755 /system/bin/su
chmod 06755 /system/bin/su
chmod: /system/bin/su: No such file or directory
~ #
this is my error message. I've followed the instructions, so what's wrong? How can I successfully root my Samsung Replenish?
PLEASE HELP - 11-03-2012, 07:30 PM #23
Re: my root guide for stock 2.3.6 replenish
Adb push cmd is off
Adb push "file" "destination"
it looks like u were trying to push su to /system/bin?
It would be:
Adb push su /system/bin
Su being in your cmdline dir.
Sent from my SPH-M580BST using Tapatalk 2 - 12-28-2012, 10:25 AM #24


Reply


































