First off, a big thanks goes out to coolbho3000 and paulobrien for coming up with the overclock module and VISIONary, respectively. And also a big thanks to mcp2009 for first suggesting the use of GScript.
I put this in the other method thread, but I thought it might need it's own topic since a bunch of people found this helpful in the development forum. I think it may be a good guide for some people here. Why is this method nice? Because it streamlines the way the overclock works using VISIONary. I'm new to Android but I've been learning pretty fast, and I want to give back to the community that has helped me come along.
1. Obtain Root through VISIONary
The first thing you need to do is gain root on your phone. To do this, download and install VISIONary from Android Market. The first time you run it, make sure to allow it to run-on-boot from now on. Run it, and you'll have root. Easy as pie.
2. ADB Push to /data/local
Next, you'll need to adb push the vision_oc.ko file to the /data/local folder using my desktop computer. How do you adb push? Cyanogen Wiki has a good guide on how to get this going on your computer. A caveat with the G2 is you may run into driver issues. If this happens, download PdaNet onto your computer, and it will install all the drivers you need for adb. There is also another solution to the driver issues that was solved on this thread. I believe everyone should learn to use adb at some point or another, since it is an invaluable tool and opens up a world of possibilities, which is why I advocate it as the route of choice in this method.
Once you have adb installed, go download the vision_oc.ko file in the original thread. Make sure you put it into the folder on your computer that your command prompt is directed to at the time (most likely your Document and Settings folder). Enable USB debugging on your phone, connect it to your computer, open the command prompt and type:
Code:
adb push vision_oc.ko /data/local
This should copy the file to your /data/local folder on your phone. One more file you should adb push to the /data/local folder is a file you will name visionary.sh. Open up Notepad, and put in there:
Code:
su
insmod /data/local/vision_oc.ko
Make sure you name it visionary.sh, and push it the same way you did the other file using the following code in the command prompt:
Code:
adb push visionary.sh /data/local
There is a lot more to do with adb, so I encourage you to learn it, but for now, we are done with it!
3. Set Scripts up in GScript Lite
Download and install GScript Lite from the Android Market. I then set up 5 scripts to control the overclock:
1. 1017.6 MHz Default
Code:
rmmod vision_oc.ko
insmod /data/local/vision_oc.ko
2. 806.4 MHz Factory Setting
Code:
rmmod vision_oc.ko
insmod /data/local/vision_oc.ko pll2_l_val=42
3. 1209.6 MHz Overclock
Code:
rmmod vision_oc.ko
insmod /data/local/vision_oc.ko pll2_l_val=63
4. 1305.6 MHz Overclock
Code:
rmmod vision_oc.ko
insmod /data/local/vision_oc.ko pll2_l_val=68
5. 1420.8 MHz Overclock
Code:
rmmod vision_oc.ko
insmod /data/local/vision_oc.ko pll2_l_val=74
Basically with these scripts, I can control everything. You can always change the values to make it more suitable to your phone, but I think these values give you a nice range.
4. SetCPU
I highly recommend you buy SetCPU from the Android Market. It will help you have complete control over your overclock and power settings. So go do it!
At this point, you are done! I suggest you reboot the phone so you can see all of this in action! So for example, when I reboot my phone, and everything gets wiped, VISIONary runs, my phone gets rooted, and the visionary.sh script runs automatically to give me the 1017.6 MHz Default script to start the overclock, meaning, you are overclocked already at 1017.6 MHz at boot! The reason I used the default 1017.6 MHz in my visionary.sh script (the vision_oc.ko file is set to overclock your phone at that speed by default without adjusting the value), is because it is definitely stable enough for every G2 to handle, so people won't be locking themselves out because of setting an overclock too high at boot. From there, I can just simply click any other overclock script in GScript to change the CPU to my desired speed at the time.
Hopefully this helps some people out!
Awesome
Sent from my T-Mobile G2 using XDA App
i'm definitely a noob and still climbing the learning ladder - just wanted to say thanks, especially for what is probably a simple step for a lot of folks, but installing adb was a headache - that tutorial link helped a lot
larryccf said:
i'm definitely a noob and still climbing the learning ladder - just wanted to say thanks, especially for what is probably a simple step for a lot of folks, but installing adb was a headache - that tutorial link helped a lot
Click to expand...
Click to collapse
No problem. I'm still learning and am no where near an expert, but I thought I would share the info I have uncovered over the last few weeks. It has been a ball. =)
How can I make the default overclock 1209mhz instead of 1ghz?
Your instructions specify that you have 1ghz as default.
edit- ok so with no values it equals 1ghz? But if I add the values "pll2_l_val=63" to the .sh script I can redefine the default speed.
KShatzkes said:
1. 1017.6 MHz Default
rmmod vision_oc.ko
insmod /data/local/vision_oc.ko
2. 806.4 MHz Factory Setting
rmmod vision_oc.ko
insmod /data/local/vision_oc.ko pll2_l_val=42
3. 1209.6 MHz Overclock
rmmod vision_oc.ko
insmod /data/local/vision_oc.ko pll2_l_val=63
4. 1305.6 MHz Overclock
rmmod vision_oc.ko
insmod /data/local/vision_oc.ko pll2_l_val=68
5. 1401.6 MHz Overclock
rmmod vision_oc.ko
insmod /data/local/vision_oc.ko pll2_l_val=73
Click to expand...
Click to collapse
How does the visionary.sh script no which gscript to run? It's not defined in the code. Your default gscript (for 1ghz) doesn't even define the values. Basically I just wanna know, how with no values it defaults to 1ghz.
sinistersai4d4d said:
How does the visionary.sh script no which gscript to run? It's not defined in the code. Your default gscript (for 1ghz) doesn't even define the values.
Click to expand...
Click to collapse
The module, vision_oc.ko, runs at 1017.6 MHz by default
^Oh. Ok, thought that was kinda odd.
Thanks for the work with this. When I go to push the second file:
Make sure you name it visionary.sh, and push it the same way you did the other file using the following code in the command prompt:
adb push visionary.sh /data/local
I get back:
cannot stat 'visionary.sh': No such file or directory
Any idea what I am doing wrong?
It worked when I added .txt to the end so:
adb push visionary.sh.txt /data/local
Is that correct? I'm also at 806 mhz via SetCPU and can't figure how to launch Visionary at boot. Help please...
make sure you have two files in data/local that you've added. the .oc.ko and the .sh file.
Make sure to open settings/applications/VisionARY and clear any defaults or presents. Then next time you run it try RE enabling boot on start (that worked for me)
ok my g2 is already overclock to 1.42ghz, im trying to learn adb. my laptop recognize my device when i type "adb devices" but the problem is when i type "adb shell" i get a "$" sign instead of " # ". Anybody can help me with this? ive searched the adb for dummies it didnt have the info that i needed =(
THanks in advance!
Type su if your using connectbot form the phone.
G1rome said:
ok my g2 is already overclock to 1.42ghz, im trying to learn adb. my laptop recognize my device when i type "adb devices" but the problem is when i type "adb shell" i get a "$" sign instead of " # ". Anybody can help me with this? ive searched the adb for dummies it didnt have the info that i needed =(
THanks in advance!
Click to expand...
Click to collapse
aka DaBigKahuna said:
It worked when I added .txt to the end so:
adb push visionary.sh.txt /data/local
Is that correct? I'm also at 806 mhz via SetCPU and can't figure how to launch Visionary at boot. Help please...
Click to expand...
Click to collapse
It needs to be a .sh file. Basically what happens is when VISIONary runs on boot, it runs visionary.sh as well, so any script in that file runs.
I also explain why I put the default as 1GHz over clock. It's for stability issues. Every G2 is different, and some people can lock themselves out if they have an over clock too high for them on boot. You can change things if you want, but I wouldn't suggest it honestly.
aka DaBigKahuna said:
Type su if your using connectbot form the phone.
Click to expand...
Click to collapse
I connected my phone to my laptop and using cmd, so when I type "adb shell" I get $ instead of # from cmd.
Sent from my T-Mobile G2 using XDA App
G1rome said:
I connected my phone to my laptop and using cmd, so when I type "adb shell" I get $ instead of # from cmd.
Sent from my T-Mobile G2 using XDA App
Click to expand...
Click to collapse
Type su (acronym for Super User) and you will get a # prompt. In *nix a $ is a regular user and a # is a super user. Think of it as a normal user and an administrator in windows.
So you would go:
adb shell
Then you get a $ prompt
su
Now you should have a # prompt.
So im curious if this would work on other android devices or if its just the g2? Worked like a charm on my g2 but im curious if i could run this on a vibrant running eugenes jpm froyowith favorable results.
sent from my froyo-ed vibrant.
Detailed step by step video
Easy way
xww.youtube.com/watch?v=wToXNT3zIqY
put a w in front of the link, can't post url yet.
harriz said:
Detailed step by step video
Easy way
xww.youtube.com/watch?v=wToXNT3zIqY
put a w in front of the link, can't post url yet.
Click to expand...
Click to collapse
That video doesn't really explain THIS guide. It uses the bare minimum to get things running, while this guide explains how to streamline the whole process as best possible with temp root on boot-up.
jeremyritzmann said:
So im curious if this would work on other android devices or if its just the g2? Worked like a charm on my g2 but im curious if i could run this on a vibrant running eugenes jpm froyowith favorable results.
sent from my froyo-ed vibrant.
Click to expand...
Click to collapse
That I am not sure. Maybe one of the developers can answer you there.
Doesn't the Vibrant have its own OC method anyways?
Related
I searched around and couldn't get a clear answer. I'm a noob at anything command prompt/terminal related.
I was screwing around with adb last night after figuring out that I can remove program .apks with the rm <com.whatever.program> command. I got a little trigger happy and removed things that I don't use, just to test it out. I made a nandroid backup before I started. The phone runs fine, but now the Market won't download anything. It just sits on the Starting download... screen.
One of the .apks I removed was GmailProvider.apk. Whether this is the problem or not, I'd like to reinstall it for practice. I can always nand restore later.
So my question is... How can I use adb push to reinstall an apk?
I tried:
Code:
adb push C:\GmailProvider.apk
adb install C:\GmailProvider.apk
adb install C:\GmailProvider.apk \system\app
And about every variation of the 3, in and out of the adb shell.
It didn't work, and I'm at a loss to do anything else. So does anyone have any suggestions?
You have to push it abs then give it permissions.
So after pushing the apk give it permissions by doing this.
Code:
Adb push C:/gmailprovider.apk /system/app/gmailprovider.apk
adb shell
Chmod 775 /system/nameofapp.apk
Exit
Adb reboot
Your phone needs to be rebooted so I added the adb reboot, but you can just turn it off and on like you would normally or use that command.hope it helps.
Sent from my Eris using XDA App
Code:
# Chmod 775 /system/GmailProvider.apk
Chmod: not found
What's Chmod do, anyway?
EDIT: Forgot to cd to the directory...lemme try again.
EDIT2: Same error.
Okay, I tried:
Code:
# install /system/app/GmailProvider.apk [-cdDsp]
With no errors. Lemme see if it worked.
EDIT: I can see it, but the Market still isn't downloading apps. Lemme try an actual program.
Raikalo said:
Code:
# Chmod 775 /system/GmailProvider.apk
Chmod: not found
What's Chmod do, anyway?
EDIT: Forgot to cd to the directory...lemme try again.
EDIT2: Same error.
Click to expand...
Click to collapse
Ok I see two things that might be wrong with what you did.
Try not capatalizing the first letter(Not sure if this is a big deal but better to make sure.) and fix your path, GmailProvider.apk should be in the system/app folder.
Code:
adb shell
chmod 775 /system/app/GmailProvider.apk
adb reboot
The chmod command (abbreviated from change mode) is a shell command and C language function in Unix and Unix-like environments. When executed, it can change file system modes of files and directories. The modes include permissions and special modes
EDIt:
Raikalo said:
Okay, I tried:
Code:
# install /system/app/GmailProvider.apk [-cdDsp]
With no errors. Lemme see if it worked.
EDIT: I can see it, but the Market still isn't downloading apps. Lemme try an actual program.
Click to expand...
Click to collapse
Yea you might be able to see it but the app might not have the right permissions to be used. Therefore it might be the reason why you can't download apps from market.
Excellent.
Code:
adb push C:/GmailProvider.apk /system/app/GmailProvider.apk
adb shell
chmod 775 /system/app/GmailProvider.apk
adb reboot
Worked like a charm. The capitalization was required; it gave an error without it. I installed Gmail.apk again using the same method and ran the program, and it worked. Thanks!
EDIT: GASP! Market works.
You're a lifesaver. Well, ROMsaver. I guess this means that GmailProvider.apk and gtalkservice.apk can't be removed from the phone.
Raikalo said:
However, the Market still won't download. Hm.
Click to expand...
Click to collapse
I just want to take this moment to make a Public Service Announcement: Everyone please remember to do a Nandroid backup before making any changes to your /system area.
Raikalo said:
Excellent.
Code:
adb push C:/GmailProvider.apk /system/app/GmailProvider.apk
adb shell
chmod 775 /system/app/GmailProvider.apk
adb reboot
Worked like a charm. The capitalization was required; it gave an error without it. I installed Gmail.apk again using the same method and ran the program, and it worked. Thanks!
However, the Market still won't download. Hm.
Click to expand...
Click to collapse
Don't know what to tell ya, you can start adding back the apks you deleted or do that nand restore since you already know how to install back a system apk, so you learned what you wanted
EDIT: I see you got it to work so that's good news, but like Nestor pointed out always use nand backup before you do any changes to the system area, I've learned to do this the hard way lol.
It's a good reminder
Thanks a ton guys I'll nand backup in a few to have a better restore point.
Learning android-related things ftw!
Oh, one more thing.
I saw something about adding an Environmental Variable to windows that involved adb? Could someone explain that?
- Also, Mikey1022 has reminded me to add the "ADB" directory path as a system variable in windows...
To do this right-click on "My Computer" and select Properties. Next select the Advanced tab(Advanced Settings in Vista) then select Environment Variables.
Click "New" under System Variables and add the following:
Variable: adb
Value: C:\android-sdk-windows-1.1_r1\tools
Click to expand...
Click to collapse
There's an example. I tried this and it didn't do anything.
Raikalo said:
Oh, one more thing.
I saw something about adding an Environmental Variable to windows that involved adb? Could someone explain that?
There's an example. I tried this and it didn't do anything.
Click to expand...
Click to collapse
i think Thefuzz4.net explained this better
To make life easier, lets add a global path to the android SDK tools. Right-click My Computer > Properties,
click on Advanced, then click on Environment Variables.
Doubleclick on PATH, then at the end of the Variable value, add a semi colon ";" and then c:\AndroidSDK\tools
Doing The above ^^ will let you run adb from anywhere on your computer, like your desktop. You won't have to change to the directory and the run adb anymore, you can just run adb from anywhere on the command prompt. Its basically a little trick for us lazy people that hate having to "cd C:/android/tools" before running adb.
Does anyone know of a good resourse for adb and/or shell commands. Every time i try to goole it i just get links to different forums with just basic stuff, push, pull, ect. Id like to find something much more complete including chmod and the like
Sent from my Eris using XDA App
Thanks t2. Makes sense now. I hate CDing to the directory, so shortcuts are also ftw.
@above -- couldn't find a real resource so I resorted to asking specific questions on xda. if you find a resource lemme know.
ALSO -- chmod 775 /system/app/RandomProgram.apk.....what does the "775" do?
Raikalo said:
Thanks t2. Makes sense now. I hate CDing to the directory, so shortcuts are also ftw.
@above -- couldn't find a real resource so I resorted to asking specific questions on xda. if you find a resource lemme know.
ALSO -- chmod 775 /system/app/RandomProgram.apk.....what does the "775" do?
Click to expand...
Click to collapse
the different numbers are different permission settings. I forgot the other numbers, but their are others that set the applications for different permissions in the system. Someone correct me if I am mistaken though.
Finally found some explanation of chmod at catcode.com/teachmod/ . not sure if it directly applies to andriod, but seems to make sense to me now
Sent from my Eris using XDA App
wrong thread
So, everything I flash a new ROM, I have some commands I run via ADB on my laptop that moves some APKs around on the phone as well as pushing some to the phone. I would like to compile these commands into an update.zip file so that I don't have to be near a laptop every time I want to flash a new ROM. I read up on update-script syntax, but I didn't see anything regarding ADB commands. Is it possible to administer ADB commands within update-script syntax? The one I need to use the most is mv, so if there is an alternative to that in the update-script syntax, that would work too.
cambunch said:
So, everything I flash a new ROM, I have some commands I run via ADB on my laptop that moves some APKs around on the phone as well as pushing some to the phone. I would like to compile these commands into an update.zip file so that I don't have to be near a laptop every time I want to flash a new ROM. I read up on update-script syntax, but I didn't see anything regarding ADB commands. Is it possible to administer ADB commands within update-script syntax? The one I need to use the most is mv, so if there is an alternative to that in the update-script syntax, that would work too.
Click to expand...
Click to collapse
Well, mv for example is not an ADB command (adb shell mv) it's a shell command. So I think you want to be able to run shell commands from an update/r script?
If that's the case, download my rom and have a look at the build script, it executes a comprehensive shell script which might give you some pointers.
djmcnz said:
Well, mv for example is not an ADB command (adb shell mv) it's a shell command. So I think you want to be able to run shell commands from an update/r script?
If that's the case, download my rom and have a look at the build script, it executes a comprehensive shell script which might give you some pointers.
Click to expand...
Click to collapse
Thanks, I will check it out now.
cambunch said:
Thanks, I will check it out now.
Click to expand...
Click to collapse
djmcnz said:
Well, mv for example is not an ADB command (adb shell mv) it's a shell command. So I think you want to be able to run shell commands from an update/r script?
If that's the case, download my rom and have a look at the build script, it executes a comprehensive shell script which might give you some pointers.
Click to expand...
Click to collapse
Bump...
Care to post the build script instead of us having to download a ROM for it?
hello i am new to making scripts and i need help as in how to create a script that just enabled the overclocking to 1ghz.
and to place it in data/local
thanks
can anyone help me please??
please anyone help.. i have been looking everywhere
my visionary.sh does not seem to pick up either (also to oc to 1Gz)....Just as easy, I set the quick-access buttons to launch gscript (free version on market) buttons as follows......1) no reboot script 2) a 1.2 Gz script 3) a 1.0 Gz script.....The scripts were from the .zip files on page 3 (i think) of the main OC forum...After I boot, I simply hit the 1.2 Gz button, and it is good to go......something like this will have to do until a perm root is found....Since I found correct settings for SetCPU (2.0.3) my oc has been very stable...
make sure both visionary.sh and vision_oc.ko are in /data/local
Also make sure you have the right vision_oc.ko (if you updated with OTA, there's a new vision_oc.ko)
Here is my visionary.sh
su
insmod /data/local/vision_oc.ko pll2_l_val=74
mount -o remount,rw /dev/block/mmcblk0p25 /system
setprop qemu.sf.lcd_density 200
busybox killall system_server
Click to expand...
Click to collapse
If you don't like having your screen .... smaller, then remove the last 3 lines
if you have the android sdk, and usb driver installed, you can use ADB to "push" the newly created visionary.sh file mentioned in the previous posts to you data/local folder.
first, write the overclock script in a text editor (use wordpad if you're using windows), and save as text (msdos format seems to work the best), call it visionary (it'll probably auto-rename as visionary.txt).
put this folder in your android sdk \ tools folder.
open up command prompt, by clicking start, run, "cmd" and enter.
type cd \android\tools (or whereever your android sdk folder is)
optional: type dir, and see what the file is called (probably visionary.txt)
type: adb push visionary.txt /data/local/visionary.sh
and you're done.
alternative method is to get Root Explorer or some root file manager on to your phone, use a text editor or gscript to make the script, and then manually putting it in /data/local/ using Root Explorer.
philosophics said:
make sure both visionary.sh and vision_oc.ko are in /data/local
Also make sure you have the right vision_oc.ko (if you updated with OTA, there's a new vision_oc.ko)
Here is my visionary.sh
If you don't like having your screen .... smaller, then remove the last 3 lines
Click to expand...
Click to collapse
will this script run on boot as to my phone will boot at said speed and pixel density?
or what do i have to do?
You are correct. It will run with visionary, oc and change density then it hot reboots. Works great even with visionary running at boot. You'll see your phone basically boot up twice in less then 3 mins but don't be alarmed.
I would power phone on and then go heat up some food. Come back and it should be good to go.
Enjoy!
Sent from my T-Mobile G2 using XDA App
philosophics said:
You are correct. It will run with visionary, oc and change density then it hot reboots. Works great even with visionary running at boot. You'll see your phone basically boot up twice in less then 3 mins but don't be alarmed.
I would power phone on and then go heat up some food. Come back and it should be good to go.
Enjoy!
Sent from my T-Mobile G2 using XDA App
Click to expand...
Click to collapse
thanks a lot man. i basically got it to work but the first time i did it the clock speed went back to normal idk y. and some apps are not suited for the greater resoulution lol
The sh file either freezes my phone or doesn't root. Anyone else?
Sent from my T-Mobile G2 using XDA App
Discovering "adb shell" gave joy, experiencing the shell as minimal bash with awful line handling (backspace and command recall) gave annoyance, experiencing "adb root" refusing access gave frustration.
After some tracking, it turns out that adbd behaviour is determined by the property "ro.debuggable" which is set during system init. The initial value is located in the file "/default.prop". In JP6 it is set to 0 resulting is adbd refusing access. However, set to 1, "adbd root" will give the much better response of "restarting adbd as root".
Once set, the property value cannot be changed. To get this fixed you need to change the contents of the file default.prop which is located in the initial ramdisk image.
Optionally, you can put a replacement shell in /sbin of in ramdisk image so that when connected "exec bash" will make things more relaxing. I attached the version I am using, which is statically linked with ncurses/readline.
There is also a simple patch to unlock adbd if you dislike opening and rebuilding the ramdisk image. However, you do need binoffset which is located in the scripts directory of the linux source tree.
Code:
ofs=`scripts/binoffset initramfs.cpio \`echo -n 'debuggable=0' | od -t u1 -An\` 2>/dev/null`
echo 'debuggable=1' | dd bs=1 seek=$ofs conv=notrunc of=initramfs.cpio
Thanks...any help though?
Hi....thanks for the fix....could you point me to a decent howto on editting the initial ramdisk?
Thanks
M
it doesn't sound simple
i will try to figure that one out ...
Dear Hexabit,
I know it's an old topic.
But do you know how can I use this Fix on a windows 7?
tried searching for binoffset software/script..couldn't find anything
I have a Flytouch 3 tablet, rooted(Z4) with terminal emulator and root explorer.
is there a way to use you bash.rar to unlock adb access?
thanks for the help
doekoe87 said:
Dear Hexabit,
I know it's an old topic.
But do you know how can I use this Fix on a windows 7?
tried searching for binoffset software/script..couldn't find anything
I have a Flytouch 3 tablet, rooted(Z4) with terminal emulator and root explorer.
is there a way to use you bash.rar to unlock adb access?
thanks for the help
Click to expand...
Click to collapse
you have to split the kernel, then decompile the ramdisk and edit default.prop and change ro.debuggable to 1, then recompile and flash
confuse but giving me a clue
I use unpackbootimg in my ubuntu pc.
The adb root works not properly after set debuggable=1.
When I saw your thread that told the adbd should be unlocked too, then I replace the adbd with a unlocked one. It works!
Thanks for your help.
I am sorry but I don't understand how to use the file.
teoking said:
I use unpackbootimg in my ubuntu pc.
The adb root works not properly after set debuggable=1.
When I saw your thread that told the adbd should be unlocked too, then I replace the adbd with a unlocked one. It works!
Thanks for your help.
Click to expand...
Click to collapse
Hi,
I can upload nothing to my root catalog of my phone.
So how could I use the adbd file in this case?
Phone is rooted but I have a problem with adb root command like subject of this topic is.
Can u help me with the process because I kept the file in /sbin but still it's not working.
Active system
Sent from my SM-G900T3 using Tapatalk
These are instructions for rooting Android devices that utilize the RK3066 chipset (Cortex A9 Dual Core, MALI Quad-Core GFX).
I have tested and verified that these instructions work for the UG007 Android-on-a-stick...they *should* work with any other devices that utilize the same USB chipset. I can almost guarantee this will work on the Imito MX1/2 as you can swap ROMS from this device.
(Basically, if you have the right ADB drivers, you should be good to go)
As per every other thread you read on this site - I TAKE NO RESPONSIBILITY FOR ANY DAMAGES YOU MAY CAUSE TO YOUR DEVICE.
This is a fairly risk-free mod, but you know...$hit happens.
Okay. Let's start.
THIS TUTORIAL ASSUMES YOU HAVE ADB AND KNOW HOW TO USE IT, and that you're in a Windows environment. There are numerous places on the web where you can find this info...and I ain't yo mamma.
1. Download all the files attached to this thread.
2. Attach your RK3066 device to your computer via it's microUSB port. You'll need to have it hooked to a display too.
3. Once booted, go to system settings. Under settings > developer options, enable USB Debugging. Under settings > USB, click "connect to computer" (This may vary depending on your ROM configuration. The point here is to have debugging enabled and your computer to recognize the stick in device manager as something other than USB storage)
4. Extract the right drivers for your system (x86/x64)
5. Go to device manager on your computer. Look for the new "unknown device". Right-click, pick "update driver software"., "browse my computer".
6. Browse to wherever you extracted the drivers in step 4. Click Next. Confirm that you want to install.
7. Open a command window in the directory where you have ADB. Type "adb devices". Still nothing, right?
8. Navigate to C:\users\MYUSERNAME\.android, where "MYUSERNAME" is your User Name. (Duh?)
9. Create a file called adb_usb.ini
10. Open it in a text editor. Add the following string and save (This tells ADB to look for our Vendor ID:
0x2207
11. You should now be able to type "adb devices" at CMD and see your device.
12. Now for the fun. Extract the stuff from "pushme" to the same directory as ADB.
13. Enter the following commands (note: The "$" and "#" symbols do not get keyed in):
Code:
adb push psneuter /data/local/tmp
adb shell
$ cd /data/local/tmp
$ chmod 777 psneuter
$ ./psneuter
14. Psneuter should run and close shell when done. Enter MOAR commands:
Code:
adb kill-server
adb devices
adb shell
15. Take a good look. Is there now a "#" sign? Good. You now have root access. You may continue. If not, then proceed to go yell at me in the comments. If yes, then proceed to enter the last batch of commands to make your newfound privileges permanent:
Code:
mount -o remount,rw -t rfs /dev/block/st19 /system
exit
adb push busybox /system/bin
adb push su /system/bin
adb install Superuser.apk
adb shell
# chmod 4755 /system/bin/busybox
# chmod 4755 /system/bin/su
# mount -o remount,ro -t rfs /dev/block/st19 /system
# exit
adb reboot
After a reboot, download a root app from Play Store to see if it worked! I find Root Checker is boffo for this sort of thing:
https://play.google.com/store/apps/...tcheck&feature=nav_result#?t=W251bGwsMSwyLDNd
THANKS/CREDITS:
Aaron Orquia @ Pocketables.com for the original "universal" root method.
AMJtech's tutorial where I found working ADB drivers and the adb_usb.ini bit to get it recognized.
The guy(s) who make Super1ClickRoot for putting all the necessary files in one easy-to-find spot.
Thanks for this tutorial.
A couple of notes:
Wow !! That's a lot of extra steps for you Windows users. Mac and Linux users start at step 11 (but if you are a Mac or Linux user, you already knew that. )
Linux: If the device still does not show up in Step 11, post, and I can help (Hint: It may not be /just/ the udev stuff.)
Is step 13 necessary? adb remount works on mine. (not sure if I had to adb root first or not) but I can have a root shell via adb without psnueter.
If adb remount succeeds, skip step 14, and continue with the 3rd line of step 15.
Linuxslate said:
Thanks for this tutorial.
A couple of notes:
Wow !! That's a lot of extra steps for you Windows users. Mac and Linux users start at step 11 (but if you are a Mac or Linux user, you already knew that. )
Linux: If the device still does not show up in Step 11, post, and I can help (Hint: It may not be /just/ the udev stuff.)
Is step 13 necessary? adb remount works on mine. (not sure if I had to adb root first or not) but I can have a root shell via adb without psnueter.
If adb remount succeeds, skip step 14, and continue with the 3rd line of step 15.
Click to expand...
Click to collapse
Thanks for the input! Yes, yes, I know windoze makes more work. It's also pretty widespread for folks.
For step 13 - I think it depends on the device. It would be nice for others to weigh in and let me know if it's needed. If not, I can totally remove it.
Also, in the other ROM thread, I made, it's even easier to root - you just grab one of the pre-rooted ROMS and drop it in SD card...the system does the rest. Mind you, this is for the UG007.
Links UG007
If you Bluetooth connection is not working properly, try to install this custom ROM: http://blog.geekbuying.com/index.php/category/android-tv-stick-tv-box/ug007/
How to install CWM-based Recovery: http://androtab.info/clockworkmod/rockchip/
Both worked for me. I was able to connect my BT Keyboard/Mouse Pad combo
./psneuter
Failed to set prot mask (Inappropriate ioctl for device) ??
nice tutorial.. while finding the best way to work my ug007 i stumbled upon this thread via armtvtech.com
currently i only knew this tutorial to root the device, but looking at yours ill give it a try first.
digitalhigh said:
Also, in the other ROM thread, I made, it's even easier to root - you just grab one of the pre-rooted ROMS and drop it in SD card...the system does the rest. Mind you, this is for the UG007.
Click to expand...
Click to collapse
you cant install custom roms without flashmode, cant do flashmode without opening device.. or did i get it wrong!? talking about the ug007
actually you can install a custom rom once you are rooted without opening the device, here
Linuxslate said:
(Hint: It may not be /just/ the udev stuff.)
Click to expand...
Click to collapse
ehm.. im still preparing to root, i guess you hint at the android sdk?
if not ill holla back at you and complain why you didnt write it out in first place
but very good to know that i skip alot by "almost" only installing ubuntu to a vm
I may be missing something, but I couldn't get this to work on my UG007
psneuter didn't work for me, gave me an error about 'invalid ioctl' or something. But the strangest thing is that "adb shell" already shows the # in the prompt.
To confirm my suspitions, I also typed "adb root", which returned "adb is already running as root".
So I proceeded with the rest of the instructions. No errors appeared, installed Superuser and I can see su and busybox in system/bin
But when I download root checker it says it wasn't properly rooted. installing terminal and type "su" says permission denied - and that's it.
Am I missing something? I'm new to this rooting thing, so please don't be angry with my noobish questions
I managed to do it - but *not* by following this tutorial.
I used this: armtvtech.com/armtvtechforum/viewtopic.php?t=28 (Cant post links yet, sorry!)
Only ran the "TPSarky-VonDroid-Root" bat, and presto! I had root on UG007.
I even fixed the changing MAC address problem with wlan.ko from armtvtech.com/armtvtechforum/viewtopic.php?f=69&t=632&start=10 (link on page 2). I just copied it to /data/local/tmp, set permissions as rwr--r-- and then used root explorer to copy it to /system/lib/modules - now I have wifi signal every time I boot the device, and don't need to mess with my router config every time
I also manage to get xbox360 wired controller working. xpad.ko on /data/local/tmp and then insmod /data/local/tmp/xpad.ko - just connect the joystick after that, and it will be recognized. Only problem is, after a reboot I have to insmod again.
I tried doing the same thing I did with wlan.ko, but nothing happens - system won't load it on boot. Am I missing something here?
The psneuter is broken
I'm on Linux, running a RK3066, and psneuter gives "Failed to set prot mask (Inappropriate ioctl for device)". Running Ice Cream Sandwich 4.1.1, kernel 3.0.8+, build RK30_anpei10w1am-r4.0.57.20121207, A10-2 cpu.
SLotman said:
I may be missing something, but I couldn't get this to work on my UG007
psneuter didn't work for me, gave me an error about 'invalid ioctl' or something. But the strangest thing is that "adb shell" already shows the # in the prompt.
To confirm my suspitions, I also typed "adb root", which returned "adb is already running as root".
So I proceeded with the rest of the instructions. No errors appeared, installed Superuser and I can see su and busybox in system/bin
But when I download root checker it says it wasn't properly rooted. installing terminal and type "su" says permission denied - and that's it.
Am I missing something? I'm new to this rooting thing, so please don't be angry with my noobish questions
Click to expand...
Click to collapse
Try renaming old "su".
Check permissions on the su and busybox you installed.
MK808, MK809 [model T002], and the MK802 III anyone?
Hi,
Thanks OP for this information.
I have a Samsung S3 [my first android device] which I rooted with no problem, but am a total noob when it comes to these android sticks.
One can say they are very similar, so I wont be completely in the dark. OK, now that we got that out of the way...
Can anyone please confirm whether they have used this with the MK808, MK809 [model T002], and the MK802 III,
I have ordered these from 1 from amazon and 2 from ebay and am expecting delivery shortly, therefore I just want to make sure before I go bricking them one by one...
I notice that they all have RK3066 Cortex A9 chips but are manufactured by different companies. The ones I see on eBay, although they all bear the same code MK8xx, they all look very different! I presume the MK8xx code is a universal model?? just like 80486 was to the PC? given the case does this method work universally?
I intend to set them up with XBMC media centres and to use with a Xbox controller. Any advice on the best way for achieving this would be nice too.
Thanks
:good:
Linuxslate said:
Thanks for this tutorial.
Linux: If the device still does not show up in Step 11, post, and I can help (Hint: It may not be /just/ the udev stuff.)
Click to expand...
Click to collapse
Linuxslate, I have an MK808 that shows up in lsusb as 2207:300a when I put it in "flash mode" but it never shows up via "adb devices".
I got mine the other day and it turned out to be rooted already?
I decided to install SuperSu and that's how I found out it was rooted.
Immediately, installed Busybox, System Tuner Pro and Titanium Backup.
Rob
Rob sent this from his SPH-D710 via Tapatalk
So would this possibly work on this - http://www.zoostorm.com/Products/357-zoostorm-sl8-3305-1030-tablet-pc.aspx
States it's a Rockchip RK3066 Cortex A9 Dual Core 1.5GHz, running 4.1.1 Jelly Bean, quite interested in getting one & root would be a bonus.
psneuter broken
Hello,
the psneuter attached to the first post doesn't do anything to my ug007. I have the same error others have posted here and haven't gotten a reply about.
To unlock, I used the script that's mentioned in a post above, TPSarky-VonDroid-Root. If you google that, you'll find a download link amongst the results.
Thank u very much...:thumbup:
................................................................................................
Linuxslate said:
Try renaming old "su".
Check permissions on the su and busybox you installed.
Click to expand...
Click to collapse
Can you elaborate a little bit what you mean by renaming "su"?
I'm having the same issue..
Both su and busybox are having the same permission -rwsr-xr-x.
Sent from my Transformer Prime TF201 using XDA Premium HD app
I configured one of these at work. Upon using the terminal app and typing in su I got the # sign. They seem to come from the factory rooted already.
Sent from my Nexus 4 using xda app-developers app
ageerer84 said:
I configured one of these at work. Upon using the terminal app and typing in su I got the # sign. They seem to come from the factory rooted already.
Click to expand...
Click to collapse
Not exactly: this particular su can be used only from adb console, or at least that how it was on my tablet. So you need to replace it with a Superuser apk's su to get all features of rooted android. You can get one e.g. from FDroid
--
blog
Not sure what u mean by on your tablet. Android devices don't typically come rooted but I was surprised to have root access via terminal emulator on this stick PC. I just took it out of the box and definitely didn't have to go through the adb interface on a computer to flash superuser or what have you. Is this just me or is this a typical experience with this particular device?
Sent from my Nexus 4 using xda app-developers app