I'm about to install this rom in my phone, about the sim card it just stopped working out of nowhere? And about the GPS how to disable in SYS? How to do that, I never did this
Thanks for your effort what i whan to know is if the port also include architecture chang like from armv7 to armv8 b/c i have anther phone that is good in spec and android 11 but it's also arm64 in 32bit os mod
/*
* 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:
Backup the folder /data/data/com.android.providers.telephony. It will be vital later
Install ROM as normal, don't reboot yet.
In TWRP, go to Mount, tick System.
Press the home button, then go Advanced > File Manager.
Locate to and find file /system/lib/hw/audio.primary.mt6735.so (if you mistap, tap the ... folder on top to go back).
Rename it to anything else (I just add .bak, so if I want it later, I remove the ".bak").
Now reboot and do setup wizard.
RIL is still not working yet, but go on.
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).
Reboot to recovery (Any of these: Power off phone then Power + Vol up + Home; adb reboot recovery; reboot recovery option in Magisk)
Copy the folder in step 1 to /data/data
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
/*
* 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.
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]
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.
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.