Rename an APK file based on information within it

I have a bunch of APK files, some of which are these, for example:

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]

Now, some details about apps files:

[url removed, login to view] - Google+ [url removed, login to view]

[url removed, login to view] - Google [url removed, login to view] [url removed, login to view]

[url removed, login to view] - Earth [url removed, login to view]

[url removed, login to view] - YouTube 12.45.54 [url removed, login to view]

These details are easily obtainable using the AAPT file, whose command -- aapt d badging [url removed, login to view] -- gets you all the stuff. Using grep, we can pick up the values we want to. But I don't have much practical experience with this.

Basically, I have the app in its [url removed, login to view] naming style, while the details I provided are application label (name), versionName (with Arch type, application to Google app only in above case), and then, its package address (in [url removed, login to view] style).

I need a script for both Linux and Windows that *batch* renames the APK files in a directory to this format: versionCode_application [url removed, login to view]

So, Google app from above list, would be this: [url removed, login to view]

To make it darn easy for you, you can use the script (works for both Windows and Linux) given here on XDA forums: [url removed, login to view]

By default, it gets you app-name+version name, which is short of what we want, but here is some more help, post no. 53 and 54 at below URL (same thread, page 6):

[url removed, login to view]

The script at Page 6 gets us app-name_versionname_package.apk. Awesome! We only need to add versionCode to it.

Please help with this. You can use the above info to easily add versionCode and get me that as a script for both Windows and Linux.

Since this is very very easy for those who have knowledge of these things, I am looking to get it done for lesser rate.


Do let me know if you need more explanation.

Beceriler: Android, Linux, Windows Masaüstü

Daha fazlasını gör: apk app convert exe files apk file, rename file based form data php mysql, php script reading file giving information, mssql file based, retrieve file version information shell script, file handling unix count total files, information multiple excel files using vbnet, rename selected file form using, rename network file visual basic, simple file based php cms, gathering information online directory, flat file based database net, retrieve data xml file based user interaction actionscript, rename ebook file isbn, rename windows file visual basic, parse log file enter information database

İşveren Hakkında:
( 5 değerlendirme ) Mumbai, India

Proje NO: #15671030



The description of the job seems easy and there is no need to take more than its costs. So I update my bid to this project

1 gün içinde %selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% INR
(1 Yorum)

4 freelancers are bidding on average ₹1063 for this job

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% INR
(0 Değerlendirme)

I am an experienced professional with more than 4 years of experience in Android app development. Looking forward for long relationship

in %bids___i_period_sub_35% gün içinde1500%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% INR
(0 Değerlendirme)