title: android get my app's PackageInfo from jni
body: <p>Java code to get package info:</p>
  
  <pre><code>/**
   * get PackageInfo
   * @param context
   * @return
   */
  public PackageInfo getPackageSign(Context context) {
      PackageManager pm = context.getPackageManager();
      List&lt;PackageInfo&gt; apps = pm.getInstalledPackages(PackageManager.GET_SIGNATURES);
      Iterator&lt;PackageInfo&gt; iter = apps.iterator();
      while (iter.hasNext()) {
          PackageInfo info = iter.next();
          String packageName = info.packageName;
          if (packageName.equals("your package name")) {
              return info;
          }
      }
      return null;
  }
  </code></pre>
  
  <p>Is that any way to get my app's package info using c++ in jni?</p>