yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] diemadedrei:
That menu is sony specific and not in any other ROMs than Sony's.
[Xperia Z1 Compact Android Development] dmgZero:
Not exactly:)

There is one ROM Android 7.1 with the Service Menu.

Although not all items is working. AFAIK network selection is.

[M-ROM] [7.1] v2.4.0
[Xperia Z1 Compact Android Development] Ikesankom:
Stock camera!?Really!?Al last!? Tomorrow I will try your rom. If it works, I will send you a VERY huge hug!!:fingers-crossed:
[Xperia Z1 Compact Android Development] lm089:
This has been an issue in this thread. Go back a few pages and look for discussions regarding some modified xml file. Since I never had that problem I didn't give it a try, though.
[Xperia Z1 Compact Android Development] Trandaa:
Yes, but this ROM has "many built-in Sony libraries". Without these libraries you won't get into service menu. So in the end you still have to have Sony "stuff" to get it work.
[Xperia Z1 Compact Android Development] munjeni:
Hi, I am realy busy these days and sorry unable to get free time for oreo, hope soon! Enybody have any link for ebay original display foil with sony logo let me know please! I'm searched without luck
[Xperia Z1 Compact Android Development] jho55:
Good to here from you. Take your time. Make it sense for you to wait for Oreo 8.1. ?
[Xperia Z1 Compact Android Development] munjeni:
Had time to publish device tree for oreo, https://github.com/munjeni/android_device_sony_amami/tree/lineage-15.0_r1

Local manifest needed for build Lineage 15.0:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remove-project path="bionic" name="LineageOS/android_bionic" groups="pdk" />

<project name="SuperLamic/proprietary_vendor_sony" path="vendor/sony" revision="gps" />
<project name="munjeni/android_kernel_sony_msm8974" path="kernel/sony/msm8974" revision="lineage-15.0_r1" />
<project name="munjeni/android_device_sony_amami" path="device/sony/amami" revision="lineage-15.0_r1" />
<project name="LineageOS/android_device_sony_common" path="device/sony/common" remote="github" />
<project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="LineageOS/android_external_stlport" path="external/stlport" />
<project name="sonyxperiadev/boringssl-compat" path="external/sony/boringssl-compat" remote="github" revision="master" />
<project name="oreo-victara/android_bionic" path="bionic" remote="github" revision="lineage-15.0" />
</manifest>

Curently I need to make kernel ready for git, but not now, when I get more free time I will do it! Oreo didn't boot with kernel from local manifest, you need to wait until I publish it on git! This is all curently need for lineage 8.0, wait kernel please! Edit: Oreo ready kernel is published! Thing which is remaining is need to collect all patches which I done to android tree and to give you full instruction how you can build oreo! Probably tommorow I will let you know how to build Oreo!
[Xperia Z1 Compact Android Development] Ikesankom:
Hi, I've installed the ROM...and I have lost all my data in microSD... Another question is, why you must clean data during installation?. Why I must clean all data if I only want to rewrite some files?
[Xperia Z1 Compact Android Development] munjeni:
Hi! ...because rom not going work corectly if unclean installation.
[Xperia Z1 Compact Android Development] nhicko95:
Did you have a lineage 15 thread any changelogs for oreo build?
[Xperia Z1 Compact Android Development] munjeni:
No changelog, no build, not yet published, not yet opened thread, I just promised oreo month ago but didn't had time to finish it, sucesfully booted oreo but a lot of bugs because credmgr failed to start, need to solve some ramdisk things to make credmgr propertly initialyse, in that case I'm hope camera and many more things on oreo will work, have no free time to play with it right now. I will post instructions about how to build oreo at least, hope somebody start working on it. When I get more free time I will continue in oreo. Must go now, bye!
[Xperia Z1 Compact Android Development] Ikesankom:
But... if I need reinstall the same rom? Or only installing updates?

---------- Post added at 09:39 PM ---------- Previous post was at 08:48 PM ----------

Another question, how can I hide root? In Developer options only are options Disabled and Only ADB. Thanks.

PD: I answer myself. Uninstalling SU root and flashing Magisk
[Xperia Z1 Compact Android Development] XperiaPD:
Download Server unreachable

I can't download the ROM. Build server seems to be down or unreachable. Tried in different locations and machines but can't access the site. Has anybody got any mirrors of the newest build?
[Xperia Z1 Compact Android Development] albert81a:
The same for me- server problems.
[Xperia Z1 Compact Android Development] jho55:
I can download the rom.
[Xperia Z1 Compact Android Development] pavwal:
where can I download ?
[Xperia Z1 Compact Android Development] GazCore:
http://munjeni.myiphost.com/LineageOS_14.1/
[Xperia Z1 Compact Android Development] XperiaPD:
Although I am also from Germany (Frankfurt) I can't download the ROM. Tried to access the web page in different networks, cleared dns cache and via VPN's in europa,india and US and nothing worked.

Could anybody please upload a mirror I really want to flash this ROM now?
[Xperia Z1 Compact Android Development] jho55:
Strange. Are we talking about the same download? First past post --> "build and changelog: http://munjeni.myiphost.com/LineageOS_14.1/

And then this download:

lineage-14.1-20171018-munjeni-amami.zip

http://munjeni.myiphost.com/LineageOS_14.1/lineage-14.1-20171018-munjeni-amami.zip
[Xperia Z1 Compact Android Development] XperiaPD:
Yeah we were talking about the same one and it still doesn't work on my machine for some reason but I now downloaded all files and the site itself on my brother's machine and copied it. So I am good for now :good:
[Xperia Z1 Compact Android Development] munjeni:
Sorry site was offline! Its up and running now.
[Xperia Z1 Compact Android Development] dmgZero:
Why this method?:)
[Xperia Z1 Compact Android Development] munjeni:
Better way? :)
[Xperia Z1 Compact Android Development] dmgZero:
Is there a list of bugs? Just if people do this incorrectly, they need to know what should work and what does not:)
[Xperia Z1 Compact Android Development] munjeni:
Didn't tested much since in time when I got first build that booted I was focused to fix credential manager (things related to stock blobs), but had not free time to work on it deeper. Generally a lot of bugs, like camera not working and everything in conjuction with credentials npt working since ramdisk need modifications (to get credentials early inited), in that case when we fix credentials camera and many things will start working. When I get free time I will install and try to investigate that. Instructions which I posted is for everybody who can't wait try oreo :)
[Xperia Z1 Compact Android Development] Ikesankom:
Speech doesn't work. I can't send Whatsapp audios, for example, or enter voice commands in Google Search, can you help me, please? a ROM problem?

I've flashed Z2 camera... Works ROM camera and can record audio filming, but doesn't work in other matters.

I've get install AR effects in this ROM. First, install Z5 port https://xdaforums.com/crossdevice-dev/sony/exrxths-z1-z1c-z2-z3-z3c-z3-xperia-z5-t3250139

And later, install AR from Google Play :o.
[Xperia Z1 Compact Android Development] Malk4ever:
Using this ROM since 2 Weeks, works well... GPS issue of CM11 is fixed, Cam is much better than in CM11, no forced reboot...

Feels like a stock ROM :good:
[Xperia Z1 Compact Android Development] munjeni:
Hey, way!!! Mainline kernel 4.11 !!! I see this for the first time https://git.kernel.org/pub/scm/linu...qcom-msm8974-sony-xperia-honami.dts?h=v4.11.1 , by reading google found that basic functions is working like serial console, but looking better found that many more is allready working like https://git.kernel.org/pub/scm/linu...qcom-msm8974-sony-xperia-honami.dts?h=v4.11.1 , hey thats realy good news! We can install an linux distro or for example continue work on my ubuntu touch port which I converted to real ubuntu and almost done freedreno working on it (still failed but was very close to get it). With mainline kernel we can get freedreno sure :)
[Xperia Z1 Compact Android Development] swans:
Hi all! I just read about project treble and it sounds so promising that I had to share with you! Maybe some of you already knew about it...

https://www.xda-developers.com/how-project-treble-revolutionizes-custom-roms-android-oreo/

[MENTION=4120742]munjeni[/MENTION] are you implementing/porting the "vendor implementation" layer to get Oreo AOSP to work or how does it work in Z1C case?

Munjeni, thanks for everything! You and your work are awesome! I am very excited about the new Oreo ROM!
[Xperia Z1 Compact Android Development] munjeni:
As always we must doing hacks to android source code (in our case we using shim libs - ld_preloaded libs which is an hack to get old proprietary blobs compatible with new android). Vendor maker stoped providing updates for our beloved device so we are forced to hack on it. As android always doing changes to its own api we always have previous hack broken, and thats infinite thing. I'm already using some hidl https://github.com/munjeni/android_device_sony_amami/blob/master/HIDL.mk but as we will not get updated vendor blobs we will need to hack for ever to make old blobs working with newer android. I am not so happy with hidl implementation since thats one more work for us, and thats something realy new to me.
[Xperia Z1 Compact Android Development] mirhl:
I was under the impression that once you get compatible with treble, google was guaranteeing you a stable ABI?

Dudes were all cheering in that threae because you could just basically throw the same rom even across devices and vendors.
[Xperia Z1 Compact Android Development] munjeni:
Just to update previous post... done! Lede booted sucesfully :)

[ 2.164507] init: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 4.971261] mmc1: card never left busy state
[ 4.971301] mmc1: error -110 whilst initialising SD card
[ 5.364325] procd: - early -
[ 6.043293] procd: - ubus -
[ 6.094708] procd: - init -
Please press Enter to activate this console.

LEDE login: root

BusyBox v1.25.1 () built-in shell (ash)

_________
/ /\ _ ___ ___ ___
/ LE / \ | | | __| \| __|
/ DE / \ | |__| _|| |) | _|
/________/ LE \ |____|___|___/|___| lede-project.org
\ \ DE /
\ LE \ / -----------------------------------------------------------
\ DE \ / Reboot (17.01.4, r3560-79f57e422d)
\________\/ -----------------------------------------------------------

=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@LEDE:~#
root@LEDE:~#

Need to add prima driver to be able to use wifi...
[Xperia Z1 Compact Android Development] munjeni:
Can't get prima compile on mainline kernel, a ton of things is missing since prima is for msm kernel only :( But got lede with our oreo kernel after enabling console in defconfig. Can you help me configure start wifi from command line, e.g. from recovery mode, is that even possible? Newer tried something like that :)
[Xperia Z1 Compact Android Development] lm089:
Finally I found my own bug ;)

This evening used fm radio for the first time since I installed this ROM. I found the volume being very high so I tried to lower it, but without success. Even muting the volume doesn't help. With any other app adjusting the volume is not a problem.

Anyone else having that problem?
[Xperia Z1 Compact Android Development] munjeni:
Yes thats known allready and allready menfioned here. Mixer paths isue.
[Xperia Z1 Compact Android Development] lm089:
oops, sorry for the duplicate; thought that was only relevant for the phone call volume...
[Xperia Z1 Compact Android Development] lm089:
Took a while but I just played around with those mixer_paths:

