[Q] TPSparkyRoot - ICS (Root/UnRoot) - General Questions and Answers

Hi sparkym3,
I'm not able to reply your post "[ROOT] TPSparkyRoot - ICS' so I created a new post here.
I had successfully rooted my Star N8000 phone using the below script with busybox, Superuser and RootExplorer installed.
Root
====
echo off
cls
adb shell mv /data/local/tmp /data/local/tmp.bak
adb shell ln -s /data /data/local/tmp
adb reboot
echo Rebooting (1/3) - Continue once device finishes rebooting
pause
adb shell rm /data/local.prop > nul
adb shell "echo \"ro.kernel.qemu=1\" > /data/local.prop"
adb reboot
echo Rebooting (2/3) - Continue once device finishes rebooting
pause
adb shell id
echo If the id is 0 / root then continue, otherwise ctrl+c to cancel and start over
pause
adb remount
adb push su /system/bin/su
adb shell chown 0.0 /system/bin/su
adb shell chmod 06755 /system/bin/su
adb push busybox /system/bin/busybox
adb shell chown 0.0 /system/bin/busybox
adb shell chmod 0755 /system/bin/busybox
adb push Superuser.apk /system/app/Superuser.apk
adb shell chown 0.0 /system/app/Superuser.apk
adb shell chmod 0644 /system/app/Superuser.apk
adb push RootExplorer.apk /system/app/RootExplorer.apk
adb shell chown 0.0 /system/app/RootExplorer.apk
adb shell chmod 0644 /system/app/RootExplorer.apk
echo Removing changes except ROOT
adb shell rm /data/local.prop
adb shell rm /data/local/tmp
adb shell mv /data/local/tmp.bak /data/local/tmp
adb reboot
echo Rebooting (3/3) - You should now be Rooted
pause
echo on
***My question is if I want to unroot my Star N8000 phone, I will need to remove the su, busybox, Superuser and RootExplorer from my phone system.
So, the new script should as below. Please help to verify and let me know whether this is correct.
Thanks in advance.
UNRoot
======
echo off
cls
adb shell mv /data/local/tmp /data/local/tmp.bak
adb shell ln -s /data /data/local/tmp
adb reboot
echo Rebooting (1/3) - Continue once device finishes rebooting
pause
adb shell rm /data/local.prop > nul
adb shell "echo \"ro.kernel.qemu=1\" > /data/local.prop"
adb reboot
echo Rebooting (2/3) - Continue once device finishes rebooting
pause
adb shell id
echo If the id is 0 / root then continue, otherwise ctrl+c to cancel and start over
pause
adb remount
adb shell rm /system/xbin/su
adb shell rm /system/xbin/busybox
adb shell rm /system/xbin/Superuser.apk
adb shell rm /system/xbin/RootExplorer.apk
echo Removing changes except ROOT
adb shell rm /data/local.prop
adb shell rm /data/local/tmp
adb shell mv /data/local/tmp.bak /data/local/tmp
adb reboot
echo Rebooting (3/3) - You should now be UNRooted
pause
echo on

rayxware said:
Hi sparkym3,
I'm not able to reply your post "[ROOT] TPSparkyRoot - ICS' so I created a new post here.
I had successfully rooted my Star N8000 phone using the below script with busybox, Superuser and RootExplorer installed.
Root
====
echo off
cls
adb shell mv /data/local/tmp /data/local/tmp.bak
adb shell ln -s /data /data/local/tmp
adb reboot
echo Rebooting (1/3) - Continue once device finishes rebooting
pause
adb shell rm /data/local.prop > nul
adb shell "echo \"ro.kernel.qemu=1\" > /data/local.prop"
adb reboot
echo Rebooting (2/3) - Continue once device finishes rebooting
pause
adb shell id
echo If the id is 0 / root then continue, otherwise ctrl+c to cancel and start over
pause
adb remount
adb push su /system/bin/su
adb shell chown 0.0 /system/bin/su
adb shell chmod 06755 /system/bin/su
adb push busybox /system/bin/busybox
adb shell chown 0.0 /system/bin/busybox
adb shell chmod 0755 /system/bin/busybox
adb push Superuser.apk /system/app/Superuser.apk
adb shell chown 0.0 /system/app/Superuser.apk
adb shell chmod 0644 /system/app/Superuser.apk
adb push RootExplorer.apk /system/app/RootExplorer.apk
adb shell chown 0.0 /system/app/RootExplorer.apk
adb shell chmod 0644 /system/app/RootExplorer.apk
echo Removing changes except ROOT
adb shell rm /data/local.prop
adb shell rm /data/local/tmp
adb shell mv /data/local/tmp.bak /data/local/tmp
adb reboot
echo Rebooting (3/3) - You should now be Rooted
pause
echo on
***My question is if I want to unroot my Star N8000 phone, I will need to remove the su, busybox, Superuser and RootExplorer from my phone system.
So, the new script should as below. Please help to verify and let me know whether this is correct.
Thanks in advance.
UNRoot
======
echo off
cls
adb shell mv /data/local/tmp /data/local/tmp.bak
adb shell ln -s /data /data/local/tmp
adb reboot
echo Rebooting (1/3) - Continue once device finishes rebooting
pause
adb shell rm /data/local.prop > nul
adb shell "echo \"ro.kernel.qemu=1\" > /data/local.prop"
adb reboot
echo Rebooting (2/3) - Continue once device finishes rebooting
pause
adb shell id
echo If the id is 0 / root then continue, otherwise ctrl+c to cancel and start over
pause
adb remount
adb shell rm /system/xbin/su
adb shell rm /system/xbin/busybox
adb shell rm /system/xbin/Superuser.apk
adb shell rm /system/xbin/RootExplorer.apk
echo Removing changes except ROOT
adb shell rm /data/local.prop
adb shell rm /data/local/tmp
adb shell mv /data/local/tmp.bak /data/local/tmp
adb reboot
echo Rebooting (3/3) - You should now be UNRooted
pause
echo on
Click to expand...
Click to collapse
This is doing way to much extra while unrooting. Since you would already have root by this point, you can just call su to do all the removes and then remove su last. This can be done from adb or any root file explorer like es file explorer (which will also allow you to mount the file system).
Sent from my ASUS Transformer Pad TF700T using Tapatalk 2

Related

no_sense v1 w/ JIT Enabler: Script to remove Sense and auto-enable JIT on FreshToast

So... I don't know how to make ROMs, or update.zips.... but I can make batch files!! HAHA
Basically, all this does is help noobies out by doing everything for you.
This is intended for use with FreshToast, but should work with any ROM really (JIT functionality depends on if the ROM supports it and editing the build.prop file, read below)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What it does
JIT does NOT like Sense UI. You basically can't use Sense UI with JIT... so this will remove Sense UI then enable JIT.
You can read about JIT here: http://en.wikipedia.org/wiki/Just-in-time_compilation
This will remove all HTC Widgets, Rosie, and any other useless SenseUI applications. (as they don't work with other launchers) and push over the Helix Launcher. Also, this will enable JIT (there is an option to enable or not to, as well as automated enable/disable JIT)
I have also included the HTC Ringtone trimmer apk - its honestly the best ringtone trimmer I've used, and works great, alot of devs take it out. I dont know why.
Also Ive included the genie news and weather widget.
I get no force closes with this method from removing sense, but as with most roms with JIT enabled, there is the occasional freeze.
As always, DO A NANDROID BACKUP FIRST!!!
The build.prop file is ROM SPECIFIC!!
The script has the build.prop for FRESHTOAST 1.1
I'm working on getting multiple build.prop's from other ROMs so you will only have to make a simple menu selection.
If you are using a different ROM do the following:
adb pull /system/build.prop C:/system.prop_jit
edit the file in WORDPAD (not notepad) and save as build.prop_jit in the "Unicode Text Format"
Go to the very last line of the file, and add the following line:
Code:
dalvik.vm.execution-mode=int:jit
Save the file as build.prop to the location you extracted the zip (no_sense.zip) to and overwrite the old one.
The rest remains the same.
Special thanks to regaw_leinad for the help with the script. THANK YOU!! also thanks to Jus10o for helping me with the force closes I was getting after removing sense. Thanks also to "gunnyman" for the hosting of the file!
Instructions:
First thing is something some of you may already have done. This will enable adb to be run in the DOS command line from anywhere, not just your android tools folder.
Right click on "My Computer"
Click Properties
Click the advanced tab
Click "Environment Variables"
In the top window click "PATH"
Click "Edit"
Change the "Variable Value" to your android SDK tools folder (Mine is C:\Android\tools)
Now unzip the no_sense folder anywhere you want.
Connect your phone via USB and make sure you DO NOT have the phone in disk mode, select "Charge Only" and ensure the phone has USB-Debugging on (should be by default)
Double click on "no_sense.bat" and follow the prompts.
The first time you enable JIT it will create a backup of your old files, and can be restored/disabled later.
NOTICE You MUST change your home screen wall paper to a non-htc wallpaper before enabling JIT. If not, your phone will freeze on boot. Any photo will do, as long as it is not a HTC wallpaper. I'm looking in to how to prevent this from happening. If you accidentally booted without changing, just nandroid back and do it again. After stripping the ROM of Sense UI, and starting Helix, change your wallpaper, THEN enable JIT.
Currently v1.2
Download Here: http://dl.dropbox.com/u/6718465/no_sense_with_apks.zip 9.40MB (Includes all the backed up Rosie APKs)
Without APKs: http://dl.dropbox.com/u/6718465/no_sense.zip 1.75MB
I'm curious to try it on the new ZenExp ROM. Helix launcher already works great with it.
Well the Sense UI strip part works....
Having some trouble with the JIT part...
I guess some commands can't be done though ADB Shell
are you using ADB to execute a script? if so make sure you chmod that script. adb shell chmod 755 /sdcard/nameofscript should do the trick.
gunnyman said:
are you using ADB to execute a script? if so make sure you chmod that script. adb shell chmod 755 /sdcard/nameofscript should do the trick.
Click to expand...
Click to collapse
I think it's a .bat file to run on the computer w/ your phone plugged in.
poor_red_neck said:
Well the Sense UI strip part works....
Having some trouble with the JIT part...
I guess some commands can't be done though ADB Shell
Click to expand...
Click to collapse
can you send me the script, I'll take a look at it and see whats goin on.
When I saw the howto for enabling JIT I wrote a script that would execute the list of shell commands. All I had to do was edit build prop manually then execute the script. I also wrote an undo script. I can easily redo it for you if it will help.
This is an excellent contribution. Thanks. I see many firsts much less worthy of posting(aka-why is this posteds) Also, damage put dcconfig.apk in the new .08 rom which allows for you to enable/disable jit and many other options from within a checkbox.
Ah, Found the issue...
I'm doing everything through adb shell xxxcommandxxx for JIT...
However I dont know how to get SU through the shell...
Here's part of it Ive stripped out.
Code:
@ECHO OFF
adb remount
adb shell mkdir /sdcard/JIT
adb shell mkdir /sdcard/dalbk
adb shell mkdir /sdcard/JIT/bin
adb push libdvm.so /sdcard/JIT/libdvm.so
adb push libnativehelper.so /sdcard/JIT/libnativehelper.so
adb push dalvikvm /sdcard/JIT/bin/dalvikvm
adb pull /system/build.prop build.prop_backup
adb push build.prop_JIT /system/build.prop
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
adb shell cp /system/build.prop /sdcard/dalbk/
adb shell cp /system/bin/dalvikvm /sdcard/dalbk/
adb shell cp /system/lib/libdvm.so /sdcard/dalbk/
adb shell cp /system/lib/libnativehelper.so /sdcard/dalbk
adb shell cd /sdcard/jit/bin
adb shell cp -f dalvikvm /system/bin
adb shell busybox chmod 755 /system/bin/dalvikvm
adb shell cd /sdcard/jit
adb shell cp -f libdvm.so /system/lib/
adb shell cp -f libnativehelper.so /system/lib/
adb shell cat.build.prop >/system/build.prop
adb shell chmod 644 /system/lib/libdvm.so
adb shell chmod 644 /system/lib/libnativehelper.so
adb shell chmod 666 /system/build.prop
adb shell sync
I get an error at trying to chmod 755 /system/bin/dalvikvm
do adb remount first.
Here's the full script if you're interested... again... the strip sense part works fine, JIT is giving me issues.
Code:
@Echo OFF
Echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
Echo º º
Echo º º
Echo º º
Echo º PLEASE ENSURE YOU HAVE CREATED A NANDROID BACKUP FIRST!!!! º
Echo º ALSO: Please ensure you have installed some sort of Home º
Echo º Launcher First. This script will install º
Echo º Helix launcher by default º
Echo º º
Echo º Also please ensure you have already installed º
Echo º A2SD º
Echo º º
Echo º Press 3 at the following option to skip º
Echo º to enabling/disabline JIT º
Echo º º
Echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
SET /P ANSWER=Have you created a Nandroid Backup first? (1)Yes (2)No =
if /i {%ANSWER%}=={1} (goto :10)
if /i {%ANSWER%}=={2} (goto :20)
if /i {%ANSWER%}=={3} (goto :50)
:10
Echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
Echo º º
Echo º The script will now pull and backup your Sense/Rosie apks. º
Echo º They will be placed in the folder labeled "Rosie_Backup" º
Echo º In the "Root" directory of your PC(C:/Rosie_Backup º
Echo º º
Echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
pause
adb remount
adb pull /system/app/Rosie.apk /Rosie_Backup/Rosie.apk
adb pull /system/app/HtcLockScreen.apk /Rosie_Backup/HtcLockScreen.apk
adb pull /system/app/com.android.launcher2.apk /Rosie_Backup/com.launcher2.apk
adb pull /system/app/com.htc.MusicWidget.apk /Rosie_Backup/com.htc.MusicWidget.apk
adb pull /system/app/com.htc.TwitterWidget.apk /Rosie_Backup/com.htc.TwitterWidget.apk
adb pull /system/app/com.htc.WeatherWidget.apk /Rosie_Backup/com.htc.WeatherWidget.apk
adb pull /system/app/HtcAddProgramWidget.apk /Rosie_Backup/HtcAddProgramWidget.apk
adb pull /system/app/htcmailwidgets.apk /Rosie_Backup/htcmailwidgets.apk
adb pull /system/app/htcmsgwidgets.apk /Rosie_Backup/htcmsgwidgets.apk
adb pull /system/app/HtcWeatherWallpaper.apk /Rosie_Backup/htcWeatherWallpaper.apk
adb pull /system/app/SetupWizard.apk /Rosie_Backup/SetupWizard.apk
Echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
Echo º º
Echo º Now we will install Helix Launcher º
Echo º to the /system/app folder º
Echo º and push other nescessary files º
Echo º as well as remove the non-essential º
Echo º HTC applications/Widgets º
Echo º º
Echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
Echo You will get a force close on the phone, click force close
pause
adb push com.helixproject.launcher.apk /system/app/com.helixproject.launcher.apk
adb push GenieWidget.apk /system/app/GenieWidget.apk
adb push HtcRingtoneTrimmer.apk /system/app/HtcRingtoneTrimmer.apk
adb push com.htc.resources.apk /system/framework/com.htc.resources.apk
adb shell rm /system/app/Rosie.apk
adb shell rm /system/app/HtcLockScreen.apk
adb shell rm /system/app/com.android.launcher2.apk
adb shell rm /system/app/com.htc.MusicWidget.apk
adb shell rm /system/app/com.htc.TwitterWidget.apk
adb shell rm /system/app/com.htc.WeatherWidget.apk
adb shell rm /system/app/HtcAddProgramWidget.apk
adb shell rm /system/app/htcmailwidgets.apk
adb shell rm /system/app/htcmsgwidgets.apk
adb shell rm /system/app/HtcWeatherWallpaper.apk
adb shell rm /system/app/SetupWizard.apk
:50
Echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
Echo º º
Echo º Now we can enable JIT º
Echo º (Just In Time compiler) º
Echo º º
Echo º º
Echo º If you are unsure, please search on XDA Forums First º
Echo º º
Echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
SET /P ANSWER=Would you like to enable/disable JIT? (1)Yes (2)No =
if /i {%ANSWER%}=={1} (goto :51)
if /i {%ANSWER%}=={2} (goto :100)
:51
SET /P ANDWER=Press 1 to enable JIT - Press 2 to disable JIT =
if /i {%ANSWER%}=={1} (goto :52)
if /i {%ANSWER%}=={2} (goto :53)
:52
adb remount
adb shell mkdir /sdcard/JIT
adb shell mkdir /sdcard/dalbk
adb shell mkdir /sdcard/JIT/bin
adb push libdvm.so /sdcard/JIT/libdvm.so
adb push libnativehelper.so /sdcard/JIT/libnativehelper.so
adb push dalvikvm /sdcard/JIT/bin/dalvikvm
adb pull /system/build.prop build.prop_backup
adb push build.prop_JIT /system/build.prop
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
adb shell cp /system/build.prop /sdcard/dalbk/
adb shell cp /system/bin/dalvikvm /sdcard/dalbk/
adb shell cp /system/lib/libdvm.so /sdcard/dalbk/
adb shell cp /system/lib/libnativehelper.so /sdcard/dalbk
adb shell cd /sdcard/jit/bin
adb shell cp -f dalvikvm /system/bin
adb shell busybox chmod 755 /system/bin/dalvikvm
adb shell cd /sdcard/jit
adb shell cp -f libdvm.so /system/lib/
adb shell cp -f libnativehelper.so /system/lib/
adb shell cat.build.prop >/system/build.prop
adb shell chmod 644 /system/lib/libdvm.so
adb shell chmod 644 /system/lib/libnativehelper.so
adb shell chmod 666 /system/build.prop
adb shell sync
Echo The phone will now reboot...
adb reboot
:53
adb remount
adb shell cd /sdcard/dalbk/
adb shell cat build.prop >/system/build.prop
adb shell cp -f dalvikvm /system/bin
adb shell busybox chmod 755 /system/bin/dalvikvm
adb shell cp -f libdvm.so /system/lib/
adb shell cp -f libnativehelper.so /system/lib/
adb shell chmod 644 /system/lib/libdvm.so
adb shell chmod 644 /system/lib/libnativehelper.so
adb shell chmod 666 /system/build.prop
adb shell sync
ECHO Your phone will now reboot...
adb reboot
exit
:20
SET /P ANSWER=Would you like to reboot into recovery now to create one? (1)Yes (2)No =
if /i {%ANSWER%}=={1} (goto :101)
if /i {%ANSWER%}=={2} (goto :100)
:101
pause
Echo Your phone is now rebooting into recovery...
adb reboot recovery
exit
:100
pause
exit
I literally haven't messed with batch files since I was like... 12... soo.... haha.
poor_red_neck said:
Ah, Found the issue...
I'm doing everything through adb shell xxxcommandxxx for JIT...
However I dont know how to get SU through the shell...
Here's part of it Ive stripped out.
Code:
@ECHO OFF
adb remount
adb shell mkdir /sdcard/JIT
adb shell mkdir /sdcard/dalbk
adb shell mkdir /sdcard/JIT/bin
adb push libdvm.so /sdcard/JIT/libdvm.so
adb push libnativehelper.so /sdcard/JIT/libnativehelper.so
adb push dalvikvm /sdcard/JIT/bin/dalvikvm
adb pull /system/build.prop build.prop_backup
adb push build.prop_JIT /system/build.prop
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
adb shell cp /system/build.prop /sdcard/dalbk/
adb shell cp /system/bin/dalvikvm /sdcard/dalbk/
adb shell cp /system/lib/libdvm.so /sdcard/dalbk/
adb shell cp /system/lib/libnativehelper.so /sdcard/dalbk
adb shell cd /sdcard/jit/bin
adb shell cp -f dalvikvm /system/bin
adb shell busybox chmod 755 /system/bin/dalvikvm
adb shell cd /sdcard/jit
adb shell cp -f libdvm.so /system/lib/
adb shell cp -f libnativehelper.so /system/lib/
adb shell cat.build.prop >/system/build.prop
adb shell chmod 644 /system/lib/libdvm.so
adb shell chmod 644 /system/lib/libnativehelper.so
adb shell chmod 666 /system/build.prop
adb shell sync
I get an error at trying to chmod 755 /system/bin/dalvikvm
Click to expand...
Click to collapse
try taking out "busybox", because if it is installed in the rom and symlinked you don't need to type that.
Now I get the following error:
cp: cannot stat 'dalvikvm': No such file or direcotry
cp: cannot stat 'libdvm.so': No such file or directory
cp: cannot stat 'libnativehelper.so': No such file or directory
The system cannot find the path specified.
poor_red_neck said:
Now I get the following error:
cp: cannot stat 'dalvikvm': No such file or direcotry
cp: cannot stat 'libdvm.so': No such file or directory
cp: cannot stat 'libnativehelper.so': No such file or directory
The system cannot find the path specified.
Click to expand...
Click to collapse
thats because you didn't define where to copy them from... where are you copying those from? put the path before the files
regaw_leinad said:
thats because you didn't define where to copy them from... where are you copying those from? put the path before the files
Click to expand...
Click to collapse
Ah hah...
Because I'm doing through the shell... the change directory command does nothing...
Gotcha..
Code:
@ECHO OFF
adb remount
adb shell mkdir /sdcard/jit
adb shell mkdir /sdcard/dalbk
adb shell mkdir /sdcard/JIT/bin
adb push libdvm.so /sdcard/JIT/libdvm.so
adb push libnativehelper.so /sdcard/JIT/libnativehelper.so
adb push dalvikvm /sdcard/JIT/bin/dalvikvm
adb pull /system/build.prop build.prop_backup
adb push build.prop_JIT /system/build.prop
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
adb shell cp /system/build.prop /sdcard/dalbk/
adb shell cp /system/bin/dalvikvm /sdcard/dalbk/
adb shell cp /system/lib/libdvm.so /sdcard/dalbk/
adb shell cp /system/lib/libnativehelper.so /sdcard/dalbk
adb shell cp -f /sdcard/jit/bin/dalvikvm /system/bin
adb shell chmod 755 /system/bin/dalvikvm
adb shell cp -f /sdcard/jit/libdvm.so /system/lib/
adb shell cp -f /sdcard/jit/libnativehelper.so /system/lib/
adb shell cat build.prop >/system/build.prop
adb shell chmod 644 /system/lib/libdvm.so
adb shell chmod 644 /system/lib/libnativehelper.so
adb shell chmod 666 /system/build.prop
adb shell sync
Now the only error is:
"They system cannot find the path specified"
I have no idea what though, going to start taking one line off at a time.
EDIT:
adb shell cat.build.prop >/system/build.prop
This is causing the error.
poor_red_neck said:
Ah hah...
Because I'm doing through the shell... the change directory command does nothing...
Gotcha..
Code:
@ECHO OFF
adb remount
adb shell mkdir /sdcard/jit
adb shell mkdir /sdcard/dalbk
adb shell mkdir /sdcard/JIT/bin
adb push libdvm.so /sdcard/JIT/libdvm.so
adb push libnativehelper.so /sdcard/JIT/libnativehelper.so
adb push dalvikvm /sdcard/JIT/bin/dalvikvm
adb pull /system/build.prop build.prop_backup
adb push build.prop_JIT /system/build.prop
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
adb shell cp /system/build.prop /sdcard/dalbk/
adb shell cp /system/bin/dalvikvm /sdcard/dalbk/
adb shell cp /system/lib/libdvm.so /sdcard/dalbk/
adb shell cp /system/lib/libnativehelper.so /sdcard/dalbk
adb shell cp -f /sdcard/jit/bin/dalvikvm /system/bin
adb shell chmod 755 /system/bin/dalvikvm
adb shell cp -f /sdcard/jit/libdvm.so /system/lib/
adb shell cp -f /sdcard/jit/libnativehelper.so /system/lib/
adb shell cat.build.prop >/system/build.prop
adb shell chmod 644 /system/lib/libdvm.so
adb shell chmod 644 /system/lib/libnativehelper.so
adb shell chmod 666 /system/build.prop
adb shell sync
Click to expand...
Click to collapse
yup that looks better
make sure you define everything like that, because, as you said, cd wont do anything when used in the shell in a bat
let me know if you have any more questions/problems. pm me your gtalk if you have one too.
poor_red_neck said:
Ah hah...
Because I'm doing through the shell... the change directory command does nothing...
Gotcha..
Code:
@ECHO OFF
adb remount
adb shell mkdir /sdcard/jit
adb shell mkdir /sdcard/dalbk
adb shell mkdir /sdcard/JIT/bin
adb push libdvm.so /sdcard/JIT/libdvm.so
adb push libnativehelper.so /sdcard/JIT/libnativehelper.so
adb push dalvikvm /sdcard/JIT/bin/dalvikvm
adb pull /system/build.prop build.prop_backup
adb push build.prop_JIT /system/build.prop
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
adb shell cp /system/build.prop /sdcard/dalbk/
adb shell cp /system/bin/dalvikvm /sdcard/dalbk/
adb shell cp /system/lib/libdvm.so /sdcard/dalbk/
adb shell cp /system/lib/libnativehelper.so /sdcard/dalbk
adb shell cp -f /sdcard/jit/bin/dalvikvm /system/bin
adb shell chmod 755 /system/bin/dalvikvm
adb shell cp -f /sdcard/jit/libdvm.so /system/lib/
adb shell cp -f /sdcard/jit/libnativehelper.so /system/lib/
adb shell cat.build.prop >/system/build.prop
adb shell chmod 644 /system/lib/libdvm.so
adb shell chmod 644 /system/lib/libnativehelper.so
adb shell chmod 666 /system/build.prop
adb shell sync
Now the only error is:
"They system cannot find the path specified"
I have no idea what though, going to start taking one line off at a time.
Click to expand...
Click to collapse
just copy paste "pause" between the lines.. its quicker that way, and you can see where it fails.
poor_red_neck said:
Ah hah...
adb shell cat.build.prop >/system/build.prop
This is causing the error.
Click to expand...
Click to collapse
this should be
Code:
adb shell cat build.prop >/system/build.prop
no period between cat and build
EDIT:
AND you need to specify the path of the first build.prop, because what that is doing is combining the two build.props
regaw_leinad said:
this should be
Code:
adb shell cat build.prop >/system/build.prop
no period between cat and build
EDIT:
AND you need to specify the path of the first build.prop, because what that is doing is combining the two build.props
Click to expand...
Click to collapse
I JUST found that....
should be /sdcard/jit/build.prop
Let me try that.
Hmm, there is no build.prop that is placed in the /sdcard/jit folder.
The original code is here:
This will enable jit on your phone.
Code:
cd /sdcard/jit/bin
cp -f dalvikvm /system/bin/
busybox chmod 755 /system/bin/dalvikvm
cd /sdcard/jit
cp -f libdvm.so /system/lib/
cp -f libnativehelper.so /system/lib/
cat build.prop >/system/build.prop
chmod 644 /system/lib/libdvm.so
chmod 644 /system/lib/libnativehelper.so
chmod 666 /system/build.prop
sync
reboot
Judging by the last cd... there should be one in /sdcard/jit

Samsung Behold 2 Rooting

Here is the commands I used:
cd\
cd androidsdk\tools
adb push try3.dat /data/local
adb shell chmod 0755 /data/local/try3
adb shell
/data/local/try3 /system/bin/sh
mount -o rw,remount /dev/st9 /system
chmod 04755 /system/bin/sh
cat /sdcard/su.dat > /system/bin/su1
cat /sdcard/su.dat > /system/bin/su
chmod 04755 /system/bin/su
su
cat /system/bin/playlogo > /system/bin/playlogo_real
/system/bin/chmod 0755 /system/bin/playlogo_real
echo “#!/system/bin/sh
/data/local/try3.dat /system/bin/sh
mount -o rw,remount /dev/st9 /system
chmod 04755 /system/bin/sh
cat /system/bin/su1 > /system/bin/su
chmod 04755 /system/bin/su
/system/bin/playlogo_real” > /system/bin/playlogo
exit
exit
exit
adb install Superuser.apk
adb shell reboot
It said Superuser.apk installed successful. When I tried to reboot it said permission denied.
Here is the CMD pasted. Please help me I have no idea what I am doing wrong.
C:\AndroidSDK>cd\
C:\>reboot
'reboot' is not recognized as an internal or external command,
operable program or batch file.
C:\>cd\
C:\>cd androidsdk\
C:\AndroidSDK>adb shell
error: device not found
C:\AndroidSDK>adb shell
error: device not found
C:\AndroidSDK>adb shell
$ su
su
su: permission denied
$ exit
exit
C:\AndroidSDK>adb devices
List of devices attached
SGH-T939 device
C:\AndroidSDK>adb shell
$ su.dat
su.dat
su.dat: permission denied
$ exit
exit
C:\AndroidSDK>adb shell
$ su
su
su: permission denied
$ su.dat
su.dat
su.dat: permission denied
$ exit
exit

need help to make a rom kitchen for sg3

hi guys,i'm working for make a rom kitchen for our sg3 those days
it's 40% done,but i have some troubles
i can't root via this script,can you help me?
this is my code:
Code:
adb push .\root\rageagainstthecage /data/local/tmp/rageagainstthecage
adb push .\root\Superuser.apk /data/local/tmp/Superuser.apk
adb push .\root\su /data/local/tmp/su
adb push .\root\busybox /data/local/tmp/busybox
adb shell chmod 755 /data/local/tmp/busybox
adb shell chmod 755 /data/local/tmp/rageagainstthecage
adb shell "/data/local/tmp/rageagainstthecage"
adb kill-server
adb start-server
adb -d shell "mount -o remount,rw /dev/block/stl9 /system"
adb push .\root\su /system/bin/su
adb push .\root\busybox /system/bin/busybox
adb push .\root\sqlite3 /system/bin/sqlite3
adb push .\root\Superuser.apk /system/app/
adb shell "/system/bin"
adb -d shell "chmod 4755 su"
adb -d shell "chmod 4755 busybox"
adb -d shell "chmod 4755 sqlite3"
maybe it's complicate, i tried many times to mod it,but no result.
i run it ,it goes to
adb -d shell "mount -o remount,rw /dev/block/stl9 /system"
this line ,says ‘mount :operation not permitted ’
and it still $ instead of #
i do not know where the problem is ...
plz help me
hi pls their are two tutorials on this subject pls ask ur question in one of the threads
CLOSED
and my base version is ZHJPF
i think u need to su to remount system as rw.

Android 2.2/2.3 stock,Flash recovery without unlocking bootloader (GRJ22 Nexus One)

Hi,
I found a nice exploit for Xperia which works fine for Nexus one too ( the DooMLoRD exploit ).
I modified the script to flash the recovery without unlocking the bootloader, so you can flash the rom you like
The exploit works fine on Nexus one 2.3.4 GRJ22 with stock rom and locked bootloader, if you don't have a nexus one:
- remplace files/recovery.img with the right one!
- modify the line in script with the right system partition path.
here's the linux script to do the trick :
2shared.com/file/4uu5h2NH/zergRush_automated_Linux_roott.html
i'm sure someone will port it to windows
NB : backup data, and apps, when you flash a new rom, all data are deleted ( except SD Card).
Automatic installation using the script :
tar -xjvf zergRush_automated_Linux_root.tar.bz2
cd zergRush_automated_Linux_root/
chmod a+x runme-linux
sudo ./runme-linux
Manual installation :
tar -xjvf zergRush_automated_Linux_root.tar.bz2
cd zergRush_automated_Linux_root/
./files/adb kill-server
./files/adb wait-for-device
./files/adb shell rm -r /data/local/tmp
./files/adb shell mkdir /data/local/tmp
./files/adb push ./files/zergRush /data/local/tmp/
./files/adb shell chmod 755 /data/local/tmp/zergRush
./files/adb shell /data/local/tmp/zergRush
./files/adb wait-for-device
./files/adb push ./files/busybox /data/local/tmp
./files/adb shell chmod 755 /data/local/tmp/busybox
./files/adb shell /data/local/tmp/busybox mount -o remount,rw /system
./files/adb push files/busybox /system/xbin
./files/adb shell chown root.shell /system/xbin/busybox
./files/adb shell chmod 04755 /system/xbin/busybox
./files/adb shell /system/xbin/busybox --install -s /system/xbin
./files/adb shell rm -r /data/local/tmp/busybox
./files/adb push ./files/su /system/bin/su
./files/adb shell chown root.shell /system/bin/su
./files/adb shell chmod 06755 /system/bin/su
./files/adb shell rm /system/xbin/su
./files/adb shell ln -s /system/bin/su /system/bin/su
./files/adb push files/Superuser.apk /system/app/
./files/adb shell rm -r /data/local/tmp
./files/adb push files/flash_image /data/flash_image
./files/adb shell chmod 755 /data/flash_image
./files/adb push files/recovery.img /data/recovery.img
./files/adb shell /data/flash_image recovery /data/recovery.img
./files/adb shell rm /data/flash_image
./files/adb reboot recovery
In less than a minute, your phone will reboot to amonRA recovery, flash the rom you want, and Enjoy!

[Q] TV BOX B351 android B351 rk31sdk

Hi can anyone please help with this Tv Box Quad-Core-Android-4-2-Rockchip-RK3188-Mini-PC-Smart- tv box works great the problem is some software need this box to be rooted i no how to connect to a pc shows up as a drive with folders here is the spec
* Android Device Brand rk31sdk
* Android Device Name PC Smart TV BOX Media Player
* Android Device Model B351 rk31sdk
* Android Version 4.2
* Build Number rk31sdk-eng 4.22 JDQ39/eng.linking.20140114.142223eng/test-keys
This is to help anyone with a similar device and I'll be brief;
First Install The Windows Drivers (you know, so you can actually talk to it)
i.e. from here... http://www.cnx-software.com/2013/11/08/simplified-method-to-install-rockchip-usb-drivers-in-windows-xp78/
If you have two Micro USB ports, work out which one is the power only v's the switchable USB guest / host one.
In setting, enable USB debug & then enable USB "connect to PC"
Windows should now detect and load the drivers for the device.
When the device is rebooted, you'll need to re-enable the "connect to PC" setting each time.
I found this package online that works for root but they left out of the script to copy the Super User App to the device. http://www.cnx-software.com/2013/03/19/how-to-root-rockchip-rk3188-mini-pcs/
The Archive Contains these files you'll need;
binary "su"
binary "SuperSU.apk"
binary "busybox"
binary "RootExplorer.apk"
It also contains the standard adb application
"TPSparkyRoot.bat" [modified] should contain;
Code:
@echo off
CD /D "%~dp0"
echo *---* VonDroid.com N101 II Root Tool based on work by sunnydavid *---*
echo --- Plug in your device, make sure debugging is enabled in Developer Options
echo --- This script will now copy files over to your N101 II
echo.
adb shell mv /data/local/tmp /data/local/tmp.bak
adb shell ln -s /data /data/local/tmp
adb reboot
echo --- Reboot 1/3 - Press Space Bar once the device has rebooted
pause
adb shell rm /data/local.prop > nul
adb shell "echo \"ro.kernel.qemu=1\" > /data/local.prop"
adb reboot
echo --- Reboot 2/3 - Press Space Bar once the device has rebooted
pause
adb shell id
echo --- If the ID shows as 0/root then continue, otherwise CTRL+C to cancel and start over
pause
adb remount
adb push su /system/bin/su
adb shell chown root.shell /system/bin/su
adb shell chmod 6755 /system/bin/su
adb push busybox /system/bin/busybox
adb shell chown root.shell /system/bin/busybox
adb shell chmod 0755 /system/bin/busybox
echo --- Installing SuperSU
adb push SuperSU.apk /system/app/SuperSU.apk
adb shell chown root.root /system/app/SuperSU.apk
adb shell chmod 0644 /system/app/SuperSU.apk
adb push RootExplorer.apk /system/app/RootExplorer.apk
adb shell chown root.root /system/app/RootExplorer.apk
adb shell chmod 0644 /system/app/RootExplorer.apk
echo Completing Root
adb shell rm /data/local.prop
adb shell rm /data/local/tmp
adb shell mv /data/local/tmp.bak /data/local/tmp
adb reboot
echo echo --- Reboot 3/3 - Your N101 II should now be rooted
pause
echo on
aboxy said:
Hi can anyone please help with this Tv Box Quad-Core-Android-4-2-Rockchip-RK3188-Mini-PC-Smart- tv box works great the problem is some software need this box to be rooted i no how to connect to a pc shows up as a drive with folders here is the spec
* Android Device Brand rk31sdk
* Android Device Name PC Smart TV BOX Media Player
* Android Device Model B351 rk31sdk
* Android Version 4.2
* Build Number rk31sdk-eng 4.22 JDQ39/eng.linking.20140114.142223eng/test-keys
Click to expand...
Click to collapse
Did you find rom for this version ? searching for Build Number rk31sdk-eng 4.22 JDQ39
Gonna try this now have the exact same model no.
Sent from my GT-I9505 using XDA Free mobile app

Categories

Resources