dic1911 / apktool

Automatically exported from code.google.com/p/apktool
1 stars 1 forks source link

4.1 and 4.2 don't recompile, 4.4 doesn't decompile. #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Decompile on version 4.4
2. Recompile on version 4.1 and 4.2 (decompile works fine)
3.

What is the expected output? What do you see instead?

On version 4.1 and 4.2 at first it builds dex, then it says it builds 
ressources but then I see:
could not exec command: [/data/data/per.pqy.apktool/lix/aapt...]
and at the end I see:
caused by: java.io.IOException:Cannot run 
program"/data/data/per.pqy.apktool/lix/aapt":error=13,Permission denied
The expected output should be:
build apk
On version 4.4 it can't decompile at all, with same permission denied error.

What version of the product are you using? On what operating system?

I tried 4.1, 4.2 and 4.4 (both armhf and armel). I'm on android 4.2.2. 
Previously I had used this apk with android 4.1.2 and it was working perfectly.

Please provide any additional information below.

Original issue reported on code.google.com by les.peti...@gmail.com on 2 Jan 2014 at 5:48

GoogleCodeExporter commented 8 years ago
Have you rooted?

Original comment by dongfangxunlei@gmail.com on 3 Jan 2014 at 2:33

GoogleCodeExporter commented 8 years ago
Yes, I'm rooted.
I add that I tried to recompile apks that I didn't modify at all, just
to make sure that the problem didn't come from modifications. But even
unmodified apks don't recompile...

Original comment by les.peti...@gmail.com on 4 Jan 2014 at 12:16

GoogleCodeExporter commented 8 years ago
Can you provide the permission of these files?
/data/data/per.pqy.apktool/lix/aapt4.4
/data/data/per.pqy.apktool/lix/aapt/4.3
Are they executable?

Original comment by dongfangxunlei@gmail.com on 5 Jan 2014 at 6:36

GoogleCodeExporter commented 8 years ago
There is no aapt4.4 or aapt4.3, but aapt.
On apktool 4.2 it has rwx, rx, rx
On apktool 4.4 it has rwx, rx, rx
I have changed the perms to rwx, rwx, rwx, but it still doesn't work...

Original comment by les.peti...@gmail.com on 7 Jan 2014 at 11:07

GoogleCodeExporter commented 8 years ago
Sorry,it is very hard to find out the problem with so little information.

Original comment by dongfangxunlei@gmail.com on 7 Jan 2014 at 12:23

GoogleCodeExporter commented 8 years ago
What information do you need? A logcat?
The problem comes from the fact that access to the /data folder is denied...

Original comment by les.peti...@gmail.com on 8 Jan 2014 at 5:48

GoogleCodeExporter commented 8 years ago
your /data folder has no execute bit? Isn't it 0771?

Original comment by dongfangxunlei@gmail.com on 12 Jan 2014 at 8:26

GoogleCodeExporter commented 8 years ago
Sorry to reply late, it's my secondary email and I had forgotten about
the whole story, I have been busy with other stuff.
My database folder has all the permissions.
I paste you what happens when I try to recompile...

I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException:
brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [/data/data/per.pqy.apktool/lix/aapt, p,
--min-sdk-version, 14, --target-sdk-version, 17, -F,
/data/data/per.pqy.apktool/APKTOOL4234900943193098141.tmp, -0, arsc,
-I, ?/apktool/framework/1.apk, -S,
/sdcard/download/com.zst.xposed.halo.floatingwindow
_v222_a56223_src/res, -M,
/sdcard/download/com.zst.xposed.halo.floatingwindow
_v222_a56223_src/AndroidManifest.xml]
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
    at brut.androlib.Androlib.buildResources(Androlib.java:283)
    at brut.androlib.Androlib.build(Androlib.java:206)
    at brut.androlib.Androlib.build(Androlib.java:176)
    at brut.apktool.Main.cmdBuild(Main.java:228)
    at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException:
could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p,
--min-sdk-version, 14, --target-sdk-version, 17, -F,
/data/data/per.pqy.apktool/APKTOOL4234900943193098141.tmp, -0, arsc,
-I, ?/apktool/framework/1.apk, -S,
/sdcard/download/com.zst.xposed.halo.floatingwindow
_v222_a56223_src/res, -M,
/sdcard/download/com.zst.xposed.halo.floatingwindow
_v222_a56223_src/AndroidManifest.xml]
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
    ... 5 more
Caused by: brut.common.BrutException: could not exec command:
[/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 14,
--target-sdk-version, 17, -F,
/data/data/per.pqy.apktool/APKTOOL4234900943193098141.tmp, -0, arsc,
-I, ?/apktool/framework/1.apk, -S,
/sdcard/download/com.zst.xposed.halo.floatingwindow
_v222_a56223_src/res, -M,
/sdcard/download/com.zst.xposed.halo.floatingwindow
_v222_a56223_src/AndroidManifest.xml]
    at brut.util.OS.exec(OS.java:93)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
    ... 6 more
Caused by: java.io.IOException: Cannot run program
"/data/data/per.pqy.apktool/lix/aapt": error=13, Permission denied
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
    at java.lang.Runtime.exec(Runtime.java:615)
    at java.lang.Runtime.exec(Runtime.java:483)
    at brut.util.OS.exec(OS.java:84)
    ... 7 more
Caused by: java.io.IOException: error=13, Permission denied
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
    at java.lang.ProcessImpl.start(ProcessImpl.java:130)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)
    ... 10 more

Original comment by les.peti...@gmail.com on 9 Mar 2014 at 9:21

GoogleCodeExporter commented 8 years ago
I m also facing same problem

Original comment by maulin6...@gmail.com on 5 Apr 2014 at 8:10

GoogleCodeExporter commented 8 years ago
I have the same error.
I am on 4.4.2 with ATT galaxy S3, rooted and unlocked.
my /data folder is empty?

Original comment by pence.b...@gmail.com on 29 Jun 2014 at 5:16

GoogleCodeExporter commented 8 years ago
I also same problem

Original comment by see.suu...@gmail.com on 28 Mar 2015 at 7:26