
It's an ideal day for pentester when their tools are run as it supposed to be, no bug, no error, everything runs smoothly and the end of the day you can have good night sleep (well who am I kidding, sleep is for the weak)
Unfortunately, it does not always turn out like this right?
In this post I will tell you some of the issues that I usually encounter when I try to do some application testing in android and of course how to solve it, so you don't have to go to google and read a bunch of documentation issues from the official website. It works for me but I cannot assure you that it will 100% work for you have to dig it up by yourself if it's not working.
1st problem: APKTOOL
"apktool" is a tool to reverse engineer your android application, in short, it will convert your apk file into smali bytecode, you can edit it and recompile it back again. But sometimes when i try to build the edited apk, it gives me this bunch of long and hideous error (brut.androidlib.AndrolibException, could not exec....).
Solution:
In order to solve this issue, first you need to locate the local/share directory of apktool and try to find the framework directory and inside there is an apk file, you need to delete this.
PROBLEM SOLVED !!!
2nd problem: Java being .....
I found the following issue when I try to execute appium sign jar binary, it seems that some of the functionality of the program (NoClassDefFoundError, BASE64Encoder) is cut off due to the absent of the class method in java jdk, this is happening due to inconsistencies of java distribution.
Solution:
In order to solve this issue, you need to found the right version java that is compatible with your tools. Mine was compatible when I try to switch to java 8 because by default I use java 11.3rd problem: failed installation due to older SDK version
This usually happens when you try to install an android application with the target SDK that is higher that your current android vm or device SDK.
[INSTALL_FAILED_OLDER_SDK]
Solution:
To solve this issue you need to lower the sdk version, you need apktool to disassemble the apk. After that go to the resulted directory and try to find apktool.yml and AndroidManifest.xml it should be in the same directory.Lower the version value of "minsdkversion" in apktool.yml and next is to edit the version value of "android:compileSdkVersion". Rebuild it and it will installed successfully.
Thank you, have a nice day :)
Comments
Post a Comment