Skip to content

Instantly share code, notes, and snippets.

@vsxed
Created November 19, 2012 21:11
Show Gist options
  • Select an option

  • Save vsxed/4113933 to your computer and use it in GitHub Desktop.

Select an option

Save vsxed/4113933 to your computer and use it in GitHub Desktop.
FUCK
$systemAppArray = array(
"com.android.vending"=>"Google Play Store",
"com.sec.android.app.camera"=>"Kamera",
"com.android.email"=>"Email",
"com.google.android.gm"=>"Google Mail",
"com.android.mms"=>"Nachrichten",
"com.android.music"=>"Musik",
"com.swype.android.inputmethod"=>"Swype",
"com.google.android.youtube"=>"YouTube"
);
if(!isset($appName) || $appName == NULL){
if(in_array($manifest->getPackageName(), $systemAppArray)){
$appName = $systemAppArray["$manifest->getPackageName()"];
}
else{
$appName = $manifest->getPackageName();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment