The method for extracting strings from strings.xml using Androguard is as follows:
from androguard import misc
from androguard.axml.axmlparser import AXMLParser
a, d, dx = misc.AnalyzeAPK('path_to_apk')
xml_string = a.get_android_resources()['xml']['strings.xml'].decode('utf-8')
parser = AXMLParser(xml_string)
parser.parse()
strings = parser.get_string_resources()
for string in strings:
print(string)
This will output a list of all the strings extracted from the strings.xml file.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-05-05 21:46:54 +0000
Seen: 13 times
Last updated: May 05 '23
What is the process of creating a barplot that includes a threshold using matplotlib?
How can the theme settings be established in Vuetify3?
How can an undirected graph be created in Gephi?
The size of the plot returned by df.hist() is not the desired one.
Is there a way to streamline my imports in SvelteKit with Vite bundler, such as utilizing $lib/?
How can I get my existing bot to function with my slash command using Discord.Py?
What does it mean when tsm import encounters an 'Internal error processing applyMigrations' error?
Why does the import of a dependency fail in a Node.js script when running inside a Docker container?