yashsingh1/xdaforums huggingface dataset:
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
Release / Change Log (kugo,suzu)

16 January 2018

- Version 1.11

- Add wakelock blocker driver

- Add ironactive cpu governor

- Add smartmax cpu governor

- Add smartass2 cpu governor

- Add barry allen cpu governor

- Add bioshock cpu governor

- Add cafactive cpu governor

- Add zzmoove cpu governor

- Add yanactive cpu governor

- Added dynamic fsync (currently disabled / doesn't work)

13 January 2018

- Version 1.10

- suzu only

- Import clean ramdisk

- Add .gitignore files

- Import genesis kernel changes for ramdisk

- Disable sony_ric service

- Disable dm-verity

11 January 2018

- Version 1.09

- Add KCAL for mdss post processing support

- Slightly undervolt CPU and GPU

- Add voltage control for GPU

- Add voltage control for CPU

- Add backlight dimmer option

- Enable all cpu cores for device boot-up

- Force selinux permissive

- Enable MirrorLink support for kugo

- Merge each upstream linux point release up to v3.10.104

01 January 2018

- Version 1.08

- Initial release for suzu device

09 December 2017

- Version 1.07

- Merged up to 34.3.A.0.252 of Sony Upstream

27 August 2017

- Version 1.06

- Merged up to 34.3.A.0.217 of Sony upstream

- Lowered the brightness of boot screen and boot animation

26 June 2017

- Genesis Kernel v1.05

- For Android 7.1.1+ (34.3.A.0.xxx)

- Retrospective merge into 7.0.0 branch of sony open source:

34.2.A.0333

34.2.A.2.47

34.2.A.2.69

- Created new 7.1.1 branch

- Merge into 7.1.1 branch sony open source:

34.3.A.0.194

03 March 2017

- Version 1.04

- Merged up to 34.2.A.0.311 of Sony upstream

- Merge up to 3.10.95 of Linux upstream

05 January 2017

- Version 1.03

- Added Adreno Idler by arter97

- Add BFQ IO scheduler

- Add FIOPS IO scheduler

- Add Blu Active CPU scheduler

- Add init.d support (untested)

- Disable forced encryption of /userdata

31 December 2016

- Version 1.02

- Download from Dropbox - link is on the OP

- Major changes are:

- Improvements to ondemand and interactive govenor

- Added impulse govenor

- Added despair govenor

- Added conservative govenor

24 December 2016

- Initial Release v1.01
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Kianush:
Hey man thank you

please give some more summery on what roms it will work on

btw, waiting eagerly for oc and uc...
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
thanks man.. that's very cool. keep up the awesome work.

2Ghz limit/possibility for the 2xa72 would be nice since they are rated 2Ghz.

I guess it runs on any current nougat rom since .266 is the only version out yet?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
It should work on any Sony stock ROM, android 7.0
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] bromhexine:
Screen mirroring working with this kernel? I've no backup of my keyz
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
I just saw a bug in the installer script which I have just fixed. I missed it before because my phone was working and already had the files loaded in the correct place from when I was putting the initial version together.

I have version 1.02 ready to upload now, providing the XDA uploader is working.

EDIT: I have removed the v1.01 and tried to upload the new version but it never attaches after verifying the MD5. [MENTION=4036181]Darth[/MENTION], could you help me or know someone that can?

EDIT2: Seems to be a more general issue with uploading screenshots and files and is been worked on so not to worry, will wait until it's fixed
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Kianush:
Why not uploading on a personal server that is dedicatet to your files only?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ammarr:
Do you know if there were any updates to the stock kernel between .266 and .273 that is being rolled out to some devices now?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
I made a request to androidfilehost a couple of weeks ago for the XC to be added so will switch over when it's available. I don't have a personal server.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
There are no changes between the two versions to the kernel.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
New Build is Up

- Dated 31 December 2016

- Version 1.02

- Download from Dropbox - link is on the OP

- Major changes are:

- Improvements to ondemand and interactive govenor

- Added impulse govenor

- Added despair govenor

- Added conservative govenor

- Lots of other changes - please have a look at my github for details
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Kianush:
no OC yet?!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] spinhbar:
Greetings everyone

I have installed the K.E.M. ROM from XDA, but i didn't backup DRM keys first, so i lost all nice cam features.

Is it possible to flash this kernel and have those features back?

If so, do i have to wipe phone first, or it can be done while retaining all my data?

Thanks in advance
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
You should get back some of the functionality lost if you flash this kernel. Try it and post a screenshot of the Service Menu screen that shows which keys are active and OK.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] spinhbar:
thanks for the answer.

what i am most interested in is the cam's night shot post-proc algorithms that remove greenish noise. do u know if that will be corrected?

also can i do it without losing my data?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
You won't lose your data.

It should restore the camera processing algorithms, I haven't tested this as I have restored my device key after backing up my ta partition.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] spinhbar:
thanx mate, cam's post-proc returned successfully!

so was trackid, x-reality, etc.

i'm sending you the service screenshot for feedback.

do you think i have restored all the features i had lost?

EDIT: after flashing this kernel sdcard was encrypted, so i cannot access my data from twrp (asks for a password) to reflash superuser. any advice pls??
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
Good to hear you have the camera back.

I'll check my boot.img to check if encryption is forced or not. My phone is encrypted also so my guess is it's forcing encryption. Not sure how to decrypt SD card. Maybe someone else can advise on this.

We might also be able to build twrp to work with encrypted SD card.

Edit: just checked - force encrypt was enabled. I'll turn it off for the next build.

Also, I use FlashFire instead of twrp, seems to work great.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] spinhbar:
thanx for your efforts.

if i understand correctly (i'm kinda noob) i will have to wait for your updated kernel that will not do force-encryption, in order to be able to use TWRP and flash SU, right?

do you have an aprox ETA for this pls?

PS: TWRP asks for a password, which i was not able to determine. it's not the pin i set while setup...
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] WanderMax:
OK. I will do it.

I just want to know reason/solution for Recovery can not mount the system partition. --> maybe the custom kernel with RIC/DM disable.

Any recommended Recovery for 6.01 stock ROM?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
That's odd it shouldn't really matter what recovery the only thing that should be different is whether it will support encryption of /data. I do see others with the same problem in the androplus kernel thread. And I also am pretty sure I have seen people mention that particular version having trouble with /system. Personally I have not seen it.

You can try the one from oshmoun (I would recommend this one) or the new 3.1.0 from bambamx if you feel frisky :) neither will support encryption of /data but it is not needed to install supersu just make sure you get the latest supersu version 2.79 put it on a external sd card, flash, and do not delete cache when rebooting it will use this partition to install itself systemless even though /data is encrypted.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] WanderMax:
OK.

Does the encryption issue affect flash xposed/supersu into system? I need make DM-Verify off first.

Thanks.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
Oh yeah if you want to modify system you need to make a boot.img with dm and ric disabled that's why I redirected you to the rootkernel tool. Sorry I missed this but thought you actually read it, if you did you would know that sony ric disables mount of /system

But what version of supersu did you use. if not 2.79 try again as it should not touch /system for su.

I suggest you make a boot.img with rootkernel disabling what you need and adding drmfix. it's super simple. All is in that thread this is genesis kernel thread.

---------- Post added at 13:33 ---------- Previous post was at 13:27 ----------

For xposed I am pretty sure it installs to system only but I do not use it, I do not think it flashes anything to encrypted /data so it should be fine.

You need to make a boot.img with at least dm verity and sony ric disabled. If I sounded like a old grumpy man, it's because I am. Nothing to do with you I sincerely apologise ;)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] WanderMax:
Great.

I will backup my TA for DRM fix with Dirtycow-based TA Dumper.

Now I know that RIC disables mount of /system, DM-Verify disables boot from modified system. If not flash custom kernel first, recovery tool can't mount /system, so can't flash into /system.

And encryption in the system-security setting will only encrypt /data partition, this partition seems no use for flash something, right?

Maybe it's the steps:

1. backup TA (optional)

2. unlock BL

3. install recovery --> rec.img

4. create custom kernel with dm and ric disabled, or with DRM-fix --> boot.img

5. flash custom kernel --> boot.img

6. flash xposed/supersu

7. restore TA (optional)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
You are correct :) when making the custom kernel say yes to these three things.

The reason I recommend you to backup is fot example a new trick that can mount the ta.img and the phone will think and operate completely as the bootloader was never unlocked only it is, and can be rooted and so forth. You can use this as an alternative to the above method to make it even more of a jungle, lol

You might have bumped into it, it's called TA_poc and it works very much like rootkernel and can also disable dm, ric, etc.

Anyway my point is only that new development making use of TA backup to circumvent things continue to pop up. But it is ofcause your decision :)

---------- Post added at 15:05 ---------- Previous post was at 14:51 ----------

The thing I don't get though is that dm and ric should be disabled in recovery and it's only when you try to boot afterwards you will get a boot loop because of dm in kernel (recovery uses its own)

Anyway they need to be disabled in any case, if recovery still has problems with /system try oshmoun's. The guys in the rootkernel thread knows much more than me. Let's be nice to ggow.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] WanderMax:
OK.

you mean flash DK.ftf to restore my TA ?

thanks..
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
No no. I have a habit of overloading people with info sorry.

There are being developed methods to make use of the TA image to make a boot.img ie. alternative to rootkernel tool. (TA poc) other interesting things might also come up.

My point is that it is not always fun being confined because one said screw the backup.

Now lets be nice to ggow and others (who might subscribe) for discussion on the genesis kernel. There are so many posts in here not concerning genesis kernel or development at all, and it's no excuse for making more unrelated posts. Me included. :o

Focus on the list, if recovery still have trouble try oshmoun's I linked to earlier (something with recovery seems off; see last paragraph/edit of post #186, and if you look around other post also say the androplus one is behaving oddly with system). You can pm me if you get stuck but I might not be the best help. I suggest you utilise the forum and read around/search instead (I guarantee all the info is here) and ask the correct places or open your own thread.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] WanderMax:
as no official support by TWRP, can the recovery tool boot from FOTAkernel? or just one-time use.

Thanks.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Thesaints13:
Compatible firmawares?

Is the 34.2.A.2.69 compatible? or if I want to my camera functions back I must to install the 34.2.A.0.311?

Thanks
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
34.2.A.2.69 should work just fine with this kernel.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Thesaints13:
Hi GGow, thanks for your answer, anyway I did all that Aachen says in your 60 post... but I didn't have all camera functions and also the last part of the post "Service Tests / Security, Keys should be OK and FIDO_KEYS provisioned." in my case said "Not provisioned". Maybe the reason could be that I don't have a backup of TA partitions, basically I did a mistake and lost it. Is this the reason why I don't have all camera function? do you know if exist some Mod's camera or someway to recover the camera functions because honestly the only reason to have the original stock is the camera, all other functions work perfectly even without the TA keys. Thanks for your help.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
- You should use the file named "XC-GenesisKernel-v1.04.zip" - is this the one you used?

- I also just realised the file with the postfix *drm in the name should be *nodrmfix

- You don't need the original TA.img to re-enable camera function
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Pinktank:
I'm a little confused (I'm thinking of picking up an x compact). If I root, and use this kernel, do I get to keep camera quality the same as stock? (is tehre any other way?)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Thesaints13:
Hi, thanks again for your replay and I'm sorry for the delay in my answer but I did all again, and I confirm to you that I used the "XC-GenesisKernel-v1.04.zip" not the other one that you did for the people that have TA keys (I saw in some post that there is a "program" that allow to mount virtually the TA partition to simulate that the phone is locked but indeed not ), here attached you have the picture of the status of my phone, you could see that the firmware is the right one but the pictures of the camera is still very bad (I have a startac with better pictures :) ), please could you help me or tell me what was my mistake in the installation.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Thesaints13:
In order to keep the camera quality (and other functions) the only important thing is have a backup of TA partitions where you have the DRM keys of Sony, with this you are be able to root the phone and keep all functions running. (Or at least return the phone to original stage).
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] bamsbamx:
[MENTION=5749760]ggow[/MENTION] Hi, I am trying to build kernel straight from your repo but somehow it doesn't boot and gets stuck in SONY logo.

I was using the script build_it4_kugo.sh with the same toolchain and the same ramdisk and the mkboot command from here: https://github.com/xiaolu/mkbootimg_tools/blob/master/mkboot

The only difference is that I am using the boot.img file for flashing via flashtool instead the .zip flashable file

Any idea?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
Which branch are you building?

I just double checked and all my changes are pushed and in sync with github.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] bamsbamx:
I am building android-7.0.0 branch and the build seems to be successful. I am trying to find a way to log the kernel boot but am not able to get it. Please, could you try to build and boot it yourself just to check it?

Not sure if the problem could be caused by mkbootimg or mkboot :confused:

EDIT: Using Ubuntu 16.04.2 LTS Xenial on a X64 machine
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
Mkbootimg won't work, it needs to be patched for our device. I switched to using mkbootimg as a temporary workaround so it should work.

It build and works on my system from a fresh system. I recently just changed my desktop so had to pull it down from github again. Maybe you are using different mkbootimg and mkboot. Will take a look at home this evening and let you know.

Its on my list to either patch mkbootimg or switch exclusively to mkboot when I have some time.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] bamsbamx:
Nice then, I see you are currently using mkbootimg and then mkboot so, could you share those files or any link so I can compile pack the kernel properly? I was using mkbootimg from AOSP (https://github.com/android/platform_system_core/blob/master/mkbootimg/mkbootimg) and mkboot from https://github.com/xiaolu/mkbootimg_tools

Also on the SONY Xperia open devices site the recommend to use mkqcdtbootimg instead for Xperia Z1 and later devices. See here: https://developer.sonymobile.com/op...h-a-linux-kernel-from-sony-copyleft-archives/

Wouldnt just mkqcdtbootimg work?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
Thanks I'll check if mkqcdtbootimg works later. I didn't know about it.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] bamsbamx:
I can confirm mkqcdtbootimg is working. Managed to boot a kernel built by myself for the first time :victory:

The problem I had was the ramdisk. Somehow it wasnt correctly gunzipped/extracted (its size was half the one of the official kernel). So I extracted the ramdisk from official sony kernel and packed into the kernel with the mkqcdtbootimg tool
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
Cool :highfive:

Thanks for letting me know
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] bamsbamx:
One last question, though.

i have been trying to extract the ramdisk from FTF files, but none of them seem to be working. in addition, the only ramdisk I manage to boot is the one I extracted by doing

dd if=/dev/block/mmcblk0p33 of=/sdcard/boot.img

You know how to extract the ramdisk from an FTF properly? These are the steps I am following:

Open FTF file as .zip file

Extract kernel.sin file

Flashtool -> Tools -> Sin editor -> Extract data -> kernel.elf

Then extract ramdisk from kernel.elf

ANY tool I use to extract ramdisk from kernel.elf results in a (wrong?) ramdisk
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Supremad:
I tried to follow these steps, I managed to get a TA backup but after flashing last firmware (34.2.A.2.69) and genesis kernel (+TWRP-3.0.2-3/SuperSU-v2.82), I got a error saying that my system is corrupted.

Now my phone won't boot at all and I don't know how to restore it...

Did I bricked it ?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] WanderMax:
if not do drm-fix via rootkernel tools, and flash dk.ftf with old flashtool, the result is" FIDO KEYS NOT PROVISONED PROVISION FAILED"

any way to fix this?[
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
I am not sure if latest Genesis kernel works with .69 firmware. There is now much better way to get root with DRM, https://xdaforums.com/x-compact/how-to/android-pay-safety-net-rooted-unlocked-t3610342

If you do not want/need Magisk, then skip Magisk and use SuperSU or Superuser or whatever you may prefer. I use Magisk because it provides open-source root (as opposite to now chinese SuperSU) and has MagiskHide to allow SafetyNet tests to pass. I do not use Magisk modules, because I doubt the maturity of that, had one module forcing me to re-flash my phone completely.

As for bricked phone, no you did not brick it in hard-way, just flash the stock kernel back either in Fastboot or in Flashtool.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
I can confirm that genesis kernel works with the .69 firmware.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Wxfdswxc:
Hi there, sorry I'm a bit confused, so much infos here…

I got a Xperia X Compact and I lost the DRM key by unlocking the bootloader, I'm on Nougat 7.0, firmware .69.

If I want to get the camera back, I need to

- flash twrp_6.0.img (XC/KUGO/F5321 TWRP BUILDS)

- from TWRP recovery, flash the XC-GenesisKernel-v1.04.zip

and that's it? No need to flash a new rom? (I would like to avoid reinstalling everything).

From there can I flash SuperSU and root the phone, again without reinstalling everything?

Thanks.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Supremad:
I finally get root on Nougat (34.2.A.2.69) with DRM using Magisk and Android Pay (Safety Net), but I just figured out that Xposed isn't available for Nougat (and so XPrivacy... ).

@ondrejvaroscak Thank you a lot for pointing me this thread.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
As for Xposed, I suppose it is dead project... Also beware that few Magisk modules made my phone crippled and had to REFLASH whole system, not just remove Magisk.. so use carefully and backup!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Wxfdswxc:
To reply to my own question, it worked as expected. Nice!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Ikzy:
This kernel does Not work with Nougat 7.1.1
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Kianush:
[MENTION=5749760]ggow[/MENTION] hey man, would you please inform us if you would be working on a kernel for 7.1.1 update or not?!

thanks
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Kianush:
Deleted - Duplicate
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
I didn't know we had 7.1.1 for our phone. I'll take a look this week ?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
New Build is Up

- Dated 26 June 2017

- Genesis Kernel v1.05

- For Android 7.1.1+ (34.3.A.0.xxx)

- Retrospective merge into 7.0.0 branch of sony open source:

34.2.A.0333

34.2.A.2.47

34.2.A.2.69

- Created new 7.1.1 branch

- Merge into 7.1.1 branch sony open source:

34.3.A.0.194

- Detailed changes
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Wxfdswxc:
Great, thanks!

So, what would be the proper process if I want to flash the official F5321_34.3.A.0.194_UK.ftf file?

Do I have to simply flash the new kernel after the ftf file in recovery?

Thanks.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
Yes flash the the rom, then kernel followed by Magisk or SuperSU if you want root access
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Wxfdswxc:
Worked like a charm, thanks!

(I had to reflash the TWRP recovery though, is it normal?)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
:good:

It's normal but can be avoided. When flashing the FTF in flashtool, in the exclude section you can select the 'FOTAkernel' partition and this will avoid TWRP been overwritten.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Wxfdswxc:
Oh ok, thanks!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Kianush:
whats the difference between nodrm and normal one?!

and how to restore my ta backup?!

I forgot these things...
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
The nodrm version does not include the drm fix. This version can be used with ta_poc

The standard version does include the drmfix which can be used in any case.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Kianush:
Im sorry Im asking these noobish questions today, if you remember some months ago there was a complete guide on how to back up ta using dirty cow and then use this kernel with that backup, which I did.

Now the problem is that with dirty cow I could get a DK.ftf file not a ta.img that is needed for ta_poc

so how should I use this ta_poc with my dk.ftf backup?!?!?!

or now that Im unlocked, how should I get ta.img?!