teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

2

リンクと日時付け

2020/06/03 07:21

投稿

GqewG9aG7S
GqewG9aG7S

スコア150

answer CHANGED
@@ -9,7 +9,7 @@
9
9
  参考ページ
10
10
  [https://developer.android.com/studio/command-line/adb#copyfiles](https://developer.android.com/studio/command-line/adb#copyfiles)
11
11
 
12
- 追記
12
+ 追記(2020/06/03 16:18)
13
13
 
14
14
  私もさっき調べて知ったのですが、
15
15
  ``adb shell svc usb setFunctions mtp``
@@ -20,4 +20,4 @@
20
20
  だったりするそうです。
21
21
 
22
22
  参考ページ
23
- https://stackoverflow.com/questions/54959259/enable-mtp-using-adb
23
+ [https://stackoverflow.com/questions/54959259/enable-mtp-using-adb](https://stackoverflow.com/questions/54959259/enable-mtp-using-adb)

1

MTP有効化できた

2020/06/03 07:21

投稿

GqewG9aG7S
GqewG9aG7S

スコア150

answer CHANGED
@@ -7,4 +7,17 @@
7
7
  Androidバージョンによって違うかもしれませんが...
8
8
 
9
9
  参考ページ
10
- [https://developer.android.com/studio/command-line/adb#copyfiles](https://developer.android.com/studio/command-line/adb#copyfiles)
10
+ [https://developer.android.com/studio/command-line/adb#copyfiles](https://developer.android.com/studio/command-line/adb#copyfiles)
11
+
12
+ 追記
13
+
14
+ 私もさっき調べて知ったのですが、
15
+ ``adb shell svc usb setFunctions mtp``
16
+ でMTPを有効化出来るようです!
17
+ 端末によっては
18
+ ``adb shell svc usb setFunction mtp``
19
+ ``adb shell svc usb setFunctions mtp true``
20
+ だったりするそうです。
21
+
22
+ 参考ページ
23
+ https://stackoverflow.com/questions/54959259/enable-mtp-using-adb