Samsung S6 G920F custom rom

Costas

Administrator
Staff member
video guide - How To Root Any Samsung Phone

enter to recovery mode1 = adb reboot recovery
enter to recovery mode2 = the device is turned off > press&hold > VOLUME_UP + Home + Power
enter to download mode1 = adb reboot download
enter to download mode2 = the device is turned off > press&hold > VOLUME_DOWN + Home + Power
exit from download mode = VOLUME_DOWN + Power (5sec)



Most trustful ROM at the moment is

(2020) - enesuzun2002-UNOFFICIAL LineageOS 17.1 (ref)
(2021-2022) - enesuzun2002-UNOFFICIAL LineageOS 18.1 (ref)

download :
https://github.com/enesuzun2002/lineageos-ota/releases

Follow djibe89 guide here (contains also an archive with the needed)
🌈 https://forum.xda-developers.com/galaxy-s6/general/guide-tutorial-howto-samsung-galaxy-s6-t4108425

extensive TWPR tutorial by authors
https://twrp.me/samsung/samsunggalaxys6.html

OpenGApps comparison
https://github.com/opengapps/opengapps/wiki/Package-Comparison

🌈 (2022) - Download And Install AOSP Android 11 for Samsung Galaxy S6 (ref)



other ROMs declared by the users unsafe for functionalities (echo on call, bluetooth not working etc.)



as 2020 :

Lineage has problems to run with NetGuard. NetGuard doesnt have any bug run on Android v10. Tickets raised :


NetGuard author, replied :
Some Android versions, including LineageOS for some devices, contain a bug resulting in all internet traffic being blocked. Mostly, you can workaround this bug by enabling filtering in NetGuard's Advanced options. If this doesn't solve the issue, the problem can unfortunately not be fixed or worked around by NetGuard. src


Filter Traffic option doesnt do anything.. :(

more from NetGuard author
https://github.com/M66B/NetGuard/blob/master/FAQ.md#user-content-faq51

as 2021 :

I know for sure that Netguard is working on LOS18.1 again as I use it myself. source




Restore to stock ROM

flash with Odin, as described​
or​
if you stack on boot loop, the solution HOME+VOLUMEUP+POWER not worked, put the phone on download mode, inject TWRP with Odin, Wipe Cache + Data...​
Reflash the firmware..!! Is working.​




Remove bloatware from stock ROM

Either with Magisk or Titanium Backup, if Titanium doesnt requesting write access to storage, do it manually, otherwise crashes.




When on stock rom , root to get Wifi Passwords

download for all samsung models
https://autoroot.chainfire.eu/


updated version of^
https://desktop.firmware.mobi/device:403/firmware:19686

Busybox needed to downloaded and installed by SU. All be done interactively once you go to grant permission to an app.

Wifi passwords stored at :
data\misc\wifi\wpa_supplicant.conf

or by using https://play.google.com/store/apps/details?id=com.backupyourmobile XDA topic
-To get root access go to Menu -> Advanced
-when got offline backup, you can see where the files stored by going to app menu, advanced, change directory and you'll see current working dir location
 

Costas

Administrator
Staff member
Find your device
https://doc.e.foundation/devices
(source code) https://gitlab.e.foundation/e/devices

When is not there, try to find (if is) an early release on XDA and follow the below walkthrough.

Currently this is for Samsung S6 / J5 , if you have other brand, the differences are the combination to enter to Download Mode & the TWRP file.

## FLASH TWRP 3.3 RECOVERY
Shut down phone.
Boot in Download Mode : hold Home + Power + Volume- until you see Samsung's logo and release all buttons.
Confirm access to Download mode by pressing Volume+.
Phone now displays: Download mode, do not turn off target.

Connect phone in USB, wait for bootloader drivers installation.

Then launch Odin.exe (included in my archive) and wait for Odin indicator ID:COM to become blue.
In options: Verify re-partition and Auto Reboot are NOT ticked while F. Reset Time is ticked.

### Warranty will be Void after next click ###
Click Start.
Wait until flash Success message appears.
Unplug phone.

Restart phone to recovery :
- hold Power + Home + Volume- until phone screen becomes black.
- and immediately switch from Volume- to Volume+ (still holding Power + Home) to land in TWRP recovery.
### If Android launches, hold 3 buttons until phone restarts and Samsung logo appears.

## BACKUP IMEI PARTITION AND SYSTEM (Nandroid backup, on computer can be opened with 7zip)

Boot in Recovery Mode : Hold Home + Power + Volume+ until you see Samsung's logo then release and wait a few seconds for TWRP recovery to boot.
Recovery asks for Keep System Read Only ? > Swipe to Allow Modifications.

Go to Backup > you can select the partitions you want to save.
Select at least EFS partition to backup your IMEI. If a flash fails and partition is damaged you will still be able to restore this partition and use the phone.
If IMEI is lost during a flash, phone won't be able to reach cellphone networks.
I prefer to backup EFS, Boot, Data and System partitions. In case of problem, you will have your phone in its original state.
Swipe to Backup and wait during process.
Go to Home screen and continue with next chapter.

Save backup: still under TWRP recovery, connect phone to PC.
Go to Mount menu and check Data partition is checked and MTB button is on "Disable MTP" state.
From Windows explorer, access phones memory and copy-paste the TWRP folder (located in root folder, beside DCIM and Music folders) somewhere safe on your computer.

## FORMAT PARTITIONS

### Make sure you copied TWRP backup from internal memory to somewhere safe.

Go to Wipe, tap on Format data.
Type yes and confirm with bottom right button (check icon)

Now 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.
### Don't try to format to F2FS, it won't work.

Back to TWRP home screen, go to Reboot > Recovery and swipe to reboot.
On next launch, check the checkbox to remember choice and swipe to allow modifications.

## FLASH ROM

Back to TWRP main menu, go to Mount menu.
Check Data partition
Bottom right button shows Disable MTP. If not, tap on button.
Connect phone to PC and use Windows explorer to copy files on phone's internal memory.
Copy files of ROM on phone.
//+ GApps + Magisk on phone.

Go back to TWRP Home menu. Then tap on Install > choose lineage*.zip,
//then Add more Zips > bitgapps*.zip
then Swipe to confirm Flash.
Wait for operation to end.

Then tap Wipe cache/dalvik, swipe to confirm,
then Reboot System and on Install TWRP App? menu, tap on button Do Not Install

Let Android start and configure it at first launch.
Don't try to set fingerprints at first setup. It will crash.

source ( djibe89 guide ) :
https://xdaforums.com/t/guide-tutorial-howto-samsung-galaxy-s6-sm-g920f-stock-to-android-12.4108425/



/e/OS ROM for Samsung S6 (SM-G920F) (zerofltexx) (android 11)
https://xdaforums.com/t/rom-unoffic...nd-galaxy-s6-edge-sm-g925f-zeroltexx.4651446/
or
https://sourceforge.net/projects/eosbuildsronnz98/files/SamsungSmartphones/
(not active for the moment) https://images.ecloud.global/dev/zerofltexx/

/e/OS ROM for Samsung J5 (SM-J500FN) (j5nlte) (android 8.1)
https://doc.e.foundation/devices/j5nlte/install
https://doc.e.foundation/devices/j5nlte




extra links :
Troubleshooting :
On SAMSUNG J5- incase when flashing the ROM under TWRP getting
E1001: Failed to update system image.
Updater process ended with ERROR: 7

thanks to wizz, the solution is :
in TWRP go to advanced > terminal, then create /cache/recovery with
mkdir /cache/recovery

Incase getting only
Updater process ended with ERROR: 7 ( super newbie in action )

WARNING - this means that the ROM is FOR DIFFERENT PHONE MODEL

nevertheless if you are sure is the correct one, you have to open the ROM archive and navigate to
META-INF\com\google\android\updater-script

view the text file, there on top will be an assert like :

assert(getprop("ro.product.device") == "j5nlte" || getprop("ro.build.product") == "j5nlte" ||
getprop("ro.product.device") == "j5nltexx" || getprop("ro.build.product") == "j5nltexx" || abort("E3004: This package is for device: j5nlte,j5nltexx; this device is " + getprop("ro.product.device") + "."););

on the current time, once the device is in TWRP and connected with your PC if you like to validate against. Use the below ADB commands to read the device props

zzzzzzzz = is the deviceID as shown on 'adb devices'
adb -s zzzzzzzz shell getprop ro.product.device
adb -s zzzzzzzz shell getprop ro.build.product
adb -s zzzzzzzz shell getprop //shows all properties ( source )

Bash:
If you are on custom ROM and want to delete/copy some files on root partition, you have to make it writable, this is *not working* on STOCK ROM.

just delete the application folder (zzzz) exists in
system/app/zzzz

#src - https://xdaforums.com/t/read-only-file-system-after-rooting.4390427/post-86285023
#make root writable
adb shell mount -o remount,rw /
#copy whole PC folder to root folder
adb push C:\test\firmware /system/etc/
#more cp command - https://superuser.com/a/1826730

when you have made a TWRP backup (efs etc.) and needed to restore the backup files must be under
sdcard/twrp/backup/--here--
--no other subfolders-- (as the backup structure itself is with a subfolder, is not compatible and fails on android device)

ps: this can be made by installing TWRP with odin (even on STOCK ROM), on TWRP main menu there is an option RESTORE, you select where the files are in SDCARD.

STOCK ROM - debloat scripts (no tested)
  • S6 Nougat DEBLOAT Script
  • S7/S8/S9/S10/N8/N9 by OrelMadK
  • universal-android-debloater in rust

    (tested&working) in case on STOCK ROM and you want to remove without the above scripts use

    adb shell

    pm uninstall --user 0 com.dropbox.android
    pm uninstall --user 0 com.facebook.appmanager
    pm uninstall --user 0 com.facebook.katana
    pm uninstall --user 0 com.facebook.system
    pm uninstall --user 0 com.google.android.apps.books
    pm uninstall --user 0 com.google.android.apps.docs
    pm uninstall --user 0 com.google.android.apps.magazines
    pm uninstall --user 0 com.google.android.apps.photos
    pm uninstall --user 0 com.google.android.apps.plus
    pm uninstall --user 0 com.google.android.gm
    pm uninstall --user 0 com.microsoft.office.excel
    pm uninstall --user 0 com.microsoft.office.onenote
    pm uninstall --user 0 com.microsoft.office.powerpoint
    pm uninstall --user 0 com.microsoft.office.word
    pm uninstall --user 0 com.microsoft.skydrive
    pm uninstall --user 0 com.samsung.android.allshare.service.fileshare
    pm uninstall --user 0 com.samsung.android.allshare.service.mediashare
    pm uninstall --user 0 com.samsung.android.calendar
    pm uninstall --user 0 com.samsung.android.oneconnect
    pm uninstall --user 0 com.samsung.android.samsungpass
    pm uninstall --user 0 com.samsung.android.scloud
    pm uninstall --user 0 com.samsung.android.sdk.handwriting
    pm uninstall --user 0 com.samsung.android.spayfw
    pm uninstall --user 0 com.sec.android.app.samsungapps
    pm uninstall --user 0 com.sec.android.easyMover.Agent
    pm uninstall --user 0 com.sec.android.easyonehand
    pm uninstall --user 0 com.whatsapp
    pm uninstall --user 0 flipboard.boxer.app
    pm uninstall --user 0 tv.peel.app


when you want to restore the modem.bin (under odin > CP), first you have to compress it to ex. modem.tar format with 7zip. Otherwise stack to 'file analysis'

extract android image file (system.img)

:ninja: - Netguard how to DNS and HOSTS


  • You can browse (read only) the root partition (even device is not rooted) with MiXplorer
  • F-Droid Appstore
  • VPN - Orbot
  • Language Enabler (Wanam) - give root access with #adb -d shell pm grant com.wanam android.permission.CHANGE_CONFIGURATION# more
  • root with Magisk [howto]
  • without root - if device has TWRP on main menu > advanced > file manager ( or terminal, yes you can delete also files ), you can browse root, copy files etc.


Shazam - export song titles by data/data/com.shazam.android/databases/library.db
SQL:
select * from apple_artist_track ap
left join artist a on a.artist_id = ap.artist_adam_id
left join track t on t.track_key = ap.track_key

Android seems to have dropped support for SIM contacts somewhere along the line. You can only import existing numbers by the following:
Open ā€˜Dialer/Phone’ app
Dial this ā€œnumberā€: *#*#4636#*#*
Tap ā€˜Phone information’
Tap the 3 dot menu on the top right
Tap ā€˜View SIM Address Book’ source



Play Protect turned off - constant popup spam "Turn on Play Protect?"
adb shell pm revoke de.androidpit.app android.permission.SYSTEM_ALERT_WINDOW source
 

Costas

Administrator
Staff member
screenshots my Murena web interface (syncs with the smartphone like /google suite/)
3qYcf97.png



IMAP / SMTP configuration
https://e.foundation/email-configuration/
 
Top