We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

How to get the version of an android app via bash/cli? [answered]

asked 2020-02-09 02:51:52 +0200

Leon gravatar image

The apk files are here find /home/.android/data/app |grep apk but the xml inside are binary. How to get the version of an installed android app via bash/cli? Any other xml file or similar?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by peterleinchen
close date 2020-02-14 00:40:36.323027

Comments

try using android shell for that instead of ahacking around

coderus ( 2020-02-09 10:44:30 +0200 )edit

I am not so familiar with the android eco system, so I do really appreciate any concrete hint how to acomplish this (using that shell)? Thanks

Leon ( 2020-02-10 01:02:09 +0200 )edit

@Leon

Have a look at the answer given by Richie Cotton, perhaps the info given still stands?

https://together.jolla.com/question/25144/how-to-find-the-version-number-of-apps/

Spam Hunter ( 2020-02-10 19:17:59 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2020-02-11 01:14:17 +0200

Leon gravatar image

For the record answering my self: This binary stuff in the apk's seems to be more challenging that i expected. For my goal I find a different solution via "side channel":

$ for a in "/usr/share/jolla-settings/entries/apkd_launcher_*" ; do grep -h -E 'Version|Name' ${a} ; done

Thanks for the comments anyway ...

edit flag offensive delete publish link more

Comments

Nicely done!

It works a treat, I only have on Android app installed and I already knew the version number, but only by looking at info within the app.

Spam Hunter ( 2020-02-11 01:17:37 +0200 )edit

Question tools

Follow
2 followers

Stats

Asked: 2020-02-09 02:51:52 +0200

Seen: 385 times

Last updated: Feb 11 '20