{"id":21181200,"url":"https://github.com/wachin/adb-send-files","last_synced_at":"2026-05-09T01:37:28.361Z","repository":{"id":48329155,"uuid":"485823959","full_name":"wachin/adb-send-files","owner":"wachin","description":"Copy/Transfer files from Android phone to a Linux Personal Computer (PC) and from PC to Android phone with adb using scripts running on Clex Linux Terminal File Manager ","archived":false,"fork":false,"pushed_at":"2022-08-04T17:01:39.000Z","size":985,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T19:22:20.649Z","etag":null,"topics":["bash","clex","filemanager","files","linux","microsd-management","pc","pendrive","pull","push","sdcard","transfer","usb-devices"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wachin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-26T14:34:55.000Z","updated_at":"2022-08-13T05:09:46.000Z","dependencies_parsed_at":"2022-08-24T08:10:57.929Z","dependency_job_id":null,"html_url":"https://github.com/wachin/adb-send-files","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wachin/adb-send-files","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wachin%2Fadb-send-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wachin%2Fadb-send-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wachin%2Fadb-send-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wachin%2Fadb-send-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wachin","download_url":"https://codeload.github.com/wachin/adb-send-files/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wachin%2Fadb-send-files/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32804321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","clex","filemanager","files","linux","microsd-management","pc","pendrive","pull","push","sdcard","transfer","usb-devices"],"created_at":"2024-11-20T17:48:26.786Z","updated_at":"2026-05-09T01:37:28.345Z","avatar_url":"https://github.com/wachin.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# adb-send-files\nCopy/Transfer files from Android to Linux PC and from Linux PC to Android with adb, using script running from a Linux terminal inside Clex Terminal File Manager\n\n# Tested in\n\n- [MX Linux 21](https://sourceforge.net/projects/mx-linux/files/Final/) x386 and SAMSUNG GALAXY J5 Android 6.0.1\n\n# Usage\n- If you use scrcpy to control your phone trough adb, this is a great metod to transfer files\n- Or perhaps you can't transfer files in your Linux with the default mount options\n- Or other reason\n\n# Requirements\nIs neccesary Android 6 and above\n\nOn Linux install dependencies:\n\n    sudo apt install git perl clex adb gnome-terminal bash\n\n# Enabling USB Debugging on the Android Device\nIn your Android mobile you need enable USB Debugging like this:\n\n[https://www.embarcadero.com/starthere/xe5/mobdevsetup/android/en/enabling_usb_debugging_on_an_android_device.html](https://www.embarcadero.com/starthere/xe5/mobdevsetup/android/en/enabling_usb_debugging_on_an_android_device.html) \n\n**Note:** To each Android phone is diferent, yo need to search in Google to match your phone\n\n\n# Download and install the code\nIn a terminal set this:\n\n    mkdir -p AppsLinux\n    cd AppsLinux\n    git clone https://github.com/wachin/adb-send-files\n    cd adb-send-files\n    ./set_launcher_path.sh\n    cp adb-send-files.desktop $HOME/.local/share/applications/\n    mv adb-send-files.desktop set_launcher_path.sh vx_images/ \u0026\u0026 cd   \n    echo \"God Bless You\"    \n\nThis create and install all neccesary files under a Folder called:\n\nAppLinux\n\nplease do not delete it\n\n    \n# Setup to Internal Memory\nNow you need to create in your Android device in your HOME a folder called:\n\n**adb-android**\n\nAnd you need to create in your Linux Operative System in your HOME a folder called:\n\n**adb-linux**\n\n\n# Setup to External micro SD Memory\nThis is only if you have a micro SD Card extra in your phone, You need create in your Android SD extra storage device a folder called:\n\n**adb-SD-android**\n\nand in your Linux OS in your HOME the same folder mentioned above:\n\n**adb-linux**\n\n# Connect your Android mobile to your Linux PC with the USB cable\nThis step is totally neccesary, make sure the cable is good\n\n# Now search in your Apps to \"adb-send-files\"\nSearch in your Apps:\n\n![](vx_images/556295135941363.png)\n\nopen it. The firs time when you open it appear clex with a message:\n\n![](vx_images/15145899889767.png)\n\njust hit Enter again:\n\n![](vx_images/96974528576409.png)\n\nsomething very important appears, a little tutorial:\n\nCLEX configuration utility\n==========================\n\nEnd of options mark '--' is supported  \nPager program: less  \nText editor: vim  \n\n=== BEGIN ==================  \nCMD_F3=less -- $f  \nCMD_F4=vim -- $f  \nCMD_F5=cp -ir -- $f $2  \nCMD_F6=mv -i -- $f $2  \nCMD_F7=mkdir --   \nCMD_F8=rm -- $f  \nCMD_F9=lpr -- $f  \n=== END ====================  \n\nI don't use those instructions, but maybe they could be useful to you, for one thing, there they are\n\n\n![](vx_images/203405427122887.png)\n\nthen in your keyboard write:\n\ny\n\nand hit Enter, and appear a message that said:\n\n\u003e Configuration saved\n\u003e Please restart CLEX\n\u003e \n\u003e Command successful. Press \u003center\u003e to continue. \n\nThese steps only need to be done once.\n\nNow the first you have to do is clic on adb-devices.sh\n\n![](vx_images/231315485807417.png)\n\nWhen you hit Enter key it automatically writes the script name you have selected to be ready to be executed:\n\n![](vx_images/25177517901557.png)\n\nhit Enter again\n\n![](vx_images/519460214523097.png)\n\nthen you see that clex run the script to start:\n\nadb devices\n\ncommand. Then hit Enter again\n\nNow yo need to see what do you want to do\n\n\n## To send files from Linux to Android\n Copy some files or folder with files in your Linux Home folder:\n\nadb-linux \n\nthen clic in:\n \nadb-push-from-Linux-to-Android.sh\n\nnow check your home Android, appear a new folder with your files or folder with files\n\n\n## To send files from  Android to Linux\n Copy some files or folder with files in your Android Home folder:\n \nadb-android\n \nthen clic in:\n\nadb-pull-from-Android-to-Linux.sh\n\nnow check your home Linux, appear a new folder with your files or folder with files\n\n\n## To send files from Linux to Android micro SD Card\nCopy some files or folder with files in your Linux Home folder:\n\nadb-linux \n\nthen clic in:\n \nadb-push-from-Linux-to-AndroidSD.sh \n\nnow check the storage of the micro SD Card in Android, appear a new folder with your files or folder with files\n\n## To send files from  Android micro SD Card to Linux\nCopy some files or folder with files in your micro SD Card in Android folder:\n \nadb-android\n \nthen clic in:\n\nadb-pull-from-AndroidSD-to-Linux.sh\n\nnow check your home Linux, appear a new folder with your files or folder with files\n\n\n# Manually open clex file manager to execute scripts (optional)\nPerhaps you want to do this. Open your Linux File Manager and navigate to this folder:\n\n**adb-send-files**\n\nIf you use Thunar File Manger, right clic on:\n\n    main-run-script.sh\n\nand open it with bash. If bash not appear you need to write that in the options:\n\nRight clic in the script /  Properties / Open with / othe application / Use personalized order / \n\nin that write:\n\nbash\n\nApply\n\nThe Linux File manager need to be configured to open scripts .sh \n\n In other Linux File Manager like Dolphin you hit ENTER and propt if you want to execute, the same is for Caja, Nemo File Manager, and search how to do with others\n\n\n# Clex tutorials\nPerhaps you need:\n\nHelp topics  \n[http://www.clex.sk/help/MAIN.html](http://www.clex.sk/help/MAIN.html)\n\nclex: Simplified file management | Inconsolation  \n[https://inconsolation.wordpress.com/2013/07/20/clex-simplified-file-management/\n](https://inconsolation.wordpress.com/2013/07/20/clex-simplified-file-management/)\n\n**God Bless**\n\nThis is an idea from:  \n\n**Copiar carpeta/archivos desde Android a Linux \u0026 Linux a Android con adb (por cable USB)**  \n[https://facilitarelsoftwarelibre.blogspot.com/2020/05/como-copiar-carpetaarchivo-desde.html](https://facilitarelsoftwarelibre.blogspot.com/2020/05/como-copiar-carpetaarchivo-desde.html)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwachin%2Fadb-send-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwachin%2Fadb-send-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwachin%2Fadb-send-files/lists"}