Tabnine Logo
PackageInfo.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
brut.androlib.meta.PackageInfo
constructor

Best Java code snippets using brut.androlib.meta.PackageInfo.<init> (Showing top 2 results out of 315)

origin: iBotPeaches/Apktool

private void putPackageInfo(MetaInfo meta) throws AndrolibException {
  String renamed = getResTable().getPackageRenamed();
  String original = getResTable().getPackageOriginal();
  int id = getResTable().getPackageId();
  try {
    id = getResTable().getPackage(renamed).getId();
  } catch (UndefinedResObject ignored) {}
  if (Strings.isNullOrEmpty(original)) {
    return;
  }
  meta.packageInfo = new PackageInfo();
  // only put rename-manifest-package into apktool.yml, if the change will be required
  if (!renamed.equalsIgnoreCase(original)) {
    meta.packageInfo.renameManifestPackage = renamed;
  }
  meta.packageInfo.forcedPackageId = String.valueOf(id);
}
origin: droidefense/engine

private void putPackageInfo(MetaInfo meta) throws AndrolibException {
  String renamed = getResTable().getPackageRenamed();
  String original = getResTable().getPackageOriginal();
  int id = getResTable().getPackageId();
  try {
    id = getResTable().getPackage(renamed).getId();
  } catch (UndefinedResObject ignored) {
  }
  if (original != null || original.isEmpty()) {
    return;
  }
  meta.packageInfo = new PackageInfo();
  // only put rename-droidefense.sdk.manifest-package into apktool.yml, if the change will be required
  if (!renamed.equalsIgnoreCase(original)) {
    meta.packageInfo.renameManifestPackage = renamed;
  }
  meta.packageInfo.forcedPackageId = String.valueOf(id);
}
brut.androlib.metaPackageInfo<init>

Popular methods of PackageInfo

    Popular in Java

    • Making http requests using okhttp
    • scheduleAtFixedRate (ScheduledExecutorService)
    • runOnUiThread (Activity)
    • putExtra (Intent)
    • HttpServer (com.sun.net.httpserver)
      This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
    • Graphics2D (java.awt)
      This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
    • BigInteger (java.math)
      An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
    • NoSuchElementException (java.util)
      Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
    • Pattern (java.util.regex)
      Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
    • LogFactory (org.apache.commons.logging)
      Factory for creating Log instances, with discovery and configuration features similar to that employ
    • Top plugins for Android Studio
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now