[Android Software/Hacking General [Developers Only]] tenet421:
***Update: TUTORIAL!!!***

View attachment 981366---Rooting BlueStacks Beta---

PLEASE NOTE: AS OF NOW (4.06.2012) ROOTING WILL CAUSE SOME OF THE HIGH DEFINITION BLUESTACKS ARM-EMULATION TO NOT WORK. THIS MEANS IT WILL NOT RUN ALL THE APPS THAT IT RAN PREVIOUS TO ROOTING.

DOWNLOAD LIST (assuming you already have BlueStacks installed):

1.	initrd-betahack.img	***INCLUDED***

2.	ramdisk.img	***INCLUDED***

3.	system.img---------------NOT INCLUDED!!!

4.	su.x86	***INCLUDED***

5.	BlueRegistryMOD	***INCLUDED***

----------------------------------------------------------------

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

-Extracted from xRepinsSporsx Root.fs (for Google Play)

Or

-Extracted from latest BlueStacks Root.fs

-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***

----------------------------------------------------------------

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\Android]

"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 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

4. Start adb on your computer

_a.	Connect to bluestacks - #adb connect 127.0.0.1:5555

_b.	Ensure you have root access - #adb root

_____x. 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

_____x. su.x86 must be in the same Windows directory as your console

_f.	Correct superuser permission - #adb shell chmod 6711 /system/xbin/su

_g.	Remount system read only - #adb shell mount -o ro,remount -t ext4 /dev/sdb1 /system (THIS IS NOW CORRECT, THANKS)

_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. I suggest Root Check Pro, 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.

***This is a sure-fire way to get root and read/write access. However, I find that there are still issues with GAPPS (gmail, calendar specifically).***

Please comment if this works/doesn't work for you.

Remember to hit the 'thanks' button (if you're thankful)

I can't wait to see what people do with this. I am working on getting a larger system.img...

Files Included in Download:

initrd-betahack.img

ramdisk.img

su.x86 binary (not apk!)

BlueRegistryMOD.reg

"HowTo Root BlueStacks" (doc)

"HowTo Root BlueStacks" (pdf)

EDIT: Replaced .zip with working one :)