yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact Android Development] peeitsemr:
Crash and Reboot on VPN disconnect

Hi Guys,

I have just moved to Carbon yesterday. So far everything works fine.

There is one thing though, when I disconnect from my home VPN the system instantly crashes and reboots. This iss reproducable and happens each and every time. I have checked the logs via adb logcat and nothing comes up:

01-03 17:10:04.044 863 2203 D VPN : NetworkAgent: NetworkAgent channel lost
01-03 17:10:04.050 6376 6376 I racoon : Connection is closed
01-03 17:10:04.050 6421 6421 I mtpd : Received signal 15
01-03 17:10:04.050 6421 6421 I mtpd : Sending signal to pppd (pid = 6428)
01-03 17:10:04.050 6428 6428 I pppd : Terminating on signal 15
01-03 17:10:04.051 6428 6428 I pppd : Connect time 0.2 minutes.
01-03 17:10:04.051 6428 6428 I pppd : Sent 43042 bytes, received 74023 bytes.
01-03 17:10:04.052 863 3629 I Vpn : Switched from [Legacy VPN] to [Legacy VPN]
01-03 17:10:04.052 6376 6376 I racoon : KA remove: 192.xxx.xxx.xxx[4500]->188.xxx.xxx.xxx[4500]
01-03 17:10:04.053 863 3629 D Vpn : setting state=IDLE, reason=prepare
01-03 17:10:04.058 863 3589 D ActivityTrigger: ActivityTrigger activityPauseTrigger
01-03 17:10:04.062 863 2712 W InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@6dc9ae0 attribute=null, token = android.os.BinderProxy@be57b79
01-03 17:10:04.064 863 3633 D ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{b3d41c8 com.android.settings} is now in focus and seems to be in full-screen mode
01-03 17:10:04.064 863 3633 E ActivityTrigger: activityResumeTrigger: not whiteListedcom.android.settings/com.android.settings.Settings$VpnSettingsActivity/25
01-03 17:10:04.065 863 3633 D ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{b3d41c8 com.android.settings} is now in focus and seems to be in full-screen mode
01-03 17:10:04.065 863 3633 E ActivityTrigger: activityResumeTrigger: not whiteListedcom.android.settings/com.android.settings.Settings$VpnSettingsActivity/25
01-03 17:10:04.067 863 2203 D ConnectivityService: Sending DISCONNECTED broadcast for type 17 NetworkAgentInfo [VPN () - 101] isDefaultNetwork=false
01-03 17:10:04.131 863 889 D CompatibilityInfo: mCompatibilityFlags - 0
01-03 17:10:04.131 863 889 D CompatibilityInfo: applicationDensity - 280
01-03 17:10:04.131 863 889 D CompatibilityInfo: applicationScale - 1.0
01-03 17:10:04.133 4396 4396 I Email : Unregister all idle mailboxes
01-03 17:10:04.140 863 2137 D WifiStateMachine: updateCapabilities for config:FRITZ!Box Fon WLAN 7390false,false
01-03 17:10:04.155 6519 6534 D OpenGLRenderer: endAllActiveAnimators on 0xb3997900 (RippleDrawable) with handle 0x9a0fa4e0
[Xperia Z3 Compact Android Development] Kocane:
Basically I'm experiencing the same issues with the microphone during calls. In programs like Telegram the mic usually doesn't work and in a real call, the mic typically stops working if I use speakerphone mode.
[Xperia Z3 Compact Android Development] lucky-2:
I have same problem since i moved to carbon rom:

https://xdaforums.com/showpost.php?p=74041238&postcount=992

hopefully someone finds where is problem.
[Xperia Z3 Compact Android Development] peeitsemr:
I can connect via 4g and Wifi but via edge (gprs) the connection works sometimes and sometimes not. When the connection does not work - meaning it does not succeed in connecting - it reboots also. But that may be because the disconnect action that causes the reboot is also executed on unsuccessful connects.
[Xperia Z3 Compact Android Development] marcogiannetta:
Usually I need to open Maps and set the route two times before I get a GPS fix. I didn't find any other way.
[Xperia Z3 Compact Android Development] pajos.gabros:
I had slow gps fix too, so I tried many thinks but nothing.

At least I found a solution:

https://drive.google.com/file/d/1Cv0MwR7uog6faDSyvDBwS56A3xqb1BDt/view?usp=drivesdk
[Xperia Z3 Compact Android Development] ferrets:
Thank you for this ROM! It's fantastic!

A little question, after the ROM I have obviously flashed GAPPS (standard package blabla), and it has overwritten the default Camera app with the Google Camera one.

How can I restore your camera app without any data format/loss?

EDIT:

link to dowload in get carbon z3c does not work anymore!
[Xperia Z3 Compact Android Development] Myself5:
We're working on the link issue^ Till then you can get all builds on basketbuild too. https://basketbuild.com/devs/CarbonROM
[Xperia Z3 Compact Android Development] ferrets:
Thank you! Downloading :)

For the Camera issue? Any suggestion? Have you got a zip package with "your" camera to flash?
[Xperia Z3 Compact Android Development] Klen2:
You can flash the ROM again and use some smaller GAPPS package that doesn't include camera, or use Aroma package and choose what you want to be installed.
[Xperia Z3 Compact Android Development] marcogiannetta:
tomascus modded snap cam (which is the stock camera on CarbonRom too) with more features.

You can find it here:

https://xdaforums.com/showpost.php?p=74078189&postcount=3
[Xperia Z3 Compact Android Development] jigga1986:
Downloadserver down?

Gesendet von meinem Xperia Z3C mit Tapatalk
[Xperia Z3 Compact Android Development] ted!:
Hey [MENTION=3816568]Myself5[/MENTION]...

Do you have another test-build for cr6.1? Or can we just Do something about the broken local sources?

Greets ted!
[Xperia Z3 Compact Android Development] Myself5:
No, nothing yet. I discovered it wasnt caused by my sources (so it has to be a devicetree thing) and I can only debug that after I get my hands on my Z3C again (which I hope to have time to do today).
[Xperia Z3 Compact Android Development] ted!:
Nice! Thanks :good:
[Xperia Z3 Compact Android Development] ferrets:
Thanks! It works!

And as an extra, it does not replace the Google Cam! So I can choose which one use :good:
[Xperia Z3 Compact Android Development] CARLOS BENIGNO:
I installed rom

CARBON-CR-5.1-MOO-RELEASE-z3c-20171222-2234_2 and the gapps version below

open_gapps-arm-7.1-stock-20180106

on the z3c and the 20mp rear camera does not work. Is anyone experiencing this problem? I made the installation of rom and gapps by trwp. no error occurred.
[Xperia Z3 Compact Android Development] pajos.gabros:
works fine for me
[Xperia Z3 Compact Android Development] cobainmax:
Hey guys.

Want to ask if it's normal to have a bad audio quality in CarbonROM (LineageOS also). When i'm recording voice messages in WhatsApp or in the recorder it sounds tinny. Also not like stereo. If i don't talk right into the microphone below it sounds horrible...if it's even possible to hear it.

Decided to use the warranty, brought the phone back to Stock and tried to record some messages: They sound so much better! Is that because of the restored DRM Keys? Would love to use CarbonROM but these microphone problems are unacceptable.

Thanks in advance!
[Xperia Z3 Compact Android Development] pajos.gabros:
try to download Android Mic Fix via Magisk
[Xperia Z3 Compact Android Development] cobainmax:
Ist that a known bug? Have you done this and did it help?
[Xperia Z3 Compact Android Development] pajos.gabros:
i´m using it for years and i never had problem with mic (tried many roms with different phones)
[Xperia Z3 Compact Android Development] cobainmax:
So you can't say there's a microphone problem in CarbonROM without this fix? That's important for me because of to use the warranty.

Anyone?
[Xperia Z3 Compact Android Development] zeus24:
Garmin Connect issues

Hi,

short info. If anyone is using Garmin Connect, their wired protocol does not work anymore with the latest build of CarbonROM. I tried everything (until factory reset), but somehow it does not connect to my watch anymore. After switching to another ROM everything is fine. From the ton of bug reports in the Garmin forum I first thought it was a problem with their firmware, but now it seems that something in the ROM (or my setup) interfers with the connection between phone and watch. :crying:
[Xperia Z3 Compact Android Development] ted!:
Hey [MENTION=3816568]Myself5[/MENTION]... How are sources goin on?

Greets ted!
[Xperia Z3 Compact Android Development] Myself5:
I keep on breaking things, that are high priority to fix so unfortunately I have to postpone the Z3C fix every day. Can't provide any ETA on it anymore currently, but I'm trying to fix it ASAP. Sorry.
[Xperia Z3 Compact Android Development] ted!:
Thx mate... Take your time... You're best! :laugh:
[Xperia Z3 Compact Android Development] okij:
[MENTION=3816568]Myself5[/MENTION]: Will there be a CarbonROM cr-5.1 (Android 7.1.2) release with the January 2018 security patches? I'm asking because they include mitigations for the recently published Meltdown and Spectre vulnerabilities.

TIA and have a nice weekend! :)
[Xperia Z3 Compact Android Development] Myself5:
No plans for it yet.

A) Google didn't release any January Patches for 7.x that we could merge.

B) There are no patches for Spectre for 32Bit devices, nor for 3.4 Kernels, therefore nothing we could merge yet.

The "good" news is that there is no known way to gain advantage of (or even test for) Spectre on Android yet.
[Xperia Z3 Compact Android Development] His Dudeness:
Hi fellas, Im a bit outdated with this ROM, still xposed (not magisk one) a no go? Thanks.
[Xperia Z3 Compact Android Development] ted!:
Xposed works fine with last build of cr5.1. Just give it a try ;)

https://xdaforums.com/showthread.php?t=3034811

Greets ted!
[Xperia Z3 Compact Android Development] His Dudeness:
Oh great news then, previous releases wont go. Will give a try for sure. Thanks dude.
[Xperia Z3 Compact Android Development] okij:
Thanks for these infos! :good:

Could I ask you two more things:

A) Do you know if those patches will come later for 7.x or if Google plans to provide them just for 8.x?

B) Could the kernel patches probably be backported or do you think that those vulnerabilities aren't a serious issue on Android anyway?
[Xperia Z3 Compact Android Development] Myself5:
A) The decisions Google took with the Nougat ASB releases are not understandable to me, no clue if there is something coming or not.

B) I don't know if it can be backported (or if it's sane to do so) but I also don't think I'm knowing enough about it at the moment. All I know is that my compile times raised from ~20 to 31mins, that I'm totally not amused about it, and that I'm going to start saving up for a new CPU.

P.S. Check the Attachment.

P.P.S. The fix was ridiculous and I feel bad for messing it up in the first place. It was literally a double definition in a mixer_paths.xml that I added by accident, ending up in audio_server fatally crashing and therefore preventing the phone from booting.

P.P.P.S. Before questions come up: I still have to fix some things yet, so please don't ask for ETAs.
[Xperia Z3 Compact Android Development] okij:
Oh no, that's ~35% slower compiling speed due to Intel's failures. :eek:

I just sent you a PayPal donation for saving up for a new CPU. I hope that at least it's a start.

Great, so Oreo is compiling fine again for the Z3c! I hope that you get the other things sorted out, but please take your time (we now know that you need ~35% more time. :D)

I guess the hardest thing to fix will be the video recording. On the other Z2 / Z3 / Z3c Oreo threads I read that it still doesn't work yet and I guess that this also applies to CarbonROM 6.1 for the Z3c. I keep my fingers crossed for you and the other devs. :fingers-crossed:
[Xperia Z3 Compact Android Development] Klbgr:
Hi , wich custom kernel work with this rom ?
[Xperia Z3 Compact Android Development] Myself5:
Attempt 2:

Everything should be working now (other than video recording, that is)

https://dl.myself5.de/z3c/CarbonROM/

Let me know if you encounter any issues.

Regards.

P.S. [MENTION=4916555]okij[/MENTION] Thanks for the Donation :)
[Xperia Z3 Compact Android Development] vooR9er:
New build.

I failed to get , probably hands curves (I) :)
[Xperia Z3 Compact Android Development] Myself5:
Use an updated TWRP build. This one https://xdaforums.com/z3-compact/general/d5803-z3c-aries-twrp3-0-t3543113 works fine for me.
[Xperia Z3 Compact Android Development] okij:
Out of curiosity: Do you use the Lineage 14.1 recovery version or the Omni 8.0 recovery version? Should the first one be used for CarbonROM 5.1 (Android N) and the second one for CarbonROM 6.1 (Android O), or doesn't it make any difference?

Also I'm wondering if you use the recovery partition for flashing TWRP, as in [MENTION=4688377]russel5[/MENTION]'s How-to, or the FOTAKernel partition?
[Xperia Z3 Compact Android Development] Myself5:
I used the Lineage 14.1 one. There shouldnt be any difference anyways. It therefore doesn't matter. The "recovery" and the FOTAKernel partitions are the same.
[Xperia Z3 Compact Android Development] vooR9er:
Tried TWRP omni8, did not work (probably my own fault) Then used TWRP LOS - all good! Please pay attention to the manipulation of buttons, this time I did just that. A big thank you to Myself5 for ROM and okij for the right questions which he had asked. :) :good:

TWRP took here https://xdaforums.com/z3-compact/general/d5803-z3c-aries-twrp3-0-t3543113

Gapps here (pico) https://cloud.kenzoroms.club/?dir=op...s/20180112/arm

P.S. Guys, thanks to everyone who asked questions and all who answered them. So much easier. :good:
[Xperia Z3 Compact Android Development] marcogiannetta:
Thank you for bringing Oreo Carbon to z3 compact.

I tested this build and I've to say it's incredibly smooth. I found the same bugs as OmniRom:

-first unlock with PIN code (waiting a bit or rebooting a few times should fix it)

-video recording not working

-face unlock not working (I guess it's a faulty 8.1 gapps bug)

Plus my Samsung 64GB microSD card is recognized as damaged, but that's not happening on Omni 8.1 or on cr5.1

I didn't test GPS, calls, sms, etc..
[Xperia Z3 Compact Android Development] Myself5:
The reporting as damaged should be caused by the lack of exfat drivers, we're working on that.
[Xperia Z3 Compact Android Development] cobainmax:
Tried it via Magisk. Doesn't help. :(

Anyone with a solution? Is that tinny microphone sound a known bug in Custom-ROMS?
[Xperia Z3 Compact Android Development] ted!:
Hey [MENTION=3816568]Myself5[/MENTION],

Will the official realeses of cr6.1 come in this thread, like the first release or do you open a new thread for cr6.1 for further updates?

Greets ted!
[Xperia Z3 Compact Android Development] Kockowan:
Hi,

did install latest CR-5.1 from https://get.carbonrom.org/device-z3c.html on my Z3compact, coming from stock Sony firmware MM-601 (.291).

Thx for this great CR-5.1...

Questions...

'adb devices' does not recognize the phone by Win7/usb, how to solve this issue?

(Phone has been recognized with stock Sony firmware MM-601 (.291))

EDIT: *Solved*, Google usb driver must be installed...

Must SnapCam_mod.zip be flashed on top or is it included in latest CARBON-CR-5.1-MOO-RELEASE-z3c-20171222-2234.zip?

Thx + regards!
[Xperia Z3 Compact Android Development] ted!:
Hey [MENTION=3816568]Myself5[/MENTION]...

Might this be interesting for cr6.1-development? Don't know if it's propably something good for our "coming-in-age"-phone...

https://www.xda-developers.com/android-oreo-android-go-low-ram-patcher/

Greets ted!
[Xperia Z3 Compact Android Development] marcogiannetta:
I don't think snapdragon 801 is old enough to need Android Go.

I could be wrong anyway
[Xperia Z3 Compact Android Development] Kockowan:
Any hint pls :angel:, thx + regards...
[Xperia Z3 Compact Android Development] Kocane:
Am I the only one getting pathetic bluetooth performance with this phone nowadays? I dunno if its the ROM or Marshmallow/Nougat in general but even my body can stop the bluetooth signal and make my headphones stutter. Works fine on my PC.
[Xperia Z3 Compact Android Development] Kockowan:
Regarding bluetooth:

Connection to car's mulitmedia system works, calling works, but contacts (stored in phone) are not duplicated to car's memory by bt. Only the profil ('local profil') is copied.

So, how to get phone contacts copied to car's memory?

(no problem with Sony stock roms...)

Thx + regards.
[Xperia Z3 Compact Android Development] okij:
[MENTION=3816568]Myself5[/MENTION]: According to this post on the LineageOS thread, the January patches for 7.x should be available now.

Will CarbonROM 5.1 get updated too? :)
[Xperia Z3 Compact Android Development] Kockowan:
Yes, good reminder: pls keep CR-5.1 up-to-date until Oreo is released :cool:

Thx + best regards!
[Xperia Z3 Compact Android Development] marcogiannetta:
New build with January security patches is up.

Thanks
[Xperia Z3 Compact Android Development] Kockowan:
Thanks too!

Can it be flashed upon CARBON-CR-5.1-MOO-RELEASE-z3c-20171222-2234.zip with GApps-Nano installed?

Must Gapps be installed too?

Thx once more, regards!
[Xperia Z3 Compact Android Development] marcogiannetta:
Yes, flash gapps after rom
[Xperia Z3 Compact Android Development] xox101:
I have never flashed Gapps after installing a monthly update. Never had any problems either.
[Xperia Z3 Compact Android Development] Kockowan:
What's about Magisk? Must it be removed before flashing CR-Update to latest 5.1?
[Xperia Z3 Compact Android Development] casouzaj:
Magisk survives the ROM flashing process. You'll notice that it will be automatically installed right after the ROM itself. Otherwise, install it afterwards.
[Xperia Z3 Compact Android Development] Kockowan:
Ok, thanks to all.

I did flash from CARBON-CR-5.1-MOO-RELEASE-z3c-20171222-2234 to latest CR-5.1-Update only, no Gapps.

Magisk did install automatically after CR-flashing was finished.

Wiped Cache & Dalvik cache, Reboot, everything works like expected.
[Xperia Z3 Compact Android Development] pajos.gabros:
when i open System Updates it shows me, than i am offline (wifi/data) but i´m online...why? Solved

sometimes, alarm clock sometimes disable itself - why?
[Xperia Z3 Compact Android Development] luminoso:
How did you solve? My CarbonDelta when checking for updates always says there's no internet connection
[Xperia Z3 Compact Android Development] pajos.gabros:
you can change system updates in settings to other value

or you can flash it via twrp directly
[Xperia Z3 Compact Android Development] luminoso:
Yep. I have set "Check na notify", but everytime I click "Check" it says "No data connection"

It looks like a bug since it always says "No data connection", no matter if over wifi or mobile data.

I would like to get notified when there's new security updates available by notification rather than manually checeking the website.
[Xperia Z3 Compact Android Development] okij:
On my phone there's an URL called "https://carbonrom.org/deltaindex.json" written right above the "CHECK" button, see attachment. But - when entering "https://carbonrom.org/deltaindex.json" in a browser or when downloading it - it's just an empty file, while IMO it should contain the information about the updates.

[MENTION=3816568]Myself5[/MENTION]: Could you please check what's wrong with deltaindex.json?
[Xperia Z3 Compact Android Development] Klen2:
For me it looks exactly the same as for okij. I have also log.
[Xperia Z3 Compact Android Development] TalamakSaBisyo:
Im on MM .291 with unlocked bootloader. i tried flashing this carbon rom and my Twrp and root disappear. How can i flash it step by step, i don't want to mistake again, coz i have no access to PC/laptop anymore. :(

By the way, thanks for this rom.
[Xperia Z3 Compact Android Development] Kockowan:
Same to me, pls refer to attached screenshot...
[Xperia Z3 Compact Android Development] Myself5:
Our Servers are currently getting moved/upgraded and prepared for Oreo. Due to that, our website behind load distribution and file hosting, Mirrorbits, is down. The main download page is covered by a temporary solution, but Mirrorbits is used by the Delta updates. When delta can't reach that server it's assuming there is a connection issue.

We're aware of the issue, but will probably not be able to fix it before Oreo builds get released. Thanks for understanding :)

In case of the delta json file: thats automatically generated on the servers, if that server cant reach mirrorbits it can't provide any data on available builds either.
[Xperia Z3 Compact Android Development] okij:
Fix for WiFi Display (Screen Cast / Miracast)

Thanks for your explanations! It's not a problem that OTA notifications aren't currently working, now that we know the reason for it. :)

May I ask you to include a fix for Wifi Display (Screen Cast / Miracast) in cr-5.1? This is a long known bug, but as I get from [MENTION=7333858]akshay2shah[/MENTION]'s posts here and here, there's now a fix for it which also already has been implemented to cr-6.1 for the Xperia Z2.

I don't know if this means that it has already been pushed to the cr-5.1 sources for the Z3c too, so it would be great if you could check this and include the fix in the next build. :)
[Xperia Z3 Compact Android Development] akshay2shah:
This fix is only for Android 8.0/8.1 oreo builds.

We had Wifi display working in Android 7.1/7.1 without this fix.
[Xperia Z3 Compact Android Development] okij:
No, trust me, unfortunately WiFi Display isn't working on Android 7.1 for the Z3c, I checked it many times both with LineageOS 14.1 and CarbonROM 5.1 and reported the bug on both threads.

I also doubt that the fix you pointed us to is only for Android 8.0/8.1, as it dates back to 12 Aug 2016. ;)
[Xperia Z3 Compact Android Development] akshay2shah:
Whats kernal version of your rom ,

If it is 3.4 then send me your boot.img

Btw is there option visible of Cast(wireless display) in settings ?
[Xperia Z3 Compact Android Development] okij:
Yes, it's 3.4. I attached boot.img to this post (it's from the current CARBON-CR-5.1-MOO-RELEASE-z3c-20180131-0646.zip I'm running on my device).

Yes, it its, although connecting fails every time, whereas it used to work fine on all stock ROMs.

Thanks for looking into this. :)
[Xperia Z3 Compact Android Development] akshay2shah:
connecting fails means authentication fails.

Use Wi-Fi direct password from TV and connect to TVs WiFi hotspot

(PM me, lets not spam thread)
[Xperia Z3 Compact Android Development] jigga1986:
When is the rom done and ready for upload? ;)

Gesendet von meinem Xperia Z3C mit Tapatalk
[Xperia Z3 Compact Android Development] Myself5:
[MENTION=4916555]okij[/MENTION] the commit you linked only applies to Oreo as p2p and wpa supplicant were merged together in Oreo. It's not valid for Nougat. [MENTION=7333858]akshay2shah[/MENTION]s help is probably your best bet here, but I'll try to remember testing it with my Microsoft Wireless Display adapter next week.

P.S. Thanks for your donation, it found it's purpose. (See attachment ;) )

Idk, like 12 days ago maybe?

https://get.carbonrom.org/device-z3c.html
[Xperia Z3 Compact Android Development] jigga1986:
I mean Oreo

Gesendet von meinem Xperia Z3C mit Tapatalk
[Xperia Z3 Compact Android Development] okij:
Unfortunately [MENTION=7333858]akshay2shah[/MENTION] couldn't help to fix this issue, even though he especially made a modified kernel for me to test.

Now I'm wondering if the Z2 and Z3c use different WiFi hardware or drivers, since akshay2shah wrote that Screen Cast also is working on the 7.1 ROMs for the Z2, whereas all 7.1 ROMS for the Z3c that I tried didn't have working Screen Cast.

You're welcome! Please drop a line about how much the compilation speed increased with your new monster CPU. :D
[Xperia Z3 Compact Android Development] zogoibi:
How to install

Not a single word on how to install, install requirements, device type (D5803, D5833), locked/unlocked phone, etc? :confused: :confused:

Somewhere?
[Xperia Z3 Compact Android Development] marcogiannetta:
Obviously it's for unlocked bootloader, not that hard to get.

You can flash it as every other rom.
[Xperia Z3 Compact Android Development] zogoibi:
And is this ROM good for both D5803 and D5833 basebands? And can I use any custom recovery for flashing? Surely it's pretty obvious for you.