[Android Software/Hacking General [Developers Only]] perry59:
I have considerable computer experience (windows), but almost zero Linux experience so please forgive me

if this question seems elementary. I wish to root bluestacks manually so that I do not need to rely on

very specific files or pre-modded files. That being said, this thread has been educational. Unfortunately

it is also HUGE and so some variations and discrepancies have crept in. I'm trying to compile my own

"sure fire" guide for manually rooting BS. To do so I am shamelessly plagerizing info from here (but not

without THANKS to all you hard working linux guru's who made this possible!) I have been focusing mostly

on this thread but there is something there which I find confusing, that is the process of copying Superuser,

su and busybox into BS. I am seeing two completely different sections of code which to the uninitiated

appear to be doing the same thing but by different methods.

The first method, using a linux terminal, is short and sweet.

This is how it reads...

B-II- SECOND ROOTING METHOD (Custom made rooted /system)

.

.

.

# 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

.

.

.

The second method is using ADB to connect to BS and inject the files into it.

It reads as follows...

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.

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

.

.

.

My question is, do not these two sections sections of code (in part B-II and part G) do the same thing?

I do notice that the first piece of code seems to do nothing in terms of file permissions.

Also, in the second code section (G) it is copying busybox into the sdcard, why? busybox was made part of superuser.apk

in the previous code section (B-II).

Is it necessary to do ALL of the above? If so, could someone briefly explain why?

Thanks for your patience!