-
Notifications
You must be signed in to change notification settings - Fork 54
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
modified file on the mtp responder side, but the PC can not refresh at the same time.(maybe I solved this problem by change the code) #51
Comments
Hello, Thanks for the patch, this appears fine. Have you successfully tried it ? If so, please make a pull-request. Thanks ! (Just for record, which client operating system have you tried ?) |
Hello. First, thank you for your reply. The client operating system I have : win7, win10, and my android-10 phone. And I passed the verification on win7 and win10, but the android-10 phone is not successfully. |
Hello. And I tried the following experiments: So, I believe that the android os system support for MTP Initiator is not perfect, and it's not about your MTP responder. Do you agree? Thanks, wish you a happy life. |
Yes i agree. I know that some MTP Initiators have some issues with the events coming from the device. Thanks for the PR/patch and tests, this is now in the sources ! |
for example:
1)create a file on mtp responder:
echo hello1 > hello.txt
2)watch the file on PC,it's good to find the hello.txt and it's content is : hello1.
3)append some content to the hello.txt file on mtp responder:
echo hello2 >> hello.txt
4)watch the file on PC,but the content is keep to : hello1.
5)append some content to the hello.txt file on mtp responder:
echo hello3 >> hello.txt
6)watch the file on PC,and the content is change to : hello. hello2.
....
can you verification this problem please?
Thank you, good life to you.
Hello
maybe I sovled this problem by change the source code(just add one line):
the file: src/mtp_properties.c
and the function:
int build_objectproplist_dataset(mtp_ctx * ctx, void * buffer, int maxsize,fs_entry * entry, uint32_t handle,uint32_t format_id, uint32_t prop_code, uint32_t prop_group_code, uint32_t depth)
{
...
++ /* update the file size infomation */
++ entry->size = entrystat.st_size;
...
}
Are you agree?
Thanks, wish you a happy life.
The text was updated successfully, but these errors were encountered: