HiveMinds / Productivity-phone

Automatically installs (mainly) opensource system on phone that optimizes user productivity.
GNU Affero General Public License v3.0
2 stars 1 forks source link

Samsung J5 LineageOS #43

Open a-t-0 opened 1 year ago

a-t-0 commented 1 year ago

Supported phones:

j5nlte ( SM-J500FN)
j5lte (SM-J500F/G/M/NO/Y)
j5ltechn (SM-J5008)
j53gxx (SM-J500H)

Source: https://www.getdroidtips.com/lineage-os-19-galaxy-j5/ Refers to: https://forum.xda-developers.com/t/rom-12l-unofficial-gapps-ota-lineageos-19-1-for-galaxy-j5-unified-2022-08-11.4416375/ Refers to: https://github.com/daviiid99/LineageOS_J5-2015/tree/samsung_kernel_msm8916_R With release: https://github.com/daviiid99/LineageOS_J5-2015/releases/download/j5nlte_20211115/lineage-18.1-20211115-UNOFFICIAL-j5nlte-recovery.img

Also, an updater is suggested: https://github.com/daviiid99/Galaxy_J5_Updater/releases

Steps:

  1. Install adb
    yes | sudo apt install adb
    yes | sudo apt install fastboot

    1 Settings>software>buildnumber tap 7 times

  2. Dev options>Enable OEM unlocking
  3. Dev options>Enable adb debugging

    Root I

    3,. Install Magisk to get rooted phone.

  4. Download stock firmware for Magisk from here: https://www.mediafire.com/file/8pqyr5s8x857k9s/Samsung_Galaxy_J5_SM_J500F_India_6.0.1.zip/file
  5. Or from here: https://www.mediafire.com/file/ur8ugje907jps3t/J530FXXU1AQF5_J530FBTU1AQED_BTU_4file.zip/file

Root II

https://github.com/Benjamin-Dobell/Heimdall https://bitbucket.org/benjamin_dobell/heimdall/downloads/?tab=downloads

sudo apt install heimdall-flash
heimdall detect
heimdall download-pit

Root III

Worked to root: https://forum.xda-developers.com/t/guide-root-and-twrp-recovery-for-sm-j530f.3685871/ Downloaded https://download.chainfire.eu/1135/CF-Root1/CF-Auto-Root-j5y17lte-j5y17ltexx-smj530f.zip?retrieve_file=1 Open odin, reboot phone into downloading mode (power on, home+volume down>volume up). Connect to usb. Odin ID:COM3 should show turquoise if it registers phone. Then press ap, and load the tar.md5 file from the zip in that link. Then press start, then it is rooted, then it got stuck in a boot loop.

TWRP Retry after root:

Download twrp from: https://romprovider.com/twrp-3-1-1-galaxy-j5-pro-sm-j530f/ ap odin Reboot with Power, home button, volume down. WORKS

TWRP

  1. Download trp from: https://twrp.me/devices yielding https://twrp.me/samsung/j5lte.html yielding: https://eu.dl.twrp.me/j5lte/ Yielding: https://eu.dl.twrp.me/j5lte/twrp-3.7.0_9-0-j5lte.img.html Yielding: https://eu.dl.twrp.me/j5lte/twrp-3.7.0_9-0-j5lte.img Yielding: file: twrp-3.7.0_9-0-j5lte.img Dont do that.

  2. Instead get it from here for the J530F instead of the J500F: https://unofficialtwrp.com/root-twrp-j5-pro-sm-j530f-g-y/ Yielding: https://www.mediafire.com/file/njal9m9nwq5n2pu/Blacked_On7prime.tar/file

  3. Put phone in Download mode: Press and hold power on, home button and volume down, then when prompted to continue, press volume up.

  4. Flash TWRP on phone in recovery partition:

    heimdall print-pit

    Shows the partitions on the phone, then find out what the recovery partition is named (E.g. RECOVERY). Then run:

    heimdall flash --RECOVERY twrp-3.7.0_9-0-j5lte.img
  5. Install twrp from: https://dl.twrp.me/twrpapp/

    adb install me.twrp.twrpapp-26.apk
  6. Install twrp recovery in app. 8.. Reboot phone into recovery:

    adb reboot recovery

Displays phone mode: j5y171texx/j5y171te.

  1. Reb

LineageOS

https://forum.xda-developers.com/t/rom-10-arm64-lineageos-17-1-for-the-galaxy-j5-pro-j530-02-02-2021.4227945/ Yielding: https://androidfilehost.com/?fid=17248734326145727245 Yielding:

Or: https://www.getdroidtips.com/lineage-os-19-galaxy-j5/ https://sourceforge.net/projects/lineageos-17-1-for-galaxy-j5/files/#

j5nlte ( SM-J500FN)
j5lte (SM-J500F/G/M/NO/Y)
j5ltechn (SM-J5008)
j53gxx (SM-J500H)

Yielding: 1. 2. 3. 4.

https://forum.xda-developers.com/t/rom-12l-unofficial-gapps-ota-lineageos-19-1-for-galaxy-j5-unified-2022-08-11.4416375/ https://github.com/daviiid99/LineageOS_J5-2015/tree/samsung_kernel_msm8916_R Put twrp in sideload modus.

adb sideload lin*zip
a-t-0 commented 1 year ago

This worked: https://www.youtube.com/watch?v=pDvtkPfXsuI https://techn3d.blogspot.com/2021/03/install-e-os-on-samsung-galaxy-j5-pro.html First install latest twrp recovery into BOOT (version 3.2 and higher) Then boot into that latest twrp Then tried lineageOS for that phone, but that said error 7 (Meaning img is not suitable for that phone), but you can aleviate that by unpacking image, removing all asserts from some file, and then repacking it again: https://forum.xda-developers.com/t/fix-solved-status-7-error-with-cwm-or-twrp-recovery-on-rooted-android.2522762/

However, I did not do that, instead I installed EOS zip which worked, onto thee boot dir.