-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script to copy files to phone #1
base: master
Are you sure you want to change the base?
Conversation
Just one more thing. I have a D805 and I need to adjust EP_IN and EP_OUT to 0x83 and 2, respectively. |
|
||
|
||
if len(sys.argv) != 3: | ||
print 'Usage: {0} <local> <remote>'.format(sys.argv[0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use print(...)
for Python 3 compatibility
Hi Dorian, thank you for your interest and PR! I have added some inline comments. About the endpoint numbers, can you post a subset of the Also an additional tip for those who need something with low overhead: you can actually rename /dev/block/mmcblk0 and make a symlink or something. Then OPENing it for writing will allow you to use WRTE commands to transfer a whole file. Alternatively, write to an unused partition and use something like |
I actualy thought in replace /dev/block/mmcblk0 by a link but I not tried to implement. I'll sent and lsusb subset for D805 when I get home. I also tried in my D855 and I think that I have to adjust the endpoints too (I don't remember well). I'll check that and sent these informations in the next patch. |
I would not recommend renaming the mmcblk0 device unless the user is absolutely sure what (s)he is doing (and then I would still be careful). The D855 is the European version right? That is the one I have tested this project with. |
D805 usb information:
|
One more thing. |
Rename lsusb.txt while at it. Thanks to @dorianlangbeck for the D805 dump (#1 (comment))
About the /dev/block path, my D855 has both, but on newer devices only the bootdevice path is present. I guess that some fallback is needed here. |
Initialy I created a new parser |
The If some common arguments are needed in the future, then it could be added as needed. |
I can't see the merge button... maybe only you @Lekensteyn can do it. |
With this script we can push files to phone using several EXEC blocks (with optimal payload size) to transfer a file to phone.