Skip to content

Commit

Permalink
Added the docker + vm-adb apk installation method
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRiv authored Nov 4, 2016
1 parent 86c1e85 commit c170d75
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ The fb-adb script will forward any parameter to an "adb" process running in a de
$ ./bin/vm-adb kpbmvzpw shell getprop wifi.interface
eth1
```

## Transfering files
-- Through adb
If you need to transfer files with push/pull/install, the adb process will not have access to the host
filesystem, so it might be better to install the package android-tools-adb with apt.
The IP address of each VM is in ./libs/vms/{vm_id}/ip
Expand All @@ -275,7 +276,16 @@ connected to 192.168.122.214:5555
$ adb -s $(cat lib/vms/kpbmvzpw/ip):5555 pull /init
3776 KB/s (413355 bytes in 0.106s)
```

-- Installing an apk through Docker and vm-adb
If for some reason you have troubles using the regular adb commands, you can use docker to transfer files to the VM, through the aic.adb container.
```
$ docker cp path/to/file.apk kpbmvzpw_adb:/tmp/
$
```
Then you can install an apk on the VM, using the vm-adb install command :
```
./bin/vm-adb kpbmvzpw install /tmp/file.apk
```

## Interact with the VM sensors

Expand Down

0 comments on commit c170d75

Please sign in to comment.