[Galaxy S 4 i9505 Android Development] DjeMBeY:
Updates / DONORS List & How to make Pre-Rooted ROM's - GUIDE

07.06.2013

A little update...

I'm quite surprised and glad that so many of you are using files prepared for I9505 ONLY..

After first month my stats are as follow:

Downloads in total: 30000+!!!

- Hotfile: 5000+

- Dev-Host: 11000+

- Android Host: 14000+

- Torrent: ?????

Big THANKS to ALL DONORS!! Much appreciated!!

Click the button for full list

updated 11.07.2014

Special Thanks to [mention=42670086]timberwolf60*****[/mention] for his DONATIONS!! (from my other S4 Thread's as well)

BIG THANKS to each and everyone of you!!

=========================

28.04

Dimitri S.

=========================

04.03

Yevgen G.

=========================

02.03

soyelmango

=========================

27.01

Kostis A. - Modems Collection

=========================

07.12

Leonid B. - Guest on XDA

06.12

Brzina

05.12

Repulsa

Tornado System - Guest on XDA (Modems Thread)

Mittaa

Emil S. - Guest on XDA

=====

26.11

Arie M. - Guest on XDA

24.11

Sergio114

03.11

deanone**

============

24.10

Christian M.

22.10

jisharka

loth77

19.10

Brendo

bokbacken**

18.10

bruzski

mihai marius

Dwire

john0699

Diomorgan

PeterParker

sirbilbo

timberwolf60*****

assanches

Bizzy_B

15.10

timberwolf60*****

bokbacken**

Luigi M. - Guest on XDA

14.10

lmerega

Daniel T. - Guest on XDA

13.10

Massimo G. - Guest on XDA

===============

17.09

exobit**

===============

26.08

Extra Large Srl

04.08

AF85

==========

31.07

oparysh

26.07

Leejay1953

25.07

guest on XDA - Jos De C.

22.07

MatuAC**

20.07

D4rKlar

01.07

blakamin

timberwolf60****

MercurioCarldera

====

29.06

iron@ss

28.06

narse

malybru

26.06

guest on XDA - Bonikane C.

25.06

Microcut

Failofax**

Syncio

24.06

MatuAC**

guest on XDA - Maik B.

23.06

guest on XDA - Goran K.

markeph

22.06

guest on XDA - Darko / Slovenia

21.06

guest on XDA - Eugen L.**

20.06

highlite86

19.06

nitr8

Magic_Knight

bippo**

17.06

Duff166

14.06

guest on XDA - Doga I.

guest on XDA - Julio Pastor C.

13.06

dekker86

10.06

Failofax**

guest on XDA - Graham M.

09.06

moro30

bippo**

guest on XDA - Hugh H.

deanone**

08.06

Butterfly11

andyjg247

fstorm

squa

07.06

teded

freak.hh

Shocky2

gob

Geggan

06.06

wolek76

ionio-zante

guest on XDA - Remi B.

guest on XDA - Eugen L.**

05.06

garshhh

====

31.05

Ron-ski

30.05

Dokan1

jona196313

guest on XDA - Mladen G.

berju

MariozPOC

29.05

guest on XDA - Kevin B.

25.05

oxb

18.05

guest on XDA - Karl R.

15.05

Fishweb74

14.05

weasle1uk

11.05

jomansch

06.05

guest on XDA - Werner S.

exobit**

05.05

scary_master

04.05

floydart

* Multiple Donations, more Stars = more Donations

17.06.2013

Big THANKS to All of you for support!! It mean a lot to me and it's really appreciated!!

I've checked few stats from XDA and I'm over the moon :)

Most viewed THREAD for Galaxy S4 (I9500/I9505):

1. Indie's OMEGA ROM - 405k+

2. DjeMBeY's Pre-Rooted ROM - 249k+

3. Chainfire's CF-AR - 237k+

Most THANKED single post:

1. Chainfire's CF-AR - 366

2. DjeMBeY's Pre-Rooted ROM - 279

3. DjeMBeY's HOW TO ROOT Guide - 239

Thanks again and enjoy!!
​

Guide for Pre-Rooted ROM's (applicable to many Samsung devices):

You need Linux OS (Ubuntu 32/64 Bit) for Pre-Rooting Process:​

Preparation:

1. Create a working folder, for example pre-rooted, download and extract THIS (64 Bit) file and copy/paste (simg2img & ext2simg) into working folder.

2. Download SuperSu.zip from Chainfire's thread and extract all files to new folder, for example "root files". Copy/paste this folder into working folder.

3. Download any Samsung FW and extract it. You'll have a single file xxxxxxxxx.tar.md5, extract it again to new folder (keep name of the folder same as name of your FW, xxxxxxxx , it makes things easier to work with).

4. Go to the new folder and check if all files are there (5-10 files), look for system.img.ext4. If everything is there, copy/paste whole folder xxxxxxxx to your working folder /pre-rooted

5. Move system.img.ext4 directly to the working folder: /pre-rooted/system.img.ext4.

At this point, you should have following files/folders in working folder:

/pre-rooted/system.img.ext4

/pre-rooted/ext2simg

/pre-rooted/simg2img

/pre-rooted/xxxxxxx (folder with your FW)

/pre-rooted/root files (folder with extracted files from SuperSU.zip)

Pre-Rooting process:

Open Terminal and navigate to the pre-rooted folder, for example: cd /home/*username*/pre-rooted.

Step 1:

Convert system.img.ext4 into a raw system partition that can be mounted under Linux as r/w partition - system.img.raw

Type in Terminal and press Enter:

./simg2img system.img.ext4 system.img.raw

and wait until the process is finished, it takes few minutes....

Step 2:

Mount converted partition under Linux:

Type in Terminal and press Enter:

mount -t ext4 -o loop system.img.raw /mnt

Use any File Manager or just navigate to /mnt/.... and there you have full access to the system files.

Step 3:

Copy/paste or delete any files you want from/to system, for example root files:

Superuser.apk -> /mnt/app/Superuser.apk

su (binary) -> /mnt/xbin/su

daemonsu (binary) -> /mnt/xbin/daemonsu

.su (binary) -> /mnt/bin/.ext/.su

recovery.sh -> /mnt/etc/install-recovery.sh

libdummy.so -> /mnt/lib/libdummy.so (extra file, can work without it)

Step 4:

Setting up permissions.

Use Terminal, type and press Enter after each line:

chmod 06755 /mnt/xbin/su
chmod 06755 /mnt/bin/.ext/.su
chmod 0755 /mnt/xbin/daemonsu
chmod 0755 /mnt/etc/install-recovery.sh
chmod 0644 /mnt/app/Superuser.apk
chmod 0644 /mnt/lib/libdummy.so

Step 5:

Setting up SELinux markers (for JB 4.3 onwards).

Use Terminal, type and press Enter after each line:

chown root.root /mnt/app/*
chcon u:object_r:system_file:s0 /mnt/app/*

Step 6:

Rebuilding system partition back into system_new.img.ext4.

Use Terminal, type and press Enter

./ext2simg -v ./system.img.raw ./system_new.img.ext4

Partition size will be automatically adjusted, according to the size of system.img.raw (it takes few minutes to finish)

Now, just copy/paste system_new.img.ext4 to your FW folder - xxxxxxx - and rename it back to system.img.ext4.

Repacking all files back to new_xxxxxxx.tar.md5:

1. Use Terminal and navigate to your FW folder: /pre-rooted/xxxxxxx

2. Packing it all up:

Use Terminal, type and press Enter:

tar -H ustar -c aboot.mbn boot.img cache.img.ext4 hidden.img.ext4 modem.bin NON-HLOS.bin recovery.img rpm.mbn sbl1.mbn sbl2.mbn sbl3.mbn system.img.ext4 tz.mbn > I9505XXXXXXXX-PRE-ROOTED.tar

this is example of complete FW for GT-I9505, all files (bootloaders, modems, etc..) are listed and included. Check your FW folder for correct list of files from your FW.

3. Generating and adding .md5 checksum:

Use Terminal, type and press Enter after each line:

md5sum -t I9505XXXXXX-PRE-ROOTED.tar >> I9505XXXXXXX-PRE-ROOTED.tar
mv I9505XXXXXXX-PRE-ROOTED.tar I9505XXXXXXX-PRE-ROOTED.tar.md5

That's it!! All done, you can now use Odin and flash your new, pre-rooted FW.
​

NOTE: Make sure that you have Original FW on your HDD, just in case if your new FW won't boot up! :p​