yashsingh1/xdaforums huggingface dataset:
[G1 Apps and Games] zioalex:
I haven't mediaserver in the apps list

I Dear,

I'ven't mediaserver il the application list; I can see the process from the shell. I've tried to create the rule bu hand and now I can play youtube videos.

But why I can't see it in applucation list?

Thanks

Alex
[G1 Apps and Games] rodrigo.zr:
When you do a "ps" in the shell, what is the username displayed for that process? (it shows "media" on mine).

I expect the media server process to run as this "media" user.
[G1 Apps and Games] zioalex:
Yes like on mine; adding the rules:

iptables -I OUTPUT 1 -m owner --uid-owner media -j ACCEPT

youtube works properly.
[G1 Apps and Games] rodrigo.zr:
Would you mind running the attached DroidWall version and capturing the logcat output? That output can probably help me find what is happening on your device.

Thank you so much in advance,

Rodrigo
[G1 Apps and Games] zioalex:
SOLVED with version 1.3.5

Hi dear,

I've seen that you have produced the version 1.3.5.

Installed and magically I have the app Media Server.

After selected YouTube works properly.

Thanks

Zioalex
[G1 Apps and Games] dkodr:
Unfortunatelly I'm getting this error on Hero running MoDaCo's MCR 2.2:

I really hope this can be fixed...
[G1 Apps and Games] rodrigo.zr:
Are you able to run other applications that require root access?

What happens before this message is displayed? Are you prompted with a "Superuser permissions" screen?

Regards,

RZR
[G1 Apps and Games] dkodr:
Yes, I'm able to run other apps that require root, and yes, I'm being prompted with SU screen. Then I get the message posted above.

-[ edit ]-----------------------------------------------------

After a soft-reset I'm getting a different error:

And as I've read in this thread, not much can be done about it, can it? :|
[G1 Apps and Games] rodrigo.zr:
I'm affraid you are correct. If your ROM has not been compiled with that kernel module, there's not much we can do... But you can always request that to the ROM maker so they may hopefully include it on a future release (like Cyanogen did).

Regards
[G1 Apps and Games] Statist:
Hi rodrigo.zr

I have HTC Magic device with 2.627-cb85e129 htc-kernel@and18-2 #3 kernel. I try block other applications checks allow applications in white list, press "Apply rules" and get error:

"Error applying iptables rules. Exit code:3

iptables v 1.3.7: can't initialize iptables table 'filter': iptables who ? ( do you need to insmod ? ) Perhaps iptables or your kernel needs to be upgraded."

What is this ?
[G1 Apps and Games] Chahk:
Are you running the stock OS? If so, you need a modified ROM with iptables support built-in. As far as I know, latest CyanogenMod, xROM, and HERO builds should work.
[G1 Apps and Games] jean2edi:
I,

How about android phones not having iptables/netfilter modules ?

On a french (orange) HTC dream 1.5, with root access, i've got a

iptables: not found

Is there a way to add iptables command ?

Any idea of other way to allow/deny internet access ?
[G1 Apps and Games] rodrigo.zr:
I don't think there is an easy way of adding iptables, since it depends on some kernel modules. You can always flash your device with an enhanced ROM, like CyanogenMod.

You can completely disable internet access using an application that deal with the APNs (such as APNdroid), but there's no other way of selective blocking individual apps.
[G1 Apps and Games] mike517:
I got the same problem. Once i try to apply the rule, then it will show "error purging iptables.exit code:127 iptables: not found".

I am using the orginal magic rom and dont wanna change another rom, can anyone help me to fix the problem :D

P.S.: I am using Magic
[G1 Apps and Games] porear:
Parental (Access) Control

Thanks for a fantastic program Rodrigo!!

I have a feature request - Googling, I see others like me who have a need for some sort of parental control on the phone. Time based access control would be a great step in this direction. Would it be possible to add time based rules so that connections (3G, wifi) could be made at defined times? Maybe cron?

Maybe this could be a "Pro" version - I would pay for it, and from the demand I think exists, I believe others would too. What do you think?
[G1 Apps and Games] rodrigo.zr:
This is absolutely possible to implement using the cron API. The only problem is that I don't have much time on my hands - and this is stopping me from adding further enhancements to Droid Wall.

I don't plan to make money out of it too... This is just my small contribution to the open-source community that has helped me a lot already :)

If anybody is wiling to help I'll surely allow read/write access to the project.
[G1 Apps and Games] trygveaa:
This app is really great. It works perfect except that it doesn't restore the settings after reboot on my phone. If I select show rules after reboot, it just shows the headlines without any rules. The checked apps is remembered and when I press apply rules, it works again until next reboot. I use CyanogenMod 4.2.5 on an ADP1/Dream. Does anyone know what could be wrong?
[G1 Apps and Games] rodrigo.zr:
Version 1.3.6 uploaded to the site

New version uploaded. Get it while it is fresh :)

Change-log for this version:

* Much faster rules restore on reboot - fixes "not responding" and force close on start up

* It is now possible to completely disable the firewall functionality (and it won't re-enable on reboot). Check the new "Disable Firewall" menu item

* Removed the "Purge Rules" menu item (replaced by the new "Disable Firewall")

* If you receive an error during the update, please uninstall the previous version and try again
[G1 Apps and Games] Newbie16:
Any chance of an "Also apply rules to wifi" option?
[G1 Apps and Games] rodrigo.zr:
Well.. this option exists since version 1.3.1, from 03/August/2009 :)
[G1 Apps and Games] mylostlonelysoul:
Usually in order to get a G1 you have to get the data plan, unless you back doored it, but thats kinda stupid to not have unlimited for a smartphone based on internet.
[G1 Apps and Games] rodrigo.zr:
I don't live in US, and unlimited data plans are quite expensive here.

Anyway, there are other reasons to block data access... My G1 battery lasts four days in average. When I had unrestricted 3G access it would barely last 24 hours.
[G1 Apps and Games] rodrigo.zr:
Rogers 911 Update and DroidWall

Someone dropped an issue at the project's website that may have important information for others:

Rogers 911 Update and DroidWall

http://code.google.com/p/droidwall/issues/detail?id=5
[G1 Apps and Games] enatefox:
Wanted to thank you for making the app. It's so much easier than trying to do this from the shell. Along with Autostarts (which isn't free and open source like you've done) this is one of the first to get installed when I flash.
[G1 Apps and Games] true_cp:
I installed 1.3.6 and I got failed when applying rules. This is the error message:

Error applying iptables rules.
Exit code: 1

iptables: Protocol wrong type for socket

My device: Nexus One(2.1-update1), hiAPK 1.4.3, rooted, wireless tether installed.

Attached is my iptables file, could you plz help to look into it.

Thanks
[G1 Apps and Games] rodrigo.zr:
Check this:

http://code.google.com/p/cyanogenmod/issues/detail?id=1120

This is (unfortunately) more related to the ROM you are using
[G1 Apps and Games] Neejay:
How hard would it be for someone to make a widget for the "Enable/Disable Firewall"? (Not me, lol)
[G1 Apps and Games] true_cp:
Thanks, I install Cyanogenmod 5.0.5.3, and it works.

Cheers:)
[G1 Apps and Games] Neejay:
bump for this, plus:

This app is great. I turned it off/on ever so often yesterday + Setcpu sleep profile = my battery JUST getting to 3%. My battery lasted almost 32 hours. haha
[G1 Apps and Games] embrion:
I've had the same problem with "Could not acquire root access" as many of You.

The problem is there are at least two Superuser.apk versions and one of them does and one doesn't work with DroidWall.

The one that does is taken from MoDaCo Hero ROM, the other one comes from some tutorial link.

Also, (I'm not sure because I've done it before swaping Superuser.apk) You might need custom kernel (android<dot>teknologism<dot>org).

I've noticed that Droid Wall doesn't work with for ex. Villain ROM ( probably because of kernel).

So to sum it up:

Problem with "Could not acquire root access" ? Change Superuser.apk

Other problems? : Change kernel (only MoDaCo [now included in it] or stock [and not 2.0]...haven't tested other)

Still problems?: hell if I know

Also +1 for firewall disable/enable widget :)
[G1 Apps and Games] rodrigo.zr:
New version 1.3.7 available on the project's website. Please download and report any new issues.

Okay, okay I will TRY to implement a ON/OFF widget for the next version. ;)
[G1 Apps and Games] Neejay:
HOT! <3 lol

Good job as well on not abandoning the project! This program is great and allows me to save a TON of possible drain on my battery.
[G1 Apps and Games] rodrigo.zr:
Thanks to a friend of mine I could finally test DroidWall on different systems. The latest subversion code now works with Nexus One, Galaxy and many others!

:)
[G1 Apps and Games] embrion:
Nexus one? Does it's stock kernel have iptables with all necessary options enabled? I'm wondering what about other 2.1 kernels (like Hero im my case)
[G1 Apps and Games] rodrigo.zr:
The network interface names on the Nexus one and many others are different than the G1. So DroidWall would "work" but not actually block anything - depending on which interface had a different name.
[G1 Apps and Games] embrion:
So by reporting that it does "work" on N1 you mean it does run without force close etc but it doesn't block anything ?
[G1 Apps and Games] rodrigo.zr:
Yes. From the tests I performed today, DroidWall was blocking only the cellular network on N1 (not Wifi).

The reason for this is that the Wifi interface is named eth0 instead of tiwlan0.

I believe that the names may also vary depending on the ROM being used, not only the hardware.

The latest code has support for 5 different interface names (those are all the names I am aware of).
[G1 Apps and Games] embrion:
Thanks.

Newest version doesn't want to install on stock 1.5 Hero.

I'm about to check the SVN but you've probably rised min. SDK version in project's XML file.

--edited--

<uses-sdk android:minSdkVersion="3" />

Well, I was wrong. But it still doesn't want to install and gives me "Droid Wall could not be installed on this phone". I'm willing to test whatever you compile ;)
[G1 Apps and Games] rodrigo.zr:
Do you have any previous version installed? It might be a signature mismatch. On that case you need to completely remove the previous version along with all the data, otherwise you will not be able to re-install it.
[G1 Apps and Games] embrion:
Ok, I've uninstalled the older one but now the problem with obtaining root access came back. http://xdaforums.com/showpost.php?p=6121206&postcount=131

I've even tried third one superuser.apk taken from 2.1 VillainROM and still no go. Could you send me superuser.apk that you tested 1.3.7 with? I know this is not a solution but it will be temporary solutinon or I'll need to go back to 1.3.6
[G1 Apps and Games] Neejay:
This did it for me. (on CyanogenMod 5.0.7 at the moment)
[G1 Apps and Games] rodrigo.zr:
Attached the version I am using.

Can you send me the version you are using? I need to be able to reproduce this problem to fix it! Thanks
[G1 Apps and Games] embrion:
Thanks, I;ve uploaded all 3 os them.

I'm about to check your's and the one from CM + some completely newer stuff from Nexus one
[G1 Apps and Games] rodrigo.zr:
Amazing... tested and all three works fine on my G1 (Cyanogen). I think I will need to change the way I am executing the root commands.
[G1 Apps and Games] embrion:
Heh, now I know why all of them worked for you. I renamed them frop apk to zip, unpacked and compared in total commander...they were all same files, so binary difference was probably because of different signing and/or date stuff. Strange that one of them worked with 1.3.6 and one didn't...but there must be something wrong with the way of executing su as I can get su from terminal with no problems

I also checked superuser from you and still no luck. One from CM has differen su bin and gives me some linker error.

My last chance is this new superuser from here http://xdaforums.com/showthread.php?t=665974
[G1 Apps and Games] rodrigo.zr:
Could you please try this development version of DroidWall? I completely changed the way I interact with "su". (attached)

Thanks
[G1 Apps and Games] embrion:
Funny things, I finally managed to get 1.3.7 working. I rerooted my Hero with su + superuser.apk that 1.3.6 worked with, chmoded it once again and it started to work. The other thing is I've also tested your dev version and it has problems obtaining the root.

--edited--

btw. could you implement "select all" option so I could whitelist all apps in case of WiFi connection instead of checking them one by one?
[G1 Apps and Games] rodrigo.zr:
The development version already has the select all feature - just select (Any application) on the list ;)

Also, I modified the dev version to display the "su" error message. Could you please try this version (attached) and let me know the error message? Thanks.
[G1 Apps and Games] embrion:
I have no bleeping idea why it started to work, but it does so no error message. Sorry for wasting your time :(

Thanks for "select all" feature :) Personally it's enough for me but some people migh prefer approach that selecting this checkbox selects all of them (and deselecting deselects) so one could select all but one for example by checking "select all" and unchecking one particular app manually :)
[G1 Apps and Games] rodrigo.zr:
Good that it worked for you... I had no more ideas to work with "su" :)

I will probably add a "Select all/none" feature when clicking on the interface icon on the header.

The "(Any application)" option is still good if you want to temporarily white-list an interface without messing with your selected apps, so I'm keeping it.

Thanks for the help.
[G1 Apps and Games] rodrigo.zr:
The latest trunk version has a ON/OFF WIDGET. :D:D:D

The widget icons suck so I will greatly appreciate if someone create better ones for me :cool:

This feature will be officially released on v1.4.0
[G1 Apps and Games] Neejay:
Sweet! Is 1.3.8 the newest? It's what I have installed and I see the ON/OFF Widget.
[G1 Apps and Games] rodrigo.zr:
The newest one does not have an official version number yet since it is still being modified, but it will be called 1.4.0 when released.

you can find the development version attached on this post.
[G1 Apps and Games] Neejay:
Sweet. Thanks a lot.

One question though: Why does the "Enable/Disable Firewall" button light up green when it's DISABLED instead of when it's enabled? lol

I always thought:

light on = ON

light off = OFF

:D
[G1 Apps and Games] rodrigo.zr:
Humm, yes, it doesn't look right. I am pretty sure that the images were different when I implemented this, long time ago :)

I'm using icons from the operating system so they are subject to change. I will invert them
[G1 Apps and Games] Neejay:
Cool, cool. Again, good job!
[G1 Apps and Games] embrion:
Thanks for the widget :)

I was wondering about Droid Wall working only with certain kernels with iptables enabled. Some (all 2.1?) custom Hero ROMs have iptables and for ex. WiFi Tether does work with them but Droid Wall does not. I'm wondering why if DroidWall simply adds/removes iptables rules just like WiFi Tether does.
[G1 Apps and Games] rodrigo.zr:
Sometimes the ROM has iptables but not the required "owner" module for DroidWall to work.

Other ROMS have the module, but not the iptables binary. See this: http://code.google.com/p/droidwall/issues/detail?id=6
[G1 Apps and Games] embrion:
Ok, thanks. Now I understand why netfilter owner is also needed
[G1 Apps and Games] jagoff:
firewall

Sorry, my question but, how install iptables?. My movil milestone 2.1 brasil version with root.

Thanks :D
[G1 Apps and Games] rodrigo.zr:
Check this issue here.

Make sure to read all of the comments in there to understand the "under the hoods".
[G1 Apps and Games] thufl:
Suggestion and idea

I like the idea very much, however, here is what I think the GUI interface should look like:

- Start DroidWall, -> Presented with select an interface, i.e. Wifi, 3G, etc.

- Once the interface selected, -> Presented with an option to white or black list (and displaying existing white/black list rules).

It should be as simple as that instead of white/black list by application/interface.

The reason being is that users want "Browser" to not be able to go to certain sites while being able to go to other sites.

Anyway, my 2 cents

Thanks and congrat on the good work.
[G1 Apps and Games] Surfinette:
I have installed the latest version on a Rooted Desire with SU permission and yet I have the following error message:

Error applying iptables rules.

Exit code: 1

iptables: No chain/target/

match by that name

Also, all my aps are not listed (for instance Swype isn't, while Swype is asking for data access when being installed), do you have an idea why this is?
[G1 Apps and Games] xternal:
is development still continuing on this? Sounds like 1.4 is going to be sweeet
[G1 Apps and Games] tuxStyle:
@rodrigo:

The app has root.

You can create a button somewhere and when clicked to check the integrity.

Verify if iptables is installed, if not, recommend wifi tether installation.

If wifi tether is installed, auto create the symlink.

After iptables is installed, check if the needed kernel modules are preinstalled.

I'm running android 1.6 on Xperia X10 and the terminal i have it sux so i can't run any commands :(

EDIT: i installed wifi tether but no iptables in /data/data/android.tether/bin :(
[G1 Apps and Games] MiguelX:
Excellent work!

Any chance to have a log of iptables rules? (blocked packets)
[G1 Apps and Games] randuev:
any chance to support froyo on nexus? we have testers :)
[G1 Apps and Games] -Tiz-:
Seems to be a great app!

Unfortunately, I am unable to make it work on my (rooted) Galaxy S. There are no errors and I get messages similar to "superuser rights granted to droidwall", "iptables successfully changed" etc.

However, the blocked applications (e.g. Opera Mini which was checked/blocked on the blacklist) can still connect to the internet.

Any ideas? Thanks!
[G1 Apps and Games] kenshinta:
Hullo.

Are all apps under /system/app considered root apps as per droidwall rules?
[G1 Apps and Games] -Tiz-:
Update: Dev Version 1.4 seems to work on the Galaxy S. Yeah + THANKS!
[G1 Apps and Games] sunwee:
where to download 1.4? site still shows 1.37??
[G1 Apps and Games] meLIanTQ:
hi,

i have build kernel for support droidwall on my desire, and he don't work ...

netfilter with multiport, owner etc is ok :/ , bin iptables too

Config: My rom froyo on desire, kernel 2.6.32.9 and 1.4.0-dev of droid wall.

Error 1 :(
[G1 Apps and Games] mnjm9b:
great app,

I have it somewhat working on my kaiser running eclair. (froyo doesn't work at all)

here is where I am hung up:

it only works when using the (Any application) setting

and I can confirm it works in that it either allows or blocks everything depending on which mode (blacklist/whitelist)

however, when any individual item is selected for either list mode,

I get the "Error applying iptables rules. exit code:1..." error.

so close to working...

any ideas???

BTW I am using the 1.4-dev version.
[G1 Apps and Games] embrion:
Error you mentioned means that your kernel doesn't have ipfilter owner module
[G1 Apps and Games] mnjm9b:
I read about that... but then why does it work when using (Any application)???
[G1 Apps and Games] embrion:
I think when I used kernel without this module, I couldn't even use "Any application" but on the other hand this module allows to set per application filter if I recall so maybe?
[G1 Apps and Games] mnjm9b:
I have been compiling my own kernels for a little while now...

any ideas for where to include these iptable owner modules???

I somehow fail to find them?
[G1 Apps and Games] embrion:
I have no idea but here's one guy's HTC Hero kernel GIT does have everything DroidWall needs
[G1 Apps and Games] mnjm9b:
OK...

I found the "Owner" setting and then compiled a working kernel.

this app is awesome!!! I feel safe again!!! LOL
[Upgrading, Modifying and Unlocking] sfrangebob:
Hi,

I have read a lot of topics about my problem but I haven't found a solution.

I'll explain my problem:

I have successfully flashed a samsung i780 with the Heroes WM6.1 Final ROM using mirage 1.8.

The phone works well for a couple of days, but one day it crashes and I perform a soft reset. It reboots normally but the dispaly shows the touch screen calibration and the contacts are disappeared. So I think "This seems to be an hard reset!!" and it happens a couple of times.

The last time it crashes the battery was very low. So I shut down the pda and I connect the charger, but the red led doesn't turn on.

With the portable charger the battery charges without any problems, but when I insert the battery, the i780 doesn't power up.

I try every combination: fn + alt + power / power + red and green buttons / power + '9' button. The pda still dead and mirage cannot detect it.

Somebody can help me?

Thanks a lot and sorry for my english.
[Upgrading, Modifying and Unlocking] sfrangebob:
no idea?

somewhere i have found something about jtag connection..
[Upgrading, Modifying and Unlocking] ironeagle:
did u try this http://xdaforums.com/showthread.php?t=380723
[Upgrading, Modifying and Unlocking] dreamtheater39:
@ironeagle

The device goes completely dead and you cant put it to bootloader mode, or anything at all for that matter. The device goes COMPLETELY DEAD - literally! The service guys told me it was a mobo failure.

@sfrangebob

I think inertiax did mention somewhere that someone was able to revive it using jtag interface. But for that you need to hack in at hardware level and flash the chip directly. This is risky and has no assured outcome!

let us know what happens....best of luck
[Upgrading, Modifying and Unlocking] sfrangebob:
it's not a problem for me hacking in the hardware level. I have a lot of experience in consoles (and electronics devices) hardware hacking, but I have to discover more about this jtag method.

Wich jtag adaptor should i use and wich software?

Where can I find this information?

Thanks a lot.
[Upgrading, Modifying and Unlocking] dreamtheater39:
The biggest problem is to find JTAG testpoints for the i780. I have no idea how to find this, and it was only inertiax who had mentioned someone who had successfully used JTAG to revive a dead i780...so i'm guessing he should know where the jtag test points are located. Once you have that, i guess you can borrow the process from that of any other device as it should be more or less the same.

You can see this post -

http://xdaforums.com/showthread.php?t=369681
[Upgrading, Modifying and Unlocking] jameswhite:
You can download i780 sevice manual on the internet and find out the jtag test points.But there are two types of jtag test points on the mainboard.
[Upgrading, Modifying and Unlocking] azuan85:
perhaps this may fix up ...

took out / in the battery for several times ... do it quickly :)

then try to turn it ON ...

I got the same problem as you ...

but mine when I took out the battery or turn OFF,

it cannot be ON later...

so I repeat the battery in/out several times and its work ...
[Touch Diamond, MDA Compact IV Themes and Apps] dgdown:
Here is my favorite Wallpaper For PC and Mobile Phones.

This is my design so you can request Other Colors or Another Text :D

Resolution is 480x640 other resolutions possible...

Preview:

http://picasaweb.google.com/DanielGronski/Glow?authkey=Gv1sRgCOfVwqv9-Jj03gE#
[Touch Diamond, MDA Compact IV Themes and Apps] tridge:
Cool, I would like to see more xda themed papers!
[Touch Diamond, MDA Compact IV Themes and Apps] dgdown:
well i have to make them first but sure any special subjects?
[Touch Diamond, MDA Compact IV Themes and Apps] dotcompt:
Do you have the .PNG file, I would like to remove the text.

Thanks and great job