Adb file manager linux

Android ADB File Manager

aafm uses ADB to facilitate easy file transfers to/from any Android device with an intuitive GUI.
NOTE: If you’re using Ubuntu, use the trusty package. On Debian, use the precise package.

Adding this PPA to your system

You can update your system with unsupported packages from this untrusted PPA by adding ppa:tslocum/aafm to your system’s Software Sources. (Read about installing)

sudo add-apt-repository ppa:tslocum/aafm sudo apt update

This PPA can be added to your system manually by copying the lines below and adding them to your system’s software sources.

deb https://ppa.launchpadcontent.net/tslocum/aafm/ubuntu YOUR_UBUNTU_VERSION_HERE main deb-src https://ppa.launchpadcontent.net/tslocum/aafm/ubuntu YOUR_UBUNTU_VERSION_HERE main

Signing key: 4096R/7383BD4777A7AE2C6749F224C86CF7D85C534210 (What is this?) Fingerprint: 7383BD4777A7AE2C6749F224C86CF7D85C534210

For questions and bugs with software in this PPA please contact Trevor Slocum.

PPA statistics

Overview of published packages

12 of 2 results First • Previous • Next • Last
Package Version Uploaded by
aafm 0.6.2-1 Trevor Slocum ( 2014-09-06 )
aafm 0.6.1-1 Trevor Slocum ( 2014-09-06 )
12 of 2 results First • Previous • Next • Last

Latest updates

  • aafm 462 weeks ago
    Successfully built
  • aafm 462 weeks ago
    Successfully built

Источник

My Linux Adventure

Welcome to my Blog about Linux! I’ll bet a lot of you Android users are not aware that you are making calls on a smartphone powered by the Linux kernel. This blog was created to educate people on the merits of using Linux in their daily lives. Are you even aware that when it comes time to buy a new laptop or PC, you DO have other options than purchasing a MAC or a Windows laptop? Read this blog and I’ll give you useful tips to use Linux on a laptop.

Pages

Friday, February 21, 2014

Transfer Files from Android and Linux with ADB and AAFM

If you are currently using Linux on the desktop and looking for a way to transfer files from your Android device, continue reading this post. A female developer named Sole created a GTK program called AAFM. It stands for Android ADB File Manager. What this program does is causes the File Manager to display on the screen and communicate with ADB, after the Android device is plugged into a Linux PC’s USB slot and a Python command to call the File Manager is executed on the terminal.

Читайте также:  Copy file in linux shell

For this example, I am using Linux Mint 14 and a Samsung Stellar Smartphone with Android 4.1.2. I followed the instructions from Sole’s site and added additional steps to make the process more automated once the Smartphone is plugged into the USB slot.

2. Download the Android SDK zip file from this link: (zip file will be found in Downloads folder)

3. Extract the Android SDK zip file to the Applications folder (created when you cloned Sole’s repository.)

You can perform the extraction one of 2 ways:
a. Using your mouse — Right click on the zip file, select «Extract to» and select the «Applications» folder within your Home directory.

b. Using the terminal command line — Bring up the Terminal Emulator by finding it on the Menu of your Linux distribution or using .

Type the command unzip adt-bundle-linux-x86_64-20131030.zip -d destination_folder_path wi th the path relative to where the Applications directory is located for the destination_folder_path and hit ENTER.

4. Test ADB to make sure it’s installed correctly. — Bring up the terminal again and type «adb» and hit ENTER. It should display the Android Debug Bridge Version and a list of ADB command references.

5. Display the Vendor ID of your Android device for the next step. — Bring up the terminal and type «lsusb» and hit ENTER. (It should be the four digit number next to the word «ID» on the same line as the name of your Android device.)

6. Configure udev rules to allow Linux to access your Android device.
a. Navigate to /etc/udev/rules.d directory and click the file that says «android.rules».

b. Enter the Vendor ID that you found in Step 5 like this SYSFS==”04e8″. Add the entire line in the screenshot to the android.rules file and save it.

8. Enable Debug mode on your Android device. Go to Developer Options and make sure it’s on. Check the box for USB debugging.

9. Test the Configuration udev rule with your Android device. Type «adb devices» and hit ENTER.

10. Execute AAFM in command mode. Type the command on the screen below and hit ENTER. (Make sure you replace my name in the command with your name.)

After python command is executed, the terminal window will display the following and the Android ADB File Manager will pop up.

To Display File Manager without executing step 10 after plugging Android device into USB:

Читайте также:  1с сервер linux режим отладки

11. Create a shell script and name it Pythonadb. Go into Gedit and type «#! /bin/bash» on the first line of the editor and click File|Save as «Pythonadb».

12. Store the command in step 10 in the Pythonadb shell script.

15. On the Linux Mint Menu, Navigate to Settings|Removable Drives and Media and add the following on the command line for Audio CD’s and Portable Music Players:

16. When you plug in your Smartphone cord to your USB, it will look like this.

Once the File Manager is displayed you can locate your Android files on the right pane of the Window and simply drag and drop them to your Linux desktop.

Here is the video I created to accompany the instructions so you can follow along more easily:

NOTE: On Linux Mint 16 (Petra), my Samsung Stellar is able to work with the Linux Mint File Manager (Nautilus) to transfer Android files. I just put my Samsung Stellar into Developer Mode and checked on USB Debugging and plugged it into the USB and it worked out of the box.

2 comments:

Using my Samsung Galaxy Young gt-s6310n with ArchLinux x64 pc. This app is wonderfull for writing to internal storage but I have a problem, I cannot write any data to external sd card. I can read and view but cant create directory, rename files or so.

Maybe it has something to do with permission WRITE_MEDIA_STORAGE?
Reply Delete

Juan, thanks for bringing up this issue. In my tutorial, I never demonstrated transferring files from my Linux desktop to my Android smartphone’s external sd card. It didn’t work due to the default permissions set for external storage. My phone is a Samsung Stellar and I’m on Android 4.1.2. I believe your issue is the same as mine, having to do with the default permissions set for external storage on your phone. In order to grant the required permission, you will have to root your phone and change a file called platform.xml according to the instructions at this link: http://winaero.com/blog/unlock-external-sd-card-writing-for-all-apps-in-android-4-4-kitkat/

I, myself, wouldn’t want to take the risk of bricking my phone by rooting it without having a backup phone so all I can do is advise you to try it at your own risk.

BTW, I get a «:permission denied» error message when I execute this command at the terminal: «adb push «/home/maricelle/Desktop/CloudfareInstructions.pdf» mnt/extSdCard/Download». Reply Delete

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Читайте также:  Восстановление системы линукс через командную строку

File Explorer for Android devices

License

Aldeshov/ADBFileExplorer

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Simple File Explorer for adb devices. Uses python library adb-shell or command-line tool adb .

  • List of adb devices
  • Connect via IP (TCP)
  • Listing / Pulling / Pushing files
  • Renaming and Deleting files

Devices & Notifications

Files

sudo apt-get install python3-pip python3-pyqt5 # For Linux Ubuntu pip install PyQt5 libusb1 adb-shell
  1. Clone the repo
  2. cd ADBFileExplorer
  3. Edit settings.json from the project root if necessary. src/app/settings.json
 "adb_path": "adb", // "adb_core": "external", "adb_kill_server_at_exit": false, "preserve_timestamp": true, "adb_run_as_root": false >
  • adb_path — Full adb path or just ‘adb’ if the executable is in $PATH
  • adb_core — Set to ‘external’ to use external adb executable, otherwise the app will use adb-shell
# First install python-venv in root folder. It should be like ADBFileExplorer/venv pip install -r requirements.txt run.bat # To start application on Windows bash run.sh # To start application on Linux. 

Application uses by default adb-shell . There may be problems with listing, pushing, or pulling files using adb-shell . For a better experience, try adding «adb_core»: «external» to settings.json .

ADB File Explorer [python-app] Copyright (C) 2022 Azat Aldeshov This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . 

About

File Explorer for Android devices

Источник

Оцените статью
Adblock
detector