1

Just by curiosity, since I wasn't able to find an answer after googling, do you know what are these "codes" after the packages names of my apps in /data/app/…?

This number is neither in androidmanifest.xml, nor in cert.sf, nor in manifest.mf (inside the meta-inf folder).

For example the package name of Clash of Clans is followed by the "code": com.supercell.clashofclans-Bd6GIb47XTzpL16jgR1kZA==

3

That's a random string appended to apps installation path in order to force developers don't hard-code paths in apps, instead use proper APIs.

Quoted from Android 8.0 Behavior Changes:

You can no longer assume that APKs reside in directories whose names end in -1 or -2. Apps should use sourceDir to get the directory, and not rely on the directory format directly.

  • Thanks for the explaination. But why don't they want people to hard-code the path, is it a security? – sebastien finor Aug 18 at 17:15
  • @sebastienfinor you are right, also they have put this point under Security heading. – Irfan Latif Aug 21 at 21:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.