Pages

Wednesday, April 4, 2012

BLUESTACKS BETA ROOT INSTRUCTIONS



Finally, we have root access to Bluestacks beta. Credit goes to tenet421, Repin, and xRepinsSporx at xdaDevelopers for his commendable efforts. Here is step by step guide produced by  xRepinsSporx with few modifications by me to make sure that gapps work properly.

DOWNLOAD LIST (Download only these files from androidfilehost link given below) (assuming you already have BlueStacks installed):
Code:
1. initrd-betahack.img    ***INCLUDED***
2. ramdisk.img ***INCLUDED***

3. su.x86 ***INCLUDED***
4. BlueRegistryMOD ***INCLUDED***
---------------------------------------------------------------------------------------------
Download from Here:
http://www.androidfilehost.com/main/...Stacks%20Beta/
Code:
These are the custom files needed for root and r/w
-initrd-betahack.img
-ramdisk.img
-system.img
-su.x86
FILE: initrd-betahack.img 
-From Beta (modified)
-Place it in \%programdata%\BlueStacks\Android\ 

FILE: ramdisk.img 
-From Mod-V3.zip alpha
-Place it in \%programdata%\BlueStacks\Android\ 

FILE: system.img
Download from Here
Extract the zip file and
-Place it in \%programdata%\BlueStacks\Android\

FILE: su.x86 
-From Androidx86 build (extracted from rooted alpha)
-This is the x86 superuser binary that auto-grants superuser-rights
***This file will be pushed to android using adb later on***

---------------------------------------------------------------------------------------------
Code:
These files are the stock Beta files and remain in place
-kernel.elf
-Data.fs
-Prebundled.fs
-SDCard.fs
FILE: kernel.elf, Data.fs, Prebundled.fs, SDCard.fs
-From Beta
-Placed in \%programdata%\BlueStacks\Android\

---------------------------------------------------------------------------------------
Changes that need to be made to the registry are contained in BlueRegistryMOD.reg

FILE: BlueRegistryMOD.reg


***WARNING***
YOU MUST ENTER YOUR SPECIFIC USER ID BEFORE RUNNING BlueRegistryMOD.reg !!!
Where the registry key says
ENTER-YOUR-GUID-HERE you need to enter the number (with dashes) found here:

FIND YOUR SPECIFIC GUID HERE!!!
[HKEY_CURRENT_USER\Software\BlueStacks]
“USER_GUID”=”SOME-NUMBERS-HERE”

Example of a GUID:
“USER_GUID”=”8dfcb602-4b7d-11e1-9dc9-f3dea6cb4293”

Example of a modified “BootParameters” with correct GUID and changes made to mount /system:
[HKEY_LOCAL_MACHINE\SOFTWARE\BlueStacks\Guests\Andr oid]
"BootParameters"="root=/dev/sda1 SRC=/android DATA=/dev/sdc1 SDCARD=/dev/sdd1 GUID=8dfcb602-4b7d-11e1-9dc9-f3dea6cb4293 armApps=true GlMode=1 OEM=BlueStacks "

***ENTER-YOUR-GUID-HERE must be changed in 2(two) places in BlueRegistryMOD.reg***
-------------------------------------------------------------------------------------------
THIS IS THE PROCESS:
***Make sure to exit BlueStacks (from task manager kill all HD- process) before proceeding***

1. Paying attention to the guidelines above, place the following files in their correct location – this includes initrd-betahack.img, ramdisk.img, and system.img.
2. After finding your GUID and making the appropriate changes to BlueRegistryMOD.reg in 2(two) places, run the registry file.
3. Start/restart BlueStacks – go to the Start menu>type Start Bluestacks
IMPORTANT: THIS LITTLE TUTORIAL IS ONLY FOR THOSE WHO DON'T KNOW HOW TO INSTALL adb. GEEKS CAN SKIP THIS AND GO TO STEP 4
To get adb on your computer, You can simply download Android sdk tools from HERE.
  • Unzip it to your C:\
  • Now go to start, type cmd, hit enter. command prompt will open.
  • In command prompt type "cd c:" without quotes and hit enter. If you are already in c:\users\ur_user_name, just type "cd.." (cd double dot without quotes) and hit enter, again type "cd.." (cd double dot without quotes) and hit enter.
  • Now you should be in C:\>
  • Now type "cd tools" (without quotes) and hit enter
You are ready to follow the Next steps:
4
a. Connect to bluestacks - adb connect 127.0.0.1:5555
b. Ensure you have root access - adb root
     i. You should get message: “adbd is already running as root”
c. Mount system as read/write - adb remount
d. Remove ‘dummy’ superuser - adb shell rm /system/xbin/su
e. Push x86 superuser to BlueStacks - adb push su.x86 /system/xbin/su
     i. su.x86 must be in the same Windows directory you are running in the console
f. Correct the permissions for superuser - #adb shell chmod 6711 /system/xbin/su
g. Remount system read only - #adb shell mount -o ro,remount -t ext4 /dev/sdb1 /system
h. Exit adb by closing the console window
5. Restart BlueStacks – go to the Start menu>type Start BlueStacks
6. At this point you should have root and read/write access.
a. Verify root using a tool like Root Check. I suggest Root Check Pro because it will point you to what the problem is if you do NOT have root.
b. Verify read/write access using a tool like Root Explorer.
7. Enjoy and Don't forget to bookmark this blog. I will soon upload a video tutorial on How you can enjoy Android Icecream Sandwich (ICS) on your windows PC.


New Visitor? Like what you read? Then please subscribe to my Blog Feed or sign up for Free Email Updates.  If you have anything to share, please do write us a comment below. As a token of thanks I request you to share this blog with your friends at facebook, twitter or Google+. If you want to play the Best Games on your Android you can find Here. Oh you were looking for some crispy apps? Go get from Here Thanks for Visiting!
DOWNLOAD FREE ANDROID GAMES

33 comments:

akrem said...

can i know what is adb?where i can get it?

Counter1311 said...

Alltime after the process "g.Remount system read only - #adb shell mount -o ro,remount t-ext4 /dev/sdb1 /system" i got an error. the error is "usage: mount [-r] [-w] [-o options] [-t type] device directory" what have i to do ?

PS: after the process "f. Correct the permissions for superuser - #adb shell chmod 6711 /system/xbin/su" it doesnt happend nothing

i hope you can help me :)

akrem said...

may i know what version of bluestack u are using?mine is BlueStacks_HD_AppPlayerPro_setup_0.6.3.2212_REL..is it compatible using the system.img above?thx..:)

Counter1311 said...

thanks zanbeel, now root check show me that i have the root access, but when i open GameCIH is a message that shows that i need root access.

can you help me again ?

zanbeel said...

Akrem, it's the same Beta version for all of us. Go ahead bro....

zanbeel said...

Counter1311
Sorry mate, I tried for a work around but it failed. It's probably because the GameCIH is not built for arm processors and you know Bluestacks supports x86 right now. Hope you understand. I will nonetheless try it on ICS x86 and will update you later.

dostra385 said...

...device offline after connect.Help !!!

Alexiao said...

when i run "adb root", why it always gets " error: more than one device and emulator" ? Help!

sashi said...

after copying the 3 files, modifying the reg in 2 places correctly and made run, restart BlueStacks(which seems that not working anymore), adb connected, then at adb root:error device offline.

pls help

Alexiao said...

Thanks for your tips, i had it rooted.

Alexiao said...

Same issue here. :(

marlon said...

.ive managed to get the “adbd is already running as root”, but when i enter adb remount, the same error occur, the "error:more than one device and emulator". what should i do? sorry, im quite newbie on this kind of stuffs.

Unknown said...

.now im stuck on "rm failed on /system/xbin/su, no such file or directory. sorry im just a newbie.

Unknown said...

.zanbeel, it says on my Root Explore that it is rooted but it has "no SuperUser Found". can i ask what's the meaning of that?

zanbeel said...

Probably you mistyped the command, but you can go ahead and test if you are rooted and su is working or not..... You are most welcome.....

Unknown said...

.thanks zanbeel, ive got it working well. Got SU now. thank you!

chema535 said...

the file https://www.cx.com/mycx/share/n8a88IuiEeGlERICOBtLIg/BlueStacks.log

chema535 said...

i followed the second option step by step ,without any error, but the market do not show in my bluestark :-(
i will wait for you :-)

chema535 said...

now i have the market :-) ,i do not know how, but it´s working.But still without root. Titanium backup does not work.

Muhammad Nashrul Ismail said...

hi,

sorry for asking. where can i find BlueRegistryMOD.reg?

KhungLa said...

Thank zanbeel!
But I now have another problem that I can't coppy su.x86 to my C:\
it says "a required privilege is not held by the client".
rooting Bluestacks is not easy at all :))

gillangit said...

help me...
my adb cant display...
and no longer...
can you help me?

LoS EsPaDaS said...

zanbeel
you can help me?
in the step D, E, I?

zanbeel said...

Hi LoS EsPaDaS,
What help u need in these steps:
d. Remove ‘dummy’ superuser - #adb shell rm /system/xbin/su
e. Push x86 superuser to BlueStacks - #adb push su.x86 /system/xbin/su
i. su.x86 must be in the same Windows directory you are running in the console
If you can "adb remount", then these 3 steps are as easy as pie.
If you can't do adb push please follow my discussion with "KhungLa" in this post.
Good Luck

Amit Ahuja said...

Thanks for responding. I am using Windows Vista 64 bit. I have a Windows 7 machine where I successfully installed blue stacks but could not find an android folder under C:\Program Files (x86)\BlueStacks.

Amit Ahuja said...

also I tried to expose hidden files and folders and didn't see anything in Android. In the start menu when i type %ANDROID% i see some android folders/apps but not the one under bluestacks

Amit Ahuja said...

thanks . i still dont have root access when i start bluestacks but i can push/pull the files using adb into /system

zanbeel said...

Amit,
Did you successfully completed all steps without errors? If yes u should be rooted by now. That's weird if u r not. In this case, I am afraid u have to restart the process to get root access. Thanks

Amit Ahuja said...

i did successfully complete all the steps (perhaps I dis something wrong or missing something). anyway i just needed to edit my build.prop file which i can do via adb now so i guess i dont need to redo it

LoS EsPaDaS said...

MAaan help Error in step E cannot stat 'su.x86': no such file or directory
I've tried putting the folder su.x86_binary everywhere, folder and file xbin also su.x86 too, and nothing's right
pleaseee help maan

zanbeel said...

You welcome LoS EsPaDaS,
GameCIH does not work on bluestacks beta. We tried to tweak it with no success until now. I hope someone would come with the solution. Meanwhile, Try to use cheat engine.

zanbeel said...

Hi Matthew Lee,
did you follow these instructions and successfully pushed the su.x86 to bluestacks? If so, you should be rooted by now. If you are struggling to run GameCIH, it does not work on bluestacks beta even if u get rooted.
Thanks

Gabriel Schønau Hansen said...

oops forgot to include the two logs...
HyperVisor.log: http://pastebin.com/ebuYFE9K
BlueStacks.log: http://pastebin.com/gPkY9wLY

Post a Comment