yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact General] colaigor:
Found this boot bridge for mac users. you may try it and see if it works. Can't really tell you anything about drivers on mac since i never touched one.

Also mega file may be corrupted. You can try downloading from this comment where i downloaded openbl from

Do you have windows machine to try flashing ?
[Xperia Z1 Compact General] _Pano_:
yes, I try tomorrow using Windows 10, thanks
[Xperia Z1 Compact General] _Pano_:
ok, I flash .236 linked in your first post and then without rebooting or disconnecting the device I flash openbootloader and I see:

that's all? 1 second flash?
[Xperia Z1 Compact General] colaigor:
Sorry for late answer.

Does it work? I don't remember how much it took to flash tbh
[Xperia Z1 Compact General] _Pano_:
yes, after various attempts: after flashing .236 I had to disconect and reconnect the phone in order to flash openbootloader; otherwise it doens't flash
[Xperia Z1 Compact General] xjhayar09:
thank you for these tutorials..I now have a rooted z1compact lollipop 5.11 locked bootloaders..My question is how can I debloat my phone..I want to uninstall other system apps that I don't need and I want to install xposed on my own..sorry I am newbie
[Xperia Z1 Compact General] colaigor:
You can download Titanium backup from playstore and delete all that you dont need and keep what you nees. Also you can find twrp flashable script that deletes all bloatware. Just sreach xperia lolipop debloat script on xda.
[Xperia Z1 Compact General] xjhayar09:
thank you...I will try it later...By the way, do you know what version of xposed framework and arm that compatible in my z1c lollipop 5.1?
[Xperia Z1 Compact General] colaigor:
No idea. I dont use xposed nor lolipop so i cant tell you anything about it
[Xperia Z1 Compact General] xjhayar09:
okey thanks,,,may I know what version of android did u install to your z1c?? because you said you are not using lollipop version.
[Xperia Z1 Compact General] colaigor:
I use Lineage OS 14.1 by [MENTION=4120742]munjeni[/MENTION] (Nougat)

Best Rom out there. Camera better than stock (use opencamera app), great battery life, great optimization.

You can also try Oreo roms but they aren't as stable and camera is bad.

You will need unlocked bootloader for custom roms
[Xperia Z1 Compact General] xjhayar09:
thank you...I will try also that rom...I have tried MXrom and Dstriker rom in my z1c but I think there's a bug in GPS, because my GPS was not accurate when I using those roms so I decided to go back to stockrom..
[Xperia Z1 Compact General] ojacksonhill:
Root went away after installing .236

Hi there, I went through all the steps and achieved root, unlocked bootloader, etc. but then when I installed the 5.1.1.236 rom the root access disappeared. What should I do now?
[Xperia Z1 Compact General] ojacksonhill:
Worked it out!

I found out what to do, I just flashed the superSU zip from TWRP. Thanks heaps for the guide.
[Xperia Z1 Compact General] vo thai nguyen:
Someone can upload the TA backup file

Thanks !
[Xperia Z1 Compact General] colaigor:
You will hard brick your phone by flashing someone else's ta
[Xperia Z1 Compact General] derjango:
Step 3 generates the following error, how can I fix this or how can I be sure the TA BAckup is fine?

\\edit:

Solution

Download *.dll
[Xperia Z1 Compact General] vo thai nguyen:
Why does Stock 5.1 236 not have a drm fix kernel? I am very curious

Why does Stock 5.1 236 not have a drm fix kernel? I am very curious :confused:
[Xperia Z1 Compact General] derjango:
I found a solution how to start twrp in section 5: Problem description here

1) flash open bootloader

2) flash .236

3) flash twrp

boot from recovery twrp :good:

I never could flash the open bootloader after flashing .236 as described in section 5. But I was able to flash the open bootloader alone without anything beeing flashed before.

Probably that's what the author ment when he wrote FIRST flash open bootloader? And probably I could skip .236 as well and reduce everything to if I want a custom rom:

1) flash open bootloader

2) flash twrp

boot ffrom recovery
[Xperia Z1 Compact General] AnonA2:
OHGOD

ME: Follow steps, but probably without downloading second flash (on Android 4.4 there is way to disable sound focus through xposed module btw)

5. FLASHING REAL RECOVERY

(This is only for unlocked bootloader. If you opted to keep your bootloader locked or you don't want real recovery, go to step 6)

Real recovery is recovery that is written to recovery partition. By default you can't do that. You first need to flash open bootloader

This is how i did it you might try to skip step 5.2. If it doesn't work try again following all steps

5.1. Download THIS TWRP by 115ek and extract recovery image in new folder

ME: DO I NEED TO PRE–ROOT IT???? Its hard, can i just jump back to jelly beans?

5.2. Run Flashtool and flash 14.6.A.1.236 just like you did with .108 in first step

ME: Wrong, should be corrected, you must disconnect phone when you see Device Info in FlashTool on x64 OS in a virtual machine and then connect it to PC (green led, keep touching volume down and then connect USB, green led lights out once

5.3. Now without rebooting or disconnecting your phone flash THIS with flashtool just like you flashed system ftf-s.

5.4. Disconnect your phone and press volume up and connect your data cable. You should see blue led.

5.5. Now enter that folder where you extracted recovery image and press shift and right click in empty window area and sellect Open Command window here (Powershell for windows 10 users should work fine i think. Never used it)

5.6. Type fastboot flash recovery recovery.img and hit enter.

ME: OK, it took around fifteen minutes to configure and I am stuck there. Can I by TWRP install a superSU flashable, Xposed, AdAway? How to make flashable zips, by far I have succesfully changed only bootscreen on my Acer A1 811 – btw good tablet, but I can't solder power button, so its not for me.

5.6 The hardest part.

To reboot to recovery first disconnect your phone and hold volume down and power button. Release power button when phone vibrates but keep holding volume down until you see twrp logo.

I have posted over there questions because I can't root this second room, I has been being happy with that 4.4 ROM rooted. WHY didn't you prerooted for us image????? It should be pre–rooted. Help me. I am stuck. Its not easy to root device – its easy to flash device but not to root... Partition is read only and it keep booting into system instead TWRP. :(

Additional question: should I use Cyanogenmod or easier to install custom ROM, does it has advantages over stock one like higher volume or something?
[Xperia Z1 Compact General] Ps24u:
[MENTION=7458377]colaigor[/MENTION] : I'm on Z1C with "bootloader unlock allowed = no".

I installed TWRP using method you call "fake recovery".

Can a similar "fake" method be used to install Magisk instead of SuperSU?

I really wish to use Magisk on Z1C but it doesn't seem possible on device with "bootloader unlock allowed = no"..
[Xperia Z1 Compact General] colaigor:
Im pretty sure you can tho latest magisk build doesn't work for me on any rom. You should download 17.X and try. Read instructions there i think you have to wipe data or cashe not sure.
[Xperia Z1 Compact General] colaigor:
I don't understand your problem. There is no easy way to root stock lolipop without custom recovery. Thats only reason why we had to downgrade to kitkat.

Seems like i ain't only one who has low volume problem. I changed countless roms and 3 speaker units and it's still low. There is rom that can implement earpiece to work as speakers but i don't know about long term effects of that metod.

Also thank you for that info on step 5
[Xperia Z1 Compact General] Ps24u:
Thanks for your reply.

"on any rom", you're talking specifically about the Z1 Compact?

Because 18.x works just fine on my Z5 Compact (with unlocked bootloader).

The issue with my Z1 Compact is that bootloader cannot be unlocked (freaking carrier..) and so after I flash Magisk, the kernel is deemed modified and the phone doesn't boot anymore.

I wonder if 17.x makes any difference in this scenario then...
[Xperia Z1 Compact General] colaigor:
Yes i was talking about Z1C roms. I have spare motherboard that is carrier locked and i would love to assist you but i don't have spare display unfortunately. Tell me if you find any workaround.
[Xperia Z1 Compact General] AnonA2:
PROBLEM OCCURED HELP please!

https://xdaforums.com/xperia-z1/help/wtf-happened-to-phone-kernel-bootloop-t3908270

My phone is really ended?
[Xperia Z1 Compact General] colaigor:
Trust me, when it comes to software, this phone can't be killed. Even hard brick can be solved, there is thread somewhere. This seems like a soft brick or glitch or something. I don't REALLY understand tho. You can try to wipe whole internal storage from twrp (tick every box under advanced wipe except for sdcard) and flash another rom from sdcard.
[Xperia Z1 Compact General] Imaeda:
Hello,

I am stuck installing recovery, 2 signs that in no other thread had being discuss, at least i didnt found.

first in powershell i got the promt:

fastboot : The term 'fastboot' is not recognized as the name of a cmdlet, function, script file, or operable program.

Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

At line:1 char:1

+ fastboot flash recovery recovery.img

+ ~~~~~~~~

+ CategoryInfo : ObjectNotFound: (fastboot:String) [], CommandNotFoundException

+ FullyQualifiedErrorId : CommandNotFoundException

second, in fake recovey i got the promt :

MD5 no found

skiping MD5

failed to instal ....zip
[Xperia Z1 Compact General] lawrenceh:
Pre-rooted ZIP does cause boot loop if you don't tick Include Kernel in PRFCreator (unticked by default). Please add this detail to the second post.
[Xperia Z1 Compact General] ukros:
Fairly noob here. I once rooted a previous Xperia (M, I think) with towelroot, but haven't attempted anything similar since.

I'm trying to update my elderly Z1C, because when I looked at replacing it, I couldn't find anything that I liked better.

I've been reading up and trying to follow the steps in this guide, but have stumbled over some broken links in the intro section:

"Navigate to your C:\Flashtool\drivers and run Flashtool-drivers

Select Flashmode drivers, Fastboot drivers and Xperia Z1 Compact drivers and click install

Now download THIS and THIS and put it in C:\Users\username\.flashTool\firmwares"

"THIS and THIS" are both broken, with no clues as to what they were originally.

I assume that one of them would be a KitKat rom 14.4.A.0.108 and I've downloaded this one: https://xdaforums.com/sony-xperia-z1-compact/general/stock-rom-xperia-z1c-d5503-14-4-0-108-t2839005

Is that ok? But what was in the second link, please?

I hope that [MENTION=7458377]colaigor[/MENTION] or someone else can help me out.
[Xperia Z1 Compact General] colaigor:
I've retired my Z1C long time ago but I will look that up.

EDIT: I can access both links. They are mega files that I uploaded to my account because they were on confusing and non English sites. Here are the links

https://mega.nz/file/TBBXBaCa#haqmO0eoPRyL5Gnwih-6Cm0ZHJpq_pVc8enXr0oyw3E

https://mega.nz/file/yFggRSLR#FlvXI64Lt2OSs6wZ3VXy3IGa5v6ABhDqow707DQiomQ
[Xperia Z1 Compact General] ukros:
My sincere apologies. I got pages at mega.nz which said my browser was out of date and I mistakenly read them as being similar to those spam pages that say "Your Flash Player Needs Updating". Whereas, the site was actually referring to my outdated version of Edge that came pre-installed with Win10!

I see that the second download is 14.6.A.1.236 - which was the firmware you started from. Presumably I should find a copy of 5.1.1.236 as my recovery, as that is my current firmware level?
[Xperia Z1 Compact General] colaigor:
No worries!

I'm not quite sure what are you saying. .236 is latest and also last official z1 compact firmware. If you are talking about TWRP recovery version, download one from thread
[Xperia Z1 Compact General] pauliusval99:
I can't flash anything in Flashtool, whenever it asks me to reboot to flash mode, I do the volume down thing and the LED flashes red, then green, and turns off. Both adb and fastboot work just fine. I've tried a few different USB cables, different USB ports (my motherboard doesn't have any 2.0 ports so 3.0 has to do), it always does the same...
[Xperia Z1 Compact General] jho55:
Do you have real recovery which you get when updating to latest official lollipop firmware? If your bootloader is open, you can try to update to it via the sony emma tool. After that try to flash twrp.
[Xperia Z1 Compact General] pauliusval99:
The whole point of this thread is to not unlock your bootloader until you have a TA backup. I don't know what "real" recovery is - is there a "fake" recovery and a "real" recovery? :D I was on the latest official firmware, which is 5.1.

Anyway, I've already decided not to bother and just unlocked my bootloader the regular way. This phone is old enough so it has been out of warranty for a while now anyway.
[Xperia Z1 Compact General] jho55:
I have not suggested that! Next time be more polite.

When you update to latest official firmware, you get the "real" recovery how it is called and known for the z1 compact. The recovery was moved to an own partition I guess. That is why it was called "real" recovery.
[Xperia Z1 Compact General] pauliusval99:
I guess I was confused by your second sentence which started with "If your bootloader is open". Did you mean something else by "open"?
[Xperia Z1 Compact General] derjango:
==============================================

= =

= Easy Root Tool v12 =

= Supports various Xperia devices =

= created by zxz0O0 =

= =

= http://xdaforums.com/ =

= showthread.php?p=53448680 =

= =

= Many thanks to: =

= - [NUT] =

= - geohot =

= - MohammadAG =

= - cubeundcube =

= - nhnt11 =

= - xsacha =

= =

==============================================

=============================================

tr.apk not found. Trying to download from

https://towelroot.com/tr.apk

=============================================

######################################################################## 100,0%

=============================================

Extracting libexploit.so using 7z

=============================================

Error extracting libexploit.so from tr.apk

How can I fix this issue? Whats wrong with EasyRootTool
[Xperia Z1 Compact General] colaigor:
This post is quite outdated, most of the links dont work. I will get to it if i catch some time.
[Xperia Z1 Compact General] colaigor:
https://github.com/dosomder/Xperia-EasyRootTool/releases/download/12.4/EasyRootTool.v12.4.zip found the link on github, give it a try

i see alot of mistakes in this guide. i found my xperia and will do these steps tonight again to see what works and what doesnt
[Xperia Z1 Compact General] derjango:
Oh yea, that would be really nice @colaigor if u could update the thread and publish maybe working alternatives if they fail

best, dj
[Xperia Z1 Compact General] ramne:
post deleted
[Treble-Enabled Device Development A/AB ROMS] steven360:
I've finally figured this out!

This is a scientific breakthrough! Not really... lol

So, I've managed to make SafetyNet pass using a "custom" Magisk build.

I grabbed it from here and so far I've flashed this build and it coaxed SafetyNet into passing. On one treble ROM, ToxycOS, it completely made SafetyNet pass, both ctsProfile and basicIntegrity. On RR official though, it only made basicIntegrity pass. However, that's completely better than nothing at all!

This is how I got SafetyNet to pass completely, it only works if basicIntegrity is passing while ctsProfile if failing.

•Magisk builds: https://github.com/ianmacd/MagiskBuilds

•Magisk I flashed that got SafetyNet to pass: https://github.com/ianmacd/MagiskBuilds/blob/master/Magisk-v16.5-20180621-ianmacd.zip

•Guide to get SafetyNet to pass: https://github.com/phhusson/treble_experimentations/issues/116

Thanks to [MENTION=4470081]topjohnwu[/MENTION] for making Magisk possible :)

Big thanks to [MENTION=7187684]ianmacd[/MENTION] for making these Magisk builds
[Treble-Enabled Device Development A/AB ROMS] steven360:
Why did I post this?

I posted this because Magisk 16.6 kept on bootlooping for me, no matter what I did. I'm pretty sure it patches the kernel instead of the ramdisk so it causes a bootloop, again, not 100% sure what it's doing, but either way, it's bootlooping for me. These builds *hopefully* don't bootloop. I flashed 16.5 and it's working great. :)
[Treble-Enabled Device Development A/AB ROMS] k3jru:
yo you can always change the device's fingerprint in order to make safetynet pass using a magisk module
[Treble-Enabled Device Development A/AB ROMS] Ashley david:
Which version on 16.5 did you use i meant the build date
[Treble-Enabled Device Development A/AB ROMS] krlosoul:
adb debug working?

huawei p8 lite 2017

phh treble rom gsi vanilla v22
[Treble-Enabled Device Development A/AB ROMS] chrisaw:
Thanks to everyone but the guy who actually discovered and documented this? Hmph! :(
[Treble-Enabled Device Development A/AB ROMS] IonDEfeso:
It works on BDN-L34

I passed the test successfully following this guide.

I used a Huawei Mate SE (BND-L34) running phusson's [AOSP 8.1 - Phh-Treble] v22. Then downloaded iammacd'smagisk build that the op provided and zip flashed it through TWRP. Then logged on android and uninstalled the magisk manager app (which was an older version) and then downloaded the newest one available and installed it as an apk. After that I opened the app and went to "downloads" and looked for MagiskHide Props, installed the module and rebooted phone. Then as the op did, I followed cawilliamson's instructions on how to set up MagiskHide Props the only difference being that I set up the fingerprint using Huawei mate 9 since Honor 7x were not listed.

I was running and failing at different points the SafetyNet test until I completed the process. Thats it, thanks to crayonicle for research and compiling such great information and to the other people that made it possible. :good: :cool:
[Treble-Enabled Device Development A/AB ROMS] mcc2005:
Have an Mate 9. What can I do for now? The Magisk-v16.5-20180621-ianmacd.zip dosen´t work for me. It´s bootloped!
[Treble-Enabled Device Development A/AB ROMS] steven360:
I got his permission to post this on Telegram. :)

Don't worry.

It seems to be. You can always try and test it yourself.

2018-6-21
[Treble-Enabled Device Development A/AB ROMS] IonDEfeso:
BTW ive just updated to the "MagiskManager-v16.8-2018071902" which is ianmacd's lastest build posted and (first of all isnt bootlooping) and is also passing all of the SafetyNet tests. Also installed the lastest version of the Magisk Manager app 5.8.3 (129) successfully. Not sure if is helpful to report that but since it boot-looped me when I tried to update it last time, so now I consider it an achievement lol. I first uninstalled magisk manager through android uninstall (not the magisk uninstall, which unroots you and delete modules) then installed the new version manually.

-----------------------------------------------------------------------

I am no expert but what ROM are you running? I used to have RRO v6 and the boot loping happened to me when I updated magisk to lastest version through the app. Try flashing the older magisk you had before?

If not I think you will have to go back to stock which is what I had to do when that happened to me. I used a stock oreo zip rom for my device (BND-L34) and this guide now since you have the MATE 9 I dont know what the procedures and files needed for that one.
[Treble-Enabled Device Development A/AB ROMS] IonDEfeso:
Using a BDN-L34 (Mate SE)

Back to report that I successfully flashed [8.1.0][TREBLE] Pixel Experience [AOSP][r36][2018/07/14] by jhenrique09 (8.1.0-20180714-0200-OFFICIAL) and sucessfully installed the last Magisk version (and app) and passed all the tests (even better it help me bypass the "google uncertified device" messages i was getting). To pass the SafetyNet I downloaded the MagiskHide on the Magisk app "Downloads" then ran a terminal emulator with the following commands.

su
props

Then only needed to set the fingerprint by doing:

1 > F > * > ** > Y > Y (This last option will make the device reboot, needed to pass SafetyNet, but you can reboot later by writing N)

*Note that you need to select your phones brand in the options given there.

**Select your phone model (or any other model with the same fingerprint reader or compatibility, guess you can try out different models and check if any works, at your own risk though, I dont know if there could be grave repercussions.)
[Treble-Enabled Device Development A/AB ROMS] steven360:
You dont exactly need to select your device model. I followed this guide using an Honor 7x. Worked well.
[Treble-Enabled Device Development A/AB ROMS] IonDEfeso:
Yeah I selected honor 9 for my Mate SE, I just mentioned that since I dont know how serious would it be the implications of selecting a totally different model for another phone but yeah just didn't wanted to tell people to select whatever and then suddenly their fingerprint isn't working or something like that haha. Btw i used the same guide you provided the first time i did everything he pointed but then realized that only the first step was enough so only did that.
[Treble-Enabled Device Development A/AB ROMS] HourlongTuna5:
I did it on a Moto G5 with the latest Viper OS Oreo release, it doesn't work, can you help me please? :D
[Treble-Enabled Device Development A/AB ROMS] steven360:
I'm afraid that this fix might be for Huawei only (no proof yet), maybe perhaps you can try with a similar moto phone?