• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[ROM] [G532x] [7.1.2 - Alpha] LineageOS 14.1 for Galaxy J2 Prime

Search This thread

Prove N.

Senior Member
Aug 23, 2015
212
187
512px-Lineage_OS_logo.svg.png

Disclaimer
Code:
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
Note
  • This device has different names in different countries: J2 Prime; J2 Ace; Grand Prime Plus. As long as its model is SM-G532G/F/M/MT(/DS), this ROM is for you.

Working
  • Boot
  • Wi-Fi / Bluetooth
  • Sensors (Prox, Accelerometer)
  • Audio / Video / Media
  • ADB / MTP (must turn on File Transfer)
  • Brightness
  • Camera (Front, Rear, Flashlight)

Not Working / Bug
  • (NW) GPS (constant crashing) (Remove mtk_agpsd in system/bin if you don't mind)
  • (NW) Video Recording
  • (NW) Radio FM
  • (NW) LiveDisplay
  • (NW) Recent key
  • (NW) Wi-Fi Hotspot
  • -------------
  • (bad bug) Phone randomly freezes, completely. You have to take battery out and in if it does so. Currently DKY.
  • (bug) Snap - Camera app on LOS - breaks after you take a picture (the picture taken is still saved and viewable). Use 3rd party one like OpenCamera or Gcam 4.x armv7-a.
  • (bug) SD card cannot be read by non-system apps (such as a file explorer).
  • (bug) Bad battery life if RIL is not working. You can add into system/build.prop this
    Code:
    ro.radio.noril=yes
    or fix RIL itself, but....
  • (bug) RIL and Audio, only one can work. If you want RIL in this ROM, you have to disable Audio. Check the workaround below if you insist.
If you find any unmentioned bugs, mention me. Any logs of those bugs are appreciated!; but mentioning it with reproduction should suffice.

Workaround

As mentioned in bug list, if you want RIL, audio must be disabled.
Unhide this for steps and stuff

  • Steps:
    1. Backup the folder /data/data/com.android.providers.telephony. It will be vital later
    2. Install ROM as normal, don't reboot yet.
    3. In TWRP, go to Mount, tick System.
    4. Press the home button, then go Advanced > File Manager.
    5. Locate to and find file /system/lib/hw/audio.primary.mt6735.so (if you mistap, tap the ... folder on top to go back).
    6. Rename it to anything else (I just add .bak, so if I want it later, I remove the ".bak").
    7. Now reboot and do setup wizard.
    8. RIL is still not working yet, but go on.
    9. If you have 1 SIM in, move ahead. If 2 SIMs, turn off both SIM's cellular data (In Settings > Data Usage), then set both SIM's preferred network to 2G (in Settings > SIM Cards).
    10. Reboot to recovery (Any of these: Power off phone then Power + Vol up + Home; adb reboot recovery; reboot recovery option in Magisk)
    11. Copy the folder in step 1 to /data/data
    12. Reboot now. Turn on cellular data and enjoy. (if you want 3G or LTE, change the preferred network ON ONE SIM ONLY. It will break if none of the 2 SIMs is on 2G)
  • Additional bugs:
    • No audio, as said. This means no Media Recording/Playback as well
    • RIL will break if you install NanoDroid (even when your audio is not working)
    • VoLTE, Calls (because no audio)
    • (1 or 2 SIM in) RIL breaks after a few days (probably 2 or 3)
    • (dual-sim with 2 sims in) This is due to Hardware limitation: at least 1 SIM's preferred network must be set to E (2G) and at least 1 SIM's cellular data must be off at any time
  • To revert back: Do step 3 to 6, but instead rename it back to audio.primary.mt6735.so, then reboot


Download
Instruction
  1. Install TWRP
  2. IF YOU WANT RIL, SEE THE WORKAROUND ABOVE FIRST.
  3. Format Data and System
  4. Install ROM and Gapps, optionally Root (use Magisk)
Enjoy!

Credit

  • SubZero for introducing me to this world of ROM Dev.
  • TBM_13 for tackling lots of bugs. Tysm!
  • melekpro for making working port ROMs (and partially fixing this ROM too)
  • Skyrimus for Wileyfox Spark(+) tree, whose blobs replaced some of this device's outdated / not working ones.
  • jmfp_bmx for helping with Camera and some stuff
  • All the ones behind build guides and bug fixes which I cannot fit in this thread lol.
Are you missing here? PM me!


Source


XDA:DevDB Information
LineageOS, ROM for the Samsung Galaxy J2

Contributors
Prove N.
ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.x
ROM Firmware Required: Latest Bootloader if possible
Based On: LineageOS 14.1

Version Information
Status:
Alpha

Created 2019-07-07
Last Updated 2020-11-27
 

Attachments

  • Screenshot_20190707-192834.png
    Screenshot_20190707-192834.png
    51.6 KB · Views: 14,099
  • Screenshot_20190707-192852.png
    Screenshot_20190707-192852.png
    44.8 KB · Views: 14,208
  • Screenshot_20190707-193448.png
    Screenshot_20190707-193448.png
    54.2 KB · Views: 13,801
  • screen2.png
    screen2.png
    62.8 KB · Views: 9,974
  • hello.png
    hello.png
    64.6 KB · Views: 1,218
  • hello2.png
    hello2.png
    49.9 KB · Views: 1,172
  • hello3.png
    hello3.png
    44.6 KB · Views: 1,220
Last edited:

Prove N.

Senior Member
Aug 23, 2015
212
187
Probably use this for changelog
[Nov 25 20]
  • July 5 2020 Security Patch
  • Allow RIL to work (with catches)
  • Fix Camera
  • Add partial doze (It might not work well yet, 30% overnight, no curves)
  • Fix stability (prevent phone freezing because of log spams)
Older changelogs

[Dec 1 19]
  • November Security Patch
  • Cosmetic stuffs

[Sep 25]
  • Truly fix Video Playback
  • MTP [Internal Storage only, SD Card will not show up]
  • Baseband + IMEI for SIM 1
  • Some smaller bugs fled away.

[*] [Jul 19]
  • Included Wi-Fi/BT Patch in final ROM
  • Unintentionally fixed Orientation/Proximity/Accelerometer (lol?)
  • Fixed Audio / Media (In a nutshell, YouTube works :D)

[*] [Jul 10]
  • Fix Wi-Fi
  • Removed boot hacks
[*] [Jul 7]
  • Initial Release
[/LIST]
 
Last edited:

Prove N.

Senior Member
Aug 23, 2015
212
187
Are sensors working? (proximity, accelerometer, Samsung orientation sensor)

The orientation is certainly not working yet as it uses some of MM samsung libraries. (In fact, Wi-Fi/BT is too, have to use patch from Doogee X5Pro)
Haven't tried Proximity/Accelerometer yet.

E: pretty sure I am going to fix main stuffs first like audio, media, MTP, Lock Screen Security (because I removed keystore lib to boot this phone, can use porridge's too) and the hardest which is RIL/Telephony as this phone is the first of a kind.
 
Last edited:

Prove N.

Senior Member
Aug 23, 2015
212
187
Add to working/not working list:
Camera
Internal microphone
Radio
Headphone

Btw, is Bluetooth working 100% fine? Because in the XenonHD ROM of Melekpro i wasn't able to send a picture from another phone to the J2 Prime.

i just connect to my laptop lol. Haven't tried sending files~
btw, headphones not working? Kinda weird when audio is *mostly working (again, haven't tried)
 

Prove N.

Senior Member
Aug 23, 2015
212
187
Idk, i wasn't able to try your LOS 14.1 because it's my main phone.

Headphone is working. But it is finicky / unstable because the main audio also is.
Bluetooth transfer works both ways (check images)
e1: audio over bluetooth works too~
-
oh, J2 Prime is my only phone lol. An used S3 is coming, so I can fully working on this device :) (except, Its about time to school here..... )
 

Attachments

  • Screenshot_20190721-153043.png
    Screenshot_20190721-153043.png
    56.7 KB · Views: 603
  • Screenshot_20190721-153059.png
    Screenshot_20190721-153059.png
    50 KB · Views: 592
  • Screenshot_20190721-152837.png
    Screenshot_20190721-152837.png
    54.7 KB · Views: 573
Last edited:
  • Like
Reactions: Joaquin Scala

Prove N.

Senior Member
Aug 23, 2015
212
187
Do you make TWRP backups or you flash the ROM, install all the apps and configure everything again?

the latter one. I have my laptop for everything already, but I can't live without YouTube and updated Samsung Internet lol (is currently the only one with true Dark Mode, and I'm more of a night owl)
To be fair, I'm still using a 2 GB SD card I bought 7 years ago, so (except EFS,) TWRP backups are no go to me ~
 

Top Liked Posts

  • There are no posts matching your filters.
  • 22
    512px-Lineage_OS_logo.svg.png

    Disclaimer
    Code:
    /*
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    */
    Note
    • This device has different names in different countries: J2 Prime; J2 Ace; Grand Prime Plus. As long as its model is SM-G532G/F/M/MT(/DS), this ROM is for you.

    Working
    • Boot
    • Wi-Fi / Bluetooth
    • Sensors (Prox, Accelerometer)
    • Audio / Video / Media
    • ADB / MTP (must turn on File Transfer)
    • Brightness
    • Camera (Front, Rear, Flashlight)

    Not Working / Bug
    • (NW) GPS (constant crashing) (Remove mtk_agpsd in system/bin if you don't mind)
    • (NW) Video Recording
    • (NW) Radio FM
    • (NW) LiveDisplay
    • (NW) Recent key
    • (NW) Wi-Fi Hotspot
    • -------------
    • (bad bug) Phone randomly freezes, completely. You have to take battery out and in if it does so. Currently DKY.
    • (bug) Snap - Camera app on LOS - breaks after you take a picture (the picture taken is still saved and viewable). Use 3rd party one like OpenCamera or Gcam 4.x armv7-a.
    • (bug) SD card cannot be read by non-system apps (such as a file explorer).
    • (bug) Bad battery life if RIL is not working. You can add into system/build.prop this
      Code:
      ro.radio.noril=yes
      or fix RIL itself, but....
    • (bug) RIL and Audio, only one can work. If you want RIL in this ROM, you have to disable Audio. Check the workaround below if you insist.
    If you find any unmentioned bugs, mention me. Any logs of those bugs are appreciated!; but mentioning it with reproduction should suffice.

    Workaround

    As mentioned in bug list, if you want RIL, audio must be disabled.
    Unhide this for steps and stuff

    • Steps:
      1. Backup the folder /data/data/com.android.providers.telephony. It will be vital later
      2. Install ROM as normal, don't reboot yet.
      3. In TWRP, go to Mount, tick System.
      4. Press the home button, then go Advanced > File Manager.
      5. Locate to and find file /system/lib/hw/audio.primary.mt6735.so (if you mistap, tap the ... folder on top to go back).
      6. Rename it to anything else (I just add .bak, so if I want it later, I remove the ".bak").
      7. Now reboot and do setup wizard.
      8. RIL is still not working yet, but go on.
      9. If you have 1 SIM in, move ahead. If 2 SIMs, turn off both SIM's cellular data (In Settings > Data Usage), then set both SIM's preferred network to 2G (in Settings > SIM Cards).
      10. Reboot to recovery (Any of these: Power off phone then Power + Vol up + Home; adb reboot recovery; reboot recovery option in Magisk)
      11. Copy the folder in step 1 to /data/data
      12. Reboot now. Turn on cellular data and enjoy. (if you want 3G or LTE, change the preferred network ON ONE SIM ONLY. It will break if none of the 2 SIMs is on 2G)
    • Additional bugs:
      • No audio, as said. This means no Media Recording/Playback as well
      • RIL will break if you install NanoDroid (even when your audio is not working)
      • VoLTE, Calls (because no audio)
      • (1 or 2 SIM in) RIL breaks after a few days (probably 2 or 3)
      • (dual-sim with 2 sims in) This is due to Hardware limitation: at least 1 SIM's preferred network must be set to E (2G) and at least 1 SIM's cellular data must be off at any time
    • To revert back: Do step 3 to 6, but instead rename it back to audio.primary.mt6735.so, then reboot


    Download
    Instruction
    1. Install TWRP
    2. IF YOU WANT RIL, SEE THE WORKAROUND ABOVE FIRST.
    3. Format Data and System
    4. Install ROM and Gapps, optionally Root (use Magisk)
    Enjoy!

    Credit

    • SubZero for introducing me to this world of ROM Dev.
    • TBM_13 for tackling lots of bugs. Tysm!
    • melekpro for making working port ROMs (and partially fixing this ROM too)
    • Skyrimus for Wileyfox Spark(+) tree, whose blobs replaced some of this device's outdated / not working ones.
    • jmfp_bmx for helping with Camera and some stuff
    • All the ones behind build guides and bug fixes which I cannot fit in this thread lol.
    Are you missing here? PM me!


    Source


    XDA:DevDB Information
    LineageOS, ROM for the Samsung Galaxy J2

    Contributors
    Prove N.
    ROM OS Version: 7.x Nougat
    ROM Kernel: Linux 3.x
    ROM Firmware Required: Latest Bootloader if possible
    Based On: LineageOS 14.1

    Version Information
    Status:
    Alpha

    Created 2019-07-07
    Last Updated 2020-11-27
    10
    Probably use this for changelog
    [Nov 25 20]
    • July 5 2020 Security Patch
    • Allow RIL to work (with catches)
    • Fix Camera
    • Add partial doze (It might not work well yet, 30% overnight, no curves)
    • Fix stability (prevent phone freezing because of log spams)
    Older changelogs

    [Dec 1 19]
    • November Security Patch
    • Cosmetic stuffs

    [Sep 25]
    • Truly fix Video Playback
    • MTP [Internal Storage only, SD Card will not show up]
    • Baseband + IMEI for SIM 1
    • Some smaller bugs fled away.

    [*] [Jul 19]
    • Included Wi-Fi/BT Patch in final ROM
    • Unintentionally fixed Orientation/Proximity/Accelerometer (lol?)
    • Fixed Audio / Media (In a nutshell, YouTube works :D)

    [*] [Jul 10]
    • Fix Wi-Fi
    • Removed boot hacks
    [*] [Jul 7]
    • Initial Release
    [/LIST]
    8
    A little sneak-peak:
    7
    Are sensors working? (proximity, accelerometer, Samsung orientation sensor)

    The orientation is certainly not working yet as it uses some of MM samsung libraries. (In fact, Wi-Fi/BT is too, have to use patch from Doogee X5Pro)
    Haven't tried Proximity/Accelerometer yet.

    E: pretty sure I am going to fix main stuffs first like audio, media, MTP, Lock Screen Security (because I removed keystore lib to boot this phone, can use porridge's too) and the hardest which is RIL/Telephony as this phone is the first of a kind.
    6
    Just to head up with other people eagering a beta/stable ROM.

    I'm still working on it, though it progresses extremely slow (or not at all). Simply because Modem/CP, just crashes, with seemingly no log pointing at errors. Or I did not notice it.
    Either way, I'm trying out lots of hacks from other device trees (again, first MTK+Samsung device, I have little to no resource on RIL to base on). Promise I'll get back with working RIL asap.

    Just
    please
    don't spam the thread with ETAs
    (if you want it to work right now, for real, just do it yourself. I'm a noob lol)
    thank you.