yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi 4X Guides, News, & Discussion] Anindito12:
did you change the stock kernel?
[Xiaomi Redmi 4X Guides, News, & Discussion] mahekvora1997:
No..

---------- Post added at 11:08 AM ---------- Previous post was at 11:05 AM ----------

Just a question.. Can we expect the new build today??:)
[Xiaomi Redmi 4X Guides, News, & Discussion] Anindito12:
yes check update now :)
[Xiaomi Redmi 4X Guides, News, & Discussion] qibs123:
Hello, I'm using the latest build and I really love it. Seriously. But then my phone started to overheat and reboot itself. Does this happen because of the kernel? Please help.
[Xiaomi Redmi 4X Guides, News, & Discussion] Anindito12:
try changing the kernel, but I have no problem about that:)
[Xiaomi Redmi 4X Guides, News, & Discussion] qibs123:
Okay I'll try. Anyway, good job on this rom. I always had a problem with signal strength in custom roms but this one. Well done ??
[Xiaomi Redmi 4X Guides, News, & Discussion] Anindito12:
good
[Xiaomi Redmi 4X Guides, News, & Discussion] mahekvora1997:
!!!!! New update is out now !!!!!
[Xiaomi Redmi 4X Guides, News, & Discussion] AL.XP15_:
Edge gesture? There or not?
[Xiaomi Redmi 4X Guides, News, & Discussion] magic_doc:
Installed via Updater, ended in stuck at Bootlogo for me :crying:

Anyone facing similar problems?

Try to recover TWRP Backup right now but there are also stuck-problems.

Any suggestions?
[Xiaomi Redmi 4X Guides, News, & Discussion] mahekvora1997:
Which twrp are you using??
[Xiaomi Redmi 4X Guides, News, & Discussion] magic_doc:
I use 3.2.3-1 (installed from twrp-3.2.3-1-santoni.img)
[Xiaomi Redmi 4X Guides, News, & Discussion] mahekvora1997:
Use a treble supported recovery. I use orangefox recovery and I never had any issues. Try orangefox recovery and you will not have any issues with this rom updates or even other rom updates.
[Xiaomi Redmi 4X Guides, News, & Discussion] magic_doc:
Thanks for the advice, but this TWRP is supposed to be treble-supported and it's recommended on the front page:

TWRP recommended

I am going through the whole setup process from scratch with TWRP right now, first of all having wiped cache, data, dvalnik and system as recommended.

I would be willing to try out orangefox recovery if it works better, but is the ota-update-mechanism is supporting this also?
[Xiaomi Redmi 4X Guides, News, & Discussion] mahekvora1997:
Yes orangefox supports ota updates. Also miui updates are supported by orangefox recovery. Visit their website www.orangefox.tech and read details. I used redwolf recovery few months back but it gave me issues so changed the recovery and now orangefox is working flawlessly.
[Xiaomi Redmi 4X Guides, News, & Discussion] magic_doc:
Thanks, tried it yesterday and it worked for me. Just another question: which baseband firmware do you use? I'm still on 037_PA.

I experience little trouble with flight mode:

With february's build, shortcut in power button menue worked perfectly, no I cannot switch the flight mode off again from time to time, the plane button in power menue simply doesnt't response.

When I used the button in the buttom tray, it askes for the sim's pin every time which was definitely not that way before.

Workaround is to deactivate pin but that is not what I wanted.

Could that be a firmware issue?

Glad about any suggestions:o
[Xiaomi Redmi 4X Guides, News, & Discussion] mahekvora1997:
I did not have the issue which you are facing. I don't think its a firmware issue. Can't suggest you solutions as I never encountered such issue before. If you think its a firmware issue you can download firmware from the link and flash it via recovery. https://osdn.net/projects/xiaomifir...ni_miui_HM4XGlobal_9.3.28_4c8695aa53_7.1.zip/ I have personally not updated to this firmware so cannot guarantee that it will work perfectly. But try once.
[Xiaomi Redmi 4X Guides, News, & Discussion] Anindito12:
Yep update and enjoy..
[Xiaomi Redmi 4X Guides, News, & Discussion] Anindito12:
Try clean flash
[Xiaomi Redmi 4X Guides, News, & Discussion] magic_doc:
Already done so and changed to OrangeFox-Recovery- let's have a try with this next time.
[Xiaomi Redmi 4X Guides, News, & Discussion] magic_doc:
Any updates for santoni in the pipe?

[EDIT]

New Update was announced after support for this device discontinued on telegram channel due to inactivity of maintainer.

Found a new thread here:

https://xdaforums.com/xiaomi-redmi-4x/development/9-0-pixysos-t3943380

[/EDIT]
[Asus ZenFone 3 Themes, Apps, and Mods] Nyoxx:
So on the quest to change my ZenUI which i thought to be impossible, i am a fan of dark themes. I have rooted my zc553kl, installed substratum and tried a few themes, but that hasnt changed my notification window, it remained white. And i stumbled across this app, called Power Shade. It doesn't require root, and allows you to change the colors of your notifications window to your liking. it works on the stock rom (7.1) and its awesome, heres some screenshots. i am posting this here cuz i didnt find the info anywhere

cheers guys
[LG V30 Questions & Answers] adriansiv:
Hi guys,

I have a lg v30+ indian variant with a peculiar problem. I do tend to receive sms for 12-14 hrs after restarting or starting the phone in general and then the sms’s just stop coming to my phone. Once i restart the phone back, i do tend to see them again. Anybody experienced this issue? I am currently rooted on android oreo but i was experiencing the same issue even before i rooted the phone.

Any resolutions?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
Downloads

- hideunlock kernel pre-rooted boot images:

Xperia XZ1 (G8341/G8343)

boot-G8341-47.1.A.16.20-hideunlock-magisk-19.1.img

boot-G8341-47.2.A.4.45-hideunlock-rooted.img

boot-G8341-47.2.A.6.30-hideunlock-rooted.img

boot-G8341-47.2.A.8.24-hideunlock-rooted.img

boot-G8341-47.2.A.10.28-hideunlock-rooted.img

boot-G8341-47.2.A.10.45-hideunlock-rooted.img

boot-G8341-47.2.A.10.62-hideunlock-magisk-19.3.img

Xperia XZ1 Dual (G8342)

boot-G8342-47.1.A.16.20-hideunlock-magisk-19.1.img

boot-G8342-47.2.A.4.45-hideunlock-rooted.img

boot-G8342-47.2.A.6.30-hideunlock-rooted.img

boot-G8342-47.2.A.8.24-hideunlock-rooted.img

boot-G8342-47.2.A.10.28-hideunlock-rooted.img

boot-G8342-47.2.A.10.45-hideunlock-rooted.img

boot-G8342-47.2.A.10.62-hideunlock-magisk-19.3.img

- hideunlock kernels flashable to multi fw versions (see here for usage howto):

Xperia XZ1 (G8341/G8343)

kernel-G8341-47.1.A.16.20-hideunlock.zip

kernel-G8341-47.2.A.10.62-hideunlock.zip

kernel-G8341-47.2.A.10.80-hideunlock.zip

kernel-G8341-47.2.A.10.107-hideunlock.zip

kernel-G8341-47.2.A.11.228-hideunlock.zip

Xperia XZ1 Dual (G8342)

kernel-G8342-47.1.A.16.20-hideunlock.zip

kernel-G8342-47.2.A.10.62-hideunlock.zip

kernel-G8342-47.2.A.10.80-hideunlock.zip

kernel-G8342-47.2.A.10.107-hideunlock.zip

kernel-G8142-47.2.A.11.228-hideunlock.zip

Screenshots of XZ1c FOTA system update from oreo 47.1.A.16.20 to pie 47.2.A.4.45

(video available here)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
Downloads

This is for alternative use only - please see post#10 for more details.

boot-G8341-47.1.A.16.20-hideunlock-magisk-19.1-noverity.img

boot-G8342-47.1.A.16.20-hideunlock-magisk-19.1-noverity.img

Screenshots of XZ1c FOTA system update from pie 47.2.A.4.45 to pie 47.2.A.6.30 version

(video available here since 08:10 time)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] SGH-i200:
This should be the first paragraph! ;)

Since I do not care about OTA updates, because we can download every firmware via XperiFirm and flash it via newflasher, I will use your modded kernel in the 'alternative' way! :good:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] SGH-i200:
[MENTION=4418980]j4nn[/MENTION] - I flashed "boot-G8341-47.2.A.6.30-hideunlock-rooted.img" on my G8341 which has the latest Pie firmware (G8341_47.2.A.6.30_Customized DE_1310-4290_R6C) installed, but the device did not boot into Android after that! :crying: I flashed the latest official Magisk before your kernel. Do I need to use your patched Magisk instead?

Did you forgot to add the patched magisk flashable img file? "hide magisk from sony ric daemon on early boot phase (v18.1-manager-v7.0.0-ric branch)"

Maybe the firmware version is not compatible with the one you took the kernel from? The firmware folder includes:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=1995555]SGH-i200[/MENTION], I just compared the stock kernel boot image extracted from G8341_Customized DE_1310-4290_47.2.A.6.30_R6C (which I have used to create it) and it seems all good to me:

- os version and patch level match

- device tree blobs are the same

- kernel command line is the same

- extracted kernel config is (except few comments as it is usual) the same, with poplar target (i.e. single sim XZ1)

- ramdisk is the same except changes that are expected (integrated magisk in order to provide root when booted from usb having unmodified stock fw)

Did it result with an infinite hang during boot (which phase of the boot splash animation)?

Or did it reboot during boot (a boot-loop) - which phase?

I am sorry I forgot to mention the kernels for other targets than xz1c have not been tested (I have only xz1c for testing).

But it should be safe to test the above howto as described. Even if the kernel was flashed (instead of just fastboot booted), recovering from this should be as simple flashing stock kernel back.

Anybody else tested this with XZ1?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] SGH-i200:
The SONY white splash screen appeared (with only black SONY text) and then it hang forever.

I flashed the kernel_X-FLASH-ALL-C93B.sin (and everything else as I did to upgrade to latest Pie) from the stock fw to recover.

After the XZ1 was booting again, I executed the fastboot booting, without problems! :)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=1995555]SGH-i200[/MENTION], that sounds good. Now just flash it:

adb reboot bootloader
fastboot flash boot boot-G8341-47.2.A.6.30-hideunlock-rooted.img

disconnect from usb and power on.

If it booted from usb, I believe it should boot just fine if flashed as above too.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] SGH-i200:
I flashed your patched kernel again and got into a bootloop: Bootloader unlocked warning and white SONY splash screen in an endless loop.

Since my XZ1 was connected to my Windows workstation already, I simply long pressed the volume up button till the notification light went blue, and booted into twrp to restore the stock kernel (rooted by Magisk to remove the dmverity stuff).
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=1995555]SGH-i200[/MENTION], you are right, it is the verity thing.

I've assumed that verity is ignored when kernel detects unlocked bootloader, because the dm-android-verity kernel component used that is_unlocked() call to:

/* Allow invalid metadata when the device is unlocked */

- that comment is in the dm-android-verity.c source code.

But it looks like that is only a corner case and if verity metadata is valid, verity is active (if not disabled in device tree) even with unlocked bootloader.

Now I am wondering: for OTA updates we need untouched system, so having verity enabled in the kernel is good for this purpose - when you flash something that writes to system or vendor, you may detect it soon enough to be able to tell what it was. The main feature of magisk is that you should be able to "modify" system "systemlessly", i.e. without really writing to system or vendor partitions.

From this point of view it should be all good then.

But I understand that the "alternative" use of this kernel, i.e. not planning to do FOTA at all, just using only the unlock hide feature restoring drm functionality and using root the old way (with real writes to system) may be liked.

For this, just use magisk manager main screen, in "Advanced Settings" unselect the "Preserve AVB 2.0/dm-verity" option and then use the "Magisk INSTALL" button, confirm install of Magisk-v*.zip, select "Patch Boot Image File", browse to sdcard where you put my kernel image and select it.

Magisk will repack the boot image disabling dm-verity in device tree blobs, noting where you can find patched_boot.img.

Flash that and you should be good to go.

This procedure is valid for all my pie kernel builds.

I will repack the oreo 16.20 build as using magisk manager gui would not keep the magisk patch for sony ric daemon.

-- edit --

Updated post#3 with downloads of oreo kernels noverity repacks.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] sinkoo1979:
Thanks for the kernel but after flashing the kernel the phone don't go into doze (deep sleep). Any suggestions on this?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] SGH-i200:
I use AdAway and activated NightLight by copying a apk to /vendor/overlay .

Thanks for creating the noverity Oreo kernel versions! :good:

---------- Post added at 09:04 AM ---------- Previous post was at 08:57 AM ----------

If I flash your patched Pie kernel via TWRP and flash Magisk right after, this should have the same effect as patching your kernel via the Magisk app, right?

[MENTION=4418980]j4nn[/MENTION] - "using root the old way (with real writes to system)" - will flashing Magisk via TWRP change this to system-less root?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
I have no idea. In my opinion, if you get such behaviour with my kernel, you will get exactly the same behaviour with stock kernel of the same version.

My kernel is compiled from sony's open source kernel package, with kernel config that's identical (except few comment lines) to the one compiled in stock kernel.

My kernel patch only fixes kernel command line that comes from bootloader and hijacks trust zone api to mask the bootloader status to appear as still locked to firmware's userspace.

These changes hardly could have any influence on power saving behaviour.

Please flash the same version stock kernel and test again for deep sleep.

Could not be that caused by some app you've installed?

Most likely flashing magisk via twrp after flashing the patched pie kernel would disable verity too.

Using the image file - you have it under your control.

Flashing from twrp - some magisk scripting tries to detect if verity should be disabled or not.

Also a kernel image already containing magisk contains the setting of verity and encryption - not sure how that is used when flashing magisk again over it.

I tried it with my xz1c and verity was flipped from enabled to disabled - so the same effect (this time).

But as described, some detection is used, so the results might not always be the same.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] leonaheidern:
Hi j4nn

I unlocked my bootloader on 47.1.A.16.20 and lost my drm keys. I upgraded via newflasher_v13 to 47.2.A.4.45 Customised SG as that is where i am based and where my phone is from. Unfortunately when I flash boot-G8342-47.2.A.4.45-hideunlock-rooted.img my phone still boots up showing the device has been unlocked and the Backup and Restore feature of Xperia devices does not work. Am I correct to say if I lost my drm keys that I am unable to use this kernel to hide my bootloader unlock?

Thank you for answering me.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Mateoab:
Working fine on xz1 pie 47.2.A.6.30 with blx firmware, Kernel flashed with twrp, widevine is L1 now, and Bravia engine working
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=3263927]leonaheidern[/MENTION], the kernel would hide the unlocked bootloader regardless you lost drm keys or restored locked TA.

Please check you kernel build date when you boot your phone in about menu.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] lilbrat:
[MENTION=4418980]j4nn[/MENTION], I have a quick question and a bit off topic, I'm still tinkering a bit but I did manage to backup my ta. and I flashed janjan's so things may seem a bit off, (see pic).. but I did restore my ta. before flashing Jan's kernel, any idea what may happen if I flashed yours on top?

oh and everything is working..
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=4133204]lilbrat[/MENTION], I guess that the result would be the same if you flashed my kernel without flashing janjan's before it.

Just note please, my kernels as they are have verity enabled, so you need to have unmodified stock fw.

Or disable verity as hinted for alternative use.

With my kernel and restored TA your security screen would look perfect as with a still locked phone.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] lilbrat:
OK.. thanks for the info... now I have another question, now that xz1 has a new update out and granted it will take you a bit to catch up if you need to redo all your kernels you have going... (great work by the way) Will I need to reflash my ta. backup for the new firmware and or just your kernel?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] haiha2001:
- Video Image Enhancement app force close is from eXistenZ ?

- With stock, Video Image Enhancement work normally

- I have lost my DRM Key
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] lilbrat:
you can't lose your key unless you didn't do a backup..hmm
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] torben5247:
Dear [MENTION=4418980]j4nn[/MENTION].

Thank you very much for your work.

I would really like *.img file instead of the *.zip file.

is it to much to ask for a boot-G8341-47.2.A.10.80-hideunlock-rooted.img?

Thank you
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] nev4eh8959:
[MENTION=4418980]j4nn[/MENTION]

I'm currently on 10.80 and the unlock state bypass doesn't totally work for me. I've lost my drm keys.

First I reinstalled system with newflasher and patched kernel with TWRP 3.3.1, there were no error during the installation.

After installing your patch the OEM unlock can be toggled off but video enhancement and support services are still not available. How can I fix this?

Thank you so much for making this project !!
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Klaus N.:
Just want to let you know, that it works flawlessly!

Thanks alot for sharing :highfive:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] evildog1:
My question is coincidental. I noticed the latest FW is 47.2.A.10.80 that i checked on Xperiafirm hehe

Now let's try this kernel... for real. Just need good time because I use my phone daily :D
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=5219494]torben5247[/MENTION], could you please describe, what is your use case?

Maybe I can help you in some way.

[MENTION=10065771]nev4eh8959[/MENTION], this kernel does not provide a drmfix. Even thought it can be used in case of lost drm keys for installation of fota system update, the other drm conditioned features are obviously not working without your device master key. It is all mentioned in the OP.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] torben5247:
Dear [MENTION=4418980]j4nn[/MENTION]

Until now i have dirty flashed the updates using newflasher.

Then I have manually patched the boot.img provided by you in magisk manager. Unchecked the “preserve force encryption” and unchecked “preserve AVB 2.0/dm-verity”.

Flashed the boot.img in fastboot mode.

I think that is fairly simple, but the new method seems to be much more complicated. And that is why i am asking for the boot.img provided by you in *img format.

Thanks in advance and thank you for your work
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Parabellum23:
Same error
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] lilbrat:
go back to page 18, haiha2001 posted a link for a DS twrp, flash it then the kernel..
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Parabellum23:
I tried to flash it manually but i have error when starting a red triangle
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] lilbrat:
ok..now you lost me..
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=5219494]torben5247[/MENTION], your use is actually the easiest one now with the zipped kernel.

You can simply dirty flash stock fw as before, including stock kernel, enter twrp, flash a magisk, follow by flash of unlock hiding kernel in zip format and you are done (dm-verity disabled by default already from magisk).

Is not that even easier than before?

Do you still prefer the image format, where is a specific magisk version integrated?

I don't think so:)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Klaus N.:
[MENTION=4418980]j4nn[/MENTION]

It is really that easy - I did it this way a few days ago.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
Just released kernel-*-47.2.A.10.107-hideunlock.zip kernels (2019-07-01 patch level), available here.

Not tested, just built from sony sources released on 2019-08-09 - this time sony released sources without releasing the fw yet...

The changes in the kernel are quite limited (Qualcomm MSM V4L2 based video driver), so I guess it would work also with the older fw (10.80).

Please follow howto in this post for usage instructions.

Sources updated on my github here too.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Klaus N.:
You're faster than hell - at least faster than Sony with releasing their new fw :silly:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Klaus N.:
[MENTION=4418980]j4nn[/MENTION]

Just updated to 47.2.A.10.107 fw, installed the latest Magisk 19.4 (canary) and flashed your 47.2.A.10.107-hideunlock.zip - it went through like a charm, no issues, everything works as it should :svetius:

Nothing else expected - thanks for your ongoing support :highfive:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] SGH-i200:
Flash Magisk after kernel to remove verity check

I do install your kernel ZIP and after that the Magisk ZIP which will remove verity which is included in your kernel. Why should I flash the Magisk first?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=1995555]SGH-i200[/MENTION], the order works with both - oreo and pie. If you flash magisk as second one, it would be ok with pie, but not with oreo, where sony ric daemon would trigger a reboot due to magisk components be visible by ric process.

Therefore to have consistently working instructions across firmwares, the recommended order is magisk and then the hideunlock kernel zip.

The hideunlock kernel zip patches verity in hideunlock kernel according to state present in the kernel it replaces, so if magisk has been flashed already (either disabling verity or not in case of the explicit use via variable or if patched from manager gui), the verity state would be respected.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] LuxferreX:
Hey，buddy，thx for your nice job！

There is a little question on my XZ1 Dual.

I cannot flash the “kernel-G8342-47.2.A.10.80-hideunlock.zip” ，twrp will prompt an error.

I used a wrong twrp version？Because when connect my device to my computer under “Recovery”，it will display G8341.

I also try to flash it with Magisk.It is not work.

So，could you give me a hand，teach me how to do？

Thank you very much！
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] j4nn:
[MENTION=8206337]LuxferreX[/MENTION], it has been discussed here in the thread - you need twrp built for your dual variant. Most likely you are using twrp for single sim xz1 and therefore device detection fails. See here please.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] LuxferreX:
OK,thank you buddy.

You cleared my mind.

I will try it now!
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Parabellum23:
Same issue men. I tried the twrp from the lineage but it failed
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] sinkoo1979:
I have a SOV36. I have used your kernel to hide bootloader detection but can't update (stuck on February 2019 security patch). So I tried companion and it tells me that the bootloader is unlocked so can't use. I tried xperifirm to check for updates but no updates. So I flashed G8431 firmware and it works but the phone does not go to deep sleep. Any suggestions on how to stop the battery drain (No deep sleep and kernel draining the battery). Thanks in advance