Hi, I used to use just apktool to decompile apk files or unzip the apk then convert the dex files to jar and viewed using jd-gui. I came across this git project which is based on above tools but gives a better output by decompiling apk files into java source files with one command. Here is the steps to use this project.
Build jadx from source:
git clone https://github.com/skylot/jadx.git
cd jadx ./gradlew dist
Run jadx:
cd build/jadx/
bin/jadx -d <output_folder> <path_to_apk>
Output:
Cheers! 🙂