yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Original Android Development] Rogueribs:
SIM card cannot be used

Excuse me. I flashed two versions, 0223 and 0514. But the SIM card has no signal and can only read the phone number, but there is no signal. The wireless network can work normally. I flashed baseband,but I only have the older baseband version. How to solve this problem? Thank you!
[Xperia Z2 Original Android Development] devilgloom:
I use Google phone dialer after make a call I'm not hear my friend voice and select speaker mode and that also not work and microphone also not work but i use stock phone dialer from rom and bug is gone for stock dialer just Google phone have that problem.

Thank you for your efforts i check all thing such ( camera . Sms . Telephony (also WhatsApp call perfect work) . Speaker . Microphone even Google assistant is enabled not problem to that) and everything is very good work . Battery drain is low and charge not slow like other rom i check everything for now all things pretty good stable. Thank you for build great and stable rom.
[Xperia Z2 Original Android Development] 0LDST4R:
Please check the permissions on google dialer, then disable the "ok google" voice detection and do a call. Seems to be the good old fluence problem...
[Xperia Z2 Original Android Development] devilgloom:
That surprised me because with stock phone dialer and ok Google enable i have not a single problem but with Google dialer I'm not able to talk or hear other side sounds but thank to you , i like this rom because completely stable and update, i use stock dialer that not big problem i use Google phone or not.

I check gps and work perfect in waze and Google map.
[Xperia Z2 Original Android Development] the_gixo:
Can't believe how awesome this ROM is!

Although I'm not much of a vanilla LineageOS fan, but this ROM has been so good so far that I'm gonna keep using it.

One minor thing that you might bump into is having WiFi issues and that could be caused by having a custom ROM before hand or using wrong TWRP version. Reverting back to stock Marshmallow ROM and using the provided TWRP would solve the issue.

Can't wait to see other Android 10 ROMs based on this one.

Kudos to [MENTION=8746471]NeoArian[/MENTION] for providing such great ROM for all of us and [MENTION=9129635]OLDST4R[/MENTION] for donating the Xperia Z2 used for this project.
[Xperia Z2 Original Android Development] ali6944:
I'd like to thank all those involved in this project, really, keeping this phone alive for one more year is an amazing feat.

So far, everything works, ROM is more than enough for daily use.

Only issue is the age-old WiFi country code problem.

Raschad fixed (thanks BTW) this on his Pie builds and shared his commit here:

https://github.com/Raschad/platform...mmit/087750301a18e9df6e1da16da4b38a43ab01a66a

Would implementing this in the next build be a problem?
[Xperia Z2 Original Android Development] NeoArian:
Yes it would be a problem, that fix is not looking good. You could just apply something like: https://review.lineageos.org/c/LineageOS/android_device_sony_z3c/+/265564

The file is available in /system/vendor/firmware/bcmdhd.cal.

I will try to fix it better soon. When Germany is set it seems like 5Ghz hotspot is not working. Is US working better? Some feedback would be welcome about different country codes set.
[Xperia Z2 Original Android Development] ali6944:
Agreed, the fix has its issues, i forgot about not being able to connect to wifis with hidden SSID's, but it was better than not having wifi at all.

As it stands, having my sim card in the phone means that connecting to wifi requires putting the phone in airplane mode, rebooting, connecting to the network then turning airplane mode off, only to do it all again whenever i need to connect again.

All the fixes i've looked at since android 7.0 custom roms started rolling out changed the code to US, but all seemed to break 5Ghz hotspot, i never had any use for it so i didn't mind and left it at that.

It's cumbersome but i can live with it in case any bugs need reporting to you guys.

I'll give this a try and report back, Thanks!.

Update: so ccode for me is set to XT, created a new bcmdhd.cal with ccode set to US and flashed it, doesn't seem to change anything, still set to XT, i'm probably doing something wrong?
[Xperia Z2 Original Android Development] NeoArian:
What do you mean by flashed? You need to replace the file in vendor/firmware/bcmdhd.cal. if you have a PC you can use adb to do it directly on the phone:

adb root

adb remount

adb shell

nano /vendor/etc/firmware/bcmdhd.cal

reboot

Note: iirc magisk breaks adb root and adb remount so don't use that if possible.
[Xperia Z2 Original Android Development] blacknight153:
Sony camera app

so i installed the rom on my phone its very good so far but can i install sony's camera app
[Xperia Z2 Original Android Development] ali6944:
I was creating a zip file that puts the modified bcmdhd.cal in the correct directory with the same permissions, apparently I messed that up somehow or it isn't how it's done at all :D.

I'll give adb a try
[Xperia Z2 Original Android Development] Ahmed elrazky:
Thanks for great rom everything works fine but i have 2 issue first microphone sound in call is bad (ok google disabled) and in camera when take a photo using flash the photo look very washed i tried another camera app and same problem
[Xperia Z2 Original Android Development] @kitokit:
Great rom. Has anyone tried viperandroid?
[Xperia Z2 Original Android Development] 2now:
Help!

Hello, am about to flash this rom but I just have these few questions;

Can I flash it using twrp3.0.2.0?

Will formating data, wiping cache and dalvik cache and wiping data delete all the files on the phone's internal storage?

Thanks in afvance.

And hat's off for this development
[Xperia Z2 Original Android Development] ali6944:
Yup, It Bootloops for me

---------- Post added at 09:25 PM ---------- Previous post was at 09:20 PM ----------

Use the TWRP linked above in the OP, it's version 3.3.1.

Wiping system, data, dalvik and cache won't affect internal storage, just your apps and settings, formatting data to get rid of encryption WILL wipe the internal storage, Take a backup of everything to a pc or SD card.
[Xperia Z2 Original Android Development] NeoArian:
Not that I am using that kind of stuff but I have heard a few times that viper4android is broken on enforcing selinux with new android versions. You can try to flash this: https://github.com/AdrianDC/kernel_.../master/release/kernel_permissive_patcher.zip and try it again.

As others suggested, please use the recommended and updated TWRP from my post#2 in this thread.

You are welcome! About the Camera we can't do much. I am experimenting with adding the stock Audio HAL to improve the audio quality. I will publish a build with that soon. (Can take a while, exams start next week).
[Xperia Z2 Original Android Development] 2now:
I really tried downloading the file (twrp 3.3) but it says "page not responding" can you please mirror it elsewhere?

Thank you

---------- Post added at 11:39 PM ---------- Previous post was at 11:24 PM ----------

This exactly what my browser says

https’s server IP address could not be found.

DNS_PROBE_FINISHED_NXDOMAIN
[Xperia Z2 Original Android Development] 2now:
Thanks alot for the link.
[Xperia Z2 Original Android Development] Spank2000:
Is this room stable to use as a daily driver phone? Thinking of upgrading from stock MM to this.
[Xperia Z2 Original Android Development] koraymers:
exactly. i use daily
[Xperia Z2 Original Android Development] Spank2000:
OK thank you very much.
[Xperia Z2 Original Android Development] dontyson112:
the device overheats a lot with this rom and it does not charge quickly
[Xperia Z2 Original Android Development] Rogueribs:
SIM card cannot be used

:eek: The sim card works fine on Android 6.0, this does not work.
[Xperia Z2 Original Android Development] hadijalalish:
Is call recording enabled in this rom?

As you know, in android 10, it has been disabled.
[Xperia Z2 Original Android Development] AzraelX:
quick charge is not working. that's true. but I don't have any overheat problem. :)
[Xperia Z2 Original Android Development] Spank2000:
Hello,

which version is the latest version? becuase there seem to be different links...
[Xperia Z2 Original Android Development] NeoArian:
The latest version is available here: https://sourceforge.net/projects/ephedraceae/files/sirius/lineage-17.1/

I have switched from Osdn back to sourceforge a while ago. I'm currently on vacation until end of july. After that I will update the rom and the first post with the correct download link.
[Xperia Z2 Original Android Development] Spank2000:
Hello thanks for the ROM

I have d6503 and it can see which mobile phone carrier i have but not find number.

Can someone help??
[Xperia Z2 Original Android Development] Spank2000:
Ok here you go.
[Xperia Z2 Original Android Development] Spank2000:
IMEI
[Xperia Z2 Original Android Development] Spank2000:
I've taken it out and restarted phone. But still the same.

What should I do?
[Xperia Z2 Original Android Development] Spank2000:
But how could the SIM be damaged if I haven't taken it out before installing the custom ROM becuase it worked in the stock ROM.
[Xperia Z2 Original Android Development] Spank2000:
Oh... :(

I will try sending SMS to myself.
[Xperia Z2 Original Android Development] Riskie123:
Error 255

Hi i cannot for the life of me find out why my xperia Z2 TWRP is throwing an error 255 at me. Does anyone have any suggestions?
[Xperia Z2 Original Android Development] Riskie123:
Oh i thought the most up to date sirius twrp-3.0.2-0. has twrp become universal now? so that i may now update to the latest twrp out regardless of the phone im using?

one more thing please, on the sourceforge page the latest update is 20200712, but what does davinci mean?

thanks
[Xperia Z2 Original Android Development] Riskie123:
I have updated twrp but i am now getting a new error even after "Fix contexts".

the error is "zip treble compatability error" "invalid zip file format".

is there a fix for this one?. even after removing the assert lines in the zip file im still getting this error

Edit: removing the compatability zip inside the rom gives error 255 again haha.
[Xperia Z2 Original Android Development] Riskie123:
Ah i see, i am trying to flash from lineage-17.1-20200514-UNOFFICIAL-sirius.zip to lineage-17.1-20200712-UNOFFICIAL-davinci.zip, i may have been confused by the fact they are both shown on the same page. so am i to take it that davinci is a different devices codename? initially i thought it was like a programmers handle.

if so its a good thing i didnt flash it haha.
[Xperia Z2 Original Android Development] Spank2000:
Actually, I just tried to SMS someone, and I could send and recieve messages. Looks like I don't have to go back to stock :D

Weird that it can't pick up my number and it says "disconnected" though.
[Xperia Z2 Original Android Development] Arcanik:
Stuck at Boot Screen

Flashed the ROM through TWRP 3.2.3-0. Everything went well, also flashed gapps after flashing the ROM. But the problem is when I try to reboot in system the Lineage loading screen takes forever and after 4-5 minutes it takes me back to the recovery. Please help me fix this problem. (I wiped cache, delvik, system, data before flashing. Every instruction was followed properly as long as I remember)
[Xperia Z2 Original Android Development] NeoArian:
That sounds like a problem with the encryption. Did you format data (not just wipe) to get rid of encryption?
[Xperia Z2 Original Android Development] Arcanik:
I unlocked bootloader from fastboot mode via command prompt(followed sony's official dev page) then I installed twrp using cmd. No, I do not have super su installed. ""Do you have super user privileges, ROM 6, v291 and a patched boot partition?"" how do I do that.
[Xperia Z2 Original Android Development] Arcanik:
I flashed the stock ROM that you have given on gdrive and checked if bootloader is unlocked and found it is already unlocked so I installed twrp. Now the problem is when I try to flash magisk from twrp it fails with error 1. Can you help me with that?
[Xperia Z2 Original Android Development] silent0assassin:
I've installed it as you said..but the phone has overheat and wifi not working (not discovering any network)..any help !?

Now i'm using stock rom.
[Xperia Z2 Original Android Development] Arcanik:
Sounds like a lot of work, I flshed the stock using flash tool, was working great, then flashed Lineage without gapps and the phone was functional but when I flash gapps through twrp the same thing happens, stuck at bootlogo and after a while reboot into recovery. Now I've lost my motives
[Xperia Z2 Original Android Development] byggmarkus:
sd card as internal memory

I have problem I cant use sd card as internal memory. Get a error code: attempt to invoke virtual method java.lang.string........

Tried two different sandisk and one kingstong sd card. Same error. Works as a mobile storage.

It did work on my phone in Lineage 15.1

Any idea?
[Xperia Z2 Original Android Development] Javad909:
I wonder if hard coding the ‘setCountryCode’ method in ‘WifiManager.java’ in

github.com/LineageOS/android_frameworks_base/blob/lineage-17.1/wifi/java/android/net/wifi/WifiManager.java

- mService.setCountryCode(country);

+ mService.setCountryCode(“US”); //neglecting ‘String country’

could solve the WIFI 5GHz and general WFI problem in some regions or not?

Like what has happened in AOSP Extended Pie:

github.com/Raschad/platform_frameworks_opt_net_wifi/commit/087750301a18e9df6e1da16da4b38a43ab01a66a

I know it is not right to do such thing in general, specially that WIFI is working ok in some regions, but it worth a try or we could have a separate build for those who have WIFI problems. I personally searched a little to figure it out how I could build the rom myself, but I’m afraid I don’t have enough knowledge to build the rom from scratch.
[Xperia Z2 Original Android Development] NeoArian:
Good evening!

I have uploaded a new build!

Download: https://sourceforge.net/projects/ep...-17.1-20200730-UNOFFICIAL-sirius.zip/download

This build should fix the modem on D6502. This build is temporary in permissive selinux since you mentioned that enforcing broke D6502. To fix this i need a full adb logcat from a boot on D6502 with this build and the /tmp/d6502_log file in recovery directly after flashing the rom.

Happy flashing!
[Xperia Z2 Original Android Development] alevia:
sd card as internal memory

I use "SanDisk Ultra MicroSDXC 128 MB (10)" as internal memory but i had a problem formatting it for the first time. I tried the next day to format the memory card as internal memory and it worked fine for me with this version of LineageOS (LineageOS 17.1 for Xperia Z2). I don't remenber the message or error code. Perhaps the problem was that I had not turned off the z2 (re-boot) or that I had dirty pins for the sd card. No problems when formatting it as portable memory instead.
[Xperia Z2 Original Android Development] byggmarkus:
Which build date lineage 17.1 you use? I have tried many times. Will not format as internal memory [emoji17

Update:

New lineage build from yesterday. Still same error.

Maybe if I flash another kernel/firmware?
[Xperia Z2 Original Android Development] alevia:
[MENTION=9590097]byggmarkus[/MENTION]

I use "lineage_sirius-userdebug 10 QQ2A.200501.001.B2 eng.arian.20200525.123905 test-keys". I don't think SD card management has changed in the latest versions. I have to make a clarification: I use the PIN to access the mobile phone. The use of the PIN seems to give me the time to prepare the SD card in an appropriate way for the startup of the phone. If I do not use this trick, the installation of the sd card can fail. I tried to use the phone without a PIN a few times and I did not investigate this problem.
[Xperia Z2 Original Android Development] Alt80:
Hello, did this build solve SD card issue, such as camera file saving, and spotify save data to SD card? Thanks in advance!
[Xperia Z2 Original Android Development] byggmarkus:
Did not fix my "SD as internal memory" problem [emoji17]

Update: After several times it finally works! :D
[Xperia Z2 Original Android Development] Angelow0_0:
screen went black after successful installation on Xperia Z2 d6502.hepl me please.
[Xperia Z2 Original Android Development] alevia:
After several days that the phone remains on, the different applications do not respond and so it is necessary to reboot to return to normal operation. It seems to happen using the internet, but 99% of the apps I launch use the internet. How can I understand why this happens? I think it is difficult to find out the problem. Anyone have a suggestion? Can I schedule an automatic reboot overnight?
[Xperia Z2 Original Android Development] ticktock666:
I'll download this and look into getting you the files

Last time I did a a boot log the adb logcat command wouldn't work, and I ended up using liveboot by cjainfire, would that be acceptable to you?
[Xperia Z2 Original Android Development] alevia:
When I plug my Xperia Z2 into the BSC10 Docking Station (with Bluetooth Speakers with magnetic charging pad) and it is in the block state, the screen does not contain information such as the clock, date and application notifications but only the status row and the PadLock. This information, such as the clock, date and notifications, are displayed correctly when the screen is simply locked.

Edit: it happens even if the phone is not docked or it is not in charge, it is enough to simply turn on the rotation of the locked screen in the display menu (the rotation of the screen must be on).

It is not urgent and it is not a big problem.
[Xperia Z2 Original Android Development] dontyson112:
problèmes charging

---------- Post added at 06:28 PM ---------- Previous post was at 06:23 PM ----------

Charging is too slow
[Xperia Z2 Original Android Development] alevia:
Small problem. Calendar Widget has date in the title that doesn't automatically update.
[Xperia Z2 Original Android Development] Spank2000:
Can we flash new builds on top of old builds without losing data?
[Xperia Z2 Original Android Development] saltylemondrops:
Sure. Just flash the new build in TWRP and reboot as stated in the OP. You'd better backup your current Rom before flashing so you can revert to it just in case something goes wrong or you are not happy with the newer build.
[Xperia Z2 Original Android Development] pesimist2006:
anroid auto screen mirroring does not work
[Xperia Z2 Original Android Development] SAMAN 5949:
this rom its 70hz ?
[Xperia Z2 Original Android Development] SAMAN 5949:
hello thanks for this rom

wifi problem not find any wifi . can fix? patch?
[Xperia Z2 Original Android Development] guhvanoh:
please edit your post and delete the OP. There's absolutely no reason to include it in full in your post.

Thanks.
[Xperia Z2 Original Android Development] SAMAN 5949:
I could not find this file and this path
[Xperia Z2 Original Android Development] amir.hz.karimi:
Hi, I want to change Wi-Fi country code, But I can not find /vendor/etc/firmware/bcmdhd.cal in the internal storage or even in the ROM installation file.

What should I do to modify Wi-Fi country code?
[Xperia Z2 Original Android Development] ticktock666:
You can try the following, no idea if it works, but maybe worth the shot

Install magisk, then install edxposed, then install the wifi region fix module, see if it works.
[Xperia Z2 Original Android Development] SAMAN 5949:
i install and not work magisk and edxposed and all madule check

when take off sim card and reboot phone wifi its working
[Xperia Z2 Original Android Development] jay23215070:
I hope that the current battery level can be seen when the phone is turned off charging, and a larger charging symbol will can be displayed
[Xperia Z2 Original Android Development] @kitokit:
Does anyone here knows what magisk module that allows taking screenshots on banking apps? Is there any. Edxposed has that kind of module but I'm trying to avoid edxposed because it's very hard to pass safetynet with it. Is there a magisk module that has that capability?
[Xperia Z2 Original Android Development] Shemr!:
would it make a difference to flash the DRM function restore for this rom?
[Xperia Z2 Original Android Development] Alt80:
Is this ROM still developed?
[Xperia Z2 Original Android Development] francois095:
Hello

I am on eXistenZ premium version 7 on my z2, i want to Install TWRP 3.3.1 for to flash lineage 17.1, i try with fastboot, with TWRP apk, with TWRP zip but i am always on TWRP 2.8.7 on my phone, i try many times and it's always the same problème, i have the bootloader unlocked

Can you help me please thank you
[Xperia Z2 Original Android Development] @kitokit:
You have to go back first to stock before installing this rom to avoid any bugs.
[Xperia Z2 Original Android Development] francois095:
[MENTION=412108]kitok[/MENTION]it

I need to downgrad to 4.2.2 ftf before to Install TWRP 3.3.1 with fastboot? It's what you mean?
[Xperia Z2 Original Android Development] @kitokit:
Stock marshmallow 6.0
[Xperia Z2 Original Android Development] francois095:
[MENTION=412108]kitok[/MENTION]it

It's what i do but It's the same problem, its very strange
[Xperia Z2 Original Android Development] @kitokit:
What do you mean you flash with twrp apk?

Did you try fastboot?

Are on stock MM now?
[Xperia Z2 Original Android Development] francois095:
[MENTION=412108]kitok[/MENTION]it

Of course i try fastboot, i am on this one now and always with the same problem twrp

Sony_Xperia_Z2_D6503_23.5.A.0.570_1281-1977_Customized_MY

Firmware Android Version: 6.0.1
[Xperia Z2 Original Android Development] @kitokit:
Latest stock MM is 23.5.A.1.291

Flashing twrp is in post #2
[Xperia Z2 Original Android Development] francois095:
[MENTION=412108]kitok[/MENTION]it

This one is ok or not? It's a rom prerooted with TWRP 3.0.2.0

https://xdaforums.com/xperia-z2/general/rom-xperia-z2-d6503-customised-tur-23-5-t3442058
[Xperia Z2 Original Android Development] @kitokit:
You can try it and see.
[Xperia Z2 Original Android Development] francois095:
[MENTION=412108]kitok[/MENTION]it

I install this rom and fastboot say me cannot load twrp.img, i try many times but It's not good
[Xperia Z2 Original Android Development] @kitokit:
What version of fastboot are you using?

Can you try this version of fastboot

https://github.com/dyrex2004/AdbInstaller-Releases/releases

Can you send screenshot of your pc in flashing the twrp..

If it still failing, then I would suggest to flash the clean stock MM .291 Thru flashtool and try again flash twrp img in fastboot.
[Xperia Z2 Original Android Development] francois095:
[MENTION=407016]kito[/MENTION]tkit

I dont find the link stock MM, it's first time that i have this problem with a phone
[Xperia Z2 Original Android Development] @kitokit:
try this file. just rename *.zip to *.exe, its what i use to download my firmware before. is your phone D6503 or D6502?
[Xperia Z2 Original Android Development] francois095:
[MENTION=412108]kitok[/MENTION]it

It's a 6503
[Xperia Z2 Original Android Development] francois095:
[MENTION=412108]kitok[/MENTION]it

I download the last firmware with xperifirm but i dont get a rom ftf so i can't flash this rom with flashtool i am Boring i stop that and i don't know how to send pics on xda

Thank you for your help
[Xperia Z2 Original Android Development] @kitokit:
When you open xperiafirm, before you start to download untick the box which says unpack automatically

Check this video [youtube]X_Y-BOWlQdw[/youtube]

These a lot of tutorials in youtube to guide you. You might wanna check it out.
[Xperia Z2 Original Android Development] NeoArian:
Hi everyone (:

I am working on Android 11 for sony shinano currently and as some of you might know, my Z2 has a broken SIM-card slot. Hence i need your help to test if RIL works fine on this build: https://sourceforge.net/projects/ep...0/lineage-18.0-20201205-UNOFFICIAL-sirius.zip

This build is NOT ready to use yet, but most stuff should work fine.

Greetings, Arian.
[Xperia Z2 Original Android Development] hamed:
hi bro thank you for building this rom

i tested it (lineage 18.0) on d6502 and installation was with error "signal 11" at the end of process and boot filed

thanks again