New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve USB OTG support #1116

Closed
d4rken opened this Issue Sep 1, 2017 · 2 comments

Comments

1 participant
@d4rken
Owner

d4rken commented Sep 1, 2017

SD Maid is not detecting an usb otg device (usb stick) as valid storage.

Mounted here:

1504181164397 V/Shell:Interactive: Output: /dev/block/vold/8:1 on /mnt/usbdrive0 type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
1504181118202 D/Debug: Install id: 90645a2b-4e6d-4fe9-ae24-a5a64b899d0a
1504181118278 I/Debug: F: VERSIONNAME:4.7.6; VERSIONCODE:40706
1504181118281 I/Debug: P: VERSIONNAME:4.1.2; VERSIONCODE:40102
1504181118308 D/Debug: ro.build.id=JOP40D
1504181118313 D/Debug: ro.build.display.id=JOP40D.UI1_30F3B
1504181118313 D/Debug: ro.build.version.incremental=201407252230
1504181118314 D/Debug: ro.build.version.sdk=17
1504181118351 D/Debug: ro.build.version.codename=REL
1504181118352 D/Debug: ro.build.version.release=4.2.1
1504181118353 D/Debug: ro.build.date=Fri Jul 25 22:30:56 CST 2014
1504181118354 D/Debug: ro.build.date.utc=1406298656
1504181118354 D/Debug: ro.build.type=user
1504181118355 D/Debug: ro.build.user=jenkins
1504181118355 D/Debug: ro.build.host=mars
1504181118356 D/Debug: ro.build.tags=release-keys
1504181118357 D/Debug: ro.product.model=DA241HL
1504181118357 D/Debug: ro.product.brand=acer
1504181118358 D/Debug: ro.product.name=DA241HL_en_SG
1504181118358 D/Debug: ro.product.device=DA241HL
1504181118358 D/Debug: ro.product.board=DA241HL
1504181118359 D/Debug: ro.product.cpu.abi=armeabi-v7a
1504181118359 D/Debug: ro.product.cpu.abi2=armeabi
1504181118360 D/Debug: ro.product.manufacturer=acer
1504181118360 D/Debug: ro.product.locale.language=en
1504181118361 D/Debug: ro.product.locale.region=US
1504181118361 D/Debug: ro.build.product=DA241HL
1504181118361 D/Debug: ro.build.description=DA241HL_en_SG-user 4.2.1 JOP40D 201407252230 release-keys
1504181118362 D/Debug: ro.build.fingerprint=acer/DA241HL_en_SG/DA241HL:4.2.1/JOP40D/201407252230:user/release-keys
1504181118362 D/Debug: ro.build.characteristics=tablet

1504181164387 V/Shell:Interactive: Output: rootfs on / type rootfs (ro,relatime)
1504181164387 V/Shell:Interactive: Output: tmpfs on /dev type tmpfs (rw,nosuid,relatime,mode=755)
1504181164387 V/Shell:Interactive: Output: devpts on /dev/pts type devpts (rw,relatime,mode=600)
1504181164388 V/Shell:Interactive: Output: none on /dev/cpuctl type cgroup (rw,relatime,cpu)
1504181164389 V/Shell:Interactive: Error : 5299c35b-8d6b-4c23-9d70-d7704bb4565b
1504181164390 V/Shell:Interactive: Output: proc on /proc type proc (rw,relatime)
1504181164391 V/Shell:Interactive: Output: sysfs on /sys type sysfs (rw,relatime)
1504181164392 V/Shell:Interactive: Output: debugfs on /sys/kernel/debug type debugfs (rw,relatime)
1504181164392 V/Shell:Interactive: Output: none on /acct type cgroup (rw,relatime,cpuacct)
1504181164393 V/Shell:Interactive: Output: tmpfs on /mnt/secure type tmpfs (rw,relatime,mode=700)
1504181164393 V/Shell:Interactive: Output: tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000)
1504181164394 V/Shell:Interactive: Output: tmpfs on /mnt/obb type tmpfs (rw,relatime,mode=755,gid=1000)
1504181164394 V/Shell:Interactive: Output: /dev/block/mmcblk0p3 on /system type ext4 (ro,relatime,user_xattr,acl,barrier=1,data=ordered)
1504181164395 V/Shell:Interactive: Output: /dev/block/mmcblk0p4 on /cache type ext4 (rw,nosuid,nodev,noatime,errors=panic,user_xattr,acl,barrier=1,journal_async_commit,nodelalloc,data=writeback)
1504181164395 V/Shell:Interactive: Output: /dev/block/mmcblk0p8 on /data type ext4 (rw,nosuid,nodev,noatime,errors=panic,user_xattr,acl,barrier=1,journal_async_commit,nodelalloc,data=writeback)
1504181164396 V/Shell:Interactive: Output: /dev/fuse on /mnt/shell/emulated type fuse (rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other)
1504181164396 V/Shell:Interactive: Output: tmpfs on /storage/emulated type tmpfs (rw,nosuid,nodev,relatime,mode=050,gid=1028)
1504181164397 V/Shell:Interactive: Output: /dev/block/vold/179:49 on /storage/sdcard1 type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
1504181164397 V/Shell:Interactive: Output: /dev/block/vold/8:1 on /mnt/usbdrive0 type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
1504181164398 V/Shell:Interactive: Output: /dev/fuse on /storage/emulated/0 type fuse (rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other)
1504181164398 V/Shell:Interactive: Output: /dev/fuse on /storage/emulated/0/Android/obb type fuse (rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other)
1504181164399 V/Shell:Interactive: Output: /dev/fuse on /storage/emulated/legacy type fuse (rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other)
1504181164399 V/Shell:Interactive: Output: /dev/fuse on /storage/emulated/legacy/Android/obb type fuse (rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other)

@d4rken d4rken added this to the v4.8.0 milestone Sep 1, 2017

@d4rken

This comment has been minimized.

Owner

d4rken commented Sep 1, 2017

From an Amazon Fire:

USBOTG_STORAGE=/storage/usbotg
SECONDARY_STORAGE_USB=/storage/usbotg
shell@ford:/ $ printenv
printenv
_=/system/bin/printenv
ANDROID_DATA=/data
AMAZON_EXTRA_RESOURCE_LIST=vendor/amazon/framework/android.amazon.res/android.amazon.res.apk:framework/amazon-res/amazon-res.apk
HOME=/data
SECONDARY_STORAGE=/storage/sdcard1
KRB5CCNAME=FILE:/sdcard/krb5cc_1
KRB5_CONFIG=FILE:/data/system/kerberos/krb5.conf
LOOP_MOUNTPOINT=/mnt/obb
USER=shell
ANDROID_ASSETS=/system/app
TERM=vt100
ANDROID_SOCKET_adbd=10
ANDROID_STORAGE=/storage
MKSH=/system/bin/sh
USBOTG_STORAGE=/storage/usbotg
SYSTEMSERVERCLASSPATH=/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/fireossvc.jar
SECONDARY_STORAGE_USB=/storage/usbotg
BOOTCLASSPATH=/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/apache-xml.jar:/system/framework/fireoscapability.jar:/system/framework/fireosapiext.jar:/system/framework/fireosutil.jar:/system/framework/fireosmgr.jar:/system/framework/fireosext.jar:/system/framework/fireospolicy.jar:/system/framework/eac.jar:/system/framework/icu4j.jar:/system/framework/i18n-utilities.jar:/system/framework/eaclibrary.jar:/system/framework/webviewext.jar:/system/framework/amazon-remoteviews.jar
SHELL=/system/bin/sh
ANDROID_BOOTLOGO=1
EMULATED_STORAGE_SOURCE=/mnt/shell/emulated
AMAZON_COMPONENT_LIST=com.amazon.geo.maps:com.amazon.platform;com.amazon.device.messaging:com.amazon.platform;com.amazon.atlas:com.amazon.atlas
EMULATED_STORAGE_TARGET=/storage/emulated
ASEC_MOUNTPOINT=/mnt/asec
HOSTNAME=ford
PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
ANDROID_PROPERTY_WORKSPACE=8,0
ANDROID_ROOT=/system
EXTERNAL_STORAGE=/storage/emulated/legacy
@d4rken

This comment has been minimized.

Owner

d4rken commented Sep 1, 2017

From the device in the OP. No USB OTG path in the environment vars :(

1504267950513 D/Debug: Environment variables:
1504267950513 D/Debug: _=/system/bin/printenv
1504267950514 D/Debug: LOOP_MOUNTPOINT=/mnt/obb
1504267950514 D/Debug: ANDROID_DATA=/data
1504267950514 D/Debug: BOOTCLASSPATH=/system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar
1504267950515 D/Debug: PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
1504267950515 D/Debug: EMULATED_STORAGE_SOURCE=/mnt/shell/emulated
1504267950516 D/Debug: ANDROID_ROOT=/system
1504267950516 D/Debug: EMULATED_STORAGE_TARGET=/storage/emulated
1504267950517 D/Debug: ANDROID_STORAGE=/storage
1504267950517 D/Debug: ANDROID_SOCKET_zygote=9
1504267950517 D/Debug: ANDROID_PROPERTY_WORKSPACE=8,32768
1504267950518 D/Debug: EXTERNAL_STORAGE=/storage/emulated/legacy
1504267950518 D/Debug: ANDROID_ASSETS=/system/app
1504267950523 D/Debug: RANDOM=13970
1504267950524 D/Debug: ASEC_MOUNTPOINT=/mnt/asec
1504267950524 D/Debug: LD_LIBRARY_PATH=/vendor/lib:/system/lib
1504267950525 D/Debug: SECONDARY_STORAGE=/storage/sdcard1
1504267950525 D/Debug: ANDROID_BOOTLOGO=1

@d4rken d4rken closed this Sep 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment