yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] rocketero:
wao, that's great

thanks a lot for the explanation.

---------- Post added at 05:00 PM ---------- Previous post was at 04:54 PM ----------

could you explain what exactly does the bluestacksrootinstaller.EXE does? you see we are very cautious installing .exe files that we don't know what is going to do to our system, and in this case specially to bluestacks installation, as like me have spend almost 2 or more weeks researching why the Google Store didn't want to work, and now that I finally got it working thanks to @codelover I wan't to keep it that way.

So a bit of explanation along the side wouldn't hurt but would help to clarify things up. For instance, after double-clicking on it does it run with not menus, does it just do stuff and then output any messages etc..

Also have you checked these comments codelover did in previous page:

"1) You can remove the 'system.fs' as this file will NEVER get mounted as system.sfs is not exists in anywhere, the statement to mount is always FALSE in initrd.img. Also your method success because system.img exists in Root.fs, if you replace Prebundled.fs with system.fs then this only works if the user already has prebundled data copied to /data/. Lets say i wish to restart everything, a fresh & clean android, i could simply delete the Data.sparsefs but then your root.fs will fail to boot because there is no where to copy prebundled data (Default launcher is in Prebundled.fs) - So just leave Prebundled.fs as it or add a launcher perhaps.

2) As your /dev/sda1 (Root.fs) is mounted as ro there is NO WAY you can mount /system as rw because your /system (system.img) is in Root.fs. To mount /system as rw you need to have /dev/sda1 mounted as rw first. I think i have given enough hint for you to make a full rw /system, and also you might need to consider increasing the system.img FS size before packing it into Root.fs since /system size depends on it, it's pointless if you have rw on /system but no space left on it."

As I see the new v0.7.5.2700 Is the one I'm using, and in your rooting you use v.0.7.4.792, does your method take you back one version?

I can take apart the initrd.img you have in the rooting with dsixda's kitchen tool if I wanted to, but I don't know about system.fs how to check what's inside. root.fs I'm taking a guess here it could be mounted with the previous tools as it contains 2 folders, ramdisk.img and system.img I believe, not exactly sure as it has been a long time since I don't work with these utilities to disassemble root.fs. So if root.fs contains system.img why the need for a (another) system.fs ??
[Android Software/Hacking General [Developers Only]] shubhkirtisharma:
HELP

But my Bluestacks is not starting now........After i click "Start Bluestacks" it shows loading screen for 2 seconds and then closes.

What should i do???
[Android Software/Hacking General [Developers Only]] mammadkhata:
install problem

i wanted to uninstall BS 0.7.49 to install 0.7.5. i tried to remove 0.7.49 from control panel but i couldn't. so i did it manually ( and delete every thing related to "blue stacks" from regedit too). now i can't install 0.7.3 (with error: a later ver of BS is already installed) , nor can't install 0.7.5 ( with error : the older ver of BS can't remove). someone help! is there a way except of reinstall windows???
[Android Software/Hacking General [Developers Only]] joeb3786:
i have great reason to believe that all of you are smarter than me, so I thought I might see if I can get some love on a specific bluestacks topic...carrier specific apps. The long and short of it...i want NFL Mobile, a Verizon specific app, to run on my PC so i can watch me some NFL games on a screen larger than 4.65 inches! After installing a custom ROM on my phone, i had to download and manually install the verizon secure SSO package in order to properly run NFL Mobile, so i'm sure the answer lies in that somewhere. I tried to install this .apk manually in BlueStacks but was given an error indicating that BlueStacks itself or the apk file was running an out of date SDK. I don't even know if its possible, but the idea is intriguing.

Thanks!
[Android Software/Hacking General [Developers Only]] shinobisoft:
Have u also tried restarting the blue stacks service via tray icon->Restart?

Sent from my LG-P509
[Android Software/Hacking General [Developers Only]] sga999:
I had that problem several months ago, and I read something about Bluestacks needing "high performance graphics". On my ASUS laptop, I have a little button at the top left side of the keyboard that allows me to change the graphics performance. Pressing that fixed it for me. However, since that occurred a few months ago, I don't know if newer Bluestacks version have the same issue or not. I haven't tried the new version yet.

EDIT:

This is in response to shubhkirti1997: Sorry, I forgot to quote this before responding.

"But my Bluestacks is not starting now........After i click "Start Bluestacks" it shows loading screen for 2 seconds and then closes.

What should i do???"
[Android Software/Hacking General [Developers Only]] shinobisoft:
My installer backed up your original Root.fs and initrd.img to ProgramData/BlueAtacks/backup/. Depending on how many times you've ran my installer will depict how many sub-folders there are in that folder. You can manually restore your files as I haven't written an "Uninstall" feature although I guess I should.

Sent from my LG-P509
[Android Software/Hacking General [Developers Only]] shinobisoft:
Please reread this post, the section labeled [ What it Does ], was written for this purpose. As for the other, yes I read the suggestions and as I stated to him, I'll have to look into it, which will take some time for me as I'm a Windows programmer that fiddles with Ubuntu.

The installer was an attempt anyway, at a method to assist the non-technical noobs in rooting their BlueStacks installations. As I'm not an Android/Java programmer either, my programming skills for Windows and my advice are the only things that I have to offer so that I can give back to this community.
[Android Software/Hacking General [Developers Only]] rocketero:
did you reboot your PC after you removed all instances of bluestacks from the registry, that usually clears things up.
[Android Software/Hacking General [Developers Only]] mammadkhata:
i reboted my pc time and times. it remains nothing contain BS or its sub softwares ( like HD-...).
[Android Software/Hacking General [Developers Only]] rocketero:
if nothings helps I would suggest restoring your pc to before you delete the registry entries and trying to install over it and see if it installs. or you could input some registry values back into the registry. I have 3 set of values you may use, I placed it in a zip file, unzipp them, then import them into the registry and see if that helps installing a fresh copy.

https://www.dropbox.com/s/vr8it1oos...CurrentUser-HKLocalMachine-HKeyRocketdock.zip

I believe these are registry values for v0.6.3.2217. it only inputs registry values in 3 easy places in case you need to delete them, HKeyCurrentUser-sowftare-bluestacks, HKeyLocalMachine-software-bluestacks and HKeyCurrentUser-Rocketdock
[Android Software/Hacking General [Developers Only]] mammadkhata:
thanks but didn't change anything.
[Android Software/Hacking General [Developers Only]] codelover:
Understand the reason why Bluestacks failed to uninstall is the key to sucess.

Any error message when you try to uninstall? or you not even able to reach the uninstaller?

Please provide more details like OS details.

Btw you can always review setup log in %LOCALAPPDATA%/Temp/ if you are using Win7, perhaps you can provide the log for us if you need further help.

Thanks.
[Android Software/Hacking General [Developers Only]] mammadkhata:
i deleted everything related to BS in every folders.

i uninstalled it manually because when i wanted to remove it from control panel it asked me do u want to delete all data when i press yes the removing window of BS close and never remove.

here is 0.7.3 log

http://www.textswell.com/read,4208211451055

here is 0.7.5 log

http://www.textswell.com/read,4208222145502
[Android Software/Hacking General [Developers Only]] codelover:
Try to uninstall the program manually (again), run command prompt with Administrator rights:

> msiexec /x BlueStacks_HD_AppPlayerPro_setup_REL.msi

* You may need to change the working directory to your MSI installer path first (C:\...\Downloads\Programs\)

* Try with latest version of BS first, if doesnt works try with the original installed version 0.7.4?

Thanks
[Android Software/Hacking General [Developers Only]] bluestalk:
Bluestacks backup

Does anyone know how i can save a previous state of bluestacks and load it in a second moment or in another pc? Thank you everyone
[Android Software/Hacking General [Developers Only]] mammadkhata:
i did it t face this error in ver 0.7.4 and 0.7.3: this installation package could not be opened. verify the package exist and you can access it, or contact the application vendor to verify that is a valid windows installer package

and with ver 0.7.5: this action is only valid for products that are currently installed.
[Android Software/Hacking General [Developers Only]] codelover:
This error message only occurs if you are not providing the right filename for the MSI, please double check.

Please double check, if you have spaces in filename don't forget to quote the file name with double quote "".

Btw are you able to install v0.7.4?

---------- Post added at 10:29 PM ---------- Previous post was at 10:20 PM ----------

If you are using Win7 you can try copying %ProgramData%\BlueStacks\Android\*.sparsefs|*.fs to another pc.

You may also need to shutdown the android vm first. eg: stop related services or simply run HD-Quit.exe

