yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] 115ek:
Are you using the sd card as internal storage?

I guess the fastest way to eliminate most problems would be backing up the data (from the sd), formatting the card and then trying again.
[Xperia Z1 Compact Android Development] jan_de:
Yes, it is (or: was) internal storage.

As I see now, in the settings dialogue the card was marked as "damaged". It took multiple tries to format it. After reboot it stayed unmounted and was marked as "damaged" again -- what it obviously is.

Sorry for taking up your time, and thanks for your reply.

Jan
[Xperia Z1 Compact Android Development] spiderxDa:
Device compatibility

Hi, i'm new to xda and i was wondering if this rom is ment for the 4.3 inch version or the newer 4.6 version of the Z1 Compact . Is there a difference? Regardless thanks for the rom ;)
[Xperia Z1 Compact Android Development] 7alvoo:
differens type if you have a big Z1 look here:

https://xdaforums.com/xperia-z1
[Xperia Z1 Compact Android Development] spiderxDa:
Thanks
[Xperia Z1 Compact Android Development] &(*):
115ek, do you zip signature your roms? The MIDI version you recently posted doesn't have a sig. One other question, are you familiar with the failed to decrypt FBE device error when wiping; went from 15.1 to 17.1 and have not seen the error until now.
[Xperia Z1 Compact Android Development] 115ek:
What do you mean by that? The builds are signed - more precisely the included system apk's.

You can easily ignore this issue. We don't have an FBE decive, amami is an FDE one. This is just log spam...
[Xperia Z1 Compact Android Development] &(*):
Zip signature verfication during install via TWRP fails for the MIDI version. That is not usual from my experience. I am assuming it is because you modified the install to include the MIDI libraries for the build and didn't create a new signature? Am I wrong?

My understanding is the FBE prompt was indicating files were not wiped, as it stated it could not decrypt (maybe the output should state something other, like: "skipping FBE wipe, system is not encrypting files". I understand since Lollipop the system is FDE if enabled; I think it was either MM or N when it became enforced automatically.
[Xperia Z1 Compact Android Development] 115ek:
This is expected. None of my signed images will pass the signature verification in TWRP.

TWRP includes the public test keys. Their private counterparts are also available "publicly". If you don't sign images with own private keys, they'll be used. I guess most of the images on xda will be signed that "open" way. As everyone knows the private key that's really insecure.

You'd need a TWRP including my public keys. Then verification should work. However, I haven't built one until now.

Why do you need signature verification? If you're concerned about the security you could also build the images on your own in the last consequence.

As already said, you can just ignore it.

If you still feel uncomfortable you can also build TWRP on your own. There are build instructions on my github. Most likely you'll need to tweak the TWRP source code.

EDIT: If you fix the things you should also submit them to the TWRP gerrit. ;)
[Xperia Z1 Compact Android Development] 7alvoo:
115ek,

there is a little misunderstanding :fingers-crossed:

&(*) talk "Zip signature verfication" *md5 or *svf for file size verification not 'digital code signature'

in fact, of course, he doesn’t know what he’s talking about because if he knew it was irrelevant he wouldn’t even talk about it

the FBE prompt prblem

format each partition to f2 and then back to f4

it’s bone for the dog, of course, but at least we know for sure that everything has been reshaped

&(*) !

look for error messages on google and xda first and only as a last resort load the topic with basic questions
[Xperia Z1 Compact Android Development] &(*):
Thanks for the clarification 115ek. Had an issue with 15.1 and decided to update and don't remember either situation occuring during install. Did update TWRP accordingly and your light on the matter is appreciated; mainly TWRP has the option for building verification with keys (abstractly how TPM and secure boot work). As for the FBE issue I don't see an option to format the partitions to a different format, would this need to be done via terminal?

---------- Post added at 05:21 PM ---------- Previous post was at 05:14 PM ----------

7alvoo, did do that (search for answers) and the results weren't very conclusive. Figured writing one of the authors/devs to both TWRP && ROM is as close to source as one can get for documentation.

---------- Post added at 05:35 PM ---------- Previous post was at 05:21 PM ----------

On a side note: very thankful for the availability of up to date systems and support the devs provide for the Z1C.
[Xperia Z1 Compact Android Development] alfrix:
I have been using this daily since i posted, but sadly i will have to change it since i having a lot of audio problems, i'm shocked that there are no other reports, but i did a clean install and have no reason to believe that is just me

The microphone recording level is very low (noticed and posted about this right away)

The audio at the start of the calls is muted, i need to turn on the loudspeaker on and back off again to hear the other party

People are complaining to me that the audio on the other end is sometimes garbled

I cannot hear the audio on discord dm calls, nor skype

All was ok with lineage 14, which i will most likely reinstall shortly

Any insight would be appreciated
[Xperia Z1 Compact Android Development] 7alvoo:
I'm still on lineage-16.0-20200410 I use it on a daily basis to talk on the phone and no big problem with that but the Call app use AGC (automatic gain controll) and I'm use Cube call recorder and my recorded voice perfect but the caller voice recorded the rear cam mic terrible.

I'm try record song wit the lineage voice recorder and the record level very low, clear but very low.

Anyway I think the weakest point of the z1c is the mono speaker.
[Xperia Z1 Compact Android Development] 115ek:
New build is up.

16.06.2020

further GPS improvements

synced LineageOS sources (security patch level June 05, 2020)
[Xperia Z1 Compact Android Development] 115ek:
Until now I didn't hear of the problems you mentioned. And I use 17.1 daily, too.

The mic recording level is low. That's right. However it's not a priority for me. Maybe someone else could give some input.

Skype works fine for me (at least tested with headset...).

Would be interesting if the problems persist on lineage 14 for you. Maybe you can report back.

Another thing: Did you install the latest sony firmware before starting to use lineage? This may also be important.

Maybe you can tweak the mixer_paths.xml to your need (increase the mic gain) as already mentioned in the LOS 16 thread. For me it's not a priority. Anyway I'd appreciate inputs :)
[Xperia Z1 Compact Android Development] alfrix:
sadly it seems that something in my phone is f*d, i tried my old rom where it was fine, but no dice

i even went back to stock, but it seems that audio in calls and whatsapp calls, is terrible, very low and it cuts out, just like in lineage

stock camera records clearly and with good levels in the stock rom, so it's not the microphone, maybe some modem issues? Edit: Nope, i've tested with a bluetooth headset, and it was good

idk, i just bought a giant and heavy xiaomi brick, i already miss my compact
[Xperia Z1 Compact Android Development] 115ek:
New build is up.

13.07.2020

synced LineageOS sources (security patch level July 05, 2020)
[Xperia Z1 Compact Android Development] farehal:
Recording file

Hai there, i got problem this rom with camera record, if i try to save in sdcard the file not save, and i lose the recoreded,

But if try back to save at internal this work normal, i found the file saved,

Maybe someone get problem like me?

Please help for fix my problem, i use 8gb sd card with low class
[Xperia Z1 Compact Android Development] 115ek:
It is saved but not shown in the gallery. Check your sdcard under Android/data/org.lineageos.snap/files

I guess this is a device-independent lineage problem.
[Xperia Z1 Compact Android Development] android666:
Hello. I'd like to ask a question related to several mirroring functionalities. Is mirrorlink obsolete technology, or is possible to somehow install it into OS by myself (like here: https://xdaforums.com/showthread.php?t=2210889 ?
[Xperia Z1 Compact Android Development] 115ek:
It depends on what you want to use the mirroring for. Streaming videos or games won't work that good. The best way to do this would be MHL (Z1c actually supports it) - but it's broken in (all?) aosp based firmwares.

Then there's the wireless display option (see my screenshot). Last time I verified this working was on Pie with a windows 10 notebook. However, there was a noticeable latency.

Another thing you could try is mirroring over adb by using scrcpy. I'm using this when debugging apps. You can use wired adb (usb) or adb over wifi. Both should work.

But wired is always better in terms of latency.
[Xperia Z1 Compact Android Development] 115ek:
New build is up.

17.08.2020

synced LineageOS sources (security patch level August 05, 2020)
[Xperia Z1 Compact Android Development] android666:
i wanted to test mirrorlink with Sygic navigation in the car.

ok, i'll wait for android car support, then it should be fine. thanks 115ek for info
[Xperia Z1 Compact Android Development] tramp20:
Thank you.

But after OTA I lost root because Magisk 20.4 was now broken :(

The canary Manager was still ok.

I restored my TWRP backup from yesterday and will try the update later.

NB: the AICP OTA update crashed completely the other Z1c, I had to press the reset.

I never had these problems with an OTA update.

Edit:

Lineage 17.1: I had to flash Magisk uninstaller and then install Magisk again, a simple restore of a TWRP backup did not succeed.

AICP: after a reboot all was ok again.
[Xperia Z1 Compact Android Development] 115ek:
Umm. It seems magisk is the problem here.

I suggest everyone using magisk not to install the update as along as it isn't clear what breaks the updating. If you don't use magisk, updating should work fine.

Can someone else share experiences with the latest ota?
[Xperia Z1 Compact Android Development] tramp20:
Magisk 20.4 has not changed since March 2020 and all OTA updates of Lineage and AICP made no problems until today.

After a new installation of Magisk lineage-17.1-20200817 is running fine.
[Xperia Z1 Compact Android Development] lm089:
Can't confirm. Flashed the Ota before I read about this problem. Just checked: Magisk appears to be running, also positively tested root access of some apps
[Xperia Z1 Compact Android Development] tramp20:
Yes, a second try of OTA update after restoring Magisk runs perfect.
[Xperia Z1 Compact Android Development] 7alvoo:
I know there is no priority...

The camera app silently records video and there is no way to choose the other microphone unfortunately the camera microphone level is zero. :(

Somehow the camera microphone should be disabled so that the default microphone is the normal microphone. :confused:

Except for this little thing, the release is great for which a big thank you! :highfive:
[Xperia Z1 Compact Android Development] android666:
I did not experience any problem with latest update even with Magisk20.4. All looks very well.
[Xperia Z1 Compact Android Development] zeec:
Hi,

i have z1 compact with cyanogenmod 12.1 , android 5.1.1.

i want to install this but have no idea what i need to do : /
[Xperia Z1 Compact Android Development] colaigor:
Do you have sd card?
[Xperia Z1 Compact Android Development] 7alvoo:
The point is a little compressed, a lot of videos are presented step by step on youtube.

Download and istall flashtool-0.9.25.0

and signed android adb usb driver

Download the twrp and put here: C:\Flashtool\x10flasher_lib\

and flash with this command:

fastboot.exe flash FOTAKernel twrp-3.4.0-0-amami.img

Download LineageOS and gapps pack (ARM 10.0 nano) and put the sd card.

Turn on phone and press volume up format all partition to ext4 and flash LineageOS and gapp. :fingers-crossed:
[Xperia Z1 Compact Android Development] colaigor:
He said he has custom rom already installed. All he has to do is download this one and install it along with gapps. I asked if he has sd card so i can write step by step guide for sd or for no sd
[Xperia Z1 Compact Android Development] zeec:
i got into trwp, wiped all, managed to sideload lineageos and gapps.

looks good so far, anything else i need or should do?

Thnx for help <3
[Xperia Z1 Compact Android Development] 7alvoo:
Of course, go back to the first page and start reading the topic, not so long you can press the thank you button sometimes I think. :)
[Xperia Z1 Compact Android Development] AndroidKnauber:
I have the most recent TWRP 3.4.0.0 and LineageOS 16.0 version on my phone.

Can I upgrade to this 17.1 version without losing my data? (Apps, settings and so on)
[Xperia Z1 Compact Android Development] 115ek:
If you use the 16.0 standard build: Yes, of course you can. [MENTION=7929484]MSe1969[/MENTION] and me decided to use the same signing keys to allow exactly this upgrade procedure.

If you're using the microg version I have to disappoint you. There is no 17.1 microg image atm.

In any case: make a backup before. Just to be sure.

Then it should be pretty straight forward:

Download LOS 17.1 image (and optional: gapps for android 10.0 arm)

Copy the zips to your phone

Boot into TWRP

wipe /system, /cache and dalvik

Install 17.1 zip

(optional: install new gapps. Important: This has to be done before first boot!)

Reboot. That's it.

Actually you could also do this via sideloading. But you'd need a PC with working adb therefore... Just wanted to mention that.
[Xperia Z1 Compact Android Development] honeycakehorse:
Hello, I've a question to Lineageos 17.1. I still use Havoc38. In this ROM is the gateway IP for wifi tethering not static as until now. 192.168.43.1

The IP is now randomized in this form 192.168.43.x. Keep changing x.

It this a change of Android 9 or 10? How is this in Lineageos 17.1? It's there a way to get a static gateway back?
[Xperia Z1 Compact Android Development] AndroidKnauber:
Thank you for the very fast and helpful answer.

But now I have a another problem. I tried to recover a backup in TWRP but the the recovering process got stuck

in recovering the boot partition. And now my boot partition is broken. The only thing that now works is booting

to fastboot. Where can I get a boot.img that I can flash in fastboot mode?

I hope that flashing the boot partition solves my problem.
[Xperia Z1 Compact Android Development] 115ek:
No clue. I just checked and gateway address was 192.168.42.129 for me. I guess you need to check the code if you want more details. Shot in the dark: start here.

Why do you need a static gateway address?

The corresponding boot.img is always included in the firmware zip. Just unzip/unpack it. Then you can flash with

fastboot flash boot boot.img

Anyway: It's bad that restoring didn't work as intended. What did you try to restore? Something special? Encrypted? Older Version?
[Xperia Z1 Compact Android Development] honeycakehorse:
I synchronize my phone with my PC via WIFI tether. I used the static gateway address so far.

I will now test the hostname of my device instead.
[Xperia Z1 Compact Android Development] AndroidKnauber:
Thank you for the very fast answer and the info about the boot.img.

Fortunately I was able to boot to twrp and flash the 16.0 image again and now everything is working.

But I have another question. I realized that after updating to 17.1 the SD card was not recognized anymore.

Therefore I decided to go back to 16.0. What is the problem with the SD card after upgrading to 17.1.

I use the SD card as internal space.

And I do not know what went wrong with the restore process in twrp. I have no special settings on my phone and only the current 16.0 version.
[Xperia Z1 Compact Android Development] 115ek:
I'm not aware of any problem with it. Most problems with sd cards are hardware related. Often a formatting helps (of course not if there's a hw defect). However, there could also be sw problems. It's nearly impossible to cover all use cases with tests, and as I don't use internal sd at all it could also be me not noticing problems there. But I guess there are at least some people besides you using it.

Anyway: I would discourage using the sd as internal storage. All huge files (video, music, photos, maps) can be easily stored on the sd card when used as an external storage, too.

That also gives you the option to reuse the data if you change the phone or want to use the SD card standalone.

Or do you have any specific reason to do so? For me 16GB are sufficient for storing apps. Everything else can be outsourced.

But that's just my 2 cents.
[Xperia Z1 Compact Android Development] android666:
AndroidKnauber: with 17.1 my SD card 400GB with ext4 works without any problem, without using any external tweak (like magisk). big thanks to our guru 115ek (+friends)
[Xperia Z1 Compact Android Development] AndroidKnauber:
Thank you for the information. But I would like to use the SD as internal storage to get more space for apps.

Therefore I will stay with 16.0 for the moment.

Did you use the SD card with 16.0 before you upgraded to 17.1? I use the SD card as internal space with 16.0 and would like to upgrade to 17.1. But after upgrade the system does not recognize the SD card as internal space.
[Xperia Z1 Compact Android Development] android666:
no, as external sd. all huge maps, backups, photos are stored on external...
[Xperia Z1 Compact Android Development] AndroidKnauber:
Thank you for the info.

But yesterday I made a new upgrade effort to 17.1 and now everything went OK. The SD card that I use as internal space was recognized by the system. And everything is fine now. All my data and apps are still there.
[Xperia Z1 Compact Android Development] 115ek:
New build is up. It is also being shipped as ota update.

13.09.2020

synced LineageOS sources (security patch level September 05, 2020)
[Xperia Z1 Compact Android Development] AndroidKnauber:
I have downloaded the update and the phone restarts to twrp but then nothing happens.

I have TWRP version 3.4.0-0
[Xperia Z1 Compact Android Development] 115ek:
Can you get a log while your in recovery and nothing happens?

Use advanced/copy log and retrieve it from storage afterwards. Or directly access it with adb:

adb pull /tmp/recovery.log

I've got already something in mind...
[Xperia Z1 Compact Android Development] AndroidKnauber:
I have the recovery.log file on my computer.

How should I send it to you?
[Xperia Z1 Compact Android Development] 115ek:
You could send a PM. Or attach it here. There shouldn't be private information in. But maybe check it once before ;)

Anyway: I just built a new TWRP as I think the problem lies there. Could you check with the attached recovery image? Unzip before usage and flash with

fastboot flash recovery twrp-3.3.1-0.1-amami.img

.

I think it's this thing again. I dropped it as it was working without many times for me. But the problem seems to persist. It just comes up randomly...
[Xperia Z1 Compact Android Development] AndroidKnauber:
I tried your recovery version but it is not working.

And by the way twrp needs a long time to boot.

After I see the TWRP loading screen it takes more than one minute until twrp is active.

I do not know how I can attach a file to the reply.
[Xperia Z1 Compact Android Development] lm089:
You probably don't have "enough reputation" yet (your profile syas you have 8 posts so far). That bugged me when I started here at xda some time ago, but those are the rules of the platform. Try to send the file as a direct pm to 115ek, though I'm not sure whether that makes any difference.
[Xperia Z1 Compact Android Development] tramp20:
The same here since TWRP3.4.0 with Lineage 17.1 and AICP 15.

I always copy the downloaded update to my SDCard and start installing it in TWRP.
[Xperia Z1 Compact Android Development] 115ek:
Actually there's a paperclip symbol above the message field (with all those other symbols). But maybe [MENTION=4149551]lm089[/MENTION] is right and you need "more" posts at first.

The long boot time for TWRP definitely is weird. I didn't experience this when I quickly tested it. Logs would also be helpful here.

You can of course do that. But actually it SHOULD work by a simple click without user-interaction (okay, at least one click since TWRP 3.4.0 as we support magisk & OTA now...).

Anyway: There is definitely something wrong. Do you (both) have any special configuration? Are you encrypted? Magisk? Gapps? SD filesystem? Sd as internal storage? Any other modifications? I need to reproduce the problem here before being able to really fix it.

I guess the problem relates from something you have in common.

Going back to twrp 3.3.1 should help in any case (not if magisk & encryption is used... see here)

[MENTION=9350973]All[/MENTION] here: Are there any other guys around with the same problem? Or is OTA working for you? If not: can you give some details about your installation?
[Xperia Z1 Compact Android Development] tramp20:
Taken from Lineage 17.1 with TWRP 3.4.0-0 (ofc with Magisk 20.4 and GAPPS)

This happens only with twrp-3.4.0-0-amami.img, the earlier twrp-3.3.1-0.4-amami.img is ok.

Edit: the same with AICP 15
[Xperia Z1 Compact Android Development] 115ek:
That definitely looks like the old problem I mentioned. Can you check if the recovery image attached to this post solves the issue for you?

Dumb me... :silly:

That was the wrong version. Actually you should try the one attached here: 3.4.0-1

No wonder it didn't work for [MENTION=11084619]AndroidKnauber[/MENTION]

Sorry for the confusion.

Edit: If this works for you I'll update the TWRP thread accordingly as soon as possible to avoid even more people running into issues.
[Xperia Z1 Compact Android Development] AndroidKnauber:
Here you can download the log:

https://anku.no-ip.biz/public/recovery.log

I use the SD card as internal space.

And i have gapps (nano) and magisk installed. And I do not have encryption enabled.

I hope this answers your questions.

---------- Post added at 07:25 PM ---------- Previous post was at 07:02 PM ----------

The new twrp version works.

Thank you very much.

But as I already wrote it takes two or more minutes to load.

Has it something to do with filessystems and checking them at startup?
[Xperia Z1 Compact Android Development] fowof:
I built a rom for my Z Ultra from your sources and after a few failures it boots and is running now.

I'm happy to be able to use Android 10 on my device.

Thanks for your great work.
[Xperia Z1 Compact Android Development] tramp20:
Thank you for this new version, it worked for me too :)

But as you are working on your TWRP version I wish you could repair the other old annoying bug:

If I restore a TWRP backup (older or only some minutes old) and boot the OS (Lineage and AICP) then I have always a bootloop during the boot animation.

The only way to solve this I have to install the ROM again, wiping cache and dalvic cache does never help.
[Xperia Z1 Compact Android Development] 115ek:
I guess yes. Maybe the usage of the sdcard as internal storage is involved somehow.

Thanks. But actually it isn't really my work. There are so many people involved.

It would be nice if you share your sources/experiences/documentation so that the next one can use it. The lack of documentation is often a problem. And then there are those guys sharing nothing except the compiled images/binaries :rolleyes: Which they built from open sources...

Hmm. Bootloop after restoring backup... I remember a commit regarding this in the lineage gerrit.

However, I wasn't able to reproduce the bootloop. Can you give a detailed instruction how to trigger the behaviour? What partitions to backup? What to wipe? The reproduction of a bug is the first step towards a solution ;)