yashsingh1/xdaforums huggingface dataset:
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
The dirty cow exploit made it possible to get a backup of our TA.img you should still have this file somewhere provided you made a backup? You can then use this with the TA poc to restore full functionality as if the bootloader were still locked.

Otherwise to get up and running just flash the standard version of genesis kernel until you figure out the details of the nodrm option.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Kianush:
Yes I found it man, thanks for your help

You Rock:good::good:
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
Yeah. (Was about to say before i saw you where already answered) it's the other way around, you get ta image from dirtycow which in turn you get the dk.ftf from the ta image. So the ta image is the one you wan't to hold on to in a safe place. But since you got all that refreshed now, I'll just say that I am glad you found it. :)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] bofis:
Hi, which SuperSU or SuperUser zip/version do you flash that works under 7.1.1?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
I used the latest beta version of Magisk.

I don't use SuperSU anymore
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] dcro95:
Hi, if I didn't backup TA (DRM keys), with this kernel is it possible to use the function normally activated by DRM keys ?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
Yes! :) just choose the normal version ie NOT the nodrm one which is for people who has a backup and wish to use a tool called TA_poc. The normal version is for people who lost their keys and want to restore drm functions just like you want. :)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Wxfdswxc:
I flashed the 2.82 zip file, no problems.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] orrorin:
What app do I use to change governors btw? Been out of the custom kernel game for a while ?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Wxfdswxc:
By the way, is there a way to get rid of the "this device cannot be trusted" boot screen?

It's really not important but… It's kind of upsetting, heh.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Kianush:
not yet, not the right topic btw

but I take that msg as a compliment that a developer is using the phone :cool::cool:

not a problem unless you wanna send to for warranty.

anyway, OFF TOPIC :p
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Wxfdswxc:
Oh I thought it could be related to the custom kernel somehow, nevermind.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
We have been through a lot of odd topics in this thread yes. Perhaps you can use this one?

post #46 ;)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] bofis:
So is version 1.05 based off 34.3.A.0.194 kernel?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
It's not very long ago 7.1.1 was released. Is a little effort like glancing 2 pages back to much to ask nowadays.. :)

post #218
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] bofis:
Sorry, and thanks, the old change log in the second post not getting updated threw me off
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] momodupi:
problem of root

Hi, I'm new here. I try to flash 34.3.A.0.194, XC-GenesisKernel-v1.05 and recovery, but the device dead on the first page(black sony logo with white background).

So could you tell me how to root my device if I update to android 7.1?

Thanks!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
Did you flash the XC-GenesisKernel-v1.05.zip file with twrp without unpacking it, if not you need to do that as per instructions in the OP. You can not unzip the boot.img and flash it with fastboot as there are a couple of files (2) that needs to be written to /system also., else the phone will not boot as you describe. :)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] momodupi:
It works! I root my device successfully! Thank you!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] qvmuhuuxz:
i'm on the latest update, 34.3.A.0.194.

is this kernel much better than the stock one, any downsides to this?

can we use this kernel and also use android pay? (as long we we use magisk and hide etc)

thank you for all the development :)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
I find it better than stock, however I'm biased :)

Use the latest beta version of magisk and then you can use android pay with this kernel
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] gabed90:
I followed this guide to use magisk:

https://xdaforums.com/x-compact/how-to/android-pay-safety-net-rooted-unlocked-t3610342

But now I want to try this kernel continuing to use magisk.

I have unlocked bootloader and i made a backup of TA.

What steps should I follow?

Download genesis kernel 1.05 nodrmfix(i'm on last 7.1.1)...and then? Extract boot.img and then use tapoc including my TA backup, then drag and drop new boot Image in kernel1.05.zip?and flash it?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
Yes the steps you outline are good, then just flash magisk after.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] gabed90:
It works! But ...If I want to mount the system partition :

F5321:/ $ su

F5321:/ # mount -o remount,rw /system

mount: '/dev/block/bootdevice/by-name/system'->'/system': Device or resource busy

1|F5321:/ #

What's wrong?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
Not sure what's going on there, I have reproduced the issue and will look into it.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] qvmuhuuxz:
Sorry to go a little off topic, I have some questions, I hope you don't mind to help me. :)

I only ask because I am interested to install this kernel but now I am confused.

So this kernel installs 2 files to /system? What files, why?

Does this mean that I won't pass safety net/can't use android pay? Because I believed that any modification to /system AT ALL stopped us from passing safety net...?

Or is this why ggow says we need to use the latest beta of magisk, because this has a new feature that works if you have a modified system?

And if we can pass safety net with a modified system folder, why is everyone worrying about making things systemless with magisk?

These things seemed much easier when we could just do whatever we wanted with /system :D
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
The nodrm version of the kernel does not touch the /system partition, this is the version you use with ta_poc

The other version installs two files that are used as part of the integrated drmfix

magisk can be used with both versions
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
Yes you need a backup of your ta partition before the device was unlocked and then use the nodrm version of genesis kernel with ta_poc to make a boot.img (the phone will think its still locked, read more in the ta_poc thread). Then you should be able to pass safety net with lastest beta magisk (its a cat and mouse game=). If you got no backup nothing can be done.

---------- Post added at 03:34 ---------- Previous post was at 02:53 ----------

toolbox (a tool similar to busybox, if you want to know the reasons and differences please google it =) that now ships with android, has forced switched the parameters around in nougat, try:

mount -o rw,remount /system

:) I scratched my hair to in nougat when it came out, and many apps also failed to mount system, most are fixed now. If you do a ls -l in the /system/bin folder you will see most commands origin from toybox including mount. If you want the old behaviour you can use /sbin/busybox mount.. or you can rename mount to mount.bak and create a symlink from /system/bin/mount or /system/xbin/mount to /sbin/busybox or just copy busybox to either of the folders and rename it to mount. (busybox comes with genesis kernel in /sbin and it's mount command takes parameters 'both ways')

[MENTION=5749760]ggow[/MENTION], btw though I have not checked v.1.05 for different reasons yet, the genesis.sh to create init.d has been broken quite some time. A little easy fix for next release maybe? :)

I take it that it should also be removed from the nodrm version (if not already) so system is not touched.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
I'll sort out init.d for the next release, thanks for the feedback.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] gabed90:
[MENTION=5749760]ggow[/MENTION] wow great battery life and performance :o
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ozg33k:
Can you recommend a good app to change settings for this kernel? Thank you.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
I use this one, really good.

https://play.google.com/store/apps/details?id=com.grarak.kerneladiutor&hl=en_GB
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] qvmuhuuxz:
Is it possible to turn down the boot screen brightness with this kernel?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
I know what you mean, feels like your retinas are going to explode.

You maybe could just flash a darker boot animation. However the initial bright Sony loading screen is output by the bootloader.

Maybe it's possible, if I have time I'll take a look before the next update.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] qvmuhuuxz:
Thanks for that!

I'm not sure how much/how little it helps but, for the Xperia Z5 custom kernel here:

https://xdaforums.com/showpost.php?p=66979580&postcount=119

"lowered init value of screen during bootup: now you shouldn't get 100% BLINDED when rebooting"

this is the commit that changed the brightness :)

https://github.com/zachariasmaladro...mmit/2d24b1cfd72cebec53713ff72556a229fd3f7ea6

I hope that helps.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] waterpolo:
Is 1.05 release also working on .311 Rom?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
No, it won't work. Use version 1.04
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] poolemit:
i'm on stock 7.1.1 / 34.3.A.0.206. i don't have an sd card to use with twrp, which I understand is unable to decrypt my internal storage.

in my case, is there any way i can flash twrp / this kernel / root.zip?

thanks
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] qvmuhuuxz:
try sending the file via adb to your cache partition and flashing it from there?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] poolemit:
this worked, thanks! here's exactly how i did it:

boot or flash TWRP

at TWRP, on "Enter password" screen hit Cancel

Swipe to allow modifications

Go to Mount and choose Enable MTP

Verify that adb is now working: adb devices

Push your .zip to /cache: adb push superuser.zip /cache

Install your zip as usual from /cache

Once you've flashed TWRP, you can boot to it by:
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ja_android:
Hi

What kernel to use, 1.04 or 1.05 with 34.3.A.0.206 release ?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
v.1.05 - latest use latest, so there is some order in the choas. :)

Use regular version for included drm fix.

Use -nodrm version if you want to use the kernel with ta_poc tool.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] razzledazzle83:
I'm a total noob when it comes to kernels.

What exactly does this do and why should I use it?

I've downgraded my phone to MM 34.1.A.1.198 so I could back up my DRM keys before flashing TWRP 3.1.1. and have root access.

Is it possible to gain root access on N .206 with this kernel as well? I.e. upgrading to N again, flashing this kernel and then flashing SuperSU to gain root access?

I'm talking about stock ROM btw.

Edit: tried kernel 1.05 with 34.3.A.0.217 and SuperSU-v2.82. Seems to work. Root checker confirms root. But I believe to have noticed lags. When opening the upper taskbar and trying to pull icons to it it first wouldn't react or when trying to disable synchronisation for the Google account it also lagged pretty hard. Can anyone confirm?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] desiromeo719:
Can you please describe how you were able to downgrade to a MM build? I thought I was stuck with stock because I don't want to lose TA folder and am on the latest 7.1.1 stock build. If I can downgrade and use dirty cow to save TA folder that would be awesome.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] razzledazzle83:
It's pretty simple actually. Open flashtool/Xperifrim, select your device, download fw 34.1.A.1.198 (doesn't matter what region), flash it, use this tool to backup TA/DRM and there you go ;)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] desiromeo719:
Thanks for the help. I reset phone to factory default then tried to flash back to 1.198 firmware and after flashing successfully the phone just goes into a bootloop and cannot fully boot. When flashing back to latest firmware using the tool all is back to normal. Is there a specific setting in flashtool that needs to be checked? Cannot get the .198 firmware to boot. Please help.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] razzledazzle83:
Did you use the newest version and wipe everything in the "sin" column?

Read this guide. It is very good. Should answer any question. Regarding your problem read section 4.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] leuterium:
Hi,

I'm currently on 34.2.A.0.311 and I want to upgrade to v1.05. Is it possible to upgrade the base system rom without losing data?

Thanks & best regards
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] desiromeo719:
Thanks! Wiping everything in the 'sin' column did the trick. I am now on MM build. But now I cant get adb to work and save the TA file. I keep getting error "If you are on Nougat you have to downgrade'...frustrating.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] razzledazzle83:
I assume you have adb drivers, flashmode drivers, fastboot drivers and USB drivers installed, right?

Have you also enabled USB-Debugging on your phone and gave your computer permission to access your phone when it asked you?

Sometimes the exploit doesn't work right away. Just keep trying.

The script is definitely working with MM .198
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] razzledazzle83:
What exactly do you mean? You are running stock ROM .311 with stock kernel and want to install this kernel v1.05? Or have you already installed this kernel on .311 and want to update this kernel to v1.05? Or update the whole fw?

But in either case it is possible without loosing data. Just install the kernel via a custom rocvery like TWRP. No data loss there.

If you want to update your fw (via flashtool) don't wipe anything. Though this is not recommended. When updating/flashing a new fw you should back up your data and go for a clean install aka wiping data.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
Sure, I updated pretty much through every nougat version from 7.0 to current without wiping data. flashtool will update the device as close as pc companion as possible. (via fsc scripts) I do not have a lot installed and never experienced anything negative. I recently did one though, but that was more as a soon to be a year old phone ocd clean kinda thing, and the phone performed exactly the same after as before. I got rid of a lot of junk though. :)

Of course if your phone starts acting weird a clean install/factory reset usually helps. I prefer to install the apps from playstore one by one now I am cleaning up anyway. If you have a ton of apps installed (like some of my family/friends) I found the issue is just as or more likely to be one or more apps behaving bad.

---------- Post added at 03:38 ---------- Previous post was at 03:22 ----------

Some stupid questions. Sorry.

I take it you enabled developer options and from there USB debugging before running the tool.?

Can you get normal adb access ie does 'adb shell' open a shell to the phone?

Have you tried running the tool several times in a row? The old version sometimes required that to make a clean run without errors.

I am pretty sure I still have the old version if you would like to try? It's still dirty cow exploit but the first version without checks and stuff.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
New Build is Up

- Dated 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

- Tested with 34.3.A.0.206, assuming it will be fine on .217 too

- Updated the Change Log, with changes from all versions.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] mains75:
Thankyou, it works fine on .217.

Just appears to be 1.05 on info device android menu...

"3.10.95-Genesis-Kernel-v.1.05

ggow@workstation #1

Sun Aug 27 18:19:07 BST 2017"

Not much difference on boot screen brightness..
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
Yes I just checked it in the dark and agree that there is no difference. Will go back to the drawing board on that point.

And yes I forgot to up-rev the kernel string, sorry for that.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] dcro95:
Works fine on .217

Thanks
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] 9h0s7:
works well with .228
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
I have on 228 quite big drain overnight, but I just flashed it, need to observe it longer to get into details...
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] 9h0s7:
Probably an app wakelock. I use naptime from the playstore to force doze while the screen is off. I didn't have bad standby drain immediately after flashing.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
taking it back... no drain at all, everything smooth.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] maluus:
There is a weird behavior. I use anker qc3 car charger. When I disconnect the phone from cable while screen turned off, phone turns off as if completely lost the power. But if screen is turned on no such problem and phone continues turned on. Wall chargers don't cause such a problem.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
Sounds like a hardware problem between the anker qc3 and phone. Try testing with the stock kernel and see if the problem persists.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] 9h0s7:
Mine doesn't do that. It reacts the same unplugging power from 12v or AC.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] cirnocirno:
Does this Kernel allow undervolting?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] 9h0s7:
Negative
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] cirnocirno:
That's a shame, this phone really needs a good undervolting and other fixes to keep down the heat.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] bamsbamx:
No heat problems here, though I have it really underclocked. I want to have undervolt support too, but have no idea about how to implement it... Maybe modifying dts files?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] 9h0s7:
I don't have any heat problems either. I have the big cores turned off and run the little cores with the despair governor. Hotplugs would be cool too. But adding hotplugs and underclocking support to kernels is no small task.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] maluc:
Hi,

is there a updated kernel beeing considered? I have once a day the problem with my fingerprint sensor. Hardware will not be recognized....Any solutions for this problem?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] insanexd:
The DRM-fix seems not to be working on the 34.3.a.0.228 firmware.... I cant see any difference when alternating between the color modes.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] 9h0s7:
It works for me on that firmware.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] insanexd:
thats weird... u just flashed it with TWRP? v1-06-noDRMfix?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] 9h0s7:
Check your DRM status under the security menu.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
noDRMfix means there is no DRM fix in this version. it is for people who use TA_POC as their workaround for DRM.

you need to flash kernel from Standard folder
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] insanexd:
hahhahahah that makes sense!!! it was really dumb from my part hahahhaah... thanks a lot :D
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] kekistaneerefugee:
EDIT: NVM, got marshmallow kernel packed myself.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] des0l:
F5321 244 firmware

Hi everyone, can I use 1.06 kernel version for .244 firmware version ? Thank you.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] dylan_luigi:
Sony Xperia X performance

Does this work sony xperia x performance???
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Flowchan:
No, this is X Compact so don't do this on X Perfomance. Your phone will be unusable then.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] d_fens:
Anyone tried this kernel on 34.3.A.0.244 (Android 7.1.1)? Does it work?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] maluus:
I'm using on ...217 which is also 7.1.1. Afaik ...244 is just security patches update which means this kernel should work on it.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Kianush:
Hey man, So I wanted to ask if you would be working on 8.0 kernel when its released?

we can expect the update to be near...
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
I am working on an update. Just not had much time.

When 8.0 comes out, I will be working on it.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] 音无结弦:
can it work on omini rom ?

my phone can't bootup after i have flash the lastest version , and after i flash the old one ,and other unofficial roms,the cpu frequency will drop to 883 when the tempture up to 40 c . do anybody know how to fix it ? please tell me ,thanks
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Ikzy:
december security update (.252) doesn't work with the 1.06 kernel
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
This is a kernel for Sony stock rom ie. built from stock kernel source (with modifications)

To be able to use it properly; flash latest stock rom via. flashtool.

No idea about your frequency issues with unofficial roms. Some roms have different thermal settings and so forth . :)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Ikzy:
Hey man, the kernel does not work on the December security patch (. 252).. Are you planning an update?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
Yup, working on it :)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
New Build is Up

- Dated 09 December 2017

- Version 1.07

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

- Tested with 34.3.A.0.252 Customised DE firmware 1305-6830
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] harryharryharry:
Thanks for the kernel update ggow ! Just like to inform you that the kernel string is still stuck at 1.05
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
Thanks for letting me know, many time I forget to update that string :silly:

I might try and make that part of the build script.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] jiangjun413:
I just flashed the 1.07 kernel, but it seems to show "Genesis-Kernel-v1.05" in Kernel Version. But the zip file is downloaded with 1.07. Would you help me check that? But everything seems working normally.

Thanks!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
I forgot to change the kernel string, it is indeed 1.07.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] jiangjun413:
Thanks for your reply! Your kernel make x compact complete ^_^

It's working with the 34.3.A.0.252 version stock rom with magisk root and root hide.

Camera, root, display features and safety check can go through (android pay working as well)