Not tested but should work. good luck.

Thanks
[Android Software/Hacking General [Developers Only]] mammadkhata:
don't give a damn. forgive me about suffer you i should probably change my windows. oh i'll have suffer for active my win 8 again
[Android Software/Hacking General [Developers Only]] rocketero:
I do appreciate your great effort to root BS. This is what I have done so far: I didn't run the installer, but I did first backed up my root.fs, prebundle.fs and initrd.img files.

Then I copy your root.fs and initrd.img to .../android folder. the system.fs I renamed it prebundle.fs just to accomodate it to the registry's BlockDevice/3 ..

I rebooted and all seems to work fine, all my installed apps work.

I have root access to / and also to /data (as I can see all folders/files inside, copy and delete items). But /system seems to be holding as RO. So the root of the file system (/) can be switched from RO to RW in Root_Explorer, though we know that one cannot place any files there as it will be deleted in the next reboot.

But ES_File_Explorer does not recognize root access to / and don't even list any files in /data. So I'm guessing here others apps that require root also could have some problem.

I copied a file to /data and after reboot it sticks.

Titanium Backup does recognize root as it shows in this screenshot I took:

​

Also Root Checker finds root:

​

Other apps that usually require Root Access I have tested and they work OK are:

ROM Manager

RAM Manager

ROM Toolbox

Lucky Patcher

I'm testing other apps that require root, and be reporting if they work or not.

PS. I'm using Windows 7 64bit.

So if /system can get fixed to be switchable RW/RO this would be great. Any advice on how to do it??
[Android Software/Hacking General [Developers Only]] shinobisoft:
@rocketero

As soon as I know or figure it out I will pass it on ;)

Sent from my LG-P509
[Android Software/Hacking General [Developers Only]] guantanamoSpa:
your root.fs causes bluestacks to hang in "loading" stage

You root.fs file causes bluestacks to hang in the initial "loading" stage.

I.e., the "loading" never goes away.

Is that a bug/issue/conflict or do you have a fix for it?

Thank you.
[Android Software/Hacking General [Developers Only]] rocketero:
why don't you follow the procedure I did, it's on this page, post# 422 and see if that helps.
[Android Software/Hacking General [Developers Only]] shinobisoft:
The only thing I can figure is version incompatibility. My rooted version is 0.7.5.2700. It was downloaded, installed, and rooted on October 3rd.

According to a couple other posts, the BS team changed their filesystem layout starting with 0.7.4.

This is a work in progress. If you used my installer, it backed up your original Root.fs to ProgramData/BlueStacks/backup. Stop BlueStacks via its tray icon. Copy originals back to ProgramData/BlueStacks/Android. Open regedit.exe and go to HKEY_LOCAL_MACHINE/SOFTWARE/BlueStacks/Guests/Android/BlockDevice/3 and change key "Path" to the value in "Path.orig". Close regedit and restart BlueStacks.

Sent from my LG-P509
[Android Software/Hacking General [Developers Only]] briareos200:
Heya so if I wana undo the root I just copy back over with the backup files that your installer made right? also does anyone know if there is an app that will automate things. I have a game where I need to grind and it's just the same exact clicks over and over without fail is there some way to automate that so I can just go away and do something else for an hour? Also anyway to force speedup apps?
[Android Software/Hacking General [Developers Only]] shinobisoft:
That is correct ;) With the exception of editing the registry as well. Refer to post #426 for info on where to go in the registry.
[Android Software/Hacking General [Developers Only]] codelover:
No worries :) should have noted you are using Win8 as your version code is 6002. Well, doesnt worth to change os just because of a buggy prog.

Btw just now re-checked your log and noticed the msi exited after RemoveExistingProducts failed when a reg required is missing:

I believe the above reg provide info for current setup to find the previous installer/uninstaller, hereby attaching my registry export for above sections for your reference, you may need to change PackageName to your MSI filename.

Well, just incase you still have mood for another try, who knows a miracle would happen... ignore this if you have decided to change os anyway.
[Android Software/Hacking General [Developers Only]] rocketero:
I got another screenshot this time of root checker pro with a few more details.

Also the busybox in /system/xbin is version 1.16.2, it would be great if instead we could replace it for version 1.20.2 for Android

​
[Android Software/Hacking General [Developers Only]] rocketero:
Ok, I've been struggling with busybox. What I'm trying to do, now that I have root rights to /data (by the way I'm not sure if we had root rights to /data before I replaced root.fs, does anyone know ??).

I have busybox 1.16.2 in /system/xbin.

But there is a very new busybox v1.20.2 for android, standalone, and it works in my Android tablet,

but when I copy this busybox 1.20.2 to a folder /data/bin and try to run it locally (./busybox), it gives me this error:

sh: ./busybox: not executable: magic 7F45

anyway to fix this and make it executable in bluestacks??

I chmod it 0755 and chown it root:shell and still not luck.
[Android Software/Hacking General [Developers Only]] shinobisoft:
I may be able to do it if I go thru the rooting process again, adding busybox and such as I go. I have a couple other projects in the works also, which I've put off to write the BlueStacks Root Installer.

For those interested, I'm running Windows 7 64 bit but can boot, not dual boot, into Ubuntu with an application called Wubi. Check it out. This is how I was ultimately able to edit the Root.fs as described by merrickville.
[Android Software/Hacking General [Developers Only]] .Bambino:
I used this on my one computer. Tried to use it on my laptop since my desktop visual is messed up maybe a a video card but anyway on my laptop it said I need to download SP2 for Vista but every time I try it download it I get an error. This has nothing really to do with the thread but wanted to share lol
[Android Software/Hacking General [Developers Only]] mammadkhata:
thanks really thanks you are so genius. now i successed to remove. and install the other versions but i have a new problem with my win8. there is no driver of graphic for this windows yet. with this cause i can't install BS 0.7.5. but no problem with previous versions.

here is install log in C:\Program Files (x86)\BlueStacks

http://www.textswell.com/read,4208693300548

and another log here C:\Users\Mohammad\AppData\Local\Temp

http://textuploader.com/?p=6&id=7gaQG
[Android Software/Hacking General [Developers Only]] codelover:
For your info, you don't have 'root' rights to your /data before your replace Root.fs, infact you dont have it until you type su with the replaced version of su.

As for busybox, that's because the busybox version is ARM version, you need to use x86 version, just like the su need su.x86. well you could just compile your own with the source code or find one x86 version precompiled, and for your information, most of the tools in /system/sbin/ are symlinks to the original busybox 1.16, and others version of busybox might not have the same sets of utils/functions built into it. Unless you need specific tool in the newer version of busybox, otherwise the current version works just fine.

Thanks

---------- Post added at 04:31 PM ---------- Previous post was at 04:02 PM ----------

Are you having problem to download or install the SP2? if download why don't you use download manager to download?

X86: http://goo.gl/ugLq (348 Mb)

X64: http://goo.gl/6XK6c (577 Mb)

---------- Post added at 04:42 PM ---------- Previous post was at 04:31 PM ----------

Glad to hear that it works atleast with older version, your log didn't provide enough info to know the problem other than the GL has failed.
[Android Software/Hacking General [Developers Only]] Zoltan-X:
Hi folks

I read this thread and others but can't find a solution for my rooted bluestacks 0.7.5. ... to use AdAway.

AdAway requires root permissions and so far it's running but it also requires rw access to /system/etc/hosts to replace it - this is where it fails.

Has someone a clue on how to make /system/... rw instead of ro? Would like to have AdAway fully working.

I tryed around with adb and adb shell but i didn't succeded with. I looked at registry but also no usefull result.

Would be nice if there would be a hack for rw to /system (Data.Sparsefs).

Thanks in advance ...
[Android Software/Hacking General [Developers Only]] codelover:
/system is not in Data.sparsefs anyway, it's now Root.fs > system.img if you are using the rooted Root.fs.

You can read my previous post #397, perhaps you can find some clue.

Thanks.
[Android Software/Hacking General [Developers Only]] rocketero:
Thanks for the very detailed explanation why ./busybox was not executable (magic 7F45 error), that sort things out and we can move forward.

I have created a Root.fs (by following the great instructions from merrickville here, by the way you have a small error or typo in: chmod 0:2000 /b/root/android/system.img. it should read: chown 0:2000 /b/root/android/system.img):, is basically the same as @weckel created, just that I replaced busybox-1.16.2 with busybox-1.18.2, also placed superuser.apk in /system/app as there was none there, and change symlink in /system/bin for mount to be managed with busybox (I placed also a copy of busybox_v1-18.4 in /system/bin).

As you pointed out, there is not need of system.fs as @weckel has it, I did mounted this file (@weckel system.fs') and it's basically the same system.img so there is not need to have it in both places; in Root.fs and also loading in registry Blockdevice-3.

I also did resize system.img to 500MB as it was only 7MB left in /system, here are my instructions on how to resize system.img before placing it into Root.fs: http://xdaforums.com/showpost.php?p=24550259&postcount=132

The Root.fs I created with the regular system.img size (156MB and only 7MB free in /system)

And the other Root.fs,with the system.img resized to 500MB (and around 365MB free in /system)

One NOTE on the resized system.img to 500MB: Even that the final size is 500MB, the packed Root.fs that contains this system.img is still around 156MB in size (Root.fs, not system.img) so it looks like the same size as the one with system.img 156MB in size but it's NOT, and the download will take almost the same time, and once one boot with it, the /system partition shows 519MB in size and around 365MB free

So here is the results: A Semi-Rooted (as /system is still RO) Bluestacks, with su, superuser, busybox1.18.4, with a re-sized SDcard to 8GB, and re-sized /system partition to 500MB:

One note on how to place a re-sized SDcard, it's by installing first Bluestacks v.07.3.x as this still uses data.fs and sdcard.fs instead of the newer sparsefs FS, and then upgrading to 0.7.5.2700, that way your re-sized SDcard (as for instructions here: http://xdaforums.com/showpost.php?p=18432723&postcount=33)

So with my method, is simply as replacing the Root.fs on c:\programdata\bluestacks\android and boot with it. (Don't forget to back it up first).

​

I would like someone with more knowledge, @codelover, @tenet420, @weckel, @shubhkirti1997, and maybe others, to digg into how to make /system RW ??
[Android Software/Hacking General [Developers Only]] shinobisoft:
I was just looking at all of this again. Strange too, was reviewing merrickville's method and was wondering myself why I needed to put system.img back into Root.fs since it was getting mounted anyways. Kool, so I'll remove it then.

@rocketero

Can we not just create a completely new system.img with mkfs.ext4 or mkfs.ext4dev and simply place the files from the existing system.img into the new one? Had to ask cause I'm not sure. Just a theory.
[Android Software/Hacking General [Developers Only]] codelover:
Hey, the answer has already been given long ago!

Think! Think! and Think! when does /dev/sda get mounted? Well, it's initrd.img! /dev/sda1 got mounted by 'init' script as ro by default,

so actually all need to do is change 1 byte only in the script with the default unmodified initrd.img! I repeat 1 byte only don't bother others part of the script, then you'll have a writable /system...

Happy trying!

---------- Post added at 03:42 AM ---------- Previous post was at 03:36 AM ----------

It's possible but not easy as you will have to set the proper permissions & ownership for ALL the files & dir, not to mention some hidden ACL, socket file, etc... and simple cp +preserve might not be enough
[Android Software/Hacking General [Developers Only]] rocketero:
seems like @codelover's suggestion is the way to go to make /system RW, but still digging on how to edit init.rc (initrd.img) After finding how to edit initrd.img (merryckville did edited somehow but his edited initrd.img doesn't do much to fix this issue), then we have to find out what to edit in init.rc (extracted from initrd.img)
[Android Software/Hacking General [Developers Only]] merrickville:
system.img does not need to be in Root.fs if you are mounting it using the method I posted earlier. But, it's just 'less work' to leave it in there. ;)

The trick to editing initrd.img is this (in Linux), or install cygwin in windows, and do the following steps...

put initrd.img /tmp

mkdir /tmp/init
cd /tmp/init
gunzip -c /tmp/initrd.img | cpio -im
[COLOR="Red"]vi init[/COLOR] [Edit: corrected, no .rc on the file name]
cd /tmp/init
find . | cpio -H newc -o | gzip -9 > /tmp/initrd-new.img
[Android Software/Hacking General [Developers Only]] codelover:
Perhaps something you see below will make your life easier ;)
[Android Software/Hacking General [Developers Only]] merrickville:
I did not have access to /data before putting the su.x86 binary into /system/xbin.
[Android Software/Hacking General [Developers Only]] rocketero:
I'll check that in a little while, din't sleep much yesterday resizing system.img and checking the Root.fs contents as this was long ago that I did it and had to re-read the procedure.