Enable/Disable sync process - Possible? How? - G1 Apps and Games

Could someone tell me how to enable/disable the overall syncing from code? I have looked into the source code but this part is missing. But I know that it is possible since some of the toggling apps are doing it.
Regards and thanks for your help.

I don't see a need for an app on this as AnyCut already does it just fine.

Well it is just for my own needs. And AnyCut doesn't do that. It just links to the Sync Settings activity but not to the direct toggle.

Related

LauncherPro & FolderOrganizer..Best Apps Ever

I have had an android phone for about a month and continue to find new ways of doing things...
Not sure if you were aware of this...
If you have LauncherPro, there is a shortcut menu option called "Activities" that will display and let you create a shortcut icon from items inside programs and SETTINGS.
That means, you can create an icon for MobileAP, Wifi selection,VPN, etc.
Using this one step further, you could add these shortcuts into FolderOrganizerLabels and display a label(folder) on your home screen(s).
I am stoked now because I can get to so many settings individually without having to do the extra 5 steps to get there.
I am super stoked as well because I created a folder specifically for BTEP ssh client shortcuts to access my firewalls, servers and switches.
------
I know the last few builds of Launcherpro have been bogged down due to new widgets (twitter). But I don't think i can get any happier.... well unless samsung fixes my gps!
Krad said:
I have had an android phone for about a month and continue to find new ways of doing things...
Not sure if you were aware of this...
If you have LauncherPro, there is a shortcut menu option called "Activities" that will display and let you create a shortcut icon from items inside programs and SETTINGS.
That means, you can create an icon for MobileAP, Wifi selection,VPN, etc.
Using this one step further, you could add these shortcuts into FolderOrganizerLabels and display a label(folder) on your home screen(s).
I am stoked now because I can get to so many settings individually without having to do the extra 5 steps to get there.
I am super stoked as well because I created a folder specifically for BTEP ssh client shortcuts to access my firewalls, servers and switches.
------
I know the last few builds of Launcherpro have been bogged down due to new widgets (twitter). But I don't think i can get any happier.... well unless samsung fixes my gps!
Click to expand...
Click to collapse
Yeah, the activities shortcuts are nice... I was able to create one to the GPS Service menu as well,so I can jump right in and do a GPS Test and/or clear out the GPS data very easily. I have found that whenever my GPS hangs, clearing out the data does seem to help and this makes it super-easy (no need to dial the number!)
Also, like you, I used this feature to create a shortcut to "MobileAP" ... very nice!
jsmith8858 said:
Also, like you, I used this feature to create a shortcut to "MobileAP" ... very nice!
Click to expand...
Click to collapse
How did you do that? Never mind. I figured it out. I needed a little patience for the screen to arrive.
I too love LauncherPro Plus. I use Smart Shortcuts to put apps in folders on the desktop. You can apply any icon you want. It also handles folders for bookmarks and contacts. I'll check out FolderOrganizer as well.
Thanks!
I believe ADW Launcher has the same feature. You just need to choose "Custom Shortcut" instead of "Shortcut" and it will allow you to choose your activity. Haven't played with it much, but was curious about what it did so tried to create my own shortcut. Worth some more investigation, certainly.
jsmith8858 said:
I was able to create one to the GPS Service menu as well,so I can jump right in and do a GPS Test and/or clear out the GPS data very easily.
Click to expand...
Click to collapse
Not wanting to cry wolf, but can you describe how you did this? I looked at the scripts menu, but it seems to want a script that has already been written.
thanks so much for posting this. i was trying to figure out how to create a link to my call log on the home screen, now there is one with launcherpro.
mrschwarz said:
Not wanting to cry wolf, but can you describe how you did this? I looked at the scripts menu, but it seems to want a script that has already been written.
Click to expand...
Click to collapse
Hi -- no script is needed, you just add an activity shortcut.
i am dropping folderorganizer.. it is getting way to slow. Trying smart shortcuts now.

Tasker :post your tasker profiles

Hi.
Tasker beta updated recently to 4.8 and support new tile for
CM quick settings
So
i create this thread
to post and explore new profiles
I follow many projects from google and reddit
So i have set profiles for automate gps to high accuracy and back with secure settings
Vpn connect on wifi except secure point
Usb debuging only when i connect to certain pc (and just in case) when shutdown my device beacause i use encryption
Send sms to caller when driving
But most usefulls profiles found how to auto change cm profiles based taskers options cell near or wifi near bt near location etc...
CM detect profiles and CM profiles changer found to reddit are great jobs???
i expand my usage to CM profiles options
Based to these variables tasker upgrade all my device capabilites
Whats yours?
Is there a way for tasker you know if you've unlocked your phone. I want a task that flashes certain information when I unlock my phone
igbo_scouser said:
Is there a way for tasker you know if you've unlocked your phone. I want a task that flashes certain information when I unlock my phone
Click to expand...
Click to collapse
Information for what?
Mostly use is autoinput plugin with
Minimalistic widget
Have a look to this for more profiles
Just the data I have left until the end of the month. I have that side set up but I just need to know where I can find the variable that allows me to tell tasker that the screen has been unlocked and not just that it's on
igbo_scouser said:
Just the data I have left until the end of the month. I have that side set up but I just need to know where I can find the variable that allows me to tell tasker that the screen has been unlocked and not just that it's on
Click to expand...
Click to collapse
%KEYG
%KEYG seems to check if you have a keyguard enabled, and not if it's currently active.
Thanks for your help though
igbo_scouser said:
%KEYG seems to check if you have a keyguard enabled, and not if it's currently active.
Thanks for your help though
Click to expand...
Click to collapse
check with this
%KEYGUARDOFF
igbo_scouser said:
%KEYG seems to check if you have a keyguard enabled, and not if it's currently active.
Thanks for your help though
Click to expand...
Click to collapse
Tasker
%myDISPLAY is similar to the %SCREEN variable in Tasker, but it adds unlocked as a possible value, allowing us to differentiate between on and unlocked. These values are set based on the corresponding Tasker Events, and can be used as a Context (using Variable Value), or for flow control within Tasks.
Both of these didn't work. Maybe it's because I'm on the lg g4 and not on aosp
igbo_scouser said:
Both of these didn't work. Maybe it's because I'm on the lg g4 and not on aosp
Click to expand...
Click to collapse
Tasker recognize unlock as event so
Add a profile/event/display/unlock
Make a simple task to check if working
If work you can create a flow action
So monitor when device unlock (one profile)
And change variable value
and execute the desire task.(second profile) when new value set
I'm trying to get tasked to turn on LTE when I get an MMS and back off when its done downloading (closed had a module for NY Samsung phones but won't work on aosp)
Sent from my A0001 using Tapatalk
greekunit690 said:
I'm trying to get tasked to turn on LTE when I get an MMS and back off when its done downloading (closed had a module for NY Samsung phones but won't work on aosp)
Sent from my A0001 using Tapatalk
Click to expand...
Click to collapse
Did you try secure settings?
On Lolipop I have problem with mobile data dont automatic connect when I am out of wifi area.
Is there any way for tasker to solve this problem, I buy it last night, but its littly too complicated for me.
So something like this, when out of wifi area, connect to 3g, when in wifi area disconnect 3g.
What phone and what rom do you use?
Oneplus one, sultan latest 1.11
kvaju said:
Oneplus one, sultan latest 1.11
Click to expand...
Click to collapse
Download secure settings
Add profile/state/net/ wifi conect
New task /plugin secure settings /mobile data off
From main menu if expand profile you see the task you create
Tap to task and create exit task the opposite
But is known bug?
to @Sultanxda because automate data/wifi is main function of device
Did you post? Have you done clean installation?
I known its the main funcion od device, but I have trouble with every ROM on lolipop with this. Clean install, delete all apn create new, works one day ok, then same problem.
Thank you, will try to do this.
Google remove tasker from playstore
Available only from here

[TASKER] Looking for some tasker profile ideas. Post your tasker profiles here!

