yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] dmgZero:
- Are the 3G/LTE bugs still present?

- Does Magisk work completely, for example MagiskHide?

- What does it mean to export SIM-contacts to SIM-card?

Why export SIM-contacts, that are already on the SIM-card, to the SIM-card??:)
[Xperia Z1 Compact Android Development] munjeni:
Magisk need permissive mode, so you can wait aroma installer or modify boot image byself and disable enforce.

Yes, lte/3g still present. Anyway I can leave with it since its just icon, no problem with mobile net anyway. Hope it gets fixed.

Simple :) E.g. I have added new contact which not exists on sim card, than I need to update my sim card with new contacts :)
[Xperia Z1 Compact Android Development] munjeni:
No sorry, I have no plan to make fota server, clean installation is always recommended!
[Xperia Z1 Compact Android Development] munjeni:
Can you guys tell me which panel your phone have? See how to https://xdaforums.com/showpost.php?p=66741616&postcount=2

Do you have replacement display?

Can you give me last_kmsg ?

For me I have jdi novatek 720p cmd, which is your's? Probably problem is panel model, I will need to investigate on it with your help!
[Xperia Z1 Compact Android Development] Maciek602:
I do have replacement screen, I can't provide you last_kmsg because I can't get ADB working on the latest build. Maybe there is another way, I have TWRP installed.

In mdss_dsi_panel I have the same model as you. (Anyway I have not original screen)
[Xperia Z1 Compact Android Development] Frunzdoedel:
I tried clean and then dirty flash, original jdi panel.
[Xperia Z1 Compact Android Development] dmgZero:
- For MagiskHide also need necessary features (mount namespace) backported. Or linux kernel at least 3.8.:(

- i.e. Actual(real) reconnections when changing icons do not occur?
[Xperia Z1 Compact Android Development] munjeni:
Thanks for info! Actually I don't have idea if lineage guys allready ported mount namespace into lineage kernel, but do in mind we are now on lineage kernel and I have no idea what is ported or not ported to current kernel. Curent kernel mean - lineage kernel. Can you try magisk on current kernel? I'm curently implemented aroma installer (supersu, selinux mode, opengapps)... aroma by default in next build! So if you have magisk ready I can add to the aroma!
[Xperia Z1 Compact Android Development] munjeni:
You just need anything on next boot bootable, it might be twrp, important is having next boot clean after unsucesfull boot, or last_kmsg is not exist! So you can boot twrp on next boot to get adb and dump /proc/last_kmsg (in case there was not a kernel crash you will not see last_kmsg, but let hope kernel crashed)!
[Xperia Z1 Compact Android Development] Maciek602:
I tried to boot new build. After like 10 min of boot screen I force turned off the phone and booted to TWRP and there is no last_kmsg only kmsg
[Xperia Z1 Compact Android Development] FaTlip82:
I can not also boot new build. I had TWRP 3.0.0-0.

Flashed TWRP 3.0.2-0 - no luck to boot.

Flashed TWRP 3.1.0-0 - no luck to boot.

Went back to previous last build. :)
[Xperia Z1 Compact Android Development] munjeni:
Can you try flash with my recovery? I'm recommending my recovery because in twrp log I can see some exit codes with 1 !
[Xperia Z1 Compact Android Development] munjeni:
Hmm seems kernel didn't crash, instead it have boot loop! Might be panel issue os something diferent, hmm have no idea by now. Do you see boot logo? And you see los boot animation? And you didn't installed any mod or any modification out of my instructions from site?
[Xperia Z1 Compact Android Development] zlata:
Same here. No mods. Panel is ao(something) . Nasty bootloop at lineage boot animation.
[Xperia Z1 Compact Android Development] munjeni:
Updated build, added aroma installer. I will download build and try, maybe archive is somehow corrupted on my remote server? Will let you know!
[Xperia Z1 Compact Android Development] vildevilde:
Just for information, I came from "LineageOS 12.1 for Z1c with current Sec.Patches", twrp 3.1.1-0 and installed this rom, (because I want a better camera). Everything went well, I have a replacement screen but don't know the name of that. I enabled microG (as I wrote on this forum before) to get my banking app working and so far all is good here.
[Xperia Z1 Compact Android Development] FaTlip82:
If you mean this twrp.img recovery from your lineage site, than i have tried it also and boot was not successful (means unendless boot).

But i haven't tried boot_cwm.img.

If you mean boot_cwm.img, i could try it.
[Xperia Z1 Compact Android Development] munjeni:
Hey got it now! You guys need to reflash apps_log.sin and everything will work ok! New build uses apps_log partition as a /misc and /persist so in case it is corrupt boot loop is expected! Let me know please! Please download new build (aroma), your choice which recovery from my site you can use, booth is ok!
[Xperia Z1 Compact Android Development] Maciek666:
I will tell you how I did it. You must of course have a real partition recovery, flash to partition recovery, these Z1C-twrp-3.0.2.img boot in recovery format data, wipe everything except the sd card. Then install rom, super su, gapps reboot and everything works as it should

I hope I helped.
[Xperia Z1 Compact Android Development] munjeni:
In case somebody have boot loop thats because apps_log partition is messet up with an old build, new build use now apps_log partition so everybody who have boot loop need to install apps_log.sin using flashtool, than hope boot loop will gone!
[Xperia Z1 Compact Android Development] FaTlip82:
Where can i get this apps_log.sin ?

I have flashed new aroma, but also stuck on boot logo.
[Xperia Z1 Compact Android Development] munjeni:
Extract D5503_apps_log.ftf from D5503_apps_log.rar attachment and flash it with flashtool, let me know please
[Xperia Z1 Compact Android Development] audioactive303:
Oh yes, oh yes - it works!! U r genius:good:

Cam focus much faster as stock, as you said. At the moment everything runs smooth and fast - just MTP failure at the first boot. Battery drain seems OK too in my a500fu.

Thank you :victory:
[Xperia Z1 Compact Android Development] munjeni:
Seems that mtp aplication is common isue on lineage, a lot of complains about that in google search, simple delete application MtpDocumentsProvider it will not affect anything mtp related and there will be no more anoying popups. I will remove it in next build!
[Xperia Z1 Compact Android Development] AreusShow:
cam work!!!

I'm sorry for my clumsiness,the camera's working after restarting the phone,and do not tell me how to set the boot file.img I'm going to re-flash the phone. There might be a problem due to the fact that I haven't installed this boot.img from your site.
[Xperia Z1 Compact Android Development] munjeni:
Simple folow every steps from my site and chance for bad flash is minimal!
[Xperia Z1 Compact Android Development] AreusShow:
boot.

Hello,again.Your website says that you need to install the file.But with the translator I do not really understand how to do it.Please tell me.
[Xperia Z1 Compact Android Development] munjeni:
Use fastboot:

fastboot flash boot boot_cwm.img

If you have question about fastboot please use search button!
[Xperia Z1 Compact Android Development] John.D..:
Hello! :) I recommended a Polarcell battery, good quality, like a stock
[Xperia Z1 Compact Android Development] munjeni:
Too late :( I'm waiting this one http://www.ebay.com/itm/282119430915 hope its ok, thanks anyway!
[Xperia Z1 Compact Android Development] AreusShow:
Fanks

Again, last question for you. I did everything exactly as in the instructions, I naked Android, as I realized that in one case I installed the system download and redunca, wape 2, 3 super su 4 opengaps, 5 system (lianege). If I did it right, the question of how to put the root and recovery?
[Xperia Z1 Compact Android Development] :
Steps which you done(3,4,5) is wrong! You must flash rom, than supersu, than gapps!

If I understand correclty, you need recovery right? Flash recovery to recovery partition:

fastboot flash recovery boot_cwm.img but before you do that make sure you have enabled recovery in bootloader see https://developer.sonymobile.com/20...for-a-range-of-unlocked-xperia-devices-video/
[Xperia Z1 Compact Android Development] MozkoZrout:
Hm this is interesting i used to have some random twrp recovery in the past and it installed through fastboot no problem but this image is different it only works for me if i use "flash boot" command and than i am able to flash the rom but the recovery will not stay there of course. And when i try to use "flash recovery" command it fails on sending recovery with "remote : size too large". Do you know what could that be ? Also i presume that to get maximum from this rom, you need to use this img specifically right ? because otherwise i would just use that working twrp if it makes no difference
[Xperia Z1 Compact Android Development] FaTlip82:
Hey Munjeni!

First of all i want to thank you, for that nice ROM you made. Very good job!!!

I have also same issue with the failure "Mtp-host has been terminated". So as you said before, i will delete "mtpdocuments" file.

Second issue wich i have, is that my Z1 Compact somehow restarts automatically. It happened twice for today. I do not know why actually.

I flashed this ROM with TWRP Teamwin 3.0.0.0 Recovery and not with CWM. Could be that a reason or it is does not matter, wich recovery to use?

Thanks again!
[Xperia Z1 Compact Android Development] audioactive303:
Hey! Boot_cwm.img is a boot Image, not for recovery partition.

Just flash the file:

fastboot flash boot boot_cwm.img

then reboot (it will boot into CWM automatically):

fastboot reboot

So you will be able to wipe the data & install the image / gapps / supersu

Cheers
[Xperia Z1 Compact Android Development] AreusShow:
proplem(

Okay)) I rolled back to the old android through the flystool.

Now I understand such my next steps:

1. Get into the recovery

2. Make a wipe.

3.Install Boot.img

4.Install the rum

5.install super su

6.Install the Gaps

I rightly understood?
[Xperia Z1 Compact Android Development] munjeni:
yes but skip step 3
[Xperia Z1 Compact Android Development] munjeni:
Doesn't matter probably. To be honest I never had reboots. Did you installed something? Maybe wifi isue, maybe mobile data isue? If you found causal please notify me!
[Xperia Z1 Compact Android Development] munjeni:
you can flash any recovery! Probably my recovery is soo big for recovery partition
[Xperia Z1 Compact Android Development] AreusShow:
Fanks

Your rom best!!!! Very cool
[Xperia Z1 Compact Android Development] munjeni:
You did it, thanks!
[Xperia Z1 Compact Android Development] FaTlip82:
I have installed only ROM and gapps from your website .

I have skipped boot_cwm.img (CWM Recovery?), cause i have TWRP Recovery.

So, i have those random reboots on my device, i do not know why. I had them also today, atleast 6 times for today. Wi-Fi, Mobile data, Camera, everything actually works fine, that is why i think your ROM is best.

Only reboots are an issue, maybe it is only my device. Or maybe should i try to flash boot_cwm.img from your webseite and than flash ROM and gapps?
[Xperia Z1 Compact Android Development] FaTlip82:
Ok, i will try it right now, will update you.
[Xperia Z1 Compact Android Development] BokeB:
Works :good:
[Xperia Z1 Compact Android Development] munjeni:
I'm pressed max 8 thanks per day so I may say thank you instead :) You had boot loop and this fixed isue?
[Xperia Z1 Compact Android Development] Maciek602:
For me it works! I have no idea how you figured it out, thanks :).
[Xperia Z1 Compact Android Development] BokeB:
Exactly.

Thank you :D
[Xperia Z1 Compact Android Development] munjeni:
Because boot logo and boot animation was worked which is indication that panel is ok so something diferent is up, than I recalled that maybe apps_log is corupt because many cm and aosp roms use apps_log diferent way and corupts it, our rom curently propertly use apps_log partition and didn't corupt right now, so everybody who have boot loop thats in most case because of corupted apps_log partition and need to reflash it. I'm glad that we fastly identified isue and fixed :) Enjoy until next build!
[Xperia Z1 Compact Android Development] FaTlip82:
Finaly managed how to flash that ftf file, that is why it is took so long to reply :)

Thank you, you helped me again and it works fine after new FTF flash. Boot Logo screen was passed successfuly, just need to wait a little bit longer.
[Xperia Z1 Compact Android Development] munjeni:
I'm glad! Do you like aroma?
[Xperia Z1 Compact Android Development] Frunzdoedel:
I thought i have unlimited thanks per xda app? They changed something.

After flashtool flashing everything went good.

Now I have my phone up to date with xposed, all my data intact.

Thank you for your efforts. ???
[Xperia Z1 Compact Android Development] sugnuf:
Dirty flash

Hello,

Thx again for this update! Im really happy You dont give up after last build system failure.

I just updated to new version, as always dirty flash and still all looks ok.

At last reboot to recovery work as expected for this device :)

And aroma is cool, You could add microG package as well. its smaller than opengapps: just microg + patcher for sig spoof - version 14.1 works ok for this rom: https://xdaforums.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928
[Xperia Z1 Compact Android Development] bananabytes:
Hi. I just wanted to say THANK YOU for this rom!! I have been on the old AOSPA for way too long. The camera wasn't great, there were lots of reboots, and so on...well with the Blueborne thing I decided I should see if there are better roms out there yet. I forgot what it's like to have a functional phone! No crashes, beautiful camera. Thank you so so much. Anyone looking to make the plunge don't be scared. It's like I have a new phone :)

I wanted to add that I did not follow the instructions exactly and it was fine. I have TWRP and real recovery. I just flashed the zips from there and everything was fine. TWRP didn't get overwritten or anything because I have real recovery. I also downloaded the latest superzu zip and opengapps myself. I don't see any bugs or crashes whatsover on this versio.
[Xperia Z1 Compact Android Development] dmgZero:
I tested Magisk with SELinux in Enforcing mode.

1. Fresh install. Only Magisk.

"SafetyNet check" passes 2 of 2:

ctsProfile - true

basicIntegrity - true

AndroidPay works, therefore MagiskHide works too. UPDATE: Don't work completely. View details

2. With the installation of any "Xposed framework (system/systemless)", the "SafetyNet check" passes 0 of 2:

ctsProfile - false

basicIntegrity - false

AndroidPay does not work.

3. When I installed the xposed module "No Device Checking", "SafetyNet check" passes 1 of 2:

ctsProfile - true

basicIntegrity - false

AndroidPay does not work.
[Xperia Z1 Compact Android Development] r100:
Awesome [MENTION=4120742]munjeni[/MENTION]! Thanks so much for making/updating this rom! A rock solid Android 7.1 with all security updates on our Z1C, who would've thought :D

A donation is coming your way soon ;)

The erratic switching between LTE/3G/etc still remains for me (edit: only when I'm travelling/on the move), should I do a full wipe and install fresh?
[Xperia Z1 Compact Android Development] jho55:
And stock camera quality! :)
[Xperia Z1 Compact Android Development] dikomel:
munjeni

Hi !

tell me please, network switching bug fixed in the latest build?
[Xperia Z1 Compact Android Development] munjeni:
I'm unsure since I don't use these stuffs, probably permissive selinux is need for that! Install permissive boot image trought aroma and probably it will work, but do in mind without selinux you're a lot unsecure.
[Xperia Z1 Compact Android Development] munjeni:
As I told earlier (yes I see randomly icon switches in status bar) but I didn't noticed any network problems. Do you have a problem with mobile data? Which one?
[Xperia Z1 Compact Android Development] munjeni:
Yes, and also persistent things is ok now! E.g. country code selection in wifi setting is persistent right now, probably many other too. I realy like this rom :)
[Xperia Z1 Compact Android Development] airman1951:
Well, I applied the ftf patch, but still the latest build refuses to boot. No replacement panel (I have the same as you), the only non original stuff I have is a replacement battery (Powercell). I came back to 0831 build that works like a charm.
[Xperia Z1 Compact Android Development] BokeB:
Did you checked "Wipe" in Flashtool?
[Xperia Z1 Compact Android Development] s.t.a.r.s:
could install both roms (22092017 and 22092017 aroma) without problems and also boot.

and restore data with twrp

real recovery twrp 3.0.2-0
[Xperia Z1 Compact Android Development] hackintosh5:
AndroidPay works?!?! Not for me...
[Xperia Z1 Compact Android Development] dmgZero:
1. I didn't install SuperSU

2. I used this file for installing Magisk through recovery

3. I installed Gapps.

4. That's all. Check if not so.

Does the startup process comes to scan of the credit card with the camera?
[Xperia Z1 Compact Android Development] munjeni:
How you aplied it? You need to flash that ftf using flashtool and make sure flashtool didn't give error. Than you need to flash our rom (make sure you use right recovery, and folow all recomended wipe). If you see boot logo and than boot animation than thats for sure a mean that something is not propertly installed, apps_log or rom. I see no reason why it didn't boot on your phone in that case. For me last build is apsolutly better than any before (because of the new kernel).
[Xperia Z1 Compact Android Development] hackintosh5:
Card scans fine, but says no HCE on NFC Hardware. Same symptoms as on the 1+1 bacon androidpay thread. I note there is an nfcnci driver on this ROM, so maybe the bacon fix will work...

Have you made an actual payment?
[Xperia Z1 Compact Android Development] dmgZero:
FMRadio does not work in last build.

LogCat in attach.
[Xperia Z1 Compact Android Development] hackintosh5:
Looks like a missing driver(?) as init is posting error on logcat:

01-13 09:37:40.706 root 0 0 E init : no such service 'fm_dl

Shows several times, followed by setup error from FMR
[Xperia Z1 Compact Android Development] dmgZero:
No.

With Magisk and Xposed AndroidPay says "AndroidPay can't be used on this device, beacuse is rooted etc.". Does not allow even scanning the card.

Without Xposed, only Magisk - startup process comes to scan of the credit card with the camera.
[Xperia Z1 Compact Android Development] hackintosh5:
Mine sets up fine, but no HCE, searching settings app shows nothing either...

Looks like an issue for the bugs list, [MENTION=4120742]munjeni[/MENTION]
[Xperia Z1 Compact Android Development] dmgZero:
Have FM working with you? Are there any errors?
[Xperia Z1 Compact Android Development] hackintosh5:
No computer handy for logcat, but same basic error on screen
[Xperia Z1 Compact Android Development] dmgZero:
I got the same message.

[IMG="1"]https://xdaforums.com/attachment.php?attachmentid=4283148&d=1506357405[/IMG]

AndroidPay does not work completely.:)

Checked phone through this application . Really problem in technologies.

You mean this thread about the patch?
[Xperia Z1 Compact Android Development] airman1951:
Sir, you got the point! For sure I'm not so skilled with flashtool. Finally I got the latest build to work. Thanks a lot.
[Xperia Z1 Compact Android Development] hahnjo:
[MENTION=4120742]munjeni[/MENTION] Could you add a link to the kernel sources in the first post? You mention that there are some fixes needed compared to the publicly available repository by SuperLamic...
[Xperia Z1 Compact Android Development] hackintosh5:
No FMRadio, same error as you. I'm thinking it could be SELinux because the root user is involved...
[Xperia Z1 Compact Android Development] hackintosh5:
Yes, that's the thread... Don't have a z1c running Sony stock, but since the nfcnci drivers were in the last build with the stock kernel (I checked) I would guess they're in Sony stock, and also the hardware...

---------- Post added at 08:20 AM ---------- Previous post was at 08:17 AM ----------

I've reflashed with SELinux permissive, and am going to install the patch after backuo

---------- Post added at 08:44 AM ---------- Previous post was at 08:20 AM ----------

EDIT: The patch didn't work :(
[Xperia Z1 Compact Android Development] vildevilde:
What's the difference between the last two versions except the aroma installer? Are there any reason for flashing the newest with aroma if I have the version before?
[Xperia Z1 Compact Android Development] hackintosh5:
You have option to flash permissive image or with gapps integrated. GApps is the main advantage
[Xperia Z1 Compact Android Development] vildevilde:
Thank you.

I don't use GApps so that's no use for me, the I keep this till next version is out :)
[Xperia Z1 Compact Android Development] ra9na:
Yesterday I installed this ROM. It runs awesome! Thanks for creating this! Now just we need a port of the stock Sony camera app. Is this already in the making?
[Xperia Z1 Compact Android Development] munjeni:
Is nfcnci realy working on this?
[Xperia Z1 Compact Android Development] munjeni:
Sorry, before I switched to new kernel I changed all fm related things to use thing without init fm script, but seems libfm is didn't recompiled after I changed TARGET_QCOM_NO_FM_FIRMWARE to true, I will need to make clean build, will try to fix something in that time e.g. ril.

https://github.com/SuperLamic/android_kernel_sony_msm8974

Read changelog please http://munjeni.myiphost.com/LineageOS_14.1
[Xperia Z1 Compact Android Development] hackintosh5:
No, that's the whole problem!:)

Now that we have kernel sources, can we have the system sources? That would help with NFC HCE analysis...
[Xperia Z1 Compact Android Development] munjeni:
As I know we have missing nci source code, don't know if we can get that anyway?
[Xperia Z1 Compact Android Development] munjeni:
To get fm working please extract libqcomfm_jni.so.zip from attachment and put lib libqcomfm_jni.so to rom or use adb and replace libqcomfm_jni.so in /system/lib until I make new build soon
[Xperia Z1 Compact Android Development] vildevilde:
@ munjeni I meant the difference between above builds, there are no changelog between them, but probably it's like you and somebody else wrote only the aroma installer that's new.
[Xperia Z1 Compact Android Development] munjeni:
You are right sorry, added aroma and something more which curently I didn't tracked and can't tell for sure, wait please new build!
[Xperia Z1 Compact Android Development] hackintosh5:
Deleted
[Xperia Z1 Compact Android Development] munjeni:
Can you tell me is there any rom having working hce? I'm curently researching, din't found any info. Looking into android source code, have only libnfc_hci (one which sony use on z1c) but there is no pn544 source code, so I'm believing we can't get it working! If I am wrong let me know.

This is a list of supported hardware:

#variables for NFC_NXP_CHIP_TYPE
PN547C2 := 1
PN548C2 := 2
PN551 := 3
NQ110 := $PN547C2
NQ120 := $PN547C2
NQ210 := $PN548C2
NQ220 := $PN548C2
#NXP PN547 Enable
ifeq ($(PN547C2),1)
D_CFLAGS += -DPN547C2=1
endif
ifeq ($(PN548C2),2)
D_CFLAGS += -DPN548C2=2
endif
ifeq ($(PN551),3)
D_CFLAGS += -DPN551=3
endif

I didn't see pn544. We curently using open source libnfc which have missing things! Thing which I need to know, is there any custom rom with working nfc hci??

Found some questions but without ansver https://community.nxp.com/thread/444772
[Xperia Z1 Compact Android Development] hackintosh5:
Correct if wrong, but can't we just use the precompiled code from Sony stock lollipop?

I'm working on decompressing the ftf file.