VPN (via tap) - Galaxy Note II Q&A, Help & Troubleshooting

Hey,
Does anyone know if there is a working TAP implementation for connecting to a VPN server on android. I know the API doesn't support it, but I thought there might be a work around. Root is acceptable.
Doing a search for "TAP" and "android" together is futile, since tap is also a verb described how you interact with your device. It's very frustrating.
Thanks,
-PW

Perhaps try searching for "tun", as they're often listed together?
With the numerous types of vpn endpoints, you may find better answers from people if you clarify what you're attempting to access (cisco, openswan, etc)
-----
I would love to help you, but help yourself first: ask a better question
http://www.catb.org/~esr/faqs/smart-questions.html

spycedtx said:
Perhaps try searching for "tun", as they're often listed together?
With the numerous types of vpn endpoints, you may find better answers from people if you clarify what you're attempting to access (cisco, openswan, etc)
-----
I would love to help you, but help yourself first: ask a better question
http://www.catb.org/~esr/faqs/smart-questions.html
Click to expand...
Click to collapse
I'm trying to access a openVPN server that is set up on a remote host. These are not public services. The "endpoint" is usually on the same hardware as the gateway of a particular LAN, but can occasionally be a node behind a NAT firewall. These are set up by my employer.
The reason we use tap instead of tun is because we need to monitor broadcast traffic on the remote LAN. Tun clients are supported on the android API, but Tap is not supported officially. I was asking to see if anyone found an unofficial way to do this. So far, I've only come across one solution that was apparently broken with newer versions of android.

What solution was it you found that's now broken? Did they remove tap from the newer kernels? Could be an easy enough fix for one of the custom kernels to patch back in.
I haven't used openvpn since 2.something, and I recall it working well, once you got the proper iptables and such patched in. So, I'm asking and following from curiosity.
-----
I would love to help you, but help yourself first: ask a better question
http://www.catb.org/~esr/faqs/smart-questions.html

Related

