pseudosudo
pseudosudo

Reputation: 1980

How to generate a checksum for each installed application

By using the android package manager I can generate a list of all installed apps. However, I can't find a way to generate checksums for each .apk file corresponding to a given installed app (ideally this would be done through an app running on a non-rooted device).

Is it possible to write an app that does this (even if the phone needs to be rooted)?

Upvotes: 0

Views: 1274

Answers (1)

Phil Lello
Phil Lello

Reputation: 8639

You won't be able to directly access the APKs for installed apps on a non-rooted device, although you can get access to them if they're on the system partition.

I'm not sure quite what you want the checksums for - you can get the package signature and version information through PackageManager.getPackageInfo, which may be what you need.

Hope this helps,

Phil Lello

Upvotes: 2

Related Questions