toreins.blogg.se

Apk extractor
Apk extractor








apk extractor

You can find a better version on which i am working currently here. Feel free to work upon the code and create amazing apps out of it.

#Apk extractor apk#

Of course this app can be improved a lot by adding features such as automatically refreshing the apk list after uninstalling any app or dividing the list into system and user installed apps and so on. With this, your Apk extractor app is ready. Utilities.checkPermission() method is also called in the onCreate to ask the user for necessary permissions. In the onCreate method, we set up the recyclerview, progressbar and our ApkListAdapter. MainActivity implements the ApkListAdapter.OnContextItemClickListener which we created earlier to handle the clicked item. Just one last file called MainActivity which uses all the previously created Kotlin files. Just hang on a little more, we are almost done with the app. getShareableIntent method creates an Intent with the extracted apk URI and handles the Action and Extras part. extractApk method creates a File object from the sourceDir variable of ApplicationInfo in our Apk object and copy the apk file to our newly created app directory from where the users can easily find all the extracted apks.

apk extractor

makeAppDir method will make a directory with the name “ApkExtractor” in the external storage. The checkPermission method will handle the permissions for writing to external storage and alert the user in case the user denies it.










Apk extractor