S905X4 Mediabox - Switch/Force apps to run in TV layout - General Questions and Answers

Hey everyone! We've bought a lot of Android mediaboxes with Amlogic S905X4. Unfortunately, all of them came without an "AndroidTV emulation", thus all of the apps are running in a tablet layout and expects a touchsreen, while all that we have is a tv remote (As you can imagine, highly impractical). The mediabox is rooted. Is there a way to force apps to run in TV layout? Thanks for the answers!

It's possible to override the default screen orientation by disabling accelerometer rotation and setting user rotation in the system settings database.
On Android console you enter the commands
Code:
su
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
insert into system (name,value) values('accelerometer_rotation',0);
insert into system (name,value) values('user_rotation',1);
.exit
Info:
user_rotation 0 -> ROTATION_0
user_rotation 1 -> ROTATION_180
user_rotation 2 -> ROTATION_270
user_rotation 3 -> ROTATION_90

xXx yYy said:
It's possible to override the default screen orientation by disabling accelerometer rotation and setting user rotation in the system settings database.
On Android console you enter the commands
Code:
su
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
insert into system (name,value) values('accelerometer_rotation',0);
insert into system (name,value) values('user_rotation',1);
.exit
Info:
user_rotation 0 -> ROTATION_0
user_rotation 1 -> ROTATION_180
user_rotation 2 -> ROTATION_270
user_rotation 3 -> ROTATION_90
Click to expand...
Click to collapse
Thanks for the answer, I haven't made myself clear - I'm not talking about screen rotation, the problem is that the app layout is set to "tablet", not "tv", so the app "expects" a touchscreen, while all that we have is a tv remote, thus highly impractical. Sorry for the confusion

Related

[APP][2.2+][Tasker plugin] Secure Settings - Updated 1/29/14

Secure Settings is a Locale/Tasker/Llama compatible plugin for Android 2.2+
Please see the changelog for updates
Secure Settings Pro Trial licenses are available! Click the menu button inside of the Upgrade screen to request a trial.
As of v1.2.6, you can create Launcher shortcuts to any available Action option!
Conditions:
Max Failed Login Attempts - Perform an action based on a specified number of failed login attempts
Google Now Shortcut [4.1+,Pro]
Outgoing Call
Secret Code- Enter a special number in the Dialer and trigger an action.
Actions:
Toggle Airplane Mode
Set Airplane Mode Radios
BT Connection [4.0+]
BT Tethering [4.0+,Pro]
Execute Shortcut
Font Size [4.0+]
Toggle the Keyguard
Launch Activity
Locale Picker
Toggle Mobile Data [2.3+]
Run any GNU linux command (with/without root)
Tasker users can store command output info in user defined Tasker variables
Toggle SIP Receive Calls [2.3+]
Change SIP Call Option [2.3+]
Stay Awake While Charging
Show Touches [4.0+]
Wake the device
WiFi Hotspot [4.0+]
WiFi Sleep Policy
Dev Admin Actions:
Toggle the Camera [4.0+]
Lock the device
Lock Screen Widgets [4.2+]
Set or reset the device's password/pin
Root Actions:
Background Process Limit [4.0+, Pro]
Background Data [Pro]
Force GPU Rendering [4.0+]
Hardware Overlays [4.1+, Pro]
Package Notification [4.1+]
Package State (Previously Package Manager)
Phone Options (Answer,End,Silence Calls) [Pro]
Power Button Lock [4.1+, Pro]
Reboot Options (Uses native system methods) [Pro]
Enable/disable USB Tethering [4.0+,Pro]
VPN [4.0+, Experimental!]
Enable/disable Wireless ADB
Helper Actions:
Enable/disable Accessibility Services
Enable/disable USB Debugging
Set Active Day Dream [4.2+]
Toggle Day Dream State [4.2+]
Enable/disable GPS [2.3+]
Enable/disable Data Roaming
Update Lock Screen Owner Info [3.0+]
Set Lock Screen Timeout [4.0+, Pro]
Enable/disable Pattern lock screen
Enable/disable NFC [NFC Adapter required]
Change device input methods (switch soft keyboards without the prompt)
Enable/disable "Location Services" option for location awareness
Unknown Sources
WiFi Optimization [4.2+]
WiFi Scanning [4.3+]
Custom ROM Actions:
Enable or Disable ADB Over Network [CM9 only]
Expand Desktop [CM10/Paranoid Android]
Enable or Disable Fast Charge [Custom Kernel with Fast Charge Required]
Enable/Disable Kill App Back Button (CM and other custom ROMS)
Toggle LTE on CM9
Toggle Samsung Modes (Blocking, Driving and Power Saver Modes)
I hope you enjoy
Download Here
Explanation of Permissions:
Device Administrator Access - Required if you wish to lock the device or set/reset the password
Storage Access - Required for the Run Command function to write to the SD Card
Full Network Access - Required to download and check for updates for the Helper application
System Tools - Required for the Keyguard and Wake Lock functionality
Root Access - Required if you wish to install the Helper or run privileged commands from the Run Command function
Change Configuration - Required to change Locale
Change Network State - Required to toggle Mobile Data
Change Wifi State - Required to toggle Wifi Adapter for Wireless ADB
Wifi Access - Required to determine if Wifi is enabled for the Wireless ADB function
Bluetooth/BT Admin - Required to Connect to BT Devices
Boot Complete - Required to install Helper on boot if missing
Process Outgoing Calls - Required to use outgoing calls as conditions
Buy me a beer
New feature in Version 1.1.8
With version 1.1.8, Secure Settings can be converted to a system app to get the same functionality as having the Helper installed.
If you wish to move the app to the system, you MUST first disable Device Administrator!
I cannot stress this enough. If you don't do this, the app will break and will be a pain to remove.
Once that's disabled, you can use Titanium Backup to convert the app to a system app.
Thank you very much for this plugin. I have it installed which I downloaded from your site. Is there any difference between that and this one, which is available in the Market? Also, does this one also require to be installed as a system app in order for some functionality to work (e.g. Keyguard Off)? Thanks.
This is a completely different version than what is hosted on the google code site.
This app doesn't require you to install it to the system. I wrote a second app that I called the "Helper" which gets installed there. If you don't install the Helper, you will have the following available to you:
Keyguard
Lock Device
Set Password/Pin
Run Command
Wake Device
And Wireless ADB if you are rooted.
Hope this helps
Ok, thanks. I will try this out right now.
hey Corey Z -
I'm running into issues where Secure Settings plugin doesn't fire if I run a lot of shell scripts. I have a task where I fire a script, wait for its exit code, then fire another script; I do this maybe 4-5 times. This happens just fine, but when I tried to test a different task that also uses a shell script, it doesn't fire and my task just hangs on the "Wait until %CMD_EXIT is set". This is verifiable by turning on "show output" and "show notification" - notification doesn't happen sometimes, indicating that the plugin isn't firing..?
Thanks for the help!
Is it possible ro reset a sim lock pin..???
Sent from my X10 TripNMiUI-Iris using Tapatalk
@strictlyrude27
So, let me see if I understand...
It works fine when you run one command, one after another but you have issues when running multiple commands simultaneously?
Is that it?
Sent from my Thunderbolt
@Z3US911
That's an interesting thought. I'll have to look into that.
Thanks for the suggestion!
Sent from my Thunderbolt
intangibleDroid said:
@strictlyrude27
So, let me see if I understand...
It works fine when you run one command, one after another but you have issues when running multiple commands simultaneously?
Is that it?
Sent from my Thunderbolt
Click to expand...
Click to collapse
Upon further investigation it looks like scripts aren't firing if I manually select the notification to end the script. I set up my profiles to make sure exactly 1 script fires at a time to avoid collisions; when they all fire and exit properly rather than being aborted, I can re-run as much as I'd like.
Thank you very much, just what I needed!
Sent from my Nexus S 4G using XDA Premium App
@strictlyrude27
Are you referring to the cancel script option you get after you click the script running notification?
If so, that function is actually a little buggy at the moment. It may not actually cancel the script.
Is that what may be causing the problem?
Sent from my Thunderbolt
intangibleDroid said:
@strictlyrude27
Are you referring to the cancel script option you get after you click the script running notification?
If so, that function is actually a little buggy at the moment. It may not actually cancel the script.
Is that what may be causing the problem?
Sent from my Thunderbolt
Click to expand...
Click to collapse
That could be it! I haven't had to cancel a script since originally posting that, so hopefully I never run into it again..
This is great!
Now I am able to disable the pattern lock while connected to my Wifi.
On the Turn On/Off GPS....does that mean I can re-use an old task where GPS gets turned off when I exit Google Maps/Navigation like it used to in <2.2?
I've been using this plugin with ZERO issues to disable the pin lock when I enter known WiFi and to enable it otherwise.
@SilentSummer
You should be able to enable/disable GPS like you were able to prior to GB
intangibleDroid said:
@SilentSummer
You should be able to enable/disable GPS like you were able to prior to GB
Click to expand...
Click to collapse
Will give it a try, thanks
Edit: Works great
this may be a dumb question, but is the helper supposed to be on the market somewhere? or is it the manual download only? I only ask because the manual download is worded like you should only use it if you have problems...
Hi,
I use a program called "CELLBROKER," and whenever I get it I need to put my password and enter ... I created a profile in TASKER to put the password ( Input - Type - "my password"), but I do not know how to use a command in linux to run automatically enter.
Can someone help me?
Thanks a lot!
gohamstergo said:
this may be a dumb question, but is the helper supposed to be on the market somewhere? or is it the manual download only? I only ask because the manual download is worded like you should only use it if you have problems...
Click to expand...
Click to collapse
The Helper is not available on the market. I currently have it hosted at my google code site.
If you want to install it, use the install option in the settings of my app. The manual download is offered if that fails for any reason.
Hope this helps.
Sent from my Thunderbolt

TASKER profiles 2013

Alright, lets show off some tasker profiles! Im always interested in ideas other have cooked up. I'll show you guys some stuff i came up with.
Hit thanks if you like it!
Ill start populating the post. I realize that tasker profiles are a royal pain in the butt to read, so im going to create some colapsable projects.
Ill also color code certain things and ill try to stay consistent..Ill try to add a project every day. So the first one will be my car project.
Tips:
To avoid confusion with all the collapse-ables, close the ones youre done reading.
Have Secure Settings installed, and swipe to the helper section and install helper
HAve autovoice, you gotta start using this at some point..its pretty awesome.
%PACTIVE is a variable that means "profiles active"
you can long press a profile and press the settings button on the top right and if you scroll down you can uncheck the "display in notification" if you dont want your tasker notification to be over-populated
Projects will be Blue
Profiles will be orange
Enter tasks will be green.
Exit Tasks will be red.
If statements will start and end with pink.....end if
CAR PROJECT
This project has a couple of tasks that do stuff that are related to the car. hence the name.. It does the following:
1: When you get in the car, the screen will stay on, and if it does somehow close, the keyguard will be disabled. This prevents too much fiddling with the phone...This is turned off when you get out.
2: Alters volume levels and brightness when getting in and out of the car.
3: Marks down what time you got out of the car, starts counting how long youve been out of your car, and takes the GPS coordinates of your location when you get out of the car.
The purpose of this is so youll always know when you got out of the car, how long you have been parked (in case of parking meters, parking hours etc..) and allows you to navigate to your car so youll never lose it after parking in some obscure location.
This is done with minimalistic text to display that info, and upon pressing it, will activate the task to navigate back to your car. Ill attach a screen shot.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
4: When someone calls, my phone asks me if i want to answer it, instead of ringing, upon yes, it does, upon no it doesnt.
5: reads me my text, I have nothing to hide, but you could easily implement the yes/no prompt if you want it read to you or not.
6: turns wifi on, gps on, and you can add a bluetooth on if you want.
HERE ARE THE PROFILES:
Profile: Car Mode
Context:
State -> Docked any
State -> Headset plugged in
But really this could be anything.
Tasks:
Enter Task:
Load App -> Car Home (http://blog.brianmoses.net/2012/10/manually-installing-googles-car-home-app.html)
Secure Settings -> GPS Enabled
Wifi -> Off
System Volume -> 7
Media Volume -> 15
Auto Brightness -> on
Notification Volume -> 7
Secure Settings -> Keep Display On
Secure Settings -> Keyguard Disabled
Variable Set -> %SEARCHWIFI ~ 0 (Youll see why later)
Exit Task:
Variable Set %HOURSINCE ~ 0
Variable Set %MINSINCE ~ 0
IF - %TIME > 12.00 {
MINIMALISTIC TEXT -> (variable) ampm = PM
Variable Set -> %PARKEDTIME to (%TIME-12.00)
}
else if - %TIME < 12.00 {
MINIMALISTIC TEXT -> ampm = AM
%PARKEDTIME to %TIME
}
end if
MINIMALISTIC TEXT parkedtime = %PARKEDTIME
Secure Settings -> Keyguard Enabled
Secure Settings -> Lock Device
Secure Settings -> Keep display on - never
Kill App -> Car Home
Get Location -> GPS, timeout -> 100seconds
Variable Set -> %PARKEDAT ~ %LOC
Secure Settings -> GPS Disabled
Variable Set %SEARCHWIFI ~ 1
Profile: Update Time Since (Update what minimalistic text will show)
This counts how long youve been parked for and assigned an HOUR variable and a MINUTE variable to minimalistic text.
Since the "repeat" thing in tasker has a minimum of 2 minutes, i just made two of the same tasks and made the other wait a minute before starting.
Conext:
Every 2 minutes
Tasks: Timesince1
If - %TIMESINCE = 60 {
Variable Set -> %HOURSINCE to %HOURSINCE + 1 (do maths)
Variable Set -> %MINSINCE to 0
MINIMALISTIC TEXT - minsince = %MINSINCE
MINIMALISTIC TEXT - hoursince = %HOURSINCE
}
end if
if - %TIMESINCE < 60 {
Variable Set -> %MINSINCE to (%MINSINCE + 1) (do maths)
MINIMALISTIC TEXT -> minsince = %MINSINCE
MINIMALISTIC TEXT -> hoursince = %HOURSINCE
}
end if
Timesince2
wait -> 1 minute
If - %TIMESINCE = 60 {
Variable Set -> %HOURSINCE to %HOURSINCE + 1 (do maths)
Variable Set -> %MINSINCE to 0
MINIMALISTIC TEXT - minsince = %MINSINCE
MINIMALISTIC TEXT - hoursince = %HOURSINCE
}
end if
if - %TIMESINCE < 60 {
Variable Set -> %MINSINCE to (%MINSINCE + 1) (do maths)
MINIMALISTIC TEXT -> minsince = %MINSINCE
MINIMALISTIC TEXT -> hoursince = %HOURSINCE
}
end if
Profile: Read Text
context:
Received Text any
Variable Value -> %PACTIVE ~ *Car Mode*
Task: Read SMS
Silent mode -> on
Say -> %SMSRN says. %SMSRB
silent mode-> off
Profile: Car Call (Asks me if i want to answer the call or not, then the response will be passed off to another profile called CAR RESPONSE)
context:
Call incoming
Variable Value - %PACTIVE ~ *Car Mode*
Enter Task:
Media Control -> Pause (simulate media button)
Ringer Volume -> 0
Say -> Should i answer this call?
Auto voice recognize (Triggers autovoice to listen to you)
Exit Task:
Media Control Play
Profile: Call Response
Do the same for a "NO response" except the command in autovoice will be "no" and the task will end the call.
context:
AutoVoice recognized -> check event behavior, command = yes
Variable Value -> %PACTIVE ~ *Car Mode*
Task: Take Call
Take Call...lol
THIS ONE IS A TASK
Make this task so you can set your minimalistic texts tap behavior to open a tasker shortcut and then select this one.
IT will allow you to navigate to your car when you tap the widget, you may need to change the wait task if it takes longer for your phone to turn on GPS (not get a lock)
Create a task:
Secure Settings GPS Enabled
Wait 3 seconds
Open Map (this is a task under the APP task) Mode-> Navigate To, Address %PARKEDAT
TO SET UP MINIMALISTIC TEXT:
Im not going to tell you what the font should be, what size or what color the font should be etc etc, ill just tell you how to add the variables to minimalistic text
Tap and hold on your homescreen and add a 2x2 Widget
Delete all the premade stuff
if you swipe to the layout tab and press the "+" youll get a bunch of options to add stuff.
Swipe over to the MISC tab, and add a static text and a local variable. Theres a bug in Minimalistic text where if you add a bunch of local variables at once, itll make the values of them all the same..so youll have to add the things one at a time..pain in the butt i know.
so add a static text and a local variable. over and over till you have 4 local variables and 3 static texts.
have 3 rows, delete the ones you dont need by tapping the 3 dots and pressing delete row.
I have it set up like this:
----------------------------------------------------------------------------
[Static text = Parked At:]
----------------------------------------------------------------------------
[Locale Variable = parkedtime] [locale variable = ampm]
----------------------------------------------------------------------------
(optional)[static text icon = user interface-> hand pointy thingy]
----------------------------------------------------------------------------
[static text = Parked For: ]
----------------------------------------------------------------------------
[locale variable = hoursince] [static text = Hrs.] [locale variable = minsince]
----------------------------------------------------------------------------
Then swipe over to "Tap Behaviour" and check "start another activity"
press select and activity or shortcut
swipe right to the shortcut tab
select the "Find Car" task we created earlier
pick an icon for it if it asks by pressing the button on the lower right hand corner
END CAR PROJECT
WIFI PROJECT
These tasks will automate turning your wifi on and off based on locations you are at often. I.E. your house, your work, your buddies house, your girlfriends house, etc...
It works via the cell near state, however im not perfectly clear on how much battery this drains, so i took an extra precaution by having a %SEARCHWIFI variable, set to either 1, or 0, (on or off, respectively). This variable's value is easily changed in any profile, so its easy to avoid conflicting profiles, as well as saves battery by not continuously searching for cellphone towers.
What i do with this, is have a profile, Near Home for example, and when im in a new location i want to automatically connect to, i just clone it, change the name, re-search cellphone towers and voila! I have like 10 of these and it works perfectly. So ill only make a "Near Home" profile, then you can clone that.
I like to have a pattern lock when im out and about, but i dont like having one when im at a buddies house, or at my own house, so i have tasker deal with that. If you want this, first you have to set a pattern lock code. then this will take effect.
Profile: Search Wifi?
Context:
Not Wifi Connected (check invert after the wifi connected task)
Variable Value -> %PACTIVE !~ *Car Mode*
Enter Task:
Variable Set -> %SEARCHWIFI ~ 1
Exit Task:
Variable Set-> %SEARCHWIFI ~ 0
Profile: Wifi Time-Out
If you are near one of the places and you somehow disconnect, tasker will wait 20 seconds to see if youre still disconnected and if you are , turn wifi off, turn the pattern lock on, and in 10 minutes, if youre still in the area it will try to connect again. of course you can change the times to whatever you want.
Context:
Not Wifi Connected
task:
Wait 20 seconds
if - %WIFII !~ *connect*
Secure settings -> pattern lock enabled
Variable set -> %SEARCHWIFI ~ 0
Wifi -> off
end if
wait 10 minutes
Variable set -> %SEARCHWIFI ~ 1
Profile: Near Home
context:
Cell near (press scan)
state -> Variable Value -> %SEARCHWIFI ~ 1
Enter Task:
Wifi On
Secure Settings -> Pattern lock disabled
exit Task:
if - %WIFII !~ *connect* (i know this is overkill)
secure settings -> patternlock disabled
wifi off
end if
END WIFI PROJECT
REQUESTS PROJECT:
Voice commands in car to perform various responses to a received text, requested by oscar615
NOTE: autovoice recognize doesnt play well with pop-up sms windows...sometimes works, sometimes only works after you close the pop up.
oscar615 said:
Wow, your car code is almost what I was thinking about earlier today. About the only difference is when I get a text I would like it to give me 3 audible choices. 1- send a pre recorded text letting them know i am in the car. 2- Give me the option to do nothing and 3- the option to call the person who sent the text and have the phone set to speaker, and pause any music that is on. The problem is I am so new to tasker and really have no idea how to do this. I will study your code to see if I can learn what you did and maybe add the other options to it. I want it to all be voice responses and and prompts.
Do you have any idea what needs to be added to what you have created in order to get what I want?
Anyway great work. Thanks for doing this thread and posting your profiles.
Click to expand...
Click to collapse
Profile: Driving Text
context:
event -> received text any
state -> variable value - %PACTIVE ~ *car mode* (or whatever profile you have for your car)
task:
silent mode on
misc -> say -> Text received by %SMSRN. What should i do?
wait 150ms
plugin -> autovoice recognize
silent mode off
Profile: Cant talk
context:
autovoice recognized -> check event behavior -> command = can't
state -> variable value - %PACTIVE ~ *car mode*
task:
phone -> send sms -> number: %SMSRF, Message: Sorry, im driving, cant talk right now, check 'store in messaging app'
profile: call back
context: plugin -> autovoice recognized, check event behavior, command = call
state -> variable value - %PACTIVE ~ *car mode*
task:
call -> number: %SMSRF, check auto dial
With autovoice, if the command is "can't" you can say anything, and as long as "can't" is somewhere in the sentence, it will perform that action. unless you specified otherwise, but i wont get into that. If you say anything other than those, it will just close.
end oscar's request
END REQUEST PROJECT
Please kindly attach the xml files as well.
Sent from my SHV-E210S
ecoolcat said:
Please kindly attach the xml files as well.
Sent from my SHV-E210S
Click to expand...
Click to collapse
Yes please!
Tunein Radio request
SO this looked like a promising thread to ask this in, if it hasn't died already....
I would like to set a task to start tunein radio pro, then subtask different stations with commands like "tasker radio paradise", "tasker radio local 1", "tasker radio local 2", "tasker radio record"(to save the currently playing stream) "tasker radio stop record", etc.
Is it possible for tasker to take command of an app and have it do custom calls for app specific functions? I'm a newb dealing with tasker as I don't even own the app yet. However if I could confirm these types of commands work I'll bite in a heartbeat.
Coyote0420 said:
SO this looked like a promising thread to ask this in, if it hasn't died already....
I would like to set a task to start tunein radio pro, then subtask different stations with commands like "tasker radio paradise", "tasker radio local 1", "tasker radio local 2", "tasker radio record"(to save the currently playing stream) "tasker radio stop record", etc.
Is it possible for tasker to take command of an app and have it do custom calls for app specific functions? I'm a newb dealing with tasker as I don't even own the app yet. However if I could confirm these types of commands work I'll bite in a heartbeat.
Click to expand...
Click to collapse
Tasker does not control apps.
knx2 said:
Tasker does not control apps.
Click to expand...
Click to collapse
Ah.. that's disappointing. Was really hoping to have a setup where I could just tell it what station to play. I would assume the only way to do what I'd like would be to save the stream url's and have tasker open them with whatever app can play a stream directly?
As a side question, is there an app that can use the "draw over other apps" ability of android that can assume control and setup complex scripting of commands? Root would of course be a requirement but are there other limitations to android that would prevent such an app?
Coyote0420 said:
Ah.. that's disappointing. Was really hoping to have a setup where I could just tell it what station to play. I would assume the only way to do what I'd like would be to save the stream url's and have tasker open them with whatever app can play a stream directly?
As a side question, is there an app that can use the "draw over other apps" ability of android that can assume control and setup complex scripting of commands? Root would of course be a requirement but are there other limitations to android that would prevent such an app?
Click to expand...
Click to collapse
Yeah tasker does that, and it can do what you tried explaining earlier..although its a bit clunky.
You just tell tasker to do things through the input -> d-pad option while making your task. You can also emulate swipes and touches through a shell command called input. Heres the link explaining how, its quite simple..
http://www.pocketables.com/2013/07/how-to-emulate-touch-input-using-tasker-and-root.html
Although I did not understand, but thank you for sharing. :good:
Anti -Theft Profiles
Well , here are some of my Anti -Theft profiles!
There are quite afew but they all work together to make the best Anti - Theft app
SMS GPS - remotely on gps
SMS WIFI - remotely on wifi
Wifi status - Get the wifi status via sms
Battery Status - Get battery level via sms
SMS lock phone - Lock phone via sms (By enabling keyguard with specific pin)
Detect Sim Crad change - Detects if sim card is swapped and automatically sends you an SMS using the swapped number.
eBoody said:
Alright, lets show off some tasker profiles! Im always interested in ideas other have cooked up. I'll show you guys some stuff i came up with.
Hit thanks if you like it!
Ill start populating the post. I realize that tasker profiles are a royal pain in the butt to read, so im going to create some colapsable projects.
Ill also color code certain things and ill try to stay consistent..Ill try to add a project every day. So the first one will be my car project.
Tips:
To avoid confusion with all the collapse-ables, close the ones youre done reading.
Have Secure Settings installed, and swipe to the helper section and install helper
HAve autovoice, you gotta start using this at some point..its pretty awesome.
%PACTIVE is a variable that means "profiles active"
you can long press a profile and press the settings button on the top right and if you scroll down you can uncheck the "display in notification" if you dont want your tasker notification to be over-populated
Projects will be Blue
Profiles will be orange
Enter tasks will be green.
Exit Tasks will be red.
If statements will start and end with pink.....end if
CAR PROJECT
This project has a couple of tasks that do stuff that are related to the car. hence the name.. It does the following:
1: When you get in the car, the screen will stay on, and if it does somehow close, the keyguard will be disabled. This prevents too much fiddling with the phone...This is turned off when you get out.
2: Alters volume levels and brightness when getting in and out of the car.
3: Marks down what time you got out of the car, starts counting how long youve been out of your car, and takes the GPS coordinates of your location when you get out of the car.
The purpose of this is so youll always know when you got out of the car, how long you have been parked (in case of parking meters, parking hours etc..) and allows you to navigate to your car so youll never lose it after parking in some obscure location.
This is done with minimalistic text to display that info, and upon pressing it, will activate the task to navigate back to your car. Ill attach a screen shot.
4: When someone calls, my phone asks me if i want to answer it, instead of ringing, upon yes, it does, upon no it doesnt.
5: reads me my text, I have nothing to hide, but you could easily implement the yes/no prompt if you want it read to you or not.
6: turns wifi on, gps on, and you can add a bluetooth on if you want.
HERE ARE THE PROFILES:
Profile: Car Mode
Context:
State -> Docked any
State -> Headset plugged in
But really this could be anything.
Tasks:
Enter Task:
Load App -> Car Home (http://blog.brianmoses.net/2012/10/manually-installing-googles-car-home-app.html)
Secure Settings -> GPS Enabled
Wifi -> Off
System Volume -> 7
Media Volume -> 15
Auto Brightness -> on
Notification Volume -> 7
Secure Settings -> Keep Display On
Secure Settings -> Keyguard Disabled
Variable Set -> %SEARCHWIFI ~ 0 (Youll see why later)
Exit Task:
Variable Set %HOURSINCE ~ 0
Variable Set %MINSINCE ~ 0
IF - %TIME > 12.00 {
MINIMALISTIC TEXT -> (variable) ampm = PM
Variable Set -> %PARKEDTIME to (%TIME-12.00)
}
else if - %TIME < 12.00 {
MINIMALISTIC TEXT -> ampm = AM
%PARKEDTIME to %TIME
}
end if
MINIMALISTIC TEXT parkedtime = %PARKEDTIME
Secure Settings -> Keyguard Enabled
Secure Settings -> Lock Device
Secure Settings -> Keep display on - never
Kill App -> Car Home
Get Location -> GPS, timeout -> 100seconds
Variable Set -> %PARKEDAT ~ %LOC
Secure Settings -> GPS Disabled
Variable Set %SEARCHWIFI ~ 1
Profile: Update Time Since (Update what minimalistic text will show)
This counts how long youve been parked for and assigned an HOUR variable and a MINUTE variable to minimalistic text.
Since the "repeat" thing in tasker has a minimum of 2 minutes, i just made two of the same tasks and made the other wait a minute before starting.
Conext:
Every 2 minutes
Tasks: Timesince1
If - %TIMESINCE = 60 {
Variable Set -> %HOURSINCE to %HOURSINCE + 1 (do maths)
Variable Set -> %MINSINCE to 0
MINIMALISTIC TEXT - minsince = %MINSINCE
MINIMALISTIC TEXT - hoursince = %HOURSINCE
}
end if
if - %TIMESINCE < 60 {
Variable Set -> %MINSINCE to (%MINSINCE + 1) (do maths)
MINIMALISTIC TEXT -> minsince = %MINSINCE
MINIMALISTIC TEXT -> hoursince = %HOURSINCE
}
end if
Timesince2
wait -> 1 minute
If - %TIMESINCE = 60 {
Variable Set -> %HOURSINCE to %HOURSINCE + 1 (do maths)
Variable Set -> %MINSINCE to 0
MINIMALISTIC TEXT - minsince = %MINSINCE
MINIMALISTIC TEXT - hoursince = %HOURSINCE
}
end if
if - %TIMESINCE < 60 {
Variable Set -> %MINSINCE to (%MINSINCE + 1) (do maths)
MINIMALISTIC TEXT -> minsince = %MINSINCE
MINIMALISTIC TEXT -> hoursince = %HOURSINCE
}
end if
Profile: Read Text
context:
Received Text any
Variable Value -> %PACTIVE ~ *Car Mode*
Task: Read SMS
Silent mode -> on
Say -> %SMSRN says. %SMSRB
silent mode-> off
Profile: Car Call (Asks me if i want to answer the call or not, then the response will be passed off to another profile called CAR RESPONSE)
context:
Call incoming
Variable Value - %PACTIVE ~ *Car Mode*
Enter Task:
Media Control -> Pause (simulate media button)
Ringer Volume -> 0
Say -> Should i answer this call?
Auto voice recognize (Triggers autovoice to listen to you)
Exit Task:
Media Control Play
Profile: Call Response
Do the same for a "NO response" except the command in autovoice will be "no" and the task will end the call.
context:
AutoVoice recognized -> check event behavior, command = yes
Variable Value -> %PACTIVE ~ *Car Mode*
Task: Take Call
Take Call...lol
THIS ONE IS A TASK
Make this task so you can set your minimalistic texts tap behavior to open a tasker shortcut and then select this one.
IT will allow you to navigate to your car when you tap the widget, you may need to change the wait task if it takes longer for your phone to turn on GPS (not get a lock)
Create a task:
Secure Settings GPS Enabled
Wait 3 seconds
Open Map (this is a task under the APP task) Mode-> Navigate To, Address %PARKEDAT
TO SET UP MINIMALISTIC TEXT:
Im not going to tell you what the font should be, what size or what color the font should be etc etc, ill just tell you how to add the variables to minimalistic text
Tap and hold on your homescreen and add a 2x2 Widget
Delete all the premade stuff
if you swipe to the layout tab and press the "+" youll get a bunch of options to add stuff.
Swipe over to the MISC tab, and add a static text and a local variable. Theres a bug in Minimalistic text where if you add a bunch of local variables at once, itll make the values of them all the same..so youll have to add the things one at a time..pain in the butt i know.
so add a static text and a local variable. over and over till you have 4 local variables and 3 static texts.
have 3 rows, delete the ones you dont need by tapping the 3 dots and pressing delete row.
I have it set up like this:
----------------------------------------------------------------------------
[Static text = Parked At:]
----------------------------------------------------------------------------
[Locale Variable = parkedtime] [locale variable = ampm]
----------------------------------------------------------------------------
(optional)[static text icon = user interface-> hand pointy thingy]
----------------------------------------------------------------------------
[static text = Parked For: ]
----------------------------------------------------------------------------
[locale variable = hoursince] [static text = Hrs.] [locale variable = minsince]
----------------------------------------------------------------------------
Then swipe over to "Tap Behaviour" and check "start another activity"
press select and activity or shortcut
swipe right to the shortcut tab
select the "Find Car" task we created earlier
pick an icon for it if it asks by pressing the button on the lower right hand corner
END CAR PROJECT
WIFI PROJECT
These tasks will automate turning your wifi on and off based on locations you are at often. I.E. your house, your work, your buddies house, your girlfriends house, etc...
It works via the cell near state, however im not perfectly clear on how much battery this drains, so i took an extra precaution by having a %SEARCHWIFI variable, set to either 1, or 0, (on or off, respectively). This variable's value is easily changed in any profile, so its easy to avoid conflicting profiles, as well as saves battery by not continuously searching for cellphone towers.
What i do with this, is have a profile, Near Home for example, and when im in a new location i want to automatically connect to, i just clone it, change the name, re-search cellphone towers and voila! I have like 10 of these and it works perfectly. So ill only make a "Near Home" profile, then you can clone that.
I like to have a pattern lock when im out and about, but i dont like having one when im at a buddies house, or at my own house, so i have tasker deal with that. If you want this, first you have to set a pattern lock code. then this will take effect.
Profile: Search Wifi?
Context:
Not Wifi Connected (check invert after the wifi connected task)
Variable Value -> %PACTIVE !~ *Car Mode*
Enter Task:
Variable Set -> %SEARCHWIFI ~ 1
Exit Task:
Variable Set-> %SEARCHWIFI ~ 0
Profile: Wifi Time-Out
If you are near one of the places and you somehow disconnect, tasker will wait 20 seconds to see if youre still disconnected and if you are , turn wifi off, turn the pattern lock on, and in 10 minutes, if youre still in the area it will try to connect again. of course you can change the times to whatever you want.
Context:
Not Wifi Connected
task:
Wait 20 seconds
if - %WIFII !~ *connect*
Secure settings -> pattern lock enabled
Variable set -> %SEARCHWIFI ~ 0
Wifi -> off
end if
wait 10 minutes
Variable set -> %SEARCHWIFI ~ 1
Profile: Near Home
context:
Cell near (press scan)
state -> Variable Value -> %SEARCHWIFI ~ 1
Enter Task:
Wifi On
Secure Settings -> Pattern lock disabled
exit Task:
if - %WIFII !~ *connect* (i know this is overkill)
secure settings -> patternlock disabled
wifi off
end if
END WIFI PROJECT
REQUESTS PROJECT:
Voice commands in car to perform various responses to a received text, requested by oscar615
NOTE: autovoice recognize doesnt play well with pop-up sms windows...sometimes works, sometimes only works after you close the pop up.
Profile: Driving Text
context:
event -> received text any
state -> variable value - %PACTIVE ~ *car mode* (or whatever profile you have for your car)
task:
silent mode on
misc -> say -> Text received by %SMSRN. What should i do?
wait 150ms
plugin -> autovoice recognize
silent mode off
Profile: Cant talk
context:
autovoice recognized -> check event behavior -> command = can't
state -> variable value - %PACTIVE ~ *car mode*
task:
phone -> send sms -> number: %SMSRF, Message: Sorry, im driving, cant talk right now, check 'store in messaging app'
profile: call back
context: plugin -> autovoice recognized, check event behavior, command = call
state -> variable value - %PACTIVE ~ *car mode*
task:
call -> number: %SMSRF, check auto dial
With autovoice, if the command is "can't" you can say anything, and as long as "can't" is somewhere in the sentence, it will perform that action. unless you specified otherwise, but i wont get into that. If you say anything other than those, it will just close.
end oscar's request
END REQUEST PROJECT
Click to expand...
Click to collapse
Hey, any chance you would be willing to post the xml files for that car project ? im really interested in it
Oi.
N5*S.K.6*E.X.1.0*ART*TWRP.2.7.1.0*rad.2.08
n5sk6gapps127artex1.0twrp2.7.1.0rd2.08
n5sk6g'ps127ex1arttwrp2710v4a2330rd208
helo?
n5sk6.4.v1gapps157artex1.0twrp2.7.1.0rd2.08
----------------------------------------------------------------------------
have doubts about Slim? click here:
http://slimroms.net/index.php/faq
---------- Post added at 10:28 AM ---------- Previous post was at 10:26 AM ----------
[emoji20]
n5sk6.4.v1gapps157artex1.0twrp2.7.1.0rd2.08
----------------------------------------------------------------------------
have doubts about Slim? click here:
http://slimroms.net/index.php/faq
Hey there
Sent from my LG-D851 using XDA Free mobile app
Hi, Could I request a tasker profile?
I read that you can kinda export to an app; and that´s what i´m looking
http://android.stackexchange.com/qu...ll-pattern-lock-gets-activated-after-interval
there´s even a Tasker script but i don´t know how to do...
eBoody said:
Hey there
Sent from my LG-D851 using XDA Free mobile app
Click to expand...
Click to collapse
need your help to complete a task i created, i need to send my gps coordinates to any number as a message and to my Email.
what i have done so far is :
mobile data on
secure settings gps enabled
get location
-----------------------------------------How do i send the captured gps location to a number and my email?
secure settings gps disabled
in addition to the above if there is a way to keep sending the updated coordinates that would be fabulous, this is for tracing the device if it is lost or stolen.
Edinho376 said:
Hi, Could I request a tasker profile?
I read that you can kinda export to an app; and that´s what i´m looking
http://android.stackexchange.com/qu...ll-pattern-lock-gets-activated-after-interval
there´s even a Tasker script but i don´t know how to do...
Click to expand...
Click to collapse
tyagi2014 said:
need your help to complete a task i created, i need to send my gps coordinates to any number as a message and to my Email.
what i have done so far is :
mobile data on
secure settings gps enabled
get location
-----------------------------------------How do i send the captured gps location to a number and my email?
secure settings gps disabled
in addition to the above if there is a way to keep sending the updated coordinates that would be fabulous, this is for tracing the device if it is lost or stolen.
Click to expand...
Click to collapse
I made a PROJECT with both of your requests, that means you import it long pressing the home icon on the bottom left of tasker and press import, then navigate where you saved this xml
https://docs.google.com/file/d/0B7iTLxpFAyDRVFhvUDVhOVhJdFk/preview?pli=1
Sent from my LG-D851 using XDA Free mobile app
Thanks mate
Sent from my GT-N7100 using Tapatalk
eBoody said:
I made a PROJECT with both of your requests, that means you import it long pressing the home icon on the bottom left of tasker and press import, then navigate where you saved this xml
https://docs.google.com/file/d/0B7iTLxpFAyDRVFhvUDVhOVhJdFk/preview?pli=1
Sent from my LG-D851 using XDA Free mobile app
Click to expand...
Click to collapse
Bro, I really appreciate your efforts to make this but I honestly must say that I don´t know where or how to use this project. Sorry sorry sorry
I don´t have tasker, neither the demo version; so my question is:
Is there a way to export this project as an apk? Or could i make this work with any free app?
Don´t give up on me hahahaha :fingers-crossed:
Buy Tasker. It's two trips to the vending machine. If you can afford a smart phone and the bill to go with it then support the people that make the apps.
Edinho376 said:
Bro, I really appreciate your efforts to make this but I honestly must say that I don´t know where or how to use this project. Sorry sorry sorry
I don´t have tasker, neither the demo version; so my question is:
Is there a way to export this project as an apk? Or could i make this work with any free app?
Don´t give up on me hahahaha :fingers-crossed:
Click to expand...
Click to collapse
Even if I were to export it as an app, you would still need tasker installed for the app to work
Aside from that, tasker is the most amazing app ever created bar none, by far. It's a huge reason android is king. I really recommend you get it and tinker with it on your free time.
Sent from my LG-D851 using XDA Free mobile app

Change keys light duration whit terminal..

Hello,
Small guide to change the soft key light duration.
Download emulator.
Open and grant permissions (su)
After this you have to digit
settings put system button_key_light 0
THIS FOR ALWAYS OFF..
IF YOU NEED ALWAYS ON DIGIT
settings put system button_key_light -1
NEED 1.5 SEC? NO PROBLEM DIGIT
settings put system button_key_light 1500
FOR 6 SEC
settings put system button_key_light 6000
NO OTHER ENTRY ARE AVAILABLE..
TESTED ON S7 EDGE..EXYNOS G935F..
If you share please enter the link of my post. thank you.
Also works well with Tasker and the run shell command. I have them disabled at night when reading as they are to bright. Didn't know about the different time settings.

Android Q- cannot disable "dark mode"

This is on by default in Android Q Beta 1 and can't be disabled as far as I know. I've checked everywhere and developer options. Anyone notice the same?
I read in a lot of posts that there is no toggle in DP1, you have to run an adb command.
If you're familiar with tasker, you can just create a quick toggle that runs those commands easily.
you can also factory reset. If you factory reset, you can turn on system wide dark mode by turning on battery saver.
Have you tried to turn off the battery saver option?
Go to the play store and download "settings database editor"
Open it and open the drop down menu that says system table and select secure table.
Then find ui_night_mode in the big list tap it and select edit value and set it to 0, 1, or 2. 0 = Auto mode 1 = always bright mode 2 = always dark mode.
StykerB said:
Go to the play store and download "settings database editor"
Open it and open the drop down menu that says system table and select secure table.
Then find ui_night_mode in the big list tap it and select edit value and set it to 0, 1, or 2. 0 = Auto mode 1 = always bright mode 2 = always dark mode.
Click to expand...
Click to collapse
I haven't this parameter in my pixel 3 under Android Q.
I have search on other table and same
titof174 said:
I haven't this parameter in my pixel 3 under Android Q.
I have search on other table and same
Click to expand...
Click to collapse
Have the same issue...can't find the value in the table.
Installed Q over the air with not activated "darkmode"
Gordietm said:
You can toggle dark mode with this:
https://www-xda--developers-com.cdn...a-developers.com/android-q-toggle-dark-theme/
Click to expand...
Click to collapse
This trick was working

Question ADB command for Edit the Quick panel? Remove icons with adb?

After connecting the watch over Wi-Fi to ADB server, how to delete each of the "Quick Panel" apps?
Do not think you can actually remove these items. They are not apps. You can only remove them from the panel with the Wear app.
captain_tyr said:
After connecting the watch over Wi-Fi to ADB server, how to delete each of the "Quick Panel" apps?
Click to expand...
Click to collapse
That's not really what ADB is used for. It would be faster and easier to remove them by swiping over and tapping the "+", then tap the "-" for each quick launch icon you want removed from the panel.
Yes.. I know for manual steps.. I'm building automatisation script using adb, so I can setup multiple watches to single application mode for one project. The script need to clean up watch from bulk apps, install requred apk, lock watch to that app (user should not be able to access tiles, applications and other stuff).
Current state: My script can enrol and setup 50 watches, all at same time. The only thing what is left in script to finish is cleaning up the quick panel. I know I can record screen and mimic swipes and taps over adb, but I was thinking if there is a way to get package name and activity from shortcuts in quick panel and do it simpler.
If you wake up the watch with (wrist up). How to open "Quick Settings panel" on Samsung Watch 4 and remove specific shortcuts, using ADB?
When I do:
adb shell dumpsys activity broadcasts | grep -iE ".+\.[0-9A-Z_\-]+:$"
I get:
com.google.android.apps.wearable.systemui.CLOSE_QUICK_PANEL
com.google.android.apps.wearable.systemui.DISABLE_EXPAND_QUICK_PANEL
com.google.android.apps.wearable.systemui.ENABLE_EXPAND_QUICK_PANEL
com.google.android.apps.wearable.systemui.OPEN_QUICK_PANEL
com.google.android.apps.wearable.systemui.QUICK_PANEL_STATE_CLOSED
com.google.android.apps.wearable.systemui.QUICK_PANEL_STATE_OPENED
All of this commands do not work:
adb shell am start com.google.android.apps.wearable.systemui.OPEN_QUICK_PANEL
adb shell am start -n com.google.android.apps.wearable.systemui.OPEN_QUICK_PANEL
adb shell am start -a com.google.android.apps.wearable.systemui.OPEN_QUICK_PANEL
I figure out how to navigate between shortcuts in Quick panel, but I can't press on "-" to disable (remove them). DPAD_ENTER do not work.
For navigating I use:
Array=("DPAD_LEFT" "DPAD_RIGHT" "DPAD_UP" "DPAD_DOWN")
for key in "${Array[@]}"; do
echo "$keypress";
adb shell input keyevent "$key";
done

Categories

Resources