FORUMS
Remove All Ads from XDA

 View Poll Results: What device do you use?

SM-G530W
 
38 Vote(s)
19.10%
SM-G530T
 
55 Vote(s)
27.64%
SM-G530T1
 
30 Vote(s)
15.08%
SM-G530FZ
 
76 Vote(s)
38.19%

[DISCONTINUED][STABLE][ROM] CyanogenMod 12.1 for SM-G530W/T/T1 | SM-G530FZ

571 posts
Thanks Meter: 530
 
By vince2678, Senior Member on 24th July 2016, 02:33 AM
Post Reply Email Thread
ROM Information
  • ROM Target Device: Samsung Galaxy Grand Prime SM-G530W | SM-G530T | SM-G530T1 | SM-G530FZ
  • ROM Status: Stable
  • ROM OS: CyanogenMod 12.1
  • Maintainers: [ vince2678 ]
  • Project GitHub Repositories: https://github.com/vince2678



Build Tracking & Download
CyanogenMod (CM-12.1): http://grandprime.ddns.net/jenkins/job/CM_Builds/

TWRP Builds:: http://grandprime.ddns.net/jenkins/job/TWRP_Builds/

You can track builds via RSS: http://grandprime.ddns.net/jenkins/j...ilds/rssLatest

All the builds from above are testing builds, and as such, are likely to be extremely unstable or
unusable.


Nightly and Stable Builds: http://grandprime.ddns.net/builds/

Instructions
To flash an the ROM, you can either:
  • Download a zip archive from above and flash it from recovery by sideloading the zip (using adb sideload) or by
    just copying it to the device (using adb push or MTP file transfer) and installing it. Instructions are below under
    Zip Instructions.
  • Download a tar.md5.xz archive which can be flashed via ODIN. Instructions are below at ODIN Instructions.

After CM-12.1 is installed, flash either the GApps package linked above, or download openGApps, but only
the micro version
, otherwise there will be app conflicts between the CM apps and the GApps.


After flashing an image successfully, simply check for updates from System->About to update thereafter.


Device Names

Verify your device codename before downloading any firmwares or recovery images!

SM-G530W - gprimeltecan
SM-G530T - gprimeltetmo
SM-G530T1 - gprimeltemtr
SM-G530FZ - gprimeltexx

Note
Do NOT ask for help/post issues if you:
Code:
  • Have flashed mods (Xposed, etc);
  • Didn't read the OP;
  • Didn't follow intructions to the word.
And most of all, I'm not taking feature or device requests.

Disclaimer

I'm not willing to help anyone who damages their device because they didn't take the time to read any instructions I may have written
up, and I'm not willing to do any hand-holding when it comes to flashing custom firmwares. I assume beforehand that you know what terms
such as "Odin" and "recovery" mean in this context and the basics of flashing firmwares using Odin and custom recoveries.



These packages are distributed in the hope that they will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


I'm not responsible for any bricked devices, etc, etc, as a result of flashing these images. It is assumed that by downloading one of
these images you possess the prerequisite knowledge required to flash such firmware image.



Zip Instructions
  • Download and install a TWRP recovery file for your device if you are on stock recovery. You will have to flash the recovery
    .tar file for your device using ODIN (see ODIN Install below) or by using one of several applications from the Play Store such as
    Rashr (will require a rooted phone).

  • Download a recent .zip file from the links above for your device.
  • Reboot into recovery mode [Press Power+Volume Up+Home].
  • Wipe your data and cache partition (equivalent to doing a Factory Reset) if you are coming from a stock ROM.
  • Either: Plug in your phone into your computer, copy the zip file to a location on your Internal or External Storage on a
    device, click Install on TWRP on your phone and locate the zip file in the phone, or:
  • Plug in your phone into your computer, and open Advanced->ADB Sideload on TWRP on your phone and swipe the slider to enter
    sideload mode. Then open a command prompt/terminal on your computer in the folder you put the file by Shift-Clicking (Shift+Right
    Click)
    and selecting "Open Command Prompt/Terminal Here" (you will need to have adb installed) and type:

    Code:
    adb sideload name_of_zip.zip
    to sideload the file. Replace name_of_zip.zip with the name of the file. If you are running Linux you may need to type
    adb kill-server and use sudo adb sideload if you get an `Insufficient Permissions` error.
  • Download and flash GApps in the same way (optional).


