kali-nethunter icon indicating copy to clipboard operation
kali-nethunter copied to clipboard

Drivedroid can't host read-only image on mass storage

Open yesimxev opened this issue 6 years ago • 4 comments

Device:

Galaxy S6 edge

OS version (KitKat/Lollipop/Marshmallow/Nougat):

LineageOS 14.1 nougat

Built from repo (date and build command) or downloaded from website (links):

Github sources

Output of cat /proc/version in adb shell or NetHunter Terminal:

Linux version 3.10.61-yesimxev-gab2e937-dirty (root@kali) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #1 SMP PREEMPT Sun Feb 24 23:36:39 CET 2019

Issue:

Drivedroid can't host read-only image, is there something to be enabled in the kernel other than the CD-rom patch I did?

Failed to change read only state from disabled to enabled. 
The kernel blocked the request.

yesimxev avatar Feb 24 '19 22:02 yesimxev

CDROM/USB patch is called "kexec patch" while the OTG/OTG-Y support you should look at "dwc3" patches. They will MOST LIKELY not work directly, as the sources from vendor->vendor are totally different, BUT.. with some understanding of basic programming they may be fitted manually into your "base"

kimocoder avatar Feb 24 '19 22:02 kimocoder

kexec has nothing to do with cdrom/usb (kexec patch is old method for multibooting roms from recovery) :S he is not looking for otg patches, just wants to solve unable to mount to mass storage lun (probably what he is trying to mount has something with a file handle on it...)

what are you trying to mount in drivedroid? you should link to your commit that adds cdrom/mass storage patch so we can look at both the patch and the way your device is handling ums normally

jcadduono avatar Feb 25 '19 00:02 jcadduono

Just an ISO which can be succesfully mounted on my OPO. The patch is same as yours for zerolte. https://github.com/yesimxev/android_kernel_samsung_exynos7420/commit/a020dd33bb12beb8e200c4ed0ac20d852bc6a5bd

Btw, interested in the Y cable patch too, but couldn't find

yesimxev avatar Feb 25 '19 05:02 yesimxev

Actually CDROM and writeable USB works with Drivedroid 0.9.28

yesimxev avatar Apr 18 '19 18:04 yesimxev