[Samsung Galaxy S5 Neo Guides, News, & Discussion] WILMANS2M:
MAKE YOUR OWN CUSTOM ROM

Some remarks from [MENTION=4435346]LastStandingDroid[/MENTION]

- Using a modified recovery

- Using a decompress system file

How to proceed :

1/ First is to download a firwmare image from sammobile for our phone.

2/ You will need to decompress the file.Then you have access to system.img but you currently cannot decompress it (well you can but file properties will be different). Download this and decompress it anywhere. But the "system.img" in this folder and launch sparsechunk2img.bat.

You will now have a systemfix.img. Download and install DiskInternals linux reader.

3/ Once done, create an "IMG" folder on your PC and a "system" folder in it. Open Linux Reader, select "open'" and choose your "systemfix.img". On the right select all files, make a right click and select "save" and choose to save in the created "system" folder before.

4/ Time to use the deodex tool from [MENTION=6242674]svadev[/MENTION]. Decompress and put it in a empty folder (ex: C:\NEODEX) and launch SVADeodexerForArt.exe. Choose the "system" folder created before and tick all 3 boxes and wait till deodexing's completed. Now you have in C:\NEODEX all deodexed files which are in app, framework and priv-app folder. You can now replace original folders with those from NEODEX folder.

5/ You will have now a deodexed rom

6/ Time to make the zip file....

....to be continue

- Using an image instead of just put all files in a zip.

How to proceed :

1/ As we need to dump from phone, it is better to begin with clean system. So install latest official firmware and make a factory reset (save all needed file before as sdcard will be formatted). (see howto above)

2/ Use Chainfire Autoroot to root the system (see howto above)

3/ Install TWRP Recovery (see howto above)

4/ Now you will have the latest firmware rooted and a custom recovery. Time to remove bloatware and applications not needed using "Debloater".

As our Galaxy S5 Neo is not able to enable "block mode" when using "Debloater", you can just select "remove". You can refer to the list of removable apps/bloatware at the end of the thread.

5/ You have now a debloated, rooted rom. But odexed.

If you want to remain odexed, time to build img so go to "point 13"

. If not, see below.

6/ To have deodexed files, you first need to decompress the tar downloaded file. Then you have access to system.img but you currently cannot decompress it (well you can but file properties will be different). Download this and decompress it anywhere. But the "system.img" in this folder and launch sparsechunk2img.bat.

You will now have a systemfix.img. Download and install DiskInternals linux reader. Once done, create an "IMG" folder on your PC and a "system" folder in it. Open Linux Reader, select "open'" and choose your "systemfix.img". On the right select folder "app", "framework", "priv-app" and build.prop file. Select "save" and choose to save in a the created "system" folder before. You need to move the build.prop file from "system' folder to the "img" folder. (here is the structure : IMG/System/App, Framework & priv-app folder)

7/ Time to use the deodex tool from [MENTION=6242674]svadev[/MENTION]. Decompress and put it in a empty folder (ex: C:\NEODEX) and launch SVADeodexerForArt.exe. Choose the "system" folder created before and tick all 3 boxes and wait till deodexing's completed. Create a "system'" folder there and put the deodex "app,framework, priv-app" folder in it. (Structure : NEODEX/System/App, framework & priv-app)

9/ Power off you phone. Go into recovery mode (push and maintain volume up, menu & power button).

10/ Once TWRP Recovery activated, on PC, maintain "Right Shift" & make a "Right Click". Select "open command prompt".

11/ Type :

adb devices (to see if your phone is well connected)

adb remount

adb shell

cd system

rm -rf app

rm -rf framework

rm -rf priv-app

Exit

adb push c:/neodex/system /system/

12/ Wait till it is finished. Then type "reboot". Now you have a debloated, deodexed, rooted rom.

13/ Time to build your system.img. Again go into recovery mode (Push & maintain Volume up, menu & power button).

On your desktop, maintain "Right Shift" & make a "Right Click" then select "Open Command Prompt" and type :

adb shell

su

dd if=/dev/block/platform/13540000.dwmmc0/by-name/SYSTEM of=/sdcard/system.img

14/ Once done, type "reboot". Then copy this system.img on your PC.

Download this script (thanks [MENTION=4435346]LastStandingDroid[/MENTION]).

Extract it on your PC and put the "system.img" in the decompress folder. Recompress it in a zip file and copy it on your sdcard.

Done. Happy flash !

- Method by LastStandingDroid

Tips:

1/ How to revoke stupid lag issues in some apps (Thanks to [MENTION=4435346]LastStandingDroid[/MENTION]):

- open start manager > battery > detail and de select the items you want to stop being optimized.

(this is similar to doze mode on 6.0 if not implemented it early)

- Remember to disable DWFS or what it's called the Samsung bs performance booster for some minutes until we reduce performance

2/

LIST OF BLOATWARE/APPS REMOVABLE

- Container, preloadedkiosk, preloadedsso folders

- In System/App

AllshareFileShare, AllshareFileShareClient, AllshareFileShareServer, AllshareMediaShare

AntHalService, ANTPlusPlugins, ANTPlusTest, ANTRadioService

BBCAgent

BeaconManager_20

Bridge

ChocoEUKor

Chrome

ChromeCustomizations

CoolEUKor

Drive

ELMAgent

GalaxyAppsWidget_Phone_EssentialsOnly

GearManagerStub

Gmail2

Hangouts

KnoxAttestationAgent

KnoxFolderContainer

KnoxSetupWizardClient

Maps

MobilePrintSvc_Samsung

MSSkype_stub

Music2

OneDrive_Samsung

OneNote

Photos

QuickConnect_20

RCPComponents

RoseEUKor

SCONE_Android_ProxyService_Lib

SPrintSpoolerLMR1

STalkback

SwitchKnoxI

SwitchKnoxII

Videos

Youtube

- In System/priv-app

Excel_SamsungStub

GalaxyApps_3xh

HealthService

Kies

KLMSAgent

PhotoStudio_WQHD_Zero

PowerPoint_SamsungStub

sCloudBackupAppZero

sCloudDataRelay

sCloudDataSyncZero

sCloudSyncMemo

SFinder_L

SHealth4_3

SNoteProvider

SPDClient

SPPPushClient_Prod

S-Voice_Android_phone

Word_SamsungStub

....