I am making a "force installer" that copies the selected APK to /data/app or /system/app, depending on the user's choice, and fix the permissions and ownership.
However, this leaves one thing - it should be renamed like this: {PACKAGE_NAME}-{1|2}.apk
So I have been searching on how I can extract the package name from the APK. All I have been able to find is how to do it with the SDK (aapt) and how to get the package name(s) of already installed apps. So how can I get the package name from the APK on Android?
Sincerely,
Patrick Thomas (Timberwolf)
Timberwolf Programmers Owner & Founder
---- Sent from Tapatalk ----
However, this leaves one thing - it should be renamed like this: {PACKAGE_NAME}-{1|2}.apk
So I have been searching on how I can extract the package name from the APK. All I have been able to find is how to do it with the SDK (aapt) and how to get the package name(s) of already installed apps. So how can I get the package name from the APK on Android?
Sincerely,
Patrick Thomas (Timberwolf)
Timberwolf Programmers Owner & Founder
---- Sent from Tapatalk ----