Install an entire folder of .apk files to your android device thru adb

find ~/path/to/apk/files -name '*.apk' -exec adb install {} \;
You must have the android sdk installed with 'adb' executable on your system. This is just a way to loop over files in a folder using 'find' to locate and install android apps.
Sample Output
657 KB/s (2952283 bytes in 4.387s)
	pkg: /data/local/tmp/sns.arcMediaTab.tabInterface.arm6_4.apk
Success
614 KB/s (2535490 bytes in 4.030s)
	pkg: /data/local/tmp/com.beejive.im.fbchat_52.apk
Success
538 KB/s (1824182 bytes in 3.308s)
	pkg: /data/local/tmp/com.dolphin.browser.pad_51.apk
Success
679 KB/s (12112117 bytes in 17.413s)
	pkg: /data/local/tmp/com.skype.raider_33947743.apk
Success
730 KB/s (2792751 bytes in 3.731s)
	pkg: /data/local/tmp/com.gameloft.android.ANMP.GloftB2HM_109.apk
Success

0
2012-02-16 03:59:44

These Might Interest You

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: