[ROM] [G532x] [7.1.2] [Beta] LineageOS 14.1 for Galaxy J2 Prime

Search This thread

Noope21

New member
May 27, 2023
2
0
anddddd going here to say the project is slow but isn't off the table.

new OTA update for 14.1. Please check the changelog at the first page.
edit 1: can someone please test audio playback over 3.5" headphone?

a bit of progress elsewhere too:

View attachment 5918369
I'm Glad you're back, for the audio jack now it's no sound but still playing on the speaker phone.
I was updated and try to reset and when I check update, it's show again. It's OK?
Sorry I can't attach image, I don't know why motif show "no app can handle this link" and i'm not install gapps.
 

Prove N.

Senior Member
Aug 23, 2015
254
261
I'm Glad you're back, for the audio jack now it's no sound but still playing on the speaker phone.
I was updated and try to reset and when I check update, it's show again. It's OK?
Sorry I can't attach image, I don't know why motif show "no app can handle this link" and i'm not install gapps.

the update bug is fixed now, thanks for the reportings~
 

Lendigo4

Member
Apr 22, 2022
12
7
Lahore
I tested the headphone jack but the problem still exists. Battery life in my opinion got a littleee bit better so did the performance as well. One thing I also noticed was that the mobile data didn't seem to work for me idk why. In the previous version of this ROM, it worked but in this latest update, it didn't. Maybe there was a problem while I flashed this ROM idk but I'll try again to see if the problem still exists by reflashing it. Thanks btw for this amazing ROM!😊

My Phone Varient: Samsung Galaxy J2 Prime SM-G532M
 

Prove N.

Senior Member
Aug 23, 2015
254
261
I tested the headphone jack but the problem still exists. Battery life in my opinion got a littleee bit better so did the performance as well. One thing I also noticed was that the mobile data didn't seem to work for me idk why. In the previous version of this ROM, it worked but in this latest update, it didn't. Maybe there was a problem while I flashed this ROM idk but I'll try again to see if the problem still exists by reflashing it. Thanks btw for this amazing ROM!😊

My Phone Varient: Samsung Galaxy J2 Prime SM-G532M
I'm connecting my laptop to 4G on J2p right now though, so please consider a few things first:
  • Does mobile data work on any stock (or stock-based) ROM?
  • Is it a problem with your SIM card provider (1-way block, no data plan, etc...)?
  • If you have 2 SIM cards, check if the other one (that you don't use mobile data on) is set to 2G-only, and the SIM you use for data is selected as default. The settings is in Settings app -> SIM cards.
 

Lendigo4

Member
Apr 22, 2022
12
7
Lahore
I'm connecting my laptop to 4G on J2p right now though, so please consider a few things first:
  • Does mobile data work on any stock (or stock-based) ROM?
  • Is it a problem with your SIM card provider (1-way block, no data plan, etc...)?
  • If you have 2 SIM cards, check if the other one (that you don't use mobile data on) is set to 2G-only, and the SIM you use for data is selected as default. The settings is in Settings app -> SIM cards.
  • Yes, I'm currently using the Stock ROM and mobile data works flawlessly.
  • No, there's no problem with my SIM Card Provider and at the time of setting up your ROM, I had a data plan active.
  • No, my phone variant only has a single SIM slot.
BTW, as I told you previously that there might be a problem that could have occurred during the flashing process that could have messed something up. So I'll try to reflash your ROM again ASAP when I get the time to do so and I'll inform you if the problem still persisted or not. Cheers!😄
 

Lendigo4

Member
Apr 22, 2022
12
7
Lahore
So I just reflashed the ROM and yes, the problem still exists. Mobile Data still didn't work for me. Calling someone is totally fine (if we ignore the problem of the sound coming from the rear speaker instead of the earpiece speaker). So. I guess this problem may occur on the device model I own (SM-G532M) but idk, you know better lol. I've also attached some screenshots for your convenience. Cheers! :D
 

Attachments

  • Screenshot_20230617-212436.png
    Screenshot_20230617-212436.png
    158.4 KB · Views: 26
  • Screenshot_20230617-212447.png
    Screenshot_20230617-212447.png
    39.6 KB · Views: 26

Prove N.

Senior Member
Aug 23, 2015
254
261
So I just reflashed the ROM and yes, the problem still exists. Mobile Data still didn't work for me. Calling someone is totally fine (if we ignore the problem of the sound coming from the rear speaker instead of the earpiece speaker). So. I guess this problem may occur on the device model I own (SM-G532M) but idk, you know better lol. I've also attached some screenshots for your convenience. Cheers! :D
or maybe it's the "single SIM" that I didn't account for... I've only tested for dual SIM devices.

e: more questions since idk how single SIM device works with this ROM
1. Is your SIM selected in Cellular Data section (Settings -> SIM cards -> Cellular Data), like in the pic?
2. Have you rebooted at least once?
3. Do you know how to take logs? (logcat, dmesg)

sorry for the inconvenience~
 

Attachments

  • IMG_20230618_183411_919.jpg
    IMG_20230618_183411_919.jpg
    30.8 KB · Views: 27
  • Like
Reactions: Lendigo4

Mhossein12

New member
Apr 20, 2022
3
0
Hello, my problem is that the phone's touch screen gets stuck for a few seconds (about 20 seconds).
 

atatero

New member
Oct 10, 2019
4
0
or maybe it's the "single SIM" that I didn't account for... I've only tested for dual SIM devices.

e: more questions since idk how single SIM device works with this ROM
1. Is your SIM selected in Cellular Data section (Settings -> SIM cards -> Cellular Data), like in the pic?
2. Have you rebooted at least once?
3. Do you know how to take logs? (logcat, dmesg)

sorry for the inconvenience~
Mine is a sm-g532m. Isn't like the pic.
 

Lendigo4

Member
Apr 22, 2022
12
7
Lahore
or maybe it's the "single SIM" that I didn't account for... I've only tested for dual SIM devices.

e: more questions since idk how single SIM device works with this ROM
1. Is your SIM selected in Cellular Data section (Settings -> SIM cards -> Cellular Data), like in the pic?
2. Have you rebooted at least once?
3. Do you know how to take logs? (logcat, dmesg)

sorry for the inconvenience~
1. Well the screenshot you attached doesn't look familiar as I've never seen those options before. Though I can't confirm as I'm not using this ROM currently as it's not that daily-driver able yet. Maybe these options don't show up on Single SIM models idk lol. But I did however looked thoroughly but couldn't see such options anywhere.

2. Yes, I rebooted multiple times just to be sure but nothing worked, unfortunately.

3. I apologize but I don't know how to take logs. Maybe I can look up how to take logs on the internet if that would help or if you want, you can tell me how to take them for your own convenience. But I'll try by doing some research.

And it's totally fine, there's no need to be sorry for it. You're creating this ROM, and that's more than enough. And it's also just in the beta stages so yeah, problems can occur. Only if I knew about ROMs and stuff I would love to help you but nvm, I'm wayyy too noob for such things. But still, keep it up!😄

Edit 1: Does this article contain what needs to take logs? I do see "logcat" and "dmesg", but I just wanted to be sure.

Edit 2: I did what the article told me to do and hopefully I've done it right as it was my first attempt lol. I couldn't attach the logs here for some reason as XDA isn't allowing me to idk so here (Google Drive) is the link to them.
 
Last edited:

Lendigo4

Member
Apr 22, 2022
12
7
Lahore
BTW just out of curiosity, I flashed the previous update of this ROM just to be sure it wasn't my SIM Carrier's problem but no, mobile data worked flawlessly with full LTE speed LOL. Everything that was supposed to work in that update did work as intended.
 

Prove N.

Senior Member
Aug 23, 2015
254
261
BTW just out of curiosity, I flashed the previous update of this ROM just to be sure it wasn't my SIM Carrier's problem but no, mobile data worked flawlessly with full LTE speed LOL. Everything that was supposed to work in that update did work as intended.
2022-02-16 one? Now that's concerning. I'm looking into it~
 
Dec 24, 2015
31
4
23
Indonesia
Xiaomi Poco X3 NFC
OTA update for the latest release should be out for everyone on LOS14 builds newer than 2020-12-31 !~

[ HOTFIX ]
  • Fixed BACK button not working.
[ 2023-05-25 ]
  • Fixed video playback (up to 720p30 and lower).
  • Fixed offline charging animation (it worked before, just no animation).
  • Fixed Wi-Fi hotspot.
  • Removed defaulted software nav-bar. The option will now be provided on first-boot and in Settings -> Buttons.
  • SIM signals now come up earlier on boot.
  • Overall optimization to performance and size.
  • Unified Kernel for N/O/P.
  • Fixed GPS and FM Radio (dunno when, dunno why, dunno how, someone just pointed it out and I tested and it just worked, LOL)

Older changelogs:

[Feb 16 22] (20220216) (Emergency hotfix):
  • REALLY disable persistent logcat. Are you kidding AOSP??
    #logd.logpersistd.enable=true
  • Ignore RSSNR. This fixes LTE signal instability, though it doesn't necessary fix terrible signal strength on both 3G and 4G.
  • Add missing OMX symbol, which fixes local video playback it didn't, MtkOmxVencEncod crashes.
[Feb 13 22] (20220213):
  • Fix SnapCamera crashing after taking 1 pic.
  • Fix wakelock tracker (no more spam in data/system/dropbox).
  • Fix mobiledata for SIM 2.

[Feb 10 22] (20220210):
  • Signature Spoofing for MicroG.
    • Manually giving permission to MicroG is required.
  • Fix LiveDisplay.

[Feb 03 22] (20220203) (Hotfix):
  • Clean build. (remove leftover garbage)
  • Turn off persistent logcat for release build. (it eats a TON of storage)

[Feb 02 22] (20220202)
  • Fixed RIL (YAY!).
  • Fixed log spamming from mtk_agpsd and AudioParamParser (save some battery).
  • Fixed flashing red border from the previous build (due to it being eng build).
  • Kernel: backport MMAP_RND_BITS and MMAP_RND_COMPAT_BITS for futureproofing and some stuff that needs randomness.
  • Fixed 1080p and 720p60 playback lags. (using stock lib/shared objects instead of ones from another device)
    • Need (really) good connection regardless.
    • Update: still lag sometimes.
[Jul 19 21] (20210719)
  • Fixed HW recent key.
  • Fixed random crash. (doesn't appear to happen on my end)
  • Fixed SD Card for 3rd-party apps.
  • Kernel 3.18.53, some tiny improvement.
  • F2FS support.
  • NOTE: OTA will not be available for this release. It will be resumed when this hits beta.
[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)
[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]
thank you i hope for this device to potential
 

Prove N.

Senior Member
Aug 23, 2015
254
261
Correct! And thank you in advance! :D
can you test this one, I (kinda mindlessly) changed `persist.radio.multisim.config` incorrectly which might have made data not work on single SIM. This build reverts that back to the 2022-02-16 one.
 

Attachments

  • lineage-14.1-20230621-UNOFFICIAL-grandppltedx.zip
    373.5 MB · Views: 86
  • Like
Reactions: Lendigo4

Top Liked Posts

  • There are no posts matching your filters.
  • 31
    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.
    • Supported Models:
      • SM-G532G
      • SM-G532F
      • SM-G532M
      • SM-G532MT
      • above variant with /DS is also supported (ex. SM-G532G/DS)

    • If you have 2 SIM cards, set both of them to 2G, then your desired one to LTE or 3G, then select a SIM card in the Settings for Cellular data for mobile data.
    • This phone only supports LTE + 2G configuration.

    Working
    • Boot
    • RIL (Calls, SMS, Data)
    • Wi-Fi, Bluetooth, Hotspot.
    • Sensors. (Prox, Accelerometer)
    • Audio, Video, Media.
    • ADB, MTP.
    • Brightness.
    • Camera (Front, Rear, Flashlight), but NOT Video.
    • LiveDisplay.
    • GPS
    • FM Radio
    • Signature Proofing for MicroG.

    Not Working / Bug
    • Video Recording. Footej Camera works (somehow!)
    • 3.5" Headphone not work (it detects Headphone, but still plays audio on speaker. Bluetooth Headphone works)
    • VoLTE. Literally no Samsung phone has VoLTE working on AOSP ROM...
    • Encryption

    • Terrible battery. REALLY TERRIBLE.
    • Lag when playing 720p60 or 1080p (or higher) videos. Software Encoding can only do so much.
    • Phone very rarely just freezes. Just force restart by quickly taking out battery and reinsert.
    • (bug) If you have 2 active SIM cards, you have to configure manually to:
      • Disable Cellular data for at least 1 SIM (Settings > Data Usage).
      • Set at least 1 SIM's preferred network to 2G (Settings > SIM cards > SIM x Settings).
      • Select 1 SIM card for mobile data (Settings > SIM cards > Cellular data)
    If you find any unmentioned bugs, mention me. Any logs of those bugs are appreciated; but mentioning it with reproduction should suffice.

    Issues should be posted:


    Download
    Installation
    1. Install TWRP (Here be TWRP).
    2. Download the files mentioned above to somewhere that is NOT internal storage.
    3. Reboot to TWRP.
    4. Format Data and System.
    5. Install ROM.
    6. Optionally install GApps and/or Root (use Magisk).
    7. Reboot and Enjoy!
    8. If have 2 SIMs, be noted of the dual-SIM bug.

    Credit

    • The dad of J2 Prime development, SubZero.
    • The MVP of J2 Prime dev & community, Nguyen Long. Also great at squashing bugs.
    • 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 (and the array of Sony MTK Devs) for helping with Camera, xlog and some stuff
    • every@telegram for LiveDisplay fix
    • Someone that leaked MTK BSP O which I used extensively to fix some libs misbehaving lol.
    • The community over at Telegram, particularly the Bear, Chickentai, Grand Taco, Duck and D4BL.
    • Thanks the guys over 4pda too.
    • All the ones behind build guides and bug fixes which I didn't record ;-; .
    Are you missing here? PM me!


    Source


    XDA:DevDB Information
    LineageOS, ROM for the Samsung Galaxy J2 Prime/J2 Ace/Grand Prime Plus

    Contributors
    Prove N.
    ROM OS Version: LineageOS 14.1
    ROM Kernel: Linux 3.18.x
    ROM Firmware Required: TWRP for J2P
    Based On: Android 7.1.2, Nougat

    Version Information
    Status:
    Beta

    Created 2019-07-07
    Last Updated 2023-07-07
    18
    OTA update for the latest release should be out for everyone on LOS14 builds newer than 2020-12-31 !~

    [ 2023-07-07 || REMOVED FROM HERE ]

    Due to a kernel bug, I removed it from here. You can get it here if you want (<- clickable).

    • Hello the 4th anniversary (LOL)
    • Fixed CPUFreq table in kernel. This fixed oh so many things (CPU hard stuck at 1.4 GHz x 4 all times, device warming in sleep, MASSIVE BATTERY IMPROVEMENT)
    • Chore work on trees

    Older changelogs:

    [ 2023-06-23 | HOTFIX 2 ]
    • Fixed Mobile Data not working on single-SIM devices

    [ HOTFIX ]
    • Fixed BACK button not working.
    [ 2023-05-25 ]
    • Fixed video playback (up to 720p30 and lower).
    • Fixed offline charging animation (it worked before, just no animation).
    • Fixed Wi-Fi hotspot.
    • Removed defaulted software nav-bar. The option will now be provided on first-boot and in Settings -> Buttons.
    • SIM signals now come up earlier on boot.
    • Overall optimization to performance and size.
    • Unified Kernel for N/O/P.
    • Fixed GPS and FM Radio (dunno when, dunno why, dunno how, someone just pointed it out and I tested and it just worked, LOL)

    [Feb 16 22] (20220216) (Emergency hotfix):
    • REALLY disable persistent logcat. Are you kidding AOSP??
      #logd.logpersistd.enable=true
    • Ignore RSSNR. This fixes LTE signal instability, though it doesn't necessary fix terrible signal strength on both 3G and 4G.
    • Add missing OMX symbol, which fixes local video playback it didn't, MtkOmxVencEncod crashes.
    [Feb 13 22] (20220213):
    • Fix SnapCamera crashing after taking 1 pic.
    • Fix wakelock tracker (no more spam in data/system/dropbox).
    • Fix mobiledata for SIM 2.

    [Feb 10 22] (20220210):
    • Signature Spoofing for MicroG.
      • Manually giving permission to MicroG is required.
    • Fix LiveDisplay.

    [Feb 03 22] (20220203) (Hotfix):
    • Clean build. (remove leftover garbage)
    • Turn off persistent logcat for release build. (it eats a TON of storage)

    [Feb 02 22] (20220202)
    • Fixed RIL (YAY!).
    • Fixed log spamming from mtk_agpsd and AudioParamParser (save some battery).
    • Fixed flashing red border from the previous build (due to it being eng build).
    • Kernel: backport MMAP_RND_BITS and MMAP_RND_COMPAT_BITS for futureproofing and some stuff that needs randomness.
    • Fixed 1080p and 720p60 playback lags. (using stock lib/shared objects instead of ones from another device)
      • Need (really) good connection regardless.
      • Update: still lag sometimes.
    [Jul 19 21] (20210719)
    • Fixed HW recent key.
    • Fixed random crash. (doesn't appear to happen on my end)
    • Fixed SD Card for 3rd-party apps.
    • Kernel 3.18.53, some tiny improvement.
    • F2FS support.
    • NOTE: OTA will not be available for this release. It will be resumed when this hits beta.
    [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)
    [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.