aboutsummaryrefslogtreecommitdiffstats
path: root/Audio-Common/filescan-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'Audio-Common/filescan-utils.c')
-rw-r--r--Audio-Common/filescan-utils.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/Audio-Common/filescan-utils.c b/Audio-Common/filescan-utils.c
index af0b5c9..4a5613f 100644
--- a/Audio-Common/filescan-utils.c
+++ b/Audio-Common/filescan-utils.c
@@ -113,9 +113,12 @@ PUBLIC const char *GetBinderName() {
if (binderName) return binderName;
- // retrieve binder name from process name afb-name-trailer
- prctl(PR_GET_NAME, psName,NULL,NULL,NULL);
- binderName=(char*)GetMidleName(psName);
+ binderName= getenv("AFB_BINDER_NAME");
+ if (!binderName) {
+ // retrieve binder name from process name afb-name-trailer
+ prctl(PR_GET_NAME, psName,NULL,NULL,NULL);
+ binderName=(char*)GetMidleName(psName);
+ }
return binderName;
} \ No newline at end of file