docs: public static boolean isSystemApp(@NonNull final Context context,
                                        @NonNull final String appPackage) {
          try {
              final ApplicationInfo appInfo = context.getPackageManager().getApplicationInfo(
                      appPackage, 0);
              return (appInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0
                      || (appInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0;
          } catch (PackageManager.NameNotFoundException ignore) {
              // ignore
          }
          return false;
      }