[Emulator][Root] BlueStacks 0.7.7.813

Search This thread

mohazia

Senior Member
Jun 13, 2007
221
135
43
Amman, Jordan
I'm here give full guide for what I was learned from merrickville, codelover, and rocketero so all credits go to all of them either by direct guide and correction or by understanding their modified files. (is it OK codelover :good:)

To whom who don't know BlueStacks (as me before a week), it's emulated android system to works under windows system. for more info go to company page

A- REMOVE BLUESTACKS
Good tool from "Microsoft Fix it to install/uninstall Programs" thanx Ba7rani123

1- Run command (Win Key + R) -> "%programfiles%\BlueStacks\HD-Quit.exe" (WinX86) "%programfiles(x86)%\BlueStacks\HD-Quit.exe" (WinX64)
2- Open "task manager" by run command "taskmgr" -> "Processes" tab -> "HD-LogRotatorService.exe" -> right click -> "End Process Tree"
3- Open "programs and features" by run command "appwiz.cpl" -> uninstall "BlueStacks App Player" & "Notifications Center"
4- Delete all BS folders
"%userprofile%\AppData\Local\BlueStacksSetup"
"%programfiles%\BlueStacks" (WinX86), "%programfiles(x86)%\BlueStacks" (WinX64),
"%programdata%\BlueStacks"
"%programdata%\BlueStacksSetup"
Setup from Desktop
"%windir%\Installer" -> "View" -> "Details" -> right click on column header (i.e "Name", "Date Modified", "Type") -> "Authors" -> click over column header of "Authors" to sort files according authors -> search for "BlueStacks" and delete.
Note: "%ProgramData%\BlueStacks\Logs\Hypervisor.log" will persist to delete, we will delete it later after restart
5- Download RegScanner v1.95
Install -> open it -> Registry Scan Options (it will open automatic) -> select all keys in option Scan the following base key -> write on Find String "BlueStacks" -> wait till search finish -> select all and delete -> Resisted keys can be deleted manually by open in Regedit (F8)
I can't support this application because I have Windows 7 Manager, with perfect Registry Tools 1.1, it backup & delete all keys automatic
6- Repeat step (5) by searching for "Notification Center"
7- Reboot your devive now.
8- Now you can remove %ProgramData%\BlueStacks\Logs\Hypervisor.log


