Java tutorial
//package com.java2s; import android.content.Context; import android.content.pm.PackageManager; public class Main { public static boolean isSystemApp(Context context, String packageName) { String ppt_install_path = ""; try { ppt_install_path = context.getPackageManager().getApplicationInfo(packageName, PackageManager.GET_UNINSTALLED_PACKAGES).sourceDir; } catch (Exception e) { e.printStackTrace(); } // LogTag.e("isSystemApp", ppt_install_path); if (ppt_install_path.startsWith("/system/")) { return true; } return false; } }