yashsingh1/xdaforums huggingface dataset:
[Xperia Z Original Android Development] neomorfeo:
the url of the 0709 download doesn't work for me... can you please check it?

thanks for such a great work'¡¡¡
[Xperia Z Original Android Development] peterlolty:
Seems like qsnc would soon release a new built with fixing the Mac address bug, so just give qsnc sometime and give a big thanks to him/her.
[Xperia Z Original Android Development] neomorfeo:
ah ok, i had read that the MAC bug was solved, but i'll be patient :D thanks
[Xperia Z Original Android Development] peterlolty:
I would like to know did you have xposed installed ?
[Xperia Z Original Android Development] Hexchain:
Some logcat:

SystemUI crash after taking photo: http://ix.io/jDx

SystemUI crash after turning on GPS (GPS set to "Device only", and open "GPS Status" app): http://ix.io/jDz

I'm using vanilla ROM from OP, no Xposed or custom kernel installed.
[Xperia Z Original Android Development] peterlolty:
i was wrong, the 0708 and 0709 version both have reboots when using GPS and mobile data together (i use HSPA(3g)), [MENTION=5145127]qsnc[/MENTION] please try to turn off the wifi and turn on the 3g/hspa data, then use some GPS app, it will probably reboot.

Please also check the logcat...
[Xperia Z Original Android Development] peterlolty:
[MENTION=5145127]qsnc[/MENTION] I think the problem was since 0701 build... 3g + gps cause the error and finally reboots.

And i found there is a new bug on 0708,0709, I cannot charge my phone in off mode, i mean that the phone will boot to system when i plug in the usb cable, not the normal charging mode.
[Xperia Z Original Android Development] thorte:
I have the same problem at 0709 build. Reboot after a few moments after switching gps on. Log with totally 3 reboots attached.
[Xperia Z Original Android Development] diemadedrei:
I can confirm reboots when turning GPS on while on mobile network. This is probably what caused my reboots, I mentioned earlier as well.
[Xperia Z Original Android Development] LordAbhilash:
3

I didnt had any problem with that but 3G+GPS battery drain is better. The thing is that I tried installing official ROM for our XZ and the same problem is persistant with the over heating. So I guess nothing much can be done about that.
[Xperia Z Original Android Development] buche23:
GPS and Camera reboot

Same here. As there is a log for the GPS I did not take another one. If it's of any help I'll do it of course.

For me the camera crashes and reboots the system. Doesn't matter which which app I'm using (Google Camera, CM Camera, Camera Zoom FX) or whether it's called from within whatsapp or the first thing after the phone boots up.

As far as I understood the last_kmsg is the only important log in case of reboots. It seems utterly useless to me, if I did something wrong taking that log or anything else is needed... let me know.

Cheers

Buche
[Xperia Z Original Android Development] Hexchain:
I just found out, using GPS Status app, the value reported by ambient light sensor seems to be "capped" at 1000 lux. It did report value of 4000+ lux in the past.

Now I have to manually tune up screen brightness under sunlight.
[Xperia Z Original Android Development] macia10:
I've noticed problem with compass. It rotates constantly. No logs as I'm on vacation without access to anything except phone and sometimes inet connection ;)
[Xperia Z Original Android Development] qsnc:
new build up. off charging mode fixed (ie replaced with an opensource version).

to the guys with gps problems: i've stress tested the device with and without a sim card, with and without wifi, with and without a mobile data connection, and also with multiple clients simultaneously. the result is the same here: it locks on to gps and works just fine. uninstall any apps that might hook into related functionality. a clean install with gapps works.

anyways, new build here to try.
[Xperia Z Original Android Development] peterlolty:
Idk, but I also found this problem since Sony official stock ROM.

The compass would rotate constantly while the phone temperature is 45 or hither

---------- Post added 12th July 2015 at 12:08 AM ---------- Previous post was 11th July 2015 at 11:59 PM ----------

Thanks for your work hard, do you think it's the Sony lollipop blob problem? seems like the stock ROM also not stable. However, the 0522 version have NO problem at all (with 3g mobile data + gps)
[Xperia Z Original Android Development] diemadedrei:
Yep, the 0522 version worked fine here as well. I can also confirm reboots sometimes when using camera that have not been there before. After these the device goes into optimization of apps. Might try a clean install in the coming days and see how that goes.
[Xperia Z Original Android Development] macia10:
[MENTION=5145127]qsnc[/MENTION] just a reminder but could you please have a look also on colour led notifications?
[Xperia Z Original Android Development] Yndi:
Hi and thanks for this detailed answer!

About [1]: Sure, I understand that this won't come with a GUI but ... Let's lay this off. Idc so much either.

[2]: So here could be a problem as I use TWRP recovery and I bet most others around do too. It is by far the most comfotable option for a recovery and I was so happy to see that Sony phones could finally be used like others. Could it be that this introduces bugs on a booted ROM?

I updated to the latest build last night and still get GPS reboots. I logcated them live through the terminal (shouldn't be different then adb right!?) using three different apps.

Position set to high precision.

Has your/Andys phone the updated radio from lollipop? (Also anybody else, esp. those with reboots may answer this.)

Greetings

[EDIT] Forgot the logs...
[Xperia Z Original Android Development] peterlolty:
So, is the zip flash would also update the base band or not?
[Xperia Z Original Android Development] qsnc:
[1] Yeah, good idea :)

[2] I have seen the strangest things in regards to recoveries that have affected at least the way updates were installed and partitions wiped. I think that most people misunderstand what the Cyanogen recovery is meant to do: install updates. I have never had the need to create backups comfortably, use power management, or even use the touch screen in a recovery. It serves a narrow purpose, and I know it to work. That's why I can not help with other stuff.

The phone of [MENTION=4814657]andyvdsteen[/MENTION] now has the latest LP baseband, but I tested it with his previous one as well. The crash that appears in your logs looks really unusual, because it seems to happen in the Java part of town. You could try to see kmsg if your filesystem is still intact... Also, I can find no way of reproducing it.

Please try the following:

- Clean your phone (wipe EVERYTHING: data, system, cache, ...)

- Install latest build and some minimal Gapps

- Boot it, install one GPS app

- Try it out

- If it works, install all the other apps you normally use

- Try it again

If that does not change anything, you could try installing the LP baseband, if you know how. But as I said, I've used the same build and blobs with older baseband(s), and they worked, so I doubt that is the reason.
[Xperia Z Original Android Development] peterlolty:
Thanks for your hard work!
[Xperia Z Original Android Development] Yndi:
No, nothing flashable. Read here for further Information:

http://xdaforums.com/xperia-z/orig-development/rom-cm12-updated-jan-30-t3016952/page38

I'm on LP baseband for quite some time now and on may 22th build gps worked. I'll try your suggestion (a soon as I can) and report back. I think I've not formatted the whole data partition of the phone ever and I've not played around with the filesystem for sure, neither parameters nor converting to F2FS.

Thanks for the investigation so far.
[Xperia Z Original Android Development] andyvdsteen:
I can see in the bacon-thread that TWRP is not updating basebands. Seems to be a feature, not a bug.

Some bacon-users had random reboots. Look like the users had an outdated baseband, all using TWRP.

So using the right recovery seems to be more important then we thought.
[Xperia Z Original Android Development] Olivier:
No. As qsnc pointed out, it is possible that TWRP can't handle CM OTA/delta updates. However, I doubt this since I have used CM and TWRP on several phones (including ours) and tablets and flashing updates, official or unofficial, delta or complete package always worked (there are also some CM maintainers who use TWRP).

Well, bacon isn't yuga. You shouldn't compare those two here, given the completely different circumstances (different maintainer, hardware, maybe even the users: you said there were only some; etc).
[Xperia Z Original Android Development] Niekjuh:
Anybody else having problems with the light sensor? It is not changing the brightness automatically.

If I check the sensor in CPU-Z it is not showing the light sensor for the first few seconds but only detects the sensor after the a few seconds, while the other sensors are displayed instantly.
[Xperia Z Original Android Development] diemadedrei:
I was using cm recovery before. Then I made a factory reset and wiped cache, reinstalled cm and gapps and had the same reboots as before when using mobile network and GPS. Then I installed twrp and formatted everything including system. Now after the first Boot it looks promising, no reboot so far. Ill installiert my apps and report back.

Edit: after installing some apps and testing again, the same reboots happen... Very strange.
[Xperia Z Original Android Development] TpmKranz:
GPS crash logs

I managed to get some logs, as well.

My setup:

Freshly upgraded baseband to that from C6603_10.6.A.0.454_Customized_DE.ftf (even saw the NFC firmware upgrade window)

TWRP 2.8.5.0

Wiped entire /data partition

Flashed cm-12.1-20150711-UNOFFICIAL-yuga.zip, UPDATE-SuperSU-v2.46.zip, StereoMOD_Z-ZL-ZR_v5.zip and tk_gapps-modular-nano-5.1.1-20150705-signed.zip

Booted up and waited for building of ART cache to finish

Unlocked SIM, set up WiFi, Google account, declined option to restore data from Google account

Made sure that High precision location mode was enabled and opened Camera

Accepted location storing to photos

Crash

Waited for device to become usable again (didn't have to unlock SIM, it was indeed just a soft reboot) and fully rebooted it, unlocked SIM again

adb logcat > /tmp/logcat_gps-crash.txt, adb shell "cat /proc/kmsg" > /tmp/kmsg_gps-crash.txt, tapped Camera

Crash, Ctrl+C to the loggers

Waited for device to become usable again and fully rebooted it, unlocked SIM again, completely disabled location service in Quick settings

adb logcat > /tmp/logcat_gps-working.txt, adb shell "cat /proc/kmsg" > /tmp/kmsg_gps-working.txt, tapped Camera

Runs normal, tap Back button, Ctrl+C to the loggers

Run to this thread to report

Did I forget something?
[Xperia Z Original Android Development] diemadedrei:
Just for the record... I'm back on 0522 and everything is working fine after a fresh install
[Xperia Z Original Android Development] Hexchain:
The light sensor seems to report value only below 1000.

Edit: Installed "Phone Tester" app, light sensor reported range is 1000.0
[Xperia Z Original Android Development] Yndi:
Man, this will be a quoty qost....

Interesting to know. But are there Special flashable zips for other Sony phones around or how could the recovery block it? Did it block the update when using flashtool (this would be really bad I guess because the device is in fastboot mode which shouldn't be influenced ever)?

I took the time last night by going through the steps [MENTION=5145127]qsnc[/MENTION] provided and managed to find the Problem for me. It is really weird!

It took me around a dozen times flashing and reflashing starting with Basic Gapps and add more and starting over again. I experienced the same behavior as [MENTION=4542763]diemadedrei[/MENTION] and for me GPS leads to a reboot as soon as I accept the Google Location Service. So I can decide: using GPS(device-only mode) and not having a Location in Google Apps (espsecially Google Maps is annoying then) or using the GLS and let it in energy-saving mode forever(until it is hopefully fixed by a Google or CM update...)

A weird one, as I said...

[EDIT] I just read the post of [MENTION=4570328]TpmKranz[/MENTION] completely and it's the same find. However, I was unable to Report it in the night already.

Using Delta Gapps FYI.

[EDIT2] [MENTION=4570328]TpmKranz[/MENTION]: Why do you reroot your phone with SuperSU? CM comes rooted, manageable in privacy Settings. It has to be enabled in developer Settings though, but if you use adb I guess you know that.

And is 1000 wrong? Maybe it's the top value for our device or do you know better? Automatic BL is working here, a bit slow I would say, but ok. Sadly they removed the Option where one could set the Speed of BL Change which was in CM11.

Greetings
[Xperia Z Original Android Development] Hexchain:
Yes, automatic BL is working but the range is wrong. Have you tried taking your phone out in the sun? Screen BL wouldn't raise to its max value, like it used to.

From sysfs, the max screen BL value is 170, but with BL slider set to max, Adaptive Brightness enabled, and torch put right onto the ALS, the screen brightness is only 134.

And I did see the illuminance reported by ALS being above 4000. Note the unit is "lux", which means it should be constant across all devices in the same environment.

As for GPS, I tried "High accuracy mode" and standing outside, then opening GPS status app. Phone searched some satellites. Then I closed screen, walked indoor, opened that app again. This time it crashed. I was far from my computer that time so there was no logs. Could anyone try GPS indoor/outdoor to get some logs? This could be a possible cause.
[Xperia Z Original Android Development] peterlolty:
Both indoor and outdoor crashed(reboot) for me
[Xperia Z Original Android Development] TpmKranz:
Yes, I do know that CM comes pre-rooted, installing SuperSU is just personal taste; I've always liked SuperSU's root management better than Superuser's and I've hated CM's built-in root manager (Is it Superuser? Idk) since its inception because of its clunky full screen prompts. I don't know if CM's root manager has become any more appealing in the past months but usually the first thing I flash after a ROM is SuperSU.

TL;DR: Personal preference (just like StereoMOD; this was definitely unnecessary for a working ROM, but I was planning on using the new install as a daily driver in case the GPS worked and I just like having stereo sound).
[Xperia Z Original Android Development] Niekjuh:
And is that BL range thing fixable? My auto brightness is working right now but yes indeed, it's not that bright atm.
[Xperia Z Original Android Development] diemadedrei:
Something else I noticed while flashing last night. I used the same gapps package all the time, but with a clean install of 0711 the phone didn't ask me to enter my Google account at first boot. I was able to add it afterwards though. May be there is a problem with implementation of gapps which would make sense given that the problem seems to be gls. I used gapps from cm 0523 btw.
[Xperia Z Original Android Development] projekt06:
I tried to make a log file via adb logcat, but only got an error message: dissconected or server unavailable or something like that. I deleted the log file so I don't know the exact words.

How do you copy/paste in the console?
[Xperia Z Original Android Development] LP6:
I had similar issues - phone booting every now and then when GPS/Location was on high accuracy. Went back to 0707 and it seems to be stable again, at least I couldn't trigger a reboot with any GPS using app I tried.

Sorry, I couldn't get any logs, this is my main device and I was in kind of a hurry to find a way to get it staying alive and my second device (N5/Hammerhead) was/is being unstable due to other "updates"...
[Xperia Z Original Android Development] Yndi:
If you use the privacy guard/rights managemant of CM: Root is just like that. A small pop-up with grant and deny and 'don't ask again' It's pretty simple, logged and manageable in privacy guard.

If I wasn't too lazy I'd write a Feature request for privaccy guard: 'Allow/Remember next 5 minutes' would be great.

Thanks for the explaination. You can gete logs without the PC from the Shell/Terminal (can be enabled in developer settings). But sure it takes more time then using a PC or syslog.

See above. Copy is just highlighting and rightclick the Things to copy and pasting is just rightclick. On Windows.
[Xperia Z Original Android Development] Niekjuh:
Is there a problem with wifi/3G?

My phone is constantly using the mobile phone network (it is on top of the list at the battery info screen, above "screen") even when WIFI is turned on.

Battery is draining really fast, tried different combinations but it seems that the 3G (or 4G) is constantly active.
[Xperia Z Original Android Development] peterlolty:
Check in the privacy guards, see what's keep your phone activate and can't sleep
[Xperia Z Original Android Development] LP6:
My device is randomly rebooting even with 0707 although reboots are not triggered by GPS events/apps this time. I attached logs from two of the latest crashes. This is really strange, the device worked perfectly with 0522, but now I can't get it to function properly even by going back to that version. I haven't tried a clean install, since all my work stuff is on the device and setting it back up is a pain.
[Xperia Z Original Android Development] LP6:
I ended up restoring a week old backup after a full reset/wipe. This gave me back a working 0522, which I'll hang on to until there is some proven never version.

Something definitely went sideways with some of the latest CM12.1 nightlies since both my Yuga and Hammerhead started rebooting randomly the same day after flashing their latest CM12.1 nightlies. Hammerhead is still a mess since I don't have a recent enough backup of it.

I appreciate if someone can take a look at my logs in my previous message.
[Xperia Z Original Android Development] LordAbhilash:
I think we can expect OFFICIAL CM12.1 builds from qsnc in next few builds...
[Xperia Z Original Android Development] peterlolty:
How did it get started?
[Xperia Z Original Android Development] projekt06:
So ther's no copy paste in terminal APP

Even tried BT keyboard :(

Can't use it without copying commands from Webbrowser and there's no Ctrl+c for cancelling...

Sorry can't control logcat that way.
[Xperia Z Original Android Development] TpmKranz:
Is there a source you can quote or are you just spreading rumours?

This is not the thread to teach you to use the Terminal App, but I'll do it anyway, since I've already started wasting a comment on this.

Pressing the Ctrl key is, by default, simulated by pressing the Volume Down key (on the right-hand side of your device). So Ctrl+C would be pressing the Vol- key, followed by a hit of the C button on your virtual (or Bluetooth) keyboard.

As for the copy/paste: It's, indeed, a bit tricky. You access these functions by long-tapping your terminal window, but sometimes a long-press isn't detected as such and nothing happens. Just be a bit patient and try different areas of your terminal window, until you're presented with a pop-up that offers you to copy/past/mark. If paste is greyed out even though you just copied something, it might be that you copied something incompatible from your web browser. In that case, just paste it in an app with a text field (like Hangouts) and cut it out from there again, the paste option should be activated in the Terminal App. Copying is even trickier since you'd have to mark text with your finger which can be a pain in the butt in the Terminal App, so I just hope that wherever you're copying commands from also knows about output redirections (somewhere in your copied command should be a > [greater than symbol]). For any other questions you might have: Google is a great resource, too.
[Xperia Z Original Android Development] Yndi:
As he statet he used a BT keyboard, with a real ctrl key. I guess that's all one can do. I'm also pretty sure that the CM included terminal app does not Support C&P as I use a Keyboard app with shortcuts for this and they do not work in terminal.

Maybe in another terminal app. I think I could paste into the old one from CM11:

https://play.google.com/store/apps/details?id=jackpal.androidterm
[Xperia Z Original Android Development] andyvdsteen:
Sure.

Just don't know when the next build will be. :D
[Xperia Z Original Android Development] projekt06:
Different consoles give me different errors:

Terminal (really not possible to paste in it):

adb logcat > /storage/emulated/0/log3.txt

cannot bind 'tcp:5038'

* daemon not running. starting it now on port 5038 *

Terminal Emulator:

adb logcat > /storage/emulated/0/log2.txt

-waiting for device

Empty logfile
[Xperia Z Original Android Development] TpmKranz:
Never used CM12's Terminal, to be honest. If you use the command on your phone, omit the adb part, that's (in simple terms) for usage on a computer. Just plain logcat > /sdcard/logcat.log. And why do you need to paste anyway?

EDIT: And why are we discussing this here?
[Xperia Z Original Android Development] TpmKranz:
It doesn't. It just contains some logs about the Terminal app, since the logcat command was executed only with that app's privileges. For a full logcat, you have to execute it as user root. You switch users with the su command. So if you'd like to do a full logcat, you'd type su (I hope you don't need to copy-paste this), hit Enter, (maybe wait for the Superuser pop-up to appear and grant the Terminal app root privileges if it isn't already on the always-grant list), wait for the command prompt to change from $ (dollar sign) to # (number sign) and then type your logcat command.

Once again I'm asking you:

The original post clearly states that

And not "this thread is meant to waste tens of posts to teach people to take logs". There are several other threads for this purpose. Please use the search function or Google or anything else than the first thing that comes to your mind (which seems to be "waste comments for off-topic questions").

Can we get a mod in here and clean at least the past few comments?
[Xperia Z Original Android Development] TpmKranz:
More logs

I took the time today to try to reproduce the GPS crashes on a clean, vanilla install of cm-12.1-20150711-UNOFFICIAL-yuga.zip – no GApps, no SuperSU, no nothing. Just formatted the /system partition, cleaned /data (without wiping internal storage) and flashed the ZIP file.

After unlocking my SIM I was greeted with the CM setup wizard, chose a language and tried to set my WiFi up. Up to that point it seemed as if the mobile connection was still being initialized but it came up while typing my WiFi password, the location symbol appeared next to the mobile connection symbol and the whole thing crashed again. I couldn't even enable USB debugging (and hence take no logs), since I was stuck in the setup wizard and after three more crashes (in one of which the phone bootlooped, I had to Vol+/Power it and while booting the ART cache had to be rebuilt) I just decided to rip out the SIM and at least finish that setup and enable USB debugging. I finished the setup, forgot to enable USB debugging, plugged the SIM back in and restarted the device, enabled USB debugging and, strangely enough, it didn't crash after everything had been initialized, even though cLock was desperately looking for my location (the location, WiFi and mobile symbols where all in the status bar but the thing just kept on running) and I even managed to open the Camera without problems. I tried disabling WiFi (so that the phone had to use 3G), but even that didn't trigger a crash. I finally enabled and disabled Airplane mode and finally got the device to crash upon opening the Camera app. The resulting logs can are attached.

TL;DR:

vanilla install of latest build (NO GAPPS)

crashes after startup that made finishing the setup impossible

finishing setup possible without SIM

strangely stable after plugging SIM back in

disabling WiFi and getting in and out of Airplane mode did the trick

logs