[Android Software/Hacking General [Developers Only]] RandyB201:
Thank you, SUCCESS!

I have, thanks to this post, rooted BlueStacks. I did not have to uninstall anything.

Please note that I had previously installed adw launcher and the google play store when I first set up BlueStacks.

Also, note that I have an old laptop with sucky graphics, so when I installed BlueStacks, it installed a low res version.

I manually updated the software right before I did this, and it took me up to version 0.7.3.766

Here is what I did, and I could not have done it w/o Mohazia's :good: help:

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

Rooting your "Root.fs" by your self, this method allows you root any version of BlueStacks.

1. Download / Install the tools you will need:

a. If you do not already have it, download Notepad++ & install it from: http://notepad-plus-plus.org

b. If you do not already have it, download 7-Zip & install it from http://www.zip.org/.

c. Start 7-Zip and set Notepad++ as the default editor. ( Tools -> Options -> Editor -> put the path of installed "NotePad++", i.e. "%ProgramFiles%\Notepad++\notepad++.exe" ) Then close 7-Zip.

d. If you do not already have it, download and install Portable Ubuntu Remix

1) Download Portable Ubuntu Remix (over 1GB!) from: http://sourceforge.net/projects/portableubuntu/files/latest/download

2) Install by running "Portable Ubuntu Remix" self extracting archive and change the path to "%programfiles%\" (WinX86) "%ProgramFiles(x86)%\" (WinX64)

e. If you do not already have it, download and install the latest version of "busybox-i686"

1) Download busybox-i686 from: http://busybox.net/downloads/binaries/latest/

2) Rename busybox-i686 to busybox

3) Create a New folder: C:\pubuntu

4) Move the busybox file to C:\pubuntu

f. If you do not already have it, download & extract / mod Superuser:

1) download last version of Superuser for x86 from http://downloads.androidsu.com/superuser/

2) open the downloaded file with WinZip

3) Extract \system\bin\su to C:\pubuntu

4) copy busybox from C:\pubuntu to your desktop and rename it busybox-armeabi

5) Extract "\system\app\Superuser.apk\assets\sutools-x86 to your desktop and rename it sutools-armeabi

6) Copy busybox-armeabi and sutools-armeabi from your desktop into \system\app\Superuser.apk\assets

7) Delete busybox-armeabi and sutools-armeabi from your desktop

8) Extract \system\app\Superuser.apk to C:\pubuntu

g. If you do not already have it, download and install Bluestacks.

1) Download Bluestacks from here: http://bit.ly/bstkdnldpage

2) Run the installer.

3) Once the installer closes and Bluestacks opens, close BlueStacks.

a) If you have 32-bit windows, run the following command:

"%ProgramFiles%\BlueStacks\HD-Quit.exe"

b) If you have 64-bit windows, run the following command:

"%ProgramFiles%\BlueStacks\HD-Quit.exe"

c) If windows cannot locate the HD-Quit.exe file, kill all processes starting with HD- in task manager.

h. Make 7-Zip backup of your original "%programdata%\BlueStacks\Android\Data folder.

i. MOD initrd.img

1) Copy initrd.img from %programdata%\BlueStacks\Android\initrd.img to C:\pubuntu.

2) Open C:\pubuntu\initrd.img with 7-Zip

3) Press F4 to edit or right click and choose Edit.

4) Search - Replace "try_mount ro" with "try_mount rw"

5) Save the modified initrd.img to your desktop & close Notepad++

6) Drag the initrd.img from your desktop to the 7-Zip window to replace the old initrd.

7) Close 7-Zip and accept changes to initrd.img

8) Copy C:\pubuntu\initrd.img to %programdata%\BlueStacks\Android to replace the unmodded file there.

j. MOD root.fs

1) copy Root.fs from %programdata%\BlueStacks\Android\ to C:\pubuntu

2) Run Portable Ubuntu Remix (Windows Key - R or Start Run).

a) If you have 32-bit Windows, %programfiles%\Portable_Ubuntu_V4_slim2\pubuntu.exe

b) If you have 64-bit Windows, %ProgramFiles(x86)%\Portable_Ubuntu_V4_slim2\pubu ntu.exe

c) unblock any items noted by Windows Firewall

3) From the top toolbar select Applications -> Accessories -> Terminal.

4) Write the following commands in the Terminal window Lines beginning with # are NOT commands. They are explanatory notes.):

# Take a root permission

# It will ask you for a root password: 123456

sudo su

# Create working folders

mkdir /b

mkdir /b/root

mkdir /b/system_sfs

mkdir /b/system_img

# Resize Root.fs to 500 MB

e2fsck -f -y /media/cofs2/pubuntu/Root.fs

resize2fs -f /media/cofs2/pubuntu/Root.fs 500M

# Mount root.fs to root folder

mount -o loop /media/cofs2/pubuntu/Root.fs /b/root

# Mount system.sfs to system_sfs folder

mount -o loop /b/root/android/system.sfs /b/system_sfs

# Extract system.img to /b folder

cp /b/system_sfs/system.img /b/root/android

# Resize system.img

e2fsck -f -y /b/root/android/system.img

resize2fs -f /b/root/android/system.img 480M

# Unmount system_sfs and delete it (make sure the command not unmount)

umount /b/system_sfs

rm /b/root/android/system.sfs

rmdir /b/system_sfs

# Mount system.img into system_img

mount -o loop /b/root/android/system.img /b/system_img

# Copy MOD "Superuser" & extracted "su" binary, busybox files (which you already did in step 7)

cp /media/cofs2/pubuntu/Superuser.apk /b/system_img/app

cp /media/cofs2/pubuntu/su /b/system_img/bin

cp /media/cofs2/pubuntu/su /b/system_img/xbin

cp /media/cofs2/pubuntu/busybox /b/system_img/xbin

chmod 6755 /b/system_img/bin/su

chmod 6755 /b/system_img/xbin/su

# Un mount system_img & delete folder

umount /b/system_img

rmdir /b/system_img

# Set Permission for system.img

chown 0:2000 /b/root/android/system.img

chmod 0644 /b/root/android/system.img

# Unmount root and save changes into root.fs

umount /b/root

rmdir /b/root

rmdir /b

5) Close Terminal and shut down Portable Ubuntu from system menu on the top toolbar -> Shut Down

6) Copy C:\pubuntu\Root.fs to %programfiles%\Bluestacks\Android. (If Windows tells you the file is in use and cannot be copied, restart windows in Safe Mode and do it there. If Windows gives you the same problem, restart in Safe Mode With Command Prompt and do it there. Once successful, restart windows in normal mode.)

k. Start Bluestacks

l. If you don't already have it, install Root Checker Basic and verify that you have root access.