Manual pdp attach? - G1 Android Development

Is there a way to make the G1 ask for a pdp attach instead of the current automatic way? It would be nice to take control over the dataconnections and actually see which application is trying to connect...

Related

Nodata question.

Im just wondering if there is any way of making a shortcut to nodata which will deactivate/activate a specific connection?
I know that some apps have things like that built in, like the xdaShutdown that I have linked in my sig. If you make a shortcut to the .exe and add some text onto the end of it, it will do a specific function (in xdaShutdowns case, either shutdown, restart etc)
I use Nodata so often to turn on and off ONE connection so often that Its getting annoying having to open the app and then get notifications when you do things etc.
Id just love a shortcut in the start menu (which i would place into Sense)
which just enables or disables that specific connection without the hastle of going into the app and selecting it specifically.
My question is; is there any way of doing this?
The easiest thing to try may just be a mortscript that toggles the connection. Nodata basically just flips the keys from 0-1 in HKLM\Comm\ConnMgr\Providers\{xxxx}\Connections\...\enabled. I'm not sure if the guid is the same for everyone or not, and I'm also not sure if you need to soft reset or not if you do it with a mortscript (maybe nodata gets around that somehow-kind of doubt it, though). Or you could just export the key with dotfred's regedit when it's 0 and 1, and then import either one whenever you want to kill or enable the connection.
aah, right.
Thanks for the reply
erm, ive never really done anything with mortscript
I know what it is and have used it before, but never made anything myself
How might I go about making this as you suggested?
It's pretty simple. I just tested out a set, and it appears to work fine (although I don't actually have a data plan, lol). This is the basic form (I left out some of the guid-no idea if this is common to everyone or if it's hooked just to me).
Turn on voicestream:
Code:
RegWriteDWord("HKLM","\Comm\ConnMgr\Providers\{7C4BxxxxxxxB1AA}\Connections\wap.voicestream.com","enabled",1)
Turn it off:
Code:
RegWriteDWord("HKLM","\Comm\ConnMgr\Providers\{7C4BxxxxxxxB1AA}\Connections\wap.voicestream.com","enabled",0)
You need to have mortscript installed for it to run. It's pretty much instantaneous. I have 3 data streams (all of which do jack, but can mess with my wi-fi connections); just create text files for whatever you want, and change the extension to .mscr. When you click it, it will execute. I'm sure you could write a toggle script, but that's way beyond my skills, lol.
Thanks Ted, Ill try that out now
Awesome
Works brilliantly
Obviously had to change the location slightly because of having a different connection name; Mine calls it "Contract Internet" instead of "wap.voicestream.com"
Thanks
Now I have on/off buttons in my quicklinks on Touchflo 2.5 (sense)

windows mobile location awareness comm utility

Hi all, I did a little searching for this but was unsuccessful and not exactly sure what to search for.
Basically I am looking for a location awareness utility that will automatically enabled my wifi and change my ringer when I get home. Then, when I leave my home it will automatically disable wifi and other settings I determine. Another function might be to automatically change my ringer to vibrate when it knows I am in a movie theater etc.
I think I have seen something like this for Android but am unaware of what it is called.
Any ideas?
Moved as not software release.

[HELP] Tasker - send SMS by app, location.

I'll start off with background: I'm 16 and recently started driving. My parents are kinda paranoid and want me to text them every time I leave or arrive somewhere. I'm lazy and forgetful and they think I'm dead if I don't text them. See my dilemma?
I wanted to try and help myself out. I downloaded Ulysses speedometer thing and tasker. My idea is to have it so that tasker will catch when Ulysses is open and send my mom an sms saying I'm leaving and then when it closes say I have arrived. It would also be cool if it could enable/disable GPS and awesome if iit would tell her my location.
I tried just the basic part but couldn't get it to send the message when I opened Ulysses. My question is, can somebody who knows more about tasker than me (I know how it works but it gets confusing) help me get this working? It would be awesome and if my driving led to me getting a job I might be able to donate you some moneys or something. In the least I can give you a virtual cookie and/or hug.
Thanks!
Sent from my MIUI SCH-i500
Bump, I could really use some help with this.
Sent from my MIUI SCH-i500
Bump again, this is my last try. I got everything figured out to have it start GPS, get location and everything... I just can't get it to send SMS which is the main idea. Even making another profile whose only function is to send an SMS doesn't work. Am I doing something wrong?
Sent from my MIUI SCH-i500
I dont know Ulysses, but if you combine the "App" context with a GPS location context this could cause problems because the App context only becomes active in the instant where the app is started. So if you start the app and you are not at the location from where you want to send the SMS, then the profile does not become active and no SMS will be sent (clear ? )
I would not use the App context and GPS Location for this, but rather the "cell near" context. This context can be calibrated to a specific location by scanning the cell towers in range and it does not eat as much battery as the GPS. I use this for setting my phone to silent when I am at work, or switching of the keylock when I am at home.
With the cell near context it should be possible to use the "send SMS" action.
You can also try to combine it with a timer or set a flag to avoid multiple SMS in case you come close to some other cell tower for a short time and the profile switches on and off.
If you want your position to be included in the SMS you can use the "Get Location" action. It uses either GPS or net based location.
For GPS: When your profile becomes active (activated by cell near), set the GPS to be switched on, and use the "Get Location" action (which has to be set to GPS). Allow some timeout to get the fix, then your position should be stored in the variable %LOC, which you can use in your SMS text. Then send SMS and switch off GPS.
For net location: also use the "Get Location", but set it to "Net". You have to have Internet connection to get a location that way, and in your location settings (phone settings) "use wireles networks" (or something like this) has to be activated. Net Location is not as accurate as GPS, but normally its not as much of a hazzle to get a fix. I think the net location is stored in %LOCN afterwards...
Hope I didnt get anything wrong, just wrote that from the top of my head.. Just use the help buttons in the different action tabs to get the detailed info.
While I applaud the effort you are making to try and automate the process of letting your parents know that you are safe, I am sure that they would appreciate it more if the SMS came from you personally and not from a machine. Make an effort to consider their feelings of anxiety while you are a young driver, and take the time to text (or maybe even call them). Drive safely!
or just use latitude
Thanks for the replies guys. Will be trying that long one out. I have been trying to send personal texts, and usually I can remember when I'm leaving but I forget to send one when I arrive. Just trying to avoid trouble with this. And I've tried latitude but I use a GAFYD account as my default and it doesn't support check-ins with latitude. And latitude won't let me use my secondary gmail account.
Sent from my MIUI SCH-i500

[Q] AutoSync App question

Hey guys,
I just got an idea for an app and I would like to know whether you would want to download it/use it if I made it...
The idea is that when you step into your house, the gps finds that you are in and it automatically starts to turn on specific profiles for your house (such as dimming the backlight and turning on the wifi/bluetooth). This is useful also bacause when you step into your house, it can also trigger another part of the app which allows you to sync up folders/music with your computer if it is on and wirelessly sync up all that you just did in work (such as meeting new contacts). Also, the same applies for at work. You can simply step into your office and it will magically go into performance mode or whatnot and it will start syncing your business part of your phone (special folders).
So...if you would want to use this app, please use the poll above and vote whether you would not use it, or use it free, or even be willing to pay for it.
Thanks for your time....
so im assuming that its a no?
Well it wouldn't be impossible, it would be pretty hard.
The auto sync files when you step into your office seems hard because an office will be pretty much different for everyone so the app somehow needs to collect data on the office, such as size and shapes of the room.
well, I was thinking that you would calibrate it for the location of the office/home.
correct me if I'm worng, but can't tasker do this?

Automatic Hotspot

Has anyone been able to get any program to automatically enable hotspot (for example, when bluetooth connects turn on hotspot)? I used to use Tasker on my Note 7 (without root and with Secure Settings), but now Tasker fails to enable hotspot on my S8+
Every program I've tried in the Play Store fails to enable hotspot...it is like Samsung has done something that to keep programs such as Tasker and Automate from working...
It fails because the US branded versions of the phone changed the normal way to enable the hotspot function in order to perform additional entitlement checks with some US carriers before enabling the hotspot. This is why Tasker and other programs fail.
On the unlocked, unbranded version of the S8+ (which doesn't run the carrier software and doesn't run those checks), it works fine.
The same goes to the pixel, only there it depends on the SIM you insert into the phone. If you insert a VZW or ATT SIM, the Tasker process will fail. If you use a T-Mobile SIM in the pixel, it will work because T-Mobile doesn't run those entitlement checks.
When I used an international SIM in the Pixel, it also worked.
I hope this helps.
This is the error I get with tasker, is this what you see?
Ugh...I figured it was something to do with that. That's like knowing cancer is the cause of that pain in your gut...good to know what it is, still sux.
I have been able to get Tasker and AutoInput to activate the hotspot fairly reliably when I connect to bluetooth. It actually works very well, even with the screen off. Guess it'll do.
Care to explain what you are doing there? Is autoinput disabling mobile data, enabling hotspot then re-enabling mobile data?
Auto Enable Hotspot with Tasker on S-8
I got the automatic hotspot worked out using Tasker and AutoInput. I tried several ways that were hit or miss. I finally figured it out and can now activate my Hotspot reliably when my phone connects to bluetooth.
If anyone is interested, here is the export. You will need AutoInput from the Play store, and Tasker. Root is not necessary. It is probably a pretty clumsy way of doing it, but it works.
Simply copy the Hotspot Enable XML file to your Tasker Configs folder. Then Tasker>>3-dot menu>>Data>>Restore>>browse to file
Thanks I'll try this. I always used tasker before but obviously w/o Autoinput.
Dave
No dice for me. Aside from autoinput and tasker did you have to install anything else? I did enable the autoinput accessibility service. I've included screenshots of what I get when I try to run the task and also when I click on any one line of the task. When I click to install what it says to it says it is just takes me to auto input in playstore which is already installed. Is there somewhere else I need to enable this auto input plugin?
It also seems I had to install secure settings which I did to no avail.
Thanks much
Dave
TT_Vert said:
No dice for me. Aside from autoinput and tasker did you have to install anything else? I did enable the autoinput accessibility service. I've included screenshots of what I get when I try to run the task and also when I click on any one line of the task. When I click to install what it says to it says it is just takes me to auto input in playstore which is already installed. Is there somewhere else I need to enable this auto input plugin?
It also seems I had to install secure settings which I did to no avail.
Thanks much
Dave
Click to expand...
Click to collapse
Sorry Dave, I haven't been back on.
It looks like you need to install "Secure Settings" from the play store. It is an add-on to Tasker. It should work after that.
So yes, you need Tasker, Secure Settings, and AutoInput. You could honestly probably do without the first command in Tasker (the one that needs Secure Settings...it only turns the screen on).
I tried again removing that first line and every single action if I click on it I get the error in the picture below. I try to manually run it in tasker it just sits at the first task. How did you create this exactly?
Btw, if I click to install it just brings me to autoinput I the play store which says it's installed.
Any help pinetreehater?
Well i ended up having my phone die and got a new one from samsung. Same issue I had w/ the other one. There has to be some other step involved that I'm missing here.
Any luck yet?
Sort of working
I downloaded and paid for AutoInput. The script is mostly working. But it stops at the Hotspot setting screen and never seems to turn it on.
Any ideas?
Apologies for necroposting, but I thought this might help future people. The only issue I can think is that you need to make sure you've activated Autoinput's trial period OR purchased the full version, do that and the supplied script works perfectly.
so I'm using the s9, figured the process would be close enough. first Trigonous' fix worked for me mostly, except I still have to unlock my phone before it finishes turning on hotspot. Also, for any totally novice users coming in to try to do this, I had a fun time at first locating the Tasker Configs file, if you create a back up in tasker it will create the file for you so you can copy the .xml to the proper place.
Most important part of this post, to me at least, is there a way to get it to by pass my unlock and just do it or do I have to pull out my phone still and unlock it for it to finish the task?
snaggle2thtiger said:
Most important part of this post, to me at least, is there a way to get it to by pass my unlock and just do it or do I have to pull out my phone still and unlock it for it to finish the task?
Click to expand...
Click to collapse
I'm no expert, but why not set your cars Bluetooth as a trusted device, therefore unlocking your phone when connected, then maybe a brief delay after connection allow it to continue?
Thank you
pinetreehater said:
I got the automatic hotspot worked out using Tasker and AutoInput. I tried several ways that were hit or miss. I finally figured it out and can now activate my Hotspot reliably when my phone connects to bluetooth.
If anyone is interested, here is the export. You will need AutoInput from the Play store, and Tasker. Root is not necessary. It is probably a pretty clumsy way of doing it, but it works.
Simply copy the Hotspot Enable XML file to your Tasker Configs folder. Then Tasker>>3-dot menu>>Data>>Restore>>browse to file
Click to expand...
Click to collapse
Thanks man, saved me some time, it works perfectly. I installed AutoInput and was moving in the same direction.

Categories

Resources