File location of dnsmasq.leases when using stock WiFi tethering - Xperia Z1 Q&A, Help & Troubleshooting

Hi all,
does anybody knows the location where dnsmasq.leases resides under /data/data folder for stock WiFi tethering ?
The reason for this question is that I wanted to use this -> http://forum.xda-developers.com/android/software-hacking/adblock-haveged-dnsmasq-mod-t3019468 and one of the requirements for tether monitoring is that a pointer needs to be configured to the dnsmasq.leases file which is supposed to be generated everytime the hotspot is turned on.
I found a file under /data/misc/dhcp/ but it seem to be a static file.
I have also tried apps from the Play Store and so far is able to generate the dnsmasq.leases within that particular app directory but as much as possible I would like to use the native hotspot since it's already inbuilt.

Related

Setting up LG Urbane with iOS

As we all know the setup process on iOS severely neuters the watch in terms of available apps and wifi being enabled.
I have enabled root and it looks like all the required files are present (wpa_supplicant etc) however icant seem to see how to enable the wifi.
Anyone have any ideas where to look, imagine its an init script somewhere.
N
Attached is the Android Wear Google maps apk
Ive done a TWRP backup of an Android setup and an iOS setup, so far the system directories are identical.
Managed to get wifi working, you need to populate the config file
\data\misc\wifi\wpa_supplicant.conf
then enable wifi
svc wifi enable
Still no data in the interface tho!
ninocass said:
Managed to get wifi working, you need to populate the config file
\data\misc\wifi\wpa_supplicant.conf
then enable wifi
svc wifi enable
Still no data in the interface tho!
Click to expand...
Click to collapse
Dear,
have you pulled the wpa_supplicant.conf, then edit and then push it again? where is the exact lcoation?

626s vm hot spot

Hey everyone I'm rooted and everything so I've been trying to find a way to get around paying $30 for a hot spot that should come with the phone. anyways I found a way to disable the "you are not subscribed to hot spot" thing but when I connect anything to the hot spot I keep getting errors saying the DNS couldn't resolve server names. I tried for hours with different DNS servers so I'm guessing it's something vm has done. If anyone could help me with this I would greatly appreciate it I used it a lot before I got this phone and now I'm kinda stuck :/
I know from experience that you can usb tether with pdanet and it'll hide your tethering with metro. It will not however hide hotspot HOW EVER you can use its experimental feature internet sharing which is essence creates a hotspot however I've only ever been able to connect to a phone that was with metro AND the phone that was hotspotting was not with metro. Trying to do so with my metro phone give me dns errors as well.
I haven't tried to use USB tethering yet only because some of my things can't be tethered via USB. I just don't see why I'd be getting DNS errors now and never did before. Oh wel. Surely someone here will have a solution for me soon.
schuylar156 said:
I haven't tried to use USB tethering yet only because some of my things can't be tethered via USB. I just don't see why I'd be getting DNS errors now and never did before. Oh wel. Surely someone here will have a solution for me soon.
Click to expand...
Click to collapse
I don't know if you are rooted, but I'm using Wifi Tether Router (just google an apk file) instead of trying for the native hotspot function.
javierrr13 said:
I don't know if you are rooted, but I'm using Wifi Tether Router (just google an apk file) instead of trying for the native hotspot function.
Click to expand...
Click to collapse
Are you sure? I tried this app before and it wouldn't broadcast the network. And yes I am rooted. I found a way to partially get the native hotspot working but it's a pain in the butt. If I could figure out how to edit the apn settings I'd have it going in 5 seconds but they're locked and htc phones don't have a "hidden menu" like lg phones.
Weird... Well, If you can't get that working, I'll let you know my current configurations for that app.
keep up the good work guys.
I'm looking for a solution for the hotspot on my 626 from Verizon.
native mobile hotspot and tether on cricket
I was able to use the phone as a wifi hotspot by doing the following:
1) install the following apps: MK explorer, Axel (xml editor)
2) phone must be rooted
3) using MK explorer navigate to the following folder (root directory): /system/customize/ACC
4) make a copy of the default.xml file and rename it in case it gets corrupted
5) run Axel and open the default.xml file for editing
6) scroll down about 80% from the top of the file to find the entry (find didn't work for me):
<app
name="Tethering_provision">
^ <item
type="integer"
name="TetheringGuard_Rule">
. 3 (note:dot is in middle)
7) edit the entry to change the 3 to 0
8) use "save as" and save modified file
9) rename the edited file to default.xml
10) reboot
11) go to settings->more->mobile hotspot and tethering, click on Mobile Hotspot, click on OK, change the hotspot name and password to what you want
12) after this step the phone just sat there so I rebooted
13) hotspot now works
I have no idea if this is hidden from the carrier

Hooking loadlibrary

I have a hook that redirects the loading of a library to the sdcard or any other location and it works fine mostly fine (like if the app has sdcard read or I have to put in hooked applications data folder). But what I would like to do is redirect this to a library that is packaged within my xposed app apk install location. There seems to be a couple problems with this though.
1) Since I'm within a hook, how do I get the location of my library(since this may change with different phone builds)
2) Android doesn't allow application to access resources from other application for obvious reasons. If I'm within the hook what would be a elegant way of access this. I have permission injection but I feel like this is convoluted(mostly because it requires a reboot).
And ideas would be greatly appreciated, ty!

is there any way to totally disable the network (tablet)

Ok i don't know if this the right forum but i looking to give out to a few workers phones or tablets that have no internet access at all (i only want them to use if for calls and SMS - i not going to explain why i want it that way). i'm looking for an easy way to disable the network altogether.
i've got a GT-S6310 SAMSUNG or fire tablet. i tried an idea that i got into the platform.xml file (with the RomToolBox app) that is located in the etc/permission folder and erased the internet line>save and then restart and it worked. but there many problems like apps that crashed without even opening theme like google services.
i'm looking to just erase or change one file in the system to get to my goal. i'm sure that there are very specific files that are critical for the internet to work and if they are disabled or changed the internet access would go down. please help
satter123456 said:
Ok i don't know if this the right forum but i looking to give out to a few workers phones or tablets that have no internet access at all (i only want them to use if for calls and SMS - i not going to explain why i want it that way). i'm looking for an easy way to disable the network altogether.
i've got a GT-S6310 SAMSUNG or fire tablet. i tried an idea that i got into the platform.xml file (with the RomToolBox app) that is located in the etc/permission folder and erased the internet line>save and then restart and it worked. but there many problems like apps that crashed without even opening theme like google services.
i'm looking to just erase or change one file in the system to get to my goal. i'm sure that there are very specific files that are critical for the internet to work and if they are disabled or changed the internet access would go down. please help
Click to expand...
Click to collapse
This device (5th gen Fire) has no mobile radio so is off the table for your requirements. If you plan to leverage WiFi calling/SMS then that uses data, aka "the internet". Crafty individuals will easily circumvent any blocks applied at the ROM level unless device is rooted and you use secondary accounts. A bit harder to work around but still fairly easy to penetrate.
Davey126 said:
This device (5th gen Fire) has no mobile radio so is off the table for your requirements. If you plan to leverage WiFi calling/SMS then that uses data, aka "the internet". Crafty individuals will easily circumvent any blocks applied at the ROM level unless device is rooted and you use secondary accounts. A bit harder to work around but still fairly easy to penetrate.
Click to expand...
Click to collapse
Rooted decive! So what can i do? What system file can i erase to stop any internet connection? Or maybe something that has to do with the buildprop file
satter123456 said:
Rooted decive! So what can i do? What system file can i erase to stop any internet connection? Or maybe something that has to do with the buildprop file
Click to expand...
Click to collapse
Look into selectively blocking internet access via third party firewall, hosts file or VPN. Likely need to create secondary/child accounts to limit access to the filtering tools. You'll need to do some searching/testing to find a solution that meets your requirements. Probably not the right device for what you are trying to accomplish.

Access dynamic data within the hook

What is the best method to pass some data to the hooked method in recent android versions?
I want to set some variables through ADB and I thought I could simply add a file with the variable contents.
As I understand, the method runs as the App I am hooking so this does not seem to be trivial.
File access is most likely limited.
I have seen people use shared preferences by setting MODE_WORLD_READABLE but this does not seem to work anymore in recent versions.
It could be possible to use a ContentProvider but I think here it is needed that the hooked app requests permissions in the AndroidManifest for this to work since Android 11.
Is there a method that is still usable?

Categories

Resources