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

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

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

origin: iBotPeaches/Apktool

/**
 * Checks if the replacement was properly made to a node.
 *
 * @param file File we are searching for value
 * @param saved boolean on whether we need to save
 * @param provider Node we are attempting to replace
 * @return boolean
 * @throws AndrolibException setting node value failed
 */
private static boolean isSaved(File file, boolean saved, Node provider) throws AndrolibException {
  String reference = provider.getNodeValue();
  String replacement = pullValueFromStrings(file.getParentFile(), reference);
  if (replacement != null) {
    provider.setNodeValue(replacement);
    saved = true;
  }
  return saved;
}
origin: iBotPeaches/Apktool

private void putVersionInfo(MetaInfo meta) throws AndrolibException {
  VersionInfo info = getResTable().getVersionInfo();
  String refValue = ResXmlPatcher.pullValueFromStrings(mOutDir, info.versionName);
  if (refValue != null) {
    info.versionName = refValue;
  }
  meta.versionInfo = info;
}
origin: droidefense/engine

private void putVersionInfo(MetaInfo meta) throws AndrolibException {
  VersionInfo info = getResTable().getVersionInfo();
  String refValue = ResXmlPatcher.pullValueFromStrings(mOutDir, info.versionName);
  if (refValue != null) {
    info.versionName = refValue;
  }
  meta.versionInfo = info;
}
brut.androlib.res.xmlResXmlPatcherpullValueFromStrings

Javadoc

Finds key in strings.xml file and returns text value

Popular methods of ResXmlPatcher

  • fixingPublicAttrsInProviderAttributes
    Any @string reference in a value in AndroidManifest.xml will break on build, thus preventing the app
  • 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

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • onRequestPermissionsResult (Fragment)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Table (org.hibernate.mapping)
    A relational table
  • Top PhpStorm 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