yashsingh1/xdaforums huggingface dataset:
[Blade General] Matthew702:
I would but i dont have rpot permissions anymore

---------- Post added at 02:08 AM ---------- Previous post was at 02:07 AM ----------

Im about to say **** it and start over
[Blade General] evtoofly:
were stuck in the same boat because I flashed the universal fix and now it says I dont have magisk installed either smh.
[Blade General] Unssin:
Wait

---------- Post added at 02:23 AM ---------- Previous post was at 02:23 AM ----------

Sorry for delay

---------- Post added at 02:24 AM ---------- Previous post was at 02:23 AM ----------

You don't need root to see the root directory using solid explorer

---------- Post added at 02:24 AM ---------- Previous post was at 02:24 AM ----------

You still go twrp right?
[Blade General] Matthew702:
Yes twrp is still installed
[Blade General] Unssin:
From what I collect magisk is systemless and it have it own partition which is /sbin

---------- Post added at 02:27 AM ---------- Previous post was at 02:27 AM ----------

I'm just going to copy the files from my phone and upload it and the adb push the files
[Blade General] Matthew702:
Im downloading solid rn..
[Blade General] evtoofly:
what if I already have the sbin folder? I see it with twrp
[Blade General] Unssin:
What is inside?
[Blade General] evtoofly:
tons of files, I couldnt be specific

---------- Post added at 02:34 AM ---------- Previous post was at 02:32 AM ----------

tons of files, I couldnt be specific
[Blade General] Unssin:
this is what i pulled from /sbin through solid explorer https://drive.google.com/open?id=19p7ql4e5n15iiRlHxlJoVRvxfgGCl300
[Blade General] evtoofly:
first thing I noticed, I dont have the magisk files that u have in your folder, so what exactly am I supposed to do?
[Blade General] Matthew702:
Ok what are we supposed to do with all dem files.?
[Blade General] Unssin:
can you find su inside the sbin?
[Blade General] evtoofly:
I dont have su, so I thoght ahead and adb the su file to the sbin folder, rebooted, and still no luck with magisk
[Blade General] Unssin:
I was thinking about adb push the folder in twrp mode

---------- Post added at 02:59 AM ---------- Previous post was at 02:58 AM ----------

Let me try the adb push on my phone first just to make sure

---------- Post added at 03:01 AM ---------- Previous post was at 02:59 AM ----------

i will delete the sbin folder from my phone then boot system and check magisk if it says magisk not installed then i will adb push the folder

---------- Post added at 03:02 AM ---------- Previous post was at 03:01 AM ----------

i cant delete the folder
[Blade General] evtoofly:
if I adb your folder, will I still have all my modules installed?
[Blade General] Unssin:
it depends where the modules got installed at. for example youtube advance module is download in the /system/app so this wont be affected
[Blade General] evtoofly:
before I risk losing my modules, is there any alternative method to try and get magisk to be instaled again. I already tried reflashing the boot img. By any chance do you the patch boot img to flash
[Blade General] Unssin:
which one the one for magisk update or to install magisk?

---------- Post added at 03:17 AM ---------- Previous post was at 03:16 AM ----------

do you care about data loss?

---------- Post added at 03:18 AM ---------- Previous post was at 03:17 AM ----------

did you try adb push magisk?
[Blade General] evtoofly:
yes, thats the last thing I wanna do, I have so much data, and modules in xposed and magisk, so many customizations that I had to do over and over everytime I did a data wipe. I really dont wanna have to do that unless it is the last option

---------- Post added at 03:19 AM ---------- Previous post was at 03:19 AM ----------

the magiskk update

---------- Post added at 03:21 AM ---------- Previous post was at 03:19 AM ----------

I pushed your magisk into sbin folder, but it deletes the files everytime I boot back to system
[Blade General] Unssin:
I will try my best to solve this

---------- Post added at 03:38 AM ---------- Previous post was at 03:35 AM ----------

I need to work with the boot.img in order to do the changes.
[Blade General] evtoofly:
its crazy that this happened to me all because I flashed that universal thing for safetynet smh
[Blade General] Unssin:
do you have a directory in the root tab called root?
[Blade General] evtoofly:
I got tired of trying so I just used adb and pushed your sbin to my phone. Fixed the issue, just had to install my magisk modules again. No biggie though. Thanks

edit: Just rebooted my phone and it says there is some internal problem, open magisk, and facing the same problem. Going to try this again without downloading modules right away,

Its werid. even though my magisk says not insalled, the modules I just installed shows up on my device, which means that they are there, I just have to find a way to get magisk to say installed. This will help me keep my modules instead of pushing your sbin folder and having to redownload everything once again
[Blade General] Unssin:
Can you send screen shot?

---------- Post added at 05:37 AM ---------- Previous post was at 05:33 AM ----------

That's the part you have the sbin folder which have the required files but somehow it says magisk isn't installed. I think it from the magisk file inside of the sbin folder. Do you have that file when you check in solid explorer?

---------- Post added at 05:41 AM ---------- Previous post was at 05:37 AM ----------

Have anybody heard of forceencryption = encryption without anytype of security/password? When I was working with the boot img I came a cross it, its enabled in the /Dev/block/bootdevice/by-name/userdata, and I think this is why twrp won't read files inside of internal storage.
[Blade General] evtoofly:
Well what do you wanna see? This is what happenend. I used adb to push the sbin you provided. Rebooted, opened magisk, everything was back to normal and it no longer said ¨Install Magisk.¨ However, my modules were all gone.I proceeded to download all my old modules back, and some extras. I rebooted so that they can flash, and a pop up came up on my screen for two seconds saying something how I have an internal problem. From here , I swiped my screen down and saw something was updating(odd). Went back to magisk and I was back with the same error of needing to install it. However, when I go to instagram, I see my ios emojis which means that the modules installed correctly, I just cant access them through magisk because it says I need to update it.
[Blade General] Unssin:
Did you flash the universal zip?
[Blade General] evtoofly:
Im going to try something. Im going to take my sbin and put it on my desktop. Ill then use your sbin to copy all the files I dont have into my sbin. Ill push it back with adb, and see where that gets me.

---------- Post added at 05:48 AM ---------- Previous post was at 05:47 AM ----------

no I did not flash it this time. Should I give it a shot?
[Blade General] Unssin:
No, big no no?. I try it like a min ago and then the same stuff that happened to u happened to me. I think it force update and recover boot.img to normal condition but leaves modules.
[Blade General] evtoofly:
interesting. How do you think we should go on about this?
[Blade General] Unssin:
You said the sbin folder worked do that again and check the safetynet check
[Blade General] evtoofly:
Ok , I tried moving your files into my files, but I got the error again so I only used your files this time and now im getting error still.
[Blade General] Unssin:
How did you it the first time?
[Blade General] evtoofly:
the first time I simply just pushed your folder to / with adb and rebooted. Im going to try something. Im going to flash the boot and recovery, and then push itagain and see if it makes any difference. Because every time I boot up now, I get the message, ¨Theres an internal error with your device¨ please contact your manufacturer
[Blade General] Unssin:
If you flahs the boot and recovery, don't adb push. The purpose of that push was to get magisk to say magisk is installed but now it seems like phone is really corrupt but a fresh reflash should fix everything.
[Blade General] evtoofly:
does that mean, I have to wipe all data now
[Blade General] Unssin:
Does it say it when you boot?
[Blade General] evtoofly:
it gives me that error but after that all my apps work perfectly fine, only thing I dont have is root access due to magisk needing to install
[Blade General] Unssin:
Magisk manager gives you the error?
[Blade General] evtoofly:
yeah, it says magisk manager is installed but I need to update magisk to 18.1
[Blade General] Unssin:
So now you have root access? Just flash the patch boot I supplied before
[Blade General] evtoofly:
no i dont have root access thats what I mean. I cant get root access until it says magisk 18.1 is installed
[Blade General] Matthew702:
Bro I just re rooted it. That .zip u posted just cause magical to uninstall. Tried everything but still safety net wont pass.
[Blade General] Unssin:
Wait before you flash anything. I have another zip i will flash it on my device and reboot and see if anything will happen
[Blade General] Matthew702:
Also if your having that error. Sideload the update.zip from the firmware that is supplied earlier in the thread.

---------- Post added at 06:55 AM ---------- Previous post was at 06:54 AM ----------

Yes I learned my lesson not flashing anything until you take a screen shot of your safety net passing.
[Blade General] evtoofly:
sideloading the update will fix he magisk error?

---------- Post added at 07:01 AM ---------- Previous post was at 07:00 AM ----------

sideloading the update will fix the magisk error?
[Blade General] Unssin:
Reflash and update.zip you phone
[Blade General] evtoofly:
can you provide the update file, and do i have to wipe data?
[Blade General] Unssin:
It's your choice anyway you will have to wipe data to reflash the patched boot image xxMoon supplied

Here the update.zip https://www.androidfilehost.com/?fid=11410963190603910728
[Blade General] evtoofly:
did this fix your magisk?
[Blade General] Matthew702:
I didn't have that problem but I know a fresh start is better that no magisk
[Blade General] Matthew702:
Lineage
[Blade General] evtoofly:
thanks, but I now know how to apply any boot animation to my device.

---------- Post added at 07:06 PM ---------- Previous post was at 06:51 PM ----------

Is there anyway to mount /system using android terminal, or do i need twrp every single time?
[Blade General] evtoofly:
anyone know how to apply custom sound to our bootanimations?
[Blade General] Unssin:
im working on that and the twrp cant read internal storage but shows the device mb it from something called forceencryption. Basically forceencryption is encryption without password which the device do it automatically.
[Blade General] evtoofly:
so in order to mount the system without twrp, we have to find a way to get rid of forced encryption for this device?
[Blade General] Unssin:
No we have to change the flag ro (read-only) to rw(read-write). The forceencryption is for twrp data problem. Our phone get encrypted on every boot without us know. We need to change forceencryption=footer to encryptable=footer. I did it but when I flash the boot.img it bootloops I try through edl, twrp and flashify but NoLuck.
[Blade General] evtoofly:
Oh that explains why we can never access our storage on twrp. Its pretty annoying tbh, but for the flag ro file, wouldnt we need to edit the fstab file to change any of those permissions?
[Blade General] Unssin:
It's from fstab.qcom and fstab.ftm.qcom theres no ro file. I will upload a file and look where it says for /system ex4 ro, barrier it need to be replaced with rw not ro. And anything says forceencrypt in userdata need to say encryptable.
[Blade General] evtoofly:
This brings a harder challenge than expected , this phones security is something else.
[Blade General] Unssin:
I didn't even know about force encryption until I was working with the boot img to fix the magisk issue u had and then came a cross this did a little research and it turn out the the force encryption is encryption without password and then this idea came in my mind that's why twrp can read how much free space I have but it doesn't show any type of files.
[Blade General] xxMoon:
This should be fixed with my boot.img update.

New Boot.img here

It just adds a space of the encryptabl=/dev/block/bootdevice/by-name/cryptkey part of the fstab which disables it.

After flashing that boot.img,

you have to format data from twrp

. Once you do that, the system runs un encrypted.

As for the system ever being rw'able. After looking through the source code for the phone, it clearly has ro protections built into the kernel.

The source code also has a non usable section for dissemmcwp.

The main issue with the kernel source code is however, its missing the vendor folder... Otherwise I would have already compiled a rw kernel.
[Blade General] Unssin:
With edl tool?

---------- Post added at 11:28 PM ---------- Previous post was at 11:26 PM ----------

nvm , it worked with edl tool

---------- Post added 19th March 2019 at 12:15 AM ---------- Previous post was 18th March 2019 at 11:28 PM ----------

Will the data be unencrypted because when i go to twrp it still cant read internal storage

---------- Post added at 01:04 AM ---------- Previous post was at 12:15 AM ----------

is the vendor folder you talking about is the same as the one in "/"? IF YES WHY NOT COPY THAT FOLDER AND PASTE IT IN THE SOURCE.
[Blade General] evtoofly:
so should I flash this or will I still get internal storage error because I dont wanna have to go through the setup again for nothing
[Blade General] Unssin:
No for now
[Blade General] Unssin:
I kind of solve the Twrp data encryption, at least kind of and it worked for me. First download solid explorer and enable Root tab. Finally, if you want to flash something for example test.zip, copy test.zip to the "/data" folder NOT SDCARD to "/data" reboot to Twrp and press install press (up level), go to the /data folder ONLY, scroll down, and you should see for example test.zip file. Same thing apply to .IMG files and if you want to copy something straight to a folder, use Twrp file manager in the advance menu and follow the instructions as the above.

Tell me if it works for you.☺️
[Blade General] evtoofly:
so instead of having to push with adb, we just place the file in /data folder in our internal storage and not sd? and what about the internal storage showing as 0. any fix on that yet?
[Blade General] Unssin:
​

Yeah and I'm still working on the twrp encryption problem.
[Blade General] xxMoon:
Derp

Ok

Boot into recovery, open up a shell

setenforce 0

exit

Now in twrp, open file explorer

Navigate to /data/media/0

Thats your internal storage. :p
[Blade General] evtoofly:
why doesnt twrp terminal work. I type in a commande, and when i click enter, it just skips a line and does nothing
[Blade General] Unssin:
Use cmd on a PC will on twrp
[Blade General] evtoofly:
bummer, I dislike always having to use my pc for terminal. im assuming the twrp cmd doesnt worrk for u either?
[Blade General] Unssin:
It worked

---------- Post added at 01:20 AM ---------- Previous post was at 01:19 AM ----------

and i was able to perform factory reset from twrp

No format data

---------- Post added at 01:21 AM ---------- Previous post was at 01:20 AM ----------

maybe because data corruption

---------- Post added at 01:24 AM ---------- Previous post was at 01:21 AM ----------

you will have to use the "setenforce 0" command every time you boot to recovery
[Blade General] evtoofly:
isnt factory reset and format data the same thing? youre losing data in the end.
[Blade General] Unssin:
i think format data deletes every thing that the user did but i think factory reset reset factory to original settings. I think format data is more powerful.

---------- Post added at 01:29 AM ---------- Previous post was at 01:27 AM ----------

After you do the setenforce 0 the terminal works.

---------- Post added at 01:31 AM ---------- Previous post was at 01:29 AM ----------

im working on permanent setenforce 0 command
[Blade General] evtoofly:
will i need to use setenforce everytime i relaunch twrp? and does that mean a i can use factory reset and still have all my apps downloaded like magisk.
[Blade General] Unssin:
Yes you will have to use that command every time you go to recovery and factory reset will delete everythings the user download or did but sometimes there are some other files that the system creates like a welcome back file for a root app that can't be deletable but format data formats everything, is like force delete everything that got created.

---------- Post added at 01:59 AM ---------- Previous post was at 01:55 AM ----------

For example, when I did a factory reset about 30 min ago and go through setup and then went to download it's says there was 30 files I was surprised, went into download and found a boot animation.zip I downloaded before but if this was a format data it will probably delete it.
[Blade General] evtoofly:
when I use setenforce 0, and try going to data/media it does not show any other folder , just /data , so how can I get the media folder to show up?
[Blade General] Unssin:
Mount every mountable folder in the mount menu
[Blade General] evtoofly:
only allows me to mount system ,cache, firmware, and persist. still doesnt work
[Blade General] Unssin:
Mine allow me to mount system, cache, firmware, and data but no persist. There is something with our Zte devices.

---------- Post added at 03:21 AM ---------- Previous post was at 03:21 AM ----------

Have you ever done a format data in twrp?
[Blade General] evtoofly:
yes I have formatted data , I had to because of bootoops, the only time I can mount data is when I format it inside of twrp. After I relaunch twrp, I no longer can mount it anymore because it shows as 0 mbs
[Blade General] Unssin:
Do anybody have the stock MetroPCS bootanimation.zip? If yes can you please upload it, I really need it because my custom boot not working ?
[Blade General] evtoofly:
just use twrp. Mount system, go to file manager and delete boot animation and then use adb to push another one to system/media , flash it, reboot, and voila!
[Blade General] Unssin:
Try but that wasn't the problem the custom boot animation I created flashes and everything but the problem was you have to zip the bootanimation.zip with WinRAR and in the menu that says normal it have to say store. And I fixed boot stops and device bootup even though the boot animation not finish. If you got the boot animation stops in the middle of the animation just upload the animation and I will fix it for u.?
[Blade General] prosown:
Anyone know when there will be full system r/w because I want to use a Mac changer and it doesn’t work....
[Blade General] Unssin:
The only way you will be able to mount /system as rw for now is when the system isn't loaded for example, when the phone is in recovery system won't be loaded only recovery and you can mount it in the twrp menu as rw but when you reboot to system it will revert back to read-only. If you using I in a terminal or something like that I recommend using it in twrp recovery and make sure you mount the system.
[Blade General] Unssin:
View attachment 4729018

Found this module from Xposed Installer app. Didn't personally try it but if you want you can give it a shot.
[Blade General] xxMoon:
rw attained *****es!!!!!!!!!!!!!!!

If you want to test, flash this.

ztecfg.7z
[Blade General] Unssin:
Flash it with what? My first time flashing the ztecfg file
[Blade General] rellik232:
i think the location ./dev/block/platform/soc/7824900.sdhci/by-name/ztecfg

you have to use dd command i think... I haven't tried it yet
[Blade General] Unssin:
I

Ok I will try it. Thx
[Blade General] Unssin:
How to use he did command? Been searching for days but can't find a good explanation on how to use it.
[Blade General] xxMoon:
You dont need to use the dd command. I updated the flasher tool to include ztecfg. Plus a few more thing that needed updated.

Flash->Flash SysRW

https://xdaforums.com/zte-blade/general/root-zte-blade-z-max-z982-free-uat-2-21-t3902820
[Blade General] Unssin:
Thx. I'm at school right now but I will try it as soon as I get home. Really appreciate it.
[Blade General] evtoofly:
does this mean I finally wont have to use twrp for everything now:D:D:D?
[Blade General] Matthew702:
Lol so all is good? Is this the perm root? Sry I've been super busy working on both the ANS UL40 and the Matala SYNQ Bush/Obama phones... I have been able to unlock both bootloader working on a twrp file with some members. I hope you guys have been as successful.
[Blade General] evtoofly:
flashed your boot img and stuck in boot loop. flshed mine again and it works fine, so what can i do to fix ur boot img from boot looping
[Blade General] Matthew702:
You ever get around to flashing that bro?
[Blade General] xxMoon:
Downgrade your firmware to full B20.

Heres the firmware.

https://drive.google.com/open?id=1c9s-n8-_4jjJ1B0ppjH84ev14T5qJdJr
[Blade General] BlazeMz3:
I have Full B25 and everything Fine,

not sure is the B25 firmware itself.

but THAT should work.
[Blade General] evtoofly:
Havent downgraded my firmware yet, but why is it that /data still is not accessible in twrp. I do not wanna have to wipe it in order to see it so is there another way? I thought having rw would fix this issue.
[Blade General] xxMoon:
SELinux is enforcing, which means device protection is enabled. Its baked into the kernel. We dont have full source code to compile a different one.

You have to connect your phone to a pc and then run the commands to disable it.

adb shell

setenforce 0

exit

After that, twrp will have full access to data. If you looking for your internal storage directory, the directory is as follows

/data/media/0/

On another note, in the update package, ive included, the setenforce0.sh file. To disable selinux on boot for normal boot, you need to drop that file in:

/sbin./.magisk/img/.core/service.d/

Afterwards, chmod the file 777 and then reboot.

Whalaa, selinux permissive on boot.

Does not work on twrp though.
[Blade General] Unssin:
https://xdaforums.com/zte-blade/general/root-zte-blade-z-max-z982-free-uat-2-21-t3902820 just delete the old edl tool and download the new one.

So, anybody want to know how to hard brick your phone? Just get your mom mad and give her you Z982 and let her through it but with the cover on and in a carpet floor, thats what happen to me. First i thought my phone was dead because when i charge it it doesnt charge because it on edl mode but i didnt know that. after many tries i was about to give up and i was trying to see if it will detect in pc and it did. Its stuck in edl mode and when i try to use the .bat file it says it on the wrong port. The .bat file expect the COM in 20 but mine is in COM 3 tried different port but no luck. I was thinking about editing some files in the .bat tool to com3 and such. lol first time experiencing this hard brick.
[Blade General] evtoofly:
unfortunately setenforce does not allow me to mount data but it allows everything else. also could u upload that file you were talking about so I can get permissive as well . and what do you mean does not wrk on twrp? what specifically are u talking about? man I really wish that I can mount data so I can back it up and reflash b20 firmware:( . I hate losing data
[Blade General] xxMoon:
I'll work on making a tool that will make it easy to downgrade.

As for backing up userdata, it should be easy.

Open up cmd and use the following entries.

Boot into twrp and connect your phone to your pc and run:

To backup user data:

adb shell

su

setenforce 0

dd if=/dev/block/platform/soc/7824900.sdhci/by-name/userdata of=/sdcard/userdata.img

To restore userdata:

adb shell

su

setenforce 0

dd if=/sdcard/userdata.img of=/dev/block/platform/soc/7824900.sdhci/by-name/userdata
[Blade General] evtoofly:
so everytime I format data , I cann use this command to get everything back? If so, I would not mind flashing b20 right now