I found the cause of the problem. It wasn't the volume name that was empty, just the environment variable that set the start of the external storage volume's default path : env name : ANDROID_STORAGE.
It is set to "" in an init rc file ( init.hi6250.rc) at the vendor level and the source code tests only null value and not also empty value
I found the cause of the problem. It wasn't the volume name that was empty, just the environment variable that set the start of the external storage volume's default path : env name : ANDROID_STORAGE.
It is set to "" in an init rc file ( init.hi6250.rc) at the vendor level and the source code tests only null value and not also empty value
Issue describe the bug : https://github.com/phhusson/treble_experimentations/issues/2386 No default sound and list of system sound (ringtones, alarms, notify) is empty #2386
Replace empty directory env variable by default value.
Root cause : Huawei hi6250 define in init.hi6250.rc ANDROID_STORAGE to "", so check empty string and replace with default path.