[Q] Coarse location for localizzation - Localization

Hey I request Network access authorization in my app so I can retrieve the coarse location of user and send it to ad network. I am wondering if ic can turn users away because my app doesn't actually need the location of the user except for the ad network for custom ads. Do you think turning this off will get me more users? Is there a way to directly find the location of the users using the language settings?

An alternative is to read the device locale setting using the locale class of java http://developer.android.com/reference/java/util/Locale.html
This class has methods that will give you the device language and country setting. Of course some users might have set their phone to their mother tongue and associated country while they live in a different country. Eg a Chinese living in USA having set his phone locale to Chinese
Depending on your goals this might be acceptable or not.
Regarding the permission to access the internet it might be necessary if you want to display ads from an ad network. But you seem to be aware of this since you say you want to display custom ads. I suppose that these custom ads will be included in you app apk file.

Related

VOiPover3G for Android????

There is an iPhone 3G app called VOiPover3G that tricks other iPhone apps into thinking that they are on Wi-Fi even though they are on 3G/EDGE/GPRS.
Is anything like this being looked at/developed for Android phones??
Please post questions about apps in the correct subforum. This will probably get locked...
This probably is the right subforum. Apps forum is for apps that have been compiled and released. This forum is for dev including apps dev.
Anyway, what would be the point in a program like that? What programs could benefit from it?
JaboJG said:
This probably is the right subforum. Apps forum is for apps that have been compiled and released. This forum is for dev including apps dev.
Anyway, what would be the point in a program like that? What programs could benefit from it?
Click to expand...
Click to collapse
It would allow programs like sipdroid (the market version) to think it was on wifi and when we finally get something like Fring for Android that would also be able to use the data package to make voip calls, even "real" skype calls.
It is in the wrong part of the forum, but I might as well answer it...
While the iPhone doesn't allow certain services over 3G (e.g. VoIP stuff), the current Android handsets + apps don't do such a thing.
e.g. Sipdroid works fine over edge/umts/wifi (as good as those networks can support VoIP).
It's really kind of a strange question to be honest. If there isn't a problem, don't ask questions about it
JaboJG said:
This probably is the right subforum. Apps forum is for apps that have been compiled and released. This forum is for dev including apps dev.
Anyway, what would be the point in a program like that? What programs could benefit from it?
Click to expand...
Click to collapse
Not to harp on the point made by Diceman4, but it really isn't the correct sub-forum. If you look at the Stickies in the Apps/Games sub-forum, you will see that one of them is regarding request/ideas for applications.
JaboJG said:
This forum is for dev including apps dev.
Click to expand...
Click to collapse
I don't see any development going on in the first post though. This seems more like a post for the "ideas for apps" thread in app subforum. Although if the op came back with a chunk of code that needed debugging, that would be a different story.
MOD EDIT
Moved to Applications & games forum
The main reason for asking was because of problems with Tmob in the UK blocking sipdroid (port 5060) and preventing it using 3G etc.
If we had an app like VOiPover3G it may very well allow us to bypass that problem, I don't know
robiom said:
The main reason for asking was because of problems with Tmob in the UK blocking sipdroid (port 5060) and preventing it using 3G etc.
If we had an app like VOiPover3G it may very well allow us to bypass that problem, I don't know
Click to expand...
Click to collapse
Why? a better bet would be to ask the sipdroid creator to include a user configurable port setting. The point of android is that the workarounds don't need to be workarounds on the phone, but rather workrounds for interfacing with the network.
robiom said:
The main reason for asking was because of problems with Tmob in the UK blocking sipdroid (port 5060) and preventing it using 3G etc.
If we had an app like VOiPover3G it may very well allow us to bypass that problem, I don't know
Click to expand...
Click to collapse
The technique described by the op routes traffic internally from the wifi interface to the cellular interface. That will have no effect on the protocol or port used. In other words, it will only be of use if the app is hardcoded to use wifi only and you want to work around that. If the cellular carrier is blocking the data, this method will not get around that.
As for sipdroid, you can manually configure the port used.
jashsu said:
The technique described by the op routes traffic internally from the wifi interface to the cellular interface. That will have no effect on the protocol or port used. In other words, it will only be of use if the app is hardcoded to use wifi only and you want to work around that. If the cellular carrier is blocking the data, this method will not get around that.
As for sipdroid, you can manually configure the port used.
Click to expand...
Click to collapse
If you use pbxes there are a handful of different ports that will work but I haven't been able to get any to work. Saying that, up till recently I was using Gizmo5 but pbxes have blocked it's use after they (Gizmo5) allegedly stole/used sipdroid code and renamed it as if it was there own.
If any one has had success with sipdroid on 3g etc on t-mob UK please post the sip provider and the settings used.
Have you guys tried using the FULL version of sipdroid.. the one on the market didnt allow for 3g calls but this one does http://code.google.com/p/sipdroid/
turboyo said:
Have you guys tried using the FULL version of sipdroid.. the one on the market didnt allow for 3g calls but this one does http://code.google.com/p/sipdroid/
Click to expand...
Click to collapse
Been there, done that, even got the T-shirt.
The problem is T-mob in the UK are a pain in the neck and are blocking the port 5060.
As someone has already mentioned in this thread, what is needed is a user configurable port so that T-mob UK can't block.
Let's hope sipdroid developers can do something along those lines.
I don't get it... have you tried all the alternative ports listed in pbxes website?
53, 69, 80, 135, 161, 443, 500, 1433, 1701, 1812, 3389, 4500, 5061, 5900, 16999, 26999 and
36999 (recommended)
Note:
Because of the DNS entries for pbxes.org your device may be selecting port 5060 automatically. If you want to use an alternative port enter 188.40.65.148 as SIP server.
Click to expand...
Click to collapse
Both of them work as UDP or TCP.
TCP is recommended as it will help with battery life.
If none of these ports work, then It has to be that T-mobile has a Layer 7 filter in place looking for the SIP signaling traffic, and there should be no workaround possible unless you can wrap your sip traffic in a VPN. Nothing can be done to stop that, unless they filter the whole L2TP,PPTP,IPSEC or OpenVPN protocols.
I have tried most if not all of the ports specified and still no joy BUT I'll give it another go. What SIP provider do you use?
If T-mob are killing all SIP traffic how is it possible to use sipdriod over VPN?? Surely that is a major undertaking?
If it was done though, it would be the most robust and bulletproof VOIP app and would never be stopped Brilliant
I have just tried every single one of the alternative ports and every time I had a registration failure (timeout) so I guess T-mob are filtering for SIP traffic.
That leaves only the VPN route OR change providers OR change phones.
robiom said:
I have just tried every single one of the alternative ports and every time I had a registration failure (timeout) so I guess T-mob are filtering for SIP traffic.
That leaves only the VPN route OR change providers OR change phones.
Click to expand...
Click to collapse
Changing phones WILL NOT work since it isn't the phone that is causing the problem, it is the provider.
VPN should be fine, but you'll need a VPN server somewhere to connect through, i.e., your home computer.
There is nothing a carrier can do to block SIP over VPN. Everything is tunneled over the VPN connection so they can't know what goes in there.
As soon as we have a reliable VPN service (Donut seems to have PPTP or L2TP, although I'd love to see OpenVPN there) , you'll ve able to set-up your own voip and vpn server and pipe all the voice through it.
There is a couple of VoIP providers who can do that for you. One that comes to mind is callwithus.
On the connection issue with t-mobile, I suggest you try this:
If you have a DMZ linux/cygwin (altough a windows box might make it) host or a shell anywhere you can test if your provider is locking those ports, the pbxes ip or maybe even the SIP traffic.
Listen in a port using netcat:
netcat -n -l -vvvv 5060
Click to expand...
Click to collapse
Launch the Terminal Emulator in your android phone and test if you can connect to your host:
nc <your_hostname> 5060
Click to expand...
Click to collapse
Type something... if you can see the text, they have a L7 filter in place.
If you can't see anything, they are blocking the port.
Now change the listening port to 36999 for instance.
Try to connect again. It should work.
Now in Sipdroid, add your hostname, give it any username, any password, use the 36999 port and select TCP connection and keep the netcat running on your listening host.
If you see a connection in your listening host and some signalling traffic, pbxes should work for you.
If you don't, then there's a really advance L7 filter between you and the internet and they can block anything they want to.
In this case, the only solution (and there's nothing they can do unless they also block it), is to use a VPN.
Thanks guys for all your suggestions. I'll try and go through all the procedures you've suggested stickman and I'll post the results

How to change 3G DNS Windows 8?

i got a lumia 520, i really need to change the 3G DNS to block my carrier from draining my credit visitin some domain...
i readed someting about ProvXML and these values
<parm name="DnsAddr" value="0.0.0.0" />
<parm name="AltDnsAddr" value="0.0.0.0" />
Click to expand...
Click to collapse
but where i can find and change it!?!
Unless Nokia has a special app for it, you can't change things like that. The DNS servers aren't user-configurable on WP8 in general, unless you connect to a WiFi network that doesn't use DHCP. Processing provxml requires capabilities that third-party apps aren't allowed to have.
feherneoh said:
Carrier checks for IPs, so changing the DNS is useless
Sent from my MyAudio using xda app-developers app
Click to expand...
Click to collapse
Probably, but all "pay to view" domains are not resolved with google DNS for example ... So without a connection to these domain (is impossibile to have a full list they are changing and adding new too often) i will solve my credit draining problem.
Already tested on an android device.
...so, help on how to on Windows Phone?
... out of curiosity, since when does any such thing as a "pay to view" domain even exist? I'm pretty sure that's illegal under ICANN rules and, in the US and many other countries, net neutrality (which is unfortunately under attack here...)
GoodDayToDie said:
... out of curiosity, since when does any such thing as a "pay to view" domain even exist? I'm pretty sure that's illegal under ICANN rules and, in the US and many other countries, net neutrality (which is unfortunately under attack here...)
Click to expand...
Click to collapse
is not exactly a paytoview domain, or better, it is but carrier is advising you about it (are some newspaper or ****ty ads website, and sometime a wrong click cause some cents go away from your credit).... i simply don't want to fall in this domains and the DNS trick is the only "easier" way i found
Yeaaaah that's definitely not supposed to exist. IP addresses (or even domain names) aren't like phone numbers, where different ones can charge different amounts, and for good reason: you don't know what the address is before you connect to it, usually (as opposed to, say, a 1-900 number in the US). If your carrier is charging you extra to connect to certain domains, that is your carrier being evil (and, while I still don't know where you live, unlawful in much of the world). There is literally no way that any domain can itself enforce that kind of behavior.
Have you tried just calling the carrier and asking them to block things that would charge you like that? *Most* US carriers (despicable scum though most of them are) will let you do things like block premium-rate SMS or calls.
GoodDayToDie said:
Yeaaaah that's definitely not supposed to exist. IP addresses (or even domain names) aren't like phone numbers, where different ones can charge different amounts, and for good reason: you don't know what the address is before you connect to it, usually (as opposed to, say, a 1-900 number in the US). If your carrier is charging you extra to connect to certain domains, that is your carrier being evil (and, while I still don't know where you live, unlawful in much of the world). There is literally no way that any domain can itself enforce that kind of behavior.
Have you tried just calling the carrier and asking them to block things that would charge you like that? *Most* US carriers (despicable scum though most of them are) will let you do things like block premium-rate SMS or calls.
Click to expand...
Click to collapse
I'm in italy, blocked all premium SMS and and all stupid things that i can block like this.. But the carrier is giving me no way to block these domains (lot of people have this issue with this carrier because is not easy to know where exactly you clicked and payed...no doubt that the carrier want to be evil)
Btw, having google DNS can also help me in a better response time opening new site, and phishing things for example...No problem if i need to "root" the device, but for me its a must have
I'll bear that in mind should I find myself in Italy, then. By the way, don't get me wrong: I support what you're trying to do, even though I'm shocked that it's needed.
Unfortunately, I don't know if it's possible on WP8 right now, at least not on Lumias. I could look up the required APIs and write an app to call them, but
A) It probably wouldn't have enough permission (ID_CAP_NETWRKING probably won't cut it; that would be a *huge* security threat if it could).
B) There isn't any way to "root" or jailbreak a WP8 Lumia phone right now, so you can't use any higher privileges for third-party apps.
It is vaguely possible there might be a Nokia app that gives this ability somewhere, but I don't know of one. I have a Samsung phone, though, not a Lumia.
GoodDayToDie said:
I'll bear that in mind should I find myself in Italy, then. By the way, don't get me wrong: I support what you're trying to do, even though I'm shocked that it's needed.
Unfortunately, I don't know if it's possible on WP8 right now, at least not on Lumias. I could look up the required APIs and write an app to call them, but
A) It probably wouldn't have enough permission (ID_CAP_NETWRKING probably won't cut it; that would be a *huge* security threat if it could).
B) There isn't any way to "root" or jailbreak a WP8 Lumia phone right now, so you can't use any higher privileges for third-party apps.
It is vaguely possible there might be a Nokia app that gives this ability somewhere, but I don't know of one. I have a Samsung phone, though, not a Lumia.
Click to expand...
Click to collapse
Thanks for your interesting
Hope we can find a way

TAB S2 LTE. How to make it to forget obsolete Networks

Hello dear fellows.
I've updated my S2 LTE today through OTA from version 5.0.2 to version 6.0.1.
While in 5.0.2, I contacted Samsung about a procedure to make the S2 to forget obsolete networks, since the usual method does not work, because networks not in range are not shown!
Except for another guy asking the same question (somewhere), I didn't found anything in the net about this issue, I don't know if people already realized the problem... (seems all people is quite busy getting root and/or the new firmware).
So, Samsung told me the feature is not available, that I should backup with Kies and do a factory reset! UNACCEPTABLE!!!
I wait for the 6.0.1 hopping that the problem was solved in this version, but NOOO, they MEAN it. IT IS NOT available!
So...
- Does anyone one of you manage to find a way to make the S2 to forget / delete old unused networks?
- Does anyone find acceptable the actual status quo of the problem?
- Is there someone with a reasonable explanation for this feature being removed from S2 firmware? (At least some explanation I can swallow)?
Thank you all.
I think it's just sloppy thinking from the developers. Of course one should be able to get a list of known/saved WiFi networks and delete from the list accordingly. I can do it on my Nexus 6P running N preview 3. Maybe this app can be used to achieve this: https://play.google.com/store/apps/details?id=com.mdroidapps.wifimanager
One should also be able to see the password for saved WiFi networks without having to be rooted. Yes, it's a security risk but Windows and Linux let you see the password in clear text.
Android still have a bit of maturing to do.
And while we're at it - what I really want is being able to change DNS servers while on mobile data. When limited to your carriers DNS servers you are unable to connect to DNS blocked sites like in example some torrent sites. I would like to set my DNS to my Raspberry Pi running pi-hole and get DNS adblock even though I'm on mobile data. But this is only possible using a VPN app.
Sendt fra min SM-T815 med Tapatalk
LosserKlosser said:
I think it's just sloppy thinking from the developers. Of course one should be able to get a list of known/saved WiFi networks and delete from the list accordingly. I can do it on my Nexus 6P running N preview 3. Maybe this app can be used to achieve this: https://play.google.com/store/apps/details?id=com.mdroidapps.wifimanager
One should also be able to see the password for saved WiFi networks without having to be rooted. Yes, it's a security risk but Windows and Linux let you see the password in clear text.
Android still have a bit of maturing to do.
And while we're at it - what I really want is being able to change DNS servers while on mobile data. When limited to your carriers DNS servers you are unable to connect to DNS blocked sites like in example some torrent sites. I would like to set my DNS to my Raspberry Pi running pi-hole and get DNS adblock even though I'm on mobile data. But this is only possible using a VPN app.
Sendt fra min SM-T815 med Tapatalk
Click to expand...
Click to collapse
Thank you for the reply.
I've tested the app "wifi manager". It did not work as expected!
- The app indeed show the list of all networks even the ones not in range / obsolete.
- The app indeed allow the 'forget' procedure.
I use then the 'forget' procedure in a old network. The app says "wait....", but after that, the old network is still showing in the list no matter how many times you apply the procedure, no matter if you close and reenter the app. That means, the app is useless for the purpose to delete old networks, at least in the Tab S2 device.
I don't know it this issue is just a developer's sloppy thinking, or if this is Samsung stink over all of us. I think it is the later...
Sorry I do not know any way to change connection DNS the way you need, or any other way for that matter.
Still looking.
LosserKlosser said:
And while we're at it - what I really want is being able to change DNS servers while on mobile data. When limited to your carriers DNS servers you are unable to connect to DNS blocked sites like in example some torrent sites. I would like to set my DNS to my Raspberry Pi running pi-hole and get DNS adblock even though I'm on mobile data. But this is only possible using a VPN app.
Sendt fra min SM-T815 med Tapatalk
Click to expand...
Click to collapse
Touch VPN will bypass those blocks.

List of Domains to block for adds and OTA

Just wondering if any one has already made a list? I have a BIND DNS server running at home and was hoping to add it to a blackhole.
It's hard to make a list because it's hard to keep up. They change a lot and there are tons of them. My advice: Download NetGuard from the play store. Buying the options to view the logs and to filter are well worth it. With those two purchases, you can choose to block IP strings or single IPs the apps try to connect to. Freebies include: Lockdown the wireless connection so NO app can connect regardless of it's set rules. A lock will appear next to every app installed on your device. Click each one to allow or block internet access when lockdown is active, and make sure to check the WiFi symbol to the right to make sure the corresponding color is correct. You can also choose to start or stop logging on a per app basis, you can delete the list of IPs the app has tried to connect to Doing so refreshes the list from scratch. So if you blocked a string of IPs, tapping the trash can would reset not just that string, but the entire list. You can enable IP resolving which determines the hostname/web address of the attempted connection. It will automatically block those names/domains/connections in the host names list. Host files need to be manually updated. I try to click it once a week or so.
It's a very in-depth app with a lot of information and options, and the ones I list above, are some of the best it offers. Another good one is NoRoot Data Firewall, less advanced, not nearly as many options. You have to resolve IPs yourself to manually block hostnames. Last but not least, NoRoot Firewall is very simple to use.

Hide GPS for betting

Hello, have some troubles with hiding on betting resources. My main goal to provide fake location for bet365. Main problem Firefox browser always asking ´´Allow bet365.es:443 to use your location?". Somehow I need to confirm this and provide fake gps.
I use Magisk+Hide my app list+Fake location and turn down all geoservices on my phone. Sure I try different option and proxy, but it give me a same thing - block my account.
If you have any ideas have to resolve please wrote on DM. I`m ready to cooperate.
Have you tried using a VPN to change your IP address instead of faking your GPS location? That might be a more effective solution. Additionally, some browsers have a built-in feature to prevent websites from accessing your location, so you might want to check your browser settings to see if that option is available. Good luck with resolving your issue! By the way, have you considered trying out some online casino sites? canlı casino siteleri can be a fun and exciting way to gamble from the comfort of your own home.
McLeanParsons said:
Have you tried using a VPN to change your IP address instead of faking your GPS location? That might be a more effective solution. Additionally, some browsers have a built-in feature to prevent websites from accessing your location, so you might want to check your browser settings to see if that option is available. Good luck with resolving your issue! By the way, have you considered trying out some online casino sites? canlı casino siteleri can be a fun and exciting way to gamble from the comfort of your own home.
Click to expand...
Click to collapse
First of all, I need to hide my current location complex and all available option for Magisk hiding are tried
Thanks for sharing this solution. I'll definitely give your method a try.
Thanks for sharing your experience and seeking help with hiding your GPS on betting resources. I'm relatively new to gambling and sports betting myself, but I understand the importance of privacy and finding workarounds.
While I can't provide a direct solution here, I recently discovered a sports betting site called Bet365 that seems reliable. They offer a wide range of options and could potentially provide a solution or guidance for your situation. You can check them out at https://betcanada365.ca/sportsbook-review/bet365
What I use is Fake GPS Joystick and set this as my a fake mock location in developer setting, then you can either use the Hide Mock Location xposed module, or a Smali editor to fake mock locations.
With the Fake GPS Joystick app, you can set your location anywhere on the map easily, set up automatic routes, waypoints etc.
This way the whole system thinks you are at the set location and no app knows its not the true location.
Superbetting is also a reliable sports betting website

Categories

Resources