Package Details: aafm-git 20140930-1

Git Clone URL: (read-only)
Package Base: aafm-git
Description: Android ADB File Manager.
Upstream URL:
Licenses: GPL3
Conflicts: aafm
Provides: aafm
Submitter: cyker
Maintainer: cyker
Last Packager: cyker
Votes: 76
Popularity: 0.742262
First Submitted: 2012-08-23 04:15
Last Updated: 2015-07-20 15:04

Latest Comments

cyker commented on 2017-03-22 09:55

@xsmile Probably it's better to send a pull request to the upstream repo on Github? Have you already tested the patch and found it's OK?

xsmile commented on 2017-03-19 20:30

Please consider including this patch as a workaround for Android N:

rafnov commented on 2016-08-15 06:28

When trying to run aafm I get the error:

LC_ALL=C aafm
EXECUTE ('adb', 'devices')
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/aafm/", line 880, in <module>
gui = Aafm_GUI()
File "/usr/lib/python2.7/site-packages/aafm/", line 41, in __init__
self.aafm = Aafm('adb', os.getcwd(), '/mnt/sdcard/')
File "/usr/lib/python2.7/site-packages/aafm/", line 28, in __init__
File "/usr/lib/python2.7/site-packages/aafm/", line 62, in refresh_devices
self.connected_devices = list(self.get_connected_devices())
File "/usr/lib/python2.7/site-packages/aafm/", line 73, in get_connected_devices
for line in self.execute(self.adb, 'devices')
File "/usr/lib/python2.7/site-packages/aafm/", line 32, in execute
proc = subprocess.Popen(args, stdout=subprocess.PIPE)
File "/usr/lib/python2.7/", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

Pygtk installed:

LC_ALL=C pacman -Ss pygtk
extra/pygtk 2.24.0-6 [installed]
Python bindings for the GTK widget set

Why aafm won't run?

Firef0x commented on 2014-12-18 13:52

Hello, @cyker !

Thx for your update!

However, What I mean is that 'desktop-file-utils' should be an item in 'depends', but not in 'makedepends'. Refer to , most of the package which has a desktop entry treat 'desktop-file-utils' as an item in 'depends'.

Hope for your reply!

Yours sincerely!

cyker commented on 2014-12-18 02:04

@Firef0x Updated. Thanks~

Firef0x commented on 2014-12-17 04:53

Hello, @cyker !

I think it should depend on 'desktop-file-utils' for calling 'update-desktop-database -q' in 'aafm-git.install'. I'm sorry that it's a bug which I imported.

Yours sincerely!

cyker commented on 2014-10-15 01:35

@Firef0x I prefer using ISO formats, but fewer redirections is better. Updated.

Firef0x commented on 2014-10-13 18:45

And I guess that you want the 'pkgver' be the output of

git show --date=short --pretty=format:%cd HEAD | sed 's/-//g'

rather than

git show --pretty=format:%ci HEAD | cut -d ' ' -f 1 | sed 's/-//g'

Isn't it?

Firef0x commented on 2014-10-13 11:29

Hello, @cyker !

I think I've found what the problem it is. It's related to

Just like the post in

You don't need to make any change to the PKGBUILD at all.

cyker commented on 2014-10-06 16:02

@Firef0x I seldom use that desktopp file. If it's not working, consider file an issue at the Github project page clearing describing the problem. It's better to fix issues in upstream project than in this PKGBUILD file.

Firef0x commented on 2014-10-06 11:34

Hello, @cyker !

When I execute the following command in the terminal, it works fine:

$ sudo aafm

So it means that the latest version requires root privilege to run somehow, while the previous one (20120414-4) doesn't. This seems to make 'aafm.desktop' useless.

Is there any workaround to make 'aafm.desktop' work again???

Hope for your reply!

Yours sincerely,

cyker commented on 2014-10-03 20:05

@Firef0x aafm is written in python2. The PKGBUILD file also uses python2. python2 and python3 are different. The package builds fine on my machine and I don't know how you got a python3.4 error. The reason may be an incomplete dependency list but I'm not quite sure. If you are sure something is missing please kindly tell me. Thanks.

Firef0x commented on 2014-10-03 18:15

I've added the binary package to my own repository.
Pls visit and add my repository, then execute `sudo pacman -S aafm-git` to install the package.

The following is Simplified Chinese translation:
请访问 并添加我的仓库,然后执行 `sudo pacman -S aafm-git` 来安装本包。

Firef0x commented on 2014-10-03 18:13

Hello, @cyker !

Thx for your updating and maintaining!

First, I am just confused with the meaning of the pkgver '20120414', and glad to see that you give it the meaning "last commit date". AFAIK, project 'aafm' is very casual in its version, it doesn't even have an 'About' dialog to tell the version, and doesn't push the tag 'r5' for its 5th version.

What's more, I've packaged this package in OpenSUSE Build Service successfully. The new PKGBUILD is much more machine-friendly than the older one.

Furthermore, after I installed the latest version of aafm-git, I execute it from the terminal. However, it just outputs the following and exit unexpectly:


Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/aafm/", line 5, in <module>
import gtk
File "/usr/lib/python2.7/site-packages/gtk-2.0/gtk/", line 40, in <module>
from gtk import _gtk
File "/usr/lib/python3.4/site-packages/cairo/", line 2
SyntaxError: Non-ASCII character '\xc2' in file /usr/lib/python3.4/site-packages/cairo/ on line 3, but no encoding declared; see for details


Did you or anyone else have the same problem? Should I report this to the upstream?

Hope for your reply!

Yours sincerely,

cb474 commented on 2014-10-03 06:28

By the way, for aafm users, there were a whole bunch of new commits last week, in case people want to update.

cyker commented on 2014-10-03 04:03

Hi @Firef0x,

Thanks for the update notice. Now I've checked and included most of your changes and listed you as a contributor. What I don't really like is the pkgver. First, it doesn't make sense specifying the same value in two different ways. Second, the format, though recommended, doesn't seem to be easily understood by the users. If one's gonna use a -git version of a package, then showing the last change time makes more sense.

Let me know whether the new PKGBUILD works for you.

Firef0x commented on 2014-10-02 08:40

Hello, @cyker !

Thx for your submitting and maintaining! As the project 'aafm' runs again and the new commits come, I think it's time to open this topic -- Consider to refactor PKGBUILD.

You wrote this PKGBUILD 2 years ago, and used an old-style packaging method. Yes, it works, and works perfectly of course. But starting with pacman 4.1, the VCS sources should be specified in the source=() array and should be treated like any other source. What's more, the 'pkgver' autobump is now achieved via a dedicated pkgver() function. So I think it would be good to refactor the PKGBUILD to fit in the new-style method.

The following is what I think the new PKGBUILD should be:

It has a new pkgver() function, and moves the git cloning to the source=() array. It obeys the VCS PKGBUILD Guidelines, and could be auto-packaged by OpenSUSE Build Service.(in which the current one fails to be)

Is it worth a shot?? Hope for your reply!



cb474 commented on 2014-08-30 06:44

Okay. Thanks again.

cyker commented on 2014-08-30 03:51

@cb474 Use yaourt. It helps get the PKGBUILD and then makepkg on it.

cb474 commented on 2014-08-30 03:50


To ask a novice question, how do I do that? Would it accomplish the same thing to reinstall aafm with yaourt?

cyker commented on 2014-08-30 01:26

@cb474 Yes, they should be. If you want to incorporate these updates then just makepkg again.

cb474 commented on 2014-08-30 00:39

It looks like there were a couple updates in the commits at github on 8/22 and 8/26. Those are updates right?

cb474 commented on 2014-08-24 22:36

Thanks, cyker.

cyker commented on 2014-08-23 22:51

@cb474 You can visit the Github page to check updates. The PKGBUILD file may not be updated as frequently as the upstream project. But even so if you do makepkg then it pulls updates from Github, I think the aafm author hasn't updated it for a while, though, from the information on Github.

cb474 commented on 2014-08-23 22:39

Since this is based on git, does that mean I need to follow the project at github to see if there are any updates, rather than wait to be notified of updates in AUR?

Also, when I look at github, the last time there was a committ was Jan 05, 2013. Does that mean that's the last time the code was changed?

cb474 commented on 2013-09-16 04:39

Ah. Thanks for the explanation.

cyker commented on 2013-09-15 22:55

@cb474 @gabx android-sdk-platform-tools is NOT android-sdk. It's a very small package including adb and fastboot. It's more popular on AUR so I chooose this one.

cb474 commented on 2013-09-15 22:05

Yeah, when I installed I edited the package build and just used this instead: I didn't want to install the whole sdk either.

gabx commented on 2013-09-15 17:33

I do think you can remove android-sdk-platform-tools as depends and add instead adb (from this aur package :
We do not need the whole android sdk.

cyker commented on 2013-04-09 22:10

@k2s Dependency updated from `adb` to `android-sdk-platform-tools`.

k2s commented on 2013-04-09 18:36

adb was removed, pls. update dependency:

gtmanfred wrote:
removing this because it is just adb from platform tools and it is
-git with the incorrect name

foutrelis commented on 2012-08-23 04:20

Merged into:

cyker commented on 2012-08-23 04:16

@cra @muflone Request submitted. Thank you~

Muflone commented on 2012-08-22 16:27

According to the VCS PKGBUILD Guidelines [1] this package should be renamed to aafm-git
Please create a new package aafm-git and ask the merge with the new package.


cra commented on 2012-07-19 12:04

Since it checkes out from git, it should be named aafm-git.

JKAbrams commented on 2012-07-02 16:49

$ aurget -Su
:: Starting AUR upgrade...
warning: aafm: local (20120616-1) is newer than aur (20120414-4)
I have the sdk installed.

cyker commented on 2012-04-14 12:42

@Huulivoide Absolutely good news. Then this PKGBUILD shall be stable, I guess.

Huulivoide commented on 2012-04-14 11:10

We have now :D
so package function with ' install --root=$pkgdir'
is enought. Also we have .desktop file and a logo now :D

cyker commented on 2012-04-09 11:30

@Huulivoide For those who already have android-sdk installed, I don't see their need to install package adb. But of course package adb is much smaller. I've updated it. Thanks. However, I think android-sdk-platform-tools should provide adb so that who have android-sdk-platform-tools installed needn't have the adb package.

Huulivoide commented on 2012-04-09 10:59

Instead of depending on the ghorrible load of android devel crap provided, by
-sdk, why not just simply depend on the standalone [1]adb?


cyker commented on 2012-04-06 15:20

@gpdas Should be fixed now.

gpdas commented on 2012-04-06 10:28

this requires android-sdk and android-sdk-platform-tools. please add them to dependencies.
new set of errors after installing android-sdk and android-sdk-platform-tools

$ aafm-gui
EXECUTE= adb shell ls -l -a "/mnt/sdcard/"
error: device not found
* daemon not running. starting it now on port 5037 * wasn't matched, please report to the developer!
* daemon started successfully * wasn't matched, please report to the developer!
[gpdas@myhost android-sdk-platform-tools]$ aafm-gui
EXECUTE= adb shell ls -l -a "/mnt/sdcard/"
error: device not found

gpdas commented on 2012-04-06 10:25

this requires android-sdk and android-sdk-platform-tools. please add them to dependencies.
new set of errors after installing android-sdk and android-sdk-platform-tools

$ aafm-gui
EXECUTE= adb shell ls -l -a "/mnt/sdcard/"
error: device not found
* daemon not running. starting it now on port 5037 * wasn't matched, please report to the developer!
* daemon started successfully * wasn't matched, please report to the developer!
[gpdas@myhost android-sdk-platform-tools]$ aafm-gui
EXECUTE= adb shell ls -l -a "/mnt/sdcard/"
error: device not found

gpdas commented on 2012-04-06 09:52

getting a lot of these errors. no files are listed.

EXECUTE= adb shell ls -l -a "/mnt/sdcard/"
/bin/sh: adb: command not found
/usr/bin/aafm-gui:423: GtkWarning: Unknown property: GtkMenu.ubuntu-local
builder.add_from_file(os.path.join(self.basedir, "data/glade/menu_contextual_device.xml"))