oufm / ums-interface Goto Github PK
View Code? Open in Web Editor NEWconfig the USB mass storage for android to use the phone as usb disk, provide mount function and simple file explorer.
License: GNU General Public License v3.0
config the USB mass storage for android to use the phone as usb disk, provide mount function and simple file explorer.
License: GNU General Public License v3.0
+ dirname /data/data/com.termux/files/home/usb_mass_storage.sh
+ cd /data/data/com.termux/files/home
+ pwd
+ basename /data/data/com.termux/files/home/usb_mass_storage.sh
+ script_path=/data/data/com.termux/files/home/usb_mass_storage.sh
+ basename /data/data/com.termux/files/home/usb_mass_storage.sh
+ log_path=/sdcard/usb_mass_storage.sh.log
+ termux_bin=/data/data/com.termux/files/usr/bin
+ mount=/data/data/com.termux/files/usr/bin/mount
+ umount=/data/data/com.termux/files/usr/bin/umount
+ losetup=/data/data/com.termux/files/usr/bin/losetup
+ find=/data/data/com.termux/files/usr/bin/find
+ truncate=/data/data/com.termux/files/usr/bin/truncate
+ toast=/data/data/com.termux/files/usr/bin/termux-toast
+ mkfs=''
+ lun_file=''
+ default_size_mb=2048
+ src=/storage/emulated/0/mass_storage.img
+ dst=/sdcard/mass_storage
+ '[' namespace '=' root ']'
+ '[' namespace '=' namespace ']'
+ run_with_namespace
+ typeset block
+ '[' -z '' ']'
+ search_lun_file
+ typeset configfs_mount
+ typeset config_path
+ /data/data/com.termux/files/usr/bin/mount
+ grep configfs
+ configfs_mount=$'none on /config type configfs (rw,nosuid,nodev,noexec,relatime)\nnone on /debug_ramdisk/.magisk/mirror/config type configfs (rw,nosuid,nodev,noexec,relatime)\n/dev/block/dm-14 on /system/etc/init/hw/init.usb.configfs.rc type ext4 (ro,seclabel,relatime,discard)'
+ '[' -n $'none on /config type configfs (rw,nosuid,nodev,noexec,relatime)\nnone on /debug_ramdisk/.magisk/mirror/config type configfs (rw,nosuid,nodev,noexec,relatime)\n/dev/block/dm-14 on /system/etc/init/hw/init.usb.configfs.rc type ext4 (ro,seclabel,relatime,discard)' ']'
+ echo $'none on /config type configfs (rw,nosuid,nodev,noexec,relatime)\nnone on /debug_ramdisk/.magisk/mirror/config type configfs (rw,nosuid,nodev,noexec,relatime)\n/dev/block/dm-14 on /system/etc/init/hw/init.usb.configfs.rc type ext4 (ro,seclabel,relatime,discard)'
+ awk '{print $3}'
+ config_path=$'/config\n/debug_ramdisk/.magisk/mirror/config\n/system/etc/init/hw/init.usb.configfs.rc'
+ /data/data/com.termux/files/usr/bin/find $'/config\n/debug_ramdisk/.magisk/mirror/config\n/system/etc/init/hw/init.usb.configfs.rc' -type f -name file
find: ‘/config\n/debug_ramdisk/.magisk/mirror/config\n/system/etc/init/hw/init.usb.configfs.rc’: No such file or directory
+ lun_file=''
+ '[' -e '' ']'
+ /data/data/com.termux/files/usr/bin/termux-toast 'can'\''t find lun file'
+ exit 1
What's going on ?
This is log:
ums_log.tar.gz
Thanks!
If support , I want to root huawei mate9
方便提供下微信或手机号吗,我需要您的帮助谢谢
我希望生成镜像文件的格式化选项能添加格式化为ext4这个选项,顺便一提,挂载镜像文件在我的手机上会失败,即使是/data目录
hey, i believe it is a good application. how about release it in fdroid?
i believe the app is worth more one to use it!
it is just a suggestion. no offense. Thanks for your effort again!
when set disk image file as ums, it can work normally.
when i try to set an external sd as ums, the disk can be listed by lsblk
in
linux or diskmgmt.msc
in windows, but the part of the disk cannot be read.
i have formatted the external sd and try again, but nothing changed. and i make
sure that the mount namespace is global and the software coming from github
is latest.
thanks!
系统是安卓10的类原生,机型魅族16th。
镜像原本是可以被挂载的,但是重启后就提示
[ ERR]>>mount: mounting /dev/loop0 on /data/media/0/ums_mnt/mnt0 failed: Invalid argument |
---|
execRoot("mkdir /sdcard/ums_img;chomd 777 /sdcard/ums_img");
chomd is a bug. should be chmod.
Error message reads "UMS fail:MassStorageSysfs is not ready!"
Affected device: Google Pixel 3a
Affested OS: Android 11, build RQ1A.210105.002
App version: 1.4.1
Happens every time when mounting iso as usb or mounting to directory
你好!问题如题 多次点击启动/关闭 挂载/卸载都不好使。求教怎么解决。
手机型号:三星note2.。
其他人如果有遇到该问题的 可以一起讨论下呀
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.