Определение пути КПК

Я забыл написать, что мониторить нужно процесс Explorer.exe
Проблема невозможности сохранить лог прекратив захват была в связи с устаревшей версией программы))
Лог прилагаю.
лог.rar — RGhost — файлообменник
Phoenix, нет такого пункта,я тебе точно говорю.
Что править надо?
 
Последнее редактирование:
Из предыдущего поста проверь в корне /default.prop и и /system/build.prop
Но если в /default.prop нет mass_storage , то писать не поможет - при загрузке опять запишет, то что было. То есть надо перепаковывать boot.img
Это не трудно, но нужен
1.рут доступ
2. boot.img (слить с телефона или из файлов для прошивки)
3. утилита для записи boot.img (можно использовать типа Rashr)
4. AndImageTool - для перепаковки boot.img
1а.Как обходной путь есть хороший "костыль" - RemountSD - UMS (usb mass storage)
[APP][ROOT] USB MASS STORAGE Enabler v1.4.4 [Android 4.0+] - вот инфо и прога тоже. Чётко работает.
 

Вложения

  • RemountSD [Rus by bullik01]_1.3.zip
    610.3 KB · Просмотры: 0
Последнее редактирование:
Phoenix, а что мне сделать, чтобы телефон подключался как у Koza Nozdri - через MTP,
а то я подключаю, а он мне создаёт стандартное подключение через съемный диск (с буквой D: )
Зверь - какой-то китаец nomi i450 на Android 4.4.2.
Только напиши, пожалуйста, как для нуба.

Есть еще HTC Sense 3.5 на основе Android 2.3.5., только он вообще ничего не говорит при подключении через USB, и в "Мой компьютер" ничего не появляется.
(... а, разобрался, только он все равно подкл. как обычный съемный диск, был еще вариант "HTC Sync", но думаю, это не то)
 
Последнее редактирование:
Koza Nozdri, вообщем пока нет на чем проверить, можешь протестировать такое:

Подключи своё устройство к ПК.
Запусти приложенную ниже программу (совместимость: Windows Vista и выше).

Будет выведен список всех медиа устройств в системе, поддерживающих интефейс MTP.
1. Напиши в этой теме список устройств, если их больше одного.
2. Выбери нужное устройство, введя цифру с подтверждением ENTER.

Выбери пункт 16. List all functional objects on the device
В консоле будет выведено что-то наподобие:
Functional Category: WPD_FUNCTIONAL_CATEGORY_STORAGE
Functional Objects: Y:\
Запомни то, что выделено красным. Тебе нужна именно категория WPD_FUNCTIONAL_CATEGORY_STORAGE.

Выбери пункт 6. Transfer Image content to the device
Введи Parent object ID - то, что выше было красным
Откроется окно, выбери любой файл с расширением jpg на твоём компьютере.

Напиши здесь, что ответила консоль и скопировался ли файл на устройство.
 

Вложения

  • WpdApiSample.zip
    105.6 KB · Просмотры: 4
Phoenix, у тебя вроде инструкция, как сделать, чтобы распознавался как съемный диск.
А мне нужно наоборот.
 
А мне нужно наоборот.
Они и наоборот могут :)
Зверь - какой-то китаец nomi i450 на Android 4.4.2.
Только напиши, пожалуйста, как для нуба.
Nomi i450 - Официальная прошивка - 4PDA - есть прошивка на него. Я скачал оттуда (с яндекса) ядро, перепаковал - включил mtp - Можешь скачать 5-ю версию прошивальщика - spflashtool.org
Запустить выбрать MT6572_Android_scatter.txt из архива
Снять все галочки и поставить только на boot.img (выбрать его)
Отключить телефон
запустить прошивку - downlod и только теперь подключить телефон к usb - пойдёт процесс. (драйвера надо перед этим установить).
Ничего сложного :)
 

Вложения

  • NOMI-boot.zip
    4.1 MB · Просмотры: 0
CMD/BATCH:
Enter the identifer of the parent object which the file will be transferred unde
r.
>Parent object ID - s10001
! Failed to write 262144 bytes of object data to the destination stream, hr = 0x
80070057
! Failed to transfer object to device, hr = 0x80070057

А куда должен скопироваться файл?Не могу найти.
А,по ходу неудача)
 
Код:
Enter the identifer of the parent object which the file will be transferred under.
>s10001
Read 5876 bytes from the source stream...Wrote 5876 bytes to the destination stream...
The file 'C:\Users\Radbiart\Documents\cjxyizJcY6I.jpg' was transferred to the device.
The newly created object's ID is 'o95B'
У меня это SD карта. А s20001 - внутрення память.
@Koza Nozdri, А можешь файлики прикрепить /default.prop и /system/build.prop (рут если есть)
 
