Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

[Huawei P20 lite] [AOSP 10 v214] exfat not working. #761

Open
gitlimes opened this issue Oct 9, 2019 · 29 comments
Open

[Huawei P20 lite] [AOSP 10 v214] exfat not working. #761

gitlimes opened this issue Oct 9, 2019 · 29 comments

Comments

@gitlimes
Copy link

gitlimes commented Oct 9, 2019

Micro SD, USB OTG and NFC not working (Using AOSP 10 v206).
Edit: I'm unable to check USB OTG and NFC, but I know that Micro SD still doesn't work (v214).

@gitlimes gitlimes changed the title [Huawei P20 lite] [AOSP 10 v 200.d] [Huawei P20 lite] [AOSP 10 v 200.e] Oct 22, 2019
@gitlimes gitlimes changed the title [Huawei P20 lite] [AOSP 10 v 200.e] [Huawei P20 lite] [AOSP 10 v 201] Oct 28, 2019
@gitlimes gitlimes changed the title [Huawei P20 lite] [AOSP 10 v 201] [Huawei P20 lite] [AOSP 10 v 203] Nov 12, 2019
@gitlimes gitlimes changed the title [Huawei P20 lite] [AOSP 10 v 203] [Huawei P20 lite] [AOSP 10 v203] Nov 12, 2019
@gitlimes gitlimes changed the title [Huawei P20 lite] [AOSP 10 v203] [Huawei P20 lite] [AOSP 10 v204] Nov 13, 2019
@gitlimes gitlimes changed the title [Huawei P20 lite] [AOSP 10 v204] [Huawei P20 lite] [AOSP 10 v205] Micro SD, USB OTG and NFC not working. Dec 3, 2019
@gitlimes gitlimes changed the title [Huawei P20 lite] [AOSP 10 v205] Micro SD, USB OTG and NFC not working. [Huawei P20 lite] [AOSP 10 v206] Micro SD, USB OTG and NFC not working. Dec 7, 2019
@gitlimes gitlimes changed the title [Huawei P20 lite] [AOSP 10 v206] Micro SD, USB OTG and NFC not working. [Huawei P20 lite] [AOSP 10 v214] Micro SD, USB OTG and NFC not working. Mar 16, 2020
@gitlimes gitlimes changed the title [Huawei P20 lite] [AOSP 10 v214] Micro SD, USB OTG and NFC not working. [Huawei P20 lite] [AOSP 10 v214] Micro SD not working. Mar 16, 2020
@gitlimes
Copy link
Author

Micro SD still doesn't work. I can't confirm if USB OTG and NFC work.

@phhusson
Copy link
Owner

Give more details that "doesn't work"

@gitlimes
Copy link
Author

gitlimes commented Mar 16, 2020

The SD card doesn't show up in any file explorer, and when i boot up the phone, it says "Issue with SanDisk SD card - Tap to fix"
Click to view image
If I tap on the notification, the SD formatting screen shows up.
Click to view image
If I try to format it it says that the SD card is ready for use, but it still doesn't work. The SD card is not corrupted (I can still use in the custom recovery and on my PC).
Sadly I've lost my USB OTG cable, so I can't check if USB OTG works or not, and I can't check if NFC works or not.

Edit: hid the pictures

@phhusson
Copy link
Owner

ok, please provide logcat after you insert the sdcard

@gitlimes
Copy link
Author

logcat_sd.txt

@phhusson
Copy link
Owner

K issue is 03-16 16:31:08.512 399 29828 E vold : public:179,193 failed to mount /dev/block/vold/public:179,193: Permission denied
I can't see any denial related to that
I can't understand what kind of issue there could be.
Please give the result of:
ls -lZ /dev/block/vold/public:179,193 as root

@gitlimes
Copy link
Author

gitlimes commented Mar 16, 2020

It outputs:
brw------- 1 root root u:object_r:vold_device:s0 179, 193 2020-03-16 16:34 /dev/block/vold/public:179,193

@geppone70
Copy link

I found this:

Disable encryption to use Adoptable Storage (or just because you can)

open /vendor/etc/fstab.hi6250
make a backup just in case
find "/dev/block/bootdevice/by-name/userdata /data f2fs nosuid,nodev,noatime,discard,inlinedata,inlinexatt r wait,check,fileencryption=aes-256-xts:aes-256-cts"
remove ",fileencryption=aes-256-xts:aes-256-cts"
factory reset via stock recovery

Is it related to the issue?

@gitlimes
Copy link
Author

gitlimes commented Mar 24, 2020

@geppone70 I can't edit the file... I tried mounting /vendor read-write on FX File Explorer, but I still couldn't edit the file. I tried modifying it from TWRP, and I still couldn't do it...

@gitlimes
Copy link
Author

gitlimes commented Mar 24, 2020

Also, I think i tried removing encryption a long time ago, but it didn't fix the sd.

@geppone70
Copy link

geppone70 commented Mar 25, 2020

I still couldn't edit the file. I'm trying with adb shell but I get always no adb devices in list.

@geppone70
Copy link

a 32GB sd works, a 64 GB SD don't work, weird

@phhusson
Copy link
Owner

phhusson commented Apr 9, 2020 via email

@geppone70
Copy link

geppone70 commented Apr 9, 2020

exactly, exfat 64GB and fat32 32GB

@phhusson
Copy link
Owner

phhusson commented Apr 9, 2020 via email

@geppone70
Copy link

SD 64GB formatted exFAT don't work
SD 32GB formatted FAT32 works

now I've formatted the SD 64GB FAT32 (using IOMEI partition manager software) and SD 64GB works too

@phhusson phhusson changed the title [Huawei P20 lite] [AOSP 10 v214] Micro SD not working. [Huawei P20 lite] [AOSP 10 v214] exfat not working. Apr 9, 2020
@phhusson
Copy link
Owner

phhusson commented Apr 9, 2020

Ok, very good, thanks.
I assume exfat works on stock rom?
Can you give the content of your /proc/filesystems ?
(adb shell cat /proc/filesystems)

@gitlimes
Copy link
Author

gitlimes commented Apr 9, 2020

Yes, exfat works on stock rom.

nodev   sysfs
nodev   rootfs
nodev   tmpfs
nodev   bdev
nodev   proc
nodev   cpuset
nodev   cgroup
nodev   cgroup2
nodev   devtmpfs
nodev   configfs
nodev   debugfs
nodev   tracefs
nodev   sockfs
nodev   bpf
nodev   pipefs
nodev   ramfs
nodev   devpts
        ext3
        ext2
        ext4
        squashfs
        vfat
        msdos
        exfat
nodev   ecryptfs
nodev   sdcardfs
nodev   cifs
        fuseblk
nodev   fuse
nodev   fusectl
nodev   overlay
        f2fs
nodev   pstore
nodev   selinuxfs
nodev   functionfs

@phhusson
Copy link
Owner

phhusson commented Apr 9, 2020 via email

@gitlimes
Copy link
Author

gitlimes commented Apr 9, 2020

grep.txt

@phhusson
Copy link
Owner

phhusson commented Apr 9, 2020 via email

@gitlimes
Copy link
Author

gitlimes commented Apr 9, 2020

Nope. I rebooted twice after that, but exfat still isn't working.
The notification now says "Unsupported SanDisk SD card", and if i try to format it, it gets stuck at 20%.

@gitlimes
Copy link
Author

gitlimes commented May 19, 2021

Use this formatusb best working ██████████████

Thanks for bumping this >1year old issue without adding anything useful and promoting your own closed-source software at the same time!
I know how to format an SD card, the issue is that exfat didn't work on the GSI.

While I'm at it I'm gonna close this since I no longer have access to that phone. Feel free to open this back up if the issue is still present on newer versions and/or there have been new developments regarding the issue.

@chaoscreater
Copy link

chaoscreater commented Nov 15, 2021

I'm having this issue as well. Can this be re-opened?

@gitlimes
Copy link
Author

@chaoscreater, reopening this! (again, keep in mind I no longer have access to that phone so I won't be able to help)

@gitlimes gitlimes reopened this Nov 16, 2021
@chaoscreater
Copy link

chaoscreater commented Nov 16, 2021

@ashmonty that's all good. I have 2 different phones running on A11 GSI with the exact same issue. I can fix this issue on one of them with a custom kernel that supports exFat, but that kernel is unstable and has some other issues and so ideally looking for a solution on the ROM level.....

I've tried to take the vold file from stock ROM and another A11 custom ROM and replaced it in /system/bin and gave it full permissions. Unfortunately, I couldn't even boot after that point.

There was an old Magisk module that does something with vold and provides exfat support, but that one only works for Oreo unfortunately....

UPDATE:

Found my solution!

https://forum.xda-developers.com/t/request-systemless-filesystem-drivers-for-kernel-mode-and-fuse-support.3807617/#post-79685842

@soredake
Copy link

Same problem with redmi note 5 pro and latest crdroid 12.1 gsi.

@soredake
Copy link

soredake commented Jun 21, 2022

forum.xda-developers.com/t/request-systemless-filesystem-drivers-for-kernel-mode-and-fuse-support.3807617/#post-79685842

This twrp zip is not working for me (unneeded check for bl unlock and files are not writen into /system/xbin), and not everyone have twrp so i repacked this twrp zip into magisk module zip, here:
ntfs-exfat-support.zip

This module disables selinux in order to mount sdcard as i don't want to spend time on learning how to write selinux policies.

@soredake
Copy link

soredake commented Jun 27, 2022

https://blog.esper.io/android-dessert-bites-27-exfat-on-pixel-532176849/
Maybe exfat will work in a13 gsi if kernel supports it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants