[Galaxy Grand Prime General] Dante Enoshima:
Hey guys, i just guessing some people out there didn't want to use custom rom because, of course, BUGS, so they stay with stock.

But they also complains about limitations of stock, which is the stock is odexed, knox-enabled, and a lot of useless apps. But don't worry, i'll give you guys a guide to deodex, root, remove knox, and debloat your stock rom.

Requirements:

Put it in your PC

ODIN

TWRP

Your firmware for your baseband

Lordroid Batch Deodexer

Ext4Unpacker

Put it in your phone's external SD card [ Do this first ]

Deodexed flashable zip ( you will put it after you deodex your firmware at your PC )

Knox-Free Script

Titanium Backup Pro [ You'll use this app for debloat ]

Material Emulator [ it's terminal emulator ][ For extra guide ]

[ For Testing ] S7 SystemUI Mod

SuperSU flashable zip

BusyBox flashable zip

Extra :

Xposed Installer

Xposed Framework

Ok, let's get started.:cool:

First Guide, Create a Deodexed flashable zip:

Using winrar/any compressed file manager, extract your system.img.ext4 from your firmware

Create a folder named system, then open your ext4unpacker, browse where did you put the system.img.ext4, and extract app folder, framework folder, priv-app folder, and build.prop from system.img.ext4 to system folder

Now open Lordroid Batch Deodexed, tick zipalign and resign APK, and browse your system folder

It'll ask you how many the task should be executed at once, choose 2

It'll take a while, just relax and do something else while waiting

After it's done, click create flashable zip and name your deodexed flashable zip

you'll get your flashable zip at your Deodexer tool folder/ flashable_zips_out

Now put it in your phone, and make sure the rest of second part of requirements are inside your external SD card

Second guide, let's do all of them at once!!!! :

Power off your phone, open ODIN first and reboot your phone to download mode [ Press volume down+Home+Power, after that there will be a warning, press volume up]

Flash your firmware, after flashing done, an android logo appears for applying changes, when it still appears, press volume up+home+power quickly for entering stock recovery mode

after stock recovery entered, choose wipe data and cache partition

choose power down, then enter download mode again

with odin, flash twrp, and enter recovery mode as soon as possible as the flashing is quickly done

you'll be in twrp recovery, for now just reboot to system [IMPORTANT = Don't flash anything yet or get ready for some bootloop on your phone]

Do the first setup, and after that turn off your phone and enter recovery mode again

Now, flash all the flashable zip : order : deodexed flashable zip > [optional=if you decided to install it] ,knox free script, xposed framework, ,busybox, supersu, S7 SystemUI

Now reboot, and sit back and let the magic of deodex doing it.

after your homescreen showed up, congrats, 2/3 part of this guide is completed!!!!!

And.... the last guide is debloat your rom:cool:

Install Titanium Backup Pro, Xposed Installer [ if you decided to install xposed ], and Material Emulator

Open Titanium Backup Pro, and give it root permission

Uninstall these apps ( you can add more if you want ) : Drive, Books, Kiosk, Play Music, Google+, Hangouts, Galaxy Apps, S Lime, Galaxy Gift and Smart Manager

Reboot, and congratulations, you've done all the main guide!! Time for the Extra Guide!!!

Extra Guide: Make your SELinux permissive permanently ( useful if you wanna use any Sound Mods )

Open Material Emulator, type su , and give the root permission

Now do this commands per line:

mount -o remount,rw /system

mkdir /system/su.d [ if you find error : su.d already exists, just ignore it ]

echo "#!/system/bin/sh" > /system/su.d/permissive.sh

echo "setenforce 0" > /system/su.d/permissive.sh

echo "0" > /sys/fs/selinux/enforce

chmod 755 /system/su.d/permissive.sh

After you done with it , go to settings > about to see if you have done it right

If it's permissive , then voila!!! you've done all the guides with a big success!!!

Download Links [Zips only, you can search the apks on Google]:

Knox Free Script : https://www.androidfilehost.com/?fid=24052804347792751

SuperSU : http://download.chainfire.eu/999/SuperSU/BETA-SuperSU-v2.77-20160827190633.zip

BusyBox : https://filescdn.com/cqxezkyyc8qr

TWRP : https://filescdn.com/m37eo75ol0b2

Ext4Unpacker: https://filescdn.com/noefidrz00nq

Lordroid Batch Deodexer: https://filescdn.com/qjpm1u4rff9n

Xposed Framework : https://filescdn.com/gbu6e8r2co2n

ODIN : https://filescdn.com/oz8iaxilvzac

S7 SystemUI : https://drive.google.com/file/d/0B0AGKxXT-aJwSGc3a19SXzlnQzQ/view?usp=sharing

:good: Big Thanks to :

TEKHD, Cherniavsky94w, Chainfire , osmOsis, [Has.007, rovo89, dkcldark, and arter97], Fahd95, and lord-ralf-adolf. :cool: