FrozenCow |
10-18-2014 03:40 PM |
Quote:
Originally Posted by windows50plinux50p
(Post 5255284)
Did you also make Slitaz?
|
No I haven't. I recommend it to some people because it is such a small download for such great features (great bang for buck ;)).
Quote:
Originally Posted by schneidz
(Post 5255289)
sounds cool... does it support persistence ?
|
Well, your phone becomes a USB drive (or CD drive depending on your phones kernel/rom). If you can make your OS persistent on a USB thumb drive, you can do the same in DriveDroid. Usually you can just install the OS onto the USB disk (just like any other /dev/sdX)
Quote:
Originally Posted by Drakeo
(Post 5255428)
is it open source can I read the code mm . Is there anyway I can prove it is ok with out reading the code . If you can read the code all is good.
|
I haven't open sourced it yet. I'm kindof on the fence on it. Most of what DriveDroid does is call a specific feature of kernel (USB gadget) to let it host a certain image. A lot of the complexity of DriveDroid comes from making it compatible with all phones... if you ignore that and presume your phone is 'normal' then I can explain what DriveDroid does.
1. First it acquires root with:
$ su
2. Then it sets the USB gadget mode to 'mass_storage':
# echo "mass_storage" > /sys/devices/virtual/android_usb/android0/functions
3. Then it hosts an image onto the mass storage device:
# echo "/path/to/your/image.iso > /sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file
There are a number of details I'm leaving out of this (powering on/off USB, setting USB PID, stuff like that), but these steps are the core of what DriveDroid does on most phones.
|