yashsingh1/xdaforums huggingface dataset:
[Galaxy Grand Prime Android Development] PhreakNJ:
I'm not 100% certain but I took a look at the G530H XXU/XCU build source and I found a commit that is described as "Fix on sim audio" hope this helps!

GitHub: ZIM555/android_device_samsung_fortuna3g - Commit: Fix on sim audio

I have an SM-G530T that I can test on if you'd like.
[Galaxy Grand Prime Android Development] cappakozy:
Damn, beat me to it. I also have a g530t I could test on.
[Galaxy Grand Prime Android Development] vince2678:
Can someone with a G530FZ confirm which one of these sets of commands on will disable the touchscreen on the phone:

Set 1:

> adb shell
> su
> echo 0 > /sys/class/input/input2/enabled
> #to re-enable the touch screen, type in:
> echo 1 > /sys/class/input/input2/enabled

Set 2:

> adb shell
> su
> echo 0 > /sys/class/input/input3/enabled
> #to re-enable the touch screen, type in:
> echo 1 > /sys/class/input/input3/enabled
[Galaxy Grand Prime Android Development] xNeutron:
For me build 31 doesn't flash.
[Galaxy Grand Prime Android Development] vince2678:
I don't like replying glib posts like this, because I can't help you if you don't explain fully what the problem is. So, for the last time, can you fully explain what the problem is?
[Galaxy Grand Prime Android Development] cappakozy:
Hey, will the 530h in call audio fix work on these phones?
[Galaxy Grand Prime Android Development] kamil79123:
[MENTION=7569388]vince2678[/MENTION]

The second one,

echo 0 > /sys/class/input/input3/enabled
[Galaxy Grand Prime Android Development] vince2678:
Who knows. We'll see.
[Galaxy Grand Prime Android Development] Zippy Dufus:
Hey [MENTION=7569388]vince2678[/MENTION], great news that the phone audio may be fixed and sad news about your build server.

Question, are your repos up-to-date? I've tried to build as recently as 09/03 and I couldn't get a build with either your local manifest in the repo or your manifest which I kludged locally to include your SELinux stuff.

All G530W users, if you successfully flash the latest build and the phone audio works, please let me know the procedure you used (Odin or zip file) and please confirm if the phone audio is working.

I'm really anxious to get using this build!

Also, [MENTION=7569388]vince2678[/MENTION], great work!! (but don't let this project distract you from your studies!)
[Galaxy Grand Prime Android Development] xNeutron:
Sorry man. So, it starts flashing the image, checks file system and it gets stuck on 'Patching system image unconditionally', actually only build 28 flashes. Using ur twrp. How can i flash a .tar.xz image? I'd like to try the odin one
[Galaxy Grand Prime Android Development] vince2678:
Check the first post under 'Old Instructions'. Leon also posted a video on YouTube in a post buried here somewhere, you can check that as well.
[Galaxy Grand Prime Android Development] vince2678:
No promises on the audio.

Did you try using the manifest from the gprimelte-common repository?
[Galaxy Grand Prime Android Development] cappakozy:
https://www.youtube.com/watch?v=fbabglAX5Ho

[MENTION=6778727]xNeutron[/MENTION] here's the video.
[Galaxy Grand Prime Android Development] xNeutron:
Worked. I've got a issue: my screen is flickering
[Galaxy Grand Prime Android Development] leoon0:
Go in stand-by Modus und you Fixed the bug[emoji6]
[Galaxy Grand Prime Android Development] kamil79123:
[MENTION=7569388]vince2678[/MENTION]

Wysłane z mojego SM-G530FZ przy użyciu Tapatalka
[Galaxy Grand Prime Android Development] vince2678:
In-call audio fix

OKKKKKKKKK, here's what everyone has been waiting for .... the magical solution to the audio issue.

Reboot into recovery and run these commands:

> adb shell
> mount /system
> echo "ro.telephony.samsung.realcall=true" >> /system/build.prop

I had applied that patch from ZIMs repository weeks ago, I had just missed that system property, sooooo, I'll push some updates soon with the sleep of death fix, but other than that, the ROM is pretty much complete :D .

PS: I guess there's still the 530FZ camera issue, but I'm at odds as to how to resolve that, and I'm reaaally tired, I need a break for like a week, so maybe I'll look at it then, maybe not.
[Galaxy Grand Prime Android Development] xNeutron:
Once fixed calls and camera rom is complete so why don't look at it?
[Galaxy Grand Prime Android Development] vince2678:
It's not that simple.

1) I don't have an FZ. I can't actively test anything for that device.

