yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact Original Android Development] NeoArian:
I will see about it, it seems like our timekeep doesn't work anymore. WhatsApp shouldn't make problems though since the time gets corrected fast.

This could be possible. Does it work when you don't insert a sim and change the region?
[Xperia Z3 Compact Original Android Development] Spaceoid:
Yes, the whatsapp error message vanishes fast after the phone reconnects to network. Thank you very much for taking a look at the issue, though! Thats really cool :)

Edit' Do you, or anybody else, by chance know where the mmc-wakelock I wrote about comes from? :0
[Xperia Z3 Compact Original Android Development] 0LDST4R:
It's a well known issue with shinano platform devices since LOS 14.1, developers break their heads about it without a solution. The good part with this bug - it isn't really a bug - the wakelook doesn't affect your battery life in any kind. You'll have no battery drain in standby, believe me. [MENTION=4916555]okij[/MENTION] will confirm this.

Greetz,

0LDST4R
[Xperia Z3 Compact Original Android Development] Alizad00:
no the problem still remains

i always set region / lang to en-us

i tried to change country codes using some apps or xposed/ magisk modules but no progress
[Xperia Z3 Compact Original Android Development] Ne2p:
reboot after disconnect VPN

Hello, i have one issue that is important for me.

I disconnect VPN in settings, then the system go to reboot. What can this be about?
[Xperia Z3 Compact Original Android Development] Dabronik:
Hi I have a problem, because sometimes the SMS comes only when I unlock the screen and when someone calls me it says that I am unavailable even though I have full coverage, someone knows what's going on.
[Xperia Z3 Compact Original Android Development] frht5382:
Can you fix miracast? [MENTION=8746471]NeoArian[/MENTION]
[Xperia Z3 Compact Original Android Development] pawloland:
[MENTION=8746471]NeoArian[/MENTION] have already made statement about this issue, here you have it: ;)
[Xperia Z3 Compact Original Android Development] frht5382:
I didn't see.Thank you
[Xperia Z3 Compact Original Android Development] pawloland:
I have the same problem with sms.
[Xperia Z3 Compact Original Android Development] Spaceoid:
When I record voice messages through Whatsapp with the phone in my hand in front of my face, my voice sounds quite fuzzy and sometimes can't be understood easily. Can anybody here confirm this/is this a known issue (searched the thread but did only find sound problems during calls), or might my hardware be broken? Thank you!

Edit: Also, during WhatsApp Video Call, the other side cannot hear my voice.
[Xperia Z3 Compact Original Android Development] NeoArian:
Finally I can release a new build within an hour.

I have spent the last 2 days on working on the kernel and as a result I have got a clean on the CAF tag with 3.4.113 merged in kernel for our z3c, upstreamed to pie of course. Since this is a complete rebase there can be many random new bugs so it would be great if you could report as much as possible :P

I'm running a new build now and will upload it asap.

Have a nice day!

!!!It can be partially unstable!!!

source is here: https://github.com/z3c-pie/kernel_sony_msm8974

After I flashed GApps it got way less stable, don't install it on your daily driver better!
[Xperia Z3 Compact Original Android Development] inadd:
Hi NeoArian this is my first post on xda!

I'm in need for encryption support in TWRP.

Do you know why it doesn't work on z3c yet?

TWRP 3.2.3 has the same problem like your 3.3.0 although the TW compile flags are set.

Could be a hard one to debug.

Thank you very much for your time and effort to support this old device!
[Xperia Z3 Compact Original Android Development] NeoArian:
Which TW Flags do you think of? I haven't looked into encryption at all yet.
[Xperia Z3 Compact Original Android Development] inadd:
z3c-pie/twrp_device_sony_z3c/blob/android-6.0/omni_z3c.mk

# TWRP Crypto
TW_INCLUDE_CRYPTO := true
TW_CRYPTO_FS_TYPE := "ext4"
TW_CRYPTO_MNT_POINT := "/data"
TW_CRYPTO_REAL_BLKDEV := "/dev/block/bootdevice/by-name/userdata"
TW_CRYPTO_FS_OPTIONS := "nosuid,nodev,barrier=1,noauto_da_alloc,discard"
TW_CRYPTO_FS_FLAGS := "0x00000406"
TW_CRYPTO_KEY_LOC := "footer"

That TWRP 3.2.3 "ShadowElite117/android_sony_shinano_twrp/blob/aries/omni_aries.mk" uses exactly the same TWRP Crypto flags so maybe this is the cause it's not working.

https://xdaforums.com/showpost.php?p=71072004&postcount=2748
[Xperia Z3 Compact Original Android Development] koron393:
Shinano device need system vold based FDE decrypt.

Android pie like this.

# TWRP Crypto
TW_INCLUDE_CRYPTO := true TW_CRYPTO_USE_SYSTEM_VOLD := \
qseecomd \
keymaster-3-0 \
hwservicemanager \
servicemanager
[Xperia Z3 Compact Original Android Development] Spaceoid:
Would love to test the new build too, as i am highly interested in the LOS-development for this older phone, sadly its my daily driver and I am not couragous enough to test it yet :'D
[Xperia Z3 Compact Original Android Development] Spaceoid:
On my device with the build of 06-15, GPS is not working reliably. Sometimes it works well, locks my location pretty fast and navigates me well, and sometimes, I just do not find any signal/location, no matter which mode I choose. That was no issue on my old device on LOS16, so I assume its device-specific. Searching the thread, I read that GPS SHOULD work, it does not for some it seems. Is there any workaround or solution, or am I doing sth wrong? :)

Edit: Did some testing - GPS seems to work ONLY when Google Location Services are activated as well, even in "Only Device" mode! Works well then, though.

Edit2: GPS for me seems to only work if Google Location Services are activated as well as (!) Wifi OR "Always search for Wifi in background" under "Search" in the location settings. It then is very accurate, but I cant get it working without Wifi, Location Services and Always-Search-For-Wifi, so ONLY GPS does not work for me....
[Xperia Z3 Compact Original Android Development] stebler:
Here is dmesg from latest build. I don't use GApps, but I have enabled encryption. Also it's not my daily driver so I can test stuff if needed.
[Xperia Z3 Compact Original Android Development] NeoArian:
Good evening,

first of all many thanks to everyone who reported stuff :)

I have attached a new boot.img and hope that it runs a bit better :D

I have tested it without GApps only now but it seemed to be stable so far, it would be cool if someone else can test it :)

Have a nice day!

Btw: small offtopic, my z3c touchscreen doesn't work in the middle part anymore (like: https://androidforums.com/threads/sony-z3-compact-screen-dead-in-the-middle.1131287/ ) anyone here ever faced this/knows a fix?
[Xperia Z3 Compact Original Android Development] stebler:
It works fine for me.
[Xperia Z3 Compact Original Android Development] pawloland:
I faced the same issue (or at least very similar one). My screen was unresponsive at some places and from time to time it "touched" itself. It is very likely hardwear issue - broken digitizer. IIRC screen of our z3c is made of 3 layers: glass, digitizer and lcd panel. The easiest (and most expensive way) is to replace whole screen. It is also possible to replace just broken digitizer. It is harder to do but it is also cheaper so that's what i did. I decided to do that because original sony's screens were expensive (probably more expensive than used z3c) and fakes had much worse colours than sony's.

Keep in mind that your z3c for sure won't be waterproof anymore after opening it to fix digitizer/replace whole screen (considering it beeing still waterproof after end of warranty).

Good luck with fixing:fingers-crossed:
[Xperia Z3 Compact Original Android Development] NeoArian:
Thanks for your reply! I haven't found a reliable source of original screen replacements, do you know one? Anyway I guess I would try to replace the digitizer since it isn't my main phone I would like to not invest too much money ^^. Do you have any "tips" or great tutorials that helped you maybe?

Also to make sure: https://s.click.aliexpress.com/e/7cS5GdK is like what you mean right?
[Xperia Z3 Compact Original Android Development] stefandoesinger:
Could it be the battery expansion problem, i.e. the battery pressing the screen layers against each other from below? My screen is pealing off and only held on by tape :)

I'll test your new boot.img tomorrow. I have to flash or boot it with fastboot, not install it with twrp right?
[Xperia Z3 Compact Original Android Development] hapmpt:
I've had the same exact problem. In my case it was caused by the battery expanding and breaking the digitizer on the screen from the pressure. In the end I got a new OEM screen, new battery and new NFC antenna (it's a pain to peel out the old one as it's glued to the battery) from replace base. I followed instructions from ifixit to then do the actual replacement.
[Xperia Z3 Compact Original Android Development] pawloland:
By "i did it" i meant that i went to service in my are and paid them to fix it by replacing broken digitizer. I didn't fix it by myself. In my opinion it was/is risky to replace just digitizer in house conditions without expeirience, tools and machine (13min33sec) used in this vid [youtube]ESs3KXqG7Rc[/youtube]. It's very easy to break lcd panel when scrubbing it from glue so i wouldn't recommend you to fix it by yourself. If you do something wrong you will need to pay extra money for whole screen replacement. I don't know from where exactly my service was geting digitizers, but sony's screeens were mostly refurbished from broken phones. If i were you i would check if someone is selling used z3c. Buying used z3c may be less expensive than fixing broken one.
[Xperia Z3 Compact Original Android Development] NeoArian:
Oh, nice guess that could also be possible. I replaced the back glass once and since the screen is not working in the middle part anymore the back glass is taking off itself often. If this would be the case, could it be possible that it is just the pressure which temporarily makes the screen unresponsive? :D

From where have you got a new OEM screen?

I haven't found a good deal for any Sony msm8974 device yet, I'm looking since some time for a cheap used tablet so that I can take care of 2 Sony msm8974 :D
[Xperia Z3 Compact Original Android Development] stefandoesinger:
Considering the number of downloads and comments in this thread maybe we can come up with enough donations for NeoArian? I see even new devices are still available on Amazon, full with reviews about broken screens due to battery bloat.

I've donated a small amount. Compared to the amount of time necessary to build this OEM multiplied by a proper IT wage it is nothing, but maybe it'll do more than just clicking the "Thanks!" button...
[Xperia Z3 Compact Original Android Development] NeoArian:
Many thanks for the donation! But all of you should keep in mind that I don't depend on donations, I do this stuff as a hobby and not for any money at all and I like to do it for free. Nevertheless it's nice to get a donation especially when I can invest it into the device itself :)

I am looking for some not too expensive solutions now. Since it isn't my daily driver I can wait for a good deal/ order some stuff from China :angel:

By the way: anyone tested the boot.img yet? Still no crashes here, camera recording is also fixed with stock cam now :)

Have a nice Day!
[Xperia Z3 Compact Original Android Development] stefandoesinger:
I am running it and deliberately using the phone for random web surfing to put some stress on it. So far it looks good, but it always took approx. 24 hours until the memory leak manifested itself visibly.
[Xperia Z3 Compact Original Android Development] hapmpt:
This is the one I got:

https://www.replacebase.co.uk/sony-xperia-z3-compact-replacement-lcd-touch-screen-assembly-black/
[Xperia Z3 Compact Original Android Development] stebler:
On the old one I was able to make it crash very quickly just by opening many apps and firefox tabs but that's no longer the case with the new boot.img.
[Xperia Z3 Compact Original Android Development] NeoArian:
Right, so you don't get any crashes at all anymore? At least I haven't got problems so far :)
[Xperia Z3 Compact Original Android Development] Spaceoid:
On my phone, the touchscreen didnt work properly anymore in the top half. I do not know why exactly that happened, as my battery didnt seem very swollen. You can find tons of reports of non-responding touchscreens through google, though, might be a general problem of the phone. Never read an official "reason" for that, though. I bought myself a new digitizer and screen (all complete already) through ebay for 19.99, repaired it myself, and it works just fine. Only problem: The new screen is slightly smaller than the old one, but I got a partially refund for that, so thats okay. From my experience, the cheaper screens from ebay normally are good to go for like 90% of the time. Its a bit of a gamble, but I didnt have the money to buy a 50€ screen for a 3 year old phone. :'D

Couldnt test the new build yet, as like I said its my daily driver and I felt it was a little risky to test it :'D Btw, do you know why my GPS might not work reliably? :) Thanks for all the work on our device!
[Xperia Z3 Compact Original Android Development] stefandoesinger:
After 2 days build 20190630 with the boot.img from post 504 is still running fine. I'm looking forward to the next build :)
[Xperia Z3 Compact Original Android Development] NeoArian:
Thanks, I guess I would also go with a new screen. I have checked gps within the last days sometimes on my z3c and it seemed to work and lock in am average time of about 10 seconds, after a boot about 20-30. I remember having experimented with GPS on the uploaded builds so the next build could fix it for you. :)

Great, I will include it in the next build with the July ASB. I am working on a new TWRP tree with [MENTION=8036586]115ek[/MENTION] these days. It already works mostly but somehow we haven't been able to figure out why we can't boot from advanced reboot -> twrp and also from twrp -> twrp.
[Xperia Z3 Compact Original Android Development] NeoArian:
Good evening,

I have uploaded a new build!

Download: https://sourceforge.net/projects/ep...age-16.0-20190708-UNOFFICIAL-z3c.zip/download

Changelog:

Changelog 2019-07-008
* July Android Security Bulletin
* Rebased Linux 3.4.113 Kernel
-> Solved video recording lags with Snap

The source of the Kernel is of course available at Github: https://github.com/z3c-pie/kernel_sony_msm8974/tree/20190706

I hope that a new TWRP can follow within the next days ;)

Happy flashing and have a nice day!
[Xperia Z3 Compact Original Android Development] MacGyverLarisa:
Hi

In my z3c i destroy front panel (frame+ touch + lcd).

i change it alone with one from aliexpress lcd Display Digitizer Sensor Z3 mini LCD with Frame

all together 19Euro.

Now my phone work again.

Do you want link for check for yourself?
[Xperia Z3 Compact Original Android Development] NeoArian:
Hey,

Thanks for the feedback. I would be thankful if you can share the link if you are satisfied with the screen.
[Xperia Z3 Compact Original Android Development] MacGyverLarisa:
Yes i'm very satisfied with the product i buy and the shop.

before i broke my phone i have problem with GPS no lock and i send it in service senter here in Greece they say i need new motherboard 286Euro because my phone have scrathes its outside of guaranty.

Now with the new screen they came new body frame+lcd+touch screen+loud speaker+3mm male high jack with cable.

From my old phone i use only battery nfc motherboard and speaker. With the first boot i give a try in GPS and i have instant lock inside of my house.

So YES im fully satisfied.

In photo its the cable with gps problem (my opinion)

https://www.aliexpress.com/item/328...&terminal_id=76b5cb1cc6a44f39b4ae4ba173b09f1f
[Xperia Z3 Compact Original Android Development] Spaceoid:
Flashed new build today. Works well even with Gapps. Only problem I faced is that Magisk couldnt unmount system after the successful flash (probably because of the Magisk addon?), so I had to force Magisk to shut down afterwards.

Phone still forgets date and time. GPS works! Everything else good, too!
[Xperia Z3 Compact Original Android Development] StarGeneral:
Is the recent build useable for a daily again? NeoArian warned to use one of the latest builds for dailys, that is why i am asking. Thank you very much!

E: I used theese parts to fix my phone and i am fully satisfied until now (did it approx. half a year ago):

LCD

Backside

Battery

EarPhone Flex

Util
[Xperia Z3 Compact Original Android Development] NeoArian:
Yes, the new build is stable. Thanks for the links.
[Xperia Z3 Compact Original Android Development] StarGeneral:
Thank you! The last build i find by using the updater is the one from 30. June... there should be one from yesterday accoring to your posts?
[Xperia Z3 Compact Original Android Development] NeoArian:
Yes, I haven't updated OTA yet since I missed the OTA repo while the build so my script skipped it for now. I will do it today evening.
[Xperia Z3 Compact Original Android Development] StarGeneral:
Ok thank you!
[Xperia Z3 Compact Original Android Development] Spaceoid:
Is it possible to use the newest Magisk with the new build or should we stay on 18.1 for the time beeing? :)

Edit: Wow, with the new build my LED also works for the first time! Thank you!!!! :))
[Xperia Z3 Compact Original Android Development] Bore1:
Finallyt had time to test rom the fm radio still doesent seem to work , music starts to play loud few notes then vol goes down a bit , also when playing music from external card and using headphones that weird sound problem is still there (has something to do with audio fx and reverb), will test more on weekend
[Xperia Z3 Compact Original Android Development] Spaceoid:
For the first time I now faced the noise-during-call-problem. Happens with WhatsApp voice messages too, if you hear them with phone on ear. Also calls and voice messages are very loud, and I am not entirely sure if the sound regulator works during calls/voice messages. Also notification sounds are super loud, despite low notification volume!

I googled the issue though, and the noise-problem could also be a problem of our phone. Found lots of threads where the problem occured on different android versions.

Edit: I still can't seem to get a GPS lock in "only GPS" mode and Wifi deactivated (also Always-Search-for-Wifi deactivated. [MENTION=243973]arian[/MENTION], you said you had a GPS lock after 10-30 seconds, was that only via GPS or with Wifi? :) I also tried the App "SatStat" from F-Droid to check if my phone connects to satellites at all, but even after waiting for ~ mins no satellites were found, so for location services the phone relies entirely on GSM/Wifi. Would be interesting to hear from the others wether they get a clean GPS lock.
[Xperia Z3 Compact Original Android Development] Bore1:
GPS works fine for me with and without wifi or mobile data on

I use latest magisk and it works fine tho i use it only to get root acess to some apps
[Xperia Z3 Compact Original Android Development] dhemker:
Can confirm the in call noise problem appeared again. It was fixed in June's build but seems to be back in latest build :/
[Xperia Z3 Compact Original Android Development] Spaceoid:
And you for sure have deactivated "Always search for Wifi" under "Search" in the location settings? :)

I attatched a screenshot of the app "SatStat" that checks GPS satellite reception. I was in the open and let the device search for 10 minutes, but it nearly found anything...

Edit: I just read that the GPS sensor is related/connected to the audio jack, which I changed a few weeks ago. Might be a hardware problem then. I will investigate.
[Xperia Z3 Compact Original Android Development] frht5382:
Same issue and what about screen mirroring? Did you test it?
[Xperia Z3 Compact Original Android Development] Spaceoid:
You mean, you also do not get a GPS fix?

Sadly I have not and cannot test screen mirroring :/
[Xperia Z3 Compact Original Android Development] NeoArian:
Could anyone give me his output of "cat /proc/partitions | grep mmcblk0p25" from terminal when device is in recovery mode? The third value (size in blokcs) should be 12589039 or 12359663. The first one is the value set in our trees and in sodp. My phone gives me the second value and i wanna make sure that it is a local problem of my phone. It doesn't matter which ROM you are using btw :)
[Xperia Z3 Compact Original Android Development] frht5382:
Yes
[Xperia Z3 Compact Original Android Development] Bore1:
yea me too and also was far from any wifi

Could anybody try to play music and put headset on
[Xperia Z3 Compact Original Android Development] Spaceoid:
On my device its 12359663! :)

---------- Post added at 04:13 PM ---------- Previous post was at 04:12 PM ----------

Just to understand it right, you did NOT get a GPS lock, right?

I just opened my phone, cleaned and fixed all the contacts, but things didnt change. Conclusion would be a software issue, if other users do have this problem as well.

Music via headphones works for me.

Edit: Okay, so while trying to repair my faulty GPS sensor connection I accidently damaged my battery... I already invested ~30€ in spare parts for the phone, and now it is time to stop I guess, so I'll go back to my old Galaxy S4 Mini... Thank you, Arian, my fellow german Android friend, for beeing one of the only developers for this phone and bringing Android 9 to it. It was a short time with this cool phone, but it was only that nice because I could get Android 9 going! :) Keep on the good work, there are always more people thankful for it than you think!
[Xperia Z3 Compact Original Android Development] okij:
Some days ago [MENTION=4750855]StarGeneral[/MENTION] posted some links to spare parts here on this thread. You can get a new Z3c battery for just under 10 € including shipping. IMHO it should be really worth fixing your Z3c. :)
[Xperia Z3 Compact Original Android Development] Spaceoid:
Yeah, normally I always would fix a broken device, if the fix seems possible and isnt too expensive, the problem is that now battery liquid leaked into the whole device, and the GPS sensor wont work at all as it seems, while I already fixed the screen, the audiojack and the USB slot, so it just feels like its about time to stop now, as the problems wont stop... Its the old device of my cousin, and he seems to not have handled it very nicely...
[Xperia Z3 Compact Original Android Development] NeoArian:
Good evening everyone!

So i have been doing this LineageOS 16 for Z3 Compact since the 5th of january and it's already more then the half of a year. I think it's time to say thank you to you all. Working on this device is so much fun (it repressed my Xiaomi Mi 6 in my spare time) and also the communication is working just great through XDA at this point. Thanks that you help with testing, contribute with fixing bugs or just listing them or even donating some money to me. We really have a community here i enjoy to work with :) I have spent too many nights while doing stuff here but i never regretted it or had the feeling it wasn't worth.

I hope that we can continue this project in future and keep this five years old device alive as long as possible. This also motivates me to get a new screen for my 2nd device. I guess i will go with the one [MENTION=4750855]StarGeneral[/MENTION] shared.

In the near future i will also sharea new twrp compiled within an android-9.0 environment as already mentioned here: https://xdaforums.com/showpost.php?p=79892993&postcount=3

Right now i am stuck on the decryption but i am pretty optimistic that we can get this work, apart from this it seems to work fine. If anyone wants to look at the minimal tree, here it is: https://github.com/z3c-pie/twrp_device_sony_z3c

However i can tell that there won't be any updates within the next two weeks because i am going on holidays finally :)

Have a nice time