Script / Autostart Hotspot upon boot - Optimus One, P500, V General

Hi guys,
I'm in need of a little bit of help: I've purchased a P500 to use at home as a dedicated 3g->wifi router since i have an unlimited data plan.
However, the ROMs are not quite to the point where it never crashes, and the hotspot needs manual activation upon boot.
Does anyone know what I have to type in order to script something to start it after a reboot? Or some kind of program that would do it for me?
many thanks!

dont you think its a waste? an lg p500 for a router!
i do not think that theres any such script? its rare we get similar needs to yours O: you'll just have to leave your phone in the charger for now...

xtracrispy said:
Hi guys,
I'm in need of a little bit of help: I've purchased a P500 to use at home as a dedicated 3g->wifi router since i have an unlimited data plan.
However, the ROMs are not quite to the point where it never crashes, and the hotspot needs manual activation upon boot.
Does anyone know what I have to type in order to script something to start it after a reboot? Or some kind of program that would do it for me?
many thanks!
Click to expand...
Click to collapse
Get a Rom/Kernel that doesnt Crash.
EG CM7.2 RC1 / roq-x kernel or ta-kernel 1.2

U can probably use Tasker and Bootlog Uptime. Set a profile with Tasker to automatically start tethering when Bootlog Uptime starts. So if the phone crushes, after reboot Bootlog Uptime starts automatically and triggers the task to open tethering. Did not try it out but it could work. Or maybe you can figure out other profile that hepls you, based on other contexts.

Related

Veoh.com question

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!

[Q] Bug in FreeX10 with enterprise wifi 802.1x

Hey everybody,
I have had a problem since installing the first beta of FreeX10 2.2, when i attempt to join my wireless at work (PEAP, MSChapV2) it does not save the credentials or try to connect.
my Wireless works great at home on my WPA2-PSK wireless, but the phone just refuses to save any setup for an enterprise connection.
Creating it manually doesnt work either, nor does setting up the credential storage system and password first, then doing it (on the 2.1 stock first time it prompts me to set up password etc)
Anybody else run into this? I think i saw it mentioned once a long time ago in the forum for the ROM, but i havent seen mention of it again, and its stopping me being able to use my wireless in the place i need it most (work, where my mobile coverage is almost non-existent)
I did see somebody mention a workaround at some point with some 3rd party app to pre-setup the wireless, but i havent been able to find that app, and have since forgotten how / what they were talking about, any help would be much appreciated!
Cheers,
Ayden
i don't know, but i would say you should try wolfs froyo rom .
everything is working very well, fast and smooth !
and it's a lot better then the old free x10 betas..
thats my perspective
I might do that, i tried the cyanogen 7 version and couldnt get past the boot screen for some reason, will try that one though
I'll post back with how i go

[Q] Tasker enable Wifi Tether problem

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.

[Q] Having some issues with aggressive wifi to cellular handover

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 :-/

Juice Defender Disables Itself

Hi
I started a similar thread in March, but only got one reply--from someone with the same problem. Perhaps someone has cracked it since then. I'm running an unrooted htc One M8 on Android 5.0. I've used JD plus for a number of years, but since upgrading to Lollipop the app constantly disables itself. I have uninstalled and reinstalled (on WiFi and data only) a number of times and also tried installing JD Beta--same result. I enable the app (balanced profile-no bells or whistles) go do something else and when I return the app is disabled. I found the following in JD FAQs:
JuiceDefender keeps disabling itself/all buttons are grayed out
Setup is now mandatory. JuiceDefender needs a successful completion of the Setup routine to work, there's no cheating around it; if Setup keeps failing, wait until you get to an area with strong reception before running it. If you don't have a data plan, or otherwise don't have mobile data working for some reason, please tap on Skip connectivity check when prompted.
Trouble is, I don't see any formal setup within the app. I just install it and enable it as I've done for years. Can someone point me at this mysterious setup function or otherwise suggest a way to get JD up and running as it should?
I've attached a log for those of you who can decipher them. Thanks in advance!

Categories

Resources