Koza Nozdri, а можешь выложить полный лог?
Запускать с повышенными привилегиями пробовал?
И еще вручную проверить, разрешает ли устройство писать в корень.
 
Последнее редактирование:
CMD/BATCH:
1 Windows Portable Device(s) found on the system

[0] Friendly Name: P01Y
    Manufacturer:  asus
    Description:   P01Y
Enter the index of the device you wish to use.
>
CMD/BATCH:
1 Windows Portable Device(s) found on the system

[0] Friendly Name: P01Y
    Manufacturer:  asus
    Description:   P01Y
Enter the index of the device you wish to use.
>0


WPD Sample Application
=======================================

0.  Enumerate all Devices
1.  Choose a Device
2.  Enumerate all content on the device
3.  Transfer content from the device
4.  Delete content from the device
5.  Move content already on the device to another location on the device
6   Transfer Image content to the device
7.  Transfer Music content to the device
8.  Transfer Contact (VCARD file) content to the device
9.  Transfer Contact (Defined by Properties Only) to the device
10. Create a folder on the device
11. Add a Contact Photo resource to an object
12. Read properties on a content object
13. Write properties on a content object
14. Get an object identifier from a Persistent Unique Identifier (PUID)
15. List all functional categories supported by the device
16. List all functional objects on the device
17. List all content types supported by the device
18. List rendering capabilities supported by the device
19. Register to receive device event notifications
20. Unregister from receiving device event notifications
21. List all events supported by the device
22. List all hint locations supported by the device
==(Advanced BULK property operations)==
23. Read properties on multiple content objects
24. Write properties on multiple content objects
25. Read properties on multiple content objects using object format
==(Update content operations)==
26. Update Image content (properties and data) on the device
27. Update Music content (properties and data) on the device
28. Update Contact content (properties and data) on the device
99. Exit
16

1 Functional Categories Found on the device

Functional Category: WPD_FUNCTIONAL_CATEGORY_STORAGE
Functional Objects: s10001



WPD Sample Application
=======================================

0.  Enumerate all Devices
1.  Choose a Device
2.  Enumerate all content on the device
3.  Transfer content from the device
4.  Delete content from the device
5.  Move content already on the device to another location on the device
6   Transfer Image content to the device
7.  Transfer Music content to the device
8.  Transfer Contact (VCARD file) content to the device
9.  Transfer Contact (Defined by Properties Only) to the device
10. Create a folder on the device
11. Add a Contact Photo resource to an object
12. Read properties on a content object
13. Write properties on a content object
14. Get an object identifier from a Persistent Unique Identifier (PUID)
15. List all functional categories supported by the device
16. List all functional objects on the device
17. List all content types supported by the device
18. List rendering capabilities supported by the device
19. Register to receive device event notifications
20. Unregister from receiving device event notifications
21. List all events supported by the device
22. List all hint locations supported by the device
==(Advanced BULK property operations)==
23. Read properties on multiple content objects
24. Write properties on multiple content objects
25. Read properties on multiple content objects using object format
==(Update content operations)==
26. Update Image content (properties and data) on the device
27. Update Music content (properties and data) on the device
28. Update Contact content (properties and data) on the device
99. Exit
6
Enter the identifer of the parent object which the file will be transferred unde
r.
>s10001
Read 118217 bytes from the source stream...Wrote 118217 bytes to the destination
stream...
The file 'C:\Users\Fire\Pictures\?????.jpg' was transferred to the device.
The newly created object's ID is 'o6E62D'


WPD Sample Application
=======================================

0.  Enumerate all Devices
1.  Choose a Device
2.  Enumerate all content on the device
3.  Transfer content from the device
4.  Delete content from the device
5.  Move content already on the device to another location on the device
6   Transfer Image content to the device
7.  Transfer Music content to the device
8.  Transfer Contact (VCARD file) content to the device
9.  Transfer Contact (Defined by Properties Only) to the device
10. Create a folder on the device
11. Add a Contact Photo resource to an object
12. Read properties on a content object
13. Write properties on a content object
14. Get an object identifier from a Persistent Unique Identifier (PUID)
15. List all functional categories supported by the device
16. List all functional objects on the device
17. List all content types supported by the device
18. List rendering capabilities supported by the device
19. Register to receive device event notifications
20. Unregister from receiving device event notifications
21. List all events supported by the device
22. List all hint locations supported by the device
==(Advanced BULK property operations)==
23. Read properties on multiple content objects
24. Write properties on multiple content objects
25. Read properties on multiple content objects using object format
==(Update content operations)==
26. Update Image content (properties and data) on the device
27. Update Music content (properties and data) on the device
28. Update Contact content (properties and data) on the device
99. Exit
6
Enter the identifer of the parent object which the file will be transferred unde
r.
>s10001
Read 262144 bytes from the source stream...Wrote 262144 bytes to the destination
stream...
Read 14114 bytes from the source stream...Wrote 14114 bytes to the destination s
tream...
The file 'C:\Users\Fire\Pictures\7.jpg' was transferred to the device.
The newly created object's ID is 'o6E62E'


WPD Sample Application
=======================================

0.  Enumerate all Devices
1.  Choose a Device
2.  Enumerate all content on the device
3.  Transfer content from the device
4.  Delete content from the device
5.  Move content already on the device to another location on the device
6   Transfer Image content to the device
7.  Transfer Music content to the device
8.  Transfer Contact (VCARD file) content to the device
9.  Transfer Contact (Defined by Properties Only) to the device
10. Create a folder on the device
11. Add a Contact Photo resource to an object
12. Read properties on a content object
13. Write properties on a content object
14. Get an object identifier from a Persistent Unique Identifier (PUID)
15. List all functional categories supported by the device
16. List all functional objects on the device
17. List all content types supported by the device
18. List rendering capabilities supported by the device
19. Register to receive device event notifications
20. Unregister from receiving device event notifications
21. List all events supported by the device
22. List all hint locations supported by the device
==(Advanced BULK property operations)==
23. Read properties on multiple content objects
24. Write properties on multiple content objects
25. Read properties on multiple content objects using object format
==(Update content operations)==
26. Update Image content (properties and data) on the device
27. Update Music content (properties and data) on the device
28. Update Contact content (properties and data) on the device
99. Exit
Оппапулечки,теперь фото скопировались!

upload_2016-7-17_20-49-32.png


А можешь файлики прикрепить /default.prop и /system/build.prop (рут если есть)
А где их искать?
 
Интересно, а в подкаталог можно скопировать просто так, указав его имя?

Попробуй:

Код:
s10001\Pictures

Только смотри не замени себе случайно нужную фотку.
Оппапулечки,теперь фото скопировались!
Может, первый раз где-то лишний пробел закрался. Или неконтакт.
Koza Nozdri, ну теперь рассказывай подробно, как тебе нужно упростить программу, чтобы делать меньше телодвижений для твоей задачи? Какие отчеты в консоли (м.б. в файл) писать и т.п.
Учти, что это не будет работать на XP, т.к. там протоколы другие.
Хотя если сильно нужно, могу посмотреть.
И если не проблема ставить на XP последний WMPlayer, то по идее будет еще проще.
 
Последнее редактирование:
Интересно, а в подкаталог можно скопировать просто так, указав его имя?
Код:
Enter the identifer of the parent object which the file will be transferred unde
r.
>1001\Pictures
! Failed to write 90996 bytes of object data to the destination stream, hr = 0x8
0070057
! Failed to transfer object to device, hr = 0x80070057

Видимо нет...

(рут если есть)

Так нету рут.
Рутовать очень не хотелось бы...
ну теперь рассказывай подробно, как тебе нужно упростить программу, чтобы делать меньше телодвижений для твоей задачи? Какие отчеты в консоли (м.б. в файл) писать и т.п.
Учти, что это не будет работать на XP, т.к. там протоколы другие.
Хотя если сильно нужно, могу посмотреть.
И если не проблема ставить на XP последний WMPlayer, то по идее будет еще проще.
Плеер установить не проблема,хр желательно,но не обязательно.

Задача:
В папку регулярно выгружаются фото,которые должны присутствовать в КПК всех.
Делать это можно и в одну папку,либо в разные - как удобнее.
Пока делаем одну полного объема для пустых устройств и несколько по датам.
Упростить думаю так - подключил устройство по USB,запустил программку - нажал синхронизировать.
По заданному пути в на сетевом диске берется папка,оттуда копируются фото в всегда одну и ту же папку на устройстве.
Если имена совпали - запрос на пропуск или замену(для всех,поименно не нужно)
По привычке действую на VB6.
 
Последнее редактирование:
Судя по логу ты копируешь в 1001, а идентификатор у тебя s10001, или это разные КПК?
Если разные, то ты уверен, что на этом другом КПК существует подкаталог Pictures и что в нём нет файла с таким же названием?
 
Последнее редактирование:
то ты уверен, что на этом другом КПК существует подкаталог Pictures и что в нём нет файла с таким же названием?
Да,уверен.
Повторил процедуру.
CMD/BATCH:
Enter the identifer of the parent object which the file will be transferred unde
r.
>s10001\Pictures
! Failed to write 240406 bytes of object data to the destination stream, hr = 0x
80070057
! Failed to transfer object to device, hr = 0x80070057
 
Назад
Сверху Снизу