How to disable dm-verity? - Lenovo K6 / K6 Power / K6 Note Questions & Answers

Hi. My phone k33a48, i tried disabling dm-verity in adb command not working error message: verity cannot be disabled/enabled - user build ( build prop enabling userdebug). Flashing the lazyflasher and force encrypt disabler not disabling verity. Red wolf trwp functional dm verity but no booting my model to wolf recovery. dm-verity blocking mount to rw / system in ES File explorer and adb remount command. Has someone blocked it successfully?

secureboot
you need to make changes to kernel in order to close the kernel can help here

Related

Pictorial Guide: E58xx Android 7.1.2+ [Root + Recovery + Magisk + DRM + SafetyNet]

E5803/E5823
Android Nougat 7.1.2+ Bootable Recovery
(TWRP) Android Bootable Recovery v3.1.1-0
NB:14OCT17 - I will be rebuilding the base Recovery Image, as it was using a mix of 7.1.2 for Omnirom and TWRP, and 7.1.1 r17, while I'm still technically ahead of the Sony AOSP, they are now using 7.1.1 r55
13 OCTOBER 2017
Step 1 - Get correct files
Step 2 - Read & know to use exact same process, without going back to Lollipop to relock the bootloader.
Step 3 - Flash correct recovery to recovery partition 'fastboot flash recovery CRC#######v-###.img'
A OR B, NOT BOTH
Step 4a - Rootkernel the 324A0160Kernel Elf and patch it for DM Verity & Sony RIC Disable, and 'Fastboot flash boot 324A0160KernelElf.img'
Step 4b - Rootkernel the 324A154 Kernel Elf and patch it for DM Verity & Sony RIC Disable, and 'Fastboot flash boot 324A154KernelElf.img'
Step 5 - Install Magisk v14 via TWRP Recovery.
Done.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
See you all next Patch
13OCTOBER2017
Recovery Build v2.1.54 is complete for FTF 32.4.A.1.54 - currently untested by me, but should be ok - I'll be testing 2 versions, there'll be another coming up in a few days - it's related to Device Encryption & Location for Blocks. This version is basically the updated recovery build, with all the same settings, but correct partitions. The next release will test the Device Encryption Location, from /dev/block/data (what it is currently), to /dev/block/dm-0
I'll be testing Flashing and Installing of Magisk with both of my devices and using different methods to test flexibility in capturing the boot image and hash.
Got other things to do currently and my laptop is still in bits and pieces - this was just done to get something out of the way and working.
There's new partitions you should be able to see in Recovery, in addition to the extra ones I had originally.
The 'Misc' partition from Lollipop is back, and FOTAKernel has been renamed to 'recovery'. Everything else is labelled overthetop style.
Back everything up. Once you get a good recovery and successful restore, then you can skimp out and just backup the 'userdata' partition which is now called 'data'..
Expect another update if Sony are nice, and decide to patch the Bluetooth security flaws... While I was building, the bluetooth directories compiled with no errors - and I was getting most faults with QCOM stuff because I had quad and tri merges happening (just the way I set up my mirrors)- but it means that Bluetooth wasn't really touched . CVE-2017-0781 ... CVE-2017-0785.
I could be wrong, and patches could have been included.
Initial Tests:
Installing Magisk.zip in Recovery without disabling Sony RIC or DM Verity will cause the device to become unstable.
Currently - it's looking like a similar process to lock boot loader, for clean install, and patch of boot image to disable RIC and Verity.
I have access to all functions in TWRP and have done a successful restore and backup.
CRCD0FF4662-recovery-v2.1.54.img is attached to the post.
====================​Device Targets
FTF 32.4.A.0.160 ONLY
CRC81D43A45-recovery-v1.1
Magisk: v14.0
Magisk Manager: v5.3.0
====================
====================​Device Targets
FTF 32.4.A.1.54 ONLY - Magisk Requires RIC & Verity Disabled Prior to Installing in Recovery
CRCD0FF4662-recovery-v2.1.54
Magisk: v14.0
Magisk Manager: v5.3.0
====================​
12OCTOBER2017
Don't go updating to 32.4.A.1.54 and trying to use the recovery here... much breakage... much change... (actually - the changes I saw I actually added a while ago in FSTAB which is probably why things weren't breaking compared to other recovery with Magisk.... busy making the recovery at the moment but the repo has shifted things so I'll do it over the weekend because I'm busy doing Windows PE programming) Recap. Don't upgrade to 32.4.A.1.54 and use this recovery -- read the rainbow colour device targets above... don't mix and match
13OCT2017: Recovery is compiling for 32.4.A.1.54 ... I screwed up my laptop and I accidentally Raided my storage drive, so my build disk is not on a SSD.. it should be done in an hour or so
MINI ANNOUNCEMENT: 04 OCTOBER 2017
NOTE: Decryption may fail during boot to recovery - currently investigating - Reinstallation of Magisk or Google FOTA Updates may trigger a crash and password properties may be lost somewhere
MINI ANNOUNCEMENT: 26 SEPTEMBER 2017
Device and SD Card Encryption is fully functional.
CURRENT ANNOUNCEMENT: 8 SEPTEMBER 2017
Magisk Manager 5.3.0 and Magisk v14.0 is out.
New feature for Magisk Manager Hide and Unhide.
Load for this is different to previous.
Use Magisk 5.1.1 In-App Auto Download and Install zip package v14.0
Take a Backup beforehand.
The intrinsic nature will make future ad-lib/on the go Root/CTS pass more complex, but perhaps easier to Complete Uninstall in Recovery, Reboot Cycle, and Install v14.0 in Recovery - with less errors to previous versions. (I haven't completely zeroed all errors on my other device that I purposely broke beyond broken.. doing some extreme hide/unhide testing).
Leaving APK 5.1.1 attached for users to leapfrog
Here's a sample of the broken device getting back to Root Access + CTS
PREVIOUS ANNOUNCEMENT LOG
ANNOUNCEMENT: 28 JULY 2017
Added temperature example in TWRP.
CTS Pass. All MMC blocks are R/W. may cause bugs - to revert permissions, Magisk Manager must set "Mount namespace mode":
All root sessions use the global mount namespace
Following the procedure with Magisk Manager 4.3.3 and Magisk v12.0 installed:
Install 5.1.1 APK.
Launch Magisk Manager and accept 13.3 download and install.
Users experiencing problems with adaptive brightness must use Magisk hide for com.qualcomm.cabl, and an example of temperature difference with Global R/W on eMMC blocks
ANNOUNCEMENT: 13 JULY 2017 Regarding Magisk eMMC Global R/W changes to v13.1
Magisk Manager 5.0.4 is able to be installed via APK attachment & Magisk v12.0 Only with 81D43A45-recovery-v1.1
I'm working on getting v13.1+(E5823) on to the device without problems. Further reading may be done further in the thread regarding the issue below.
topjohnwu said:
- [General] Unlock all block devices for read-write support instead of emmc only (just figured not all devices uses emmc lol)
Click to expand...
Click to collapse
One of the distinct behaviours; Qualcomm Adaptive Brightness - sensitivity & lag - The gradient isn't smooth as it should be, and is erratic (AND EXCESSIVE HEAT)
This is a preview for the short debrief - and there are video examples to view. Read more here: https://forum.xda-developers.com/z5...at-7-0-android-bootable-t3609358/post73005789
NeoBeum said:
POST VIDEOS
Click to expand...
Click to collapse
====================​
PREVIOUS ANNOUNCEMENT LOG
17 JULY 2017
CTS Failure. All versions
There's some changes to NFC stack that I'll be adding later this week
ANNOUNCEMENT: 11 JULY 2017 - 20:00 ACST UTC+09:30
Do not flash or install Magisk 13.1 - Manager 5.0.4
I noticed my device acting strange - so I ran through everything on my phone - and I'm retracting the announcement earlier as a recommendation.
I'll try and iron out what exactly is at fault - but for now - just stay at MagiskSU 12.0 and MManager 4.4.3
Appologies to anyone who managed to get 5.0.4 working.
I might head over to the Magisk thread and see if there are any others encountering the problems I see.
I'm going to leave the APK and previous annoucement recorded, for users who aren't bothered by things not really being exactly as they should be.
NB: I found exactly what I was looking for written in the Change Log, after I briefly skimmed through 10 pages of problems today @ the Magisk Board.
This will cause conflicts for future changes in TWRP and Sony Firmware - so it's up to you, how you proceed - but the result will be a repeat of Marshmallow to Nougat problems.
topjohnwu said:
- [General] Unlock all block devices for read-write support instead of emmc only (just figured not all devices uses emmc lol)
Click to expand...
Click to collapse
One of the distinct behaviours; Qualcomm Adaptive Brightness - sensitivity & lag - The gradient isn't smooth as it should be, and is erratic
Device heat
Security & Play Services background updates - sometimes causes the phone to suddenly reboot
WLAN/BT/NFC - RFCOMM - UID errors
Possible errors during restore and backup function in TWRP - possible that file permissions and attributes are or aren't transferred inheritance R/W
ANNOUNCEMENT - 08 JULY 2017
Sony made some changes to Init and Sec Pol for Audio. Now included in build CRC81D43A45-recovery-v1.1
If you've already followed this guide to flash v1.0, there's no need to repeat everything - just use:
Code:
fastboot flash recovery recovery.img
I've also started on the Omnirom port, so my GitHub will be updated soon.
ANNOUNCEMENT - 11 JULY 2017 - See also 08JUL17 Announcement
Magisk 13.1 is out - with Manager 5.0.4.
For experienced users, you can manually update. APK attached. Turn off core mode, and hide and modules before install. I don't use modules, but that's probably the best option.
I will update guide soon. If you don't upgrade correctly, you will lose CTS and Root. I did this live, without a PC.
NB: I've now done both of my devices, and can confirm that an improper installation by Initiating the 13.1 Install from within Magisk Manager 4.3.3 will cause overheating. Modules and Core Only must be unloaded and Off, and APK installation must be done first after confirming modules are disabled. 13.1 zip file may then be installed in Recovery, to update SU binary, and Installation from inside Manager 5.0.4 needs to be initiated and will require 2 powercycles to load in to Magisk Hide with Core Only Disabled, for CTS Pass.
Update 4/7/2016 - Happy 4th of July to the Yanks... Here's a present from Down Under.
TWRP 3.1.1 on Android 7.1.1 Firmware 32.4.A.0.160 - I'm using the source for Android 7.1.2 R17
I'll update the build later this week and upload an image - as I'm cleaning up the process and making sure everything is working properly. I started again from scratch on 32.0.A.6.200 going all the way to 32.4.A.0.160. My GitHub doesn't have the source at the moment, because I'm rebuilding my Build Environment, so I can switch between Omnirom and AOSP using the same Repo. I'm just working out the best way to sync without fetch errors.
====================
______________________________
Users on Android Nougat 7.0 (32.3.A.X.XXX)
Upgrading to 7.1.1 will cause you to lose root if you have FOTA-Kernel Recovery and flash 32.4.A.0.160 and exclude FOTA Kernel in Flashtool
This has now been tested on both of my Devices.
______________________________​
REQUIREMENTS:
Flashtool
IOVYroot
Rootkernel
Recovery Image - Find Attachment CRC32 81D43A45 for 32.4.A.0.160 Find Attachment CRC32 D0FF4662 for 32.4.A.1.54
TA Image
Bootloader Unlock Code
USER INSTRUCTIONS
Downgrading to 32.0.A.6.200 to restore keys and lock bootloader
Ensure that you have signed out of any Google Accounts prior to flashing to prevent a Reset Lock
Use Flashtool to downgrade to Android 5.1.1 Lollipop
Use IOVYroot to backup or restore your TA Partition
If you previously have lost your original Device Keys, you may be able to use Rootkernel to patch a DRM fix on the 32.0.A.6.200 Kernel.ELF, and then have IOVYroot backup the key
Enable USB Debugging in Developers Options and connect your device to the PC
Use IOVYroot to restore the TA to your device and there will be a message to flash stock firmware
Restart the device as there is no need to flash again and confirm that the device keys are restored
Preparing to flash 32.4.A.0.160
Before starting the Flash process, navigate to the 'prepared' directory in Flashtool's firmware directories and find copy 'kernel.sin' to the Rootkernel directory
Use Flashtool's 'Sin Editor' found in the 'Tools' to extract a 'kernel.elf' from 'kernel.sin'
Use Rootkernel to create a DRM fix patched Boot image
Flashing 32.4.A.0.160​
Flash Android Nougat 7.1.1 and boot the device and confirm that DRM keys are present
Enable Developers Option and Enable 'Enable OEM Unlock' then turn off the device
Connect the device to the PC and prepare the Bootloader unlock
Unlocking 7.1.1 Bootloader, Catching the Device Key & Flashing the Recovery
Confirm that device is in USB Debugging Mode
Then send the reboot command via 'adb reboot-bootloader'
fastboot flash boot 'patched-kernel.img'
fastboot flash recovery 'fotakernel-recovery.img'
Disconnect the device and do not power on
Use Flashtool to flash your Device Key
Once done, Power On
Andy the Android should briefly display with his guts spilled open upgrading himself (If he doesn't something isn't right)
Complete the Android Welcome Setup
Congratulations
Recovery instructions below.
Flash Magisk v12.0 zip with Sony Fix, in TWRP Recovery
Flash or install using current announcement instructions, or your own preferred Superuser App
====================​
XpeRicoverE5823 History
The Original Project intended to have the Z5 Compact an official device tree for TWRP. This project is still on going as the completed AOSP Recovery is currently not supported by Team Win as there is no room for new devices using AOSP build base on the Gerrit Build Server. As a result, the project has two branches; OmniROM and AOSP. Assuming everything runs smoothly, these projects using Android Bootable Recovery source, should almost be "plug and play" with source of other ROM, so if time permits, I'll get the LineageOS Build environment and build the recovery image.
https://github.com/NeoBeum/android_device_sony_suzuran
====================​
TWRP AOSP Recovery
Recovery Source:
Device Tree: Prototype Completed
Recovery Build:
Recovery Image Upload:
Target Kernel: LA.1.2.3_45, 3.10.84 - Sony Stock 32.4.A.0.160
Flash Instructions for device:
Code:
fastboot flash recovery recovery.img
Entry: Power + Volume Down (Until vibration) after 10 seconds, Magenta LED indicates recovery boot process.
Additional notes:
Previous Builds:
CRC665582E7-Recovery-v1.0.zip - [Click for QR Code] (14.18 MB, 104 views) - v1.1 @08JUL2017
Stock AOSP Recovery
Recovery Source:
Recovery Build: Complete
Recovery Image Upload:
Target Kernel: LA.BR.1.3.3_rb2.14
OmniROM Recovery
Recovery Source:
Recovery Build: In Progress
Recovery Image Upload: N/A
Target Kernel: OmniROM 7.1
Time Permits
LineageOS Recovery
Recovery Source: N/A
Recovery Build: Planning Stage/Not Started
Recovery Image Upload: N/A
Target Kernel: LineageOS 7.X.X
====================​ORIGINAL POST
Android Bootable Recovery (TWRP) 3.1.1-0
The TWRP port and device tree is almost done.
Just got it working after about 16 hours straight of trying to get bionic to spew out overflow.
The short and sweet guide is:
Get the Recovery Image and Fastboot flash to Recovery
Have your TA-Partition.img or DK.ftf
Flash 32.3.A.2.33 with Flashtool and Select All for Wipe, and Exclude FOTA Partition
Boot to recovery, Zip install Magisk 12.0
Power Cycle for the default Freakout-Google-Recovery-Refresh
Fastboot flash PatchKernel.img to Boot
Boot to recovery, Restore TA partition from image.
If you have your original DRM Key, I have the TA partition backup to restore the DRM Key once the Kernel gets patched.
You'll still need the TA if you want complete key signature - but the patch will still fix DRM loss when you initially flash TWRP to the recovery partition. (Because that action requires an unlocked bootloader)
I'll post a guide up soon, I'm just off for errands.
Once I fix up the device tree, and TeamWin's gerrit recovers from it's heartattack, you will be using all your own resources to do this, and won't need a prebuilt recovery. You can use your own stock kernel extracted with Flashtool. Everything should run smoothly because of less handover with prebuilt images and have the DRM fix patch the kernel that you actually have, and not for some other region..
Esperando esto con ansias para poder ser root
Just an update: TWRP Build server doesn't have enough room for new devices using the AOSP Build Base, so I have to make an OmniROM port to get the device supported officially. However, there are also changes being made to the Kitakami Platform (Z5 Family), which is the parent of the Suzuran device, so I need to wait to find out what's happening there. Should be in the next few weeks - as I was told sometime in June.
Wait, seriously? We will see OmniROM ported to our device?
MakeHav0 said:
Wait, seriously? We will see OmniROM ported to our device?
Click to expand...
Click to collapse
Yeah, I'm getting there... hopefully They're changing the Kitakami platform base, so I'm waiting for humberos or someone that knows what's happening to finish doing what they're doing.
They told me to not use the Kitakami tree for now.
You probably haven't read my other posts, I'm new to this, and this is my first android project.
But I will still be able to get the recovery supported without a complete OmniROM System build.
I updated the main post too
The Recovery for Android 7.1 was a bi-product of testing a Android 7.1 build base for the Z5C, before I start working on the OmniROM 7.1, so I've added it to the list of Recovery images.
darito30 said:
Esperando esto con ansias para poder ser root
Click to expand...
Click to collapse
root is working, it was at the beginning, I just assumed everyone would think Magisk set root, I added root to the title to make it clear
Can you please provide guide step-by-step to stock firmware + root, recovery, drm fix, RIC and all other sony stuffs,
so we can easily root our z5 compact phones ?
Really I can't understand when to flash, what to flash.
When I do
fastboot flash recovery recovery.img
and boot to recovery I cannot install anything, (Magisk) it is "read only"
netaccs said:
Can you please provide guide step-by-step to stock firmware + root, recovery, drm fix, RIC and all other sony stuffs,
so we can easily root our z5 compact phones ?
Really I can't understand when to flash, what to flash.
When I do
fastboot flash recovery recovery.img
and boot to recovery I cannot install anything, (Magisk) it is "read only"
Click to expand...
Click to collapse
ill need to get on my pc to reply
if you still have the recovery image I compiled flashed to recovery, you can leave it there.
Now what you need to do is use Flashtool and Flash 32.3.A.2.33, with normal settings, with the addition of Exclude FOTAKERNEL
While you're checking everything is set correctly, go in to the Flashtool prepared directory, %USER%/.flashTool/firmwares/prepared
Find the Kernel.sin, (not FotaKernel) - You need Kernel.sin because this is where the boot image is, and use flashtool to extract to Kernel.ELF.
Use the Rootkernel tool, Disable DM-Verity, Disable RIC, do not install TWRP, do not install SuperSU, do not install Busybox.
Flash the resulting Kernel.img using
Code:
fastboot flash boot Kernel.img
Now, if you boot to recovery and install Magisk, and then in usermode you still receive a fail for CTS/SafetyNet. The reason is because Magisk captured the modified Boot we just flashed.
To get around this (if you encounter this problem)- is to flash 32.3.A.2.33 again with the same settings as before, remembering to check Exclude FOTAKERNEL.
This time, when you go in to recovery, or boot, magisk will capture the correct Hash for a "virgin" System.
Done. This process is identical to @mhaha 's guide https://forum.xda-developers.com/z5-compact/general/guide-how-to-root-z5c-painful-using-t3549388, it just uses the recovery, instead of boot. I'm trying to get in contact with Tobias & Androxyde, as I'm going to try and make a windows gui that does all of this together. I need a C# project for an assignment.
I choose options you described. From "prepared" folder, copy kernel.sin, extract it
using Flashtool and now I have kernel.img
Starting rootkernel like this:
rootkernel kernel.elf kernel.img
Rootkernel V5.23
- Unpacking kernel
Found elf boot image
Kernel version: 3.10.84-perf-g1016077
Found appended DTB
- Detected vendor: somc (Sony), device: suzuran (Xperia Z5 compact), variant: row
- Unpacking initramfs
- Detected platform: 64-bit
- Detected Android version: 7.0
- dm-verity is enabled. Disable? (Say yes if you modify /system) [Y/n] Y
Disabling dm-verity
- Sony RIC is enabled. Disable? [Y/n] Y
Disabling Sony RIC
- Skipping TWRP recovery. No kernel modules for 3.10.84-perf-g1016077 available
- Install DRM fix? [Y/n] Y
- Install busybox? [Y/n] N
- Creating new initramfs
- Creating boot image
- Cleaning up
Done
Now flash firmware E5823_32.3.A.2.33_R2D_MobilTel EAD BG.ftf
When it is complited, unplug the phone, but not power on yet
Connect via fastboot (volume up while powering) and run
fastboot flash boot Kernel.img
boot into recovery (power + volume down) - it is read only
reflash again ftf with Flashtool (wipe all, exclude FOTA),
enter to recovery and trying to flash the Magisk
When I install Magisk same errors: failed to mount, unable to mount.
I will wayt for full guide step by step.
netaccs said:
When I install Magisk same errors: failed to mount, unable to mount.
I will wayt for full guide step by step.
Click to expand...
Click to collapse
You grabbed the correct Magiskv12 with Sony Fix?
what link did you use for Magisk
I'm going to download and try to get your error.
NeoBeum said:
You grabbed the correct Magiskv12 with Sony Fix?
what link did you use for Magisk
I'm going to download and try to get your error.
Click to expand...
Click to collapse
I use this Magisk https://forum.xda-developers.com/attachment.php?attachmentid=4096169&d=1490995590
What if I don't want Magisk, just SuperSU?
I try several ways to root + recovery + nougat. Other recovery example are working in different way.
Here it doesn't show the size of partitions when I select storage and other unusual things.
I will try with supersu instead of Magisk, but I din't the problem is in the recovery, not the Magisk.
pp. what is the difference between both, only the way of root, or Magisk has something more ?
This is the first phone I was unable to root :/
NeoBeum said:
I'm trying to get in contact with Tobias & Androxyde, as I'm going to try and make a windows gui that does all of this together. I need a C# project for an assignment.
Click to expand...
Click to collapse
I am 100% certain that a lot of people would be super thankful for that. Thanks in advance from my side!
I get the same errors unfortunately:
"Failed to mount '/system' (Operation not permitted)
Failed to mount '/data' (Operation not permitted)
Failed to mount '/cache' (Operation not permitted)
Failed to mount '/oem' (Operation not permitted)
Failed to mount '/lta-label' (Operation not permitted)"
netaccs said:
I choose options you described. From "prepared" folder, copy kernel.sin, extract it
using Flashtool and now I have kernel.img
Starting rootkernel like this:
rootkernel kernel.elf kernel.img
Rootkernel V5.23
- Unpacking kernel
Found elf boot image
Kernel version: 3.10.84-perf-g1016077
Found appended DTB
- Detected vendor: somc (Sony), device: suzuran (Xperia Z5 compact), variant: row
- Unpacking initramfs
- Detected platform: 64-bit
- Detected Android version: 7.0
- dm-verity is enabled. Disable? (Say yes if you modify /system) [Y/n] Y
Disabling dm-verity
- Sony RIC is enabled. Disable? [Y/n] Y
Disabling Sony RIC
- Skipping TWRP recovery. No kernel modules for 3.10.84-perf-g1016077 available
- Install DRM fix? [Y/n] Y
- Install busybox? [Y/n] N
- Creating new initramfs
- Creating boot image
- Cleaning up
Done
Now flash firmware E5823_32.3.A.2.33_R2D_MobilTel EAD BG.ftf
When it is complited, unplug the phone, but not power on yet
Connect via fastboot (volume up while powering) and run
fastboot flash boot Kernel.img
boot into recovery (power + volume down) - it is read only
reflash again ftf with Flashtool (wipe all, exclude FOTA),
enter to recovery and trying to flash the Magisk
When I install Magisk same errors: failed to mount, unable to mount.
I will wayt for full guide step by step.
Click to expand...
Click to collapse
netaccs said:
I choose options you described. From "prepared" folder, copy kernel.sin, extract it
using Flashtool and now I have kernel.img
Starting rootkernel like this:
rootkernel kernel.elf kernel.img
Rootkernel V5.23
- Unpacking kernel
Found elf boot image
Kernel version: 3.10.84-perf-g1016077
Found appended DTB
- Detected vendor: somc (Sony), device: suzuran (Xperia Z5 compact), variant: row
- Unpacking initramfs
- Detected platform: 64-bit
- Detected Android version: 7.0
- dm-verity is enabled. Disable? (Say yes if you modify /system) [Y/n] Y
Disabling dm-verity
- Sony RIC is enabled. Disable? [Y/n] Y
Disabling Sony RIC
- Skipping TWRP recovery. No kernel modules for 3.10.84-perf-g1016077 available
- Install DRM fix? [Y/n] Y
- Install busybox? [Y/n] N
- Creating new initramfs
- Creating boot image
- Cleaning up
Done
Now flash firmware E5823_32.3.A.2.33_R2D_MobilTel EAD BG.ftf
When it is complited, unplug the phone, but not power on yet
Connect via fastboot (volume up while powering) and run
fastboot flash boot Kernel.img
boot into recovery (power + volume down) - it is read only
reflash again ftf with Flashtool (wipe all, exclude FOTA),
enter to recovery and trying to flash the Magisk
When I install Magisk same errors: failed to mount, unable to mount.
I will wayt for full guide step by step.
Click to expand...
Click to collapse
Merkur9 said:
I get the same errors unfortunately:
"Failed to mount '/system' (Operation not permitted)
Failed to mount '/data' (Operation not permitted)
Failed to mount '/cache' (Operation not permitted)
Failed to mount '/oem' (Operation not permitted)
Failed to mount '/lta-label' (Operation not permitted)"
Click to expand...
Click to collapse
I made exactly the same & got the same error until I tried another recovery...... THIS HERE
No more mount errors and finally root work for me, but it will not pass SafetyNet check on my phone.
EDIT: after enabe Magisk Hide it pass SafetyNet check!
Would I be able to use this Magisk dl with Android 7 rooted with the PoC method (https://forum.xda-developers.com/crossdevice-dev/sony/poc-real-trim-instead-drm-fix-t3552893)?
Cerhio said:
Would I be able to use this Magisk dl with Android 7 rooted with the PoC method (https://forum.xda-developers.com/crossdevice-dev/sony/poc-real-trim-instead-drm-fix-t3552893)?
Click to expand...
Click to collapse
Hi, just wait for me to fix some stuff because Magisk has been removed from Play Store... and also because I've only just come back after my router died
NeoBeum said:
Hi, just wait for me to fix some stuff because Magisk has been removed from Play Store... and also because I've only just come back after my router died
Click to expand...
Click to collapse
Magisk V13 is out in unofficial state. I would also like to know the step by step instructions to make it work. Thanks in advance for sorting things out NeoBeum
I have a working build for 7.1.1, I'm going to write up a proper guide this time, so I've removed the old one, and I should have it up later this week.

Rooting 8.1 with TWRP

I was able to root my Google Pixel with TWRP on stock Android 8.1.
First, my phone was on 8.0 October security update with Magisk installed. However, I flashed the 8.1 January OTA with Flash Fire. Then I went to my computer and fast booted into TWRP 3.1.1-1. It couldn't decrypt the storage but I went to the TWRP menu anyways. Then I sideloaded Magisk v15.3 to my phone and rebooted. Now I panicked when my device was loaded and all of a sudden failed to load but I just selected "Try Again" from the menu that pops up, and it loaded. Not sure what happened there, but I do have root access now, and if anyone needs proof that this works, I'll be happy to give you whatever you need.
I hope this works for you and I am glad it did for me.
EDIT: I did find out after that this fails Google's Safety Net Check
EDIT2: I just tried again, but first flashing the factory image of 8.1 without wiping user. Then I did the same steps as before, and it now passes safety net.
EDIT3: Sorry I just unlocked my phone after 10 minutes or so, and checked safetynet with Magisk again, and it apprently changed to failed.
Inside a terminal, what is the output of the following commands:
getenforce #should be enforcing
magiskhide --ls #shall list gcm and google play store at least
churchmice said:
Inside a terminal, what is the output of the following commands:
getenforce #should be enforcing
magiskhide --ls #shall list gcm and google play store at least
Click to expand...
Click to collapse
Right now getenforce is permissive but it was enforced before I tried installing Viper4Android (still need help on that)
And magiskhide --ls returns with com.google.android.gms.unstable
thakyZ said:
Right now getenforce is permissive but it was enforced before I tried installing Viper4Android (still need help on that)
And magiskhide --ls returns with com.google.android.gms.unstable
Click to expand...
Click to collapse
setenforce 1
Run safetynet checking again.

Xiaomi Redmi 4A Root, Flash TWRP Recovery & Flasher Toolkit

​Flasher Toolkit- Greetings for Redmi 4A users
Flasher Toolkit is a flashing tool for performing various types of tasks. Since, It was very hard to flash the custom recovery. But today we can also remove any bloatwares apps and flash custom minimal Gapps. In addition, We can also even flash Fastboot Rom if you have unlocked Bootloader.
DISCLAIMER: DO ON YOUR OWN RISK. Flashing can potentially bricked or bootloop your device.
​Features
Support MTP Mode.
It also Disable DM-verity.
Support Flash and ADB commands.
Also support System Backup to External Storage
Flash ZIP from SD card.
Restore Stock Recovery Info
Device OEM info
​Essentials -
Bootloader Unlocked
Original Xiaomi Data Cable
Disable Driver Signature Enforcement in Windows 7/8/10
Enable Debugging Mode
Battery Should be 50%
​Requirements -
Flasher Toolkit - Rolex
Minimal ADB and Fastboot v1.4.2
ChainFire BETA-SuperSuv2.79 SR3
DM-verity and Forced Encryption Disabler 5.1
Use Flasher Toolkit -
First of all, Install Minimal ADB and Fastboot v1.4.2
Download DM-verity and Forced Encryption Disabler 5.1
Also,*BETA-SuperSuv2.79 SR3, move it your Internal/Ext SD card.
Plug your Device in ON State via USB Cable to Computer.
Extract it.
Run "FLASHER TOOLKIT ROLEX.bat*as an Administrator"
Next, You see the menu and choose Menu 1 to Flash TWRP 3.0.2.0. Or you can download & install latest recovery from twrp official forum.
It will check all the essentials required for furthermore process.
Once the Flashing is done, you will be redirected to TWRP Screen.
Therefore, Swiping right to trigger dm-verity and enable Modifications.
Furthermore, FlashBETA-SuperSuv2.79 SR3, DM-verity and Forced Encryption Disabler 5.1.
Use Root Checker to check whether the device is properly rooted or not.
Finally, You have successfully flash Custom Recovery and SuperSu.
Note -*It is especially relevant to Flash SuperSUv2.79 SR3 to avoid bootloop, as it will patch dm-verity, otherwise,*DM-verity and Forced Encryption Disabler 5.1 will be needed.
Source Link: http://www.tricknowledge.com/2017/05/xiaomi-redmi-root-twrp-flasher-toolkit/
Thanks!
Anyone tested?
wait for review

A2017G with flashed SuperSU but no root

Hello, i want to root my device with SuperSU but i can't.
Now there is:
bootloader: unlocked
fastboot: working
recovery: TWRP 3.3.1-0
rom: stock B12
I try to root through axon7toolkit, device boot to fastboot, then app shows:
HTML:
Checking ADB\Fastboot Connectivity...
ADB device connected!
Rebooting to bootloader...
Checking Fastboot Connectivity...
Fastboot device connected!
Booting TWRP...
downloading 'boot.img'...
OKAY [ 0.326s]
booting...
FAILED (remote: unknown command)
finished. total time: 0.348s
Tap 'Keep read-only'" on startup!
then app shows error "ADB recovery device is not connected". I manually select Recovery mode from fastboot. TWRP launch without "Keep read-only" option. I click mount, selecting all options and checking "Keep read-only" option. Then I click OK in axon7toolkit error message and TWRP make a script. After that device boot twice. SuperSU app says SU is not installed.
I try to click OK in axon7toolkit error without mounting with "Keep read-only" (just clicking OK when TWRP launch) but it's the same.
I try to root by install SuperSU v2.82 SR5 through TWRP, script working and says done, but after confirm there is the same as above.
I must flash special bootstack or maybe B12 is possibile to root?
EDIT:
I try to download terminal, then type
HTML:
adb shell reboot disemmcwp
then device was rebooting. After that I type in emulator
HTML:
su
and SuperSU asks for root permission. I allow that, but terminal no go to root mode and typing
HTML:
reboot disemmcwp
don't change anything.
ColorfulPoland said:
Hello, i want to root my device with SuperSU but i can't.
Now there is:
bootloader: unlocked
fastboot: working
recovery: TWRP 3.3.1-0
rom: stock B12
I try to root through axon7toolkit, device boot to fastboot, then app shows:
Checking ADB\Fastboot Connectivity...ADB device connected!Rebooting to bootloader...Checking Fastboot Connectivity...Fastboot device connected!Booting TWRP...downloading 'boot.img'...OKAY [ 0.326s]booting...FAILED (remote: unknown command)finished. total time: 0.348sTap 'Keep read-only'" on startup!
then app shows error "ADB recovery device is not connected". I manually select Recovery mode from fastboot. TWRP launch without "Keep read-only" option. I click mount, selecting all options and checking "Keep read-only" option. Then I click OK in axon7toolkit error message and TWRP make a script. After that device boot twice. SuperSU app says SU is not installed.
I try to click OK in axon7toolkit error without mounting with "Keep read-only" (just clicking OK when TWRP launch) but it's the same.
I try to root by install SuperSU v2.82 SR5 through TWRP, script working and says done, but after confirm there is the same as above.
I must flash special bootstack or maybe B12 is possibile to root?
EDIT:
I try to download terminal, then type adb shell reboot disemmcwp
then device was rebooting. After that I type in emulator su
and SuperSU asks for root permission. I allow that, but terminal no go to root mode and typing reboot disemmcwp
don't change anything.
Click to expand...
Click to collapse
i always just ask, why SuperSU?
Don't use "Keep read only" on TWRP, that's useful when you have DM-verity enabled but SuperSU, Magisk, or the no verity zip disable that. I don't know if this is your problem but it might as well be.
Also, issue "reboot disemmcwp" from the TWRP terminal or via adb in TWRP. it might do the trick
When I type the post, I use SuperSU because Magisk no work. Now I know Magisk works to 16.7 but now the problem is because I have a problem with "corrupted SD card" after flashing (I have read and many other people have this problem). I don't know how to fix it, because formating don't help, so I still be with SuperSU
When I go home I try use terminal from TWRP, thank for your help
EDIT:
TWRP not recognize my commends
ColorfulPoland said:
When I type the post, I use SuperSU because Magisk no work. Now I know Magisk works to 16.7 but now the problem is because I have a problem with "corrupted SD card" after flashing (I have read and many other people have this problem). I don't know how to fix it, because formating don't help, so I still be with SuperSU
When I go home I try use terminal from TWRP, thank for your help
EDIT:
TWRP not recognize my commends
Click to expand...
Click to collapse
lol. Try using Magisk, then get all of your stuff out of the SD card and format it. If your files aren't bigger than 4gb you can use fat32, otherwise try formatting it from the phone

Magisk Modules Disabler for booting into Magisk core-only Mode

Here is a fastboot bootable image to boot you into Magisk core-only mode in case you bootloop due to flashing a bad module and TWRP is not enough.
Once in fastboot:
fastboot boot image-newpixel.img
You will boot with root but modules disabled. If something additional is needed, once booted to core-only, unzip the attached zip onto your pc where you can run ADB/fastboot and run the bat file. It will push .disable_magisk to your cache folder so that your modules will be disabled even after a reboot (zip says crosshatch but will work on any phone)
Boot image uploaded 11-24-19
https://www.androidfilehost.com/?fid=4349826312261644462

Categories

Resources