yashsingh1/xdaforums huggingface dataset:
[Xperia Z Original Android Development] iPlasm:
🧐

I exactly did tried to install the "MindTheGapps 12.1" so the exactly [MindTheGapps-12.1.0-arm-20220313_181053.zip] version Android 12.1 or Android12L (not Android 12.0) but it does not work, says Android SDK version not compatible! I hope we'll see newer version from them soon....

I also did tried to download google play store and Install from APKMIRROR, still no luck and it crashes once opening... all I have to is to wait or I will do it in future.

the reboot-to-recovery, not very big deal for me.... but I don't know why I faced this problem while booting lineageos? So the story was I forget to install magisk, so I flashed fastboot twrp and reboot to twrp recovery, and flashed the boot.img from this lineageos zip to Boot, then ran magisk honami apk (not sure if different with official magisk? since it's also flashable), installation successful, wiped dalvik.cache. now reboot to normal boot but whatever I waited as long it was 10 minutes the lineageos logo animation was still going on and did second try force reboot but still lineageos animation dances :(

by the way 🙂, I did a fresh format all, installed fresh lineagesos (still in twrp not rebooted) and then installed magisk. Now it's good, and maybe not to forget to install magisk 😎

another option could be microG, I install it with it's all things. but when I install asphalt 9 game, it asks for Google Play services in order to run 😢. even I gave microG full permission and ticked all in self check menu... still no luck.

by the way The OS plays very nice till now! 😉
[Xperia Z Original Android Development] Alias X:
@tarkzim

I wanted to ask you something: This threat mentions that any TWRP version starting with 3.2.0 is not compatible with Stock Lollipop due to SELinux. https://xdaforums.com/t/ub-recovery-twrp-v3-2-2-for-xperia-z.3735098/

With one of your LineageOS Roms installed, updating TWRP higher than that should be possible, right?

I have currently 3.0.2-0 installed and even though it's a C6603 it refuses to install your 18.1 Rom.

Edit: I tried it and it installed with the latest TWRP. Thank God!
[Xperia Z Original Android Development] iPlasm:
Hey, :)

I can now play asphalt 9, microG installed with it's all components installed beside FakeStore, so instead of FakeStore I installed Google Play Store from APKMIRROR, that it and no google play store doesn't work and it just crashes. but at least asphalt 9 works! 😎 so asphalt thinks I have google play services installed 😝
[Xperia Z Original Android Development] iPlasm:
Looks other members such as Samsung Galaxy S II I9100 have problem too with LineageOS 19.1 (Android 12.1 12L) for GAPPS 12.1, they've tried MindTheGapps 12.1 and didn't work either. our phone is ARM 32-bit.

[ROM][UNOFFICIAL][12.1.0][r1][I9100] LineageOS 19.1 [ALPHA] | XDA Forums (xda-developers.com)

Has anybody members here tested GAPPS android 12.1?
[Xperia Z Original Android Development] Alias X:
Removed, may have found the solution.
[Xperia Z Original Android Development] iPlasm:
No need to waste time with "MindTheGapps-12.1.0-arm-20220313_181053.zip" GAPPS, here is proof and will be happy other users to test:

View attachment 5571423

I did both ARM 32 and 64 bits in case if asked to try :cowboy:

Right now we've to wait and the developers behind BiTGApps has confirmed that they will release 12L (12.1) GAPPS in next release. no date known right now but maybe few weeks... 🥺
[Xperia Z Original Android Development] iPlasm:
I've noticed lately that pictures taken is saved in Pictures folder rather than Camera DCIM.... and there is no settings for that, I did clear the Camera app's storage from official LineageOS, still same. not good reason 😟
[Xperia Z Original Android Development] DaraeiMehdi:
Thank you. I flashed the rom and apparently it works fine (at least so far). I also downloaded unofficial Open Gapps from here (Android 12L; pico variant was successfully installed). To directly access to these unofficial versions of Gapps , you may see this link.
[Xperia Z Original Android Development] iPlasm:
I actually seen this, but never mind I installed Nano and it worked, liked to see from BiTGAAPS team. and that MindTheGapps does not work even with it's recent version April.
[Xperia Z Original Android Development] tarkzim:
New build released

Updated to Android 12.1.0_r4 with April security patches.

Updated stock app icons.

Upstream updates and fixes.
[Xperia Z Original Android Development] Alias X:
Flashed it with @DaraeiMehdi 's GApps, can't connect to Wifi, neither during nor after setup. I find the networks, fill out identity and password, press okay, nothing happens.

Edit: Wifi works without GApps, so they must be the issue.

Two bugs I've noticed:

The option to always display brightness slider in the notification bar doesn't work.

Every install wipes my recovery/disables booting into it (advanced reboot recovery leads into a regular reboot), even though I have installed it in FOTA and it works with Lineage 18.1.
[Xperia Z Original Android Development] iPlasm:
In case you want to install specific apps from The Open GAPPS Project Team such as Google's Messages or Google's Legacy Camera or other you prefer to be replaced by Google's rather than Stock's apps.

the Stock package has nearly all Google's apps, which normally you cannot Install on Sony Xperia Z, because of insufficient space of our limited storage space.

First of all, make sure you've installed an OS, so while in Recovery Mode, by connecting phone to computer via cable, all we've to do is create "gapps-config.txt" or for more information visit Open GAPPS Advanced Features and Options

So the easiest is to be placed in internal storage or the root of storage which is "sdcard/" ; not meant by SDCard

First time install Open GAPPS without gapps-config.txt, and you will get Error 70 insufficient space. Open GAPPS will create open_gapps_log.txt with listed apps, it's useful to know which app you should or have to be installed or not to be installed. remember that what I mention is Stock package, So calculate them by KB, Set the included or excluded or remain untouched apps and save gapps-config.txt to internal storage and begin to install Open GAPPS, if you did not succeed, check the open_gapps_log.txt again (which is re-created again by Open GAPPS), and see what you missed or calculate them again.

This is what I what did for my device:

gapps-config.txt

Exclude

maps
webviewgoogle
chrome
duo
keep
pixellauncher
search
actionsservices
newsstand
books
drive
gmail
movies
youtube
ytmusic

+webviewstub
+webviewstock
+launcher

Note: I've tested this with my Sony Xperia Z by using a test version (not stable) of The Open GAPPS project Stock package, which I excluded the (Pixel Launcher > crashes) and the (Chrome, webviewgoogle) have issues with Sign-in Google Account for unknown reasons. so the (stock browser, webviewstub, webviewstock) should remain untouched as I've tested.

The photos taken by Google's Camera saves in DCIM Camera folder 😁, and the stock's camera saves photos in Pictures folder which is uncommon (and yes you'll able to change that but with some modifications 🧐)

Peace :)
[Xperia Z Original Android Development] nyapinkid:
19.1 have playback issue on youtube or vanced or everything else,

the video is greyed out

19.0 was good tho
[Xperia Z Original Android Development] Dev_90s:
Lineage OS is taking a lot of time to reboot, I have used a different TWRP version, the latest that is prescribed in the docs and also 3.4.3 but the issue is the same. Any help in solving this? I am using adb sideload to flash the ROM in the device.
[Xperia Z Original Android Development] iPlasm:
Yes the playback does have issues, playing videos will be grey coloured, but the sound is fine....
[Xperia Z Original Android Development] 1995parham:
I do the same with sideload and reboot process takes so long (and even not ended). Also, I cannot even reboot to recovery mode. Can you find out any solutions?
[Xperia Z Original Android Development] slsamg7112:
thanks for the info , it works for me on C6602👌
[Xperia Z Original Android Development] spyfly:
Installed successfully on the C6603 with the testing OpenGApps.

Had to skip the GApps Wifi Assistant, but connecting via the system one worked, but that's a problem with the GApps and not the ROM.
[Xperia Z Original Android Development] spyfly:
I managed to improve the performance of the device quite a bit by reducing the render resolution via ADB to 720p:

adb shell wm size 720x1280
adb shell wm density 280
[Xperia Z Original Android Development] tarkzim:
New build released

Updated to Android 12.1.0_r5 with May security patches.

Upstream updates and fixes.
[Xperia Z Original Android Development] kingwangeve@gmail.com:
Can you please make a same Rom for Xperia ZL ? Or can you teach me how to modify the rom for ZL ?Thank you
[Xperia Z Original Android Development] tarkzim:
Here you go, should be fine as my build for Xperia Z.

BUILD
[Xperia Z Original Android Development] kingwangeve@gmail.com:
Omg thanks for your hard work!!

🎉
[Xperia Z Original Android Development] Alias X:
MindtheGApps flashing fails:

"Process updater ended with error: 1"

I'll try different GApps.

Edit: There isn't really an alternative (OpenGApps and BitGApps don't offer packages for Android 12L yet and Nick/FlameGApps don't offer ARM packages). So I'd consider this a major issue. I'll try with a MicroG.zip package.

Edit 2: Stuck in boot animation with MicroG zip.

Also, it still deletes my recovery (TWRP) even though I flashed it after installing the lineage zip. That really needs to be fixed.
[Xperia Z Original Android Development] Nate_Lines:
Thanks for the new release guys! I recently got my Xperia back after years and have tried installing this. Unfortunately, I am now stuck in bootloop. I cannot enter the recovery either, but I can get into fastboot mode. Can anyone advice what's the quickest method to install this ROM given my current circumstances? Thanks in advance!
[Xperia Z Original Android Development] Alias X:
Flash most recent TWRP image on boot with ADB in fastboot (fastboot devices; fastboot flash boot twrpfilename.img), then in TWRP flash the TWRP zip creating a recovery partition if not there already, then flash the TWRP image over that. Then flash Lineage 18.1 or whatever as zip.

Oh, and you may need a driver so Windows accepts the device in fastboot mode.
[Xperia Z Original Android Development] Nate_Lines:
Thanks for your quick response, Alias, i appreciate it!

I am on Linux so drivers are not an issue, I can see my device in fastboot mode. I only have one question at this stage. I have flashed the TWRP recovery but how do I create a recovery partition? Also, why do I need to flash the recovery twice? Thanks again in advance!

UPDATE: I tried to install the latest Lineage but it's on bootloop again, giving me an error of "Encryption Unsuccessful". Not sure what this is about?
[Xperia Z Original Android Development] Alias X:
Because these Sonys don't have a classic recovery partition. It first needs to be created in another area, called FOTA (something for OTA updates on Stock). Confused me at first too. Basically, there's a zip on XDA which runs a script creating that FOTA recovery and then flashes TWRP 3.2.x, after that you want to update it to 3.6.x. So including the temporary install on boot you have to flash TWRP 3 times:

1. img on boot with your PC to be able to even flash other stuff on the device

2. zip creating recovery

3. img on recovery

Not much effort thought. Then you can flash any ROM and overwrite boot with it, cause you now have a recovery.
[Xperia Z Original Android Development] Nate_Lines:
Okay yes, I think I understand the process a bit better now, thanks a lot for the additional information, Alias. I have done the first two steps successfully, but now I'm getting an error if I try to flash the newer version of TWRP on recovery via fastboot:

Sending 'recovery' (13308 KB) OKAY [ 0.427s]
Writing 'recovery' FAILED (remote: 'Command not allowed')
fastboot: error: Command failed

Do you know why I may be getting this error?

UPDATE: I searched around a bit and it seems to be related to what you where saying, that these Sony phones don't have a dedicated recovery partition, so I could not flash the recovery directly in the recovery partition. However, that confuses me, as I ran the FOTA script, so shouldn't a recovery partition now exist?
[Xperia Z Original Android Development] Alias X:
Kind of does, but only TWRP recognizes it, not ADB. That's the reason why we've been flashing boot in the first place, so you can flash recovery on device in a working TWRP. Understood? As soon as you flashed boot successfully, leave fastboot, restart device into TWRP, mount, push the files on the internal storage/sd and then send your PC to sleep. THEN flash recovery zip then recovery image then any system imagine, and GApps or whatever.

Oh, and small warning, some ROMs may automatically install their own, less capable Lineage recovery (Lin 15.1 microG for example). Because you can't flash recovery with ADB on this device, and Lineage recovery can't flash TWRP, you may be locked out and have to repeat flashing boot, unless you flash TWRP.img on recovery again directly after flashing Rom.zip before rebooting.
[Xperia Z Original Android Development] Nate_Lines:
Thanks, the process is all clear to me now. I have followed all the steps (including reflashing TWRP.img on recovery again directly after flashing Rom.zip and before rebooting) but I'm still getting the same error.

Not sure what it may be at this point. Perhaps I should try flashing a different ROM? I'll report back here after trying.
[Xperia Z Original Android Development] Alias X:
Wait, you are flashing 19.1? That one is currently broken, I reported it a few posts ago, no matter how well you follow the steps. Go with 18.1
[Xperia Z Original Android Development] Nate_Lines:
Oh, I feel silly for missing that, my bad! I have tried with 18.1 but I'm still getting the same error. The big difference here is that when I get the "Encryption Unsuccessful" error I can click on "Erase data" and the "Factory data reset" starts, but gets stuck in there. Oh, and I can see the clock and battery indicators now, as well as the nav buttons and power menu, so I think it's progress xD Also, the recovery has been flashed successfully as I can now access it directly from the phone. Do you know what else I could try?
[Xperia Z Original Android Development] Alias X:
Not sure honestly. An encryption error is odd, considering it shouldn't even try to encrypt. Testet the last official Lineage 15.1 yet?
[Xperia Z Original Android Development] Nate_Lines:
Just installed 15.1 and it works correctly, so the problem seems to be with the newer versions. I wonder what that may be. I'll do some more research, but thanks for your help so far!
[Xperia Z Original Android Development] EinNeuling:
Are older versions also broken? E.g.

lineage-19.1-20220408-UNOFFICIAL-yuga.zip​

And do I necessarily need root to flash with this guide? Currently, LineageOS 15.1 is on it. I have rooted then with an app and currently have no root.

And if I need to root, what root instructions do I need to follow? Where can I find a suitable guide for installing TWRP?
[Xperia Z Original Android Development] Alias X:
At least one of these versions worked on its own, no idea which one, none worked with GApps as far as I'm aware.

No, you don't need root for anything, really. Just google for a guide. It's always the same, first getting adb and fastboot tool on your PC, then unlock the bootloader with the Sony unlock code. After that, get the Sony driver program so you can install the fastboot driver and flash recovery in fastboot mode (on boot partition n this device, described it for Nate_Lines pretty extensively a few posts ago). When you finally got your FOTA partition and TWRP on it any further flash is a cakewalk if you've ever used TWRP.

How time consuming and difficult it will be depends fully if you've already used adb/fastboot, bootloader unlock tools/codes, carrier (Sony) specific quirks (FOTA in our case) and TWRP in the past.
[Xperia Z Original Android Development] EinNeuling:
Exactly the same also with me with 19.1. and 18.1.

Which ROM for 15.1 did you use? I tried with some older ones in the forum here and then here with the following: Download Last Nightly Build (2020-02-21)

and open_gapps-arm-8.1-nano-20220215.zip

It starts and then comes the following error messages that do not go away!?:

- Android process media has stopped

- "Google Services Framework keeps stopping"

View attachment 5621577

I also tried with "LineageOS for microG": download.lineage.microg.org/yuga/

The error message comes again:

Android process media has stopped

And also: F-Droid isn't responding!? ...Updater has stopped

What could be the reason that it does not work?

P.S.:

I use TWRP 3.6.1_9-0

Before each installation I wipe the following:

- Dalvik / ART Cache

- System

- Data

- Internal Storage

- Cache

--> Install from MicroSD...
[Xperia Z Original Android Development] EinNeuling:
Problem solved!

I also clicked on "Format data" and then wipe again and then I was able to install it...
[Xperia Z Original Android Development] EinNeuling:
Another problem occurs with 15.1: When I turn on the WLAN, the smartphone restarts...

I hope that a stable 19.1 will come soon, with which I will not have such problems...
[Xperia Z Original Android Development] Nate_Lines:
I used the exam ROM you used, but I haven't installed gapps so I didn't get that error.

Sorry about my delayed response, but I'm happy you managed to solve the issue by formatting.

I don't have this WLAN issue. Have you tried installing the ROM without gapps? Not sure how it may be related but I guess it's worth a shot.

As for a stable 19.1, I completely agree with you. It's an old model and it makes sense if devs are not spending much time on it anymore, but it would be nice to have a recent OS with decent security standards to use the phone as a secondary driver.
[Xperia Z Original Android Development] EinNeuling:
Yes, thanks for the tip! Now it worked with 15.1 without GApps and using APKPure I can even install some Google apps! :)

Now I'm waiting for the new version of 19.1.
[Xperia Z Original Android Development] truefriendcz:
TWRP recovery is not accessible after flash with Advanced Reboot, and Vol+UP if after power on device.
[Xperia Z Original Android Development] Alias X:
Old news. As I said, avoid this rom unless it gets another update.
[Xperia Z Original Android Development] tarkzim:
New build released

Updated to Android 12.1.0_r7 with June security patches.

Upstream updates and fixes.
[Xperia Z Original Android Development] EinNeuling:
Really great, thanks a lot! It works flawlessly so far!
[Xperia Z Original Android Development] Alias X:
Did it stop deleting the recovery? You tried it with GApps or Vanilla?
[Xperia Z Original Android Development] EinNeuling:
Thanks for the question! I had not checked that at all. As it seems I can no longer get into recovery (TWRP) with power + volume up (obviously the Recovery/TWRP has been deleted)....

When I reboot into the bootlooder (from the advanced reboot), I end up with a black screen and blue light (LED).

Otherwise LineageOS works fine.

I have only flashed LineageOS 19.1.

GApps I have not installed, but with APKPure installed the apps I need, including GoogleMaps and Google Translator.

I do not know now if the next update will work without TWRP???
[Xperia Z Original Android Development] Alias X:
Okay that sucks, because as you know you can't reflash TWRP without installing it on boot, breaking the OS. I hope he'd finally fix that one thing?
[Xperia Z Original Android Development] Alias X:
I don't want to be ungrateful, but can you please look into the whole "removes recovery when installed" thing? That's a pretty critical issue considering you can't flash recovery on this device without flashing it on boot.
[Xperia Z Original Android Development] SamwellsHmh:
Hi,

I have followed the instructions and i am getting a few errors, can someone help me please?

When trying to install Gapps it fails and when booting up i am stuck on "Phone is Starting".

I have repeated the process on multiple occasions and i keep on getting the same problem each time, any advice anyone?

Device is a Sony Xperia z
[Xperia Z Original Android Development] EinNeuling:
I have already written above that it works without GApps (see link).

You can use an alternative like APKPure and install some GApps.
[Xperia Z Original Android Development] tarkzim:
New build released

Updated to Android 12.1.0_r11 with July security patches.

Upstream updates and fixes.
[Xperia Z Original Android Development] tarkzim:
New build released

Fixed NFC options.
[Xperia Z Original Android Development] EinNeuling:
When I check in my Sony Xperia Z for an update, then the new update appears!?

Is this related to the fact that the last update has deleted the TWRP?

Has the current update solved this major problem?
[Xperia Z Original Android Development] tarkzim:
Totally unrelated, and I didn't add OTA support, so you can't update it from the system update checker.
[Xperia Z Original Android Development] EinNeuling:
OK, is the problem with deleting the recovery (TWRP) solved then?

I also need to see how I can flash TWRP again. It was a very long time ago when I had done that....
[Xperia Z Original Android Development] Alias X:
I've written myself some notes about that while ago, will copy them here if you don't manage to do it yourself.

Apart from that, if the ROM removes the recovery the system can factually not be updated even if there was an OTA.
[Xperia Z Original Android Development] temporarium:
You have to fastboot the recovery from a PC, then you can flash the new ROM from the recovery of via adb sideload.

The problem is that you always have to reflash the recovery.
[Xperia Z Original Android Development] EinNeuling:
Thank you! That would be very nice. I have to see how to do it anyway. E.g. with a Windows 10 PC or possibly a Mac.
[Xperia Z Original Android Development] nyapinkid:
Is video playback in gallery and YouTube fixed?

That's the only my deal breaker 🥲
[Xperia Z Original Android Development] samvriti:
Hi everyone.

Could someone tell me what I should install to use Google play store?

Thanks!
[Xperia Z Original Android Development] EinNeuling:
Why do you need Google Play? Is it for specific apps? I only need some Google apps among others, but I have been able to install via APKPure (the only negative is the ads in the APKPure store).
[Xperia Z Original Android Development] Fara_98:
Hi can you do port for Xperia ZL, please?
[Xperia Z Original Android Development] sanathbh:
Can I use this rom with Locked bootloader?
[Xperia Z Original Android Development] Fara_98:
Hi no you can't
[Xperia Z Original Android Development] irfan4umav:
Can you please build it for Sony Xperia ZL as well ?
[Xperia Z Original Android Development] tarkzim:
New build released

Updated with August security patches.

Upstream updates and fixes.
[Xperia Z Original Android Development] SeraOne:
I have build this boot for lineage 19.1 build release 2022_08_08 and we can boot to TWRP by press the vol + on Sony boot logo and purple led change to orange.

Edit : added the scripts so that the installation is possible via TWRP.
[Xperia Z Original Android Development] tarkzim:
Thanks for your help, but I'm curious how you fix this problem, mind if you share the detail with me?