2) It's mostly a process of trial and error trying to fix the issues for the FZ. I'm never certain beforehand if a build is broken or not.

3) It takes time to make builds, and upload them (roughly 4 hours for a single device) and even more time to get a response from someone using the device on whether it worked or not.

4) I'm extremely tired, physically and mentally, and would like to do anything not related to this for a few days.
[Galaxy Grand Prime Android Development] cappakozy:
Annnnnd its over. I flashed this ROM a few hours before the audio fix. Lucky me. The sleep of death issue was awful for the first hour but then it fixed itself. Battery so far has not been a problem but I haven't done anything scientific. Really responsive though. Thank you [MENTION=7569388]vince2678[/MENTION] , I felt awful about buying this device until now.

I guess its "stable" haha.
[Galaxy Grand Prime Android Development] vince2678:
It's been a long (almost) two months, but I'm glad I can finally use my phone without having to ever think of ever using TouchWiz again (barely used the stock ROM anyways). Thanks for all the help, everyone who helped, and for those with an FZ, will still need the help to get the device ROM fully working.

It'll truly be stable once I spin today/tomorrow's builds. Currently suffering a few setbacks otherwise would have done it already.

PS: There might be people with the FZ and the G530W experiencing weird issues that others with the same device might not be (like probably the screen flicker and sluggish UI issue), I'll need to know a rough number of how many have this issue so I can consider doing separate builds for the different basebands.
[Galaxy Grand Prime Android Development] xNeutron:
Except for building and uploading i could test actively for you, this is my 2° device so i can do anything on this.

Question: Why i can't make screenshots? it looks like a permissions error
[Galaxy Grand Prime Android Development] vince2678:
Are you using the right combo (Power+Vol Down) and holding it down long enough?
[Galaxy Grand Prime Android Development] xNeutron:
Yup, he does the screenshot then gives me an error: not enough space or denied by app organizer.

I 've got 4gb free so it's okay about the space
[Galaxy Grand Prime Android Development] 1le:
Do you have any idea about why the FM radio app isn't working?

I would really like to help with this custom ROM, but I don't know that much coding :(. Nevertheless I think I still could maybe find what the issue is, as you don't seem too keen to find it :p.
[Galaxy Grand Prime Android Development] kamil79123:
[MENTION=7569388]vince2678[/MENTION]

Confirmed, with that command in-call-audio works! :)

Plus "last apps" works now properly! :)

Also I asked zim about camera , maybe he could help us.

---------- Post added at 03:21 AM ---------- Previous post was at 02:42 AM ----------

@xNeutron

Screenshots works fine for me. [MENTION=7569388]vince2678[/MENTION]

There is no flashlight in UI. i can't add it via settings, even via an app "Custom Quick Settings".
[Galaxy Grand Prime Android Development] vince2678:
There's a sysfs trigger for the flashlight but I'm on my phone right now so I'll post it later for you to try.
[Galaxy Grand Prime Android Development] vince2678:
I think the radio driver is not loaded properly by the system at boot, I'll need to check that.
[Galaxy Grand Prime Android Development] vince2678:
What device are you using? That's a strange error, can you take a logcat while trying to take a screenshot?
[Galaxy Grand Prime Android Development] leoon0:
[MENTION=6093642]kamil79123[/MENTION]

Where i have to run these commands
[Galaxy Grand Prime Android Development] kamil79123:
[MENTION=7516697]leoon0[/MENTION]

1. Enable USB Debugging in your phone.

2. Connect your phone via USB.

3. Open terminal.

4. Type these commands:

adb shell
su
mount -o rw,remount,rw /system
echo "ro.telephony.samsung.realcall=true" >> /system/build.prop

5. Re-boot phone. :)

---------- Post added at 04:03 AM ---------- Previous post was at 04:01 AM ----------

@vince2678

Flashlight does not work. :( Even apps cant detect LED.
[Galaxy Grand Prime Android Development] vince2678:
Can someone with an FZ run these commands:

> adb shell
> su
> cat /sys/class/camera/rear_*
> cat /sys/class/camera/front_*
[Galaxy Grand Prime Android Development] kamil79123:
[MENTION=7569388]vince2678[/MENTION]

No such file.
[Galaxy Grand Prime Android Development] vince2678:
I'd suggest you run the commands manually, because I guarantee you the build will fail to build at least once along the way, and you'll need to manually fix these issues before you can start automating it to an extent.

Heimdall does not work with the device. The Heimdall devs indeed do not have the device to test with, and If you want to avoid damaging your device, it's best to not use it.

Yes :D . These are the builds I have been uploading here.

Any android source you will pull (whether CM, Omni, AOSP, etc) ususally has an included recovery in the bootable/recovery directory (In the case of CM, this is now CyanogenMod Recovery. Formerly it used to be ClockWorkMod).

Normally the build just compiles the included CyanogenMod Recovery, which works fine for purposes of just basic recovery. You can try building TWRP on your own (I have not been able to do so successfully), but you will have to be prepared to spend time manually debugging the code and trying to manually fix it to work on this device.

You used "cm_gprimeltecan_userdebug" in your script for lunch instead of "cm_gprimeltecan-userdebug".

You should probably keep maven, it's needed by the build system.

You should change the path to "kernel/samsung/gprimeltecan"

I don't think you need to initialise the repo everytime you run the script. Just the once when you initially set up the repo, you'd only need to sync thereafter.

You should also pull the proprietary files from your device by using the scripts in the "vendor/samsung/gprimeltecan" directory.
[Galaxy Grand Prime Android Development] Zippy Dufus:
Making progress!

Hello again [MENTION=7569388]vince2678[/MENTION],

I fixed my long-since maintained "enema" script which selectively removes the folders in my working directory to delete some new folder, platform_testing, which has popped up for one of the devices I build so the issue with the duplicate symbol is resolved.

The only glitch that I have encountered so far is that you are missing a header file cryptfs_hw.h in $BUILDROOT/system/vold so I copied it from one that I found in $BUILDROOT/device/qcom-common/cryptfs_hw. I don't know if this is a correct header file for this device but it did allow the build to proceed.

Next, the build stopped at the proprietary firmware (see below). I'm wondering if you would consider creating a little git repo for this like this one for my old Samsung Galaxy phone? https://github.com/lollipopi9000/proprietary_vendor_samsung It has been a long time since I've had to fuss with the proprietary firmware for any of my devices. Of course, if your goal is to achieve official Cyanogenmod status for the Prime, you cannot do this.

Finally, I think that I was unclear about my question about flashing a ROM. I see that you are still uploading tarballs that are flashed with Odin. I'm interested in building a zip file which is flashable from the recovery. Have you successfully done this? Once I do the initial rooting with Windoze/Odin (unless I can find another proven rooting method such as kingroot which looks dodgy), I hope to be able to be able to do this from a recovery.

Your hint about TWRP was informative. I looked at whats involved with building it and it must be built against the device tree. This is probably true for Heimdall which would explain why it is not supported.

Thanks for your efforts and your help!!

^[[32mtarget Symbolic:^[[0m bootanimation (/home/android/out/target/product/gprimeltecan/symbols/system/bin/bootanimation)

^[[36mExport includes file:^[[0m frameworks/base/cmds/bootanimation/Android.mk -- /home/android/out/target/product/gprimeltecan/obj/EXECUTABLES/bootanimation_intermediates/export_includes

^[[32mtarget Strip:^[[0m bootanimation (/home/android/out/target/product/gprimeltecan/obj/EXECUTABLES/bootanimation_intermediates/bootanimation)

make: *** No rule to make target 'vendor/samsung/gprimeltecan/proprietary/lib/libtinyalsa.so', needed by '/home/android/out/target/product/gprimeltecan/system/lib/libtinyalsa.so'. Stop.

#### make failed to build some targets (05:46:19 (hh:mm:ss)) ####

Time elapsed: 05:49:43​
[Galaxy Grand Prime Android Development] vince2678:
I had neglected to mention this, mostly because it's one of those hacks you have to perform to get the thing building, and there's so many of them I've probably forgotten them all.

The reason I'm not making zips is because the build system refuses to make them for some reason. The make target for the OTA zips is not recognised, and I'm simply a bit too busy (and lazy) to look at it right now. I'll try sometime this week.

I had said in the former post:

Specifically the script vendor/samsung/gprimeltecan/extract_files.sh.

The reason for not including all the proprietary files is because the repository will become really huge. This is also to allow for any slight variations between the phone models which may use this device tree. Plus, the CM guides recommend having a script to be used to pull the files (which I included). The vendor trees on the git repos are usually sparse with only a few scripts and some Makefiles, so that's how I kept it.

I'll try putting in a make target for the build system to ask to pull the files, but again, it's not really a priority for me right now, so I'll look at it when I have the time.
[Galaxy Grand Prime Android Development] Zippy Dufus:
Don't let me rush you! It will be sometime before I am confident* enough to root and flash my daily driver phone. I'm just having fun shadowing your efforts!

* I believe that the factory ROM that I downloaded from sammobile.com is corrupt so it is all or nothing when I flash!

Again, take your time. I haven't been able to connect to my phone with adb to pull the firmware (must be rooted?) so I downloaded your cm_gprimeltecan-03082016.tar.xz file, pulled out the system.img.ext4, converted it with simg2img and got the firmware.

Again, many thanks.
[Galaxy Grand Prime Android Development] medfariddd:
work on fz ?
[Galaxy Grand Prime Android Development] vince2678:
Yes, it should work on the FZ just fine.

*NOTE: If you flash this on an FZ, it will still list the device as a SM-G530W in the System Settings, but that's just a minor thing and completely inconsequential.
[Galaxy Grand Prime Android Development] Zippy Dufus:
Hi [MENTION=7569388]vince2678[/MENTION]

I've noticed a new issue (see below) since your last sets of commits. Is this my doing or a legitimate issue? I waited for a second second set of commits before reporting it.

I almost (well maybe) got the whole build to complete before this issue cropped up. I took me a while to resolve and line up the correct firmware objects.

Again, no hurries! I'm just hacking around and may veer off to see if I can get TWRP to compile for this device. But no promises on this!

Thanks!

Notice file: external/sepolicy/NOTICE -- /home/android/out/target/product/gprimeltecan/obj/NOTICE_FILES/src//root/property_contexts.txt

Install: /home/android/out/target/product/gprimeltecan/root/property_contexts

target Prebuilt: system_core_charger_battery_fail.png (/home/android/out/target/product/gprimeltecan/obj/ETC/system_core_charger_battery_fail.png_intermediates/battery_fail.png)

Install: /home/android/out/target/product/gprimeltecan/root/res/images/charger/battery_fail.png

target Prebuilt: system_core_charger_battery_scale.png (/home/android/out/target/product/gprimeltecan/obj/ETC/system_core_charger_battery_scale.png_intermediates/battery_scale.png)

Install: /home/android/out/target/product/gprimeltecan/root/res/images/charger/battery_scale.png

make: *** No rule to make target '/home/android/out/target/product/gprimeltecan/obj/KERNEL_OBJ/usr', needed by '/home/android/out/target/product/gprimeltecan/obj/EXECUTABLES/adbd_intermediates/adb.o'. Stop.

#### make failed to build some targets (06:19 (mm:ss)) ####

Time elapsed: 00:18:08

real	18m7.542s

user	4m3.847s

sys	5m53.222s

​
[Galaxy Grand Prime Android Development] vince2678:
Yeah, I had reverted some of the changes I had made for building a kernel from source because I couldn't get the kernel to boot proper with the Android system. Try updating the device and vendor trees in a few minutes and it should build again.

I've managed to get TWRP building just yesterday, I just hadn't put it up yet.
[Galaxy Grand Prime Android Development] medfariddd:
screenshots please !
[Galaxy Grand Prime Android Development] leoon0:
I wanted to install the rom on my sm-g530fz but it fails every time. how i can fix this problem?
[Galaxy Grand Prime Android Development] vince2678:
How exactly is it failing and how were you trying to install it? If there's an error message, could you detail it, or if it got stuck booting up, etc, detail that as well.
[Galaxy Grand Prime Android Development] leoon0:
I tried to install it with twrp and there's an error massange but I give you the details tomorow because I want to sleep now :D
[Galaxy Grand Prime Android Development] vince2678:
I think I might know what it is, but just to confirm, was it an error saying the image you wanted to install was not compatible with the phone?

If this is the case, you'll need to flash it using ODIN because it means the device name in the zip image is not the same as the one of the installed system, and recoveries will refuse to install the image if that is the case (even if it will work).
[Galaxy Grand Prime Android Development] leoon0:
Yes I think so to but I don't understand the instructions
[Galaxy Grand Prime Android Development] Zippy Dufus:
Hot dog!!

[MENTION=7569388]vince2678[/MENTION], you are awesome!

I'll play with this for the next couple weeks (because I need my phone in good working order during this period), review some hacked things such as firmware, and watch your activities.

Looking forward to flashing, thanks!

...

...

using prebuilt boot.img from IMAGES...

boot size (9936896) is 72.90% of limit (13631488)

running: openssl pkcs8 -in build/target/product/security/testkey.pk8 -inform DER -nocrypt

running: java -Xmx2048m -jar /home/android/out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 /tmp/tmplu_JXZ /home/android/out/target/product/gprimeltecan/cm_gprimeltecan-ota-a216a24f12.zip

done.

#### make completed successfully (08:54:02 (hh:mm:ss)) ####

Time elapsed: 08:57:19

​
[Galaxy Grand Prime Android Development] medfariddd:
link cm12.1 for fz please !
[Galaxy Grand Prime Android Development] arnaudbails:
perhaps we have to install Cyano with Lollipop installed and not Kit kat Version (i don't know wich version you had installed on your device)

P.S : t'es français ? ce serait cool de ce mp sur cette rom
[Galaxy Grand Prime Android Development] leoon0:
this is the recovery log:

Installing '/external_sd/Downloade/cm12.1-20160812-NIG

HTLY-gprimeltecan.tip'...

Checking for MD5 file...

Skipping MD5 chack: no MD5 file found

detected filesystem ext4 for /dev/block/bootdevice/by-

name/system

Can't install this package on top of incompatible data

. Pleas try another package or run a factory reset

E:Error executing updater bunary in zip '/external_sd/

Downloade/cm12.1-20160812-NIGHTLY-gprimeltecan.tip'

Error flashing zip '/external_sd/Downloade/cm12.1-2016

0812-NIGHTLY-gprimeltecan.tip'

upadating partition details...

E: Unable to statfs '/data/.'

E:df /data > /tmp/dfoutput.txt process ended with ERRO

R=1

E: Unable to statfs '/data/.'

E:df /data > /tmp/dfoutput.txt process ended with ERRO

R=1

E: Unable to statfs '/system/.'

E:df /system > /tmp/dfoutput.txt process ended with ER

ROR=1

E: Unable to statfs '/system/.'

E:df /system > /tmp/dfoutput.txt process ended with ER

ROR=1

...done

---------- Post added at 10:42 AM ---------- Previous post was at 10:41 AM ----------

i used the lollipop version
[Galaxy Grand Prime Android Development] arnaudbails:
The thing is , the ROM is not compatible with FZ variant, the dev will bring a FZ version later
[Galaxy Grand Prime Android Development] vince2678:
Oh, yeah, made a mistake, it's supposed to be:

> adb shell
> su
> cat /sys/class/camera/rear/rear_*
> cat /sys/class/camera/front/front_*
[Galaxy Grand Prime Android Development] kamil79123:
[MENTION=7569388]vince2678[/MENTION]
[Galaxy Grand Prime Android Development] leoon0:
thanks but i get this in my terminal
[Galaxy Grand Prime Android Development] kamil79123:
[MENTION=637167]leeon[/MENTION]0 You havent got adb drivers installed...

You can enter these commands in android terminal, just without adb command, or change line in build.prop.

Wysłane z mojego SM-G530FZ przy użyciu Tapatalka
[Galaxy Grand Prime Android Development] leoon0:
i set it in build.prop to true but audio doesn't work
[Galaxy Grand Prime Android Development] kamil79123:
Did you re-boot?

Wysłane z mojego SM-G530FZ przy użyciu Tapatalka
[Galaxy Grand Prime Android Development] leoon0:
Yes
[Galaxy Grand Prime Android Development] arnaudbails:
So , to me In call audio Work (i use terminal emulator (don't forget to enable root in development tools settings)) but Rear camera don't work at all :)

I'm using FZ variant
[Galaxy Grand Prime Android Development] dudematthew:
I tried it by console & twrp recovery- not working but commands have been succesfully activated

Btw. Du guys have the same green color of front camera record?
[Galaxy Grand Prime Android Development] sev0two:
How do I run adb on my computer . Soi enable usb debug, I connect my phone via usb, then how do I run terminal?
[Galaxy Grand Prime Android Development] arnaudbails:
you launch CMD from windows , simple of that :)
[Galaxy Grand Prime Android Development] :
when I launch cmd, all i do is type the code and then reboot? :)
[Galaxy Grand Prime Android Development] arnaudbails:
that's it ! ;) before that be sure that you enabled root on your phone ;) (it's in dev tools setting before about device)
[Galaxy Grand Prime Android Development] :
Thankyou :)
[Galaxy Grand Prime Android Development] cappakozy:
Anyone have a kernel auditor profile from the stock ROM? I feel like there is an overclock, just by launching youtube and reddit is fun.
[Galaxy Grand Prime Android Development] xNeutron:
So, i made a try to dump the log to a .txt and this is the error:

130|root@gprimeltexx:/ # logcat -v > screenshot.txt

/system/bin/sh: can't create screenshot.txt: Read-only file system

1|root@gprimeltexx:/ #

So, quite impossible for me givin' to u a logcat
[Galaxy Grand Prime Android Development] kamil79123:
[MENTION=6778727]xNeutron[/MENTION]

Mount system in RW...

Wysłane z mojego SM-G530FZ przy użyciu Tapatalka
[Galaxy Grand Prime Android Development] xNeutron:
1|root@gprimeltexx:/ # mount -o rw,remount,rw /system

root@gprimeltexx:/ # logcat -v > screen.txt

/system/bin/sh: can't create screen.txt: Read-only file system

1|root@gprimeltexx:/ #

[MENTION=6093642]kamil79123[/MENTION]
[Galaxy Grand Prime Android Development] arnaudbails:
Hey vince ! What is "Bilbo" version of your Rom ? What's mean this name code :D

Thx for all your work ! ;)
[Galaxy Grand Prime Android Development] xNeutron:
[MENTION=7569388]vince2678[/MENTION]

Done!! https://www.dropbox.com/s/jv1r2actor8p9o0/screenshot12.txt?dl=0
[Galaxy Grand Prime Android Development] sev0two:
hey when i instal tmo 9-5 update it says 8-28 in my settings, and its a real quick flash when i flash the update.. i think something went wrong