Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Objection Patchapk #568

Open
flamecopper opened this issue Sep 21, 2022 · 1 comment
Open

Objection Patchapk #568

flamecopper opened this issue Sep 21, 2022 · 1 comment

Comments

@flamecopper
Copy link

flamecopper commented Sep 21, 2022

Objection patchapk api

**An error may have occurred while extracting the APK.
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
W: Could not decode attr value, using undecoded value instead: ns=android, name=resource, value=0x79020000
[Fatal Error] :45:405: Element type "application" must be followed by either attribute specifications, ">" or "/>".

App already has android.permission.INTERNET
Traceback (most recent call last):
File "/usr/local/bin/objection", line 8, in
sys.exit(cli())
File "/usr/lib/python3/dist-packages/click/core.py", line 1126, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1051, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1393, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 752, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/objection/console/cli.py", line 373, in patchapk
patch_android_apk(**locals())
File "/usr/local/lib/python3.9/dist-packages/objection/commands/mobile_packages.py", line 195, in patch_android_apk
patcher.extract_native_libs_patch()
File "/usr/local/lib/python3.9/dist-packages/objection/utils/patchers/android.py", line 460, in extract_native_libs_patch
xml = self._get_android_manifest()
File "/usr/local/lib/python3.9/dist-packages/objection/utils/patchers/android.py", line 296, in _get_android_manifest
return ElementTree.parse(os.path.join(self.apk_temp_directory, 'AndroidManifest.xml'))
File "/usr/lib/python3.9/xml/etree/ElementTree.py", line 1229, in parse
tree.parse(source, parser)
File "/usr/lib/python3.9/xml/etree/ElementTree.py", line 580, in parse
self._root = parser._parse_whole(source)
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 45, column 404
Cleaning up temp files...
**

@Candas1
Copy link

Candas1 commented Apr 29, 2023

iBotPeaches/Apktool#2972

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants