talhaco / droidwall

Automatically exported from code.google.com/p/droidwall
0 stars 0 forks source link

droidwall.sh: not found #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install update (new version 1.4.1)
2. Click Enable firewall, Show rules, or Safe rule

What is the expected output? What do you see instead?
Even on rooted phone (where the previous version used to work fine)
sh: /data/data/com.googlecode.droidwall/cache/droidwall.sh: not found 

What version of the product are you using? On what operating system?
1.4.1. on HTC Desire with Froyo (yes, including iptables ;-))

Please provide any additional information below.
Actually, the file is present, and just contains "
exit 0
exit
"
(I cannot add an attachment here with the file contents; 
 the link "Attach a file" in this forum appears to be broken.)

Original issue reported on code.google.com by DvO...@gmail.com on 15 Sep 2010 at 12:02

GoogleCodeExporter commented 8 years ago
P.S. The version I used before was 1.3.8; 
for the time being I've reverted to that.

Original comment by DvO...@gmail.com on 16 Sep 2010 at 4:28

GoogleCodeExporter commented 8 years ago
Could you try to clear the application cache and try again please?
Go in the System Settings, Manage Applications (or similar), find Droid Wall 
and click on "Clear cache".

Original comment by rodrigo...@gmail.com on 16 Sep 2010 at 6:13

GoogleCodeExporter commented 8 years ago
I gave it a try: first the "clear cache" button was not enabled,
but after choosing "clear data" and re-starting the app,
I was able to select "clear cache".
Still, the reported problem remains :-(

Original comment by DvO...@gmail.com on 16 Sep 2010 at 6:36

GoogleCodeExporter commented 8 years ago
Okay, so maybe the application is being somehow blocked from modifying the file 
permissions.
Could you open a terminal emulator an issue the following command:
ls -la /data/data/com.googlecode.droidwall/cache/droidwall.sh

Then post the ouput here? thanks!

Original comment by rodrigo...@gmail.com on 16 Sep 2010 at 6:45

GoogleCodeExporter commented 8 years ago
The output of ls -l (not: ls -la) is:
-rwxrwxrwx app_118 app_118 12 2010-09-16- 21:00 droidwall.sh

Original comment by DvO...@gmail.com on 16 Sep 2010 at 7:03

GoogleCodeExporter commented 8 years ago
Interesting... permissions are good. Could you try the attached development 
version for me, please?
Thanks

Original comment by rodrigo...@gmail.com on 16 Sep 2010 at 7:17

Attachments:

GoogleCodeExporter commented 8 years ago
Unfortunately, my phone refuses to install, though unknown sources enabled.

Original comment by DvO...@gmail.com on 16 Sep 2010 at 8:49

GoogleCodeExporter commented 8 years ago
Update: After *uninstalling* version 1.3.8, 
I was able to install both 1.4.0 and your 1.4.1 dev version. 
Yet both of them exhibit the same problem reported above.
BTW, after uninstalling, all my selections were gone :-(

Original comment by DvO...@gmail.com on 17 Sep 2010 at 8:12

GoogleCodeExporter commented 8 years ago
Update: Problem solved :-)

So far I did not mention that the reported error message talking about
/data/data/com.googlecode.droidwall/cache/droidwall.sh actually starts
with "Could not acquire root access. You need a rooted phone to run Droid Wall"
I suspected that something was wrong with the superuser privileges.
This turned out not actually be the problem, but trying to install 
a later version of Superuser.apk, I got a further error which lead me to
http://alldroid.org/archived/threads/15330.html 
This contained a very helpful remark:
  someone replaced /system/bin/sh with a link to the busybox sh. 
  That really should be undone: shell scripts which don~t start with 
  "#!/system/bin/sh" (or some other interpreter) 
  don't get launched correctly by busybox's shell.
The system variant I use did replace the standard shell with ash/busybox
and after restoring the original sh, the recent Droidwall versions work fine!

Maybe the problem can also be avoided by adding "#!/system/bin/sh" to 
Droidwall's shell script?

Original comment by DvO...@gmail.com on 22 Sep 2010 at 9:16

GoogleCodeExporter commented 8 years ago
Good that the problem is solved.
I will add the "#!/system/bin/sh" anyway ;)

Original comment by rodrigo...@gmail.com on 23 Sep 2010 at 11:58