Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[Emulator][Root] BlueStacks 0.7.7.813

$
0
0
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:
Quote:

To download the ready files:
1- Download "BlueStacks-SplitInstaller_native.exe" from here
2- Download "Root_initrd.rar" from here
3- Setup BlueStacks 0.7.7.813 by file "BlueStacks-SplitInstaller_native.exe"
4- After setup finish installing, and you take a first tour on it close it and then open run command (win key + R) and run the command "%ProgramFiles%\BlueStacks\HD-Quit.exe"
5- Again open run command "%programdata%\BlueStacks\Android" and rename files "initrd.img" into "initrd.img.bak" and "Root.fs" into "Root.fs.bak"
6- Extract "Root_initrd.rar" into same folder "%programdata%\BlueStacks\Android"
8- Now open run command "%programfiles%\BlueStacks\HD-StartLauncher.exe"
9- After BlueStacks run, download custom launcher (like Apex, Go Launcher) then open Superuser -> Settings -> Automatic Response -> Allow
Now your BlueStacks have root permission and google apps.
P.S: if everything go correct and BlueStacks works fine, you can delete "initrd.img.bak" & "Root.fs.bak" if you need more system space.

OR
Download rocketero's rooted Root.fs & initrd.img from the 3rd post , thanks rocketero

Second Method:
Quote:

Allow to use it in any versions of BlueStacks. it need to download Portable Ubuntu Remix by demonccc, it's a portable Linux emulator that works under windows environment. for more information this link to the project page.
1- Download Portable Ubuntu Remix (it's Ubuntu 10.4 LTS) from here
2- Download BlueStacks from here
3- Download "SuperUser_GoogleApps.rar" from here
4- Download merrickville's "initrd.zip" from here
5- Run Portable Ubuntu Remix and change the path to "%programfiles%\"
6- Setup BlueStacks until it open, you can take a tour inside.
7- Open run command (win key + R) and run the command "%ProgramFiles%\BlueStacks\HD-Quit.exe"
8- Create a folder in C:\ and call it "pubuntu" (make sure to make it in small letter) and Extract "SuperUser_GoogleApps.rar" inside.
9- Open run command "%programdata%\BlueStacks\Android" and rename files "initrd.img" into "initrd.img.bak" and "Root.fs" into "Root.fs.bak"
10- Extract "initrd.zip" into same folder "%programdata%\BlueStacks\Android"
11- Open run command "%programfiles%\Portable_Ubuntu_V4_slim2\pubuntu.e xe" and wait till Portable Ubuntu fully loaded.
12- From the top toolbar select Applications -> Accessories -> Terminal.
13- Write the following commands (P.S: # means a note for you, it's not a command):
Code:

# Take a root previlage
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

# Copy Root.fs to /b folder (ba sure it's a small letter)
cp "/media/cofs2/ProgramData/BlueStacks/Android/Root.fs.bak" /b/root.fs

# Resize root.fs
e2fsck -f -y /b/root.fs
resize2fs -f /b/root.fs 250M

# Mount root.fs to root folder
mount -o loop /b/root.fs /b/root

# Extract system.sfs to /b folder
mv /b/root/android/system.sfs /b

# Mount system.sfs to system_sfs folder
mount -o loop /b/system.sfs /b/system_sfs

# Extract system.img to /b folder
cp /b/system_sfs/system.img /b

# Unmount system_sfs with no change in system.sfs (make sure the command not have n in umount)
umount /b/system_sfs

# Resize system.img
e2fsck -f -y /b/system.img
resize2fs -f /b/system.img 200M

# Mount system.img into system_img
mount -o loop /b/system.img /b/system_img

# Copy root and google apps files
cp "/media/cofs2/pubuntu/system/app/"* /b/system_img/app
cp "/media/cofs2/pubuntu/system/bin/"* /b/system_img/xbin
cp "/media/cofs2/pubuntu/system/etc/permissions/"* /b/system_img/etc/permissions
cp "/media/cofs2/pubuntu/system/framework/"* /b/system_img/framework
cp "/media/cofs2/pubuntu/system/lib/"* /b/system_img/lib

# Set permissions
chown 0:2000 /b/system_img/xbin/su
chmod 6755 /b/system_img/xbin/su
chown 0:0 /b/system_img/app/superuser.apk
chmod 0644 /b/system_img/app/superuser.apk

# Un mount system_img and save changes into system.img (make sure the command not have n in umount)
umount /b/system_img

# Repack system.img into Root.fs
cp /b/system.img /b/root/android

# 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

# Copy modified root.fs back into BlueStacks
cp /b/root.fs "/media/cofs2/ProgramData/BlueStacks/Android"

14- Close Terminal and shout down Portable Ubuntu from system menu at top toolbar -> Shut Down
15- Now open run command "%programfiles%\BlueStacks\HD-StartLauncher.exe"
16- After BlueStacks run, download custom launcher (like Apex, Go Launcher) then open Superuser -> Settings -> Automatic Response -> Allow
Now your BlueStacks have root permission and google apps.
P.S: if everything go correct and BlueStacks works fine, you can delete "initrd.img.bak" & "Root.fs.bak" if you need more system space.
Again all credits for our great members mammadkhata and merrickville

if it helps you, give me thanks :good:

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>