Although I have published this as part of an answer to https://forum.getodk.org/t/pushing-form-from-computer-to-tablet/6991, I think it is useful to repeat it here as all of us have been confronted to these issues, especially when not using the Internet/ODK Aggregate.
I have successfully tested the following procedure to push a new form to my Android MashMallow smartphone:
- Install usb driver for android from the app store in your smartphone, The "usb driver for android" app icon appears on the phone screen
- Connect your phone with a usb cable to your pc
- tap on the "usb driver for android" app's icon's which shall lead you to the setup screen. Do not forget to put USB Debugging on "ON". This will allow your pc to detect your phone and it will install a driver for it (takes a few minutes on my Windows 10 64 bit pc)
- Install google's Android Studio app in your pc. It will create a "C:\Users\yourusername\AppData\Local\Android\sdk\platform-tools" folder. I created a link to this folder on my desktop not to have to remember the place!
- Click on the link to get to this folder where adb.exe is located,
- Shift-right mouse button click to open a command line in this folder
- copy adb push your-form.xml /sdcard/odk/forms in the command line then click Enter
The same procedure works if you want to push the form to a simulator if you have created one with Android Studio. I always do this during the debugging/testing phase instead of using my real phone.
To pull (download) the odk directory from your phone (or simulator) use:
adb pull /sdcard/odk/ yourpreferred_location_in_your_pc_
Please note that for pushing as well as for pulling, the phone should not be connected to pc while you're working with a simulator and vice-versa.