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

该程序开发基于什么系统 #4

Open
caiCoffee opened this issue Apr 16, 2019 · 3 comments
Open

该程序开发基于什么系统 #4

caiCoffee opened this issue Apr 16, 2019 · 3 comments

Comments

@caiCoffee
Copy link

请问作者该程序开发的时候是在什么系统上面的,是Windows吗,我在linux上运行总是出错。

@guanchao
Copy link
Owner

guanchao commented Apr 21, 2019 via email

@caiCoffee
Copy link
Author

我在linux上运行,我更改了sdk跟ndk的目录,运行的时候报错
[1834271026@login apk_auto_enforce]$ python jiagu.py ./12000102_1.0.7_22410029.apk
[+] Apktool decompiled Target.apk successfully!
[+] Target.apk has no self-defined Application!
[+] Find "String appClassName = ...", replace it with "com.targetapk.MyApplication"
[+] Rebuild TuokeApk project successfully!
[+] Copy smali folder into Target folder...
[+] Modified AndroidManifest.xml...
[+] Apktool recompiled Target successfully!
[+] Rename target app: "Target.modified.apk"
[+] Extracted classes.dex from Target.modifed.apk into TargetApk.zip
Traceback (most recent call last):
File "jiagu.py", line 271, in
main()
File "jiagu.py", line 236, in main
shutil.copyfile('TuokeApk/app/build/intermediates/transforms/dex/release/folders/1000/1f/main/classes.dex', 'tuoke.dex')
File "/public/home/1834271026/bin/python2/lib/python2.7/shutil.py", line 96, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: 'TuokeApk/app/build/intermediates/transforms/dex/release/folders/1000/1f/main/classes.dex'
[1834271026@login apk_auto_enforce]$
所以我想知道这个classes.dex文件(TuokeApk/app/build/intermediates/transforms/dex/release/folders/1000/1f/main/classes.dex)是在程序运行过程中生成的还是原来就有的,我再项目里找不到这个文件

@yongjiaming
Copy link

我在linux上运行,我更改了sdk跟ndk的目录,运行的时候报错
[1834271026@login apk_auto_enforce]$ python jiagu.py ./12000102_1.0.7_22410029.apk
[+] Apktool decompiled Target.apk successfully!
[+] Target.apk has no self-defined Application!
[+] Find "String appClassName = ...", replace it with "com.targetapk.MyApplication"
[+] Rebuild TuokeApk project successfully!
[+] Copy smali folder into Target folder...
[+] Modified AndroidManifest.xml...
[+] Apktool recompiled Target successfully!
[+] Rename target app: "Target.modified.apk"
[+] Extracted classes.dex from Target.modifed.apk into TargetApk.zip
Traceback (most recent call last):
File "jiagu.py", line 271, in
main()
File "jiagu.py", line 236, in main
shutil.copyfile('TuokeApk/app/build/intermediates/transforms/dex/release/folders/1000/1f/main/classes.dex', 'tuoke.dex')
File "/public/home/1834271026/bin/python2/lib/python2.7/shutil.py", line 96, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: 'TuokeApk/app/build/intermediates/transforms/dex/release/folders/1000/1f/main/classes.dex'
[1834271026@login apk_auto_enforce]$
所以我想知道这个classes.dex文件(TuokeApk/app/build/intermediates/transforms/dex/release/folders/1000/1f/main/classes.dex)是在程序运行过程中生成的还是原来就有的,我再项目里找不到这个文件

需要先运行Tuoke的工程,另外build下的路径需要改成本地编译的路径。

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

3 participants