yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9506 Android Development] solk2:
Thanks. Yes It's better to send long logcats.

Try this libqc-opt.so for camera. Had to hex edit dependency. Don't know if it will work, but worth trying.

I need logcat -b radio to see whats wrong with network.

To fix display please send me contents of /sys/class/lcd/panel/ and /sys/class/lcd/panel/power_reduce value.
[Galaxy S 4 i9506 Android Development] solk2:
Looks like it somehow deletes /data/time. So thats why you time resets after flashing. Try CWM.
[Galaxy S 4 i9506 Android Development] awicks:
I always wipe /data/ before a clean flash. Is this correct?
[Galaxy S 4 i9506 Android Development] solk2:
If you upgrading from older cm to newer then you don't need this. But this is the answer why your time always resets. time_daemon stores time offset in /data/time.
[Galaxy S 4 i9506 Android Development] awicks:
If I'm upgrading then I simply flash over the top. If I'm starting again the I wipe. Would it worth flashing stock, copying /data/time, wiping, flashing CM and then replacing /data/time?
[Galaxy S 4 i9506 Android Development] solk2:
You can do like this if you want. Then you should have normal date after wipe. But I don't really understand why you need this.
[Galaxy S 4 i9506 Android Development] awicks:
I think I have finally managed to get my time working :) I flashed stock, copied /data/time, wiped, installed 1218 and tried overwriting /data/time with the copied version from stock. This didn't work and just resulted in time being reset to 00:00 01/01/14 on every reboot.

Finally, I changed the file permission for the contents of /data/time to 777 and this now works. It was -rw------- and I have now changed it to -rwxrwxrwx, what should it be set to? Could the issue have been as simply as incorrect file permissions?
[Galaxy S 4 i9506 Android Development] boart:
new logcat.

that was the command:

adb logcat -v long -b radio>logcat.txt
[Galaxy S 4 i9506 Android Development] DualJoe:
Again, you usually don't need to do this at all. Once you connect to the internet the files will be recreated automatically from the system that will be persistent for all following sessions/reboots. It shouldn't be worth all the hassle just to have correct time on very first boot.
[Galaxy S 4 i9506 Android Development] awicks:
The time was incorrect on every reboot, hence the annoyance.
[Galaxy S 4 i9506 Android Development] boart:
new logcat.txt
[Galaxy S 4 i9506 Android Development] lkarus:
happy new year :)

no reboots since 20141207
[Galaxy S 4 i9506 Android Development] puschel_1:
Me too, but yellow ground on display with the unofficial version...

Gesendet von meinem GT-I9506 mit Tapatalk
[Galaxy S 4 i9506 Android Development] DualJoe:
I did a "stop mpdecision" and the service/process is gone indeed but there's still a touchboost to 11xxMHz. Isn't 'mpdecision' responsible for that?
[Galaxy S 4 i9506 Android Development] hr2:
no charge

turn off, no charge
[Galaxy S 4 i9506 Android Development] NZgeek:
I've seen this with my wife's phone. If you connect the charger with the phone turned off, it enters some sort of boot loop. It never seems to enter whatever state it needs to be in to charge.
[Galaxy S 4 i9506 Android Development] hal2100:
The beauty of error reporting: After telling you about the problem with the lockscreen it didn't show up until after New Years eve. I will look into logcats...
[Galaxy S 4 i9506 Android Development] Driftking007:
loading when phone is off isnt working.

Looks like a bootloop.
[Galaxy S 4 i9506 Android Development] MildlyRegularPerson:
Sim internet isn't working for me in your cm 12 build
[Galaxy S 4 i9506 Android Development] TonskuDaigle:
It seems to be the same for everyone.
[Galaxy S 4 i9506 Android Development] MildlyRegularPerson:
Hope it's solved soon. I'll post logcats if necessary.:)

---------- Post added at 04:14 PM ---------- Previous post was at 04:08 PM ----------

Also in cm 11 when I put a torch widget in the homescreen it doesn't show the high brightness option. I read in other thread that it's blocked because of security reasons, but I'm not completely sure.
[Galaxy S 4 i9506 Android Development] MildlyRegularPerson:
I made a clean install of 0105 and now whatsapp gives me an error and sais that time is wrong. Also if I turn on plane mode and I restart the phone the time is wrong.
[Galaxy S 4 i9506 Android Development] awicks:
I had this on 1218. Change the file permissions on /data/time/* to allow the time offset to be written on boot. See a few pages back for when I wrote more details.
[Galaxy S 4 i9506 Android Development] MildlyRegularPerson:
I tried to change perimissions, but with not success. I'll copy the file from stock rom and see what happens.
[Galaxy S 4 i9506 Android Development] likesatan:
Weird. Try by adding add time_daemon from cyanogenmods jira of hlte and replace it in /system/bin of this version. It will probably solve the problem !

Regards,

Likesatan
[Galaxy S 4 i9506 Android Development] MildlyRegularPerson:
Thanks for replying, still having the issue. I realised that when I delete the file ats_1 in /data/time on very first boot time shows 1:00 and if I reboot my phone after 5 min it shows 1:05 but then it's changed because of connecting to Internet.

---------- Post added at 08:06 AM ---------- Previous post was at 07:56 AM ----------

The problem isn't that time resets on every boot. It has something like a secondary date which is corrected after boot.
[Galaxy S 4 i9506 Android Development] likesatan:
Hum weird try this :

1) Set correct time

2) Save your time_daemon from system/bin

3) Delete time_daemon from system/bin

4) Reboot

5) Report to us ahah

6) If not working restore back time_daemon to system/bin

Info it explain why you're having troubles : http://osr507doc.sco.com/en/NetAdminG/tspC.how.html

Regards,

Likesatan
[Galaxy S 4 i9506 Android Development] MildlyRegularPerson:
Still having trouble.

---------- Post added at 05:50 PM ---------- Previous post was at 05:44 PM ----------

Also charging when phone is switched off doesn't work. Seems like a bootloop. It shows an ? while trying to charge with the phone switched off.
[Galaxy S 4 i9506 Android Development] likesatan:
I had the same problem while the phone powered off was charging. But after a while phone booted imself.

I don't have any new ideas for time fix yet.

Regards,

Likesatan
[Galaxy S 4 i9506 Android Development] MildlyRegularPerson:
It doesn't matter. As soon as cm 12 build gets more stable I'll use it instead of cm 11.
[Galaxy S 4 i9506 Android Development] likesatan:
CM12

Hey,

You should try CM12 port from Arter97. It's awesome. Reallly.

I'm using now 4.1 version. Kernel 3.6.1.

With Greenify and PACperformance (free app to set up your CPU) my battery is up to 20h.

I'm using it all the time.

Will post some stats if you want.

If you need anything about it juste ask.

Regards,

Likesatan
[Galaxy S 4 i9506 Android Development] MildlyRegularPerson:
Sounds really well. Will try it ;)
[Galaxy S 4 i9506 Android Development] Salvoid7:
i'm getting random reboots. it happens about two times a day. i have 20150103 installed. can i somehow fix the problem?

thanks in advance!
[Galaxy S 4 i9506 Android Development] boart:
Same here
[Galaxy S 4 i9506 Android Development] DualJoe:
Post '/proc/last_kmsg' after crash. It holds the log from previous session so don't boot twice.
[Galaxy S 4 i9506 Android Development] Salvoid7:
here is the log
[Galaxy S 4 i9506 Android Development] DualJoe:
Thanks. Solk2 needs to look over it.

Do you use auto-brightness? Just a wild guess but to workaround the bug it might help stabilize the system by changing to static brightness. You can enable 'status-bar' swiping for quick brightness change (Settings/Status bar/Brightness control).

Looks like the last thing your system did was changing the brightness and then it got lost somewhere in a timer routine. If there's an instability in brightness control/display driver indeed you might lower the chance of triggering the bug by changing to static brightness. At least that's the theory... :)

I do use static brightness and i haven't encountered this bug so far.
[Galaxy S 4 i9506 Android Development] solk2:
Thanks.

Made some changes that can fix this bug. New build will be available on 18/01.
[Galaxy S 4 i9506 Android Development] boart:
It is a really good rom from arter, but solk2's cm12 will be official and will be build from cyanogenmod source. Just give solk2 a bit more time and it will be awesome as well.... WITH ota updates.
[Galaxy S 4 i9506 Android Development] Salvoid7:
alright i will test it for the next days, thanks! :good:
[Galaxy S 4 i9506 Android Development] MildlyRegularPerson:
Time fixed in latest build.
[Galaxy S 4 i9506 Android Development] puschel_1:
Switched from unofficial version back to official 20150118 and got reboots again (during scrolling in Chrome).

My wife was not able to copy last_kmsg...

Gesendet von meinem SM-G900F mit Tapatalk
[Galaxy S 4 i9506 Android Development] boart:
I had same problems with my latest cm11 version
[Galaxy S 4 i9506 Android Development] neumann:
I had a reboot with latest version too. Attached the log, I hope it helps. What I also realized is, that bluetooth prevents the system from entering into deep sleep. Is anybody else also experiencing this problem?
[Galaxy S 4 i9506 Android Development] neumann:
Had another crash today, but not a reboot, the system was unresponsive and I had to reboot.
[Galaxy S 4 i9506 Android Development] puschel_1:
So which is the latest "stable" nightly? Or do I have to go back to unofficial version? Or give up official CM and switch to arter97's CM11/12...

Gesendet von meinem SM-G900F mit Tapatalk
[Galaxy S 4 i9506 Android Development] solk2:
Thats good one log. Damn samsung hardware looks like have a another bug that they workarounded in kernel. Which I removed. I'll make new UNOFFICIAL build today.
[Galaxy S 4 i9506 Android Development] solk2:
Uploaded this build cm-11-20150121-UNOFFICIAL-ks01lte.zip. mirror. Please test.
[Galaxy S 4 i9506 Android Development] puschel_1:
Tried it, but phone does not boot. Stops with black screen after S4 logo. Back to official and all ok, but reboots...

Gesendet von meinem GT-I9506 mit Tapatalk
[Galaxy S 4 i9506 Android Development] puschel_1:
And here a logfile after reboot.

Thanks in advance!
[Galaxy S 4 i9506 Android Development] Dabman:
all the time when i try to install cm using TWRP_2.8.1.0_ks01lte_20141127 or CWM_6.0.4.6_Non-Touch_GT-I9506 installation is aborted.

What is the problem?
[Galaxy S 4 i9506 Android Development] solk2:
Uploaded new build 2101. Previous was faulty. But didn't updated it on google drive yet.
[Galaxy S 4 i9506 Android Development] solk2:
And what message it posts?

Most likely you need to do factory reset before installation.
[Galaxy S 4 i9506 Android Development] solk2:
New build: cm-11-20150122-UNOFFICIAL-ks01lte.zip, mirror.
[Galaxy S 4 i9506 Android Development] solk2:
First install newer cwm.

And you need to do wipe/factory reset.
[Galaxy S 4 i9506 Android Development] neumann:
Thanks solk, I'm testing it now. Biggest problem I have so far is, that the capacitive buttons (menu, back) don't work. Is there any solution or quick fix to bring them back?
[Galaxy S 4 i9506 Android Development] joshkun:
Try clean flash the latest stock rom to upgrade you bootloader to the new one.

then flash twrp 28.1 the latest. then try cm 11. I hope that will help
[Galaxy S 4 i9506 Android Development] solk2:
Must be screewed it up when was switching from cm-12. I'll make new build today.
[Galaxy S 4 i9506 Android Development] neumann:
I tried your version from the 23th, but unfortunately it's not booting.
[Galaxy S 4 i9506 Android Development] neumann:
I just realized, version from 23th was CM12. Actually there was no new version to test.
[Galaxy S 4 i9506 Android Development] neumann:
For some strange reason my camera doesn't focus anymore. I tried different apps and also tried to reinstall cm11. Nothing helped. Does anybody know, what to do? I attached a log.
[Galaxy S 4 i9506 Android Development] lkarus:
random reboot while using Google maps. no other recently opened apps. can somebody tell me where to find log to post it here?
[Galaxy S 4 i9506 Android Development] solk2:
Looks like bug is fixed in cm-12. So already merged this fixes in cm-11. Will upload new build today.

There was troubles with building CM, so couldn't do it on weekends.
[Galaxy S 4 i9506 Android Development] solk2:
New build: cm-11-20150126-UNOFFICIAL-ks01lte.zip and mirror.

MD5: 1334f4d49422b4758dbf1f02e01854fd
[Galaxy S 4 i9506 Android Development] hou$$:
Hello no more update under settings\About phone\CyanogenMod updates\Check for updates ?
[Galaxy S 4 i9506 Android Development] solk2:
Yes. Migrated to cm-12. Only snapshots will be there.
[Galaxy S 4 i9506 Android Development] neumann:
Thanks for the new version. But capacitive buttons are still not working and the camera is still blurry and can't focus. Is there any kind of log I can provide to help you solving this?
[Galaxy S 4 i9506 Android Development] solk2:
Switching from cm-12 to cm-11 sometimes incomplete. Here is new builds: cm-11-20150127-UNOFFICIAL-ks01lte.zip and mirror.

MD5: 9f74e97f0b4d0652c9c7ab4b5a5e0ff6
[Galaxy S 4 i9506 Android Development] Taurdas:
Hi solk, could you please tell me how is your builds different from arter's and the the one from official CM site?
[Galaxy S 4 i9506 Android Development] neumann:
Solk, thanks for the update! Unfortunately the two issues, no capacitive buttons and camera blurry, still exists.
[Galaxy S 4 i9506 Android Development] neumann:
I had another crash this morning with the latest version.
[Galaxy S 4 i9506 Android Development] solk2:
Sorry. Previous build was corrupted. Here is good one for sure: cm-11-20150127-UNOFFICIAL-ks01lte.zip and mirror.
[Galaxy S 4 i9506 Android Development] DualJoe:
[MENTION=5291759]solk2[/MENTION]:

Is there no write cache for external sdcard? I mean, there's not even an initial speed boost during copy process that would indicate a write buffer. Performance is not quite satisfying.

Throughput/copying is fluctuating alot (thus slow). Average with FTP->ext.sdcard is ~2-3MB/s (on single file 200MB). FTP->ramdisk is >5MB/s (WiFi maximum).

First red block is FTP copy (200MB) to extSdcard. Second red block is FTP copy to ramdisk.

Copying to internal nand is ok (not shown here).

Large blocksize sequential writes are ok:

It seems it only appears on specific conditions/scenarios. I guess apps/tools probably use fsync() way too heavy. NAND doesn't seem to be affected though.

Running fine so far, thx. :)
[Galaxy S 4 i9506 Android Development] neumann:
This version runs very good so far, buttons are back and also camera works fine! Thanks a lot!
[Galaxy S 4 i9506 Android Development] MildlyRegularPerson:
I have a problem with the advanced reboot menu in developer options. When I try to reboot into recovery it gets stuck in "Rebooting...". Then I have to pull out the battery and when it boots battery has drained about 10%. I've been having this error since 0125
[Galaxy S 4 i9506 Android Development] DualJoe:
Same here but i don't need to pull battery. Holding power to hard reset still works. Cannot pull logs atm.

Edit: I had no deep sleep since i flashed latest rom. Need to test that more to make sure.
[Galaxy S 4 i9506 Android Development] neumann:
For me deep sleep is only blocked, if bluetooth is on. After some research with BetterBatteryStats, I found out, that msm_serial_hs_dma is causing the wakelock. I found this information, but I'm not sure, if this is related to this rom: http://xdaforums.com/showthread.php?t=1786981

Is somebody able to comment on this?
[Galaxy S 4 i9506 Android Development] solk2:
I'll upload new version today or tomorrow.
[Galaxy S 4 i9506 Android Development] solk2:
There no such thing on KK. This is different. I'll look into it.
[Galaxy S 4 i9506 Android Development] hendroids:
Hi solk2,

Thanks for the hard work on bringing a custom rom to the table for i9506...

Much appreciated!

Can I confirm if it is possible to run this ROM on a 4.2.2 bootloader?

If not, will it ever be possible??

The issue with bootloader 4.3 and above is KNOX feature becoming enabled and triggering eFuse...

Appreciate your help!

Keep up the good work! :good:
[Galaxy S 4 i9506 Android Development] xinu:
i tried flash it again and wipe, now everything works ok
[Galaxy S 4 i9506 Android Development] solk2:
In theory it can work on both bootloaders. There may be some issues with parameters. But I think it can boot on both. But I don't have much time to play with bootloader right now. If you have time and willing. You can try to boot on different bootloaders and post results. After all I hope samsung will release KitKat for I9506 and then I'll be working with 4.4 bootloader only.

I don't know what to do with KNOX and eFuse coz I even don't know how it works on stock. I had 4.3 Orange branded preinstalled firmware. But I didn't had any issues nor with KNOW nor with eFuse.
[Galaxy S 4 i9506 Android Development] almog2900:
Hi solk2.

What kind of cpu You recommend? ondermand? interctive? and set the min to 300? or stay it on 1700? sorry for my english.
[Galaxy S 4 i9506 Android Development] DrDee:
Is there a solution for CPU min yet?

I seem to recall a very similar issue with the Nexus 5 and initial release of CM11. Might see if I can dig up the solution for the Nexus 5 and see if relevant.
[Galaxy S 4 i9506 Android Development] solk2:
I am currently working on it. Looks like its mpdecision hangs at 1700. And it is not CMs or kernel bug. I am trying mpdecision from other msm8974 devices maybe i'll find one that works better.

Ondemand works more stable but sometime it is a bit laggy. While on interactive it stucks at 1700 more often. So it yours choice.

EDIT: Uploading new version with mpdecision from LG G2. Please post if it fixes min freq bug.
[Galaxy S 4 i9506 Android Development] solk2:
If you find one. Please tell me. I'll include this in tree.
[Galaxy S 4 i9506 Android Development] tlund:
black screen after locking

I running cm-11-20140611-UNOFFICIAL-ks01lte on my GT-I9506.

Since I was using DeHAWKs Pre-Rooted 4.3 ROM from http://xdaforums.com/showthread.php?t=2767448 I think I have the 4.2.2 bootloader, but I am unsure how to verify this?

After pressing the power button to lock the screen, it stays black. When I press the power button to unlock, the "menu" and "back" buttons light up, but nothing else happens.

logcat attached.

SOLVED:

I think I solved the problem! I had previously adb push:ed the keymaste.* files to /firmware/image/ via the recovery image, but found that they were not there. I re-pushed them while booted into cm11 and now I can lock/unlock the device.

This is what I did:

with adb shell, after becoming root: umount firmware and then mount -w -o rw -t vfat /dev/block/platform/msm_sdcc.1/by-name/apnhlos /firmware

then I adb pushed keymaste.* to /firmware/image/

UPDATE - not permanent

After rebooting the files are missing again :( does anyone have ideas on how to fix this permanently?
[Galaxy S 4 i9506 Android Development] solk2:
Same as was above.

Error::Cannot open the file /vendor/firmware/keymaster/keymaster.mdt

You need to update to 4.3 first.
[Galaxy S 4 i9506 Android Development] tlund:
No, I found a persistent solution!

I booted to recovery and mounted /system

Then I created the directory /system/vendor/firmware/keymaster/

I uploaded the keymaste.* files and renamed them to keymaster.*

No more com.android.systemui crashes, and now lock/unlock screen works!
[Galaxy S 4 i9506 Android Development] solk2:
Basicly its the same. But thanks for this solution for those who don't want to upgrade to 4.3.
[Galaxy S 4 i9506 Android Development] mubeen_94:
has anyone tried to port the stock 4.4.2 ROM from shv-e330s to gt-i9506??? we haven't got the official update yet, but it

will be nice if we can get an official ROM in an unofficial way
[Galaxy S 4 i9506 Android Development] solk2:
There could be a lot of problems. Coz modems are different. gpios different. Mostly coz of wireless charger. And coz of modem is different the audio is different. But who knows. Maybe just replacing ril, acdbs and kernel will get it working.
[Galaxy S 4 i9506 Android Development] mubeen_94:
[MENTION=5291759]solk2[/MENTION] have you tried to do it? I mean I was looking forward to download the official shv-e330s 4.4.2 stock ROM and check it out. I was looking for a few guides on XDA about porting ROMs from one device to another.
[Galaxy S 4 i9506 Android Development] almog2900:
Negative. It stills Back to 1700 sometimes. not fixed 100%.
[Galaxy S 4 i9506 Android Development] solk2:
I didn't tried it. Don't have time for it.
[Galaxy S 4 i9506 Android Development] solk2:
Thanks. Saw this too. Then I'll keep searching where it changes.
[Galaxy S 4 i9506 Android Development] DrDee:
http://forum.cyanogenmod.com/topic/84953-min-cpu-frequency-wont-stick/

This is the thread I thought of, problem seems identical, they get around it by using faux or franco kernel, then there is indication it is fixed in 17 January CM11 build for Nexus 5.

I have linked the code review of the fix for Nexus5 if helpful:

http://review.cyanogenmod.org/#/c/57436/
[Galaxy S 4 i9506 Android Development] tlund:
When I reboot my device, date and time gets reset. (I do not have a SIM-card in my device and Automatic date&time + timezone are off)

(The date gets reset to Jan 1 2014.)
[Galaxy S 4 i9506 Android Development] mezo91:
CM kernel:

cm-11-20140611-UNOFFICIAL-ks01lte.zip

Google drive

Temasek kernel:

cm-11-temasek-20140611-UNOFFICIAL-ks01lte.zip

Google drive

which one should i flash?
[Galaxy S 4 i9506 Android Development] neumann:
Hi solk, I had one crash and one reboot today. Attached the logs. Hope they help finding the cause for it.
[Galaxy S 4 i9506 Android Development] NeuDLi:
Unfortunately the Changelog on http://www.cmxlog.com/11/ks01lte/ is dead, there is just the message "err01: Device incorrect or not supported. Device may have been transitioned to CM12 nightlies.".

Is there any way to access the old changelogs? And how about future CM11 versions, will there be a changelog? Before flashing I like to check if anything has changed that is worth flashing.

I also had a spontaneous reboot using google maps on the latest official nightly. And I believe that battery drain has increased sufficiently on one of the latest official nightlies. Will investigate further...
[Galaxy S 4 i9506 Android Development] DualJoe:
Deepsleep is broken in latest release.

And yes, it's freezing again. Thought it was gone... My previous version didn't crash even once for weeks.
[Galaxy S 4 i9506 Android Development] puschel_1:
So which is the latest "stable" known nightly of solks CM11?

Gesendet von meinem GT-I9506 mit Tapatalk
[Galaxy S 4 i9506 Android Development] NeuDLi:
According to my personal experience this one:

http://download.cyanogenmod.com/get/jenkins/98442/cm-11-20150118-NIGHTLY-ks01lte.zip

The next version had insane battery drain. Also it was not possible to enter recovery via the extended power menu (would just hang indefinitely at shutting down).
[Galaxy S 4 i9506 Android Development] DualJoe:
[MENTION=5291759]solk2[/MENTION]: The microphone channels are incorrect/swapped (left/right). When eg. using Google camera holding landscape with start button to the right the audio channels are wrong. According to the rotation reminder popping up when holding the device portrait-like the position with button to the right is correct.
[Galaxy S 4 i9506 Android Development] solk2:
Thanks. Will swap them.
[Galaxy S 4 i9506 Android Development] DualJoe:
[MENTION=5291759]solk2[/MENTION]:

There seems to be an SELinux problem with CIFS. I can delete/modify files on shared folders/files but cannot create ones thus its not possible to copy files to it.

Edit:

Never mind. The proper way is to define the context manually as the source filesystem doesn't provide any context at all.

Thus the correct command is:

busybox mount -t cifs -o username=user1,password=password1,dir_mode=0777,file_mode=0777,iocharset=utf8,noperm "//192.168.1.2/cifsshare" /mnt/cifs/cifsshare

localhost / # touch /mnt/cifs/cifsshare/test;echo $?
255

/data/misc/audit/audit.log: