yashsingh1/xdaforums huggingface dataset:
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
Thanks! I backed it up when i was running MM, i do not suppose that matters?. The exploit came out just befote nougat reached me and I took a TA backup for safekeep. Time is also an issue these days so my phone is still virgin heh. But obviously that won't last. :)

Edit: that's how I thought you retained your key btw and why i wanted to know if it's ok to flash the device key extracted from my MM backup in nougat . Sorry I think I wrote that above no offense lol but Just to make sure my bad English is clear.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] NL_henk:
I got stuck... Hopefully someone has a solution?

My XC is on stock rom 34.2.A.0.266_R2C.

I'v unlocked the bootloader, flashed the TWRP-3.0.2-3-F5321.img and flashed boot.img (XC kernel version 1.03).

But my XC stuck in sony log screen when I reboot... I also can't get into the recovery-mode.

With androxyde I've made a backup and luckily I'm able to re-install it. So my phone is not bricked, but I also don't get root ;)

Anyone an idea how to flash this kernel? (after that I need to flash SuperSU to finally get root acces)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] bamsbamx:
It seems they have been pushing the source files to their archive but not GitHub lately. You can find the download link here https://developer.sony.com/file/download/open-source-archive-for-34-4-a-0-364/
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
kernel-copyleft would be easier to merge from as it provides full commit history. The source archive is difficult to work with.

It also looks like there have been changes to the init binary which have created a dependency on dm-verity so looks like this is not straight forward.

EDIT: Looks like kernel-copyleft has been updated
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] bamsbamx:
And isnt enough to just set CONFIG_DM_VERITY=n in config files???

EDIT: Tried compiling kernel with CONFIG_DM_VERITY=n and got a bootloop :silly::silly:
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] bamsbamx:
[MENTION=5749760]ggow[/MENTION] Hi ggow, I saw your recent commit to disable dm-verity as some kind of hack.

Just wanted to let you know there is a simpler way to disable it for /system partition, by just modifying the dtsi files. You can check it here: https://github.com/bamsbamx/BMSBMX_kernel-kugo/commit/7c7a2980602539e782e4f44f74892aba85558069
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
Thanks for that, I hadn't realised the system partition entry had been moved to the dtsi. Is it just me thinking, why the hell would moving an fstab entry to the dtsi files be a good idea?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Kianush:
Edit: Problem solved!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] NewBay_STanLey:
Hello, ggow. What APP can control the GPU voltage? Could you tell me?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mains75:
Hi! Can we wait for an Oreo Genesis Kernel?

Thanks.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Jility:
Should it work with OMNI Rom 7?

I can't get it to run.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
This is for stock roms only.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Alefello:
Hello

Are you planning to fix problems in v1.11 for Nougat? I know that Oreo has come, but I want stability, and I customized my XC a lot, so I'll not upgrade to Oreo soon and maybe not even later.

In v1.11 version I bound a bug too with exfat. It didn't recognize exfat formatted sdcards but only fat32 formatted ones. So I reverted to v1.07 that I red on the thread was the most stable and I'm really happy with it. Anyway I'm very attracted by the features of the newer versions.

Thank you
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Yoannjap:
I agree with him. I'd like the new feature of this brillant custom kernel for Nougat too ! Thanks for your work whatever
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
Sorry guys for not been around on this thread. Terribly busy at the moment. Just changed job, will be back soon with some updates when time allows.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Wxfdswxc:
No problems.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Alefello:
No problem. Thank you.

Inviato dal mio F5321 utilizzando Tapatalk
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] hnodet:
really need oreo supported kernel??

just updated to oreo and because of unlocked bootloader, camera and x-reality not working fine
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] antoniu200:
I have a question for you guys. How's the battery? Can anyone provide me with on-screen time or some GeekBench score? I'm planning to get this device soon and I would like to know how would the battery last.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] malcolmx.ws:
hey,

I got x compact smartfon, Kugo F5321/ and have installed XC genesis kernel v1.06. Installed it via TWRP (version 3.1) and that works fine.

Whenever I want to install zips with versions above 1.06 (tried 1.11, 1.09, 1.07) the phone gets stuck on bootloader. When I flash XC 1.06 back on everything works fine - anybody has an idea why is this happening ?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
The version you flash must correspond with the firmware version you use. You can't just flash any kernel.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] malcolmx.ws:
do you mean 34.3.A.0.206 ?

andoid 7.1.1 ? currently have modified kernel from the same author as one from the topic. It is 3.10.95-Genesis-Kernel-1.05ggow@worstation #1
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] d_fens:
[MENTION=5749760]ggow[/MENTION] any chance to get a kernel update? or is the development discontinued?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
I really haven't got the time at the moment. Will let you guys know when there is time to prepare a new version.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ŽeljkoLončar:
Can I flash this on Marshmallow? I forgot about DM verity and flashed TWRP, and now my phone can't boot.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] levone1:
Maybe

https://xdaforums.com/x-compact/development/advanced-stock-kernel-twrp-xperia-x-t3464685 also I think rootkernel should work...
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] tanfidzularus:
Guys please help.

Need info, Will it work with 34.2.B.0.290 ? This is docomo version
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] harryharryharry:
[MENTION=5749760]ggow[/MENTION] Does your kernel support all features stock kernel does? I'm trying to use your kernel to try to determine some QC3.0 charging differences between stock rom and omnirom because I can easily get root with your kernel, but I was wondering if I'm really testing stock rom if I use your kernel, or if some features - like QC3.0 charging - might be limited ?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
AFAIK, yes the kernel is stock with some Sony security stuff turned off, then features added on top.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] harryharryharry:
Ok thanks!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] rizky_zulfikar:
is that v11 is only for 7.1 or maybe it canbe flash on 7.0??
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] tanfidzularus:
Guys need info. Will it work with docomo version?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] rizky_zulfikar:
will end with bootloop :p
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] kalbater:
i have flash my x comptact to android 8.0.0 (Stock Rom)

build 34.4.A.2.118

my bootloader is open

What Kernel should i use and what version of TWRP? to have my phone full rooted and possible to make full backups and call recordings and this all things...

thx
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Black Swift:
I am using X Compact with Stock Oreo 34.4.A.2.118, magisk with DRM patch, TWRP, and some modules, will this kernel work on my device? how can i back up my current kernel in case things go wrong?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] chemicalbuz:
Sorry to bother you on this dead thread, just wanna know if this kernel supports OTG ethernet and mirrorlink. I'm currently on last 8.0 but i'm willing to downgrade in case, is last available nougat firmware compatible? Thanks in advance
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
This is a flashable zip package. It is not enough to just flash the boot.img via TWRP.

Follow the instructions in the OP which say to flash the .zip package then flash supersu if required.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Ikzy:
[MENTION=5749760]ggow[/MENTION], could you update the changelog in the 2nd post as well. Quicker to see what's changing per version. thanks for the kernel btw, works good afaik :)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] NL_henk:
Ok, thanks! I have flashed the zip package and after that flashed supersu via TWRP without any errors :)

Now I rebooted my device, but when I start Titanium it stuck on "detecting SU and busybox". It's the first time I'm unrooting a device, so it's quite new to me.

Do I have to unlock or install something else? Btw, where/how can I check whether my device is rooted or not?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
I believe that you mean rooting and not unrooting. Anyway searching for root check on play store is a good place to start. ;) can't help you with titanium backup maybe you need to install busybox although one should think it would tell you that. You can also download a terminal open it and type the command su and press return, and it should prompt you to give access. Be careful. Do not flash so called super lagfree/unleash beast etc kinda packages they are for old Android versions and the remixes of them by so called 'devs' are a mishmash of c.... that is more harmful than good. Just a fair warning since this is your first rooted device.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] NL_henk:
True ;)

Problem solved :) I've flashed another version of Supersu and now I've root access!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
Heys,

I promised some feedback, firstly the unlock, flash kernel/supersu, and flash of devicekey.ftf all went smooth, I did not bother flash twrp I just fastbooted it. As you say for updates flashfire seems to be a easier approach.

The kernel is absolutely great, very stable and smooth sailing. =) I use kernel adiutor-mod and all the options are available, I can see big/small cluster, every single core, its freq times/adjustment, the adreno idler and its settings is available plus all the other stuff. It simply rocks!

Thank you [MENTION=5749760]ggow[/MENTION] and all those who contributed! keep up the great work.

I think it deserves a review too. =)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
Thanks for the feedback :)

Feeling unwell at the moment, when feeling better will resume work on it.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
:( sorry to hear, get under the blankets, empty your mind for a bit and get well mate. no need to hurry anything at all.

All the best ..tuxen
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] gizzistar:
works fine!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] tempurastyle:
I have a newbie question: does this Kernel fix the drm stuff and camera quality after bootloader unlock?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
Yes it does. You are encouraged to backup your TA partition first though, look for the 'dirty cow exploit' that way you can go back to stock. The exploit only works on MM, so it is your decision if you want to downgrade or perhaps you already backed it up. If you do not care about it, then again yes you can just flash this kernel and all the Sony features (camera, X reality, etc, etc) will be enabled.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] tempurastyle:
Is it possible to go back to MM after flashing stock Nougat?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
DRM

Therefore yes, DRM is included.

---------- Post added at 10:19 ---------- Previous post was at 10:07 ----------

Yes, with Flashtool. Just download MM firmware and flash it in Flashtool. Backup your TA, then can flash Nougat back. Use the latest version of Flashtool, I had difficulties flashing Nougat with previous release of Flashtool, with the latest everything works just fine.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
Hi, I have troubles to flash devicekey.ftf I created with https://xdaforums.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605 . The problem is, that this ftf can not be flashed in older Flashtool (Bundle invalid) or in newest Flashtool (FSC not found, but FSC mandatory). Even when I copy the DK.ta to stock FTF, it will not be flashed, because DK.ta is not listed in FSC. Any clue how do I actually flash the devicekey.ftf?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
In the latest version of flash tool when you flash the dk.ftf it should prompt you something like 'a default.fsc exist do you want to use it?' say yes and should go it through it and flash the device key in the TA partition. Have patience when it opens and closes the different parts of it it can take a minute or two.

Try uninstall flash tool and delete c:\users\your username\.flashtool in win 10 or the equivalent in win 7/xp and reinstall the latest version again.

---------- Post added at 11:53 AM ---------- Previous post was at 11:37 AM ----------

I suppose you used the tool in rootkernel flash_dk.cmd like this flash_dk TAbackup.img DK.ftf then flash DK.ftf it produces. I write this because you write about copying DK.ta.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
Yes, I tried to flash DK.ftf in Flashtool, when it failed, I extracted DK.ta from ftf and tried to copy it over to another Stock ftf. Anyway, the latest Flashtool asks nothing about default fsc, I remember it asked something like this when I installed it new first time. I will try to remove it completely if it helps.

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

Somehow worked removing Flashtool and .flahtool user folder and re-installing reverting to version 0.9.22.3 . But still unsure that the DK.ta from ftf file got actually flashed.

Thanks
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
Ah. OK. It should ask you mine does.

---------- Post added at 12:20 PM ---------- Previous post was at 12:15 PM ----------

Great! NP. :)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
Ok, it "flashed" something, however I doubt it flashed DK.ta into the phone. It asked if I want to use default template, I confirmed by YES. However, later it prompted that DK.ta is not included in default.fsc and it will be skipped, if I want to continue. Then it waited like a minute or so, processed the whole thing and closed. However, there is no trace in log, that it actually flashed DK.ta. Also when I restart the phone, the FIDO_KEYS remain Not provisioned.

1. How do I know, that Flashtool actually written the device key from DK.ftf?

2. Do I get it right, that after flashing my device key, the FIDO_KEYS should be provisioned OK?

3. Do I need to alter the Genesis kernel in any way, or is the included DRM patch working with alternate location for device key?

Thanks

Mystery solved:

Wrong :) You should say NO

Then DK.ta was flashed and after reboot FIDO_KEYS are provisioned.

Thank you for your help!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
oh sorry I realize mine are not provisioned too, I am an idiot. now can you help me where did you extract dk.ta from?

---------- Post added at 01:00 PM ---------- Previous post was at 12:43 PM ----------

skip that, I am making myself even more of an idiot seems I have the same problem as you had when I say no..

21/057/2017 12:57:31 - INFO - No flash script found.

21/057/2017 12:57:31 - INFO - Flash script is mandatory. Closing session

21/057/2017 12:57:31 - INFO - Ending flash session

EDIT:

Just saw there is a even newer version of flashtool out.. damn that slow upload.to thingy

* 0.9.23.1

Changed fsc search logic

---------- Post added at 01:30 PM ---------- Previous post was at 01:00 PM ----------

to my excuse I thought it flashed it here in the log when I said yes, beause it failed with no:

14/040/2017 23:40:25 - INFO - Opening TA partition 2

14/040/2017 23:40:25 - INFO - Writing TA unit 00002725. Value : 32 30 31 37 2D 30 31 2D 31 34 20 32 33 3A 34 30 3A 32 35 00

14/040/2017 23:40:25 - INFO - Writing TA unit 00002774. Value : 00

14/040/2017 23:40:25 - INFO - Closing TA partition

can not believe I did not check the service menu before you brought it up. lol

anyway I'll see what the new version does.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
Little recap

Here is little recap how I got latest Nougat, root and DRM fix incl. FIDO_KEYS. Just for quick reference. None of this is my invention, all credit goes to respective inventors and developers of tools etc.:

- install Flashtool the latest(!) version - currently 0.9.23.2

- install drivers from Flashtool, you may need to disable Driver signature verification in Windows

- using XperiFirm function in Flashtool, download MM firmware. I used 34.1.A.3.49 SG firmware.

- Flash the firmware, restart the phone, enable USB Debugging and Unknown Sources

- Download DirtyCow TA Backup tool and run it

- Save the resulting TA_F5321_BH***********.img somewhere safe, that's the TA partition

- Flash back latest 292 Nougat firmware

- Open your bootloader

- Download TWRP from AndroPlus Advanced Stock kernel thread (TWRP-3.0.2-3-F5321)

- Download the Genesis Kernel zip file and extract boot.img from it

- Copy the kernel ZIP file in your SDCard and put there also SuperSU v.2.79

- Install Minimal Fastboot and ADB

- Again enable USB Debugging on your (now Nougat) phone

- in Fastboot mode, flash kernel (fastboot flash boot boot.img) and recovery (fastboot flash recovery TWRP-3.0.2-3-F5321.img)

- switch your phone OFF

- switch phone on, holding the VolDown key until recovery appears

- install kernel zip file from SDCard, switch phone OFF

- again enter recovery, install SuperSU and switch your phone off

- create TA_DK.ftf using Tool from Sony Z5 thread https://xdaforums.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605

- Flash this TA_DK.ftf using Flashtool. However, we found (thanks [MENTION=5908784]realtuxen[/MENTION] ) that latest version (0.9.23.2 and 0.9.23.1) have a weird problem flashing ftf without fsc. So you need to UNINSTALL Flashtool, delete original installation folder and user folder (C:\Flashtool and C:\Users\$username$\.flashTool) and install version 0.9.22.3, otherwise you will NOT be able to flash device keys. Link to 0.9.22.3 zipped with password "flashtool" , When Flashtool asks, if you want to use default fsc, click on NO

- disconnect and start your phone.

At this moment you should have unlocked latest Nougat with Genesis kernel and root. Verify that your DRM keys are back by entering service menu (*#*#7378423#*#*) and go to Service Tests / Security. Keys should be OK and FIDO_KEYS provisioned.

Please note, that TWRP 3.0.2 provided by [MENTION=5169444]AndroPlus[/MENTION] from his kernel thread DOES NOT support encryption on Nougat. It supports encryption on MM, but if you encrypt your Nougat rooted device, you will not be able to access /data partition and therefore any zip needing to access data will fail.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Micka84:
Thank you for this useful post ondrejvaroscak

But the link to the z5 thread isn't working. 404...
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Ikzy:
Here you go: https://xdaforums.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
Delete. Apparently it's not my day today. Now flashtool doesn't even prompt, just fails with no fsc present
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
It was same by me, also did not asked. What I did was I uninstalled Flashtool, deleted old Flashtool install folder (C:\Flashtool), deleted Flashtool User Folder (C:\Users\Username\.flashtool) and reinstalled FlashTool version 0.9.22.3 because in my case version 0.9.23.1 and 0.9.23.2 was not working either.

Here is a link to 0.9.22.3 version on my Google Drive, password for ZIP file is "flashtool"
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
Thank you so much man!

I had the old flashtool lying in my download folder, but without your help I would have never thought trying an old(er) version.

v.0.9.22.3 flashed my TA right away when I said no and my fido keys are now provisioned! How freaking weird that it works with a older version there must be a bug in the new nougat compatible version. anyway you made my day I also think [MENTION=5749760]ggow[/MENTION] might like to know this from reading an older post.

Again thank you so much! :)

EDIT:

so for the second last step in your guide to work, we actually need to uninstall the nougat compatible flashtool version (v0.9.23 and up), delete the userdata folder and install v.0.9.22.3 for now. heh
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
Guide updated :D
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] DannyWilde:
Is Qnovo still working?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
I do not have a qnovo fast charger. But I do not see why not, as it is built on stock kernel and there are not references to touching it (qnovo) on GitHub.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
TWRP 3.0.2 on Nougat

Please note, that TWRP 3.0.2 used to flash this Genesis kernel, provided by [MENTION=5169444]AndroPlus[/MENTION] and from his kernel thread DOES NOT support encryption on Nougat. It supports encryption on MM, but if you encrypt your Nougat rooted device, you will not be able to access /data partition and therefore any zip needing to access data will fail.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] DannyWilde:
There is no need to have a special charger. It works with stock charger.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
Yes of course the adaptive qnovo charging still works.

This stuff: https://qnovo.com/technology/
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Kianush:
I noticed that it's asking me for password but I havent set any!

also when I go to security settings - Encrypt device : Encrypted ! and I cant even decrypt it so what should I do to be able to use twrp?!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
A factory reset with this kernel should clear the encryption. You do no need to unencrypt it to flash the kernel and supersu BTW just put them on a SD card cancel when it asks for a password, allow system r/w and choose SD card as storage selection (I can't quite remember the correct phrase) . I can look at it when I get back in 2 hours time if you have not figured it out or another kind soul has helped you.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Kianush:
then Im gonna pass

I already have so much data on my phone

this leads me to question, what's data partition needed for anyway? for flashable zips I mean
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
Your apps and data, it will factory reset anyway when you unlock bootloader?! Did you forget that? How did you flash twrp? Get over it how hard is it to backup through pc companion or your Google account.

Not many flashable zips modify data it's not needed for most stuff but again you will have to factory reset once anyway when unlocking bl.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Kianush:
Yeah I know that but the problem is I backed up 25GBs of data and app before unlocking and after that I restored them and it took a serious amount of time so I'll just let a few days pass enjoying root:laugh: