New answers tagged

2

You got it correctly, USB OTG sticks are mounted at /mnt/media_rw/[UUID]. Source: // Use UUID as stable name, if available std::string stableName = getId(); if (!mFsUuid.empty()) { stableName = mFsUuid; } mRawPath = StringPrintf("/mnt/media_rw/%s", stableName.c_str()); For FAT family of filesystems UUID is not the 32 digits long ...


1

I have a Huawei P30 on Android 9 and a Huawei tablet on Android 8: on both, mount point for the internal drive is: "/storage/emulated/0". Only the tablet has a SD card mounted, and mount point is "/storage/0000-0000". I see no reason for it would be different for the P30 on Android 9. If you install Termux (a Unix shell for Android), you can go on both ...


1

USB OTG is a hardware capability. Software can't tell if the hardware has this capability or not if it's not configured to do so. The app you show is just confirming the presence of host.xml file that you have put yourself. Also you can confirm that form adb shell: ~$ pm list features | grep usb.host For USB OTG to work, first your kernel should create a ...


0

It's not possible to create filesystem or set label without root access. Block devices in /dev/block/ are created with ownership 0:0, mode 0600. Also apps aren't allowed to access SELinux context device or block_device set on /dev and /dev/block. You can use a rooted device or custom recovery like TWRP. Or use a PC (if available). On Linux and Android ...


Top 50 recent answers are included