yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Marcoevich:
I'm trying to find out what is causing bluestacks not liking root anymore..

According to the logfile the startup breaks while loading the ramdisk:

2012-09-30 16:06:54.600000 HD-BlockDevice( 7388: 1984): Starting block device helper process

2012-09-30 16:06:54.600000 HD-BlockDevice( 7388: 1984): Configuring block devices 5:

2012-09-30 16:06:54.600000 HD-BlockDevice( 7388: 1984): 0 sda1 -> C:\ProgramData\BlueStacks\Android\ramdisk.img

2012-09-30 16:06:54.600000 HD-BlockDevice( 7388: 1984): Fatal Exception: c0000005

blablabla

2012-09-30 16:06:54.610000 HD-BlockDevice( 7388: 1984): Terminating process

2012-09-30 16:06:54.610000 HD-Service( 4384: 5960): Unhandled exception in OnStart()

2012-09-30 16:06:54.630000 HD-Service( 4384: 5960): System.SystemException: Helper process exited prematurely

2012-09-30 16:06:54.630000 HD-Service( 4384: 5960): bij BlueStacks.hyperDroid.Service.Service.StartHelperProcess(String prog, String desc)

2012-09-30 16:06:54.630000 HD-Service( 4384: 5960): bij BlueStacks.hyperDroid.Service.Service.OnStartInternal()

2012-09-30 16:06:54.630000 HD-Service( 4384: 5960): bij BlueStacks.hyperDroid.Service.Service.OnStart(String[] args)

2012-09-30 16:06:54.650000 HD-Network( 7796: 6156): Parent process has died, calling dead parent handler

2012-09-30 16:06:54.660000 HD-Network( 7796: 7316): Cannot read from KAL: De pipe is beëindigd.

2012-09-30 16:06:54.660000 HD-Network( 7796: 7316): Network helper process exiting

What do your logifiles say? Same as here? Is there a newer version of the ramdisk we can try? Or is something else causing this?
[Android Software/Hacking General [Developers Only]] 6xSnake6x:
Guess we should just wait for some sort of final release that will eventually get rooted (?)
[Android Software/Hacking General [Developers Only]] tenet420:
Honestly, if we go through the trouble to root it again prior to the first consumer release its just gonna get patched for the final build. If we wait til the first consumer release then root it atleast we'll have a finished product with root access if they decide to patch it. I personally will start working on root again at that time.
[Android Software/Hacking General [Developers Only]] Bit_Reaper:
You are right. I apologize, I didn't double check before i posted. My apologies.

---------- Post added at 03:03 PM ---------- Previous post was at 02:51 PM ----------

1. The root ONLY works for the version in the tutorial above, and thankfully it is provided to you as well. (rare gift)

2. No one here cares if you are noob. If you read the tutorial and comments, AND THEN have a question then post it. No one here is going to treat you any different if you are a noob or not. If you want your hand held try a different website.

No. The version provided is the only version that is known to be root-able. But feel to root a new version and provided the steps here.

Try a device ID changer app. Or looking at your buildprop (there is an app for that as well).

No. The version provided is the only version that is known to be root-able. But feel to root a new version and provided the steps here.

I get this same error. If you install the apps BEFORE you root they will run just fine.

Understandable, thank you for the update.
[Android Software/Hacking General [Developers Only]] 6xSnake6x:
Thank you for the replies and helpful information. I now understand the situation.
[Android Software/Hacking General [Developers Only]] mammadkhata:
problem

I'm using 7.3 version and i did any thing you learned. but after use that registry key. bluestacks hangs during loading.at that same time i tried the adb while the bluestacks is open but it says device is offline (in command "adb root). i hope some body can help me to solve this !
[Android Software/Hacking General [Developers Only]] sorlou:
im not found any folder named "\program files\bluestack\andriod" in my computer (bluestack folder that ive installed) and file root.fs to overwrite. im using a newest version of bluestack 0.7.3.766

only folder "Locales" ive found in the Bluestack folder.

sory for the noob question.
[Android Software/Hacking General [Developers Only]] Scorpius666:
Why are you trying to root the new Bluestacks? Read the thread, it's been said a million times. It only works with 0.6.0686 and the MSI installer (BlueStacks_HD_AppPlayerPro_setup_0.6.3.0686_REL.msi) is linked in the first post.

This guide doesn't work for ANY OTHER VERSION, just THAT ONE 0.6.3.0686.
[Android Software/Hacking General [Developers Only]] Scorpius666:
You didn't read what I just post???? YOU CAN'T ROOT 0.7.3.766!!!
[Android Software/Hacking General [Developers Only]] sorlou:
i used 0.6.3.0686 before but still dont have that "\program files\bluestack\andriod" then i installed the new version to check if "andriod" folder appear in my bluestack folder. but it still same.
[Android Software/Hacking General [Developers Only]] Scorpius666:
Read again the guide and more carefully this time. It's "\ProgramData\BlueStacks\Android" ProgramData and Program Files are two VERY different directories.
[Android Software/Hacking General [Developers Only]] RomWiz:
And hidden files must be enabled in some cases ;)

$3nt fr0m my K4ng3d Ph0n3
[Android Software/Hacking General [Developers Only]] sorlou:
so, where i can find that Program Data?
[Android Software/Hacking General [Developers Only]] Scorpius666:
Kill yourself. If you don't know how to access C:\ProgramData you shouldn't be rooting anything.
[Android Software/Hacking General [Developers Only]] shinobisoft:
It's in the Root of your Windows drive. Don't wanna sound harsh, but if you can't find a folder on your computer, you don't need to be doing this.
[Android Software/Hacking General [Developers Only]] merrickville:
Yes you can. :P

I have my Bluestacks 0.7.4.792 rooted

HOWEVER: This thread and guide does not work. You need to extract the file systems in Root.fs, (I use Linux) and manually put the 'su.x86' binary under /system/xbin

You can do it, it's just that no one has provided a guide. I'm a Linux geek, and figured it out.
[Android Software/Hacking General [Developers Only]] sorlou:
omg.. i forgot that it is a hidden file here. sory guys, dont get mad..maybe i shud kill myself.. :((

uninstalled a ".766" version and trying to install ".0686" but warning appear that ive installed another program that uses a "dock" (friendly control bar along the side of your screen) and need to uninstall it before continue to install bluestack..
[Android Software/Hacking General [Developers Only]] shinobisoft:
Nobody's mad. No need to kill yer self either :silly:. We all make mistakes :eek:. The main problem is people don't read anything before they post, they just post. Usually a question that's been answered a 1000 times too.

---------- Post added at 02:56 PM ---------- Previous post was at 02:54 PM ----------

Would you be so kind as to elaborate a little more. I'm a Windows programmer, but dual boot Ubuntu. Are you just mounting the root.fs and then injecting the su binary?
[Android Software/Hacking General [Developers Only]] merrickville:
You 'require' squashfs 4.0 (I tried with an earlier version, it did not work) Ubuntu apt-get does not get your 4.0, it's 3.x (something)

Root.fs contains

/android

../ramdisk.img

../system.sfs

Unsquash ../system.sfs -> system.img

mount system.img

inject su.x86 binary

do everything in reverse.

Reboot, and you'll have root.

You can not mount /system as rw, as technically, it's inside a squashfs

I'm trying (without luck) to keep the ramdisk.img and just the system.img files in the open, and trying to edit the 'init' script inside initrd.img file to mount them, but I've failed at every attempt so far.

With 'su' you can install TitaniumBackup (it works fine) and access /data
[Android Software/Hacking General [Developers Only]] merrickville:
GET ROOT

If you're not comfortable at the linux command line, please don't attempt, I don't spend a lot of time on here to help people out.

If you can mount squashfs file system, then this is all you need to do to get root:

Make a backup:

cd C:\ProgramData\BlueStatcks\Android

copy Root.fs Root.fs.orig

Get Root.fs to your Linux Box

Do this as root, my example, you can use any directory you choose:

[INDENT]
mkdir /b
mkdir /b/root
mkdir /b/system_img
mkdir /b/system_sfs

mount -o loop /b/Root.fs /b/root
mv /b/root/android/system.sfs /b

mount -o loop /b/system.sfs /b/system_sfs
cp /b/system_sfs/system.img /b
umount /b/system_sfs

mount -o loop /b/system.img /b/system_img
mv /b/system_img/xbin/su /b/system_img/xbin/su.orig
cp su.x86 /b/system_img/xbin/su
chown 0:2000 /b/systeim_img/xbin/su
chmod 6755 /b/system_img/xbin/su

Must look like this:

# ls -ln /b/system_img/xbin/su
-rwsr-sr-x 1 0 2000 27936 Sep 23 10:35 [COLOR="Red"]/b/system_img/xbin/su[/COLOR]

umount /b/system_img
mv /b/system.img /b/root/android
[COLOR="Red"]chown [/COLOR]0:2000 /b/root/android/system.img [EDIT: corrected to chown]
chmod 644 /b/root/android/system.img
umount /b/root

Copy Root.fs Windows|C:\ProgramData\BlueStacks\Android
Start BlueStatcks[/INDENT]

YOU GOT ROOT!
[Android Software/Hacking General [Developers Only]] merrickville:
EDIT: This is not the case, you must pack it using cpio -H newc -o, this creates the proper headers for an initramfs (file system)

IGNORE THIS BELOW, is it not the case:

c:\ProgramData\BlueStacks\Android\initrd.img

This file, I believe if changed, even unpacking and repacking without any mod's, changes the md5sum hash (possible due to different versions of gzip)

If I use the original file, Bluestacks works, if I use an 'unmodded' initrd.img file (but repacked by me), bluestacks fails.

SO, there must be a md5hash somewhere.
[Android Software/Hacking General [Developers Only]] merrickville:
Go here on how to remove the dock entry of you are trying to install Bluestacks, and you get the dock error.

Registry location:

If you get a RocketDock error message navigate to your registry editor and delete RocketDock key:

HKEY_CURRENT_USER\Software\RocketDock

From this:

http://www.droid-life.com/2012/03/2...rings-450000-android-apps-to-your-windows-pc/
[Android Software/Hacking General [Developers Only]] merrickville:
ROOTED Bluestacks (beta-1) 0.7.4.792

Guys/Gals, I have rooted Bluestacks 0.7.4.792 and am able to mount the /system as rw.

Please see my previous posts regarding injecting the su binary into the system.img (now system.fs)

The system.fs file is almost 200M large, I have no way to up load.

initrd.img -> C:\ProgramData\BlueStacks\Android

su.x86 -> /b/system/xbin/su (Please see my previous posts for explanation)

Bluestacks-0.7.4.792-hack.reg - Edit first, find your GUID, place it in here.

Enjoy.

I posses not online storage to share the rooted system file, if you have linux, my instructions are (to me anyway) straight forward :)
[Android Software/Hacking General [Developers Only]] Sage:
Well done mate! Any chance you could upload the modded version for us Windows geeks? Just use mediafire.com or depositfiles.com or any other free file hosting site..

If you cant then i can provide a FTP for you to upload too and i will host it for everyone :)

Would be appreciated if you can help.
[Android Software/Hacking General [Developers Only]] tenet420:
Hello, would you mind sharing what you did to enable system mounting with rw access. Thank you.
[Android Software/Hacking General [Developers Only]] merrickville:
It is inside the registry file, you'll note I don't mount the prebundled.fs and swap it out for system.fs (which I injected su into) And, if you look inside initrd.img, the 'init' script, search for sdd entry, and you'll see exactly. It's not a secret, it's in the files I posted. Unfortunately, the system.fs file it too large to post here, and I don't have an online place for it.
[Android Software/Hacking General [Developers Only]] merrickville:
There is, in the OP page, windows software, how to mount EXT4 file systems in and squashfs

Root.fs has a file 'inside' called system.sfs (squash file system) inside this file, is the target file system.img (ext4 file system) Once you get it extracted, then you need to inject the su.x86 binary.

I'll try to set up a mediafire I guess will cost money, so I'm not going to go that route. If you can get the file out, using the instructions in the OP, first three pages, then you're all set the files required are attached a few posts back. Just name system.img to system.fs once you have the su installed.

Can anyone suggest a place to upload my file for 'free', I'm not in the habbit of paying for online storage when I have over 5 TB's in side my house LOL

The target file is inside a file, inside a file. Burried two files deep.
[Android Software/Hacking General [Developers Only]] shinobisoft:
I have a media fire account. A free one. Not sure what issues you're running into with it. I can make a public folder that you can then upload your fix to if you'd like. If so, reply here and when I get it set up I'll PM you the link to the folder. ;)

Sent from my HP G60
[Android Software/Hacking General [Developers Only]] shinobisoft:
[ROOTED] BlueStacks 0.7.5.2700

I have successfully rooted :D BlueStacks 0.7.5.2700 :D with the method mentioned by merrickville a few posts back. I have put the new Root.fs, his initrd.img and the new system.fs into a zip along with his previously posted registry tweak. Follow his ( merrickville's ) installation instructions.

You may or may not need to install the latest version of BlueStacks also. I dl'd this version yesterday ( well on 10/03/2012 ).

Apparently the system still cannot be mounted as RW tho. I installed an app from Play Store called "Got Root" to check. I ran the app and it reported that it had found an su binary and was granted root permissions by the su binary and that it had also located a copy of busy box. I tried to get root permissions with Es File Explorer. Not happening. But, I have root permissions with Es Task Manager and have successfully edited the startup applications with it. The method I used to determine that I didn't have RW permissions was then by installing another application from Play Store called Root Explorer ( I think ). It's by JRummy. I attempted to delete a couple of the audio files from /system/media/audio/ringtones and had no success.

I am not a Linux/Ubuntu wizard/programmer. I just followed some one elses directions, with one correction ;).

I will update this post with a link as soon as it's done uploading :p

Finally done... Here's the link BlueStacks 0.7.5.2700 ROOTED

Not sure it's worth the effort as much as I hate to say it. It's more like partial root I guess?
[Android Software/Hacking General [Developers Only]] rajashekarkb:
hide the suggested apps bar

I tried this and it works!! I have only one problem with this. The mouse scroll does not work anymore. Can you update it to have mouse scroll working? or can you give me suggestions on how to modify your tool to do that as I dont know what your tool does?
[Android Software/Hacking General [Developers Only]] merrickville:
PM me, and ilk show you how to mount system RW

---------- Post added at 09:02 AM ---------- Previous post was at 08:32 AM ----------

Congratulations, I'm glad what I did actually worked, first time I had time to contribute to this forum.

Unfortunately, apps that request SU fail, there is something I'm missing, and I'm trying to figure it out. If you install terminal emulator, and type su, you will become root, no questions asked. What's suppose to happen, 'superuser' or 'superSU' should pop up and ask you to allow super user privileges to 'terminal', this does not happen.

However, you can manually use adb to place program.apk in system if you'd like.

Unfortunately, file system maint must be done via the command line, not ideal for most people who what the apps to just work.

Back to delving into this apps/root issue.... I'll post the moment if figure this out.

---------- Post added at 09:13 AM ---------- Previous post was at 09:02 AM ----------

I have another PC with Bluestacks installed, and just 'su' installed, nothing else, /system is RO, period. However, that one

DOES

ask to allow/deny any program that wants root access. And it works

I've got some diff'ing to do lol, compare each one.
[Android Software/Hacking General [Developers Only]] tenet420:
Superuser and mounting rw are two different things.

The version of superuser that is used should be the x86 version. The only x86 version I have used auto-grants superuser to apps automatically without a pop-up.

RW is achieved by editing the init to mount the unpacked system image at boot, then by using a root app to mount it in android.

To test root AND mounting, use an app like root checker. Also, switching to SuperSU android version (not x86) might solve su issues.

The thing is, some apps and the core of bluestacks are x86 based and some apps are emulated arm based - this is where changing system to be mounted as rw starts breaking things. I will jump into your release this weekend and see what I can see :)

Nice work, keep going.
[Android Software/Hacking General [Developers Only]] merrickville:
I realized that the su binary is for x86, not ARM. So, this makes sense. I'm just a little confused as to why my other installation of BS pops up the allow/deny, and my installation that has /system as RO&RW, the app requesting root just fails, no pop up. At least I have to identical versions of BS to compare.

It's Turkey-Giving weekend here in Canada, so I'm not sure I'll have much time to tackle this, lot's of friends & family passing through. But determined none the less to contribute.

---------- Post added at 10:04 AM ---------- Previous post was at 09:37 AM ----------

If you would like to use a file manager that works with this setup, I.e., root works and mount/unmount system as ro/rw.

In a terminal window:

su
cd /system/bin
mv mount mount.orig
ln -s ../xbin/busybox mount
exit
exit

Install this

File Manager

This app works as expected, so, be careful :fingers-crossed:
[Android Software/Hacking General [Developers Only]] shinobisoft:
Did you try my version or creating your own? As for mine, everything works freaking great. As I stated, this is the latest version of blue stacks, 0.7.5.2700. I dl'd it from blue stacks.com on Oct. 3rd.

Sent from my LG-P509
[Android Software/Hacking General [Developers Only]] morizuki:
is this like copy and paste it to C:\ProgramData\BlueStacks\Android\? and change the GUID of the registry and double click it?
[Android Software/Hacking General [Developers Only]] shinobisoft:
Sure enough :eek::D

Sent from my LG-P509
[Android Software/Hacking General [Developers Only]] morizuki:
if that is then, my bluestacks is still not rooted, i tried installing superuser and update the binary but won't gain access to root..
[Android Software/Hacking General [Developers Only]] shinobisoft:
Its rooted. The su binary auto grants permission. But we still can't mount /system as RW. Reread merrickville's last couple of posts.

Sent from my LG-P509
[Android Software/Hacking General [Developers Only]] Sage:
great work everyone look forward to the next milestone :) strange that bluestacks is only 2.3.5 not ICS or JB though.
[Android Software/Hacking General [Developers Only]] tenet420:
For anyone that has rooted the newest version :

Does arm emulation still work? What I mean is - after rooting an other previous version the ability to play graphic intense games failed because changing the system broke the emulation.

Anyone?

Thank you.
[Android Software/Hacking General [Developers Only]] Tyrigi:
can anyone update the tutorial for the 0.7.5.2700 pls?
[Android Software/Hacking General [Developers Only]] shinobisoft:
Download the file I attached a few posts back. Unzip somewhere. Copy Root.fs and system.fs to ProgramData/BlueStacks/Android. Edit the registry hack to include your GUID that was generated when BlueStacks was installed. Save it. Then double click it to merge it with the registry. Restart BlueStacks. Bear in mind, it is rooted but you cannot mount system as rw, yet.

Sent from my LG-P509
[Android Software/Hacking General [Developers Only]] shinobisoft:
BlueStacks Root Installer

Ok, for the noobs, and anyone else, I'm writing a very simple installer for Windows that will install the rooted file system images from my post a few posts back. It will also make the required changes to the registry for BlueStacks to boot the new system.fs image.

Please don't ask for a Linux/Unix or Mac version. I'm a Windows programmer, sorry. :eek:. I'll need a couple more hours, I think, and I'll post a link to the installer. :D
[Android Software/Hacking General [Developers Only]] mammadkhata:
there is 2 things i want to know mr bill.weckel your root.fs file contains system.img & ramdisk.img but orginal root.fs i extracted before contained system.sfs & ramdisk.img. what is the deference between them?

i tried to repack that 2 files of root.fs whit ext2fsd-0.51 & ofsmount but it was right protected? so how can i repack that?
[Android Software/Hacking General [Developers Only]] shubhkirtisharma:
Finally got my bluestacks beta - 1 rooted!!!!

FINALLY GOT MY BLUESTACKS ROOTED WITHOUT ANY PROBLEM.......

NOW I'M ABLE TO MOUNT SYSTEM AS READ/WRITE, USE TITANIUM BACKUP (ROOT) AND INSTALLED A CUSTOM ICS LAYOUT THEME WHICH IS LOOKING QUITE COOL. THE GOOGLE PLAY OR ANDROID MARKET IS RUNNING GOOD AS WELL......FOR THE ICS LAYOUT THEME YOU CAN DOWNLOAD THE APK FROM THE ATTACHMENTS

HERE ARE SOME SNAPSHOTS OF IT.......
[Android Software/Hacking General [Developers Only]] Swifty420:
Hey merrickville you can use google drive it gives you 5gb free storage and i haven't ran into a file size limit yet.
[Android Software/Hacking General [Developers Only]] geaman:
Thanks for all the help. Greetings.
[Android Software/Hacking General [Developers Only]] shinobisoft:
Mine was done with Ubuntu following merrickkville's method posted a few posts back. Although I'm a Windows programmer, I don't know how to do it with Windows. Sorry.

---------- Post added at 08:13 PM ---------- Previous post was at 08:10 PM ----------

How were you able to make it mountable as RW? And are you using the Root.fs, system.fs and initrd.img from the archive I uploaded and linked? Curious. Really would like full root on my BlueStacks as well.
[Android Software/Hacking General [Developers Only]] tenet420:
Ok, I had time to review everything and I've yet to see proof of the new Bluestacks rooted, with R/W access and working ARM emulation. Root has been available the entire time - nothing new there. Its R/W with the squashfs that is the problem ...
[Android Software/Hacking General [Developers Only]] shubhkirtisharma:
reply

HI BUT THE ONLY ERROR WAS THAT BLUESTACKS AFTER MOUNTING IT TO RW, ITSELF GETS MOUNTED BACK TO R/O IN AN EXACT TIME OF 8 SECONDS, I TRIED TO FIX THIS BUT WAS'NT ABLE TO DO THAT. OTHERWISE I WAS ABLE TO USE APPS LIKE TITANIUM BACKUP (ROOT) WHICH REQUIRES FULL ROOT!!!!!!! AAS SOON AS I FIX THIS I WILL POST THE METHOD OF ROOTING.

DON'T KNOW WHETHER IT WAS YOUR ROOT.FS OR NOR AS MOH ERBIL POSTED ON MY WEBSITE AS HIS ROOT.FS FILE.

IF YOU WANT YOU CAN CHECK IT OUT ON THIS WEBSITE teknogin.blogspot.in AND SEE COMMENTS IN THE ROOT BLUESTACKS BETA -1 SECTION.I WILL CHECK IT OUT.
[Android Software/Hacking General [Developers Only]] theWORLDruler:
Careful with the caps.
[Android Software/Hacking General [Developers Only]] shubhkirtisharma:
Important notification

A very important notification for everyone who has rooted bluestacks or are trying to root it ===== Mounting system as read/write is not possible till yet on the following versions:-

0.6 (all versions)

0.7 (except for 0.7.4.792 because merrickville was able to mount system)

alpha
[Android Software/Hacking General [Developers Only]] shubhkirtisharma:
HELP

How can i open the Root.fs when i tried opening it with OSF MOUNT then it gave an error that you need to format the disk in drive G:........Any help would be appreciated pl pl