-
Notifications
You must be signed in to change notification settings - Fork 872
Suggestion: Have a look at "apk-parser" library #181
Comments
Came here for this issue. Is this the apk-parser library you're referring to? I'm getting drastically different numbers for .so file sizes when comparing the apkanalyzer and classy-shark. https://android.googlesource.com/platform/tools/base/+/studio-master-dev/apkparser |
@kmadsen Sorry I forgot to put a link. I wish I could have a reliable library&app to get information of APK files, on both Android and PC. |
Hi all, Few things here
|
@borisf Can't use it for Android though as a library, and can't use with InputStream as a parameter, right? Also, how exactly do you see that's possible, using this UI: Where do you see that I can get the icon and name of the app? Even when opening the manifest, I can't see it: |
Read here how to use ClassyShark as a library About icons yes, we don't support raw images, as there are other tools that do it |
@borisf So again, there is no library that can do it for Android properly. About the link, this shows that it can use File. What about InputStream or Uri using ContentProvider? I wanted a library that can handle all kinds of APK files. Both normal and split APK files, and could do it even if presented Uri instead of a File. |
@borisf exactly this, we want the zip size of each native library (.so objects) for each build. Android Studio provides the download sizes for each of these, but we want to keep record of it internally. So we're looking to turn these values into JSON objects. https://github.com/JetBrains/android/tree/master/apkanalyzer EDIT: Sorry I won't derail this thread, opened a new ticket over here #189 |
@AndroidDeveloperLB there seems to be confusion here ClassyShark is not intended to be used on Android phones but rather on desktop environment (swing etc), thus content providers are not in the scope .... |
@borisf Well then I can ask this:
|
ClassyShark can't be integrated inside Android Studio as ClassyShark has different design and optimizations considerations, that require ClassyShark be a process on its own (many files, threads etc') |
@borisf ClassyShark was released way after Android Studio was announced:
So your explanation doesn't hold, as developers of the tool knew there is an IDE that's for Android, and could work with it. |
APK Analyzer and ClassyShark were developed concurrently to address different needs (around 2016) |
@borisf Still later than Android Studio. |
It offers various things that are missing here, and vice versa:
https://github.com/hsiafan/apk-parser
It would be great to have a single library that has both of what those libraries offer.
We could, this way, get resources data properly, maybe even parse more...
The text was updated successfully, but these errors were encountered: