Remove All Ads from XDA

[Guide/Tutorial] Samsung Galaxy S4 i9505 Any version to Android 7.1 Nougat

363 posts
Thanks Meter: 258
By djibe89, Senior Member on 12th December 2016, 10:46 AM
Post Reply Email Thread
[Guide/tutorial] Samsung Galaxy S4 i9505 Any version to Android 8.1 Oreo
[Guide/tutorial] Samsung Galaxy S4 International i9505/jfltexx Any version to Android 8.1 Oreo/Lineage OS 15.1

This detailed step-by-step guide helps you transform your Samsung Galaxy S4 i9505 to a powerful one with Android 8.1 Oreo.
Verify your phone is i9505 before going further : when you Power on phone, it is written Galaxy S4 i9505.

v4. Moved to Android 8.1 Oreo
v3. Propose Android 8 or 9, latest Odin in pack + TWRP 3.2.3-0, tweaked OpenGapps download link
v2. Android 7.1, Google Play authentification, TWRP 3.2.1-0
v1. Android 6, pack v1


- djibe Galaxy S4 i9505 pack v2 updated :
(contains Samsung Odin 3.07 flash tool + Samsung USB drivers + recovery TWRP 3.2.3-0 + root ( + deviceID.apk app).
Unzip files.

+ ROM Lineage OS 15.1 unofficial for i9505 :
(more info

Or try: Android 9.0 Pie/Lineage OS 16

+ OpenGApps ARM 8.1 pico :

+ a microSD card (FAT32 format)

+ Charge phone to 100 %

Copy ROM, GApps, addonsu, deviceID.apk on the microSD card.
Inseert it in phone.

Install Samsung drivers (you unzipped earlier).
Then plug phone to PC in File transfer mode.
Collect all .jpg or .mp4

use an app like Backupyourmobile to backup texts, contacts, etc.
Check that backup is located on microSD card.
Then copy the backup on your PC.

Shut down phone.
Boot in Download Mode : hold Home + Power + Volume- for 3 seconds and release.
Confirm with Volume+.
Connect phone in USB, wait for bootloader drivers installation in Windows.
Then launch Odin.exe (you unzipped) and wait for Odin indicator ID:COM to become blue.
In options: Verify re-partition and Auto Reboot are NOT tickeded while F. Reset Time is ticked.
In Files -> PDA -> select twrp-3.2.3-0-jfltexx.img.tar (from my pack)
### Warranty is now Void ###
Click Start.
Power Off phone after green success message appears.

F2FS is the fastest filesystem for read and write partitions on flash memories. Compared to EXT4, gain is from 15 to 280 %.
No need to format the /System partition because it is Read only and Ext4 is still faster.

Boot in Recovery Mode : Hold Home + Power + Volume+ for 4 seconds, release and wait a few seconds for TWRP recovery to boot.
If it asks for Keep System Read Only ? -> Swipe to Allow Modifications.
Go to Wipe -> Advanced wipe,
select Dalvik, Cache, System, Data, Internal Storage (if you really made a backup from step 2), then Swipe to Wipe,
then back.

Still under Advanced Wipe menu, select the /Cache partition and tap Repair or Change File System -> Change File System and select F2FS.
Confirm with a Swipe to Change.
Then back, back, back to Advanced Wipe Menu again.

Repeat this step to format to F2FS the /Data partition.

Go back to TWRP Home menu. Then tap on Install -> choose Lineage*.zip,
(if you don't see the files, tap on Select Storage and make sure Micro SDCard is active).
then Add more Zips -> addonsu*.zip,
then Add more Zips ->,
then Swipe to confirm Flash.
Wait for operation to end.
Then tap Wipe cache/dalvik, swipe to confirm,
then Reboot System.
Wait for the phone to boot during 10 minutes.

Once in Android, open the Settings menu, select "About Phone".
Tap on the "Build number" entry seven times. You should be notified, that the Developer settings are now active.
Open the developer settings menu (located in the Android settings menu), check that Root access is on for Apps+ADB

In Google Play Store, download App Battery Calibration (from IMobS Ltd).
Launch the App.
Confirm root acces.
Plug tab and wait till charge hits 100%, then hit BATTERY CALIBRATION and unplug it.

9 ) GPS Fix
If your time to fix GPS is too long, use the GPS Satus and Toolbox app from the Play Store.

Google now restricts Google Play and Google apps access to certificated devices. Since you have a custom ROM, you are banned.
We now need to subscribe for the Google Play Certification.

In Android, go to Settings -> Security and activate the Unknow sources
Now use the built-in File explorer app to navigate to your micorSD card, and tap on the deviceID.apk file you copied earlier.
Install it, launch it.
Tap on the Google Service Framework (GSF) line, then tap on the COPY button.

In your Android webbrowser, go to :
Connect to Google using your Google/Android account.
In the input field of the page, paste the 16 digits code.
Click on the Save button, a success message confirms your device is Certified.

Do I need to re-certify it ?
"Your device’s GSF ID is reset every time your device is factory reset (or when you wipe the GSF app itself) since it is stored in your data partition, so you must re-register your GSF ID every time you perform either of these actions."
More info here :

That's it.


Thanks: LineageOS team, TWRP team, OpenGapps team, @ripee, @Exodusnick, @0LDST4R, @AnnoDomini1993, @Buff99 and many others
16th April 2018, 12:49 PM |#2  
OP Senior Member
Thanks Meter: 258
New version : Google Play certification, Android 7.1, enhenced pack for easier flash.
22nd June 2018, 02:50 PM |#3  
OP Senior Member
Thanks Meter: 258
Is Lineage OS 15 stable enough to recommend it in my tutorial ?
15th August 2018, 10:51 PM |#4  
Thanks Meter: 13
Hi can I move apps to SD card without apps2sd or link2sd please?
20th August 2018, 07:01 PM |#5  
OP Senior Member
Thanks Meter: 258
Originally Posted by John D J

Hi can I move apps to SD card without apps2sd or link2sd please?

Hi, normally with Android 7.1, when you insert a SD card Android asks if you want to use the SDcard to extend internel memory (format is required)
15th December 2018, 11:56 PM |#6  
OP Senior Member
Thanks Meter: 258
Tutorial updated with latest sources available
22nd March 2019, 12:18 PM |#7  
OP Senior Member
Thanks Meter: 258
Tutorial updated for Android 8.1
Post Reply Subscribe to Thread

android 8.1.0 oreo, galaxy s4, i9505, jfltexx, tutorial how to

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes