yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=3616065]PeppeBove[/MENTION], did you flash twrp or just 'fastboot boot' it?

To enter twrp which has been flashed to recovery partition you need to power off the phone and hold power and vol- buttons at the same time until it starts booting.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
new format of hideunlock kernels flashable to multi fw versions

Please see here for kernels released in AnyKernel3 zip format (flashable via twrp) together with howto for that there.

This allows to release the kernels without ramdisk and without magisk pre-root, giving flexibility to try to flash/use the kernel not only with the fw version it has been built for, but allows users to test if the kernel could be compatible/working also with the next stock fw as released by sony. Similarly one may choose a preffered magisk version as some need older for some modules compatibility while others prefer the latest one. Or some might even preffer just to hide bootloader unlock state without magisk flashed. All that should be possible now.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] PeppeBove:
I just flash your kernel with magisk patch. Do I have to do anything else to have twrp?

Inviato dal mio G8441 utilizzando Tapatalk
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=3616065]PeppeBove[/MENTION], you need to flash twrp first in order to be able to enter it via that keys combo on power up.

fastboot flash recovery twrp.img

Or you can load it from usb (works only when conntected to PC):

adb reboot bootloader

fastboot reboot bootloader

fastboot boot twrp.img
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] SRV.Vietnamese:
Can you make a 47.1.A.12.75 hiding bootloader kernel, or let me know how to create it? I follow your instruction to unlock bootloader and update through OTA, but my XZ1C only check for this version, not the latest Oreo 47.1.A.16.20. And now I'm stuck with 47.1.A.12.75, cannot update or root :(
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
Just released kernel-*-47.2.A.10.80-hideunlock.zip kernels, available here.

Not tested, just built from sony sources finally released today.

The 47.2.A.10.80 fw version provides 2019-06-01 os patch level.

Please follow howto in this post for usage instructions.

Sources updated on my github here too.

Edit: updated the download links in the post#2.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] nev4eh8959:
I'm having trouble bypassing the unlock detection, I'm on 47.2.A.10.80 and I flashed the zip with TWRP twrp-3.3.1-0-poplar_dsds. The system lets me use part of the locked features(update preinstalled apps, the OEM unlock can be toggled off in the developer options), but I still can't use some other function(messenger encrypted messages, video enhancement, Xperia backup).

Is this normal? Can someone help me with the problem? Thank you!!
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] torben5247:
Hi [MENTION=4418980]j4nn[/MENTION].

I would really appreciate if you could do a boot-G8341-47.2.A.10.80-hideunlock-rooted.img file.

I think it is easier to flash that in fastboot mode instead of the new method with a *.zip file.

thanks for your work
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] nev4eh8959:
Sorry I mistaken this as the XZ1 thread, my bad. Please ignore this question.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mcraeally44:
Hello,

Having purchased my XZ1 Compact almost 1.5 year ago, I decided to unlock the bootloader and root it. The main reason behind it is that I would be able to move some of the apps to the SD card and fully enable the camera2 features. The main thing that holds me back is the risk of loosing the ability to use my mobile phone to make payments via NFC on daily basis (I use ING banking app to make payments).

Would you guys be able to confirm whether I would still be able to make those after having my phone rooted?

Many thanks in advance!

Jack
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=3132595]mcraeally44[/MENTION], since I do not use (nor tested) google pay, I cannot provide direct answers.

But [MENTION=4688377]russel5[/MENTION] did some testing in that area, I believe he could confirm.

I believe the last result has been that it can be made working, if Android Attest key is destroyed on purpose.

The problem is that latest google services are already using Android hw Attestation to confirm if a device is still locked or not.

This cannot be faked if Android Attest key is present and working on an unlocked phone as checked with patched Auditor app (see Android Attest key lost thread for more details) - even unlock hiding kernel cannot hide unlock because android attest key signs only true state in trust zone already, so no way to patch that.

Destroying the key seems to be a one way option - it seems to be kept in 'persist' partition, but restoring that from a backup seems not to bring the key to working state back.

So if anybody intends to destroy the Android Attest key, please contact me, maybe we can test few more things to backup and possibly restore the key.

Reading the forum, I am not sure, if anybody can achieve camera2 api with raw support - might be only with aosp but even that case I am not sure about.

Similarly moving apps to SD card seems still to be a problem as discussed few times in LOS16 thread.

Just be sure to backup your locked TA before you do the unlock of your bootloader.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] russel5:
If you unlock your bootloader and not flash persist partition your android attest keys is working, BUT all spec tools known that your bootloader is unlocked and you can't hide this info. If your bootloader is unlocked and you flash persist partition your android attest keys is not working, BUT you can hide your unlock status from spec tools.

If you delete your android attest keys you never restore it, even if you have backup of working keys.

I'm try all of this what I'm post here and I'm known what I'm telling
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=4688377]russel5[/MENTION], [MENTION=3132595]mcraeally44[/MENTION], just a note: I would not recommend flashing perist.sin as a way to destroy Android Attest Key - it is possible to do so, it's a sure way to remove the key, but there are other factory preset data, that may get lost in the process.

The key can probably be removed by selectively deleting specific files only from the /persist partition. This would be one way to test.

But I would like to test bind mounting cloned directory and restarting few processes to "disable the key" on runtime, to see, if the key can be "removed" temporarily without actually making any physical changes on the persist partition.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Amirul_1610:
XZs (G8232) support?

Will you release a patched kernel and workaround for XZs?

Would love to have it rooted with all DRM features working
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=6818483]Amirul_1610[/MENTION], a workaround? Not sure what you mean. The patched kernel - no, I do not plan supporting yet another target.

As discussed few times already in this thread, it's not easily possible to port the temp root exploit to other cpu, so I am afraid you are out of luck with drm keys backup, sorry.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] albenex:
Dear j4nn, in April i confirmed that listed kernel was ok for my setup (hideunlock & no-root).. however i saw that you didn't update experimental folder..

so do you confirm latest kernel-G8441-47.2.A.10.107-hideunlock.zip features the same? or it's a pre-rooted kernel too?

thanks in advance.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=5171695]albenex[/MENTION], the kernels in .zip are not pre-rooted anymore.

Please see here for updated instructions and details.

If you need to hide bootloader unlock without use of magisk, that's fine, just have unmodified stock fw on the phone and boot into twrp via fastboot without flashing it and flash the zip from there. Just reboot to fastboot via adb or via fastboot command if fastboot entered by hand to be able to 'fastboot boot twrp.img'.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] albenex:
ok, thanks [MENTION=4418980]j4nn[/MENTION].

i've successfully flashed latest kernel on latest build A.2.10.107. bank apps still working.

great work ^_^
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] alpha_developer:
Hi there,

I am not able to complete my FOTA update from 47.2.A.10.80 to .107 .

Before describing the problem, let me assure you the steps I did are right :

1. fastboot to twrp recovery

2. backup stock boot and recovery (each 64MB) to sd card

3. flash magisk

4. flash your kernel for .80 [EDIT : my dm-verify was disabled here]

5. reboot normal.

Then when I received the update .107, this is was I did:

1. downloaded the update (not continue to install yet)

2. fastboot twrp recovery

3. extract the kernel-hideunlock.img as per your commands and pull it

4. restore boot and recovery from backup.

5. fastboot boot kernel-hidelunlock.img

Then when it booted, I tap on continue to install the update. Then it showed dialog parsing packing and rebooted.

Here's the problem:

when it reboots, it shows verifying installation for few seconds and then reboot to main system.. it does not install the update.

Have I done something wrong ?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=10083598]alpha_developer[/MENTION], I am not sure what you mean by point 4. in your second paragraph.

If you mean point 7. from this guide, you would retrieve stock kernel, not hideunlock kernel image, because you had restored stock images just before trying to retrieve hideunlock image. You need to follow the order that is in the guide.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] alpha_developer:
I meant it from this guide -> link. I do the step seven and then continue to next steps..

I just run the code you pasted there, and the steps.

and that's the problem i get.

Problem :when it reboots, it shows verifying installation for few seconds and then reboot to main system.. it does not install the update.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
well the step 7. says it clear, you need to retrieve hideunlock kernel image _before_ you restore stock kernel and recovery images from your backup

if you did it in the order that you had described it above, your hideunlock kernel image extract would not hide the unlock because it would be a stock kernel
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
updated the links in the post#2
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] alpha_developer:
I will try again and let you know... thanks btw

[BTW (out of topic) I have given the vote for your poll ]
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=10083598]alpha_developer[/MENTION], just 'fastboot boot your_hideunlock_kernel_extract.img' to verify, that it actually hides the unlock in security service menu (reboot to fastboot by a command to be able to boot it).

The poll is obsolete now, when we have the kernel in twrp flashable .zip, it is usable for all use cases and does not require me to download 13GB of stock firmware images in order to extract and integrate stock ramdisk in hideunlock kernel in .img format for all the phone models (xzc,xz1,xz1dual,xzp,xzpdual). Also allowed to release hideunlock kernel before stock fw was available (as sony this time released the kernel sources some days before making stock fw available).

-- edit --

If the verification fails, it may also indicate a change in stock firmware - if you flashed something in twrp before (except the hideunlock kernel and magisk) or modify something via root.

In order to be able to detect the not wanted change soon enough it is recommended to run with verity on - it's a bit more complicated to achieve, but a change in fw would be detected sooner, not only when you eventually try to install fota system update.

You may try to flash stock parts of the .80 fw in order to find, which component is not virgin stock - if you have the hideunlock.img of .80 working as verified above, you can place just kernel.sin only into newflasher directory and flash only the stock kernel, then 'fastboot boot hideunlock_kernel.img' and try fota install. If it fails, flash 'fotakernel.sin' only from stock .80 fw and again fastboot boot hideunlock kernel. Similarly flash 'system.sin' and retry. If it still fails, flash 'vendor.sin' from .80 and retry. When it passes, you know which component(s) has been modified/not stock.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Jason Nino:
Help

Hello guys

I Will try to do this but I'm not sure for the steps

1. Should I flash a new ftf file oreo version

I'm currently running 47. 2.A.10. 45 pie version

I flash the right kernel for my version but when I updating its only restarting and nothing happen

2. Should I flash the kernel then before showing the restart I should do the fastboot at the same time? (hold the vol +) then do the (fastboot reboot bootloader) and flash the kernel again?

Thanks in advance.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=7119316]Jason Nino[/MENTION], see the post right above yours please.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] handasan10:
Thanks [MENTION=4418980]j4nn[/MENTION] with this kernel also fix screen mirroring problem, connect instantly on latest 47.2.A10.107
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] shtefus:
Unable to hide unlock bootloader

I have followed the steps in here 1-5 https://xdaforums.com/showpost.php?p=79880858&postcount=1029 (install stock firmware, enable adb access, fastboot boot twrp.img, twrp flash hideunlock zip) but I am unable to hide the bootloader unlocked warning and the video enhancements do not work and also some apps do not appear in the app store like previously. I did not backup stock kernel and stock recovery partition from usb booted twrp is this mandatory since I only need the DRM functions the colors on my phone display look wrong. I have flashed using the latest flashtool file 47.2.A.10.107 DE firmware .ftf file and kernel-G8441-47.2.A.10.107-hideunlock.zip but nothing changes. I do not have a sd card so I put the magisk and hideunlock zip file in the download or twrp folder. I have tried with or without magisk to install from twrp also from booted usb and from recovery and it says dm-verity disabled. I have also followed the steps from Flashing with dm-verity enabled but no success it still says dm-verity disabled. What am I doing wrong?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=10189483]shtefus[/MENTION], the blu hiding kernel never hides bootloader warning screen on boot - that cannot be hidden, it is displayed by bootloader itself before it starts the kernel.

My kernel hides the unlock status on fw runtime. For video enhancements this is only one requirement, the other essential pre-requisite is that you have drm keys restored from TA-locked.img backup.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] shtefus:
Hello again so you mean for video enhancements to work I just need to flash the zip and the DRM keys are only needed for FOTA updates?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=10189483]shtefus[/MENTION], no, it is the opposite: for video enhancements (and other functions like wifi display, for example) you need both - restored drm keys (locked TA backup) and the kernel hiding BL unlock.

For ota updates, it is sufficient just the kernel hiding BL unlock, booted via 'fastboot boot' while having completely stock fw on the phone (not modified in any way, including kernel and recovery/fotakernel stock too).
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] fred0r:
Updated to 47.2.A.11.228 'manually' via newflasher from the latest release - removed https://i.imgur.com/CbcKXhI.png before.

Did Sony release the Kernel-Sources this Time ?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
Source not yet available...
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Gameninja:
Downloading accurate firmware

Hey guys,

So I'm at step ten of this guide but now im not really sure how I'm gonna get the right firmware, I've already searched for a bit but didn't really find anything, help appreciated.

Kind regards,

Michael
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=7151582]Gameninja[/MENTION], you can download full stock fw with xperifirm. And flash it with newflasher. You may try updating via fota using the updated workflow for use of kernel hiding bootloader unlock with fota installation.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
Updated the post#2 with release of kernel hiding bootloader unlock for 47.2.A.11.228 fw version.

Source code updated too.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] albenex:
trying to re-follow same procedure for newer fw/kernel.

flashed stock fw as usual.. but i get stuck while booting twrp.

i tried twrp-3.2.3-0-lilac bumtest and also 3.3.1-0 with no success. it just get stuck on sony logo. forcing reboot will load system as usual.

edit:

at 3rd attempt i got it working:

after booting in fastboot mode i made first a "fastboot reboot-bootloader" then "fastboot boot twrp.img" and it worked.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] fred0r:
Maybe i'm blind, but i cannot find any ".228" on the first page of this thread.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
You are not blind, it is not there. I do not see it either now.

But I am 100% sure it was there yesterday.

Similarly as in the xz1 thread, similar complaint there.

I guess xda has reverted some changes, I am very sure I checked the links right after posting in both cases.

-- edit --

Added the link again.

:(
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] fred0r:
Thank you.

I would like to use Snoopsnitch on this Device.

Would it be possible, that you enable DIAG_CHAR in the current and upcoming Kernels - or do you consider it as too insecure ?
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=4353139]fred0r[/MENTION], DIAG_CHAR has always been enabled in sony stock kernels, no need to add anything:

$ grep DIAG_CHAR kernel.config
CONFIG_DIAG_CHAR=y
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] fred0r:
Hm - strange.

I know this if offtopic, but when using the 'Mobile Network Info' that App tells me, that DIAG_CHAR is missing.

Perhaps a Magisk-Problem.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] Gameninja:
Downloading accurate Firmware

Thanks for the reply, I already know about xperifirm but I was thinking about downloading a firmware with which i could install the already rooted kernel but as I noticed later I could just flash magisk and would have the same result xD

Kind regards,

Michael
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] fred0r:
Just to complete this:

The Device isnt supported by Snoopsnitch.
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] mcmanuf:
DM-Verity enabled, and mounting of /system

Hi,

I followed the guide main topic and post #1029 https://xdaforums.com/showpost.php?p=79880858&postcount=1029 to the letter, and enabled dm-verity.

I did this in order to be able to update with FOTA in the future.

I am on Pie 47.2.A.11.228.

I have some questions:

1) Does dm-verity enabled ensure that I can always enable flash fota? Does it prevent writing to /system and /vendor ?

2) By mistake i installed a root program (cf. lumen) and gave it root permissions. I suspect this program has manipulated /system partition.

If dm-verity does not prevent writing to /system partition, then how can I verify that the root program has no manipulated /system partition? Is it somehow possible to verif integrity for FOTA ?

3) In case its game over and the root program actually did manipulate /system. Then how can i revert to "stock" system partition? Do I flash with newflasher, and just avoid flashing data as to not to reinstall all my apps?

Or do i make a nandroid backup, flash with newflasher, and then restore android backup?

Thanks
[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] j4nn:
[MENTION=1958376]mcmanuf[/MENTION], here few answers:

1) No, it does not ensure. Most likely it does not prevent either, but I am not 100% sure.

If there was a write, it depends, if the modified sectors are read on next boot up and how big the changes were.

dm-verity is sometime able to fix the changes, due to redundancy checksums.

Otherwise you get a red triangle corruption screen on boot, you may be offered to continue to boot anyway.

That time you would know, something did a write into system/vendor partitions. The advantage is that you most likely would notice that very soon after the write.

If dm-verity is off, you may never find, what app or what action did a change in system/vendor.

2) If your system boots up without any warning (not counting the unlocked bootloader warning screen), it's most likely ok.

I am afraid there is no easy way to do a check before fota. But fota system upgrade does it's verification in the beginning and fails in case there was a change. So you can simply try and see.

3) You can revert the changes by flashing particular partitions with newflasher.

If the change was in system, you would put only system*.sin file in a directory with newflasher to flash it. Similarly for vendor*.sin. If you do not flash userdata.*sin, you would not loose any data, while flashing files from the same version of fw as runs on the phone.

Unfortunately there is a bug in twrp recovery, so even if you would not flash it, but just only booted via 'fastboot boot', it still would make a write making fota not working - see here for more details, where I've posted a patch with a fix.

So currently if you booted twrp, you would need to flash oem*.sin and adspso*.sin with newflasher to revert the changes done by just booted twrp mounting oem and dsp partitions.
[Samsung Galaxy S9+ Guides, News, & Discussion] GuestK00182:
Received the update today on my S9+ with ZTO firmware.
[Samsung Galaxy S9+ Guides, News, & Discussion] heisenberg17:
Can't wait for someone to upload the firmware! I'm rooted so I can't update via OTA
[Samsung Galaxy S9+ Guides, News, & Discussion] talampaya:
please someone upload the firmware, no update here in Argentina.
[Samsung Galaxy S9+ Guides, News, & Discussion] chalofito:
Oh God!!! this is impressive, I hope soon the firmware will be published to install on my CSC TCE MXO device. Thanks for the great news. :victory:
[Samsung Galaxy S9+ Guides, News, & Discussion] klanbo78:
About time....6 weeks behind the G960F / G965F! I bought a G965F (the Exynos Variant of the S9+) which has Pie already, but definitely seems slower than the Snapdragon variant.
[Samsung Galaxy S9+ Guides, News, & Discussion] xhhb:
Just installed yesterday, and now VOLTE is working! MXO didn't have VOLTE enabled, only TCE, but I hate the bloatware telcel puts on it, ALV...

Now im happy that Samsung enabled volte on MXO CSC, too
[Samsung Galaxy S9+ Guides, News, & Discussion] chalofito:
Where did you get the firmware link? I would like to try, can you help me?:fingers-crossed:
[Samsung Galaxy S9+ Guides, News, & Discussion] CnBkrtl:
Still nothing on sammobile or other sources. If someone find a link or files please share whit us.
[Samsung Galaxy S9+ Guides, News, & Discussion] Dieexe:
Good news! Firmwares are now available to download on SamFirm
[Samsung Galaxy S9+ Guides, News, & Discussion] CnBkrtl:
Thanks downloading now. I don't want waiting anymore sam.asia for pie release. They are to slow, i don't buying any asia variants again.
[Samsung Galaxy S9+ Guides, News, & Discussion] thiagomed:
This version is stable? No bugs, issues, problems?

---------- Post added at 12:55 PM ---------- Previous post was at 12:03 PM ----------

Wich provider do you use here in Brazil? I'm from VIVO and didn't receive that update.