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

Does not work with APKTool Batch wrapper #5

Open
FroggMaster opened this issue Mar 23, 2024 · 1 comment
Open

Does not work with APKTool Batch wrapper #5

FroggMaster opened this issue Mar 23, 2024 · 1 comment

Comments

@FroggMaster
Copy link

FroggMaster commented Mar 23, 2024

I installed APKTool with the included .BAT wrapper file as described on the APKTool website: https://apktool.org/docs/install
However upon running your tool I get the following error:

C:\Users\Frog\Downloads\Company Portal Rev\DISintegrity>python DISintegrity.py -apk "C:\Users\Frog\Downloads\Company Portal Rev\com.microsoft.windowsintune.companyportal-signed.apk" --apktool "C:\bin\APKTool\apktool.bat"
Extracting APK at 'C:\Users\Frog\Downloads\Company Portal Rev\com.microsoft.windowsintune.companyportal-signed.apk'. This may take some time...
An error occurred while running apktool for APK:
Error: Invalid or corrupt jarfile C:\bin\APKTool\apktool.bat

I had to pass the direct path to the JAR file despite APKTool being on my path and functional.
Here you can see that it is indeed functional as I added it into my Windows Path:

C:\Users\Frog>apktool --version
2.9.3

C:\Users\Frog>apktool
Apktool 2.9.3 - a tool for reengineering Android apk files
with smali v3.0.3 and baksmali v3.0.3
Copyright 2010 Ryszard Wiśniewski <brut.alll@gmail.com>
Copyright 2010 Connor Tumbleson <connor.tumbleson@gmail.com>

usage: apktool
 -advance,--advanced   Print advanced information.
 -version,--version    Print the version.
usage: apktool if|install-framework [options] <framework.apk>
 -p,--frame-path <dir>   Store framework files into <dir>.
 -t,--tag <tag>          Tag frameworks using <tag>.
usage: apktool d[ecode] [options] <file_apk>
 -f,--force              Force delete destination directory.
 -o,--output <dir>       The name of folder that gets written. (default: apk.out)
 -p,--frame-path <dir>   Use framework files located in <dir>.
 -r,--no-res             Do not decode resources.
 -s,--no-src             Do not decode sources.
 -t,--frame-tag <tag>    Use framework files tagged by <tag>.
usage: apktool b[uild] [options] <app_path>
 -f,--force-all          Skip changes detection and build all files.
 -o,--output <dir>       The name of apk that gets written. (default: dist/name.apk)
 -p,--frame-path <dir>   Use framework files located in <dir>.

For additional info, see: https://apktool.org
For smali/baksmali info, see: https://github.com/google/smali
@itsvek03
Copy link

itsvek03 commented May 7, 2024

Where u put the jar file path

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