yashsingh1/xdaforums huggingface dataset:
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
Ongoing. The developer wrote few pages back that he feels sick at the moment. But you are very welcome to contribute your development as well...
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
I don't think the problem is flashtool. What you did in post #107 of this thread clearly logs that DK.ta was flashed. Did you match the bytes of the log with dk..ta inside the ftf file? You can unpack it with zip and open DK.ta with a text editor. It also fits the log when I flash my device key. Also the link uou posted did the job. Something must be up with your backup (I had to run the exploit a few times to get it to run without errors.) I know things seems weird (rootkernel extracted the dk without errors and your phone did not brick as it can happen if you use the wrong dk, the backup with open bl makes sense, but you are also sure of that) and I would be just as frustrated but I am pretty sure flashtool is not the issue it clearly flashes the device key in both posts. It is something else. It is not to be rude but we have been extremely large here not just posting a search for it, again this thread is labeled genesis kernel, I suggest you try other forum areas (like you did) to get more help on the subject,. It is a hard nut though because as you see ppl will likely say the same; your dk was flashed or ypur backup is broken, you can also try flash another kernel as they also suggest although unlikely (pretty much everything that has been suggested here except dd"ing the image). But perhaps someone experienced something like it, you never know on xda.

EDIT: I noticed latest version of flashtool has a 'flash TA file' under trim area, if you switch to advanced mode.

Be careful., good luck for the last time. :)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] gizzistar:
also working with .311 firmware!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Ikzy:
removed. problem was Magisk, not this kernel :)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ApplepieFTW:
So just to be sure, I flash the boot image inside of the zip first, then I flash twrp, reboot, and then flash the zip (completely untouched) in twrp?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
Exactly...
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
No! You have either flash (fastboot flash recovery TWRP.img) or just boot (fastboot boot TWRP.img) TWRP first then flash the kernel zip file with TWRP then flash supersu you like. You can not unzip the boot.img from the kernel zip and flash that with fastboot alone, you have to flash the kernel zip file in TWRP as there are a couple of other files being flashed besides the kernel. Read the OP installation part flashing boot.img inside the zip is not going to work.

---------- Post added at 22:42 ---------- Previous post was at 22:37 ----------

He has to flash the kernel zip with twrp to get the drmfix files flashed to vendor dir. :)

from OP

Installation

- Install the .zip file via TWRP (the boot.img will not work on it's own)

EDIT:

oh well reading back I guess you could flash the boot.img first but that will only result in the phone not booting. Then flash twrp and flash the kernel zip to repair it. But that would be kind of silly heh as there is no need to flash the boot.img that wont work alone anyway first.

just flash/fastboot twrp first then flash the untouched kernel zip with twrp.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
Agree, the step of flashing boot.img alone does not harm anything, but also does not help anything. Flashing or hotbooting TWRP and then flashing kernel.zip is the right and easiest way...
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ApplepieFTW:
Thanks a lot!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
F2FS

- F2FS is causing me problems

- I enabled the kernel configs for F2FS and the kernel refuses to boot

- I then merged the latest F2FS code and still the kernel refuses to boot with the configs enabled
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] jayme@xda:
Great guide, thanks!

For sake of completeness you might want to add a link to the linux version of FlashTool-0.9.22.3:

<https>://dl.dropboxusercontent.com/u/99802211/External_Sources/Xperia%20Flashtool/flashtool-0.9.22.3-linux.tar.7z

WaybackMachine confirms md5 "BA9D8BC905D846D296D39EE2483A25E8":

<https>://web.archive.org/web/20161206160422/<http>://<WWW>.flashtool.net/downloads_linux.php

(Sorry for the freaked out links - I'm not allowed to post external links)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] toeterbaas:
I have used this kernel on stock rom , Drm now works again.

Can someone tell me if i now can relock bootloader to get it back to factory.

Really happy to have my camera back
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
I assume by your wording that you use this kernel to get drm features back because you do not have a backup of your TA partition before unlocking bootloader.

Without that (the backup) you can not lock bootloader and go back to stock no.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] toeterbaas:
Cannot backup drm keys from this kernel?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Ikzy:
No, once you unlocked your bootloader you lose your drm keys. This kernel can fix most of the keys, but not return your original drm keys. No backup means you cannot restore them.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] toeterbaas:
But i see my warranty back.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] waterpolo:
I have installed this kernel. I received after reboot that there is an firmware update available. When I looked at phone info the latest .311 is installed.

I have stock Nougat ROM (.311) installed with flashtool. What could be the problem?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Kianush:
that's because it thinks you have a firmware other than the latest(because of the difference in kernel and other stuff you made)

just ignore it
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
Strange running the same config but never seen that issue, the only suggestion I have is to try flash 311 with flashtool (I left all options as is) then boot to twrp and flash the kernel again though I understand that is what you did. Perhaps something went wrong I dunno, but the kernel on its own should not trigger a update, as said it does not here.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
New Build is Up

- Dated 03 March 2017

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

- Merge up to 3.10.95 of Linux upstream

- Sorry it's been a while, life's busy.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Kianush:
Take your time man

You are rocking

Any news on overclocking? Its a hard work i guess...
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
I will take a look at over clocking, after an initial look, it shouldn't be too difficult. Just a matter of finding time ?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Kianush:
Yeah no hurries man our phone is still young and Im not gonna go for xz premium after payin 500 bucks for this...lol
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
[MENTION=5749760]ggow[/MENTION] Would be possible that you make version WITHOUT the DRM fix? Because it would be great to use your kernel with https://xdaforums.com/crossdevice-dev/sony/poc-real-trim-instead-drm-fix-t3552893
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
Yes, I'll try and release one in the next couple of days.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] SXUsr:
Just use Rootkernel and remove the option.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ondrejvaroscak:
That's not what I wanted, I wanted to use Genesis kernel, not stock.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
[MENTION=6351145]ondrejvaroscak[/MENTION]

I have just built a nodrm kernel based on 1.04 of genesis kernel.

I haven't tested it myself, would you mind reporting back if it works?

You can find it in the downloads link from the OP.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
I tried the new TA.img mounter [PoC] with the Genesis nodrmfix kernel and it worked just fine :D

REF: https://xdaforums.com/crossdevice-dev/sony/poc-real-trim-instead-drm-fix-t3552893
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] fredsky2:
Hi, just to be sure, this Kernel does NOT work with 6.0.1 (34.1.A.1.198) right?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
I haven't tried it. Good chance it won't work.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] kreatik:
Hi all,

I have successfully installed this kernel but I unable to boot into recovery TWRP, I've tested with Volume+/-... Why?

My process for install TWRP + Root (SuperUSer):

- flash with this old kernel for add TWRP access : https://xdaforums.com/x-compact/development/advanced-stock-kernel-twrp-xperia-x-t3464685

- boot into TWRP (press volume button + when led is orange) and :

1) flash kernel (install ZIP) from this topic (https://www.dropbox.com/sh/bv2i2bkkckgdghs/AAAR1ArcRTX_Nb58HVUqsQwha?dl=0)

2) install ZIP SuperUser: https://s3-us-west-2.amazonaws.com/supersu/download/zip/SuperSU-v2.79-201612051815.zip

- reboot device

- Done!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
What a workaround :)

You can flash the recovery overwriting fotakernel on never Sony phones. No need to put it in the boot image.

Have a look back in the thread:

https://xdaforums.com/showpost.php?p=70412045&postcount=27

:) you can use the twrp from androplus or oshmoun, although I have only used the first one. You can also just boot it without flashing with:

fastboot boot twrp.img
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] kreatik:
Oh thanks! I don't know about "live" without flash. (y)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ym810316:
Baseband Unknown

Installed XC Genesis Kernes v1.04 on 34.2.A.0.311, reboot, and the baseband is gone. It says Unknown, and doesn't detects my SIM.

If I flash the stock 34.2.A.0.311 again, the baseband will be recovered and detects my SIM again.

Any solutions?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ggow:
Not seen that problem myself, so I don't know. Is there any more info that might help to diagnose?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] leors:
Can you tell me where the logo.rle file is located in the kernel? I can't find it ... thank you
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] madarayo:
I wanted to know if someone has a solution for ( FIDO KEYS NOT PROVISONED PROVISION FAILED)

thanks
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Ikzy:
Use TA poc tool or after drm fix use Tobias waldvogels tool to extract your TA key from the TAbackup (you have this I hope) and flash that after the kernel with drmfix
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] madarayo:
i lost my DRM keys :/
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
You need to use a older version of flashtool to flash dk.ftf extracted with flash_dk command from rootkernel tool or use your backup with the TA poc tool. The kernel can pick up the key and keys will be provisioned. If you choose to use the TA poc tool download the kernel without drm fix a couple of posts back. I suggest you browse the thread and check out rootkernel and TA poc tools if you haven't already. :)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
Then you said it yourself; they are obviously gone. Nothing todo. Some functionality will be lost, but camera and sound enhancement should still be fixed.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] madarayo:
indeed x) thanks all for answering.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] WanderMax:
If I just want to root my XC 6.01 (xposed reason you know), any tips?

What's the meaning of custom kernel with RIC/DM-verify disabled, to solve encryption ?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] realtuxen:
https://xdaforums.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605

Explains the terms. Are your bl unlocked? Do you have a TA backup from before unlocking? If no to both I highly advise you to do a backup before unlocking.
[Huawei Mate 9 Porsche Design Questions & Answers] bonerp:
I'm unable to connect to USB. It just says that the last USB device to be connected malfunctioned. Any ideas?
[Huawei Mate 9 Porsche Design Questions & Answers] bonerp:
Solved after 2 restarts weird.
[Xiaomi Mi 5 Questions & Answers] slayerliar:
hello there, can i know how to enable Hal3 camera cm14.1? and how to revert it back if i enable it..thanks
[Xiaomi Mi 5 Questions & Answers] matteo.gspace:
You can add the line persist.camera.HAL3.enabled=1 in the build.prop file then restart the smartphone. Some camera app have a setting inside to force the usage of the new API. You can use 'manual camera compatibility test' from PlayStore to check if the API is enabled and working
[Xiaomi Mi 5 Questions & Answers] slayerliar:
ty bruh..can u give some suggestion what the best camera apss after enable that hal3
[Xiaomi Mi 5 Questions & Answers] simplicio11:
it's coming https://review.lineageos.org/#/c/153363/

:good:
[Sony Xperia X Questions & Answers] Sebi673:
Since I can't flash anything but the 1302-8390 CDA customization (CH) and since I really need root n xposed, does anyone of you guys have a FTF for that customization with BN 34.0.A.2.301 /292 ? Or is there a way to flash a FTF with a different CDA?

Please help :)
[Samsung Galaxy Star] oddcast:
[Noob question]

I have a 2 year old Samsung GT-S5282 i just rooted a month ago, by installing CWM 6.0.3.7 and flashing SuperSU 2.07 in it.

I've installed a few root apps that "boosts" the phone's performance.

But a month later i tried rebooting the phone, it passes the boot logo, then it comes across a dialog saying "process system is not responding, do you want to close it?"

I pressed "wait", but then the system crashes and the screen turns off. I tried consecutive battery pulls, wiping cache partition, but no luck, it still crashes on the dialogue screen.

I reckon it's on the kernel, but i'm STILL not sure what is going on.

Can anybody suggest a fix? I really need this phone and i don't want to lose any data.

(I've backed up my personal files, i meant i don't want to lose any internal data that cannot be backed up)

Please.
[Samsung Galaxy Star] nagato:
I guess you are able to reach recovery mode. If yes, then u should connect it with computer. Try installing a custom rom (i would suggest CM11).

Step 1: Installing TWRP. http://xdaforums.com/galaxy-star/orig-development/recovery-teamwin-recovery-project-3-0-2-t3435364

Step2: Installing a custom rom. http://xdaforums.com/showpost.php?p=67870832&postcount=175
[Samsung Galaxy Star] oddcast:
Um thank you so much for the suggestion.

But unfortunately when i try to boot to recovery, the stock recovery opens up, not the CWM i flashed.

I tried to flash a fix for it, but it also didn't work.

But i guess flashing a new ROM will be the last option i have, so....do flashing one delete all my data? And if so, can i restore all internal data if ever i'll back it up? Thank you SO much for replying.
[Samsung Galaxy Star] nagato:
Well, then try three button combo (volume-down + home + power) to boot into bootloader and flash TWRP with odin.

No, your files in internal and external storage are not deleted when you format dalvik,cache,system and data partitions.

Edit: volume-down + home + power (boot to bootloader)

volume-up + home + power (boot to recovery)
[Samsung Galaxy Star] oddcast:
Okay thanks.

By the way what version of TWRP would work great? (I have XXANF4 stock kernel btw, i still can't access the main screen of the phone after booting up)

And if i wipe system and data partitions will it delete the settings i have on the phone (ex. WiFi connection history, Bluetooth transfer history etc.)?

Thanks again.
[Samsung Galaxy Star] nagato:
TWRP:- Refer the link i posted earlier.

Yes, all the settings and apps would be deleted.
[Samsung Galaxy Star] oddcast:
Dang it.

Wanted to keep it.

But thanks anyway.

I still can't access the phone. It just boots up, shows the lockscreen, then crashes and automatically reboots, then gets stuck in a bootloop.

I wanted to install a custom rom like you said but i cannot copy the rom files to the sdcard (the phone's still inaccessible).

Any more suggestions? Thanks.
[Samsung Galaxy Star] oddcast:
Also, when i try to flash the TWRP 3.0.2 you sent, Odin gives me an error that the md5 is invalid.

I still don't know what the hell is going on.
[Samsung Galaxy Star] oddcast:
Also, the reboot problem existed since i installed root apps, the system crash existed since i installed a custom launcher. (Nova to be exact). I don't know if that has connection to problem.
[Samsung Galaxy Star] oddcast:
Can anybody help?

I can't just format this phone i have internal data and settings that i cannot delete.
[Samsung Galaxy Star] BatDroid:
Do a factory reset

Go to advance and format system and data

Then flash Stock Deodex Prerooted rom by akshay

Done

It won't delete anything
[Samsung Galaxy Star] DJKristy:
Flash cwm for star via odin

Then flash twrp via cwm

Remove ur SD card and using a card reader copy ROM file into SD card.

Mount ur SD card

Then flash the rom
[Samsung Galaxy Star] oddcast:
I mean, it deletes all the settings right? Like WiFi hotspots and bluetooth transfer history and every app i have on my phone. I just can't wrap my head around the idea that i will delete all of that just because my phone crashes on passing through the boot screen. . .
[Samsung Galaxy Star] BatDroid:
U couldn't mention what tweaks did u installed to boost the phone and what exactly happened.

So,all I can say is 'do a factory reset'..
[Samsung Galaxy Star] Sohammirikar:
Just flash official firmware. The problem was automatically fixed without wiping data.
[Samsung Galaxy Star] oddcast:
So i can just normally flash the stock firmware through Odin and Download mode and not wipe data? Is that correct?
[Magisk] Crazyphil01:
I just tried installing Magisk v9 with the current Xposed module on a YotaPhone 2 running Android 5.0, but it seems that the module doesn't correctly initialize.

I downloaded and installed the Xposed SDK 21 module in Magisk Manager v2.5. After reboot, however, the module list in Magis Manager was empty (not even phh's Superuser was visible there, which I previously flashed in recovery). However, the Magisk log shows that the Xposed script is executed:

** Magisk post-fs mode running...
** Magisk post-fs-data mode running...
Preparing modules
Bind mount dummy system
Bind mount module items
post-fs-data: /magisk/xposed/post-fs-data.sh
Enabling systemless hosts file support
Mount: /magisk/.core/hosts
Bind mount system mirror
Mount: /system
Bind mount mirror items
** Magisk late_start service mode running...
service: /magisk/phh/service.sh
phh: Live patching sepolicy
phh: Mounting supath
phh: Starting su daemon

The Xposed Installer now shows on the status screen that Xposed is installed but not active. An Xposed log file in /data/data/de.robv.android.xposed.installer/log doesn't exist. Logcat has no entries for Magisk nor Xposed. Also, the "Enable systemless hosts" checkbox in Magisk Manager isn't active anymore after reboot, even if it clearly is configured that way according to the logs. Is this a bug in Magisk or am I doing something wrong?
[Sony Xperia X Performance Questions & Answers] Mastiff:
First of all, I have been using custom kernels and later rooting since Pocket PC 2002/Merlin, and I now have bought my first Sony (after just about every other brand of Android phone, no particular reason why I never had a Sony since the SE T68) because it's the only phone I can use with salt water spray on the screen and wet fingers. I do a lot of lobster, crayfish and crab fishing with traps and use an app called Fishing Poins to keep track of my pots and what I get where. Coming from Samsung (S5 was the latest I had) the rooting of a Sony seems rather cumbersome, but I have a few apps that need root access. LIke Air Audio to play music through an Airplay system. DLNA is useless to me, I want to stream the audio that I'm using on the phone directly to the whole house systen.

So can somebody please tell me what I do to get root access on Nougat (which my phone upgraded to before I saw that's what was happening, and no, I'm not big on reading long explanation screens, if it's a new phone and an official upgrade I am used to just doing it before I root on Samsung phones, since I have to unroot to install them later) and nothing else? For now I don't want to use any custom kernels or recovery, if I can avoid it. Just stock, rooted, like I could on my S5 (and Note 2, S4 Active and so on), please!

I did attempt the KingRoot app, but it didn't work. Also I have read a bit about that app that doesn't seem to good (Chinese spy fator app), so I did a full reset after the failed attempt. But if there's something similar that would be the perfect way of doing this. Of course I'm no stranger to ADB, so hooking it up to my pc is not a problem either.
[Sony Xperia X Performance Questions & Answers] serajr:
1. Downgrade to any version of stock Marshmallow firmware with Xperifirm and Flashtool. Wipe everything and Exclude nothing (but *.ta - if any). Do not use FSC script! << FSC is now mandatory!

2. Backup your device's TA partition with Universal TA Backup tool.

3. Flash Nougat firmware (again with Xperifirm and Flashtool). Wipe everything and Exclude nothing (but *.ta - if any).

4. Unlock your device's bootloader

5. Follow this instructions to create/flash a custom kernel with root, and also DK.ftf (to fully reactivate sony's drm keys, which is wiped when bootloader is unlocked).

Anyway, try it at your own risk!
[Sony Xperia X Performance Questions & Answers] Mastiff:
Thanks! So that's the method, which of course means deleting everything I've set up on the phone. Is there a chance there may be an easier, less destructive way during the next month or so? I can do without root access for that long. :)
[Sony Xperia X Performance Questions & Answers] Mastiff:
oh, btw, by "custom kernel" do you mean that it will not be the original setup for the phone? I've been betatesting kernels on many devices, but nowadays I only want a phone that works without any hitches, and I want access to the official updates. That was easy on the Samsung phones, but maybe Sony is more different than I thought?

Oh, btw, maybe it is explained in the long post you directed me to, but I recently had an eye operation, and I would appreciate a shorter answer, before I get to the "how to", which takes me a while to read right now...
[Sony Xperia X Performance Questions & Answers] Mastiff:
NEVER MIND THIS MESSAGE! Now I understand what Xperfirm is...

Also where would be a safe place to download ROMs from? Both the downgrade ROM and the Nougat ROM? I now really wish I hadn't let the thing upgrade before I took the TB backup (I'm still a bit unsure as to why I need that, I don't use any media with any form for DRM, but I guess better safe than sorry).
[Sony Xperia X Performance Questions & Answers] funiewski:
As far as I know there's no danger to download through Xperifirm, you need TA for guarantee reasons (if your phone need repair, not everywhere but for safety)
[Sony Xperia X Performance Questions & Answers] Mastiff:
THanks, yeah. I have managed to read a bit and found out that Xperifirm downloads from the official Sony servers. Pain in the ass downloading, it breaks the download every couple of minutes. But that's probably Sony's servers, not the program. As for warranty, that's no problem in Norway since we have very strong consumer rights here. If an error can not be prooven to stem from rooting or other software stuff, it will be fixed. If I remember correctly Apple tried really hard to battle with the consumer rights officials about jailbreaking, but they had a very bloody defeat. ;)