Replies: 1 comment 1 reply
-
That is a nifty script - we could add that to the docs to help people find the framework in the case it isn't obvious. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The documentation has an in-depth page on dealing with frameworks, including a chapter on finding the appropriate framework for a given APK. What's currently on this page didn't help me.
I tried to decode the latest stable release of the "Google Assistant - in the car" app's APK (package: com.google.android.carassistant), which is available from APKMirror as well.
Apktool gave me this:
Since this app is meant for cars (AAOS, to be more specific), I retrieved a list of all APK files on my car (which has AAOS and the said Google Assistant app):
It's a quite long list. :)
Using the hints from the frameworks doc page you won't find the APK with pkgId "2" that I needed to decode this Google Assistant app.
I figured I had to find it on my own.
I've made a copy of the above files and wrote this little shell script to retrieve the pkgId of each APK using apktool's output (while trying to install the given APK as a framework):
The script should work on any linux with a Bash shell.
Its output for my car's APKs is:
I installed GoogleExtShared.apk as a framework (it's the "com.google.android.ext.shared" package and has the name "Android Shared Library") and now apktool could successfully decode the Google Assistant APK. :)
Beta Was this translation helpful? Give feedback.
All reactions