Android Developers have many tools available at their command. This is a quick introduction to a few commands that I use in AAPT.
AAPT (Android Asset Packaging Tool) is a great tool to help you view, create, and update your APKs (as well as zip and jar files).
On Windows, check your Android/tools folder. For my Windows 10, it is located here:
C:\Program Files (x86)\Android\android-sdk\build-tools\23.0.2
Once you find it, add it to your path Environment Variable.
Let’s say you have an APK and you need to validate the App Id, Version Code, Version Number, SDK Info, Permissions, and so on. This is rather easy to do by running the following command:
aapt dump badging my.apk
This is really helpful when delivering an APK to a client. If a client questions the VersionCode or other information, you can easily verify the app and also explain how the client can verify it.
When running this tool the output will look similar to this:
It can also be used to verify what permissions are set in the app. An app that we created for a customer was mistakenly failed by a third-party security audit company. The third-party team told our customer that the app had too many permissions. Luckily, we were able to use the AAPT to determine the exact permissions the app had and prove to our customer that the third-party firm was mistaken.
aapt dump permissions my.apk
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
|cookielawinfo-checbox-analytics||11 months||This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".|
|cookielawinfo-checbox-functional||11 months||The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".|
|cookielawinfo-checbox-others||11 months||This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.|
|cookielawinfo-checkbox-necessary||11 months||This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".|
|cookielawinfo-checkbox-performance||11 months||This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".|
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.