Bug tracker website? Would that help? (I'm offering)

Ok. Short story of what I want to do and why.
I am a developer and I feel that I don't contribute enough to this fantastic site and its users. After the recent unpleasantness I went away and thought about what it is that I could do to try and fix this. My idea is a site or section of the wiki built specifically to track bugs and issues in new roms (I was specifically thinking WMXL but there is no reason this can't be used for all of them).
I am currently working on my own XML based site with PHP5 driving and if people think it will be useful I'd write and host this service before I continued with my own site (hopefully before WMXL 0.30 is released).
I want to try and restrict the way people enter and search the information relating to problems with new roms and try to cut out the background noise. I was thinking about having fields such as ROM version (drop down list), radio version (text box), boot loader (drop down list), main program affected (text box), extent of interference (drop down list), description of problem (text area), how to reproduce error (mandatory text area!).
This will hopefully encourage more people to think about what might be causing the problem rather than just posting what they cant do and expecting someone else to work everything out. Forcing a description of how to recreate the problem will hopefully find most users not needing to post after they work it out, and if the recreation steps dont work then the post will be closed. Hopefully people will think enough that I will be able to moderate this forum (type thing) myself and maybe someone in another timezone (closer to the UK) can take care of it while im asleep.
No one can stop n00bs posting silly questions but hopefully we can reduce the amount this annoys everyone else.
Sorry it took so long to describe my idea.
Maz
UPDATE: STARTED!
I got started as soon as I'd got a couple of replies but I still need you all.
For the chef's and other brilliant people:
1. What info do you need with each ticket to try solve them?
2. Do you want to be the only one to close tickets? Or should the submitter be able to?
3. What info do you want to store for the roms to filter to the smallest pool of specific tickets?
For the users:
1. How do you want to be able to search this?
I DON'T ASK FOR DONATIONS! ALL I ASK IS THAT PEOPLE SEARCH BEFORE SUBMITTING!
---------------
http://maz.net.au/
Bugzilla? yes please
This is a very good idea. In fact, I think that we need too a place to store the temporary fixes generated after each ROM publishing. It will be a good place for this too.
Good Idea.
It Would Help A Lot, Sounds Like Finding Answers Would Be Easier And Should Cut Down On The Hostile Atmosphere.
Cheers
Yes, very good idea.
This become easyest forum for everyone.
If it would be of any use, i can host this on one of our UK servers so we get very good speeds? I know 'iammaz' has said he can host it but he is in Australia so for the UK guys it might be a tad slow.
If not then no worries, but just trying to do my bit!
jaso2005 said:
If it would be of any use, i can host this on one of our UK servers so we get very good speeds? I know 'iammaz' has said he can host it but he is in Australia so for the UK guys it might be a tad slow.
If not then no worries, but just trying to do my bit!
Click to expand...
Click to collapse
Cheers and I'm sure everyone appreciates the offer. My site is hosted in the US. At the moment this is being built as a module to my current CMS. Whether or not this adds too much overhead I won't know until I try. The problem will be if I use too much cpu time im sure it's against the ToS with my hosting company and they will shut me down.
I hope that I will have it built as a stand alone object by then and anyone else can take this and run this on php5 hosting or in fact I could run it as web services from my personal server at home.
Progress goes well. Just working on possible searching and indexing algorithms to make searching fast and useful.
Maz
-------------------
I can't believe I forget to type this.
http://maz.net.au/
Great idea
It's 2am. I'm piking for the night. I'm expecting a phone call at 7am tomorrow so will be back into it then for 5 or 6 hours. Hopefully will be almost done by the end of that.
I need to work out how you want to have logins work. I don't think i can make it authenticate against this forum (i havent tried integrating with vBulletin before). Do I allow open registration? do I try make it force you to register the same name but PM'ing the password to that username here? do i manually add people as they ask and restrict the group?
let me know in the next 6 hours or so.
Maz
----------------------
Badly styled CMS can be seen here. (new version looks so much better )
http://maz.net.au/
Open registration, but obviously grant privileges to those of us who classify as developers.
Olipro said:
Open registration, but obviously grant privileges to those of us who classify as developers.
Click to expand...
Click to collapse
And super-user privileges for the chef's for bug tickets that apply to their cooked roms.
Maz
----------------
hard at work again at http://maz.net.au/

Help with making a script/CAB to configure WIFI in WM6

Like many other people here, I'm trying to automate (as far as possible) the process of setting up / reconfiguring my device every time I flash a new ROM or hard reset. I've been following the threads on WAP/MMS CABs and, especially, the email client setup method described in this thread:
http://forum.xda-developers.com/showthread.php?p=1153518
I want to do something along the lines of the email client setup (using xml to provision a connection and then turning it into a CAB file) to set up my WIFI connection, especially the chore of entering a WPA key each time.
I dug around a bit on the MSDN site and found these sections with sample code for service providers to provision WIFI in WM5.
http://msdn2.microsoft.com/en-us/library/ms890771.aspx
http://msdn2.microsoft.com/en-us/library/ms890780.aspx
I'm not a developer and don't know anything about the WM5 SDK so several things are not that clear to me, for example, what is the difference between OMA and OMA DM and which should I use to create a cab that runs off the storage card (does it matter, etc.)?
I'm quite prepared to spend some time experimenting with the sample code with the hope that, with some common sense and trial and error I can produce a single block of xml code that anyone on this forum can copy and edit in notepad to insert their own SSID , type of connection, type of security, network key, etc. and then just turn it into a CAB to run after each time they flash their device.
However, before I spend several hours trying to figure this out, I just wanted to throw this out to the Gurus in our community. I'd be grateful for your help if you:
a) Are knowledgeable in the OMA / OMA DM protocols and can answer a few basic questions I have in order to get me started in the right direction, or
b) Have actually done this already and have created a WIFI connection setup script that is easy to edit and tailor (no point in reinventing the wheel), or
c) Know of a an alternative (easier) way to do this altogether
Thanks in advance for any help,
Rob
NOTE TO MODS: I started a new thread here because I could not find this specific topic anywhere else, and I thought it might be most relevant to WM6, because this is where the highest frequency of flashing is going on right now. However, please feel free to move the post if you think it belongs in another section of the forum.
DONE IT. Moved to another section of the forum.
I figured it out. You can now make a CAB with your WIFI settings.
I posted the method here, since there was already a thread by MrVanx dedicated to creating CABs for all kind of settings.
http://forum.xda-developers.com/showthread.php?p=1227587
Enjoy.

Is it possible to get touchpad events without a native activity?

Is it possible to get events from the Xperia Plays touchpad without a using a native activity?
I don't mind if I have to use native code, just so long as I don't have to get my events from a native activity.
EDIT:
All events are retrieved from a call of ALooper_pollAll.
To make this call you must first call ALooper_prepare which returns an ALooper* looper. Nothing so far requires a native activity. This leads me to believe it maybe possible.
However, I would like to know if anyone knows for sure if this is possible, or has possibly done this before.
EDIT:
I have been trying to make this work, I have it compiling and running but ALooper_pollALL always returns -3, which means the timeout expired. I should at least be able to get touchscreen input from this, which i havn't been able to so far, if anyone can offer any advice that'd be great!
EDIT:
for ALooper to work you have to attach an input queue it, which normally comes from the native activity. Unless there is some way to get it outside of a native activity (looking at the native activity code would probably tell us) or to pass one from java somehow, then this is impossible.
....uhhh....what?
Sent from my R800x using Tapatalk
Mighty Lizard said:
Is it possible to get events from the Xperia Plays touchpad without a using a native activity?
I don't mind if I have to use native code, just so long as I don't have to get my events from a native activity.
Click to expand...
Click to collapse
Wrong section. Questions go in Q&A
I think it's ok for a development question to be here.
AFAIK, the touchpad generate non-standard input events. That's why you need to use a native library. However, I don't know if you HAVE to use a native activity. (I'm talking with zero experience btw) I think you can make a JNI call in a loop, maybe in a separate thread in your program that queries JNI for input data. Again, not 100% sure here, I might look into it when I have time.
AndroHero said:
Wrong section. Questions go in Q&A
Click to expand...
Click to collapse
This is EXACTLY the kind of question that belongs in development. Stop trying to be a rule monger.
Sent from my R800x using XDA App
Mighty Lizard said:
Is it possible to get events from the Xperia Plays touchpad without a using a native activity?
I don't mind if I have to use native code, just so long as I don't have to get my events from a native activity.
EDIT:
All events are retrieved from a call of ALooper_pollAll.
To make this call you must first call ALooper_prepare which returns an ALooper* looper. Nothing so far requires a native activity. This leads me to believe it maybe possible.
However, I would like to know if anyone knows for sure if this is possible, or has possibly done this before.
EDIT:
I have been trying to make this work, I have it compiling and running but ALooper_pollALL always returns -3, which means the timeout expired. I should at least be able to get touchscreen input from this, which i havn't been able to so far, if anyone can offer any advice that'd be great!
EDIT:
for ALooper to work you have to attach an input queue it, which normally comes from the native activity. Unless there is some way to get it outside of a native activity (looking at the native activity code would probably tell us) or to pass one from java somehow, then this is impossible.
Click to expand...
Click to collapse
I remember native and some hybrid method tutorials were available on sony Ericsson website but i'm not at the pc now. Check out test the touchpad post if you can search my posts somehow - it was posted there and on one of the post regarding keyboard replacement. I hope it what you are after - sorry if I misunderstood you or their tutorials.
Sent from my R800i

Exchange Server Mail Issue

Hey guys, so when I setup my exchange mail for work it tells me toward the end that I need to do certain things security wise on my device: i.e. disable camera, use a lockscreen password, format my device, ect. I know it a certificate/provision issue but is there a hack/mod that allows me to get around this? I really need my push email from work but I will not do what it wants me to do. This is my personal device and the security provisions are ridiculous. ALso, it didn't ask me to do any of this on my iPhone. Thanks!
I'm pretty sure it's asking you for remote administration privileges to your phone. This is a requirement. IT departments are required to remote wipe your device if it is still registered on their server if you quit/get fired. I'm pretty sure the iPhone accepts it by default.
There are mods to remove it. Go to the Themes/Apps sections. Thanks.
I apologize, it was in Android Development. Here is the link. http://forum.xda-developers.com/showthread.php?t=1968825&highlight=exchange
You're awesome dude, thanks! I I thought it was telling me I had to wipe the device. I need to find out if the link you gave me works with CyanogenMOD 10.0.0

Trying to sideload an apk from NSZ-GS7. Can my rooted device be helpful to us?

In summary I am not a developer just an android enthusiast with a very good understanding of the rooting/modding side of the community on multiple devices. I am trying to side load some apk's from my rooted Sony nsz-gs7 to the firetv in hope to get the IP Bluetooth remote (NSG-MR5U) to work with it but that's aside the point as there is already a thread on that.
When trying to install any of the apk's from that device I get "INSTALL_FAILED_MISSING_SHARED_LIBRARY" and I was hopeful that someone with a bit more knowledge here could help me deduce how I can determine what shared libraries its missing. Maybe someone can shed some light on something I can look into to try and move forward. I might just be trying to make the impossible happen.
The other part of this post is I am curious seeing as I do have root access to the NSZ-GS7 and its IMO one of the few decent google tv devices out there with root is there anything on there that could be beneficial for future fireTV developers, such as information related to the search subsystem, default launcher, etc. It would be neat to see if maybe some of the NSZ-GS7's functionality could be ported over easily. Maybe not but I wanted to extend the offer since I may be one of the few that have it. Thanks for everything you guys are doing, things are shaping up nicely on our fireTV's!
mattgyver83 said:
In summary I am not a developer just an android enthusiast with a very good understanding of the rooting/modding side of the community on multiple devices. I am trying to side load some apk's from my rooted Sony nsz-gs7 to the firetv in hope to get the IP Bluetooth remote (NSG-MR5U) to work with it but that's aside the point as there is already a thread on that.
When trying to install any of the apk's from that device I get "INSTALL_FAILED_MISSING_SHARED_LIBRARY" and I was hopeful that someone with a bit more knowledge here could help me deduce how I can determine what shared libraries its missing. Maybe someone can shed some light on something I can look into to try and move forward. I might just be trying to make the impossible happen.
The other part of this post is I am curious seeing as I do have root access to the NSZ-GS7 and its IMO one of the few decent google tv devices out there with root is there anything on there that could be beneficial for future fireTV developers, such as information related to the search subsystem, default launcher, etc. It would be neat to see if maybe some of the NSZ-GS7's functionality could be ported over easily. Maybe not but I wanted to extend the offer since I may be one of the few that have it. Thanks for everything you guys are doing, things are shaping up nicely on our fireTV's!
Click to expand...
Click to collapse
I think it generically means you are missing part of the Google api or an associated apk. Have you added anything yet like google services framework?
Also, do NSZ-GS7 even run at least jellybean? if not that's one of your main issues. Most GTV apps prior to jellybean are totally different than normal android.
I finally figured out the deal with the missing libraries and now just have to troubleshoot a new issue with "INSTALL_FAILED_DEXOPT" which I'll chase down. Looks like the nsz-gs7 runs honeycomb 3.2 so not sure what that will mean in the long run but I'll keep fooling around with it while I still care. Thanks for the info so far.

Categories

Resources