From 999219d763f3a4927c450c5132493c637ee3db60 Mon Sep 17 00:00:00 2001 From: Captain Throwback Date: Mon, 29 Jun 2015 09:22:22 -0400 Subject: Update CUSTOM_LUN_FILE from AOSP USB config AOSP has used a standard USB config for the last 3 years. Time to update TWRP for devices that still use UMS. Reference: https://android.googlesource.com/platform/system/core/+/master/rootdir/init.usb.rc Change-Id: I59690f955a7d6db9ae9d607d46299652b52fe8b8 --- variables.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables.h b/variables.h index d5df8d41d..c20eb2b4e 100644 --- a/variables.h +++ b/variables.h @@ -170,7 +170,7 @@ //#define MAX_ARCHIVE_SIZE 52428800LLU // 50MB split for testing #ifndef CUSTOM_LUN_FILE -#define CUSTOM_LUN_FILE "/sys/devices/platform/usb_mass_storage/lun%d/file" +#define CUSTOM_LUN_FILE "/sys/class/android_usb/android0/f_mass_storage/lun%d/file" #endif #ifndef TW_BRIGHTNESS_PATH -- cgit v1.2.3