lnln1111 / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
0 stars 0 forks source link

Probably a Permissions Issue,PLease Need Assistance... #311

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Copied the THree apktool files(apktool.jar,apktool,aapt) to usr/local/bin
2.chmod +X all the three files
3.apktool if framework-res.apk

What is the expected output? What do you see instead?
Framework Installed was the expected output
but i get this
"hackergnome@hackergnome-desktop:~$ sudo nautilus
[sudo] password for hackergnome: 
hackergnome@hackergnome-desktop:~$ sudo chmod +X /usr/local/bin/apktool
hackergnome@hackergnome-desktop:~$ sudo chmod +X /usr/local/bin/aapt
hackergnome@hackergnome-desktop:~$ sudo chmod +X /usr/local/bin/apktool.jar
hackergnome@hackergnome-desktop:~$ apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: Can't create 
directory: /home/hackergnome/apktool/framework
    at brut.androlib.res.AndrolibResources.getFrameworkDir(AndrolibResources.java:473)
    at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:388)
    at brut.androlib.Androlib.installFramework(Androlib.java:365)
    at brut.apktool.Main.cmdInstallFramework(Main.java:193)
    at brut.apktool.Main.main(Main.java:69)
hackergnome@hackergnome-desktop:~$  "

I cant even decompile other apks similar issues

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

Please provide any additional information below.

WIth sudo command framework installs perfectly to /root/apktool/framework/
and apks decompile with sudo... but permissions are not good to these files... 
i need to be root to edit those files :(

Original issue reported on code.google.com by ksnagve...@gmail.com on 4 Mar 2012 at 8:40

GoogleCodeExporter commented 9 years ago
Then the account doesn't have permission to create directory apktool in 
~/apktool

Original comment by connor.tumbleson on 17 Nov 2012 at 2:26