ODIN Instructions


The flashable images are hosted at the link above.
The directory contains tar.md5.xz archives. The tar.md5.xz archives are named according to the date the image was built, e.g
cm_gprimeltecan-ddmmyyyy.tar.md5.xz and can be uncompressed to yield the flashable .tar.md5 archive.

Each ODIN flashable .tar.md5 contains the boot image, recovery image, and system image for flashing.

Installation
  • Enable Developer Mode on your phone and unlock the bootloader from the settings, if not done already.
  • Download a recent compressed flashable image above.
  • Reboot into Download Mode [Press Power+Volume Down+Home].
  • Extract the tar.md5.xz archive with 7zip or `xz -d cm_gprimeltecan-ddmmyyyy.tar.md5.xz` if under Linux or Cygwin to get a flashable
    tar.md5 file.

  • Flash the tar.md5 archive using ODIN by clicking AP and selecting the .tar.md5 file you just
    extracted. If the file was corrupted during download, the installation will fail. You will need to redownload the file in this
    case.
  • You will need to wipe your data and cache partitions afterwards (equivalent to a Factory Reset) if you are coming from a
    stock ROM, which can be done by rebooting into recovery [Power+Volume Up+Home].

  • Download and flash GApps (optional).

TL;DR: https://www.youtube.com/watch?v=fbabglAX5Ho

Changelog

01/11/2016
* [ fixed ] NFC is now working.
* [ note ] This batch will be the last build(s) for CM-12.1.


30/10/2016
* [ G530FZ ] Changed kernel source
* [ G530FZ ] Rear and front camera should be working as @kentone said.

12/09/2016
* [ G530FZ ] Enabled LTE
* [ G530FZ ] InputDisabler should now be working fine.
* [ G530FZ ] Fixed up camera code in kernel. If rear camera still does not work, then this is an issue in
the proprietary files.



08/09/2016
* Added a few more frequencies to the cpufreq kernel table (overclock to 1209MHz, and addition of 1152MHz).
Please don't request for me to add anything higher; the CPU is rated maximum for 1209MHz (even with nitrogen cooling, and so on), so it is
impossible to go past this.

* Added the "Particle" charging animation from the stock ROM. Off-mode charging should be working proper as well.
* Fixed Viper4Android (module was not named properly when copied to system).
* Updated InputDisabler code (the software that turns your touch screen off when you call).
* Tuned Kernel Samepage Merging to be less agressive with memory page merging. This should fix the responsiveness issues that popped up
in the last builds.

* ZRAM is available for all devices (fixed at 512MB), but only enabled by default for the G530FZ. There's a post somewhere on how to
enable it in the thread.
* Patched the update zips from today's builds with an old updater binary (zip updates should work again). I removed the zips from
Jenkins so they're only available from the /builds/ directory on the root of the web server.

* Added a few more screenshots.
* Any other changes in the log are more concerned with refactoring of code in the device trees, etc.

05/09/2016
* Added new build server [Bilbo]
* Added Viper4Android as the default equaliser.
* In-call audio now working.
* TWRP is now the default recovery [in the ODIN images]
* [ G530FZ ] Fixed zram properties, added other low-memory tweaks
* Enabled dex pre-optimisation [= Faster app startup, lower memory usage, quicker boots]
* I dunno what else, you check and see.

01/09/2016
* [ G530W ] The sleep of death issue should be gone on the latest successful build, and the device should be
going into deep sleep properly. I have yet to resolve this for the other devices (probably in a few days).

31/08/2016
* Fixed InputDisabler
* Added qcom powerHAL (might hopefully fix sleep issue)
+ Various other fixes ( file access permissions, kernel tweaks)

29/08/2016
* Initial work on cpu undervolting.

28/08/2016
* Fixed MTP support in TWRP (if you use TWRP, reinstall it).
* TWRP now shows proper disk free space information.
* adb sideload now works in TWRP (may need to kill adb server and start as root to do so).
* Added new device (SM-G530T1).
* Added VoLTE support to SM-G530FZ (Still no in-call audio ).
* Added darkness cpufreq driver (from Mokee kernel) to kernel.
* Enabled ZRAM by default in SM-G530FZ.
* Trebuchet and System UI should be working properly now (ostensibly it requires hardware rendering,
which is disabled on low-ram devices by default).
+ There may be other minor fixes I missed here.

25/08/2016
* MTP is now working (properly)

25/08/2016
* MTP is kinda working (I'm investigating)
* Modem is now fully working on G530FZ (calling, audio, data).
* All sensors (gyro, magnetic, proximity) working on G530FZ.

19/08/2016
* Fixed WiFi tethering
* Fixed issue with WiFi and bluetooth MAC addresses (were not set properly at boot).
* Added Samsung Doze app
+ Several other minor fixes and tweaks

14/08/2016
* Kernel is now built entirely from source
* WiFi should be working again on all builds

12/08/2016
* TWRP recovery is now available (I will not bother servicing any issues regarding this if it doesn't work for you, it is included here
purely for the purpose of providing a different recovery to those that want one.)

* There do not seem to be any more sleep-of-death issues (this seems to have ended the last build).
* Over-The-Air updates are now possible, simply check for updates from System->About (after flashing this image).

03/08/2016
* Recents button is now working (thanks @Has.007 !).
* I'm not going to be uploading any new images because I'm currently working on getting the kernel to build from
source, and (I'm occupied with exams and schoolwork in general), so no new images are going to be pushed until this works properly (I had
to cobble this one together from a failed build on the custom kernel).


31/07/2016
* Added a few tweaks concerning CPU frequency scaling so there should be power savings from that as well as lowered device temperatures.
* Kernel Adiutor frequency scaling now works properly.

30/07/2016
* The previous update was buggy and kept crashing, I pulled that one and uploaded a new one which should hopefully fix that.

29/07/2016
* Minor tweaks

25/07/2016
* Both front and rear camera work as expected now.
* Trebuchet now displays the lock screen image properly.
* Trebuchet now displays full windows in the Recent Apps switcher.
* GPS is working

24/07/2016
* WIP - I had uploaded an image but I pulled it because filesystem mounting was broken in this build.
* I have pushed a new image, but something broke in the build which is preventing the sdcard from being mounted at boot by Vold (an
explicit entry had to be put in the fstab). I will be reverting changes and looking for a fix so there might be no build for the next few
days.
* Mobile data is now working in this build, but phone calls can still neither be placed nor received.
* System detects SIM card properly.
* GPS is not working.
* Rear camera works properly with the default camera app, however the front camera does not work with the default application and trying
to switch to it will cause the app to crash and refuse to open.
* Recents button is still not working (I had thought I fixed it but apparently it isn't working).

23/07/2016
* Limited mobile connectivity [ sending/receiving texts ].
- Calls can be received or made but there is no audio (speaker or microphone).
- Mobile data is not working.
- Currently the system does not show the mobile connection as active, but texts can still be sent and received.
* Screen brightness controls working


22/07/2016

* Limited mobile connectivity [ sending/receiving texts ].
Currently the system does not show the mobile connection as
active, but texts can still be sent and received.
* Fixed troublesome cgroups problem, meaning:
Apps can now be installed on the device; and
Apps no longer crash.
* Minimal camera capability - camera image is distorted, and only back camera works.

21/07/2016
* Wifi connectivity now available. [module has to be manually loaded - use adb shell su modprobe wlan ]
* Bluetooth is now working.
* GPS is working.
* Audio is working (microphone, speaker)
* Multimedia playback working
* Sensors are working (magnetic, rotation/gyro,proximity)

21/07/2016

* Initial image created.


Known Issues

Quote:

================================================== ================================================== ================================================== ================================

All devices
Format: [PRIORITY] Issue.

  • [LOW] FM Radio app is not working

================================================== ================================================== ================================================== ================================

Issue Reporting
You can report issues with the ROM here on this forum.

Contribute
If you are familiar with Makefiles and the Linux shell, (optionally Java, C, C++) you can contribute directly to the
project by collaborating on working on the device and vendor trees.

You can also just download the ROM and report any issues and submit logcats.

Kudos
  • @Xenotoad for the extra build server [Bilbo].
  • ViPER520 and zhuhang for the awesome equaliser (Viper4Android).
  • @zim555 for the audio fix, and various other bits from his device sources.
  • @baran0119 who did some work on the G530FZ and on whose work the source is based on.


Screenshots
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	8844
Size:	90.8 KB
ID:	3850027   Click image for larger version

Name:	2.jpg
Views:	9082
Size:	129.8 KB
ID:	3850028   Click image for larger version

Name:	3.jpg
Views:	8902
Size:	71.7 KB
ID:	3850029   Click image for larger version

Name:	4.jpg
Views:	8708
Size:	24.8 KB
ID:	3850030   Click image for larger version

Name:	5.jpg
Views:	8730
Size:	56.9 KB
ID:	3850031   Click image for larger version

Name:	6.png
Views:	7132
Size:	57.4 KB
ID:	3869263   Click image for larger version

Name:	7.png
Views:	7110
Size:	71.1 KB
ID:	3869264   Click image for larger version

Name:	8.png
Views:	6726
Size:	77.1 KB
ID:	3869265   Click image for larger version

Name:	Screenshot_2016-09-08-06-15-31.png
Views:	6532
Size:	54.0 KB
ID:	3869270   Click image for larger version

Name:	Screenshot_2016-09-08-22-48-53.png
Views:	6452
Size:	53.2 KB
ID:	3869399  
The Following 24 Users Say Thank You to vince2678 For This Useful Post: [ View ] Gift vince2678 Ad-Free
 
 
24th July 2016, 10:14 AM |#2  
Junior Member
Thanks Meter: 10
 
Donate to Me
More
Here's the logcat for the kernel adiutor frequency issue. Let me know if there's anything else you need.
Attached Files
File Type: txt logcat.txt - [Click for QR Code] (395.4 KB, 166 views)
joe_5579
27th July 2016, 09:30 PM |#3  
Guest
Thanks Meter: 0
 
More
i'm new here but..
yesterday I installed this rom on my SM-G530W and I'm so happy with it. The front camera on default camera app is working perfectly fine. All that I desperately want fixed soon is data and calling
The Following User Says Thank You to For This Useful Post: [ View ] Gift Ad-Free
27th July 2016, 11:26 PM |#4  
vince2678's Avatar
OP Senior Member
Flag Toronto
Thanks Meter: 530
 
Donate to Me
More
Quote:
Originally Posted by joe_5579

yesterday I installed this rom on my SM-G530W and I'm so happy with it. The front camera on default camera app is working perfectly fine. All that I desperately want fixed soon is data and calling

Hi Joe,

The mobile data should be working on this build, did you try enabling it and checking?
The Following 2 Users Say Thank You to vince2678 For This Useful Post: [ View ] Gift vince2678 Ad-Free
joe_5579
27th July 2016, 11:53 PM |#5  
Guest
Thanks Meter: 0
 
More
Quote:
Originally Posted by vince2678

Hi Joe,

The mobile data should be working on this build, did you try enabling it and checking?

It's working now glad its working. Thank you btw for this rom once again. Question: If you were to fix an issue, would i have to just update my cyanogenmod to get the issue fixed?
The Following User Says Thank You to For This Useful Post: [ View ] Gift Ad-Free
28th July 2016, 05:50 AM |#6  
vince2678's Avatar
OP Senior Member
Flag Toronto
Thanks Meter: 530
 
Donate to Me
More
Quote:
Originally Posted by joe_5579

It's working now glad its working. Thank you btw for this rom once again. Question: If you were to fix an issue, would i have to just update my cyanogenmod to get the issue fixed?

You mean update via the System Settings? This ROM is not officially supported by Cyanogenmod, so there are no Over-The-Air updates, but you can just come here and check to see if I have fixed anything else, and download the ROM and flash it. That would indeed fix the issue.
The Following 2 Users Say Thank You to vince2678 For This Useful Post: [ View ] Gift vince2678 Ad-Free
joe_5579
28th July 2016, 12:35 PM |#7  
Guest
Thanks Meter: 0
 
More
Quote:
Originally Posted by vince2678

You mean update via the System Settings? This ROM is not officially supported by Cyanogenmod, so there are no Over-The-Air updates, but you can just come here and check to see if I have fixed anything else, and download the ROM and flash it. That would indeed fix the issue.

Thanks
28th July 2016, 11:07 PM |#8  
Senior Member
Thanks Meter: 149
 
More
Question
Quote:
Originally Posted by vince2678

Hi Joe,

The mobile data should be working on this build, did you try enabling it and checking?

Hey @vince2678

I'm getting hot to flash this! Does this mean phone calling is working as well? Does sms messaging work as well?

I'm keeping an eye on your issue log but don't see (or recognize) an entry for this issue.

And I have been watching your repos and see that you have been busy!

Also, I've tried to build your ROM and I'm getting the error below. Is this as simple as adding another remove-project entry in the manifest?

+ make otapackage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.6.4-301.fc24.x86_64-x86_64-with-fedora-24-Twenty_Four
HOST_BUILD_TYPE=release
BUILD_ID=LMY49J
OUT_DIR=/home/android/out
============================================
Checking build tools versions...
"ebtables is disabled on this build"
find: ‘dummy’: No such file or directory
build/core/base_rules.mk:154: *** platform_testing/tests/jank/webview: MODULE.TARGET.APPS.UbWebViewJankTests already defined by frameworks/webview/chromium/tests/UbWebViewJankTests. Stop.
28th July 2016, 11:57 PM |#9  
vince2678's Avatar
OP Senior Member
Flag Toronto
Thanks Meter: 530
 
Donate to Me
More
Quote:
Originally Posted by Zippy Dufus

Hey @vince2678

I'm getting hot to flash this! Does this mean phone calling is working as well? Does sms messaging work as well?

Hey @Zippy Dufus, SMS messaging has been working for a while, and mobile data has been working since the last two uploaded builds as well. Right now, the only troublesome aspect on the radio is the telephony, which isn't working as expected, but I am investigating the issue, and I *might* have a fix by tomorrow or the end of the weekend.
[/QUOTE]

Quote:

I'm keeping an eye on your issue log but don't see (or recognize) an entry for this issue.

All issues RIL or telephony related on the Issues page are concerning this, so don't worry, I'm definitely looking into it.
One major problem in getting things to work is that most of the proprietary binaries or libraries on the stock ROM from qcom or Samsung are simply undocumented and as such it is difficult to understand what exactly needs to be fixed to get the telephony aspect of RIL to work fully.

Quote:

And I have been watching your repos and see that you have been busy!

Also, I've tried to build your ROM and I'm getting the error below. Is this as simple as adding another remove-project entry in the manifest?

+ make otapackage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.6.4-301.fc24.x86_64-x86_64-with-fedora-24-Twenty_Four
HOST_BUILD_TYPE=release
BUILD_ID=LMY49J
OUT_DIR=/home/android/out
============================================
Checking build tools versions...
"ebtables is disabled on this build"
find: ‘dummy’: No such file or directory
build/core/base_rules.mk:154: *** platform_testing/tests/jank/webview: MODULE.TARGET.APPS.UbWebViewJankTests already defined by frameworks/webview/chromium/tests/UbWebViewJankTests. Stop.

I don't get this issue under my build. It looks like you have duplicate declarations for some tests in your build directory, could you try erasing all the code in your build directory and re-initialising it as follows:

Code:
cd /path/to/build/directory
rm ./*
repo -j sync
Making sure not to erase the .repo hidden directory in the build directory.

PS: I hadn't noticed this before, but it looks like you might have forgotten to do a . build/envsetup.sh && lunch cm_gprimeltecan_userdebug before running make -j otapackage, try that first, and if it doesn't work, then try resetting your build directory.
The Following 2 Users Say Thank You to vince2678 For This Useful Post: [ View ] Gift vince2678 Ad-Free
29th July 2016, 09:06 AM |#10  
snthe's Avatar
Senior Member
Thanks Meter: 46
 
More
Is camera have bug with manual focus with flash or not?
29th July 2016, 12:09 PM |#11  
vince2678's Avatar
OP Senior Member
Flag Toronto
Thanks Meter: 530
 
Donate to Me
More
Quote:
Originally Posted by snthe

Is camera have bug with manual focus with flash or not?

Hi snthe,

The cameras seem to be working correctly, if you have any issues, could you detail them more fully so that I can understand the problem?

Thanks.
Post Reply Subscribe to Thread

Tags
cm-12.1, custom rom, g530t, g530w, grand prime

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes