[Miscellaneous Android Development] itsamti:
Few details on rooting and enabling play store, I added in SD referring this forum. Little clean version

--------------------------------------------------------------------

Can be rooted!

1) Make sure you're at a firmware like MJ3 or earlier. I tried on ML4 but it did not work on this one.

2) Download "saferoot" from the following link:

http://xdaforums.com/showthread.php?t=2565758

3) Then read the following post:

https://github.com/koush/Superuser/issues/196

and download the following supersu update:

http://download.clockworkmod.com/superuser/superuser.zip

4) Extract the newly downloadaed superuser.zip and find the su binary in armeabi folder and the superuser.apk in the root folder of the extracted zip file

5) Copy the new su binary and the superuser.apk to the files directory inside extracted saferoot directory. Replace the existing su and superuser.apk

6) Enable development mode and then usb debugging on Homesync

Enable development mode from Settings>About Device > Click on the Build number about several times until Development mode pops up, and then checked usb debugging box

Connect USB cable from your PC to microUSB on HomeSync, install Samsung_USB_Driver_for_Mobile_Phones (google it) so that the computer can connect to the HomeSync

7) run saferoot, let it do its job

go to saferoot folder on your PC, run the install.bat to begin rooted process.

Update : existing firmware MH8 is rootable too. below is the log

D:\Homesync\saferoot>install.bat
--- Samsung Galaxy S4 Android 4.3 Root ---
--- Based on the CVE-2013-6282 exploit by cubeundcube ---

[*] Testing adb usability

Plug in your phone and Press any key to continue . . .

[*] Waiting for your phone to appear
[*] Your phone is detected and ready for rooting.

[*] Sending files to your device...

[*] Starting rooting program.
ro.build.product=spcwifi
ro.build.id=JDQ39
search kallsyms...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
(kallsyms_addresses=c0604000)
(kallsyms_num_syms=0000d760)
kernel dump...
1 2 3 4 5 6 7 8 9

prepare_kernel_cred=c0051d10
commit_creds=c0051920
ptmx_fops=c0994888
ptmx_open=c022e40c
tty_init_dev=c0225f58
tty_release=c022611c
tty_fasync=c022502c
ptm_driver=00000000

Succeeded in getroot!
Remount success!
Copying files..
Done.. reboot to enable root!

[*] Checking if rooting succeeded
[*] Removing temporary files...

[*] Trying to disable Knox...
Unknown id: disable

[*] Rebooting... Please wait.
[*] Waiting for device to re-appear...

Wait until your phone reboots,then unlock it and Press any key to continue . . .

On your phone, open SuperSU and let it update if it asks.
When SuperSU is done updating, Press any key to continue . . .
On your phone, watch for the SuperSU permission popup and give
permission for ADB Shell to gain root permissions.

USAGE: sleep SECONDS
USAGE: sleep SECONDS
USAGE: sleep SECONDS
USAGE: sleep SECONDS
USAGE: sleep SECONDS
[*] Disabling Knox
Unknown id: disable
[*] Setting Permissions
unknown option -- o
Usage: su [options] [--] [-] [LOGIN] [--] [args...]

Options:
--daemon start the su daemon agent
-c, --command COMMAND pass COMMAND to the invoked shell
-h, --help display this help message and exit
-, -l, --login pretend the shell to be a login shell
-m, -p,
--preserve-environment do not change environment variables
-s, --shell SHELL use SHELL instead of the default /system/bin/sh
-u display the multiuser mode and exit
-v, --version display version number and exit
-V display version code and exit,
this is used almost exclusively by Superuser.apk

unknown option -- f
Usage: su [options] [--] [-] [LOGIN] [--] [args...]

Options:
--daemon start the su daemon agent
-c, --command COMMAND pass COMMAND to the invoked shell
-h, --help display this help message and exit
-, -l, --login pretend the shell to be a login shell
-m, -p,
--preserve-environment do not change environment variables
-s, --shell SHELL use SHELL instead of the default /system/bin/sh
-u display the multiuser mode and exit
-v, --version display version number and exit
-V display version code and exit,
this is used almost exclusively by Superuser.apk

unknown option -- f
Usage: su [options] [--] [-] [LOGIN] [--] [args...]

Options:
--daemon start the su daemon agent
-c, --command COMMAND pass COMMAND to the invoked shell
-h, --help display this help message and exit
-, -l, --login pretend the shell to be a login shell
-m, -p,
--preserve-environment do not change environment variables
-s, --shell SHELL use SHELL instead of the default /system/bin/sh
-u display the multiuser mode and exit
-v, --version display version number and exit
-V display version code and exit,
this is used almost exclusively by Superuser.apk

Usage: chmod [OPTION] <MODE> <FILE>
-R, --recursive change files and directories recursively
--help display this help and exit
Usage: chmod [OPTION] <MODE> <FILE>
-R, --recursive change files and directories recursively
--help display this help and exit
Usage: chmod [OPTION] <MODE> <FILE>
-R, --recursive change files and directories recursively
--help display this help and exit
Unknown id: /system/xbin/super
[*] Installing busybox
unknown option -- install
Usage: su [options] [--] [-] [LOGIN] [--] [args...]

Options:
--daemon start the su daemon agent
-c, --command COMMAND pass COMMAND to the invoked shell
-h, --help display this help message and exit
-, -l, --login pretend the shell to be a login shell
-m, -p,
--preserve-environment do not change environment variables
-s, --shell SHELL use SHELL instead of the default /system/bin/sh
-u display the multiuser mode and exit
-v, --version display version number and exit
-V display version code and exit,
this is used almost exclusively by Superuser.apk

unknown option -- o
Usage: su [options] [--] [-] [LOGIN] [--] [args...]

Options:
--daemon start the su daemon agent
-c, --command COMMAND pass COMMAND to the invoked shell
-h, --help display this help message and exit
-, -l, --login pretend the shell to be a login shell
-m, -p,
--preserve-environment do not change environment variables
-s, --shell SHELL use SHELL instead of the default /system/bin/sh
-u display the multiuser mode and exit
-v, --version display version number and exit
-V display version code and exit,
this is used almost exclusively by Superuser.apk

--- All Finished ---
Press any key to continue . . .

You can download any MJ3, such as the one from Turkey or Singapore, etc. Installing this with Odin will make you lose all what's inside the Homesync (including the 1TB drive content), so make sure to backup. (Thanks Fastguy)

http://www.sammobile.com/firmwares/1/?model=GT-B9150&pcode=XSP#firmware

ENABLING PLAY STORE

Note: You have to root first,

This is simplest method found and you dont need to edit build.prop. if this helps, consider donating app developer.

Steps:

1.Download Market helper from http://codekiem.com/market-helper/latest

2.Install and open

3.It will ask for root permissions, grant

4.Use settings as for nexus 7

5. Enable device on google dashboard

TA DAA.. you are all set.

If you reboot, you have to follow above steps again. Anyway this device supposed to be turn on all time (personal cloud) so this should not matter.

Full steps

http://codekiem.com/2013/02/13/market-helper/