I have a bunch of APK files, some of which are these, for example:
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
Now, some details about apps files:
[login to view URL] - Google+ 9.25.0.175205393 [login to view URL]
[login to view URL] - Google [login to view URL] [login to view URL]
[login to view URL] - Earth 9.1.11.1 [login to view URL]
[login to view URL] - YouTube 12.45.54 [login to view URL]
These details are easily obtainable using the AAPT file, whose command -- aapt d badging [login to view URL] -- 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 [login to view URL] 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 [login to view URL] style).
I need a script for both Linux and Windows that *batch* renames the APK files in a directory to this format: versionCode_application [login to view URL]
So, Google app from above list, would be this: [login to view URL]
To make it darn easy for you, you can use the script (works for both Windows and Linux) given here on XDA forums: [login to view URL]
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):
[login to view URL]
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.
Thanks!
Do let me know if you need more explanation.