I just tried droidwall yesterday, it's completely non functional, can't block anything. Added browser to black list to test and it functions just fine.
Anyone else has experience with it? I'm on LP8.
Solved, data limit in android disables droidwall. Oh and you people who goes around rate threads one stars completely screws up the atmosphere for a normal discussion, even one of the most useful thread in this forum was crapped on by one of you.
I am on LPS and DroidWall works as expected. Your root access is fine of course?
Works well with me here too
Of course. In my search there are quite a few other instances where droidwall is not working in ICS.
I figured it out, if data limit is set in android data counter, it somehow disables droidwall.
Try to enter 'iptables -L' in an ADB shell. Do you see any difference depending on the firewall being turned on or off? If turned on you should see lines similar to the following one in the droidwall chain:
Code:
droidwall-reject all -- anywhere anywhere owner UID match app_108
Ooops, missed your edit.
fxrb said:
Try to enter 'iptables -L' in an ADB shell. Do you see any difference depending on the firewall being turned on or off? If turned on you should see lines similar to the following one in the droidwall chain:
Code:
droidwall-reject all -- anywhere anywhere owner UID match app_108
Ooops, missed your edit.
Click to expand...
Click to collapse
Thanks, yeah once I know it works for others it's easy enough to troubleshoot it.
Related
Ever since I got my Droid 3 I wanted to be able to control games using the keypad, but sadly most games won't support it, so I figured, it would be cool if I could make an app that catches all the keyboard events and triggers fake MotionEvents for preset regions of the touchscreen (kindof how it's done on the iControlPad).
I believe I've found a way to fake the touches, but when searching for a way to read keyboard events when my app doesn't have the focus all lead to dead ends.
Does anybody have a clue how I could do that?
If anyone cares: I not only managed to find a way to read out all the touches and keystrokes that should go to other apps (though some android-coworker said it was impossible), but I can also filter which one of those I let through. I can even block the back- and home-buttons. And it's runnable without any running service or activity, so invisible and unkillable. I don't need most of that for my app, so I won't use what I don't need, I just stumbled across it by accident.
Every threat on this topic ended with "It's impossible to read out keystrokes destined to another app, because it would be too much of a security issue." Well, it is possible.
Sent from my XT860 using xda app-developers app
Dakkaron said:
If anyone cares: I not only managed to find a way to read out all the touches and keystrokes that should go to other apps (though some android-coworker said it was impossible), but I can also filter which one of those I let through. I can even block the back- and home-buttons. And it's runnable without any running service or activity, so invisible and unkillable. I don't need most of that for my app, so I won't use what I don't need, I just stumbled across it by accident.
Every threat on this topic ended with "It's impossible to read out keystrokes destined to another app, because it would be too much of a security issue." Well, it is possible.
Sent from my XT860 using xda app-developers app
Click to expand...
Click to collapse
I do care! I would appriciate to hear how this works, because I would need it for my ongoing development.
Besides Camara button, which is of cause easy due to the broadcast event, and the volume keys (which are more tricky, since you have to inject an own BroadcastReceiver to the AudioManager), how do you handle other keys?
Ok, it's been a while since I did this, and I had a lot of work on other projects in between so, I hope I get everything right.
To do the whole trick you need root access.
1) Get the android.permission.SYSTEM_ALERT_WINDOW permission
2) Open up a system alert window with no content. There is a setting somewhere that lets you catch all keystrokes and touches. This blocks them all from going through
3) This one is tricky. I had to analyse nonsense for days to get it right, and I fear it's still not very good. Go to /dev/input on your phone. There are files named event1, event2, ...
Each of those correspond to one input device, so one is your touchscreen, one is the keyboard and so on. What you do now is you perform the action you want to recreate on the phone (e.g. press a key) and monitor the event files through adb (there is a linux command, that I forgot, that lets you view a file in real time. Also you can copy that real time view to your harddrive by typing "adb shell [command] > record.txt").
Once you know every event that you want to recreate, you can go to the next step.
4) This is what your app has to do to let a keystroke through: The user presses a key, your app catches it. Then it changes it's mode (see 2) ) to not catch any keystrokes at all, posts the corresponding event for that key in the fitting /dev/input/eventX-file, and sets itself to catch keystrokes again.
Before the whole thing make sure, your /dev/input/eventX-file has a chmod of 666 or therelike, since you can't write into it from your app. You only need root for that, after that you don't need root. The OS resets the chmod on each reboot.
It is a hell of a lot of work. Calculate about a week or more for just that (at least that was what it took me to figure it all out). Good luck
PS: If you get your app system privileges, there is also the android.permission.INJECT_EVENTS, which allows you to inject key- and touch-events to another app using a simple function (can't remember it, but Google does). For your app to be able to get system privileges you need to copy it to /system/app, which requires root and a mounted /system. Catching the keystrokes still works the same way as above.
Dakkaron said:
Ok, it's been a while since I did this, and I had a lot of work on other projects in between so, I hope I get everything right.
To do the whole trick you need root access.
1) Get the android.permission.SYSTEM_ALERT_WINDOW permission
2) Open up a system alert window with no content. There is a setting somewhere that lets you catch all keystrokes and touches. This blocks them all from going through
3) This one is tricky. I had to analyse nonsense for days to get it right, and I fear it's still not very good. Go to /dev/input on your phone. There are files named event1, event2, ...
Each of those correspond to one input device, so one is your touchscreen, one is the keyboard and so on. What you do now is you perform the action you want to recreate on the phone (e.g. press a key) and monitor the event files through adb (there is a linux command, that I forgot, that lets you view a file in real time. Also you can copy that real time view to your harddrive by typing "adb shell [command] > record.txt").
Once you know every event that you want to recreate, you can go to the next step.
4) This is what your app has to do to let a keystroke through: The user presses a key, your app catches it. Then it changes it's mode (see 2) ) to not catch any keystrokes at all, posts the corresponding event for that key in the fitting /dev/input/eventX-file, and sets itself to catch keystrokes again.
Before the whole thing make sure, your /dev/input/eventX-file has a chmod of 666 or therelike, since you can't write into it from your app. You only need root for that, after that you don't need root. The OS resets the chmod on each reboot.
It is a hell of a lot of work. Calculate about a week or more for just that (at least that was what it took me to figure it all out). Good luck
PS: If you get your app system privileges, there is also the android.permission.INJECT_EVENTS, which allows you to inject key- and touch-events to another app using a simple function (can't remember it, but Google does). For your app to be able to get system privileges you need to copy it to /system/app, which requires root and a mounted /system. Catching the keystrokes still works the same way as above.
Click to expand...
Click to collapse
Thank you for your innovative solution
I do not understand two points:
1. How does your app will stay on top and its windows receives events, when the user opens another app, a game for example.
2. How does the background app, the game, keep running? Isn't the game onPause() when you are running your app in front?
Thanks you.
Dakkaron said:
2) Open up a system alert window with no content. There is a setting somewhere that lets you catch all keystrokes and touches. This blocks them all from going through
Click to expand...
Click to collapse
Can you please try to remember and elaborate " a setting somewhere" part?
First off, I apologize if this has been covered before in a thread. I spent about a half hour searching for my answer and was not able to either find it or understand which answer I was looking for.
I have in Taiwan a:
S3 GT-I9300
4.1.2
I9300XXELLA
3.0.31-899179
Rooted
No custom rom
(not sure what else you guys need to know)
I was simply curious if someone would point me in the right direction for the following problems. I use reverse tethering quite often with my smart phone as my office does not have WIFI and I enjoy watching sports games on my phone or listening to the radio broadcasts. I have a plan with a 5GB data limit and the video will eat that up pretty fast. So, whenever I use reverse tether, want to check for available wifi, or do any USB/Blue tooth tethering I have to go two or three menues deep into my settings and it's a tad annoying.
Is there a way I can customize the top drop down menu to replace some of the UI icons with ones that I actually want to use such as, "enable usb tether" or "see available wifi signals" or "turn on wifi hotspot?" I could remove Blocking Mode, or AllShare Cast as I never use them.
While I'm able to root phones (easy enough) I'm pretty clueless about custom Roms, how to use them, which ones are good, how to keep my phone protected when using them etc. There is such a huge amount of information about customizing the S3 on these forums, I just didn't know how to wade through it all to get the one customization that I want.
Again, sorry if I couldn't find the threat where this was discussed, and if there is a thread that answers this question well, I would appreciate someone pointing me in the right direction.
Cheers!
Not 100% sure, but maybe have a look into JKay Delux (you have to find the version for your firmware though). Otherwise another option could be to create a shortcut for your home screen via tasker that brings you directly into that menu.
chrismast said:
Not 100% sure, but maybe have a look into JKay Delux (you have to find the version for your firmware though). Otherwise another option could be to create a shortcut for your home screen via tasker that brings you directly into that menu.
Click to expand...
Click to collapse
Does tasker allow you to create shortcuts for any phone command? If so, that might be what I need.
Drschplatt said:
Does tasker allow you to create shortcuts for any phone command? If so, that might be what I need.
Click to expand...
Click to collapse
if I am not wrong, most of them yes. At least it lets you control most of the functions (if you add Secure Settings PlugIn even more.)
mentioned as a sort of derail in this older post
http://forum.xda-developers.com/showpost.php?p=58810816&postcount=3
but no replies so just wanted to re-post with a specific, appropriate subject line.
so, supposedly I should be able to go into settings->wireless->bluetooth and change the "bluetooth name" of the device, and also choose discoverable on/off/timeout.
a. can't change the name of the device; there's no sort of default name shown, and when I tap the left side of the very first line, all I get is bluetooth turns on.
2. turning bluetooth on makes it permanently discoverable, no options to disable or set a time out. if I try tapping the left side of the first line, all that happens is BT shuts off.
is this pure pilot error? does this work / not-work for others?
I have the 4.5.3 update installed.
one thing I wonder about, is that I did disable a bunch of safe-seeming Amazon packages (check out the other thread about PM blocking) including the launcher and some other things. seems unlikely this would have any effect, but in the worst case I can try unblocking stuff and see.
also, haven't been able to find any realy mention on xda or google, but might as well ask: does anyone know if PM or AM are able to manipulate bluetooth settings?
also also, getprop shows:
[net.bt.name]: [Android]
net.hostname = kindle-blahblahgibberish (the usual)
(even weirder, when I pair it with a win7 PC, it shows up as the custom name I put in settings->device options->"change your fire's name")
and the bluetooth settings page still shows none of the above, zero name at all.
again, is this all normal behavior? it's kind of a security flaw (yes, I was still required to enter a PIN on the keyboard, which is good, but there are other ways permanently-discoverable can be bad.)
Don't have your device, so can't say how bluetooth shd work, but as far as blocking I wonder if the debloater tool by @gatesjunior will work with your device. No root required on KitKat, (but of course Sangria is very different.) If it works, it'll show you everything you blocked, let you easily unblock some or all, and also find out if you can pm block bluetooth.
http://forum.xda-developers.com/android/software/debloater-remove-carrier-bloat-t2998294
thanks, but I may have already heard of that one...
http://forum.xda-developers.com/showpost.php?p=58820407&postcount=6
and if it somehow wasn't clear, I'm NOT trying to block bluetooth. otherwise I could simply leave it turned off to same effect.
Hey, sorry. I searched around and didn't see your post
DoLooper said:
Hey, sorry. I searched around and didn't see your post
Click to expand...
Click to collapse
nah, I was just having a laugh, no worries. I was actually glad you posted it because that program is so seriously friggin' useful, the more people know it will work with their firehd, the better.
like, if my lazy carcass ever gets around to trying re-enabling stuff I've blocked and see if that changes anything in the BT settings, I can do it one by one, but first export/save the list of blocked stuff - so much easier to import/restore the saved blocklist file, instead of writing it down or trying to remember.
tarvoke said:
nah, I was just having a laugh, no worries. I was actually glad you posted it because that program is so seriously friggin' useful, the more people know it will work with their firehd, the better.
like, if my lazy carcass ever gets around to trying re-enabling stuff I've blocked and see if that changes anything in the BT settings, I can do it one by one, but first export/save the list of blocked stuff - so much easier to import/restore the saved blocklist file, instead of writing it down or trying to remember.
Click to expand...
Click to collapse
Right on! Too many text files with notes of mods to everything, not just KFs. lol.
And hey, thanks for getting Fire 6 to Gran--lots of promises, but you came through. Good man! Guess you saw this: https://plus.google.com/+GranPC/posts/SkUo5AUDMAy
Hi,
Apologies if this is in the wrong thread category.
I'd like to permanently remove internet access from either a whole phone or from selected apps. This would create a dumbphone with a touchscreen. This is to tackle a net addiction, yet leave me with the capability of communicating with family via SMS. Existing dumbphones don't have touchscreens and often cause me excruciating pain to use, because of a condition I suffer from called fibromyalgia, which mimics the symptoms of RSI. Autocomplete on touchscreen phones reduces the number & intensity of finger-touches I need to make to type an SMS and are thus relatively freeing.
Would anyone know how this could be done, please? I rooted a phone once or twice but am not capable of following any instructions which require judgement. Please don't take more than a couple of minutes over this because there's a strong chance any advice will go over my head.
With thanks in advance for your thoughts
Jonathan
joanthan75 said:
Hi,
Apologies if this is in the wrong thread category.
I'd like to permanently remove internet access from either a whole phone or from selected apps. This would create a dumbphone with a touchscreen. This is to tackle a net addiction, yet leave me with the capability of communicating with family via SMS. Existing dumbphones don't have touchscreens and often cause me excruciating pain to use, because of a condition I suffer from called fibromyalgia, which mimics the symptoms of RSI. Autocomplete on touchscreen phones reduces the number & intensity of finger-touches I need to make to type an SMS and are thus relatively freeing.
Would anyone know how this could be done, please? I rooted a phone once or twice but am not capable of following any instructions which require judgement. Please don't take more than a couple of minutes over this because there's a strong chance any advice will go over my head.
With thanks in advance for your thoughts
Jonathan
Click to expand...
Click to collapse
Root your phone based on your past experience.
Install Xposed Installer app.
Install xposed framework by clicking install button in the app.
After a few minutes, your phone would ask for permission to reboot.
Reboot it.
It will take around 10 minutes or more to reboot.
Open the Xposed Installer app and click the menu icon on top left of the screen.
Select Downloads.
Search for XFirewall and install it.
Reboot.
Open XFirewall.
Select which apps you want to have net connectivity.
OR
You can try any other normal firewall app if you think it to be better than XFirewall
Augustoandro said:
Search for XFirewall and install it.
Reboot.
Open XFirewall.
Select which apps you want to have net connectivity.
OR
You can try any other normal firewall app if you think it to be better than XFirewall
Click to expand...
Click to collapse
Thanks Augusto! Much appreciated.
Do you or does anyone on here please know of any firewall apps which allow the user to commit to a period (24 hours, a week, a year, permanently) without network access? Unfortunately without this kind of restriction I can't trust myself to stay off the web. Five minutes reading the news or Twitter always turns into five hours.
Thanks
Yeah, you read that right. Basically i'm trying to either find a tablet without internet functionality (which i assume is impossible in 2019) or disable all internet connectivity (or wi-fi connection, same thing) from a "normal" tablet.
Simply put i have ADHD (medicated) and tend to find access to the internet very distracting for my work, but i still need a device to write documents on. Problem is, most places where i work or study have wi-fi around, so i end up wasting hours of time, which i cannot afford to.
So, back to the topic: is there a way i can disable internet access from a tablet, maybe by deleting some file? I'm down to rooting the device, if necessary.
Thanks to anyone who can help me!
What your asking for is a bandaid in my opinion. I have the same issue as well, ADHD. What I've learned is just to focus on the task in your life. Such as the documents you need to type up of to look at the weather if it's part of your day.
Put it in like airplane mod or smth,or either,there are some apps for that,you give them the device administrator right,after that they control your daily internet usage,or if you want to block it you can simply do,but after giving an app the administrator rights,you can uninstall it
OptimisticShaggy said:
What your asking for is a bandaid in my opinion. I have the same issue as well, ADHD. What I've learned is just to focus on the task in your life. Such as the documents you need to type up of to look at the weather if it's part of your day.
Click to expand...
Click to collapse
Thanks for your advice, but i was kind of expecting this answer. Still, anedoctal evidence has taught me that i'm much more productive in environments where i simply have no ways of accessing the internet. Also, i've been trying to "learn to just focus" for the past 30 years, and i've always failed, so i'm at the point where i'm fine with relying on bandaids.
SpeedAimer said:
Put it in like airplane mod or smth,or either,there are some apps for that,you give them the device administrator right,after that they control your daily internet usage,or if you want to block it you can simply do,but after giving an app the administrator rights,you can uninstall it
Click to expand...
Click to collapse
This looks ingenious but quite convoluted; I find it weird that with all the ways you can brick a phone there isn't some file i can just delete to make internet connection imbossible. Thank you for your answer though, if nobody comes up with anything i'll try your method.