yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] munjeni:
Yep
[Xperia Z1 Compact Android Development] jho55:
Use the official EMMA tool from Sony to get real recovery by updating to latest stock rom. EMMA is meant for people who has an open boot loader and still wants to go back to a stock rom.

After that try to install twrp and then this rom.
[Xperia Z1 Compact Android Development] DeadXperiance:
Problem solved by flashing recovery again by this command "fastboot flash recovery twrp.img"
[Xperia Z1 Compact Android Development] munjeni:
Your device sure is xperia z1 compact? If yes than I realy have no idea. Can you tell us in details what you have done with you device before it started strange thing? You have recovery working? In that case you can restore your trim area backup and also many more things like raw reflashing with dd command, I can help if you have recovery or android working and your trim area dump! In that case I can dump raw mmcblk0 part from my phone and just replace trim area part with yours, and you need to reflash it trought recovery or android, it might uncorupt low level part of the probably bad bootchain.

Another idea, you can try unbrick with s1tool, search fot it I have made some threads for z1c unbricking...
[Xperia Z1 Compact Android Development] munjeni:
Hey wait. It might be that you using wrong firmware which is not for your device model. I see in your xflasher.bat prcmu.sin, never saw something like that for z1c, which is indication that you have an firmware not for z1c? Can you post more details about firmware you downloaded, and can you tell me your device model?
[Xperia Z1 Compact Android Development] spam1:
There is camera button on our Z1 Compact. I've noticed lately, that it doesn't work anymore since I use this firmware.

It looks like photo was taken but screen flashes and it is not saved.

Only "onscreen" touch camera button/trigger make photos.

Any ideas?
[Xperia Z1 Compact Android Development] swissly:
munjeni, good obvervation, the device I am trying to unbrick is indeed not a z1c but a Xperia Go ST27i! I realized this several post back but I thought it would not matter as long as I am using the correct firmware. But you are right, it is perhaps better to move this to the right forum. So I started a new thread here: https://xdaforums.com/xperia-u/go-development/bricked-xperia-st27i-chance-to-bring-to-t3740570

Can you help me there?
[Xperia Z1 Compact Android Development] lm089:
Similar here: no connection to 5GHz band, in my case changing wifi region didn't help. All the other devices in my home are connecting just fine.

Just played around with channel settings in my router; it was set to "auto channel" and constantly using channel 52. I forced the router to switch channel to 48 and now the phone is connecting just fine, even after reboot.

Maybe this helps

I'm sure I never had that problem before I installed this ROM here so it must be something well hidden in some settings file, I assume.
[Xperia Z1 Compact Android Development] ugoalejandro1:
Can I install time shift video and 4K video mod?
[Xperia Z1 Compact Android Development] hackintosh5:
Who knows. Ask on their forum. If you do install, not you can't report bugs any more.
[Xperia Z1 Compact Android Development] coventgardenmartin:
Not sure if you got an answer for this but I had the same thing happen but it was because the USB cable wasn't plugged in. I imagine it needs power to to the initial setup, as soon as I plugged it in it went away.

---------- Post added at 05:35 AM ---------- Previous post was at 04:51 AM ----------

I'm gonna donate for this...got a Z1 compact from China...first time I've ever ordered a phone from there but I rooted my old galaxy s5 and that was hard, but fun (my first android phone) so thought I'd give this a go...was HORRIFIED to learn Sony stopped pushing updates after Lollipop when Marshmallow was specifically what I needed so this was a GODSEND or I would have had to have return it and when I saw the camera was crap for MM and almost gave up I ran across this thread. Been working the last couple hours no problem! Will keep playing! Thanks again!
[Xperia Z1 Compact Android Development] jho55:
If you encounter a bug, always try to reproduce it on a clean install.
[Xperia Z1 Compact Android Development] Matra-PB:
Thanks for the tip. I managed to install the rom again, and no problem since that.

:)
[Xperia Z1 Compact Android Development] dafonehacker:
[MENTION=4120742]munjeni[/MENTION] are you still working on oreo for the z1c?
[Xperia Z1 Compact Android Development] jho55:
https://xdaforums.com/sony-xperia-z1-compact/development/rom-t3718206/page8
[Xperia Z1 Compact Android Development] Ikesankom:
Have you leave this rom, [MENTION=4120742]munjeni[/MENTION]? It's the best rom I have had for this phone. Could you solve the radio problem? Please, support it.
[Xperia Z1 Compact Android Development] jho55:
[MENTION=8547369]Ikesankom[/MENTION]: read the thread... But to answer your question: yes.
[Xperia Z1 Compact Android Development] kla960:
I've had a similar problem using Z3C. My phone was using only the WLAN N standard instead of WLAN AC. Changing the CCODE to DE in /system/etc/wifi/bcmdhd.cal fixes that for me.

If your phone is not rooted you have to copy the files using TWRP first to a folder you have access. Edit the file and then copy it back.

Don't forget to make a backup first;)
[Xperia Z1 Compact Android Development] lm089:
Thanks for pointing out.

Well, my phone IS rooted, so I just had a look at that folder you mentioned. But no trace of a file called bcmdhd.cal. :confused:

Not really important though since with the chosen WiFi channel it's working fine
[Xperia Z1 Compact Android Development] kla960:
After updating to Oreo it is no more available:( but it was possible to use the modified file from my old ROM
[Xperia Z1 Compact Android Development] honeycakehorse:
I had the same problem.

You can try to flash in the ramdisk from the FOTAKernel to avoid the the Xperia recovery-in-boot arrangement.

fastboot flash FOTAKernel Z1C-twrp-3.0.2.img

https://xdaforums.com/sony-xperia-z1-compact/general/twrp-3-0-1-amami-t3350827

I used this way with dd, it works fine for me.

su
dd if=/storage/emulated/0/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel

Here for Z1 honami, but it work also with my amami. With the amami twrp.img of course!

https://twrp.me/sony/sonyxperiaz1.html
[Xperia Z1 Compact Android Development] _Pano_:
sorry, but where is the link to download it??
[Xperia Z1 Compact Android Development] jho55:
first post, the yellow "build and changelog" link in the middle of the text. Yes, it is a little bit hidden.
[Xperia Z1 Compact Android Development] _Pano_:
ok thanks!! following this https://www.cyanogenmods.org/forums/topic/lineage-os-14-1-xperia-z1-compact-nougat-7-1-rom/ I have installed TWRP using Flashtool directly and then the ROM and GAPPS.

Now I need to root the device but restarting the device I'm not more able to enter in TWRP!! should is "press Volume down" when see SONY's logo at the start right?
[Xperia Z1 Compact Android Development] Emperor.dk:
deleted
[Xperia Z1 Compact Android Development] _Pano_:
any help?
[Xperia Z1 Compact Android Development] DeadXperiance:
Flash TWRP again
[Xperia Z1 Compact Android Development] _Pano_:
if I flash TWRP on a stock ROM by means of Flashtool I'm not more able to start the ROM self with the device that alwais boot in TWRP, as if the TWRP "overwrites everythings"....... are you sure that it doens't appen with Lineageos currently installed? I don't want to restart from the beginning
[Xperia Z1 Compact Android Development] DeadXperiance:
Yes, you can flash TWRP again it only replace recovery not whole rom. I attached 'twrp' for LineageOS 14.1
[Xperia Z1 Compact Android Development] _Pano_:
ok it works, thank you :good:
[Xperia Z1 Compact Android Development] Malk4ever:
Love this ROM, its kinda stable and camera is also much better than in CM11.

This ROM is much more stable than official CM11 was.

This ROM gave new life to my Z1C, using it for 4 years now ;):good::good:
[Xperia Z1 Compact Android Development] _Pano_:
every time I turn on my device the date is january 1 1972 and I need to turn on wifi or data to update it....... any solution??
[Xperia Z1 Compact Android Development] bedp:
Rom is pretty fast, camera is good but sound...

Audio quality is ugly in comparion to stock. (and any equalizer cant help)

In high tones there is something I cant handle with headphones on.
[Xperia Z1 Compact Android Development] lm089:
Alarm tone problems

this thread appears to be dead by now, still I try to get an answer here first:

I'm perfectly happy with this ROM for well over a year now running it without any big problems; munjeni and the others here did a phantastic job, really!

Well, this morning my Xperia alarm clock woke me up as always but with a different (and very ugly) alarm tone. Since then I have been trying all day to get my previous alarm tone (some .mp3 title stored on may sdcard under /music/) back but it doesn't work the way it used to:

- trying to switch alarm tones then tapping onto "music" in the first selection dialog the clock app immediately crashes (it never did that before!)

- the other option is to choose "ringtone"; this opens the well known selection dialog but my preferred .mp3 (of course) is not in there.

What I tried so far:

- copied the song into /media/audio/alarms/ on both my sd card and on my internal storage, into /system/media/audio/alarms/ and many other folders internal and external I could think of

- rebooted approx. 10 times

- cleared entire cache partition from recovery

- disabled clock app, cleared its cache and all data etc

The result is always the same: my .mp3 title is never appearing in the mentioned selection list

what's even stranger:

- the selection list contains quite a few alarm tones that for the life of me I cannot find *anywhere* on my phone, like 2 instances of "piezo alarm" (which btw. is the ugly tone that woke me up this morning...); I searched all of my SD card, my internal storage and the entire /system/ folder - nothing

Questions are:

- why is the clock app crashing when I select "Music" instead of "ringtone"?

- where are alarm tones like the one mentioned physically stored if not under /system/media/...?

Before I re-install this or install a different ROM just because of alarm tones, hopefully someone reads this and has some hints for me
[Xperia Z1 Compact Android Development] jho55:
Hello lm089 (oh, also from Munich ;) ),

What I would try first is to do a backup and clean install to try if it is not android related. Is the speaker working correctly and not damaged? Maybe the file is corrupted due to sd card error?

By the way, I switched from this rom to AICP 13.1 and I like it so far.
[Xperia Z1 Compact Android Development] lm089:
I already noted that there's a real neighbor here ;)

No, speaker is fine, and so is this song. I already considered restoring my last nandroid backup, maybe next week.

I'm observing that for a while but until recently there seemed to be a battery drain problem. Which appears to be solved now.

Are you using GPS on that rom? I'm frequently recording my cycling tracks and there need reliable GPS processing...

Thanks for your hints, and vui Spass auf da wies'n :D
[Xperia Z1 Compact Android Development] munjeni:
I have plan to stay on stock lineage as much as possible :)
[Xperia Z1 Compact Android Development] munjeni:
Anybody have free time for reasearching in stock rom for supported networks? I have found a list:

public static int singleRafTypeFromString(String rafString) {
switch (rafString) {
case "GPRS": return RAF_GPRS;
case "EDGE": return RAF_EDGE;
case "UMTS": return RAF_UMTS;
case "IS95A": return RAF_IS95A;
case "IS95B": return RAF_IS95B;
case "1XRTT": return RAF_1xRTT;
case "EVDO_0": return RAF_EVDO_0;
case "EVDO_A": return RAF_EVDO_A;
case "HSDPA": return RAF_HSDPA;
case "HSUPA": return RAF_HSUPA;
case "HSPA": return RAF_HSPA;
case "EVDO_B": return RAF_EVDO_B;
case "EHRPD": return RAF_EHRPD;
case "LTE": return RAF_LTE;
case "HSPAP": return RAF_HSPAP;
case "GSM": return RAF_GSM;
case "TD_SCDMA":return RAF_TD_SCDMA;
case "HS": return HS;
case "CDMA": return CDMA;
case "EVDO": return EVDO;
case "WCDMA": return WCDMA;
default: return RAF_UNKNOWN;
}
}

Anybody tell me which of that is unsupported? Do we realy have LTE support on our old device?
[Xperia Z1 Compact Android Development] levone1:
Meanwhile, there's actually quite a few Substratum themes that work fine. Experiment...
[Xperia Z1 Compact Android Development] BokeB:
Yes, definitely. But i never had LTE+ before. So this shouldn't be supported on our device.

Is this list from stock rom? Or should i flash stock rom to check this?
[Xperia Z1 Compact Android Development] airman1951:
Hi Munjeni, I was outside so I didn't test this update. Now if I try to dl the file I get a not found error. Don't worry, I can wait for the next release. Thanks a lot!
[Xperia Z1 Compact Android Development] mikk_11:
I'm also pretty sure we have LTE.

The attached screenshot says we have LTE.
[Xperia Z1 Compact Android Development] munjeni:
Ok guys, I'm going to collect now some bugs which you have reported, correct me if I missing some!

1. device crashes noticeably seems fixed.

2. devices sometimes crash as per this report https://xdaforums.com/showpost.php?p=73564313&postcount=100 , mate I need your crash log in order to fix that!

3. can't enter into charging only mode (I'm working on that right now)

4. no stereo in fm radio??

5. Can't export sim contacts to sim card

6. mtp popup which tell that mtp host stopped fixed by removing unused MtpDocumentProvider.apk

6. LiveDisplay is not working? If you can get log somehow it would be great!

7. changing network mode to wcdma only but LTE & 3G randomly changes itself, probably we need to correct this:

<string translatable="false" name="config_radio_access_family">GSM | GPRS | EDGE | WCDMA | LTE</string>

Edit:

We are not a CDMA cappable, we do not have lteOnCdmaDevice, we have lteOnGsmDevice.
[Xperia Z1 Compact Android Development] munjeni:
There is some grouping of the network configuration, see:

// Radio Access Family
// 2G
public static final int RAF_UNKNOWN = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN);
public static final int RAF_GSM = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_GSM);
public static final int RAF_GPRS = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_GPRS);
public static final int RAF_EDGE = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_EDGE);
public static final int RAF_IS95A = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_IS95A);
public static final int RAF_IS95B = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_IS95B);
public static final int RAF_1xRTT = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT);
// 3G
public static final int RAF_EVDO_0 = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0);
public static final int RAF_EVDO_A = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A);
public static final int RAF_EVDO_B = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_B);
public static final int RAF_EHRPD = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_EHRPD);
public static final int RAF_HSUPA = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_HSUPA);
public static final int RAF_HSDPA = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_HSDPA);
public static final int RAF_HSPA = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_HSPA);
public static final int RAF_HSPAP = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_HSPAP);
public static final int RAF_UMTS = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_UMTS);
public static final int RAF_TD_SCDMA = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_TD_SCDMA);
// 4G
public static final int RAF_LTE = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_LTE);
public static final int RAF_LTE_CA = (1 << ServiceState.RIL_RADIO_TECHNOLOGY_LTE_CA);

[COLOR="Red"] // Grouping of RAFs
// 2G
private static final int GSM = RAF_GSM | RAF_GPRS | RAF_EDGE;
private static final int CDMA = RAF_IS95A | RAF_IS95B | RAF_1xRTT;
// 3G
private static final int EVDO = RAF_EVDO_0 | RAF_EVDO_A | RAF_EVDO_B | RAF_EHRPD;
private static final int HS = RAF_HSUPA | RAF_HSDPA | RAF_HSPA | RAF_HSPAP;
private static final int WCDMA = HS | RAF_UMTS;
// 4G
private static final int LTE = RAF_LTE | RAF_LTE_CA;[/COLOR]

Since we do not have right grouping config and some is missing its expected that we do not have corect network mode switch, I think with this one we will have it fixed:

<string translatable="false" name="config_radio_access_family">GPRS|EDGE|UMTS|HSDPA|HSUPA|HSPA|LTE|HSPAP|GSM|TD_SCDMA|WCDMA|LTE_CA</string>

For example, if we need working wcdma we need to enable HS and RAF_UMTS, HS is group of AF_HSUPA | RAF_HSDPA | RAF_HSPA | RAF_HSPAP so we need to enable booth, or for exmple to get LTE we need to enable RAF_LTE | RAF_LTE_CA ... config above this is I think right one :)

Going to try now, need to fix first some bugs described in previous post, let see :)
[Xperia Z1 Compact Android Development] BokeB:
Can't even enable it. It always changes to OFF.

Would any kind of log be helpful?
[Xperia Z1 Compact Android Development] munjeni:
I will look into that later, priority now is to fix charger, network ...etc
[Xperia Z1 Compact Android Development] Rafaru:
Hello , I have installed LineageOS 14.1 , since then , I have no access to Sd card or internal from my PC , is this normal please ??? Anyway to gain access please ????

Thanks
[Xperia Z1 Compact Android Development] BokeB:
No problem. Here you go. Log File attached.
[Xperia Z1 Compact Android Development] munjeni:
Simple pull out sdcard and pull in again and you will get notification for setup sdcard, setup it as portable!
[Xperia Z1 Compact Android Development] Rafaru:
Hi Munjeni , done , pulled SD out and in again but no setup notification received , does not work , I can see both internal and external with a file browser on the phone , but not on PC , it says empty folder , Am I missing something ???

Edit: anyway many thanks for answering !!!!!!
[Xperia Z1 Compact Android Development] munjeni:
Try reboot after you setup sdcard! It must be working degfinitelly! If not check your mtp drivers
[Xperia Z1 Compact Android Development] FaTlip82:
Just pull the notification bar down, there will pop up a USB menu, where you can choose - transfer files. After that you should be able to see Z1C drives on PC.
[Xperia Z1 Compact Android Development] Rafaru:
Thanks , will try later at home , I can not do it know
[Xperia Z1 Compact Android Development] pcz:
HI munjeni.

First of all, Nice to see you again, and thanks for your great job!

I installed you rom, but I have no supersu icon? I missed something?

And the system.rar is not available anymore :(

Can anybody recommend me a recovery, which I can use?

Thanks
[Xperia Z1 Compact Android Development] munjeni:
Please read carefully instruction from my site, chance to get something wrong is realy minimal!
[Xperia Z1 Compact Android Development] munjeni:
Uh I forgot that, thanks! Thats what he need definitelly!
[Xperia Z1 Compact Android Development] jho55:
Hi,

maybe in an older backup it is working. If yes, it could be easier to just make the changes you did to get your current state. Like installing new apps etc. :)

The battery drain was caused by sdcard and is fixed now. I have a problem with battery drain caused by mobile phone data. I solved it by using "Tasker" so while my phone display is off the phone only goes online every 15 min for 15 seconds. Works fine for me.

GPS is working for me. I was in the mountains this weekend and the Google Maps Dot showed current positions. But I do not know if it is enough for cycling.
[Xperia Z1 Compact Android Development] lm089:
Sure, I'll try that later on today or tomorrow

Mobile data is permanently switched off unless I really need it, so that shouldn't be a problem.

Will give it a test drive then I'll see

One more question though; I'll post that in AICP's own forum cause it belongs there. But maybe you have an answer...
[Xperia Z1 Compact Android Development] FristPost:
Guys Anyone can tell me where can i download this rom?
[Xperia Z1 Compact Android Development] Trandaa:
It's in the first post

http://munjeni.myiphost.com/LineageOS_14.1/
[Xperia Z1 Compact Android Development] falskmyntarn:
without gapps?

hi! can I install this without google apps? i noticed that there's a folder in the zip with gapps, haven't tried the install yet but was just wondering if it's possible to bypass it in the installation, or maybe remove it from the zip? thanks!
[Xperia Z1 Compact Android Development] mirhl:
Gapps are never included in non-stock-based roms
[Xperia Z1 Compact Android Development] falskmyntarn:
thanks for a quick reply! ok, I guess I still don't get it, if I look at the download page from the first post, there's an "Aroma build" download only, and from what I understand it does include opengapps?
[Xperia Z1 Compact Android Development] lm089:
From what I recall, and from what I get from munjeni's download page this ROM indeed has openGapps and SuperSU included; you can select / de-select upon flashing. But it's been well over a year that I installed this ROM from scratch, so I might be wrong
[Xperia Z1 Compact Android Development] falskmyntarn:
just to follow up - you were right, it was optional and the ROM installed perfectly without gapps (had to install TWRP first though) - and it's fast and smooth as silk now :cool:
[Xperia Z1 Compact Android Development] tooplanx:
I've had LOS 14.1 installed for a while and it seems pretty good, however it syncs to have some significant bugs. The big one is that Google Duo doesn't work properly- the mic doesn't work so calls are pointless. Dues anyone else have this problem? Or can anyone give me a ROM where Duo definitely works?

Mic volume in general is pretty quiet.

Thanks
[Xperia Z1 Compact Android Development] maciej03:
Since the LineageOS 13 version there is a function of using a proximity sensor when someone calls us to avoid accidentally picking up a call or pulling out the status bar. Here it does not work, how to turn it on?
[Xperia Z1 Compact Android Development] RintSo:
need last build. i can reach the download site

any gentleman here who has the file to upload it somewhere?
[Xperia Z1 Compact Android Development] veloc_h:
the download link http://munjeni.myiphost.com/LineageOS_14.1

is dead
[Xperia Z1 Compact Android Development] clubvybe:
updated with final version

lineage-14.1-final-amami-munjeni

MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.

www.mediafire.com
[Xperia Z1 Compact Android Development] veloc_h:
Final version: does this mean, that the gps rollover fix is included?
[Xperia Z1 Compact Android Development] munjeni:
Try to search for [MENTION=4675598]shoey63[/MENTION] twrp recovery, he made one good for z1c but sorry I forgot where!
[Xperia Z1 Compact Android Development] taudelta:
Cant't download this. Please, share again. I'm using this ROM daily and reboots make me crazy)))
[Xperia Z1 Compact Android Development] munjeni:
Mate forget that system and boot.img, I'm going to share new build today, be patient please!
[Xperia Z1 Compact Android Development] taudelta:
Yooohoo! I'm waiting! Then can you add kexec hardboot patch to kernel?
[Xperia Z1 Compact Android Development] munjeni:
I will not, sorry, I'm prefering stock LineageOS_14.1 as much as possible
[Xperia Z1 Compact Android Development] Spartan42:
The last days i were back on CM 12. So i flashed LOS 14 today to reproduce the incoming message soft boot.

I wasn't able to reproduce. Message were incoming fine during screen off. I'll gues i messed something up during my first Installation in fact that i am the only one who reported this missbehaviour.

My tries to set the System up like the first one to narrow down the error failed. Everything works as it should:good:
[Xperia Z1 Compact Android Development] munjeni:
- lineage-14.1-20170828-munjeni-amami.zip : Fix LiveDisplay, offmode charging, random reboots, tried to fix 2g,3g,lte mobile isues (hope it is solved?)

I'm curently uploading, it will become visible and BLUE when upload finish, enjoy!