|
||||
Re: HOW TO ROOT A SAMSUNG MOMENT Thread (help me find out)
I just got a Moment, and haven't had any trouble with GPS that other people have mentioned. The first thing I did though was make sure "Use Wireless Networks" was turned off under the location settings.
|
|
||||
Re: HOW TO ROOT A SAMSUNG MOMENT Thread (help me find out)
so u can get da exact location from ur moment using the gps on google maps???
Last edited by zoeman; 11-23-2009 at 06:49 PM. |
|
||||
Re: HOW TO ROOT A SAMSUNG MOMENT Thread (help me find out)
Yes. Drove 50 miles to get home last night and tested the GPS with google maps the entire way. Worked perfect.
|
|
||||
Re: HOW TO ROOT A SAMSUNG MOMENT Thread (help me find out)
Quote:
There is a oneshot script in the init.rc to flash /system/recovery.img to the recovery partition. We can write /system/recovery.img but it didnt flash. I'm guessing we'd have to factory reset, which I'd rather not do. I doubt that image wille ven work since its a different processor. I wouldn't try it, instead, we should try to find a way to make our su file on /system while we have write access. Again, load up Self Test/Diag mode, and connect to adb shell and /system is chmod'd 0777. Make sure 12. USB is set to "PDA". Setting it to "Phone" will disable ADP, but will allow QPST. We can setuid on /system, but the problem I'm facing is the fact that everything I create is owned by "shell" Last edited by zefie; 11-24-2009 at 02:14 PM. |
This post has been thanked 1 times. |
|
||||
Re: HOW TO ROOT A SAMSUNG MOMENT Thread (help me find out)
Ok we have ROOT!
As above, load into Test Mode and use ADB Shell then run the following cd /system/bin cat btld_testmode > ../btld_testmode (this backs up the file) cat sh >> btld_testmode (we append it first, don't know why, but we cant just overwrite it at first) cat sh > btld_testmode (overwrite it) Now, it lost is setuid. but that is fine, the factorytest.rc will restore it. so reboot the phone, reloading test mode. cd /system/bin ./btld_testmode Now you are in a root shell, you know what to do cat sh > su chmod 4755 su exit ./su Now we will put btld_testmode back. cat ../btld_testmode > btld_testmode chmod 6777 btld_testmode Currently the su looses it's setuid on reboot, so it is not permanent. Still working on that. Edit: it seems all permissions get reset, then are set up by the init script. Sadly, we can't overwrite the init script because changes in / do not persist. All we can use this root access for is flashing, unless we find another way to persist our setuid... But hey, at least we have a root shell! It is a start EDIT: here is a cheap hack that will restore root when the splash logo is played: Done! I made a wrapper around the playlogo script, which plays teh carrier logo: first, while root still in testmode: cd /system/bin mv playlogo playlogo_real Then create this file locally, and name it playlogo: Code:
#!/system/bin/sh /system/bin/mount -o remount,rw,codepage=utf8,vfat,fcache\(blks\)=128,xattr,check=no /dev/stl5 /system /system/bin/chmod 4755 /system/bin/su /system/bin/chmod 0755 /system/bin/playlogo_real /system/bin/mount -o remount,ro,codepage=utf8,vfat,fcache\(blks\)=128,xattr,check=no /dev/stl5 /system /system/bin/playlogo_real back in the shell: chmod 755 /system/playlogo mv /system/playlogo /system/bin/playlogo reboot now it will restore your su root access when the boot logo plays. cheap hack for now More here, including a trick to guarantee test mode will activate: http://midnightchannel.net/blog/255-...ng-moment.html Last edited by zefie; 11-24-2009 at 04:04 PM. |
This post has been thanked 7 times. |
|
||||
Re: HOW TO ROOT A SAMSUNG MOMENT Thread (help me find out)
@ zefie Still have to absorb and figure what you have done here, but thanks has been clocked.. Looks like nice work.
__________________
LG V10 LG-H901BK / LG G4 LG-H811LB (Stock) LG-F500L (QHSUSB__BULK Bricked) / Motorola Nexus 6 (rooted) / Sony Xperia Z3 (rooted)
Last edited by clockcycle; 11-24-2009 at 04:15 PM. |
|
||||
Re: HOW TO ROOT A SAMSUNG MOMENT Thread (help me find out)
trying it now. let you know how it goes.
update: I performed the 1st steps cd /system/bin cat btld_testmode > ../btld_testmode (this backs up the file) cat sh >> btld_testmode (we append it first, don't know why, but we cant just overwrite it at first) cat sh > btld_testmode (overwrite it) hit save and reboot at the bottom of the menu now my phone wont be turn on (not even into diag mode) UPDATE 2: For some reason I had to pull the battery before it would reboot. Last edited by maxdamage2122; 11-24-2009 at 04:24 PM. |
|
|
|