Skip to content

Replace empty directory env variable by default value#19

Open
Iceows wants to merge 1 commit into
phhusson:android-12.1.0_r11-phhfrom
Iceows:android-12.1.0_r11-phh
Open

Replace empty directory env variable by default value#19
Iceows wants to merge 1 commit into
phhusson:android-12.1.0_r11-phhfrom
Iceows:android-12.1.0_r11-phh

Conversation

@Iceows

@Iceows Iceows commented Aug 8, 2022

Copy link
Copy Markdown

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 :
phhusson/treble_experimentations#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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant