tasker

Turning off second SIM via adb shell/Tasker - using activities/intents

僤鯓⒐⒋嵵緔 提交于 2020-08-26 08:06:38
问题 I have a Xiaomi Mi6, which supports two SIMs. I need to figure out how I can switch the second SIM (SIM2) off outside business hours using Tasker. I've got as far as figuring out how to open the settings page for SIM2 with Tasker: Action: android.intent.action.MAIN Cat: Launcher Extra 1: subscription_id:1 Extra 2: slot_id:1 Package: com.android.phone Class: com.android.phone.settings.MultiSimInfoEditorActivity Target: Activity which brings up the settings page for SIM2, like so. However, I

Turning off second SIM via adb shell/Tasker - using activities/intents

心已入冬 提交于 2020-08-26 08:05:21
问题 I have a Xiaomi Mi6, which supports two SIMs. I need to figure out how I can switch the second SIM (SIM2) off outside business hours using Tasker. I've got as far as figuring out how to open the settings page for SIM2 with Tasker: Action: android.intent.action.MAIN Cat: Launcher Extra 1: subscription_id:1 Extra 2: slot_id:1 Package: com.android.phone Class: com.android.phone.settings.MultiSimInfoEditorActivity Target: Activity which brings up the settings page for SIM2, like so. However, I

HTTP GET: Get Google Calendar Event List via Google Calendar API v3 - invalid key error

流过昼夜 提交于 2019-12-22 11:28:07
问题 I was using an HTTP GET action on Tasker on Android 4.4 for quite some time now in order to get my future google calendar events. This task no longer works due to Google shutting down the v2 API. For the API v3 an authentification is needed. I tried to get a client key from the developer console. I created a new project and activated the calendar API for it. I then created a new client ID and do have this client ID with its corresponding key. How can I get a list of my (future) events from my

Setting wallpaper instantly with setbitmap() android

痞子三分冷 提交于 2019-12-14 04:10:00
问题 I have been searching for an answer to my problem, but cant seem to find a right answer. I am trying to use tasker to set a background on my phone everytime a song changes. I got everything working, but setbitmap does not set wallpaper instantly. I have to interact with the phone in some way to get it to update ( open a folder, touch the screen etc). Is there a way to force an update after setbitmap has been called? Edit: Im using setStream now. Here is a short video showing what im trying to

How send JavaScript or jquery commands on webview tasker elements?

这一生的挚爱 提交于 2019-12-12 10:16:50
问题 I created a scene and webview1 element with: mode: url source: www.google.com created a task to show scene Now, I want to create a JavaScript task to send to the Webview: $("#q").val("Chuck Norris"); $("button#search").click(); PS: I don't want to just execute Javascript, I want to execute it in the opened Webview. 回答1: I do not really understand what would possibly be the point of creating webview scenes and acting on them, when what you need can be achieved "silently". You can query

Find connected bluetooth device name using adb? [duplicate]

与世无争的帅哥 提交于 2019-12-11 14:53:00
问题 This question already has an answer here : How to control bluetooth operations using adb shell? (1 answer) Closed last year . Is there any way to find the connected BT device name using adb shell? My phone is rooted and I'm building a tasker profile which flashes the BT device name when connected. 回答1: You want to know your Bluetooth profile name or connected/paired device bluetooth name? Both names you can get by below command: adb shell dumpsys bluetooth_manager The above command will give

Simulating combination of key presses from ADB terminal

廉价感情. 提交于 2019-12-09 12:09:57
问题 I want to send " CTRL + W " to the Chrome for Android to close active tab. I tried lots of things but there is no success to achieve it from terminal. (If i connect a USB Keyboard with OTG, i can close the tab with CTRL+W) Firstly i do not want to write a application for this, i only want a shell command to use it from Tasker. I read somewhere that to achieve this (CTRL+W keypress), i have to simulate key presses like this: Down CTRL Down W Up W Up CTRL And to achieve this from terminal, it

HTTP GET: Get Google Calendar Event List via Google Calendar API v3 - invalid key error

 ̄綄美尐妖づ 提交于 2019-12-06 05:54:38
I was using an HTTP GET action on Tasker on Android 4.4 for quite some time now in order to get my future google calendar events. This task no longer works due to Google shutting down the v2 API. For the API v3 an authentification is needed. I tried to get a client key from the developer console. I created a new project and activated the calendar API for it. I then created a new client ID and do have this client ID with its corresponding key. How can I get a list of my (future) events from my personal Google calendar via HTTP GET and this authentification information? I'm trying to use: https:

Calculate number of specific weekdays between dates

ε祈祈猫儿з 提交于 2019-11-28 14:07:57
I'm trying to calculate the number of Mondays, Wednesdays, and Fridays between 2 dates in Tasker, thus I need a math formula, possibly utilizing the date in seconds form, i.e. unix time, or a javascript code. I've tried Googling and racking my brain for any way to even start this and I'm lost so I haven't tried anything yet. The only thing I could think of was getting the total number of days and dividing by 7, but that clearly does not help me very much, especially if one or both of the days is midweek. Can anyone point me in a better direction? Matt How to count specific days of the week

Calculate number of specific weekdays between dates

∥☆過路亽.° 提交于 2019-11-27 08:09:10
问题 I'm trying to calculate the number of Mondays, Wednesdays, and Fridays between 2 dates in Tasker, thus I need a math formula, possibly utilizing the date in seconds form, i.e. unix time, or a javascript code. I've tried Googling and racking my brain for any way to even start this and I'm lost so I haven't tried anything yet. The only thing I could think of was getting the total number of days and dividing by 7, but that clearly does not help me very much, especially if one or both of the days