So I just discovered the magical world of tasker, and am loving it! Totally worth the money, and one of the best apps to have (the best if you know how to maximise its use)! I have been experimenting a bit with it, so I don't have many profiles. I'm sure many folks here will be using tasker and would be having some great profiles, so I'm looking forward to hearing some suggestions! The profiles I use are:
1. WiFi off at night, from 00:45 to 08:00, except WhatsApp, Play Store, Quora
2. Airplane mode at night, from 00:30 to 07:00
3. Use of interactive CPU governor when using Real Racing 3, and revert to lionfish governor after exiting app(Kernel adiutor profiles do this for me). I also added a condition to use auto-rotate when playing the game, and revert to portrait orientation after closing the app.
4. Auto-sync every two hours, from 08:00 to 20:00 (I would like to improve this to auto-sync only Gmail, would welcome suggestions on how to do this from any tasker experts out here )
I would love to implement more profiles and automate my phone, so looking for ideas.
Need a tasker profile which can disable my mobile data only for some specific apps.it means If I start those apps then my mobile data would automatically disabled and when I close them Data service should be enbled.If u can help on this then That wud be very helpfull
Nothing very fancy for me - right now just have it turning on my wifi hotspot when it detects my car's bluetooth connection so my stereo can use the internet.
It sounds like you are taking it pretty far, @varunadi. You should check out https://www.reddit.com/r/tasker for more cool ideas.
koimr said:
Nothing very fancy for me - right now just have it turning on my wifi hotspot when it detects my car's bluetooth connection so my stereo can use the internet.
It sounds like you are taking it pretty far, @varunadi. You should check out https://www.reddit.com/r/tasker for more cool ideas.
Click to expand...
Click to collapse
Yep, I am looking to maximise the use of this app, so thanks for that link, will check it out!
anks095 said:
Need a tasker profile which can disable my mobile data only for some specific apps.it means If I start those apps then my mobile data would automatically disabled and when I close them Data service should be enbled.If u can help on this then That wud be very helpfull
Click to expand...
Click to collapse
I'm still finding my way around tasker, reading a lot of tutorials so once I figure it out I'll let you know.
anks095 said:
Need a tasker profile which can disable my mobile data only for some specific apps.it means If I start those apps then my mobile data would automatically disabled and when I close them Data service should be enbled.If u can help on this then That wud be very helpfull
Click to expand...
Click to collapse
I don't know if you can disable mobile data entirely (not just background which Android can do already) for just certain apps.
Perhaps it would be easier to use something like Netguard.
I've never used it but the description says "Applications can individually be allowed or denied access to your Wi-Fi and/or mobile connection."
koimr said:
I don't know if you can disable mobile data entirely (not just background which Android can do already) for just certain apps.
Perhaps it would be easier to use something like Netguard.
I've never used it but the description says "Applications can individually be allowed or denied access to your Wi-Fi and/or mobile connection."
Click to expand...
Click to collapse
Can't the secure settings plugin be used for that purpose? Toggle data on/off I mean.
varunadi said:
Can't the secure settings plugin be used for that purpose? Toggle data on/off I mean.
Click to expand...
Click to collapse
I was actually going to suggest that as I have it installed already but when I tried it didn't work.
The "Mobile data" toggle was unavailable because it claims I don't have root. However, I'm definitely rooted and there's no listing (saying denied or otherwise) in SuperSU for Secure Settings so it didn't even ask for root. I'm not too surprised as SS hasn't been updated in over a year and a lot of the Play Store comments mention mobile data toggle specifically not working either (among other things). Too bad as it was pretty powerful and of course I think I paid for it right after its last update.
Not getting SS working for me might just be my problem and perhaps someone else can get it going.
I was also going to suggest [APP][2.2+][ROOT] Toggle Data 5.0 (xda-exclusive free version) but then I read more about what @anks095 said which was "can disable my mobile data only for some specific apps" so I'm guessing he just wants certain apps restricted and not all (although the next sentence seems to say otherwise but I might be reading it incorrectly). I'm not too sure that can be done via Tasker/SS - my guess is that it's an "all-or-nothing" kinda thing for mobile data so the VPN thing might be the only way.
I use a similiar app called automagic but some of the things that I got my tasker like program to do are: lockscreen enable/disable through wi-fi at trusted places (don't like geofencing due to battery), when connected to the bluetooth of my car. Auto silent 5 min before a meeting, but if not connected to my smartwatch then vibrate. And lastly sms emergency location request where my family can send a keyword and my phone will automatically send location.
joeanca said:
I use a similiar app called automagic but some of the things that I got my tasker like program to do are: lockscreen enable/disable through wi-fi at trusted places (don't like geofencing due to battery), when connected to the bluetooth of my car. Auto silent 5 min before a meeting, but if not connected to my smartwatch then vibrate. And lastly sms emergency location request where my family can send a keyword and my phone will automatically send location.
Click to expand...
Click to collapse
How is the lockscreen one working for you? I find the built-in SmartLock to be really unreliable but when I tried to do lockscreen stuff before (last year) there was some bug in either Tasker or Secure Settings that would sometimes keep your screen black with just the nav buttons visible present. I'll have to re-try now.
That sms emergency request thing sounds cool! Can the recipient open the location in Maps to see exactly where you are?
Without issues I set it so that it clears the password. Makes it so that I have to swipe to unlock. As for the location, yes it sends coordinates and the user in the other end taps it to bring up Google maps.
Sent from my XT1563 using Tapatalk
joeanca said:
Without issues I set it so that it clears the password. Makes it so that I have to swipe to unlock. As for the location, yes it sends coordinates and the user in the other end taps it to bring up Google maps.
Sent from my XT1563 using Tapatalk
Click to expand...
Click to collapse
Thank you very much - clearing the password was the key! I had been trying before to disable the keyguard entirely so I wouldn't even have to swipe but that's where the problem/bug came in. Thinking about it that makes more sense to have at least a swipe because I'd end up calling people from my pocket by mistake. So thanks again!
Tasker...hmmm. Bought it, but much to complicated for me. Macrodroid is much easier to understand and can also do complicated automation with a normal user friendly interface. I tried to like Tasker, but the more and more I tried the more stupid I felt.

Tasker to run copilot to a certain location

I have a profile that will turn off wifi and turn data on when I leave work.
I am trying to add a task to this that will open copilotand set the navigation to on of my saved destinations.
Can anyone help me with this please?
Never used copilot but i am pretty sure it is possible with autoinput.
You launch the app with tasker, and use a combination of autoinput commands, to have it open what you want.
The "intent" stuff that i know nothing about might be helpful as well.
Sent from my SM-G900F.
Thank, I hope someone could expand further with the items you mentioned please?
You could take a look at its intents on manifest file of the apk.
CrashOverride93 said:
You could take a look at its intents on manifest file of the apk.
Click to expand...
Click to collapse
Sorry haven't a clue what this means?
Tried using autonotification, it seems like it doesn't recognize what is clickable and what is not within your app and so i couldn't do anything with it. Havn't used it for a long time so i might be missing out on something. I probably am.
About intents check this out. Was just reading it since i don't know about intents either. It was interesting http://forum.xda-developers.com/showthread.php?t=2489449
Its an interesting read. Tried using an intent for google maps, your app recognized it. I could feed an address to the app but it will simply display it on the map.
There is most likely an intent for google maps to navigate to an address from your current position. If thats the case, your app most likely will recognize it as well which is what you are looking for.
Sent from my SM-G900F.

How To Guide Fix missing/not working VPN on A12 stock ROM

Not all users could have it, but VPN "bug" (I use quotes since I'm not so sure it's a bug and not a wanted behaviour...) on stock ROM appears on post Feb23 A12 builds to date (don't know if root related or not).
It's composed by two parts (fact which lead me to be suspect...):
1. - VPN menu is missing in Network & Internet section
2. - every VPN app (not already installed before the Feb23 build) fail to work
To date there is NO official fix from Motorola, from others or... from me.
BUT I've found a couple of workaround for both issues which can be applied to have your preferred VPN app working fine (and that's the important thing! ).
I'm sorry but root is needed (well, not at all, but we'll see it in details after...) to fix both the issues...
Let's see in details...
1) VPN menĂ¹ exists & works fine, it's only hidden in Settings.
The workaround is to create a direct "shortcut" to the VPN menu using one of the shortcuts apps you can find on Play Store or, as in my case, using the "Create shortcut to Activity" function embedded in my launcher (Nova).
The name of VPN menu is: .Settings$vpnSettingsActivity
You'll get an Icon you can use to open VPN Settings!!
2) Now that you have the settings back you could think that your VPN apps will work. Wrong!
It's needed a second step...
I've studied a lot the issue and I've found that when your app should show a confirm dialog to create the needed VPN it doesn't show anything at all and no VPN is created...
Looking better I've found that this happens because the system directly deny the permission instead to let app to ask user!!
So... to correct this (wrong) behaviour the simplest fix is to use an app called App Ops Permission Manager (available on Play Store) which allow us to modify app permissions values.
We just have to go to our VPN app and modify the activate VPN value from ask to allow!!
If you use several VPN apps this has to be done for everyone...
Only problem is that App Ops requires Shizuku to run and Shizuku requires... root!
Well, not exactly to be honest... Shizuku can be actived without root too using the "Wireless debug USB" trick they well described in their app. I can confirm it works fine. Only issue is that it has to be enabled again at every boot, BUT I think modify done by App Ops should be "permanent" until app is not removed (or updated... not sure about this...), so Shizuko start could be needed a single time or so (in any way once VPN has been created in VPN settings the VPN app should be happy with it and shouldn't ask any more confirm!).
I hope you'll find all this clear & useful...

Categories

Resources