Skip to content

Instantly share code, notes, and snippets.

@shunia
Created September 27, 2019 15:41
Show Gist options
  • Select an option

  • Save shunia/84851cc2ac1fc23eff9ba61e36bc1d29 to your computer and use it in GitHub Desktop.

Select an option

Save shunia/84851cc2ac1fc23eff9ba61e36bc1d29 to your computer and use it in GitHub Desktop.

Revisions

  1. shunia created this gist Sep 27, 2019.
    15 changes: 15 additions & 0 deletions adb_push.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    ## Parameters
    The parameters can be replaced with the value you wanted.
    * targetFolder - target folder of you device under your sdcard, or just leave empty to target the root folder(not recommended)
    * fileExt - it's possible to use extension names to filter files, png,mkv,txt,etc.


    ## Windows
    ```bat
    for %f in (*.fileExt) do adb push %f /sdcard/targetFolder
    ```

    ## GNU/LINUX
    ```bash
    for f in *.fileExt; do adb push $f /sdcard/targetFolder; done
    ```