first I compared contents of the original .xml file (from munjeni's image) to the one I d/l'ed from here.

Result: they are mostly identical with just a few differences: "munjeni's version has some extra entries, e.g. one in line 166:

<ctl name="Internal FM RX Volume" value="0" />

(somehow sounds promising...)

or another one in line 811 inside the

<path name="adc5">

node:

<ctl name="IIR1 INP1 MUX" value="DEC2" />

(whatever that means...)

next I replaced the original mixer_paths.xml with the downloaded version, then rebooted my phone.

Result: none >> everything is fine as it was before, with the exception of fm radio where I cannot adjust the volume at all (see my previous post)

Just spent half an hour googling to find out about the inner meanings of all those elements but I coudn't find anything that helped me locate the proper node.

[MENTION=4120742]munjeni[/MENTION]: is our fm radio app part of the original LOS 14 package? And where did the .xml file come from originally? Maybe there's a chance to find a mixer_paths.xml that supports our fm app...
[Xperia Z1 Compact Android Development] mirhl:
[MENTION=4149551]lm089[/MENTION] I think pins meanings are SoC dependent (or DAC, but Z1 shouldn't have one), and may or may not be available in the full datasheets.

EDIT: unfortunately, if they aren't here, I doubt they are to be found anywhere.

Maybe this or [MENTION=4988905]Bjorn Andersson[/MENTION] could help?
[Xperia Z1 Compact Android Development] munjeni:
Fm is part of the Lineage source tree, you can see them inside hardware/qcom/fm. Mixer paths is soc dependent. One which come on this build is from SuperLamic git, don't know realy where he found it, even I realy not understand how these mixer paths working so I allready told that somebody with skills in audio need to check that, I can't fix. I improved audio a bit (see here) , but that din't fixed fm. With patch or without patch fm is the same! Have no idea whats going on with fm, I'm believing mixer paths cause no volume control. :)
[Xperia Z1 Compact Android Development] pcz:
Does anyone tried xposed in this rom? It is working (if yes which version). Thanks
[Xperia Z1 Compact Android Development] Ramon españa:
In rom aicp if it works to raise and lower the radio volume fm in case it helps. Sorry my bad English

---------- Post added at 12:16 AM ---------- Previous post was at 12:15 AM ----------

In rom aicp if it works to raise and lower the radio volume fm in case it helps
[Xperia Z1 Compact Android Development] munjeni:
Which version?
[Xperia Z1 Compact Android Development] Rafaru:
Hello , I have been searching around but found nothing , I want to download my unlocked bootloader Z1C , from Nougat (Lineage OS 14.1 by Mujenji) to MM , someone can please help ???

Thanks in advance
[Xperia Z1 Compact Android Development] munjeni:
Sorry can you explain better what you need?
[Xperia Z1 Compact Android Development] Trandaa:
I think he wants to downgrade from Nougat back to Marshmallow.
[Xperia Z1 Compact Android Development] Rafaru:
Hi Munjeni , I want to dwon grade and try MM , after last update battery drains too quickly , it lasts about 18 - 20 hours with only a few whatsapps , no games , music , etc , also to be honest I don't really like nougat esthetic , but I do not know how to do it

Thnaks
[Xperia Z1 Compact Android Development] munjeni:
In short, you need an FTF file (stock rom file) and you need flashtool (tool to flash ftf file), more info you can get here -> https://xdaforums.com/showthread.php?t=2631291 , further questions please search in Q&A threads, hope this help.
[Xperia Z1 Compact Android Development] Rafaru:
Many thanks for your help
[Xperia Z1 Compact Android Development] hackintosh5:
There is MM stock???

And there I was thinking this device was stuck on lollipop:crying::p
[Xperia Z1 Compact Android Development] munjeni:
Just to update this, got wifi under lede, succesfully connected to the web interface jupiii \0/ Seems we can make an strong wifi router on z1c? Curently can't manage to get wan wwan, getting unknown type name cfg81blabla so unable to use wen interface for configuring wifi network, to be honest that option somehow is missing inside web interface, probably because I forgot to install it :( Generaly I will paly more with this, just need to manage how to enable wifi at boot time so to no more use stupid serial console over uart, it would be better for sure :) When I done that I will share boot image with lede, hope somebody help me than.
[Xperia Z1 Compact Android Development] vildevilde:
So @ munjeni, did I get this right, are you trying to make a wireless router of the z1c? That s a little fun and also interesting, special as I do like things running Linux.

But will there be no Oreo build then?
[Xperia Z1 Compact Android Development] munjeni:
yes, its native lede, got it! And yes oreo is allready here https://xdaforums.com/sony-xperia-z1-compact/development/rom-t3718206?styleid=16 , A lot of things allready ported by help of the lede, e.g. done complete buildroot toolchain working on z1c and to be hinest thats unbelievable how fast z1c running gcc toolchain and compile things, its like pc, not much but close to my old pc. Done some ports directly on phone trought buildroot like flex, bison, perl, python, openssh, a lot a lot a lot more, bash and openssh I was compiled and posted 2 days ago in sony cross forum. I'm believing that z1c is realy capable runing an native linux, will try that after lede, e.g. to get freedreno working on mainline kernel, just to remind, 7 days ago I have tried mainline kernel latest one, it boots on z1c! Z1c and z1 is oficialy supported on mainline kernel, thats realy a good news! Found that 7 days ago and was very happy :)
[Xperia Z1 Compact Android Development] dmgZero:
What about windows?:D:D

---------- Post added at 02:39 AM ---------- Previous post was at 02:05 AM ----------

@munjeni

1) Since you're doing different interesting things, could you try to implement "bypassing the battery and powering the device directly from the wall socket" feature for z1c? :)

2) Yet. It seems that in z3c in the kernel there is a function of limiting the voltage when charging. It provides the functionality of the "Soft Charging" function. Here in more detail about all the advantages of this and similar technologies.

Is it possible to implement this kernel feature of z3c to z1c?

The purpose is to get a direct control of the maximum battery voltage through the file sys/class/power_supply_battery/voltage_max
[Xperia Z1 Compact Android Development] lm089:
Yes, V 88.2. So far didn't see any obvious problems
[Xperia Z1 Compact Android Development] vildevilde:
(Ohh, New look on xda, extremely much faster than before :) )

[MENTION=4120742]munjeni[/MENTION] Im impressed by your work and your enthusiasm munjeni, I follow this with interest.

I'm sorry I can't help but I don't understand how this machines are working, I just use them ;)
[Xperia Z1 Compact Android Development] munjeni:
Hey I realy need it, long time ago I am used qemu on z1c (on playstore there is a lot of applications) to emulate windows xp, it was succed but I never got usb working, e.g. thing which I needed was WCDS for car diagnostic, but never got it working on android. But some peoples says that it is posible on real linux like Ubuntu trought Wine to install and run WCDS , never tried but I'm believing it is possible. So maybe getting an real linux distro working on z1c in most case we can install wine and get that wcds working on it. To remind, we have oficial support from mainline kernel, that mean we can install latest possible kernel on our z1c. I'm allready tried that, compiled, installed and found that it is realy working. Problem is it's just minimaly hardware drivers supported kernel for z1c, the rest we need to implement like display drivers, wifi drivers, bluetooth drivers, modem drivers... etc. That kernel realy works! Another problem, not much peoples have z1c, so not much devs on z1c, sadly. I have no plan to change z1c for another 2 years, got new battery, got new shater film on display, will buy back plate plastic and my z1c is like a month old phone, apsolutly have no need to get new phone, z1c is fast, good, enought. :)

I'm sorry I will not. Why, simply have no free time for that, many things is already in my head and I need to play with it when I get some free time for it :)
[Xperia Z1 Compact Android Development] JIJOK:
Hello, I know you are ultra busy, but I am noob with flashtool and want to flah the permanent recovery using the opnebootloader.rar file you mention there, just flash with default settings or need tick something ?

Disable final verification ?? USB buffer ??? 32 - 64 -128 - 256 - 512 :eek: thats what I see on flashtool, help ?

And do I need superSU or can use a different one ?

Thank you :o
[Xperia Z1 Compact Android Development] nhicko95:
Watch on Youtube or read on google/xda on how to unlock bootloader
[Xperia Z1 Compact Android Development] munjeni:
Done :) -> https://xdaforums.com/crossdevice-dev/sony/lede-firmware-make-xperia-z1-compact-t3720998
[Xperia Z1 Compact Android Development] JIJOK:
maybe you didnt understand, but I am trying to get this "to be able to have permanent recovery your bootloader must be unlocked and you need to enable that recovery mode in bootloader! I have made that enabler, just extract and flash file from attachment using flashtool"

I am asking how to flash that enabler, if need change some options or leave the default flashtool options
[Xperia Z1 Compact Android Development] rodomaxi2:
Hello everyone, I want to install magisk in the last version of this rom, someone knows if it works and how install it?

Thank you.
[Xperia Z1 Compact Android Development] nhicko95:
Use sony flashtool download latest firmware with builtin recovery
[Xperia Z1 Compact Android Development] jho55:
1. Is your bootloader unlocked?

2. If yes, use the Emma Tool (https://software.sonymobile.com/www) from Sony. Users who have bootloader unlocked can use this tool to get the latest Z1C LP 5.1.1. firmare.

3. After using Emma, you have real recovery.

4. Now flash twrp.
[Xperia Z1 Compact Android Development] ruhrmolch:
Searching for updates and adaptive brightness does not work and the battery drains much faster than with my old Android 5.1.

Apart from that, thank you for a good CustomROM.
[Xperia Z1 Compact Android Development] hackintosh5:
1. It isn't official, so updater won't work.

2. It will never get any more updates, so updater I'd useless.

3. Adaptive brightness is in quick settings and works fine for me.

4. My battery life is great compared to stock rom where I had 3 minutes. I'm up to 3 hours with this (my battery is fried)
[Xperia Z1 Compact Android Development] ruhrmolch:
ok. those points are not a big deal, so its fine anyway. ;)

But a big problem for me is, that i cant use the phone for calling, while i'm driving, because the microphone sensitivity stays low when the car-speaker are plugged in (audio jack). With Stock-Rom, microphone gain was magically on a higher level, when i was taking a call.

Anybody, who has a solution for that problem? Would help me a lot.
[Xperia Z1 Compact Android Development] hackintosh5:
Mentioned earlier, we need an audio dev to help with mixer_paths.xml. Or you could try copying from most recent stock rom (TAKE A BACKUP!!!).
[Xperia Z1 Compact Android Development] knolle:
Sorry, written with Google translator :)

Hello all,

The same problem with the microphone I have too.

It would be nice if that could be solved.

Attached is the original "mixer_path.xml".
[Xperia Z1 Compact Android Development] hackintosh5:
From stock rom? Or from munjeni rom?
[Xperia Z1 Compact Android Development] knolle:
From stock rom, prerootet (D5503_Customized DE_1279-6978_14.6.A.0.368_R2D (5.1.1) flashable)