Tabnine Logo
ResXmlPatcher.fixingPublicAttrsInProviderAttributes
Code IndexAdd Tabnine to your IDE (free)

How to use
fixingPublicAttrsInProviderAttributes
method
in
brut.androlib.res.xml.ResXmlPatcher

Best Java code snippets using brut.androlib.res.xml.ResXmlPatcher.fixingPublicAttrsInProviderAttributes (Showing top 1 results out of 315)

origin: iBotPeaches/Apktool

private void buildManifestFile(File appDir, File manifest, File manifestOriginal)
    throws AndrolibException {
  // If we decoded in "raw", we cannot patch AndroidManifest
  if (new File(appDir, "resources.arsc").exists()) {
    return;
  }
  if (manifest.isFile() && manifest.exists()) {
    try {
      if (manifestOriginal.exists()) {
        manifestOriginal.delete();
      }
      FileUtils.copyFile(manifest, manifestOriginal);
      ResXmlPatcher.fixingPublicAttrsInProviderAttributes(manifest);
    } catch (IOException ex) {
      throw new AndrolibException(ex.getMessage());
    }
  }
}
brut.androlib.res.xmlResXmlPatcherfixingPublicAttrsInProviderAttributes

Javadoc

Any @string reference in a value in AndroidManifest.xml will break on build, thus preventing the application from installing. This is from a bug/error in AOSP where public resources cannot be part of an authorities attribute within a tag. This finds any reference and replaces it with the literal value found in the res/values/strings.xml file.

Popular methods of ResXmlPatcher

  • pullValueFromStrings
    Finds key in strings.xml file and returns text value
  • isSaved
    Checks if the replacement was properly made to a node.
  • loadDocument
  • removeApplicationDebugTag
    Removes "debug" tag from file
  • removeManifestVersions
    Removes attributes like "versionCode" and "versionName" from file.
  • renameManifestPackage
    Replaces package value with passed packageOriginal string
  • saveDocument

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • String (java.lang)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JComboBox (javax.swing)
  • Best IntelliJ plugins
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