offensive-security / kali-nethunter

The Kali NetHunter Project
https://github.com/offensive-security/kali-nethunter/wiki
3.49k stars 891 forks source link

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

Open yesimxev opened 5 years ago

yesimxev commented 5 years ago

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.
kimocoder commented 5 years ago

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"

jcadduono commented 5 years ago

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

yesimxev commented 5 years ago

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 commented 5 years ago

Actually CDROM and writeable USB works with Drivedroid 0.9.28