yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1 Compact Questions & Answers] ben_pcc:
Hi folks! I humbly ask for your help after hours and hours of DIY attempts. I rooted a Z5 Compact a few years ago and, mistakenly, expected this to be similar: I didn't read instructions carefully. Admitting to noob mistakes now.

I followed this:

https://xdaforums.com/xperia-xz1-compact/development/devonly-exploits-temp-root-to-backup-t3795510

with this option:

https://xdaforums.com/xperia-xz1-compact/development/rooted-kernel-hiding-bootloader-unlock-t3898711

I went with the G8441_47.1.A.8.49_CE1.rar firmware, as it seems most compatible. THANK YOU j4nn! Marvelous and relatively simple procedure :). Flashed with newflasher (Flashtool doesn't work with XZ1 Compact?).

Rooting worked, but when the phone is on battery it never goes above 20%. It was 100% before and 20% immediately after flashing. Red warning light is on, unless the phone is off and plugged in.

So. I missed the part about omitting persist* and Qnovo*. Somehow my attest keys didn't break (PROVISIONED in service test).

It looks like what happened is I replaced the battery config? Info:

https://xdaforums.com/xperia-x/help/flashed-xperia-x-low-battery-t3441158

https://xdaforums.com/xperia-xa/help/strange-battery-issue-jumping-33-3-0-t3688178

Can't repair with Xperia Companion because unlocked bootloader (no way it could be re-locked, is there? My DRM keys are backed up).

Someone wrote about wiping the Qnovo partition. Any advice on how to do this? fastboot format Qnovo didn't work (looks like it doesn't find that partition)

Unrelated, and sorry if this is a total n00b question, but where on earth is TWRP compatible with this device/FW? j4nn's rooted kernel doesn't play well with TWRP install, so I'm hoping to just fastboot boot recovery.img. I can't find any recovery.img that works - I tried several of these:

https://androidfilehost.com/?w=files&flid=232371

But it just gets stuck on SONY logo, needing soft reset.
[Sony Xperia XZ1 Compact Questions & Answers] SXUsr:
Try this - https://developer.sony.com/develop/open-devices/get-started/flash-tool and report back.
[Sony Xperia XZ1 Compact Questions & Answers] ben_pcc:
WORKED. Flashed the US firmware with "Software Update Content Erase", battery now seems to be working normal again. Thank you so much!

Another question: I'd love to set this phone up to work with fastbooting TWRP (so, not a TWRP install on the phone). Is that possible with 47.1.A.8.49? If not, advice on what firmware to use that'll allow rooting per j4nn's methods? Preferably compatible with https://xdaforums.com/xperia-xz1-compact/development/rooted-kernel-hiding-bootloader-unlock-t3898711
[Sony Xperia XZ1 Compact Questions & Answers] SXUsr:
Why use such old FW? If you're sticking with Oreo then you want the FW ending .20 for the latest. An unlocked bootloader is all that required to boot TWRP from fastboot on any FW.
[Sony Xperia XZ1 Compact Questions & Answers] ben_pcc:
Because I didn't know better. Emma gave me 47.1.A.16.20, I'll stick to that :)

Would you mind sharing what *img file exactly would work with fastboot that way? I had no trouble finding it for the Z5 compact, but one that would work here is eluding me. For example, if I run:

fastboot boot twrp-3.2.3-0-lilac-1.img

The phone boots up to SONY logo (black on white background) and stays there, unresponsive. Got the file from https://androidfilehost.com/?w=files&flid=286271
[Sony Xperia XZ1 Compact Questions & Answers] SXUsr:
Have you missed this post, which is linked to in the threads you've posted links to? - https://xdaforums.com/showpost.php?p=79880858&postcount=1029
[Sony Xperia XZ1 Compact Questions & Answers] ben_pcc:
I missed it but I also miss how that would help. I read the whole thing, and this stands out: fastboot boot twrp.img

I've done that with my old phone (Z5 Compact). I can't find a usable twrp.img anywhere. I fear like I'm missing something obvious :(
[Sony Xperia XZ1 Compact Questions & Answers] SXUsr:
From the last page - https://xdaforums.com/showpost.php?p=83844543&postcount=1657

Although I would simply install the latest and use one of the unrooted kernels then root it with Magisk.
[Sony Xperia XZ1 Compact Questions & Answers] ben_pcc:
Hmm. I was aware of that. I tried several of the twrp*.img files, they all get stuck booting on the SONY logo.

Are you sure this is true:

I'm wondering if a FW update would solve the TWRP booting problem.

I've setup this phone a bit at this point and flashing a new firmware (erasing everything) would be painful. Is there a way to safely do a firmware update on a rooted device? Emma offers 47.2.A.*, but only for UK ROMS. I'd installed the 47.1.A.16.20 US ROM.
[Sony Xperia XZ1 Compact Questions & Answers] SXUsr:
I know it used to be. Done a bit more searching for you https://xdaforums.com/search/thread/3706704?query=fastboot twrp, and found this command...

fastboot reboot bootloader
fastboot boot twrp-3.3.1-0-lilac-pie-5.img

...I've just tried it, in fastboot mode and it booted TWRP.

Starting over is always painful but sometimes it's the best option. I have a rooted stock ROM and TWRP installed with no issues, on Oreo or PIE so if you do, then I suggest backing up the essentials and starting again.
[Sony Xperia XZ1 Compact Questions & Answers] ben_pcc:
YES. Thanks so much SXUsr! You were right after all, I tried a few different TWRP images and they work now. What I was missing was fastboot reboot bootloader. My Z5 Compact doesn't require it.

There was one more thing I had to figure out: data partition is encrypted, and for my (Android 8.0.0) device the TWRP you mentioned fails.

twrp-3.2.3-0-lilac-1.img on the other hand asks for my unlock pattern when it boots up, and backs up fine.

Now that I have a complete backup I'll consider my next steps (possibly flashing a new ROM. Honestly 8.0.0 seems fine, we'll see). Thanks again!!
[Sony Xperia XZ1 Compact Questions & Answers] SXUsr:
You're welcome. I've always installed it on this phone so wasn't aware of that command myself either, so we've both learnt something. :)
[Mogul, XV6800 ROM Development] jiggamal:
im very much a noob when it comes to ppc as you can see this is my 1st post/ thread.. id like to say thanks for the many apps I got on here.

now my problem is that my old htc home cab crashed my phone after I installed wm6.1. so what I need is for someone to point me the right direction to a working htc home pluggin for wm6.1 and also is there away to make my phone louder? like and app. or a hack.

*if this is in the wrong section mods u can move it...my bad
[Mogul, XV6800 ROM Development] dunebuggydude11:
for the htc home cab, you would probably need to check out one of dcd's rom threads for a fix like on the 3-5th pages or somewhere in there.

to make your phone louder, you can use audiopara. i personally use gc's audiopara since it works perfectly. just search for GC Audiopara on here and install it then reset. it works great.

Hope this helped and WELCOME TO XDA DEVELOPERS
[Mogul, XV6800 ROM Development] BillThyCat:
Get HTC Home Customizer from http://www.pocketemu.com/hhc-info.html

It will auto download the correct home for your phone, with working weather, etc. Very useful tool.

BTC
[Mogul, XV6800 ROM Development] nelsongruebr:
Here is the HTC Home cab that been working for me perfectly on my titan... i've attached it to the message...

the GC Auriopara will work perfectly too... with the permission of GC i'm going to post it too... it's also attached...
[Mogul, XV6800 ROM Development] jiggamal:
thanks a lot guys your awesome. the htc home worrks fine on my phone, but the audio cab. doesn't show up any where and I tried to reinstall it and it said it was unsuccessful. do I have to dl it to my pc and sync it to my phone?
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Simonmicro:
Hey,

as you guys may have already noted, I have stopped the active development phase for this LOS port a while ago. This was caused by me just not having enough time to do everything and additionally maintain a LOS port.

Today I'll upload the last maintenance build to the OTA server and mirrors. Of course I somehow included a little bug, which causes the system to complain about "an internal problem", which seem to be caused by some interaction with the OpenGApps package installer. Now, it is a feature. 😄 I'll may post one more update, if I figure this one out.

Nevertheless, I'll shut down the OTA service at 2022-06-01 (see https://status.simonmicro.de) and will then archive all project data. It was a great time to learn many (new/nasty) things about Android and how everything works. I have to say "thank you" to everyone, who supported me and was on board with this project.

See you next time,

simonmicro

-> https://xdaforums.com/t/rom-unoffic...r-xperia-10-ii-ota-sodp.4191601/post-86352693 <-
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Simonmicro:
Reserved
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] MartinX3:
First :D
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] xdauserart:
At last :) The guide, source code looks great! Will install, check it next
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] bamdadkhan:
hmm, i flashed everything according to the instructions, but the system still looks the same as Sjll's ROM and there is no updater in settings>system. anyone else getting this?

EDIT: nevermind, all is well, i was on the wrong slot.. : / wish we wouldn't have to deal with this, TWRP+lineage+one slot was perfect. this is not about the ROM though, it's awesome.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Simonmicro:
:D - you made my day. Now I know which ROM you used before :p

No serious: Did you follow the guide step-by-step or did you altered it in some way (maybe forgot to reboot after switching slots) - as it should normally flash both slots (when using ota), even when not you should be at least on the right slot after flashing?!
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] bamdadkhan:
lol it's easy to know when the ROM in question is the only available aside from yours xd

seriously: i followed all the steps to the letter. flashed the SW binaries on both oem_a and oem_b. really everything.

i have a theory though. i originally flashed your ROM when 'side b' had previously been set active. if this persists across reboots - i really don't know, this whole 'dual ROM' concept is new to me - then there's your answer: the lineage install script probably has a command to use 'side a' for flashing. is completed successfully, but then i went ahead and booted the 'side b', which still had Sjll's ROM on it.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Simonmicro:
Well, I also tested my guide to the letter - and there i saw on my device screen that the ota flashed on both partitions. Did you also used my recovery? When you did: Lets see if others also have that problem... :angel:
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Thapsus-cz:
Great job, thank you. Can I install NikGapp? Or does it also cause bootlaps?
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Simonmicro:
On their website:

OpenGapps Team (for base package and providing Open Gapps)

Therefore is a really good chance that the installer has the same problems like OpenGApps - but I can't say that for sure, I guess you'll need to try it out (when is does bootloop / never starts, please send me a adb logcat -b all for further diagnostics).
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] xdauserart:
Done till the step 9.

Tried the second way first (flashing images). Please see the log for this below.. Then tried OTA way. OTA way did with 0 exit status (it sent files) but when I boot device it writes "Your device is corrupt. It can't be trusted and will not boot. Your device will be powered off in 5 seconds". How to fix? :(

Also when I load into recovery it writes this:

See full log for flashing images:
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Thapsus-cz:
I had the same problem yesterday with the same results. I struggled with it until morning. Eventually I downloaded the latest version of adb, flashed the stock rom again and started over. It was done in twenty minutes. Try the latest version of adb (I guess version 35 for Windows)
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Simonmicro:
...

Sending sparse 'system' 1/2 (785636 KB) OKAY [ 29.722s]
Writing 'system' FAILED (remote: 'No such partition.')
fastboot: error: Command failed

This indicates you tried to use the bootloader (which also has fastboot support) to flash the images. I made sure to write the guide the way that it states you should use the fastbootd service of the recovery. I have the dumb feeling that many more will go your way and fail. Damn it.

E: Failed to bind mount /mnt/staging/mulated/media/0 to /storage/emulated: NO such file or directory.
E: emulated failed to bind mount /mnt/stagingemulated/media/0 on /storage/meulated: No such file or directory.

Is fine, as you just erased all data - this also kills the partion so it cant be mounted anymore (that's the errors). This is indeed intentional as the system is now forced to really start fresh!

Did you tried the help of my guide? When you failed that and your device rebooted too many times (or it just could not boot and crashed too many times) you'll need to reflash the boot partition to reset the counter (and therefore the failure message).
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Sjll:
Two PR to fix back triple cam. But front cam is still broken. :)

https://github.com/sonyxperiadev/device-sony-seine/pull/29

https://github.com/sonyxperiadev/device-sony-pdx201/pull/15

--------------EDIT-----------------

Switch to CAF powerhal, better performance we have.

https://github.com/sjllls/device-sony-common/commit/de3b2bbbc33130891263d9e81ea2178a0f6783c4

https://github.com/sjllls/device-sony-sepolicy/commit/72059258eb0ff2c854996a05a5a23a8b73b55459

--------------EDIT-----------------

Renmember to let users flash with latest platform-tools, or they could not boot because of logical partition is not resized.

https://developer.android.com/studio/releases/platform-tools
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Thapsus-cz:
I can confirm that Opengapps pico can now be installed without a bootloop. I'm at work and I don't have adb. I installed them directly as an update from the sd card using recovery. Everything works fine.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] KriiXOne:
Can we get OpenGapps Nano support?

I know that OpenGapps pico are supported, but most people use the nano package as it contains some functions that aren't possible to obtain in any other way

so is that possible?
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Simonmicro:
As I already drastically over-provisioned the system partition, I guess it could be possible that the nano package already works: In that case try it for yourself! When it goes wrong you can just switch over to your slot used before flashing the bad OpenGApps zip. Please PN me about your result, so I could extend the guide!
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] KriiXOne:
I'll try tomorrow after the math test that i'm studying for today, and will let ya know ^^'
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] xdauserart:
Fixed it :) Just repeated the steps from the first one and used OTA on step 9. Thanks!
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] KriiXOne:
i can confirm that opengapps nano don't work

it gives errors on install: https://imgur.com/a/wWO60yE
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Simonmicro:
Just for the context for other users: We are on it - see the progress here...
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] xdauserart:
Using LOS 17.1 after the installation. Looks great! I got an error about SELinux not running from Trust. Could SELinux be turned on?

Also, it seems not so secure to have Recovery available. To turn it off, I would need to relock the phone, right?

And another question is about data encryption. As I read internet LOS should use File Based Encryption (FBE) which means it leaves unencrypted only the part of the system to make emergency calls or similar, right? Or encryption should be enabled for the system somehow, I mean former versions used Full Disk Encryption which should have been enabled. Is it true?
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] dreDREb13:
I got it installed and running with relatively few hiccups and all seems up to snuff so far, but my notification LED doesn't work across the board. Won't turn on when plugged in, or when receiving texts. When I set the custom speed and blink settings, a notification appears to let me know Lineage settings is making use of the LED, so it appears something's getting lost between the software and hardware. I am also receiving the same notification concerning SELinux being switched off.

Great work otherwise! Fantastic to see my one and only ROM running on this relatively new hardware. Any chance I'll be able to swap to TWRP instead of your particular recovery?
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Simonmicro:
Yes, a test is currently in progress. But sadly something in the sources of Lineage changed and currently is the whole tree broken. I'm on it, but that WILL take a while - sry.

Nope, but try deleting it (fastboot erase recovery). I could imagine this is a little bit playing with the fire, but this is the best way to lock it down currently...

Currently FBE is always enabled. FBE allows your system to boot normally and you then decrypt your data by entering your pin. Until then your system runs with limited functionality as the apps can't access their data (most apps will be started later anyways). This way of encrypting data is new with Android 9+.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Simonmicro:
Well, I didn't noticed that. I can reproduce that and will investigate this soon™.

Yes you can just swap to TWRP after the initial install of the system (@Sjll) has put TWRP together. Please note that his TWRP version will probably not accept to install any OTA package, as these are signed with an unknown key (as mentioned before). This should be fine, as the system can do this by itself now.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] dreDREb13:
It's also looking to me like the GPS isn't working so well for me. Not sure if anyone else has had this issue, but maps and weather services are having trouble finding my location, both with Google Location Accuracy on and off.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Simonmicro:
I also know this from my older Lineage device. This seems to be part of the privacy features (I guess)?! Give it some time (~5 minutes continuous trying, agrs...) and then it works flawlessly... I hope that helps...
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] dreDREb13:
Interesting. After restarting and waiting a bit it does look like I'm getting an accurate location via GPS Test and on my weather app, but for some reason Google still cannot locate me. I guess I'll have to test again when I'm out and about, but just wanted to bring it to your attention in the meantime in case it is something aberrant.

Thanks again for putting this together, though. Seeing development on this phone is what gave me hope Lineage would be coming to the device, so I'm glad it's for the most part rock solid other than the few hiccups here and there!
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] JayVerhofstadt:
Here to report I can't get the wifi hotspot to work. Does anyone have other experiences?
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] dreDREb13:
Can confirm hotspot isn't working for me either.

Also can't get GPS to run for any app that uses Google services, looks like. Not sure what the hangup is there, but GPS works fine for location on weather or testing apps.

Also having trouble with Open Camera and saving the photos anywhere on the device.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Simonmicro:
At least the wifi hotspot problems I can confirm: https://gitlab.simonmicro.de/android/lineage/lineage-pdx201/-/issues/13

It is now on my list - will be fixed... Soon :D
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] bamdadkhan:
any chance of enabling signature spoofing? for microG and stuff..
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Thapsus-cz:
Backup

Hi, is it possible to make an adb sideload zip backup like from TWRP? And how to restore it?
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Simonmicro:
I use Magisk for that. But thats not 100% perfect...
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Simonmicro:
There is a TWRP version out there, which could do that. I'm currently using TitaniumBackup, which is nearly as good.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] bamdadkhan:
yeah me too usually, but as you've said, it's spotty at best. only asked because AFAIK this is a compile-time option and the increased privacy would probably compensate for the reduced security.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Simonmicro:
Whrn you mean this: https://github.com/microg/GmsCore/blob/master/patches/android_frameworks_base-P.patch

Should be no problem to add that - could you create an issue on my GitLab so we could track that?
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] bamdadkhan:
sure thing, issue #14 created. thanks. : )
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] dreDREb13:
Hey, the thread's back! Hooray!

I've been having issues updating the phone with the OTA packages. When I install, whether through the in-system Lineage updater or via recovery/adb, it doesn't seem to take. Not sure what's up there.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] bamdadkhan:
yeah i'm having the same. download and preparing phase works, the last one before the reboot doesn't..
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Simonmicro:
Hey, the thread is back! Aaand XDA seems to have forgotten to send me any emails about your posts. Hmpf.

> I've been having issues updating the phone with the OTA packages.

Well, for me they worked... I think... I'll test it myself later on. Could anyone of you provide me with a `adb logcat -b all` during the install stage? Just paste it over on pastebin and put a link here. This way I should be able to hunt down the core problem for you.

EDIT: Hehe, problem found: With the newest update I allowed downgrade updates - just in case. This is blocked by the android update engine, so the update will fail. I'll remove it again - could this also happen to you?
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] dreDREb13:
Hmm, not entirely sure. The logcat for the install is too long for pastebin so I went ahead and attached the .txt file. Hopefully that works fine.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Simonmicro:
Confirmed:

Hash of boot: zrUNzUlbVlruxwv2hs/2sQt3W3qZSb53H7DLcEzp4F8=
12-07 16:56:48.745 937 937 E update_engine: [1207/165648.745281:ERROR:filesystem_verifier_action.cc(243)] New 'boot' partition verification failed.
12-07 16:56:48.756 937 937 I update_engine: [1207/165648.756541:INFO:action_processor.cc(116)] ActionProcessor: finished FilesystemVerifierAction with code ErrorCode::kNewRootfsVerificationError
12-07 16:56:48.756 937 937 I update_engine: [1207/165648.756665:INFO:action_processor.cc(121)] ActionProcessor: Aborting processing due to failure.

Somehow the hash of the boot partition is not right. As the md5 matches the updates integrity, I guess that update was broken (because... idk) - I have now rescheduled a newer update to roll out immediately. Please inform me if this update is fine, as I normally test every update on the next branch - so this should not happen (the master branch is basically a clean rebuild of the next branch). Sorry for that fail.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] dreDREb13:
Hmm, still not doing it for me, it seems. Still shows the November 20th build after a reboot.
[Sony Xperia 10 II ROMs, Kernels, Recoveries, & Oth] Simonmicro:
Please try again. The cache can take a while until its cleared...