how to save iptables rules? - Motorola Photon 4G

Can anyone tell me how to save rules to iptables and doesnt loose them at the next boot? Thanks

nabor said:
Can anyone tell me how to save rules to iptables and doesnt loose them at the next boot? Thanks
Click to expand...
Click to collapse
might be able to do it via droidwall
-m

diomark said:
might be able to do it via droidwall
-m
Click to expand...
Click to collapse
Hi,
So, any other ways? My iptables was modified by other programs, so I'm pretty sure droidwall cannot help me so much.

...

nabor said:
Can anyone tell me how to save rules to iptables and doesnt loose them at the next boot? Thanks
Click to expand...
Click to collapse
to save you can use
Code:
iptables-save > place_of_file
and to restore
Code:
iptables-restore < place_of_file
however if there are other rules these can and will be overridden this is because iptables works in order of rules given so a rule allowing a website set before a rule not allowing a website the first rule will work.

Related

[Q] Execute adb commands from Java desktop applicaton

Hi!
I would like to execute adb commands from my Java application. At the moment I use Runtime.getRuntime().exec(command), is there a better way? Maybe even a library?
Kind regards,
Alex
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Thanks ✟
Moving to Q&A
Has nobody an idea ?
@lufc
thanks for moving
Solution
Alex1211221 said:
Has nobody an idea ?
@lufc
thanks for moving
Click to expand...
Click to collapse
Hi,
Did u find any solution?
Tks
efnisol inferiour
leonogas said:
Hi,
Did u find any solution?
Tks
Click to expand...
Click to collapse
Hi,
I couldn't find a library, I wrote an wrapper for the ADB commands that I needed.
Alex1211221 said:
Hi,
I couldn't find a library, I wrote an wrapper for the ADB commands that I needed.
Click to expand...
Click to collapse
can u plz shate this wrapper

ADB Device offline?

Could anyone help me i'm running on ubuntu 12.10 64bit and i'm trying to build cm10.1 from source. I have recieved the source code, downloaded the necessary files, and made the directories. When i try to connect my fascinate to the computer with adb to recieve the "proprietary blobs" I get error device offline and i can't seem to fix it. Help will be greatly appreciated.
Have you connected it on ubuntu before?
try to
adb kill-server
adb start-server
...
Installed drivers?
U4z said:
Could anyone help me i'm running on ubuntu 12.10 64bit and i'm trying to build cm10.1 from source. I have recieved the source code, downloaded the necessary files, and made the directories. When i try to connect my fascinate to the computer with adb to recieve the "proprietary blobs" I get error device offline and i can't seem to fix it. Help will be greatly appreciated.
Click to expand...
Click to collapse
did you do the udev rules for Samsung? you may be running into that as well.
EDIT: it may be because there's an extra step for Ubuntu 12.10, I'd honestly go back to 12.04, but don't go that way until you have searched Google for the answer.
hhp_211 said:
Have you connected it on ubuntu before?
try to
adb kill-server
adb start-server
...
Installed drivers?
Click to expand...
Click to collapse
Well i believe i do have the drivers. (I'm new to linux and developing "I'm a noob") And USB storage works just fine but ADB just wont work for some reason. I do believe i am missing a step or doing something wrong.
http://forum.xda-developers.com/showthread.php?t=1860108
http://forum.xda-developers.com/showthread.php?t=2166877
http://www.ubuntuupdates.org/package/webupd8/quantal/main/base/android-tools-adb
Udev rules
http://forum.xda-developers.com/showthread.php?t=735375
Some things to check for drivers/setup
hhp_211 said:
http://forum.xda-developers.com/showthread.php?t=1860108
http://forum.xda-developers.com/showthread.php?t=2166877
http://www.ubuntuupdates.org/package/webupd8/quantal/main/base/android-tools-adb
Udev rules
http://forum.xda-developers.com/showthread.php?t=735375
Some things to check for drivers/setup
Click to expand...
Click to collapse
Thank You! Problem solved.
Awesome:thumbup:
U4z said:
Thank You! Problem solved.
Click to expand...
Click to collapse
sir, was it the udev rules?
---------- Post added at 11:10 PM ---------- Previous post was at 11:09 PM ----------
hhp_211 said:
Awesome:thumbup:
Click to expand...
Click to collapse
how dare you take all my thanks! sir, I challenge you to a dual! /sarcastic British voice that when I typed that out I heard it that way in my head =p
anyway, glad you got adv working correctly!
ztotherad said:
sir, was it the udev rules?
Click to expand...
Click to collapse
I'm curious too
ztotherad said:
how dare you take all my thanks! sir, I challenge you to a dual! /sarcastic British voice that when I typed that out I heard it that way in my head =p /QUOTE]
Mmmmuuuuhhhaaaaaaa!!!!
I shall accept your challenge
.
Click to expand...
Click to collapse

regarding Micromax A 116 need seriously bad

hello guys right answer gets a big thanks with $100 or more depending on how easy answer is
i have a question please answer it.its imp hope here it can be answered
or tell me where to find it
i am using A116 4.2.1 canvas HD
as many of you worked on this.
earlier i was using samsung GTl9100 its ICS for my work
but now application is updated for jelly bean and i can not use it.
there is a command i know for this device GT -l9100 samsung but not for A116 Micromax
cd sd card
rm id
su
reboot
it changes device id completely using emulator or i can type a id here
but i don't know where is id files in A 116 so i can remove ID
can you or some one please tell me where it is stored to change using emulator
ill give $100 who can tell or help me
and a big thank of course
https://play.google.com/store/apps/details?id=com.vcastroi.changeid
Have a look at this or try to search on play store there are many apps name like this install and see if it worked
When u solved your problem Give a thank to me :v
user died said:
hello guys right answer gets a big thanks with $100 or more depending on how easy answer is
i have a question please answer it.its imp hope here it can be answered
or tell me where to find it
i am using A116 4.2.1 canvas HD
as many of you worked on this.
earlier i was using samsung GTl9100 its ICS for my work
but now application is updated for jelly bean and i can not use it.
there is a command i know for this device GT -l9100 samsung but not for A116 Micromax
cd sd card
rm id
su
reboot
it changes device id completely using emulator or i can type a id here
but i don't know where is id files in A 116 so i can remove ID
can you or some one please tell me where it is stored to change using emulator
ill give $100 who can tell or help me
and a big thank of course
Click to expand...
Click to collapse
Be aware! questions are not allowed in DEV Section. You may get banned too. Admins already reported. Be careful and read some basic rules.
Zafar7777 said:
https://play.google.com/store/apps/details?id=com.vcastroi.changeid
Have a look at this or try to search on play store there are many apps name like this install and see if it worked
When u solved your problem Give a thank to me :v
Click to expand...
Click to collapse
hello bro thanks a lott for your time but it does not works.i tried but not
it needs to be changed not just a frame cover of new id on old one
cmahendra said:
Be aware! questions are not allowed in DEV Section. You may get banned too. Admins already reported. Be careful and read some basic rules.
Click to expand...
Click to collapse
hello bhai thx for info.i was reading a thread here about A116 so asked here
Mods forgive my mistake if possible and move my thread to question section please?
i just need to know location** of Device ID in Micromax A116 or
Samsung Galaxy tab 3
someone please tell me or guide me whom i can ask
i'm in need of it badly
Can you please tell me why do you need it? Please tell your end objective, may be some other tricks can work for you.
rajneeshk said:
Can you please tell me why do you need it? Please tell your end objective, may be some other tricks can work for you.
Click to expand...
Click to collapse
bro i need to fool a syetem to detect my device ID
titanium backup pro wont work
\
i tried few change id apps but they just ba little cover system detects them
do i need to explain step by step bro?
ill if i need to just guide me how can i solve it
Zafar7777 said:
https://play.google.com/store/apps/details?id=com.vcastroi.changeid
Have a look at this or try to search on play store there are many apps name like this install and see if it worked
When u solved your problem Give a thank to me :v
Click to expand...
Click to collapse
thanks to zaffar its solved
thanks to you all guys hope I'll be disturbing you guys soon
i mean in like 2 min as new thread lol

[MOD][DRIVER] KY-RD9700 (QF9700) Driver [P5210]

This is a self compiled and working driver of KY-RD9700 USB Ethernet for Galaxy Tab 3 10.1
Info
I made this because i have bought this ethernet micro usb adapter (DX Link) and Galaxy Tab don't have native support for this.
This is compiled with 3.4.34 Kernel and x86 (i386) (May not work on other kernels but if you need i can compile for you)
Network speed is limited to 6 Mbps (Because USB 1.0???)
Thanks to
sylentprofet: For Builduntu.
Curious!: For source code of drivers
I spent some time in make this possible, if you can give me a coffee, i really appreciate you.
How Use:
Download and put on you SD Card.
*** You Need ROOT *** copy .ko module to /lib/modules
On Terminal exec: insmod qf9700.ko
Ready!! Now you can use dhcp or use other market apps to get ip
Download:
Here or on bottom of post.
Gonna test this !
Btw, do I need Ubuntu and the USB stick ?
Sent from my GT-P5210 powered by AmatROM HD
Nonta72 said:
Gonna test this !
Btw, do I need Ubuntu and the USB stick ?
Sent from my GT-P5210 powered by AmatROM HD
Click to expand...
Click to collapse
No, is for Stock JB (p5210xx**) Kernel 3.4.34, and yes, you need the usb internet adapter
zorrigas said:
No, is for Stock JB (p5210xx**) Kernel 3.4.34, and yes, you need the usb internet adapter
Click to expand...
Click to collapse
Ok thanks,
Nonta72 said:
Ok thanks,
Click to expand...
Click to collapse
Work nice with you rom !
Yeah I tested it :good:
Sent from my GT-P5210 powered by AmatROM HD
Thanks man, ordered one after I saw this.
Now, can you compile this for me http://www.aircrack-ng.org/doku.php?id=r8187 ?
Also, what steps did you take with http://forum.xda-developers.com/showthread.php?t=2585828 to get the proper modules?
*EDIT Nevermind : http://forum.xda-developers.com/showthread.php?t=2727771
Daniel-TAz00 said:
Thanks man, ordered one after I saw this.
Now, can you compile this for me http://www.aircrack-ng.org/doku.php?id=r8187 ?
Also, what steps did you take with http://forum.xda-developers.com/showthread.php?t=2585828 to get the proper modules?
*EDIT Nevermind : http://forum.xda-developers.com/showthread.php?t=2727771
Click to expand...
Click to collapse
Good work with you kernel, I use a tplink for audit wlans
Galaxy Tab Pro 10.1 WiFi (SM-T520) ?
zorrigas said:
I made this because i have bought this ethernet micro usb adapter (DX Link) and Galaxy Tab don't have native support for this.
This is compiled with 3.4.34 Kernel and x86 (i386) (May not work on other kernels but if you need i can compile for you)
Click to expand...
Click to collapse
Please, is there a way to make this work with a Galaxy Tab Pro 10.1 WiFi (SM-T520) and my VK-RD9700 ?
Nota : I'm completely unable to make some modifications of your work or compiling by myself, I'm just able to root my tablet :angel:
zorrigas said:
I spent some time in make this possible, if you can give me a coffee, i really appreciate you.
Click to expand...
Click to collapse
Be sure I'll do that if it works for me :fingers-crossed:
LMQT said:
Please, is there a way to make this work with a Galaxy Tab Pro 10.1 WiFi (SM-T520) and my VK-RD9700 ?
Nota : I'm completely unable to make some modifications of your work or compiling by myself, I'm just able to root my tablet :angel:
Be sure I'll do that if it works for me :fingers-crossed:
Click to expand...
Click to collapse
apparently is the same driver, already tried if it worked?
if it does not work, I can compile it without problems
zorrigas said:
apparently is the same driver, already tried if it worked?
if it does not work, I can compile it without problems
Click to expand...
Click to collapse
Are you sure I can test ? It won't break my Tab Pro ? Cause it's not the same kernel I guess.
It does not work
Code:
[email protected]:/lib/modules $ insmod qf9700.ko
insmod: init_module 'qf9700.ko' failed (Function not implemented)
hey
LMQT said:
It does not work
Code:
[email protected]:/lib/modules $ insmod qf9700.ko
insmod: init_module 'qf9700.ko' failed (Function not implemented)
Click to expand...
Click to collapse
Pull your logs to find out specifically WHY it doesn't work.
m
moonbutt74 said:
Pull your logs to find out specifically WHY it doesn't work.
m
Click to expand...
Click to collapse
Thanks for your answer.
How can I do that please ?
oh yeah
LMQT said:
Thanks for your answer.
How can I do that please ?
Click to expand...
Click to collapse
sorry, in terminal
logcat -d > /sdcard/logcat.txt
cat /proc/last_kmsg > /sdcard/lastkmsg.txt
dmesg > /sdcard/dmesg.txt
then zip em and attach to post
Hi,
Here they are. ..
Files with ’2’ at end are new log 30 seconds after plugin of ethernet adapter, other are before pluging.
Thank you by advance.
LMQT said:
Hi,
Here they are. ..
Files with ’2’ at end are new log 30 seconds after plugin of ethernet adapter, other are before pluging.
Thank you by advance.
Click to expand...
Click to collapse
okay, i am going to suggest you re-read the thread. this module needs to be built into your kernel, more likely
built from the source along with the kernel. the OP clearly states to contact him for help with adding to/building into
your kernel. the OP also say this is for stock JB for gt-p5210. the OP also responds with a should be/maybe in reponse to your question as to whether this will work with YOUR device. taz posted links in his post that you should follow and read
to learn about the process of how things work. put this on hold [re-read thread of course] and start your learning
process on kernel building. as long as you're patient you will learn.
m
i make version for your tablet tomorrow,
I would appreciate you to send information from your tablet (screenshot) where there is the version of Kernel, compilation, etc..
I'll keep you informed!
zorrigas said:
i make version for your tablet tomorrow,
I would appreciate you to send information from your tablet (screenshot) where there is the version of Kernel, compilation, etc..
I'll keep you informed!
Click to expand...
Click to collapse
Thank you very much Zorrigas, I appreciate a lot :good:
As said, I have no knowledge of compiling anything, and unfortunately, no time at all to begin to learn how to do (especially considering the fact that English is not my natural language ...).
I'll post all those informations this evening (I haven't got my tablet at office today).
Thank you by advance
Numéro du modèle
SM-T520
Version Android
4.4.2
Version Kernel
3.4.39-1977750
[email protected] #1
Tue Jun 24 17:26:37 KST 2014
Numéro de version
KOT49H.T520XXUANF4
État de SE for Android
Enforcing SEPF_SM-T520_4.4.2_0017

[Q] help in install app

hi
how can i install one app in phone Individually
for example i want to instal line app For double in one phone and login with 2 acc
is this possible?how can i do this???
Try switchme !
https://play.google.com/store/apps/details?id=fahrbot.apps.switchme
Stay tuned for my first CM11 theme soon.
excuse me
what do this app exactly
smorad said:
excuse me
what do this app exactly
Click to expand...
Click to collapse
This app let's you create multiple users on your device with his own storage and of course his own app data.
This way can you boot up in different users and use LINE on other accounts with different logins.
Btw, ROOT required for this.
tnx,but this is not work on my rom,any other way please...
up
please help...
smorad said:
up
please help...
Click to expand...
Click to collapse
I don't know any other ways at the moment
nobody know any other way plz????

Categories

Resources