B- ROOTING BLUESTACKS
B-I- FIRST ROOTING METHOD (Ready made rooted /system)
Download rooted "Root.fs" and modified "initrd.img" for BlueStacks 0.7.7.813:
1- Download "BlueStacks-ThinInstaller_0.7.7.813.exe", "Root_Mod.rar" and "initrd_Mod.rar" from HERE
2- Setup BlueStacks 0.7.7.813 by file "BlueStacks-ThinInstaller_0.7.7.813.exe"
3- After setup finish installing, and BS open, close it (even before click "Got it") then run command (Win key + R) "%ProgramFiles%\BlueStacks\HD-Quit.exe" (WinX86), "%programfiles(x86)%\BlueStacks\HD-Quit.exe" (WinX64).
4- Extract "Root_Mod.rar" and "initrd.rar" into same folder "%programdata%\BlueStacks\Android" (P.S no need to make backup because it's already packed in zip file on "%programdata%\BlueStacksSetup\[xxxxxxxx].zip"
5- Open run command "%programfiles%\BlueStacks\HD-StartLauncher.exe" (WinX86), "%programfiles(x86)%\BlueStacks\HD-StartLauncher.exe" (WinX64)
Now your BlueStacks have root permission (Thanks CodeLover) and google apps (already supported).
OR
Download rocketero's rooted Root.fs & initrd.img from the 3rd post , thanks rocketero

B-II- SECOND ROOTING METHOD (Custom made rooted /system)
Rooting your "Root.fs" by your self, this method allow you root any versions of BlueStacks. it need to download "Portable Ubuntu Remix", [INFO: it's a portable Linux Ubuntu 10.4 LTS emulator that works under windows environment. for more information see PROJECT.
1- Download "Portable Ubuntu Remix" from HERE
2- Download "BlueStacks" from HERE
3- Run "Portable Ubuntu Remix" and change the path to "%programfiles%\" (WinX86) "%ProgramFiles(x86)%\" (WinX64)
4- Setup "BlueStacks" until it open -> close it.
5- Open run command (win key + R) "%ProgramFiles%\BlueStacks\HD-Quit.exe" (WinX86), "%programfiles(x86)%\BlueStacks\HD-Quit.exe" (WinX64).
6- Make RAR backup of your original "%programdata%\BlueStacks\Android\Data.sparsefs" in case of any errors may happen later.
7- Follow steps of F- MOD LATEST "SUPERUSER.APK", EXTRACTED "SU" BINARY, BUSYBOX FILES .
8- Follow steps of H- EDITING INITRD.IMG and place it in "%ProgramData%\BlueStacks\Android" (P.S: don't worry about original "initrd.img" because it is packed in zip file @ "%ProgramData%\BlueStacksSetup\[xxxxxxx].zip".
9- Open run command "%programfiles%\Portable_Ubuntu_V4_slim2\pubuntu.exe" (WinX86), "%ProgramFiles(x86)%\Portable_Ubuntu_V4_slim2\pubuntu.exe" (WinX64) and wait till it fully loaded (i.e top toolbar).
10- From the top toolbar select Applications -> Accessories -> Terminal.
11- Write the following commands (P.S: # means a note for you, it's not a command):
Code:
# Take a root permission
sudo su
# It will ask you for a root password: 123456

# Create a 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/ProgramData/BlueStacks/Android/Root.fs"
resize2fs -f "/media/cofs2/ProgramData/BlueStacks/Android/Root.fs" 500M

# Mount root.fs to root folder
mount -o loop "/media/cofs2/ProgramData/BlueStacks/Android/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
12- Close Terminal and shut down Portable Ubuntu from system menu at top toolbar -> Shut Down
13- Open run command "%programfiles%\BlueStacks\HD-StartLauncher.exe" (WinX86), "%Programfiles(x86)%\BlueStacks\HD-StartLauncher.exe" (WinX64)
14- After BlueStacks run, download custom launcher (like Go Launcher HD for Pad, Apex).
15- Now your BlueStacks have root permission.
16- Make RAR backup of your "Root.fs" and "initrd.img".

C- BLUESTACKS INSTALLING TROUBLESHOOTS
1- If you have msgbox telling you of missing img, rerun the setup

2- If you the setup just start and finish very soon
See section A- REMOVE BLUESTACKS @ the top

D- ROOTING TROUBLESHOOTS
You have to reset BS files:
a) If you follow B-I- FIRST ROOTING METHOD:
1- Download "Root_MOD.rar", "initrd_MOD.rar" and "Data_Org.rar" from HERE
2- Extract them on "%programdata%\BlueStacks\Android"
b) If you follow B-II SECOND ROOTING METHOD:
1- If you already have previous root and made backup of your rooted "Root.fs" & edited "initrd.img" & stock "Data.sparsefs" -> just extract all back to "%programdata%\BlueStacks\Android"
2- If you don't have backup -> either extract them from "%programdata%\BlueStacksSetup\[xxxxxx].zip" and start from scrach, or follow above (a) steps of B-I- FIRST ROOTING METHOD.

E- BACKUP/RESTORE BLUESTACKS by Codelover via bat executable commands see HIS POST

F- MOD LATEST "SUPERUSER.APK", EXTRACTED "SU" BINARY, BUSYBOX FILES I got it from codelover's MOD superuser4BS.apk
1- Download last version of Superuser for x86 from HERE
2- Download 7-Zip & install it from HERE (if you didn't have it)
3- Download latest version of "busybox-i686" from HERE to "C:\pubuntu" (take attention it should be small letter) and rename the downloaded file into "busybox"
4- Extract "\system\bin\su" to "C:\pubuntu" we need it to copy it to "/system/bin" & "/system/xbin"
5- Extract "\system\app\Superuser.apk" to "C:\pubuntu"
6- Close 7-zip
7- Open "Superuser.apk" via "7-zip" -> extract "assets\sutools-x86" -> rename it into "sutools-armeabi" -> drag it back in 7-zip to replace existed "sutools-armeabi".
8- Make copy of "busybox" and rename this copy to "busybox-armeabi" -> drag it again in 7-zip to replace existed "busybox-armeabi"
8- Close 7-zip and now, you have latest files MOD Superuser,apk, extracted "su" binary and busybox files

G- COPY FILES TO /SYSTEM via ADB modified from codelover's commands (take a look on his POST)
You should have "su" with root permission.
[GOOD TOOL: "Add_Open_Command_Window_Here_as_Administrator.reg" HERE to allow you open command from any folder]
a) To replace old "superuser.apk" with new file
1- Download "CodeLover_SU.rar" (superuserX86-3.2RC3) from HERE -> extract it into "C:\pubuntu" OR use your own MOD file from step F- MOD LATEST "SUPERUSER.APK", EXTRACTED "SU" BINARY, BUSYBOX FILES
2- Run "Add_Open_Command_Window_Here_as_Administrator.reg" from "C:\pubuntu" folder
3- Write commands
Code:
adb connect 127.0.0.1:5555
adb -s 127.0.0.1:5555 shell su -c "rm /*uperuser.apk"
adb -s 127.0.0.1:5555 uninstall com.noshufou.android.su
adb -s 127.0.0.1:5555 install *uperuser.apk
b)Replace old "su" binary file with new file
1- Download "CodeLover_SU.rar" (suX86-3.2RC3) from HERE -> extract it into "C:\pubuntu" OR use your own Extracted file from step F- MOD LATEST "SUPERUSER.APK", EXTRACTED "SU" BINARY, BUSYBOX FILES
2- Run "Add_Open_Command_Window_Here_as_Administrator.reg" from "C:\pubuntu" folder
3- Write commands
Code:
adb connect 127.0.0.1:5555
adb -s 127.0.0.1:5555 push su.86 /sdcard/
adb -s 127.0.0.1:5555 shell su -c "cp /sdcard/su.86 /system/xbin/"
adb -s 127.0.0.1:5555 shell su -c "chown 0.0 /system/xbin/su.86"
adb -s 127.0.0.1:5555 shell su -c "chmod 6755 /system/xbin/su.86"
adb -s 127.0.0.1:5555 shell su -c "mv /system/xbin/su.86 /system/xbin/su"
adb -s 127.0.0.1:5555 shell su -c whoami             # if you got "Root"
adb -s 127.0.0.1:5555 shell su -c "cp /system/xbin/su /system/bin/su"
c)Replace old "busybox" file with new file
1- Download latest version of "busybox-i686" from HERE to "C:\pubuntu" and rename the downloaded files into "busybox" OR use one you already download it in step F- MOD LATEST "SUPERUSER.APK", EXTRACTED "SU" BINARY, BUSYBOX FILES
2- Run "Add_Open_Command_Window_Here_as_Administrator.reg" from "C:\pubuntu" folder
3- Write commands
Code:
adb connect 127.0.0.1:5555
adb -s 127.0.0.1:5555 push busybox /sdcard/
adb -s 127.0.0.1:5555 shell su -c "cp /sdcard/busybox /system/xbin/busybox-i686"
adb -s 127.0.0.1:5555 shell su -c "chown 0.2000 /system/xbin/busybox-i686"
adb -s 127.0.0.1:5555 shell su -c "chmod 0755 /system/xbin/busybox-i686"
adb -s 127.0.0.1:5555 shell su -c "mv /system/xbin/busybox-i686 /system/xbin/busybox"
adb -s 127.0.0.1:5555 shell busybox
You should not have error

H- EDITING INITRD.IMG to mount /system for read & write, I got it from merrickville's initrd.img
1- Download 7-zip and install it
2- Download "NotePad++" from HERE and install it.
3- Copy "initrd.img" from "%programdata%\BlueStacks\Android\initrd.img" or extract it from "%programdata%\BlueStacksSetup\runtimedata_[xxxxxxx].zip" (where xxxxxx = ur BS version) to "C:\pubuntu".
4- Open 7-zip -> Tools -> Options -> Editor -> put the path of installed "NotePad++" ["%ProgramFiles%\Notepad++\notepad++.exe"]
5- Extract "initrd.img" via 7-zip -> open extracted file "initrd" via 7-zip -> right click "initrd" -> Edit
6- Search for:
Code:
[B]try_mount [COLOR="red"]ro[/COLOR] "$device /mnt || continue[/B]
(It should be after "for device in /dev/sr* /dev/sd.....")
and replaced with
[B]"try_mount [COLOR="red"]rw[/COLOR] $device /mnt || continue[/B]
7- Close it and save the file -> accept replacing of the file -> close 7-zip
8- Open "initrd.img" via 7-zip and replace "initrd"
9- Now you have your edited initrd.img -> copy back to "%programdata%\BlueStacks\Android"

If it helps you, give me thanks :good:
 
Last edited:

rocketero

Senior Member
Jan 1, 2012
355
71
"E=mohazia;33618109]I'm here give full guide for what I was learned from mammadkhata and merrickville so all credits go to both of them.

To whom who don't know BlueStacks (as me before a week), it's emulated android system to works under windows system. for more info go to company page

You have 2 choices,
First Method:
:


I have a Root.fs rooted (& Initrd.img Edited) with system.img (/system partition) resized to 500MB that is working fine with BS07.7.813.

you can download it here: https://www.dropbox.com/s/rdf35z9cupl5xnb/Root-fs_and_Initrd-img-bs077813.rar

it's MD5(sum) is: FFA77658EF35AACDDA06B379CBF52CB8
it contains Root.fs and Initrd.img, this still can follow your method # 1 to root BS 077813.

A few notes:
- system partition resized to 500MB
- su version 3.2 x86-RC3-signed was added not only to /system/xbin but also to /system/bin as well as busybox to keep a fallback when updating the su binary.
- binary /system/bin/ls was symlinked to busybox instead of toolbox to get nice color file listings in a terminal
- superuser4BS.apk (moded by @codelover) was added to /system/app"
 
Last edited:

mohazia

Senior Member
Jun 13, 2007
221
135
43
Amman, Jordan
Does your first method contain a Root.fs with /system resized to let's say 300MB or more?

I have a Root.fs rooted and with system.img resized to 500MB that is working fine with BS07.7.813.

you can download it here: https://www.dropbox.com/s/rdf35z9cupl5xnb/Root-fs_and_Initrd-img-bs077813.rar

it contains Root.fs and Initrd.img, this still can follow your method # 1 to root BS 077813.

A few notes:
- system partition resized to 500MB
- su version 3.2 x86 was added not only to /system/xbin but also to /system/bin as well as busybox to keep a fallback when updating the su binary.
- binary /system/bin/ls was symlinked to busybox instead of toolbox to get nice color file listings in a terminal
- superuser-3.1.3.apk was added to /system/app

Your link was added, thanx
 

rocketero

Senior Member
Jan 1, 2012
355
71
but I'd like to ask, why u'll need system 500MB ???

it's not exactly that you need 500M on /system partition, as the size will just increase as you add files to /system, if you don't add any files the partition will stay the size it was originally, it works as the sparcefs file sistem does, it will show only what you have added from the total. Let's say you have grown the /system parttition to 300MB, that's what it will show when you do a 'df -h /system' command.
 

mohazia

Senior Member
Jun 13, 2007
221
135
43
Amman, Jordan
it's not exactly that you need 500M on /system partition, as the size will just increase as you add files to /system, if you don't add any files the partition will stay the size it was originally, it works as the sparcefs file sistem does, it will show only what you have added from the total. Let's say you have grown the /system parttition to 300MB, that's what it will show when you do a 'df -h /system' command.

aha, thanks.

The image u just share didn't had google account, right.

I had now data.fs and sdcard.fs, which I extracted from BS 0.7.2... and already integrated into my BS 0.7.7.813, the advantages of .fs that I can resize it very easy. Do u advice me to share it? :confused:

actually, rooting and make some customization, was attractive, now joy was solved, it's boring :rolleyes:

I can't even play where's my water? on BS, is for me only or with all?
 

rocketero

Senior Member
Jan 1, 2012
355
71
aha, thanks.

The image u just share didn't had google account, right.

I had now data.fs and sdcard.fs, which I extracted from BS 0.7.2... and already integrated into my BS 0.7.7.813, the advantages of .fs that I can resize it very easy. Do u advice me to share it? :confused:

actually, rooting and make some customization, was attractive, now joy was solved, it's boring :rolleyes:

I can't even play where's my water? on BS, is for me only or with all?

I do have a sdcard.fs of 8GB working with v0.7.7.813, but even that I have not much in it the size would be huge to share it which makes it almost impossible to upload to any file-sharing site like dropox or box.net. I saw in an old post a shared sdcard 2GB in size but that's the default size when installing BS older than 0.7.3.x I believe. The Data.fs it has been always 2GB in size.

The good thing from updating BS from older versions to the new ones is that it will carry out the old Data.fs and Sdcard.fs and it will incorporate them into Data.sparsefs and SDcard.sparcefs

About the apps/games that run in BS it's just trial an error, sometimes very disappointing that it doesn't run the one's preferred apps.
 
Last edited:

tichs

Senior Member
Oct 11, 2011
211
24
It says that "Blue stack player app download in progress" and says its "already installed", error. idk what happens
 

kianty99

Member
Nov 2, 2011
10
0
Code:
11- Open Superuser -> Settings -> Automatic Response -> Allow
Now your BlueStacks have root permission and google apps.

you mean that now i don't need anymore google play store because the Google apps are integrated in my bluestacks market?

thanks
 

mohazia

Senior Member
Jun 13, 2007
221
135
43
Amman, Jordan
Code:
11- Open Superuser -> Settings -> Automatic Response -> Allow
Now your BlueStacks have root permission and google apps.

you mean that now i don't need anymore google play store because the Google apps are integrated in my bluestacks market?

thanks

no what I actually meant is that ur system now have google permission, you can now install google play and it will works.

OK, when I did this guide, I did not differentiate between apps that set on /system/app and /data/app.

I will attach google play now to installed as com.nosh*.apk, just download it and double click to install
 

kianty99

Member
Nov 2, 2011
10
0
Code:
I will attach google play now to installed as com.nosh*.apk, just download it and double click to install

excuse me... i have search for google play apk on first post but i don't found it... where is it?
thanks
 

mohazia

Senior Member
Jun 13, 2007
221
135
43
Amman, Jordan
Code:
I will attach google play now to installed as com.nosh*.apk, just download it and double click to install

excuse me... i have search for google play apk on first post but i don't found it... where is it?
thanks

I'm review now the method from scrash
 

Attachments

  • Vending.apk
    1.9 MB · Views: 503
  • MarketUpdater.apk
    7.1 KB · Views: 320

kianty99

Member
Nov 2, 2011
10
0
i've installed the two apk you mentioned and say me an error:

Code:
apk installation failed: INSTALL_PARSE_FAILED_NO_CERTIFICATES
 

tichs

Senior Member
Oct 11, 2011
211
24
AMD Appzone its better than bluestacks? I read that they have some unique technology that uses the gpu to accelerate everything, is that available to normal blue stacks builds?
 
  • Like
Reactions: mohazia

mohazia

Senior Member
Jun 13, 2007
221
135
43
Amman, Jordan
i've installed the two apk you mentioned and say me an error:

Code:
apk installation failed: INSTALL_PARSE_FAILED_NO_CERTIFICATES

1- Now delete ur root.fs & data.s* from %programdata%\bluestacks
2- Extract data.s* from the archeive @ %programdata%\bluestackssetup on %programdata%\bluestacks
3- Follow new guide (exactly) with excluding steps 1 and 3 (just skip and contiune in same sequance)

Sent from my HTC Desire HD using xda premium
 

Top Liked Posts

  • There are no posts matching your filters.
  • 73
    I'm here give full guide for what I was learned from merrickville, codelover, and rocketero so all credits go to all of them either by direct guide and correction or by understanding their modified files. (is it OK codelover :good:)

    To whom who don't know BlueStacks (as me before a week), it's emulated android system to works under windows system. for more info go to company page

    A- REMOVE BLUESTACKS
    Good tool from "Microsoft Fix it to install/uninstall Programs" thanx Ba7rani123

    1- Run command (Win Key + R) -> "%programfiles%\BlueStacks\HD-Quit.exe" (WinX86) "%programfiles(x86)%\BlueStacks\HD-Quit.exe" (WinX64)
    2- Open "task manager" by run command "taskmgr" -> "Processes" tab -> "HD-LogRotatorService.exe" -> right click -> "End Process Tree"
    3- Open "programs and features" by run command "appwiz.cpl" -> uninstall "BlueStacks App Player" & "Notifications Center"
    4- Delete all BS folders
    "%userprofile%\AppData\Local\BlueStacksSetup"
    "%programfiles%\BlueStacks" (WinX86), "%programfiles(x86)%\BlueStacks" (WinX64),
    "%programdata%\BlueStacks"
    "%programdata%\BlueStacksSetup"
    Setup from Desktop
    "%windir%\Installer" -> "View" -> "Details" -> right click on column header (i.e "Name", "Date Modified", "Type") -> "Authors" -> click over column header of "Authors" to sort files according authors -> search for "BlueStacks" and delete.
    Note: "%ProgramData%\BlueStacks\Logs\Hypervisor.log" will persist to delete, we will delete it later after restart
    5- Download RegScanner v1.95
    Install -> open it -> Registry Scan Options (it will open automatic) -> select all keys in option Scan the following base key -> write on Find String "BlueStacks" -> wait till search finish -> select all and delete -> Resisted keys can be deleted manually by open in Regedit (F8)
    I can't support this application because I have Windows 7 Manager, with perfect Registry Tools 1.1, it backup & delete all keys automatic
    6- Repeat step (5) by searching for "Notification Center"
    7- Reboot your devive now.
    8- Now you can remove %ProgramData%\BlueStacks\Logs\Hypervisor.log


    B- ROOTING BLUESTACKS
    B-I- FIRST ROOTING METHOD (Ready made rooted /system)
    Download rooted "Root.fs" and modified "initrd.img" for BlueStacks 0.7.7.813:
    1- Download "BlueStacks-ThinInstaller_0.7.7.813.exe", "Root_Mod.rar" and "initrd_Mod.rar" from HERE
    2- Setup BlueStacks 0.7.7.813 by file "BlueStacks-ThinInstaller_0.7.7.813.exe"
    3- After setup finish installing, and BS open, close it (even before click "Got it") then run command (Win key + R) "%ProgramFiles%\BlueStacks\HD-Quit.exe" (WinX86), "%programfiles(x86)%\BlueStacks\HD-Quit.exe" (WinX64).
    4- Extract "Root_Mod.rar" and "initrd.rar" into same folder "%programdata%\BlueStacks\Android" (P.S no need to make backup because it's already packed in zip file on "%programdata%\BlueStacksSetup\[xxxxxxxx].zip"
    5- Open run command "%programfiles%\BlueStacks\HD-StartLauncher.exe" (WinX86), "%programfiles(x86)%\BlueStacks\HD-StartLauncher.exe" (WinX64)
    Now your BlueStacks have root permission (Thanks CodeLover) and google apps (already supported).
    OR
    Download rocketero's rooted Root.fs & initrd.img from the 3rd post , thanks rocketero

    B-II- SECOND ROOTING METHOD (Custom made rooted /system)
    Rooting your "Root.fs" by your self, this method allow you root any versions of BlueStacks. it need to download "Portable Ubuntu Remix", [INFO: it's a portable Linux Ubuntu 10.4 LTS emulator that works under windows environment. for more information see PROJECT.
    1- Download "Portable Ubuntu Remix" from HERE
    2- Download "BlueStacks" from HERE
    3- Run "Portable Ubuntu Remix" and change the path to "%programfiles%\" (WinX86) "%ProgramFiles(x86)%\" (WinX64)
    4- Setup "BlueStacks" until it open -> close it.
    5- Open run command (win key + R) "%ProgramFiles%\BlueStacks\HD-Quit.exe" (WinX86), "%programfiles(x86)%\BlueStacks\HD-Quit.exe" (WinX64).
    6- Make RAR backup of your original "%programdata%\BlueStacks\Android\Data.sparsefs" in case of any errors may happen later.
    7- Follow steps of F- MOD LATEST "SUPERUSER.APK", EXTRACTED "SU" BINARY, BUSYBOX FILES .
    8- Follow steps of H- EDITING INITRD.IMG and place it in "%ProgramData%\BlueStacks\Android" (P.S: don't worry about original "initrd.img" because it is packed in zip file @ "%ProgramData%\BlueStacksSetup\[xxxxxxx].zip".
    9- Open run command "%programfiles%\Portable_Ubuntu_V4_slim2\pubuntu.exe" (WinX86), "%ProgramFiles(x86)%\Portable_Ubuntu_V4_slim2\pubuntu.exe" (WinX64) and wait till it fully loaded (i.e top toolbar).
    10- From the top toolbar select Applications -> Accessories -> Terminal.
    11- Write the following commands (P.S: # means a note for you, it's not a command):
    Code:
    # Take a root permission
    sudo su
    # It will ask you for a root password: 123456
    
    # Create a 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/ProgramData/BlueStacks/Android/Root.fs"
    resize2fs -f "/media/cofs2/ProgramData/BlueStacks/Android/Root.fs" 500M
    
    # Mount root.fs to root folder
    mount -o loop "/media/cofs2/ProgramData/BlueStacks/Android/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
    12- Close Terminal and shut down Portable Ubuntu from system menu at top toolbar -> Shut Down
    13- Open run command "%programfiles%\BlueStacks\HD-StartLauncher.exe" (WinX86), "%Programfiles(x86)%\BlueStacks\HD-StartLauncher.exe" (WinX64)
    14- After BlueStacks run, download custom launcher (like Go Launcher HD for Pad, Apex).
    15- Now your BlueStacks have root permission.
    16- Make RAR backup of your "Root.fs" and "initrd.img".

    C- BLUESTACKS INSTALLING TROUBLESHOOTS
    1- If you have msgbox telling you of missing img, rerun the setup

    2- If you the setup just start and finish very soon
    See section A- REMOVE BLUESTACKS @ the top

    D- ROOTING TROUBLESHOOTS
    You have to reset BS files:
    a) If you follow B-I- FIRST ROOTING METHOD:
    1- Download "Root_MOD.rar", "initrd_MOD.rar" and "Data_Org.rar" from HERE
    2- Extract them on "%programdata%\BlueStacks\Android"
    b) If you follow B-II SECOND ROOTING METHOD:
    1- If you already have previous root and made backup of your rooted "Root.fs" & edited "initrd.img" & stock "Data.sparsefs" -> just extract all back to "%programdata%\BlueStacks\Android"
    2- If you don't have backup -> either extract them from "%programdata%\BlueStacksSetup\[xxxxxx].zip" and start from scrach, or follow above (a) steps of B-I- FIRST ROOTING METHOD.

    E- BACKUP/RESTORE BLUESTACKS by Codelover via bat executable commands see HIS POST

    F- MOD LATEST "SUPERUSER.APK", EXTRACTED "SU" BINARY, BUSYBOX FILES I got it from codelover's MOD superuser4BS.apk
    1- Download last version of Superuser for x86 from HERE
    2- Download 7-Zip & install it from HERE (if you didn't have it)
    3- Download latest version of "busybox-i686" from HERE to "C:\pubuntu" (take attention it should be small letter) and rename the downloaded file into "busybox"
    4- Extract "\system\bin\su" to "C:\pubuntu" we need it to copy it to "/system/bin" & "/system/xbin"
    5- Extract "\system\app\Superuser.apk" to "C:\pubuntu"
    6- Close 7-zip
    7- Open "Superuser.apk" via "7-zip" -> extract "assets\sutools-x86" -> rename it into "sutools-armeabi" -> drag it back in 7-zip to replace existed "sutools-armeabi".
    8- Make copy of "busybox" and rename this copy to "busybox-armeabi" -> drag it again in 7-zip to replace existed "busybox-armeabi"
    8- Close 7-zip and now, you have latest files MOD Superuser,apk, extracted "su" binary and busybox files

    G- COPY FILES TO /SYSTEM via ADB modified from codelover's commands (take a look on his POST)
    You should have "su" with root permission.
    [GOOD TOOL: "Add_Open_Command_Window_Here_as_Administrator.reg" HERE to allow you open command from any folder]
    a) To replace old "superuser.apk" with new file
    1- Download "CodeLover_SU.rar" (superuserX86-3.2RC3) from HERE -> extract it into "C:\pubuntu" OR use your own MOD file from step F- MOD LATEST "SUPERUSER.APK", EXTRACTED "SU" BINARY, BUSYBOX FILES
    2- Run "Add_Open_Command_Window_Here_as_Administrator.reg" from "C:\pubuntu" folder
    3- Write commands
    Code:
    adb connect 127.0.0.1:5555
    adb -s 127.0.0.1:5555 shell su -c "rm /*uperuser.apk"
    adb -s 127.0.0.1:5555 uninstall com.noshufou.android.su
    adb -s 127.0.0.1:5555 install *uperuser.apk
    b)Replace old "su" binary file with new file
    1- Download "CodeLover_SU.rar" (suX86-3.2RC3) from HERE -> extract it into "C:\pubuntu" OR use your own Extracted file from step F- MOD LATEST "SUPERUSER.APK", EXTRACTED "SU" BINARY, BUSYBOX FILES
    2- Run "Add_Open_Command_Window_Here_as_Administrator.reg" from "C:\pubuntu" folder
    3- Write commands
    Code:
    adb connect 127.0.0.1:5555
    adb -s 127.0.0.1:5555 push su.86 /sdcard/
    adb -s 127.0.0.1:5555 shell su -c "cp /sdcard/su.86 /system/xbin/"
    adb -s 127.0.0.1:5555 shell su -c "chown 0.0 /system/xbin/su.86"
    adb -s 127.0.0.1:5555 shell su -c "chmod 6755 /system/xbin/su.86"
    adb -s 127.0.0.1:5555 shell su -c "mv /system/xbin/su.86 /system/xbin/su"
    adb -s 127.0.0.1:5555 shell su -c whoami             # if you got "Root"
    adb -s 127.0.0.1:5555 shell su -c "cp /system/xbin/su /system/bin/su"
    c)Replace old "busybox" file with new file
    1- Download latest version of "busybox-i686" from HERE to "C:\pubuntu" and rename the downloaded files into "busybox" OR use one you already download it in step F- MOD LATEST "SUPERUSER.APK", EXTRACTED "SU" BINARY, BUSYBOX FILES
    2- Run "Add_Open_Command_Window_Here_as_Administrator.reg" from "C:\pubuntu" folder
    3- Write commands
    Code:
    adb connect 127.0.0.1:5555
    adb -s 127.0.0.1:5555 push busybox /sdcard/
    adb -s 127.0.0.1:5555 shell su -c "cp /sdcard/busybox /system/xbin/busybox-i686"
    adb -s 127.0.0.1:5555 shell su -c "chown 0.2000 /system/xbin/busybox-i686"
    adb -s 127.0.0.1:5555 shell su -c "chmod 0755 /system/xbin/busybox-i686"
    adb -s 127.0.0.1:5555 shell su -c "mv /system/xbin/busybox-i686 /system/xbin/busybox"
    adb -s 127.0.0.1:5555 shell busybox
    You should not have error

    H- EDITING INITRD.IMG to mount /system for read & write, I got it from merrickville's initrd.img
    1- Download 7-zip and install it
    2- Download "NotePad++" from HERE and install it.
    3- Copy "initrd.img" from "%programdata%\BlueStacks\Android\initrd.img" or extract it from "%programdata%\BlueStacksSetup\runtimedata_[xxxxxxx].zip" (where xxxxxx = ur BS version) to "C:\pubuntu".
    4- Open 7-zip -> Tools -> Options -> Editor -> put the path of installed "NotePad++" ["%ProgramFiles%\Notepad++\notepad++.exe"]
    5- Extract "initrd.img" via 7-zip -> open extracted file "initrd" via 7-zip -> right click "initrd" -> Edit
    6- Search for:
    Code:
    [B]try_mount [COLOR="red"]ro[/COLOR] "$device /mnt || continue[/B]
    (It should be after "for device in /dev/sr* /dev/sd.....")
    and replaced with
    [B]"try_mount [COLOR="red"]rw[/COLOR] $device /mnt || continue[/B]
    7- Close it and save the file -> accept replacing of the file -> close 7-zip
    8- Open "initrd.img" via 7-zip and replace "initrd"
    9- Now you have your edited initrd.img -> copy back to "%programdata%\BlueStacks\Android"

    If it helps you, give me thanks :good:
    11
    Updated Root Package 7.8.829 + [8GB SDCARD]

    • Google Play 3.10.10 [ No Account Included / Unlocked Patched ]
    • SuperUser 3.2
    • LuckyPatcher 2.84
    • GPS Options Unlocked [Tray Icon]
    Full R/W Support [Edit files with ADB CLI in Shell Mode]
    when bluestacks running
    adb root
    adb connect 127.0.0.1:5555
    adb shell
    su

    [use ''ls'' command to list files in directory ''cd'' to change it]
    [copy from device to windows use push and pull cmd's (must be disconnected from shell "quit" command)]
    [if you need help use "adb help" command]


    This Version Have 8GB SDCARD!!
    [Use NTFS compression for smaller file size]
    okienko.png

    1.
    DOWNLOAD [FIXED]
    2.
    (Win key + R)
    "%Program Files%\BlueStacks\HD-Quit.exe" (WinX86)
    "%Program Files(x86)%\BlueStacks\HD-Quit.exe" (WinX64)
    3.
    Copy files from this package to ""WINDOWS_DRIVE""\ProgramData\BlueStacks\...
    4.
    Import to registry "REG.reg"
    5.
    Start Bluestacks
    11
    As requested I have zipped and uploaded my root.fs and initrd.img to Mediafire.
    As a small bonus I embedded the excellent Zeam Launcher (build by XDA-developers member cloakt which can be found here)

    Both files can be found here mediafire.com/file/k3cgj6bgqdcq0xb/Rooted_BlueStacks_0.7.10.869.zip on MediaFire
    (Due to not having enough posts I cannot put a link to an external site)

    Installation is simple, just follow step B from the first post in this thread :

    B- ROOTING BLUESTACKS
    B-I- FIRST ROOTING METHOD (Ready made rooted /system)


    1 - Download "BlueStacks-SplitInstaller_native.exe" from BlueStacks site --> bluestacks.com/bstk-download-success-2.htm
    2 - Download modified "Root.fs" and modified "initrd.img" for BlueStacks 0.7.10.869 from Mediafire -->mediafire.com/file/k3cgj6bgqdcq0xb/Rooted_BlueStacks_0.7.10.869.zip
    2 - Install BlueStacks 0.7.10.869 with downloaded file "BlueStacks-SplitInstaller_native.exe"
    3 - After installation has finished and BlueStacks has started successfully, exit BlueStacks.
    4 - Kill all running BlueStacks processes. Open "Run Command" (Win key + R) "%ProgramFiles%\BlueStacks\HD-Quit.exe" (WinX86) or "%programfiles(x86)%\BlueStacks\HD-Quit.exe" (WinX64).
    5 - Open "Run Command" (Win key + R) "%programdata%\BlueStacks\Android"
    6 - Create backup of your original "root.fs" and "initrd.img" (you can rename them to "_ORIGINAL_root.fs" and "_ORIGINAL_initrd.img"
    6 - Extract "root.fs" and "initrd.img" from "Rooted_BlueStacks_0.7.10.869.zip" into folder "%programdata%\BlueStacks\Android"
    7 - Start all necessary BlueStacks processes. Open "Run Command" (Win key + R) "%programfiles%\BlueStacks\HD-StartLauncher.exe" (WinX86) or "%programfiles(x86)%\BlueStacks\HD-StartLauncher.exe" (WinX64)

    Now your BlueStacks should have root permission.
    Please verify this with one of the many apps you can find in Google Play store.

    (Thanks ewwink for your excellent YouTube tutorial) and all others who shared their knowledge in this thread :).
    9
    [root][repack] 0.7.12.896 Update !

    Root Package:
    http://www.mediafire.com/?otl79weytj7qm9b
    REG: (1280x720,1024mb RAM)
    http://www.mediafire.com/?oqn3l345ynbxawr

    If someone want to change the resolution use registry editor
    resolutionfs8.png

    bluestacks7fs8.png


    Install NFO:

    • (Win key + R)
    • "%Program Files%\BlueStacks\HD-Quit.exe" (WinX86)
    • "%Program Files(x86)%\BlueStacks\HD-Quit.exe" (WinX64)
    • Copy files from this package to ""WINDOWS_DRIVE""\ProgramData\BlueStacks\...
    • Import to registry "1280x720 & 1024ram.reg" or not...
    • Start Bluestacks
    6
    "E=mohazia;33618109]I'm here give full guide for what I was learned from mammadkhata and merrickville so all credits go to both of them.

    To whom who don't know BlueStacks (as me before a week), it's emulated android system to works under windows system. for more info go to company page

    You have 2 choices,
    First Method:
    :


    I have a Root.fs rooted (& Initrd.img Edited) with system.img (/system partition) resized to 500MB that is working fine with BS07.7.813.

    you can download it here: https://www.dropbox.com/s/rdf35z9cupl5xnb/Root-fs_and_Initrd-img-bs077813.rar

    it's MD5(sum) is: FFA77658EF35AACDDA06B379CBF52CB8
    it contains Root.fs and Initrd.img, this still can follow your method # 1 to root BS 077813.

    A few notes:
    - system partition resized to 500MB
    - su version 3.2 x86-RC3-signed was added not only to /system/xbin but also to /system/bin as well as busybox to keep a fallback when updating the su binary.
    - binary /system/bin/ls was symlinked to busybox instead of toolbox to get nice color file listings in a terminal
    - superuser4BS.apk (moded by @codelover) was added to /system/app"