Guest User

Untitled

a guest
Jan 18th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. PackageManager packageManager = getApplicationContext().getPackageManager();
  2. ApplicationInfo applicationInfo ;
  3. try {
  4. applicationInfo = packageManager.getApplicationInfo( this.getPackageName(), 0);
  5. } catch (final NameNotFoundException e) {
  6. applicationInfo = null;
  7. }
  8. String applicationName = (String) (applicationInfo != null ? packageManager.getApplicationLabel(applicationInfo ) : "(unknown)");
  9.  
  10. ./aapt2 dump packagename <path_to_apk>
Add Comment
Please, Sign In to add comment