yashsingh1/xdaforums huggingface dataset:
[Sony Xperia ZR] Daedroza:
Agreed with F2FS, it's broken. I'm using my own build.

[MENTION=4421569]sigprof[/MENTION] I had various issues like random reboots with F2FS when latest f2fs merge took place.

Regarding second last_kmsg, no idea. I don't play WoW...

[183729.746939] kernel BUG at /home/daedroza/cyanogenmod/system/kernel/sony/apq8064/fs/f2fs/node.c:2205!

Also had various types of panics with nightlies + f2fs : &@panic_name@:*Binder_1*, &@panic_name@:*Background Service*

I don't have last_kmsg, I am writing from my own memory.. To be on safer side, be on ext4.
[Sony Xperia ZR] sigprof:
After a week of testing got no f2fs errors on the 13.0-20160905-NIGHTLY-dogo build:

/proc/version: Linux version 3.4.112-cm-ge19e6b8 (clyde@cyanogenmod) (gcc version 4.8 (GCC) ) #1 SMP PREEMPT Sun Sep 4 21:23:45 PDT 2016
ro.build.date: Sun Sep 4 21:11:42 PDT 2016
ro.build.display.id: cm_dogo-userdebug 6.0.1 MOB30Z 39b49d53f5 test-keys
[Sony Xperia ZR] cajy7817:
Problem with lock screen

Can I use this ROM on the Xperia ZR C5502 model? I flashed the recent version with the default boot.img image; everything works fine, except when I lock the screen using the power button, if I unlock it, the touch does not work anymore. The phone is responsive to the side buttons, but the touch does NOT work at all.

Please help..:(

EDIT : Never mind.. I Got the answer.. Thanks to the guy who posted the solution to it. :)
[Sony Xperia ZR] sigprof:
Another week of testing the 13.0-20160906-NIGHTLY-dogo build — no f2fs errors (or any other errors):

/proc/version: Linux version 3.4.112-cm-ge19e6b8 (blinky@cyanogenmod) (gcc version 4.8 (GCC) ) #1 SMP PREEMPT Mon Sep 5 21:21:53 PDT 2016
ro.build.date: Mon Sep 5 21:07:20 PDT 2016
ro.build.display.id: cm_dogo-userdebug 6.0.1 MOB30Z 5c03086193 test-keys

Will test the 20160908 build again now to be sure the f2fs error can be reproduced.
[Sony Xperia ZR] sigprof:
Finally got the f2fs panic on the 5th day of testing the 13.0-20160908-NIGHTLY-dogo build.

/proc/version: Linux version 3.4.112-cm-ge19e6b8 (blinky@cyanogenmod) (gcc version 4.8 (GCC) ) #1 SMP PREEMPT Wed Sep 7 20:38:21 PDT 2016
ro.build.date: Wed Sep 7 20:21:56 PDT 2016
ro.build.display.id: cm_dogo-userdebug 6.0.1 MOB31E e90e9cceb4 test-keys

Apparently the kernel sources did not change since the commit e19e6b890e6ab26381fcb9d4fe770e554facfb3b published on Aug 30, 2016 — so it's the same in several older builds where I could not reproduce the error. So either the error just happens too rarely to be caught with a week of testing, or some other change made in the 20160908 build triggers the bug.
[Sony Xperia ZR] stellair:
Actually there is no stable version of CM13? On my Sony C5503 I have official Sony android 5.1.1 and I want to install CM12 which is based on android 5 but is only available as unstable version. CM11 is stable but based on an old android 4.4.4 :'(
[Sony Xperia ZR] rabe3ab:
in CM you can relay on nightly builds, actually CM doesn't offer stable builds nowadays, they have snapshots or milestone builds, and of course the nightlies
[Sony Xperia ZR] CressKH:
I only managed to get xposed running on Euphoria or FXP build.

Others all results in bootloop.
[Sony Xperia ZR] nostupidthing:
nope, but we're still waiting. [MENTION=5145127]qsnc[/MENTION] :D
[Sony Xperia ZR] dannyglover:
Yeah, I'm hanging for xposed super alpha to work so I can install the faux stamina mode module and eek some more battery life.

Smooth ROM though so far. Been great as daily driver.
[Sony Xperia ZR] nostupidthing:
Please include this fix for next build..? for recovery twrp 2.8.6 with f2fs to work

http://xdaforums.com/showpost.php?p=57718351&postcount=2

Thanks.
[Sony Xperia ZR] nostupidthing:
does anyone has occasional camera not working symptom? like apps using camera freezes, you kill it, then re-open and it says cannot connect to camera.
[Sony Xperia ZR] CressKH:
Not a frequent camera user here, I'm using third party camera app.

Recently shot for about 15mins long, did not encountered the problem you described.
[Sony Xperia ZR] nostupidthing:
Have anybody tried using this on cm12.1? volume boost.

http://xdaforums.com/xperia-zr/themes-apps/mod-volume-boost-xperia-z-zl-zr-t3116043?goto=newpost
[Sony Xperia ZR] Daedroza:
any new updates?

development still going on or stopped?
[Sony Xperia ZR] qsnc:
last but not least, an updated build for dogo as well. please be aware that the lead devices for CM development currently are pollux_windy and yuga (in that order), because i do not have access to any other.

this also answers the question if development has stopped: most certainly not, but unfortunately i lack the time and resources to build dogo and odin regularily.
[Sony Xperia ZR] nostupidthing:
that;s okay. THANKS ALOT! :D

btw, does your rom already included this hack? http://xdaforums.com/showpost.php?p=57718351&postcount=2 it's used to run newer twrp installed on fota partition
[Sony Xperia ZR] sigprof:
Issues with cm-12.1-20150707-UNOFFICIAL-dogo.zip:

Cannot enter the recovery by pressing a volume button during boot when the LED is purple. Apparently the "use keycheck to decide whether to boot into recovery" change is not yet included in this version, and the old code needed adjustment after every kernel update (/dev/input/event6 instead of /dev/input/event8 for C5503), therefore I hope this problem will soon be fixed.

When the device boots (including the long "optimizing app" stage during the first boot), the display backlight is turned off, therefore the screen looks black (but it is possible to see that the boot animation and the startup progress screen is there, if you point a powerful light source to the screen).

MAC addresses for Wi-Fi and Bluetooth are wrong — Wi-Fi MAC is 00:0a:f5:00:00:38, Bluetooth MAC is 00:00:00:00:5a:ad.

For the Wi-Fi MAC this problem can be solved by creating the /data/etc directory — apparently the proprietary /system/bin/taimport binary writes files containing MAC addresses into that directory, then /system/bin/mac-update uses those files to patch the Wi-Fi NVRAM binary, but for some reason /data/etc is not created during boot (strangely, /init.qcom.rc contains "chmod 0755 /data/etc", but no "mkdir /data/etc"). Unfortunately, this does not fix the Bluetooth address (even though /data/etc/bluetooth_bdaddr contains a good address, the system still uses 00:00:00:00:5a:ad).

DHCP client behavior for Wi-Fi is different from the stock firmware and CM11 — now the DHCP 'client identifier' (option 61) contains an IPv6-style interface identifier (RFC 4361) with a DUID-LLT instead of a simple htype+chaddr (RFC 2132). This may cause compatibilty problems with some DHCP servers (e.g., static leases may stop working); in addition, this kind of client identifier will change after every user data wipe (it is stored in /data/misc/dhcp/dhcpcd.duid). This is apparently a CM12 change affecting all devices (a related bugreport is https://jira.cyanogenmod.org/browse/BACON-3269).
[Sony Xperia ZR] nostupidthing:
now that i cannot enter recovery, how can i fix it even if there's a new build?
[Sony Xperia ZR] sigprof:
"adb reboot recovery", or enable Developer options → Advanced reboot and reboot to recovery from the power menu. Of course, this does not help if you break something so that the system no longer boots — then you will need to use fastboot to flash a boot image with working recovery.
[Sony Xperia ZR] Daedroza:
Download xenius9 boot.img from xda forums(preferably from CM12 build, he posted it separately in zip, simply unzip and take *.img file)

Place it in /sdcard

Open terminal with SU rights

then type this dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel

and press enter

You will have working recovery with the same build

You could also follow sigprof's method :)
[Sony Xperia ZR] nostupidthing:
thanks.

btw, i've had a few reboots since flashing the latest build. no time to get logcat though, too bad...
[Sony Xperia ZR] qsnc:
this is the sort of thing that made me run such threads, very nice :)

1: youre right, i commited the fix after building for dogo. its included in today's build

2: fixed in the new build as well

3: wifi *should* be fixed in the new build, please check it out. as for bt: will check it out

4: precisely. out of scope for this thread.
[Sony Xperia ZR] humanzqzr:
has anyone tried latest build? it hangs at starting apps dialogue
[Sony Xperia ZR] Daedroza:
[MENTION=5894078]humanzqzr[/MENTION]

Downloading now!

will let you know soon

update : hangs @ starting apps

trying without gapps(will let you know)
[Sony Xperia ZR] sigprof:
Yes, build 20150708 hangs for me too. I modified boot.img to enable adb during boot, and captured logcat and dmesg.
[Sony Xperia ZR] sigprof:
Got the 20150708 build to boot by moving the tad startup to the 'fs' stage (where it was in the previous build):

--- ramdisk/init.sony.rc	1970-01-01 03:00:00.000000000 +0300
+++ ramdisk-hacked/init.sony.rc	2015-07-09 11:04:16.834061861 +0300
@@ -54,7 +54,7 @@ on boot
chown system input /sys/bus/iio/devices/iio:device1/scan_elements/in_magn_z_en
chown system input /sys/bus/iio/devices/iio:device1/scan_elements/in_timestamp_en

-on init
+on fs
# SONY: Start the TrimArea Daemon. It must be started before fota-ua
class_start trimarea
exec /sbin/wait4tad_static

However, both Wi-Fi and Bluetooth addresses are not correct. Wi-Fi is broken due to SELinux problems (apparently "restorecon /data/etc/wlan_macaddr0" and other such lines that were removed in the 20150708 build are still needed):

07-09 08:06:09.545 I/auditd ( 289): type=1400 audit(0.0:4): avc: denied { open } for comm="mac-update" name="wlan_macaddr0" dev="mmcblk0p26" ino=266115 scontext=u:r:mac_update:s0 tcontext=u:object_r:system_data_file:s0 tclass=file op_res=-13 ppid=1 pcomm="init" tgid=1 tgcomm="init"
07-09 08:06:09.545 W/mac-update( 289): type=1400 audit(0.0:4): avc: denied { open } for name="wlan_macaddr0" dev="mmcblk0p26" ino=266115 scontext=u:r:mac_update:s0 tcontext=u:object_r:system_data_file:s0 tclass=file op_res=-13 ppid=1 pcomm="init" tgid=1 tgcomm="init"
07-09 08:06:09.545 I/auditd ( 289): type=1400 audit(0.0:5): avc: denied { open } for comm="mac-update" name="wlan_macaddr1" dev="mmcblk0p26" ino=266116 scontext=u:r:mac_update:s0 tcontext=u:object_r:system_data_file:s0 tclass=file op_res=-13 ppid=1 pcomm="init" tgid=1 tgcomm="init"
07-09 08:06:09.545 W/mac-update( 289): type=1400 audit(0.0:5): avc: denied { open } for name="wlan_macaddr1" dev="mmcblk0p26" ino=266116 scontext=u:r:mac_update:s0 tcontext=u:object_r:system_data_file:s0 tclass=file op_res=-13 ppid=1 pcomm="init" tgid=1 tgcomm="init"
07-09 08:06:09.545 I/auditd ( 289): type=1400 audit(0.0:6): avc: denied { open } for comm="mac-update" name="wlan_macaddr2" dev="mmcblk0p26" ino=266117 scontext=u:r:mac_update:s0 tcontext=u:object_r:system_data_file:s0 tclass=file op_res=-13 ppid=1 pcomm="init" tgid=1 tgcomm="init"
07-09 08:06:09.545 W/mac-update( 289): type=1400 audit(0.0:6): avc: denied { open } for name="wlan_macaddr2" dev="mmcblk0p26" ino=266117 scontext=u:r:mac_update:s0 tcontext=u:object_r:system_data_file:s0 tclass=file op_res=-13 ppid=1 pcomm="init" tgid=1 tgcomm="init"
07-09 08:06:09.545 I/auditd ( 289): type=1400 audit(0.0:7): avc: denied { open } for comm="mac-update" name="wlan_macaddr3" dev="mmcblk0p26" ino=266118 scontext=u:r:mac_update:s0 tcontext=u:object_r:system_data_file:s0 tclass=file op_res=-13 ppid=1 pcomm="init" tgid=1 tgcomm="init"
07-09 08:06:09.545 W/mac-update( 289): type=1400 audit(0.0:7): avc: denied { open } for name="wlan_macaddr3" dev="mmcblk0p26" ino=266118 scontext=u:r:mac_update:s0 tcontext=u:object_r:system_data_file:s0 tclass=file op_res=-13 ppid=1 pcomm="init" tgid=1 tgcomm="init"
[Sony Xperia ZR] humanzqzr:
Yes tried without installing gapps

---------- Post added at 02:13 PM ---------- Previous post was at 02:10 PM ----------

Will wait for [MENTION=5145127]qsnc[/MENTION] to upload fixed build
[Sony Xperia ZR] qsnc:
yes, very perceptive... that's what i get for trying to stick to sony's init sequence ;)

new build will appear here soon, which should fix that...
[Sony Xperia ZR] sigprof:
Just did this as a bandaid fix — now Wi-Fi gets proper MAC address:

--- ramdisk/init.sony.rc	1970-01-01 03:00:00.000000000 +0300
+++ ramdisk-hacked/init.sony.rc	2015-07-09 11:26:43.314530173 +0300
@@ -54,7 +54,7 @@ on boot
chown system input /sys/bus/iio/devices/iio:device1/scan_elements/in_magn_z_en
chown system input /sys/bus/iio/devices/iio:device1/scan_elements/in_timestamp_en

-on init
+on fs
# SONY: Start the TrimArea Daemon. It must be started before fota-ua
class_start trimarea
exec /sbin/wait4tad_static
@@ -115,6 +115,12 @@ on post-fs-data
mkdir /data/etc 0755 root shell
exec /system/bin/taimport

+ restorecon /data/etc/bluetooth_bdaddr
+ restorecon /data/etc/wlan_macaddr0
+ restorecon /data/etc/wlan_macaddr1
+ restorecon /data/etc/wlan_macaddr2
+ restorecon /data/etc/wlan_macaddr3
+
# SONY: Import MiscTA to System properties
exec /system/bin/taimport property

I have also found what breaks the Bluetooth address — it should be configured by /system/bin/hci_qcomm_init, but that binary is linked with libbtnv.so, which is missing. You need to pull /system/vendor/lib/libbtnv.so from the stock ROM. After adding this file Bluetooth seems to work (well, on my phone it works while I bend the top appropriately — seems that it is a common hardware problem with this model :( ).

I also noticed another problem — offline charging does not work (did not work in the previous build too). When the phone which was turned off is connected to the USB port, it just boots into Android instead of going to the offline charging mode.
[Sony Xperia ZR] qsnc:
yeah, i had already found the reason for the bt problem, so it is included in the july 9 build as well. same goes for the init script, i am seperating the sony specific stuff from the rest and forgot to copy over the restorecon...

anyway, please test the new build.
[Sony Xperia ZR] nostupidthing:
[MENTION=4421569]sigprof[/MENTION] [MENTION=5145127]qsnc[/MENTION] THAAAAAAAAAAAAAAAAAANK YOU :crying::crying::crying::crying::crying::crying::crying::crying::crying::o:o:o:o:o:o:o:o
[Sony Xperia ZR] humanzqzr:
New build work flawlessly [emoji1]
[Sony Xperia ZR] abrahamt24:
[MENTION=5145127]qsnc[/MENTION] download link is broken

Edit: It's working now.
[Sony Xperia ZR] Daedroza:
@qnsc

BUG1: You cannot change wallpaper.

BUG2: After first restart, bootloop. EDIT: I removed battery and started again. It's once again booted with optimizing APPS!

LATEST BUILD cm12-09*.zip. Anyone please verify above bugs. TY!

Sorry I cannot get logcats for this stuff though I followed this --->Flashed build-->Flash Minimal Gapps-->Boot finished-->Changed wallpaper(didn't change)-->Restart(boot-stucked now)-->Removed Battery and started again-->working
[Sony Xperia ZR] humanzqzr:
about changing wallpaper for me it works about bootloop i think xposed modules are cause for it coz till today build worked flawless but after installing gravity box my phone went into bootloop
[Sony Xperia ZR] sigprof:
I can confirm the issue with changing the wallpaper — the new wallpaper becomes visible only after a reboot (a soft reboot is enough). There is a recent CM12.1 change which is likely to fix this problem: http://review.cyanogenmod.org/#/c/102816/ — hope it will appear soon in the next build.

I did not experience any bootloops or hangs, but I also did not try to install Xposed, or even GApps.

BTW, the 20150709 build contains some new options for the camera button (Settings > Device > Buttons > Camera button): Screen peek and Launch camera. The option to launch camera seems to work (even when the display is turned off), but the screen peek option does not seem to do anything (and nothing appears in logcat when the button is half-pressed).

Update: I looked at the commits (1/2, 2/2) which added the camera button support, and looks like there is a bug there — the "Screen peek" option should be available only when the "Wake up device" option is enabled, but on dogo the "Wake up device" option is hidden (the camera button is not enabled in config_deviceHardwareWakeKeys), however, the "Screen peek" option is left visible and enabled. Then I tried to set config_deviceHardwareWakeKeys=96 to enable wakeup from the camera button, and the "Wake up device" option appeared and seems to work on this device; in this case the "Screen peek" option also works (except that after a short half-press of the camera button the screen still stays on for the same time as after a power button press — this also looks like a bug in that commit, because in this case mIsFocusPressed is not reset, and the next release of the focus button will turn the screen off).

I also tracked down the problem with the offline charging mode — it was also caused by missing proprietary files, this time in the /system/semc/chargemon/data directory (there were some files there, but they probably were taken from an old stock ROM version and do not match the current /system/bin/chargemon). Replacing the whole /system/semc/chargemon/data directory with the one pulled from the latest Sony stock ROM makes the offline charging mode work properly (at least when using the USB connection — did not have the AC charger available for testing):

turn off the phone, then connect USB — the phone boots to the charging mode;

disconnect USB while in the charging mode — the phone turns off;

hold the power button while in the charging mode — the phone reboots and start Android normally;

turn off the phone when USB is connected — the phone reboots to the charging mode.
[Sony Xperia ZR] qsnc:
the fix you propose could work as well, but not so easily done within cm. i ended up replacing the charging stuff with the opensourced healthd. it was a known problem, but not critical... ;)

anyway, new build is up, feel free to try.
[Sony Xperia ZR] nostupidthing:
do you guys have problem launching Google Maps with the latest build?
[Sony Xperia ZR] humanzqzr:
nope
[Sony Xperia ZR] sigprof:
Did not notice any major bugs in the 20150711 build yet. Just a minor nit: with the opensource healthd there is no vibration when pressing the power button to turn on the phone from the offline charging mode (the proprietary chargemon emitted a short vibration before rebooting the phone).

I also tested the builtin recovery — it works (tested both volume/power key and touchscreen, tried to reinstall CM12.1 through it; as expected, only signed packages can be installed), but some text in menus does not fit on the screen:

However, the builtin recovery cannot install the full TK GApps package — the problem is that there is not enough space in /system for the full installation, therefore I need to disable some apps using gapps-config.txt, but the builtin recovery uses some fuse magic to make the update zip appear as /sideload/package.zip even when installing from the phone storage, therefore the installation script does not see the config file. There is also some display issue with the text output while installing the update zip — initially text starts appearing in the lower part of the screen, then some lines are apparently lost, then subsequent output is displayed at the top of the text area underneath the robot:

But you can ignore all those problems — the crippled builtin recovery is useless anyway, and booting TWRP from the FOTA partition works well.
[Sony Xperia ZR] Daedroza:
[MENTION=4421569]sigprof[/MENTION]

If possible can you raise ticket for 2nd mic issue?
[Sony Xperia ZR] nostupidthing:
am indeed having problem with maps, turn out it's the location service, logcat sent to [MENTION=5145127]qsnc[/MENTION].

[MENTION=5906831]Daedroza[/MENTION]: and louder volumes... :D
[Sony Xperia ZR] humanzqzr:
Have you tried clean install of rom?
[Sony Xperia ZR] Daedroza:
I use minimal gapps and no location services( Govt. snooping everywhere :P ). I even connect Wi-Fi for 10-15 minutes in a day to sync contacts/ calender.
[Sony Xperia ZR] nostupidthing:
nope, but i tried wiping data of google service framework and fused location.
[Sony Xperia ZR] Daedroza:
Location Service is known issue.

See [Q&A], logcats are provided too :)
[Sony Xperia ZR] Daedroza:
Camera straight from lock screen does not save images to /sdcard1 ?

And this from [Q&A] section!

[MENTION=5145127]qsnc[/MENTION]

+1 rmnet_usb bug

one more user had problem with location services I hope these logs would be enough!

thank you [MENTION=6713663]pkwn[/MENTION] [MENTION=5145127]qsnc[/MENTION]
[Sony Xperia ZR] qsnc:
Thanks for testing and PM feedback people.

New build is now online, please continue like this!
[Sony Xperia ZR] nostupidthing:
seems I'm still having reboot bcs of location services. let me try to get a log...

edit: pmed the logcat, thx!

edit #2: how can we help to fix the 2nd mic? thx

note: guys please send your donation http://www.vware.at/donate/
[Sony Xperia ZR] sigprof:
Reproduced a crash on the first boot after clean installation without GApps, when the SIM card is inserted during the first boot. The boot process goes up to the following stages:

the language selection screen first shows up in English, there is the "No SIM" icon in the status bar;

the signal level icon with "!" appears; the language selection automatically switches to Russian;

"3G" appears on the signal level icon, "!" disappears; at the same time the geolocation icon appears;

after a couple of seconds the screen is cleared, and the boot animation starts again;

the language selection screen appears again, and this goes on in a loop.

I captured full logcat, dmesg, and /data/tombstones/tombstone_00. Apparently the system_server process crashes because of a NULL function pointer somewhere in /system/lib/libandroid_servers.so; debug information for this module is needed for further investigation.

Update: After some digging in the "arm-linux-gnu-objdump --disassemble libandroid_servers.so" output, I identified the point of crash as this line in android_location_GpsLocationProvider_agps_data_conn_open() — it crashes because the sAGpsInterface->data_conn_open_with_apn_ip_type function pointer contains NULL, even though sAGpsInterface->size contains 28 (== sizeof(AGpsInterface_v2)), therefore the data_conn_open_with_apn_ip_type field should be present.
[Sony Xperia ZR] sigprof:
Apparently the android_hardware_qcom_gps repository contains sources for the Qualcomm GPS HAL (/system/lib/hw/gps.*.so and related shared libraries); unfortunately, according to the commit ec6e5d3a25 from Jun 2014, apq8064 and msm8960 targets use the old version of GPS HAL, which is no longer updated. However, there still were a couple of fixes for the old HAL, and the commit 33627a4038 fixes exactly the problem which causes the crash — GPS HAL was returning the new AGpsInterface structure (which is actually AGpsInterface_v2) instead of AGpsInterface_v1 which it actually supports. Seems that the proprietary gps.default.so extracted from the Sony stock ROM still has this bug.
[Sony Xperia ZR] Daedroza:
AOSP Camera App still sometimes not saving images to sdcard1(ext_Card)
[Sony Xperia ZR] qsnc:
new build is up, with quite a lot of new stuff. we are not yet building the gps hal from source, and sony reliably releases broken blobs ;) [MENTION=4421569]sigprof[/MENTION]: you should join the dev team ;)
[Sony Xperia ZR] nostupidthing:
working well, thanks!!! 70hour runtime now!!!

pending issues:

- 2nd mic?

- wifi 5g not working 100% time (sony blob problem?)

edit: does anybody encrypts their devices? i just tried "encrypt phone", it jumped to the android logo and then just reboots. tried different cables, charger, etc, but still the same. logcat doesn't show up anything interesting.

i am using f2fs for data if the matters.