I posted this in Tasker's Google Groups, but nobody had a solid solution for me. Since the XDA is full of intelligent people, figured I'd give this a shot.
I want to use Tasker to automatically enable my WiFi Tether app automatically under certain circumstances (namely, to sync my tablet's RSS while I get ready for work in the morning).
I followed these directions to set it up, but quickly discovered that the command was wrong. After a little searching and then taking this picture, I arrived at the command being !/data/data/com.googlecode.android.wifi.tether/bin/tether start. However, that doesn't work. When I test it, it grants superuser permissions, but never starts tethering.
It was recommended to me that I try the misc/script function, but I don't understand how that works. Alternately, they recommended I try the built-in wifi tether functionality, but as I'm on a completely stock ROM, I don't believe I can do that (unless someone figure out what to change to unlock it). I used to do that on my old EVO 4G with MikG, though, so I know that would work if I had a ROM with the feature unlocked.
So, any advice on how to resolve this problem is welcome. At current, I turn it on manually, but Tasker is great at making life easier and this would be a huge convenience if I could get it to work.
And before someone recommends a custom ROM, I'm on the fence with doing that. There are features I'd love to have, but the ROMs that have all of those features also have features I don't want (like remapping the multi-tasking button, for example). Perhaps someday I'll have the time to sit down and figure out how to build my own ROM.
No ideas? The XDA has never let me down, before...
I read a mod yesterday that enables the built-in tethering.. it was like 1 change.. it worked for me.
btw i have tasker but maybe people didn't want to buy it and therefore can't help, just a thought?
edit:
open your build.prop and add anywhere in it the following line:
code:
ro.tether.denied=false
then reboot and u should be good to tether.
Well it's not necessarily familiarity with Tasker that I figured would help (of course, with the Misc/Script explanation, it would be), but rather the program language stuff. Perhaps the command I was using was wrong, and someone with ADB experience could correct it. With that said, I have seen a lot of people on here comment about how they use Tasker, so I didn't think it was a stretch that someone familiar with it could help with the Misc/Script part.
I will give your recommendation a shot, though. Thanks!
So I added the line to the build.prop, and it worked exactly once. Second time I started it, I got a data call failure as it dropped 3G. Continued getting the failure warning until turning off tethering. Repeating process yielded same results.
Sent from my EVO LTE using Tapatalk 2
Tasker for Wifi Tether
Not sure if your even paying attention to this post anymore but I had a few tidbits of info that might help.
I have had the same problem but I am using tasker in addition to NFC task launcher. I wanted to be able to turn WiFi tether on after swiping an NFC tag.
I tried the same string that you mentioned in post 1(!/data/data......) to no avail. The way that I got it to work was I set a task in NFC task launcher to open the WiFi tether app then a task that ran the string. Although the app opened and it APPEARED that it did nothing after that but it actually was working in the back ground. I haven't tested the same scenario using just tasker but it should work. So you should just need a task to open WiFi tether and one that runs the string. The string should be controlled with the Locale plugin. At least I think that is what its called. Hope this helps.
Related
Hey guys first time poster long time reader. Before I begin I just wanted to thank you all for the help and support with the ins and outs of the android OS.
Now that that is out of the way, I had a question in regards to Veoh.com and some issues I am having with it. I have Kaos Froyo v39, and I use Dolphin browser mini. When I change my useragent to iPhone and I go on Veoh it works okay for a little bit, and then it either stops loading videos or gives me an error message saying 'this video cannot be played' is there a fix for this? Am I doing something wrong?
Sent from my FroyoEris using XDA App
the kid escobar said:
Hey guys first time poster long time reader. Before I begin I just wanted to thank you all for the help and support with the ins and outs of the android OS.
Now that that is out of the way, I had a question in regards to Veoh.com and some issues I am having with it. I have Kaos Froyo v39, and I use Dolphin browser mini. When I change my useragent to iPhone and I go on Veoh it works okay for a little bit, and then it either stops loading videos or gives me an error message saying 'this video cannot be played' is there a fix for this? Am I doing something wrong?
Sent from my FroyoEris using XDA App
Click to expand...
Click to collapse
Hi! Welcome. Is this over 3G or Wifi, or have you tried both?
Either way, this is safe to try: Download "APN OnOff" from the market. Launch it and choose "Show APN list" in the middle of the screen. Press Menu and choose "Reset to default". You may or may not need to perform a reboot to see if this helps. Try it without first.
This used to help me with restoring tethering when it stopped working.
A longer method to possibly achieve the same thing, but may be worth a try if the first method doesn't work:
Perform a nandroid and flash a stock-like ROM such as xtrSENSE (what I would recommend). You only have to use it long enough to download "APN Backup & Restore" off the market. Run it and choose "Backup APNs", you can name it whatever makes sense to you such as "xtrSENSE stock APN.xml", otherwise it just uses the current date and time.
Nandroid back to KaosFroyo and install "APN Backup & Restore" again. This time choose "Restore APNs" and restore the one you backed up from xtrSENSE. Again try it without a reboot first but if it doesn't work try a reboot.
You can do this as often as you like to see if this helps with any data trouble. I'm not positive if it helps with WIFI at all; I know it helps with 3G Data.
Please let us know if any of this helps or not.
Thank you so much, its working now. Only issue now is that the bar in the program is stuck in the off position, and when I click on it to turn it back on it just goes into the settings. My connections are still fine as you can see, should I be worried?
On an unrelated note, which tethering Rom did you use? I would love to tether my phone, but the threads I have read make it seem like a daunting process to me.
Sent from my FroyoEris using XDA App
the kid escobar said:
Thank you so much, its working now. Only issue now is that the bar in the program is stuck in the off position, and when I click on it to turn it back on it just goes into the settings. My connections are still fine as you can see, should I be worried?
On an unrelated note, which tethering Rom did you use? I would love to tether my phone, but the threads I have read make it seem like a daunting process to me.
Sent from my FroyoEris using XDA App
Click to expand...
Click to collapse
Bar in which program? APN OnOff? As long as everything's working I wouldn't worry about it since I don't use that button; I think I've noticed that before. A reboot would probably restore it, in my experience.
I've tethered under every ROM but any GingerBread one, now. Started with xtrsense, found that it was marginally more reliable under Froyo so GB would probably be good too. What was better about 2.2+ tethering was how fast the tethering connection would be made, before it took a minute or two for the computer to recognize it; now down to less than 30 seconds.
I don't recommend the old wired or wireless tether for root under 2.2+, but I haven't tried them in a while. 2.2+ and CM6+ have their own native tethering. CM6.1's notification power widgets have a WIFI tether one which connects the fastest. Free Tethering Widget off the market will also give you a widget for that and/or USB tethering, which is built into 2.2+ itself but for some reason CM doesn't include a notification power widget for.
Wireless tethering eats your battery like crazy plus made the phone extra hot, but you have to understand that it was my only home internet until a month ago since last August. I kept the battery cover off and had a fan on it, but you don't have to do that for just occasional tethering. I also had it plugged in to charge constantly; I just liked how fast wireless connected.
Wired tethering also uses battery faster and makes it warmer, just not nearly as fast or warm as wireless.
Occasionally 3G would stop and I'd have to turn off tethering and do the steps in my other post to get it going again. Most of the time a reboot after doing APN OnOff made tethering last longer.
If you know how to install drivers with Device Manager (assuming you're on Windows), or you don't mind learning I would get the latest drivers from http://htc.developers.comhttp://developer.htc.com/ if I remember correctly.
I'm on my phone at the moment, I'll check later. The driver package is all the way at the bottom of the list, the last one.
Otherwise just install HTCSync for the Eris and that'll install older drivers.
Sent from my Gingerbread Eris using XDA App
Edit: corrected link to http://developer.htc.com/
Okay so let me get this straight... I have tethering on my Froyo 2.2 already and I just need to grab a widget in order to activate it? What is the driver for? I was under the assumption that my phone would become a "hotspot" so I could set it up to an Xbox PS3 etc. Do I need to download the driver in order to tether to the computer? If so, how would I be able to use a wired tether to something like a PS3? I am a pretty quick learner on the whole concept of rooting and flashing Roms, but I am a newb so I appreciate your time and patience.
Okay so let me get this straight... I have tethering on my Froyo 2.2 already and I just need to grab a widget in order to activate it? What is the driver for? I was under the assumption that my phone would become a "hotspot" so I could set it up to an Xbox PS3 etc. Do I need to download the driver in order to tether to the computer? If so, how would I be able to use a wired tether to something like a PS3? I am a pretty quick learner on the whole concept of rooting and flashing Roms, but I am a newb so I appreciate your time and patience.
the kid escobar said:
Okay so let me get this straight... I have tethering on my Froyo 2.2 already and I just need to grab a widget in order to activate it? What is the driver for? I was under the assumption that my phone would become a "hotspot" so I could set it up to an Xbox PS3 etc. Do I need to download the driver in order to tether to the computer? If so, how would I be able to use a wired tether to something like a PS3? I am a pretty quick learner on the whole concept of rooting and flashing Roms, but I am a newb so I appreciate your time and patience.
Click to expand...
Click to collapse
If you're running a recent enough version of a ROM based on CM6.x (6.1 or 6.2?), then if you enable the tethering widget in the notification menu power buttons (the buttons at the top), then you'd don't need anything else to WIFI tether.
You can do USB tethering by going into the stock settings, but it's such a PITA to do it there it's easier to do it by using that widget I mentioned, which also handles Froyo's WIFI tethering as well. So if you're never going to do USB tethering, you don't need any other drivers (called RDNIS drivers) and you don't need that widget off the market.
If you do ever plan on wire tether, then you will need to install some RDNIS drivers (the link I gave you) unless you've already installed HTCSync, since that includes both the regular and the RDNIS drivers. I have no idea if you can wire tether to a PS3 since in Windows you need to install a driver, but you can try it and let us know, or search for other people who wanted to do the same thing. You should be able to WIFI tether, however.
No problem, I'm glad you pick things up quickly, makes it that much easier. And you're welcome!
So help me - what bar in the program were you talking about?
On APN on /off, when I reset the settings I saw a bar on the main screen highlighted on. I turned it off thinking I should rest it. I couldn't toggle it back on, bit data was still working and I did a reboot just in case. It was nothing major thankfully.
Sent from my FroyoEris using XDA App
the kid escobar said:
On APN on /off, when I reset the settings I saw a bar on the main screen highlighted on. I turned it off thinking I should rest it. I couldn't toggle it back on, bit data was still working and I did a reboot just in case. It was nothing major thankfully.
Sent from my FroyoEris using XDA App
Click to expand...
Click to collapse
You were correct in your end assessment that it shouldn't be anything to worry about, that APN switch in the middle of the screen. I've had mixed results with it in my observations, so I don't even touch it although as you noticed it doesn't seem to hurt anything.
Thanks for verifying; that was the only thing I could imagine you might be talking about!
Is there anyway to make an App think I am on Wifi when I am really on 4G? The best broadband I can get at home is Satellite which is sucky slow and has daily download caps. However I work in a 4G area and have unlimited download plan. It drives me insane when an app (Plant vs. Zombies for example) requires me to be on Wifi to download. I am rooted, so was hoping someone would have some way to trick the app.
--solution 1--
decompile the app
mod the source
recompile
Basically just need to look for the constants it uses to set the size limit it requires wifi.
--solution 2--
reroute wlan to eth (wireless to your network connection) using iptables (if you are rooted and on a netfiltered enabled kernel [most are that are not stock kernels])
http://www.google.com/search?client...m+eth0+wlan0&sourceid=opera&ie=utf-8&oe=utf-8
Doing that most likely means some work unless you want to forward all of your wifi connections and then disable the rule after. Otherwise you would have to find what IPs it's download from and just forward only those. Shouldn't be overly hard to do if you know how to use iptables and things like netstat. Also involves using the linux terminal shell on the phone. It's a solution easier to do if you are in front of the phone than explaining online though.
--solution 3--
Plug your phone into your router (if it is usb enable and pass the connection through to your router and then use the wifi to get it). It's possible to do that, though you may need custom firmware on the router like ddwrt, tomatousb or openwrt. It may also not work since the phone might not like having wifi active at the same time it's sharing the internet connection with the router and then basically doing a full circle back to the phone via wifi.
--solution 4--
get a faster wifi connection
--solution 5--
Do something else while it downloads, because it'll take less time than the above solutions. I mean unless you're on dialup, you're saving like what? 5-10 minutes?
Probably not what you wanted to hear though, but those are the solutions. There doesn't exist any magical app that I know of that you can get from the market to do that.
Another solution,
Sit at McDonalds, hook up to free wifi. Enjoy a Big Mac and Fries while downloading.
Finish your download, finish your meal, be on your merry way.
If this can be done it would enable users to upload youtube videos via 3g without using a special kernel.
Get a fried to do wifi tethering for you.
The app you are talking about is Amazon Appstore and I was wondering the same thing and was about to make a topic about it, I believe all someone would have to do is change the value allowed in the app (Which seems easy I know they changed the limit recently), I will try to see if I can but it would be the first thing I've done on android.
It is easy, assuming this works. I decompiled it and one of the xml files (arrays.xml) has the values for uploading. Assuming they dont cross check those in the source, you can just add them there. If they do, then have to mod one of the settings files in the smali folder by messing with the byte code.
Code:
<!-- mod to something like this -->
<string-array name="connection_wifi_array">
<item>1 MB</item>
<item>5 MB</item>
<item>10 MB</item>
<item>20 MB</item>
<item>200 MB</item>
<item>500 MB</item>
<item>950 MB</item>
</string-array>
UPDATE: modding and recompiling this and reinstalling seems to throw some exception errors and force close the app. Logcat dump of the errors http://pastebin.com/5B6Eqv1c
Recompiling might have messed up something in the files, only thing I can think of why it force closes when trying to run it (after installing).
Wow this is an old thread but might as well not start a new one for the same question. Unused to use Matt's Privacy Blocker app and that worked well fornapoofing until the app stopped getting updates and won't run. So, let's use MC5 as an example. I decompiled just the source and went through each file changing every connectivity request with 0x1 which is the constant in that case for wifi. Recompiled without error and no go.
What else am I missing here? This would be much easier if Google didn't have that tool that developers can use to obfuscate their code with. Yeah a class named "1" makes lots of sense..lol. I need to figure this out so I can ditch the fake WiFixposed module. That and rootcloak are the only ones holding me back from ditching Xposed completely
Did you get mc5 to run like you wanted after recompile? my brothers phone is rooted but write protected so he can't have xposed please help
inameasone said:
Did you get mc5 to run like you wanted after recompile? my brothers phone is rooted but write protected so he can't have xposed please help
Click to expand...
Click to collapse
If you mean that his phone is s-on, you can still unlock...
Good morning, Nerds. (and I use that term with utmost love and respect - seriously).
MODS: please move this if posted in wrong area. Thank you!
I don’t post much and prefer to use search, etc. to solve issues – and I’ve learned quite a bit thanks you to all. I’ve been working on a problem for two days now and it has me stumped.
Problem: I cannot connect my wife’s new Nook Tablet to wireless tether. The NT is NOT rooted and has been updated to 1.4.1. I prefer NOT to root it as she likes it and honestly she doesn’t need all the stuff rooting allows. That being said, if I need to root it, I am very close to making that call.
Here are the details:
I have Droid X2: rooted, ADW Launcher EX, lots of stuff frozen, averaging 40 hours on a single charge and loving life. It’s fast and I can do just about anything on it. I have done no ROMs or Themes cause I can get the looks I want, the toys I want and it flies already, so this is an area I’ve not chosen to learn about.
I have Xoom WiFi: same as the X2 in just about every way. I’ve also installed the AdHoc fix so I can tether. I have tethered to the X2 about 3 times when I needed to (hospital stays) but I really only did that as a backup and to learn how. BUT- it works, it smokes, and it’s easy. I use one of the older Google apks to tether from the X2, 2.0.5 I think. (I say I think cause I’ve made changes recently trying to get the NT to work). It worked great and neither the phone nor the Xoom started the Verizon sign up pages.
The NT. I really like it but am ready to root so I can do what I want. But the problem is weird so I’m not sure I need to root it – or it that will even fix it. As I have no root, I have not installed the AdHoc patch on the NT.
After reading all the pages I could find, the summary of my trial and error is as follows:
My son’s Bionic (my tester) finds and connects to my X2 tether every time, any program, any condition, no issues.
The older google codes won’t even be found by the NT. The newer ones can be found – I suspect this is because the newer ones broadcast in infrastructure mode as well and do not need the AdHoc Fix.
The newer ones only seem to work when set device as GoogleNexusOne, and the set up as Netd (I found this in a thread). When I do this, the NT FINDS the network and actually connects. BUT, both the phone and the NT redirect to Verizon pages. And even when I undo and delete the code, I have to go through and clear all cache, reboot the phone, etc as Dolphin starts up and ONLY go to the Verizon page.
With the Xoom, it would not work at all until the patch was installed. With the NT, it DOES work, it just redirects on the newer codes. But it won’t even find the older ones. KEY POINT too – when I use the newer codes on the Xoom – it too redirects! I have to undo everything to get back the functionality of the AdHoc fix, and the old code and perfect tethering.
So, if nothing worked I’d be rooting already. The fact that it does work, but redirects, makes me think I have a setting wrong (especially since the same behavior happens on the Xoom).
NOTE: I did see the posts about hacking the radio, I don’t think I’m up for that as an alternative to rooting. There are also some patches that might work, but specifically call out as NOT being for X2.
So that’s it. Any thoughts? I consider solving this without NT rooting a bit of a quest at this point!
not sure I fully understand your issue, so sorry if some of this response is redundant.
I think you know this already: is the wifi tether an adhoc network? if so, the NT won't be able to connect. You'll have to root and update the WPA_supplicant file to allow it to connect to adhoc networks. I have the OG droid and had to follow that process.
Additionally: you may be able to download a different tethering program for your phone that allows you to select the type of network your phone will tether - but it depends on your phones hardware - the og can only run adhoc. Try this one: http://android-wifi-tether.googlecode.com
i am unfamiliar with your phone, but I am using my galaxy S captivate phone to tether flawlessly to the nook tablets. I am not sure if this worked or didnt work before root, because everything is better with root So just know that there are others having success with it and the problem may or may not be root, My phone is rooted and running apex rom, with a rooted nook tablet.
Thanks for the input guys. I've used the programs you reference and with the settings, I CAN connect with the NT. The issue is when I do, it redirects me to VZ page. I've tried all the settings under the devices mentioned - only Netd works, and then redirects.
you said your phone was rooted right? it's odd that it's re-directing you to the VZ page, I assume telling you to sign up for the 'hot spot' feature?
I wonder if you tried putting a ROM on there like Cyanogen or something if that would make a difference? It's pretty easy, you just need to get clockwork mod (download from market) - I think it's 2 or 3 dollars for the premium version which you may or may not need for cyanogen.
I cart my Transformer Prime back and forth between campus and home every day, and there's important enough information on my tablet that I use as complicated a swipe pattern as I could possibly make to keep it secure.
Except it's a royal pain in the butt when I'm at home. I tried both just dealing with it and changing the setting every time I got to either place but got annoyed with both solutions. Plus, with Tasker installed I always ask myself why do something when I can automate it?
I'm just wondering if what's asked in the thread title is possible, and if so, how? Thanks guys.
I thought tasker or a similar app could do something like that. Or find a widget or toggle button for THST feature you want.
I'm sure that tasker could do it, but on my own I haven't been able to figure out to have it change depending on which wifi network I connect to.
irishtexmex said:
I'm sure that tasker could do it, but on my own I haven't been able to figure out to have it change depending on which wifi network I connect to.
Click to expand...
Click to collapse
I'm sure that there are apps out there that let you set different user profiles. I would think that would include everything.
Bob
My issue is that I am constantly stepping outside, out of reach of my modem, and I'll have to turn my Wi-Fi off or my phone will stay connected to the the incredibly weak wifi signal.
So, I tried turning the dev option for "aggressive wifi to cellular handover" on thinking this would help and allow me to just leave wifi turned on while stepping outside and have it switch over to data without my assistance. And it worked, for the most part (it still held on to wifi signals *I* would deem too slow, but not often), BUT whenever I reboot the option in dev settings un-ticks so I have to go back in and turn the setting back on.
My question is, is there a way to prevent the aggressive wifi to handover from turning off on reboots, or is there another option I could try that may even be more aggressive?
Thank you in advance!
Have you tried the setting to automatically disconnect from a poor WiFi signal? It's under WiFi>settings>advanced WiFi>avoid unstable connections
Juggernaut79 said:
Have you tried the setting to automatically disconnect from a poor WiFi signal? It's under WiFi>settings>advanced WiFi>avoid unstable connections
Click to expand...
Click to collapse
That says it'll automatically disconnect from no connection, but I still have an internet connection off the wifi, it's just like slow as all get out
6NomoN6 said:
That says it'll automatically disconnect from no connection, but I still have an internet connection off the wifi, it's just like slow as all get out
Click to expand...
Click to collapse
For me it disconnects from a weak signal.
I'll be back!
6NomoN6 said:
My question is, is there a way to prevent the aggressive wifi to handover from turning off on reboots, or is there another option I could try that may even be more aggressive?
Click to expand...
Click to collapse
I have the same problem, discovered the same solution, and have run into the same issue with no persistence after reboot! I'm googling now for a solution because going into developer options every reboot is incredibly damaging to the smoothness of the user experience I've worked so hard to customize.
Whether I find a solution or not I'll post in this thread again to let you know. If the latter is the result I will personally either write a tasker script, init.d script, or if nesseceary an Xposed module depending on factors I've yet to research. Can you Beta test for me if it comes to that? Maybe it's as simple as editing build.prop, I don't know yet, but I wanted to make this post ASAP so that you know you aren't alone on this and someone capable is working on the issue. For a developer like myself tapping menus every boot is unacceptable! Hopefully there is already a fix out there in the wild and I won't have to do any work.
P.S. Don't forget to also enable cellular radio always active for fast network switching at the price of some battery life. It's a few options below aggressive handover in Developer Options and thank jolly the setting is sticky unlike it's counterpart. Also, sorry for the poor turnout on your thread. I figured there'd be 100 posts by now, but at least you got my attention.
Edit 1: "setprop persist.{i-dont-know-yet}" in terminal emulator may do the trick. Checking for variables for the setting we want now. Hopefully they exist!
Edit 2: :laugh: I FOUND EVERYTHING I NEED FOR A FIX!!! However, an Xposed module will be required. I need some sleep but I should have something by tomorrow night. In case any other developers are reading this, here is the information required to make things work the way Iwe want them to:
http://android.stackexchange.com/qu...-cellular-handover-option-in-developer-settin
https://android.googlesource.com/pl...ndroid/settings/DevelopmentSettings.java#1061
Edit 3: Now that I know how this setting actually works together with wifi_watchdog (see source code WifiWatchdogService.java) I think I may have changed my mind regarding how to go about solving the root problem at hand (network switching) which this setting really does a "hack" job of taking care of. The developer that made it decided on a arbitrary, static number to be used for decreasing the connected WiFi AP's RSSI value (thereby making handover more "aggressive") instead of exposing any kind of grainular control to the user. So yes I could easily make the developer options setting stick but a much better approach would be to hook the method android.net.wifi.WifiManager with an Xposed module and implement additional logic to the network switching. The great thing about this method is there is the possibility for adding additional checks besides just periodically pinging the current primary dns server and monitoring the delay and timeout of the result. I also know for a fact modding the framework persists after reboot which is afterall all we originally wanted to have. The second or alternative route would be to edit the secure settings database using SQLite. The pro of this method is it is guranteed to be compatible with nearly ANY rom, won't break anything after an update, and doesn't use resources like an Xposed module. The con is that you are limited to the variables built into android, can't implement any new logic, and the worst is that I'm not even sure the modified tables would even persist after a reboot (or network state change for that matter) which if true would defeat the original purpose of this expedition. I'll make a fourth edit to this post after I've thought about and considered how to best proceede to reaching the goal of having a solution to our problem. :victory:
FoxysWorkplace said:
I have the same problem, discovered the same solution, and have run into the same issue with no persistence after reboot! (...)
Click to expand...
Click to collapse
First of all, thank you so very much for looking into this!
I'm sorry for not responding sooner, but I had honestly lost hope of finding a solution to this issue mainly because I am not a developer myself and haven't the foggiest how to get started with it on Android
But when I opened my notifications and saw a response to this post (!) I got *extremely* excited, and as I read through your post, my excitement intensified to great happiness!
I can't express my gratitude, but I would be more than happy to help with anything that I can!
Any news on this?
Has anyone found a solution?
Had anyone found a solution that doesn't require root access?
Can we expect that fourth update any time soon? Any solution without xposed?
I'm following this thread in the event that someone finds a non-rooted solution. The Galaxy S7 really cannot be rooted without a serious performance hit (and yes I've gone through the two or three best/popular lag-fix solutions) but it works best in stock :-/