APKParser icon indicating copy to clipboard operation
APKParser copied to clipboard

Request: allow to parse APK file without using File or file-path

Open AndroidDeveloperLB opened this issue 6 years ago • 0 comments

Use InputStream , DocumentFile or Uri instead.

The reason: In the near future, Google will block storage permission, which requires developers to handle files outside of the scope of the current app, to use SAF instead of File and file-path. More information here: https://issuetracker.google.com/issues/128591846

And yes, it's very devastating for many apps and libraries that need to access the files in a normal way. Even the Android framework isn't ready for it, as there are functions such as getPackageArchiveInfo (here) that uses a File or file-path, and have no other alternative.

If you want to test your solution without the storage permission and using just the InputStream, here (the app assumes there is a file named "a.apk" on the root path of the normal storage) : https://issuetracker.google.com/issues/132481545#comment5

AndroidDeveloperLB avatar May 14 '19 22:05 AndroidDeveloperLB