APK Batch Rename Tool (for Windows and Linux)

16 posts
Thanks Meter: 56
By phsorx, Junior Member on 16th November 2010, 02:34 AM
Post Reply Email Thread
Hi guys!

This is a quick tool I jotted together for myself in the past couple days and found it very useful. So I decided to clean it up and share it. Hope you will like it! Do comment and ask!

APK Batch Rename Tool
* for Windows and Linux for now.

APK Batch Rename Tool recursively crawls input folder and all of its subfolders looking for Android Package files (.apk's). It reads Label and Version info from apk's found and creates a copy for each apk under the output folder but using the Label and Version info acquired.

For example a com.example.hw.apk will make Hello World! 1.21.apk provided that the label inside the package was set to Hello World! and version is 1.21.

The old and the new apk files are 100% the same in terms of content and are unchanged. Only the new copies are given new filenames. Input files are left completely intact.

Have you ever wondered what are your 1500+ apk files with wierd names nested to different wierd folders on your harddrive? Have you ever wanted to find an app but you were unable to because it had some undescriptive javaish name that made no sense reflected no version and your apps were swept across a hundred junk folders anyway? Then APK Batch Rename is the tool for you! And me!
APK Batch Rename will set a human readable name for all your Android apps, and drop such a copy into a folder. You will finally be able to browse them, sort them alphabetically and be able to pick from versions available.

1. Copy all your apk files (or folders with apk files in them) into the input folder. You may copy folders of any depth. APK Batch Rename Tool will recurse all subfolders of the input folder anyway.
2. Hit or click ApkBatchRename.bat . (For Linux users it's: apkbatchrename, or on a terminal enter: ./apkbatchrename ) Wait until it finishes the job.
3. Find your freshly named files in the output folder.

Simple as that!

Have fun! & Comment!

Attached Files
File Type: zip - [Click for QR Code] (1.53 MB, 17983 views)
File Type: zip - [Click for QR Code] (243.0 KB, 1916 views)
The Following 50 Users Say Thank You to phsorx For This Useful Post: [ View ] Gift phsorx Ad-Free
16th November 2010, 04:49 AM |#2  
vua777's Avatar
Senior Member
Thanks Meter: 94
great work, just like reading mp3 tag then rename to "song - artist.mp3"
16th November 2010, 02:05 PM |#3  
freco's Avatar
Senior Member
Flag Athens
Thanks Meter: 97
Cool. I use to do it manually. Time saver app.
16th November 2010, 02:26 PM |#4  
raven_raven's Avatar
Senior Member
Flag Poznań
Thanks Meter: 39
This is awesome! Thank you very much, situation you described in first post is just like mine, I find your tool very useful!
16th November 2010, 03:16 PM |#5  
htzs's Avatar
Senior Member
Flag Budapest
Thanks Meter: 52

Let me join you crediting phsorx's job, that app is just great!
Thanks and congrats!
16th November 2010, 03:41 PM |#6  
britoso's Avatar
Senior Member
Flag Orlando
Thanks Meter: 302
Donate to Me
Very cool, Works well. Always wanted to do this but was too lazy to try aapt.

I just checked:
Originally Posted by aapt

badging Print the label and icon for the app declared in APK.

> aapt d badging Talk.apk
package: name='' versionCode='130' versionName='1.3'
uses-permission: **truncated***
application: label='Talk' icon='res/drawable-hdpi/ic_launcher_google_talk.png'
supports-screens: 'small' 'normal' 'large'
locales: '--_--' 'es' 'es_US'
densities: '160' '240'
I'll definitely use your script but with a small change to show the package name as well as its valuable for when you need to uninstall the package.
i.e label_packagename(version).apk ->

Attached a slightly modified batch file and screenshot

For single file one-off renames (right-click->open with->rename single) you can use the script here.
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	867
Size:	15.7 KB
ID:	442435  
Attached Files
File Type: zip - [Click for QR Code] (774 Bytes, 1182 views)
The Following User Says Thank You to britoso For This Useful Post: [ View ] Gift britoso Ad-Free
16th November 2010, 04:07 PM |#7  
phsorx's Avatar
OP Junior Member
Thanks Meter: 56
Donate to Me
De jo! Honfitars. Hajra Magyarok!
16th November 2010, 04:31 PM |#8  
phsorx's Avatar
OP Junior Member
Thanks Meter: 56
Donate to Me
Thumbs up Customizable naming planned in future version
Originally Posted by britoso

Very cool, Works well. Always wanted to do this but was too lazy to try appt.

i.e label_packagename(version).apk ->

Hi Britoso,

Yeah! That's a neat way to do it too!

Eventually I want to make naming and spacing fully customizable! Including what attributes to pick (name, label, versionName) to constitute the filename, and what separators (_,-,(,),space) should go where.

In the howto.txt I have a little road-map for the project. Will add customizable naming too.

Will keep you guys posted.


Ps: Anyone who has another naming suggestion drop a post! I'd be interested.
The Following User Says Thank You to phsorx For This Useful Post: [ View ] Gift phsorx Ad-Free
16th November 2010, 04:34 PM |#9  
Senior Member
Thanks Meter: 13
great job...bravo..

16th November 2010, 05:29 PM |#10  
Senior Member
Flag Enschede
Thanks Meter: 10
Very nice tool, thanks for sharing this .
Using it with britoso's edited script.

Edit: I would appreciate it if a log of the conversion would be saved in a \logs\ subfolder, so I can check which files were not converted properly and see if I have to do those manually.
16th November 2010, 06:21 PM |#11  
Senior Member
Flag Brussels
Thanks Meter: 355
Handy ! Thanks...
Post Reply Subscribe to Thread

apk, batch, multi, package, rename

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes