5,606,465 Members 33,415 Now Online
XDA Developers Android and Mobile Development Forum

[Emulator][Root] BlueStacks 0.7.7.813

Tip us?
 
mohazia
Old
(Last edited by mohazia; 11th November 2012 at 07:59 PM.)
#1  
mohazia's Avatar
Senior Member - OP
Thanks Meter 125
Posts: 212
Join Date: Jun 2007
Location: Amman, Jordan

 
DONATE TO ME
Default [Emulator][Root] BlueStacks 0.7.7.813

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 )

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
Quote:
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)
Quote:
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)
Quote:
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.sparsef s" 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.e xe" (WinX86), "%ProgramFiles(x86)%\Portable_Ubuntu_V4_slim2\pubu ntu.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
Quote:
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
Quote:
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
Quote:
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)
Quote:
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]
Quote:
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
Quote:
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"
Quote:
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
Quote:
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:
try_mount ro "$device /mnt || continue
(It should be after "for device in /dev/sr* /dev/sd.....")
and replaced with
"try_mount rw $device /mnt || continue
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
Quote:

Model Number: HTC Desire HD
Android Version: 4.0.4
ROM: MIUI.CN 2.10.12-V4.0
Kernel Version: 3.0.43-Virtuous-S4-PachaRX
Baseband Version: 12.69a.60.29U_26.17.14.11_M
MicroSD: SanDisk 32Gb Class4
Launcher: GO Launcher EX 3.17
CPU: 1.0 GHz
RAM: 768 MB
Internal Memory: 3.0 GB
SD Card: FAT32: 26.63 GB, SD-EXT4: 4.0 GB, Swipe: 1 GB
The Following 64 Users Say Thank You to mohazia For This Useful Post: [ Click to Expand ]
 
lokeshsaini94
Old
#2  
lokeshsaini94's Avatar
Recognized Contributor / Themer
Thanks Meter 3504
Posts: 1,772
Join Date: May 2012
Location: Behind you!!!

 
DONATE TO ME
Looks preety awesome...
Will try it soon...

Sent from my GT-S7500 using xda premium

lokeshsaini94's Theming Hub
MY WORK <= click here
TEAM GFX BANDITS - you request, we design.
I WON'T REPLY TO ANY DEVELOPMENT RELATED QUESTIONS WITH PM...
 
rocketero
Old
(Last edited by rocketero; 6th November 2012 at 08:03 PM.)
#3  
Senior Member
Thanks Meter 67
Posts: 355
Join Date: Jan 2012
Quote:
"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/rdf35z9cup...g-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"
The Following 5 Users Say Thank You to rocketero For This Useful Post: [ Click to Expand ]
 
mohazia
Old
#4  
mohazia's Avatar
Senior Member - OP
Thanks Meter 125
Posts: 212
Join Date: Jun 2007
Location: Amman, Jordan

 
DONATE TO ME
Quote:
Originally Posted by rocketero View Post
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/rdf35z9cup...g-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
Quote:

Model Number: HTC Desire HD
Android Version: 4.0.4
ROM: MIUI.CN 2.10.12-V4.0
Kernel Version: 3.0.43-Virtuous-S4-PachaRX
Baseband Version: 12.69a.60.29U_26.17.14.11_M
MicroSD: SanDisk 32Gb Class4
Launcher: GO Launcher EX 3.17
CPU: 1.0 GHz
RAM: 768 MB
Internal Memory: 3.0 GB
SD Card: FAT32: 26.63 GB, SD-EXT4: 4.0 GB, Swipe: 1 GB
 
mohazia
Old
#5  
mohazia's Avatar
Senior Member - OP
Thanks Meter 125
Posts: 212
Join Date: Jun 2007
Location: Amman, Jordan

 
DONATE TO ME
but I'd like to ask, why u'll need system 500MB ???
Quote:

Model Number: HTC Desire HD
Android Version: 4.0.4
ROM: MIUI.CN 2.10.12-V4.0
Kernel Version: 3.0.43-Virtuous-S4-PachaRX
Baseband Version: 12.69a.60.29U_26.17.14.11_M
MicroSD: SanDisk 32Gb Class4
Launcher: GO Launcher EX 3.17
CPU: 1.0 GHz
RAM: 768 MB
Internal Memory: 3.0 GB
SD Card: FAT32: 26.63 GB, SD-EXT4: 4.0 GB, Swipe: 1 GB
The Following User Says Thank You to mohazia For This Useful Post: [ Click to Expand ]
 
rocketero
Old
#6  
Senior Member
Thanks Meter 67
Posts: 355
Join Date: Jan 2012
Quote:
Originally Posted by mohazia View Post
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
Old
#7  
mohazia's Avatar
Senior Member - OP
Thanks Meter 125
Posts: 212
Join Date: Jun 2007
Location: Amman, Jordan

 
DONATE TO ME
Quote:
Originally Posted by rocketero View Post
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?

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

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

Model Number: HTC Desire HD
Android Version: 4.0.4
ROM: MIUI.CN 2.10.12-V4.0
Kernel Version: 3.0.43-Virtuous-S4-PachaRX
Baseband Version: 12.69a.60.29U_26.17.14.11_M
MicroSD: SanDisk 32Gb Class4
Launcher: GO Launcher EX 3.17
CPU: 1.0 GHz
RAM: 768 MB
Internal Memory: 3.0 GB
SD Card: FAT32: 26.63 GB, SD-EXT4: 4.0 GB, Swipe: 1 GB
 
rocketero
Old
(Last edited by rocketero; 4th November 2012 at 04:59 PM.)
#8  
Senior Member
Thanks Meter 67
Posts: 355
Join Date: Jan 2012
Quote:
Originally Posted by mohazia View Post
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?

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

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.
 
tichs
Old
#9  
Senior Member
Thanks Meter 20
Posts: 189
Join Date: Oct 2011
It says that "Blue stack player app download in progress" and says its "already installed", error. idk what happens
 
rocketero
Old
#10  
Senior Member
Thanks Meter 67
Posts: 355
Join Date: Jan 2012
Quote:
Originally Posted by tichs View Post
It says that "Blue stack player app download in progress" and says its "already installed", error. idk what happens
You'll get more responses if you post on the official BS thread here: http://forum.xda-developers.com/show...2#post33701742

Tags
bluestacks, emulator, google app, root
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes