Advertisement
s1n1g4m1

An error occurred while running objection [An error may have occurred while running aapt]

May 7th, 2024
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 KB | Fixit | 0 0
  1. HI everyone,
  2. i am having this error since three days i have done every thing in my possession
  3. At first i thought it's an error of zipalign then i added the path /home/user/Android/Sdk/build-tools/34.0.0/zipalign in my .bashrc and /etc/environment
  4.  
  5. but the error continues then
  6. I thought it's an error for aapt then i added the path /home/user/Android/Sdk/build-tools/34.0.0/aapt in my .bashrc and /etc/environment
  7.  
  8. The error is listed bellow
  9.  
  10.  
  11. objection patchapk --source your.apk
  12. No architecture specified. Determining it using `adb`...
  13. Detected target device architecture as: x86
  14. Using latest Github gadget version: 16.2.1
  15. Patcher will be using Gadget version: 16.2.1
  16. Detected apktool version as: 2.9.3
  17. Running apktool empty-framework-dir...
  18. I: Removing 1.apk framework file...
  19. Unpacking your.apk
  20. An error may have occurred while running aapt.
  21. /usr/bin/aapt: symbol lookup error: /usr/lib/x86_64-linux-gnu/android/libandroidfw.so.0: undefined symbol: _Z18ExtractEntryToFileP10ZipArchiveP8ZipEntryi
  22.  
  23. App does not have android.permission.INTERNET, attempting to patch the AndroidManifest.xml...
  24. Injecting permission: android.permission.INTERNET
  25. Writing new Android manifest...
  26. Target class not specified, searching for launchable activity instead...
  27. An error may have occurred while running aapt.
  28. /usr/bin/aapt: symbol lookup error: /usr/lib/x86_64-linux-gnu/android/libandroidfw.so.0: undefined symbol: _Z18ExtractEntryToFileP10ZipArchiveP8ZipEntryi
  29.  
  30. Unable to determine the launchable activity using aapt, trying to manually parse the AndroidManifest for activity aliases...
  31. Unable to determine the launchable activity for this app.
  32. Traceback (most recent call last):
  33. File "/home/user/Tools/virt_env/bin/objection", line 33, in <module>
  34. sys.exit(load_entry_point('objection==1.11.0', 'console_scripts', 'objection')())
  35. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  36. File "/home/user/Tools/virt_env/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
  37. return self.main(*args, **kwargs)
  38. ^^^^^^^^^^^^^^^^^^^^^^^^^^
  39. File "/home/user/Tools/virt_env/lib/python3.11/site-packages/click/core.py", line 1078, in main
  40. rv = self.invoke(ctx)
  41. ^^^^^^^^^^^^^^^^
  42. File "/home/user/Tools/virt_env/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
  43. return _process_result(sub_ctx.command.invoke(sub_ctx))
  44. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  45. File "/home/user/Tools/virt_env/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
  46. return ctx.invoke(self.callback, **ctx.params)
  47. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  48. File "/home/user/Tools/virt_env/lib/python3.11/site-packages/click/core.py", line 783, in invoke
  49. return __callback(*args, **kwargs)
  50. ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  51. File "/home/user/Tools/virt_env/lib/python3.11/site-packages/objection/console/cli.py", line 373, in patchapk
  52. patch_android_apk(**locals())
  53. File "/home/user/Tools/virt_env/lib/python3.11/site-packages/objection/commands/mobile_packages.py", line 203, in patch_android_apk
  54. patcher.inject_load_library(target_class=target_class)
  55. File "/home/user/Tools/virt_env/lib/python3.11/site-packages/objection/utils/patchers/android.py", line 788, in inject_load_library
  56. target_class if target_class else self._get_launchable_activity())
  57. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  58. File "/home/user/Tools/virt_env/lib/python3.11/site-packages/objection/utils/patchers/android.py", line 373, in _get_launchable_activity
  59. raise Exception('Unable to determine launchable activity')
  60. Exception: Unable to determine launchable activity
  61. Cleaning up temp files...
  62.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement