null4n / vold-posix

23 stars 2 forks source link

vold via Magisk delete all app data #2

Open GlitchedCod opened 5 years ago

GlitchedCod commented 5 years ago

Hello, After the installation of the Vold module created by noname8964, my phone have deleted all app data and set the memory of the phone as "read only". My phone is a Xiaomi Redmi Note 5 Official MIUI 9 ROM unlocked.

Please solve this error. 😒

Thank you.

null4n commented 5 years ago

I said it only works for AOSP-like system:( MIUI or other UI rom has not tested. and in my opinion, MIUI support exfat, why you use this module?

GlitchedCod commented 5 years ago

but not NTFS, i have just installed that in the case of if i wanted to watch a movie in a hard drive or something like that... I have see that i have flash the RU ROM (so the bad one) so I will take the opportunity to change to the original ROM now...

kalawy commented 5 years ago

i am no expert but adding the libs and bin of ntfs integrated successfully and worked perfectly on a rom that had vold for exfat but not ntfs

you may give it a try

https://forum.xda-developers.com/mi-max-2/development/stable-msm-xtended-v2-5-t3805375/post78002283

null4n commented 5 years ago

i am no expert but adding the libs and bin of ntfs integrated successfully and worked perfectly on a rom that had vold for exfat but not ntfs

you may give it a try

https://forum.xda-developers.com/mi-max-2/development/stable-msm-xtended-v2-5-t3805375/post78002283

Nope, he's on official MIUI that didnt support these vold binary or fuse libraries. In my opinion, vold binary may can run, but libraries may crash. Since MIUI is close source, I won't plan to support miui or other custom ui rom.

The v1 version will occurs weird issue, but v2 mostly fixes this. maybe v2 can work with miui but I can't promise anything

diletantEG commented 5 years ago

I had the same problem on MIUI. I have two identical Xiaomi Redmi Note 5s (whyred) in my family. At the same time, the Vold module v1 was installed and working fine on one of the devices, and the other device erased the data and turned the memory into read only mode. Vold module v2 - does not work, when you boot the device, the password input dialog is displayed .. As I understand it, this is due to the fact that encryption is not disabled in the reassembled kernel.

Please, if possible, solve this problem. NTFS support on MIUI is needed like air.

Xiaomi Redmi Note 5 (whyred) MIUI 10.0.3.0 Global Stable Magisk 17.3

null4n commented 5 years ago

@diletantEG Once again, this module didn't support non AOSP-like system. All bugs with these system won'r fix. And encryption isn't the issue. my Nokia phone works fine with encrypt user data. Maybe MIUI has some custom methods in there boot image, but I can't fix this. If you really need ntfs driver, maybe you can try Paragon driver from Google Play or flash LineageOS/etc.

GlitchedCod commented 5 years ago

@diletantEG maybe this have a relationship with the ROM of the phone, when i have installed the latest version of vold, i used MIUI 9.2 Russian model

diletantEG commented 5 years ago

@GlitchedCod I have two absolutely identical phones, with the same system (miui 10.0.3.0 global stable) and a similar set of software. This is surprising, why everything was installed perfectly on one thing, and this problem arose on the other.

blaueente commented 5 years ago

Same problem here, with BQ Aquaris X2 pro (zangyapro), on firmware 1.5.0: device reports defect encryption, and factory-resets. What does "AOSP-like" mean in this context? It is a "Android One" device, so it should not have few vendor-specific adjustments. BQ shamingly does not ship exfat/ntfs drivers, so having this module would be really nice. Is there anything I can help to debug?

null4n commented 5 years ago

Android one should work. past the logcat. use adb logcat|grep -i vold to get the logcat. maybe also need adb logcat|grep avc: PS: in Windows you can use find instead of grep -i, but idk if find is case-sensitive or not. it need ignore case.

blaueente notifications@github.com 于 2018εΉ΄11月17ζ—₯周六 21:18ε†™ι“οΌš

Same problem here, with BQ Aquaris X2 pro (zangyapro), on firmware 1.5.0: device reports defect encryption, and factory-resets. What does "AOSP-like" mean in this context? It is a "Android One" device, so it should not have few vendor-specific adjustments. BQ shamingly does not ship exfat/ntfs drivers, so having this module would be really nice. Is there anything I can help to debug?

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/noname8964/vold-posix/issues/2#issuecomment-439616277, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae6HdlD4GvGZIwDhFH8Ja-VVd7c4lfyfks5uwAyWgaJpZM4X35t7 .

blaueente commented 5 years ago

When should I get the logs? During normal runtime, without the vold module? During Module installation? During the failed boot, but will this work at all? Will it help to make a backup of some partition such that I can try restore the phone without wiping and re-installing? There's no TWRP available, but i can use fastboot.

null4n commented 5 years ago

nope, this only get the log that I can find something in it. run it on boot up. but if you don't have TWRP at all, I don't recommend you use this module until I find the problem. you can flash your boot image backup to restore what this module changed. iirc when decrypt failed it will warn you to do a factory reset but if you don't touch anything it won't do anything. BTW, what's your phone's status atm?

blaueente notifications@github.com 于 2018εΉ΄11月17ζ—₯周六 21:50ε†™ι“οΌš

When should I get the logs? During normal runtime, without the vold module? During Module installation? During the failed boot, but will this work at all? Will it help to make a backup of some partition such that I can try restore the phone without wiping and re-installing? There's no TWRP available, but i can use fastboot.

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/noname8964/vold-posix/issues/2#issuecomment-439618363, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae6HdtDQTLCaBak6rimLJdElTzJ-PLyXks5uwBQrgaJpZM4X35t7 .

blaueente commented 5 years ago

Thanks for your help! My phone is working again, after a the factory reset, magisk is still on there. I'll now just re-format my sdcard for now, and wait for TWRP being available. Just for theory, maybe I want to experiment later; if I do the following:

  1. pull a boot image backup
  2. install vold module
  3. reboot, (immediately?) start adb logcat | tee debug.log
  4. get warning, don't touch anything
  5. reboot into bootloader, re-flash bootloader backup

Do you think step 5 will work without factory-reset? I understand, its my risk anyway ;-)

null4n commented 5 years ago

I think it's yes. didn't know why Android one will occur this issue.

blaueente notifications@github.com 于 2018εΉ΄11月17ζ—₯周六 22:14ε†™ι“οΌš

Thanks for your help! My phone is working again, after a the factory reset, magisk is still on there. I'll now just re-format my sdcard for now, and wait for TWRP being available. Just for theory, maybe I want to experiment later; if I do the following:

  1. pull a boot image backup
  2. install vold module
  3. reboot, (immediately?) start adb logcat | tee debug.log
  4. get warning, don't touch anything
  5. reboot into bootloader, re-flash bootloader backup

Do you think step 5 will work without factory-reset? I understand, its my risk anyway ;-)

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/noname8964/vold-posix/issues/2#issuecomment-439620113, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae6HdvfJaZmzd7hzFbLYuM4OiMv6tarKks5uwBmrgaJpZM4X35t7 .

dariods8474 commented 3 years ago

I said it only works for AOSP-like system:( MIUI or other UI rom has not tested. and in my opinion, MIUI support exfat, why you use this module?

Most AOSP roms have NTFS support than what is the use of this module? Module for stock Miui roms have exfat support where the file integrity is doubtful which arises the Need for ext or NTFS support for SD card

null4n commented 3 years ago

Most AOSP roms have NTFS support than what is the use of this module? Module for stock Miui roms have exfat support where the file integrity is doubtful which arises the Need for ext or NTFS support for SD card

stock pixel and some stock aosp-like system didn't support exfat and etc. I made this module only for these systems. miui has lots of changes from aosp, so I won't support it. you can still use it in your risk, but don't tell me any bug or losing data

dariods8474 commented 3 years ago

Most AOSP roms have NTFS support than what is the use of this module? Module for stock Miui roms have exfat support where the file integrity is doubtful which arises the Need for ext or NTFS support for SD card

stock pixel and some stock aosp-like system didn't support exfat and etc. I made this module only for these systems. miui has lots of changes from aosp, so I won't support it. you can still use it in your risk, but don't tell me any bug or losing data

I wish you could make a universal module. You are the only one who has attempted. My bad luck not to have one.

null4n commented 3 years ago

I wish you could make a universal module. You are the only one who has attempted. My bad luck not to have one.

I don't think so, vold has lots of changes between different api level. the only way maybe compile all of theme, but this take too many time and disk space. amd I need different system to test it. unfortunately I only have 8.1