Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [automation]

Trigger actions to be automatically executed on specific events, such as e.g. time, location, key-presses -- or even sensors, connected networks, etc. This tag is for "generic" questions on the field; please check the tag-wiki for more specific tags.

0
votes
0answers
10 views

How to read stderr from UiAutomator's executeShellCommand? [closed]

I know per the documentation of executeShellCommand that you can run adb shell commands and read the standard output from the FileDescriptor it returns. But what about the standard error stream? Is ...
0
votes
0answers
27 views

Query Contacts table programatically using UiAutomator executeShellCommand [closed]

I'm trying to automate some actions involving the contacts table, using UiAutomator. But I'm having this weird problem related to shell escape characters. I know that I can do this from the command ...
0
votes
1answer
21 views

How to allow an app to take screenshots automatically?

How can I allow an app to automatically take screenshot? I'm not talking about apps disabling screenshots on them, I can take screenshot of the thing manually, but I'd like to automate it. I use the ...
0
votes
0answers
57 views

How to automatically normalize loudness system-wide?

I have to constantly adjust the volume, especially to turn down ads and loud action scenes or dramatic soundtrack swells in video, but turn up to keep dialog audible, etc. I need something that does ...
0
votes
0answers
41 views

Using Termux to Backups Android's Contact List

In Termux's website's main page, they write (among other stuff): "use rsync to store backups of your contact list on a remote server" This makes me wonder: Android's Contact List is stored in an ...
0
votes
0answers
29 views

How do you enable auto-complete in the contact bar when composing a message?

Pretty much the title, I'm brand new to android and this is the one thing that has been annoying me! As it is now, I have to type the entire contact name and then begin composing before my phone ...
0
votes
1answer
101 views

Mute Phone Audio when Headphones are Unplugged

I only ever unmute my phone when my headphones are plugged into it. I'm looking to automate this process. Here's what I want to happen: if (headphones are unplugged) { mute all audio on the phone ...
1
vote
2answers
101 views

How would I automate repetitive tasks in Android?

There are many tasks I do repetitively, like connect a Bluetooth headset or connect to a hotspot. How do I typically "code" this? How do I execute? Is there a consistent library or package manager, ...
1
vote
2answers
310 views

“Allow USB debugging” keeps on popping evene when “Always allow from this computer” is checked in automation testing

We are doing automation testing on mobile devices with Appium but testing fails because of the popup 'Allow USB debugging' even though the device is already connected through 'adb connect' and 'adb ...
1
vote
0answers
54 views

How to enable/disable lock screen from shell script when a special wifi SSID is present?

My Java skills are low, but I'm mastering shell. Is use LineageOS 14.1 (forked from cyanogenmod). I would like to create a shell script on a rooted devive to enable/disable lockscreen (PIN). I ...
0
votes
0answers
45 views

A script that sends sms to the GPS tracker to turn on and off the alarms

I've just bought a Lekemi GPS tracker to protect my car. it works like this : if someone moves the car it sends to me an SMS message. And it sends to me another SMS if someone exceeds the speed ...
0
votes
1answer
20 views

Listening to in-app triggers [closed]

How can we listen for and record in-app events? I've been searching the net for some time without the slightest hint. Bellow are my case specific details for clarity, (though maybe I should be ashamed)...
1
vote
0answers
51 views

Automatically run Greenify from Macrodroid

As a way to save battery drain, I set up a macro with MacroDroid that does the following: Trigger: every 2 hours Action: kill background process, launch Greenify Constraint: when battery is below 50% ...
1
vote
0answers
33 views

Scheduled turn off & on on android 8.1 [duplicate]

Scheduled turning the device off and on has apparently been discontinued in Android 8. Edit: At least for my device thats the case. Given that it was one of my favorite functionalities in android 7, ...
0
votes
1answer
38 views

Automate Charging cycles for always connected devices to wall outlet [duplicate]

Is there any way to automate charging cycles (like charge only from 40% to 80%) if the device always connected to power outlet? I'm searching for a way to read charging level and send commands to ...
0
votes
0answers
197 views

Simulate long press on Overview button through ADB to split screen

I'm trying to simulate the split screen action through adb by doing a long press on Overview virtual button. adb shell input keyevent 187 ; sleep 2 The result is recents menu is shown only, but when ...
0
votes
0answers
33 views

easy and simple way to test/automate Android app

There is an app that I need to automate. I only have the APK, I do know there is UIAutomator, but there is not much info about how it can be used with an APK (no source code). Are are some tools ...
0
votes
0answers
70 views

Automatic redial for interrupted calls

How do I make phone redial when call was dropped or interrupted? Any solutions are appreciated, whether Android built-in or tasker scripts.
0
votes
1answer
48 views

How to move a folder to another path and to move back to same tree merging its contents on Unix?

On my Android phone, I have: A cron job to move files at 1:59am from /sdcard/WhatsApp/Media to /sdcard/wppmediabkp folder before WhatsApp backup at 2:00am: mv -f /sdcard/WhatsApp/Media /sdcard/...
0
votes
0answers
35 views

How do I automate a specific action via a physical button?

Simplified question: How can I send my location via Telegram with a physical button? On iPhones this would be simple. When jailbroken, you can define any custom action you want for any physical ...
4
votes
2answers
2k views

How to auto-backup my phone internal storage to my PC (not cloud), using WiFi?

I'm looking for a method to automatically backup my internal storage from my Nexus 6 directly to my PC (not cloud), using WiFi, but I haven't really found a solution for it. I see most solutions use ...
0
votes
2answers
351 views

Mobile data is set to auto turn on with command but isn't working

I'm using 2 apps, "MacroDroid" and AutoInput", I set a command(Macro) that would turn on mobile data and location. But when I sent the text, it shows that mobile data and location are "on" but only ...
0
votes
0answers
142 views

Telegram auto answer

Is it possible to auto answer telegram call ? I want to automate answer of telegram call. Is there any third party tools ? Or is there any telegram bot to auto answer telegram call ?
0
votes
0answers
73 views

How can I install multiple apps/updates at once without approving each one separately?

I use the APKPure site application to obtain updates for my installed Android apps. When updates are available - sometimes dozens at a time, I get multiple installation approval screens, and have to ...
0
votes
1answer
41 views

How to automate actions in certain apps?

I have a Note 5 running Android 7.0. I use an app to get scheduled for work. Is there any app that could automate my scheduling in the app? Getting schedule is very hard if I do it manually by ...
0
votes
0answers
786 views

Automatically disable SIM 2 while SIM 1 has signal?

Is it possible (via Tasker or otherwise) to automatically disable a SIM when the other one has a signal, and to similarly re-enable it once the other loses signal?
0
votes
0answers
43 views

Macro automation software that can get macros with parameters to interact with an android app

I need to automate a task in Android. Tasks are a little different each time that I have to change the macro a little. In fact It should type different text on each run. These are my possible ...
0
votes
0answers
28 views

When In silent mode, raise volume automatically after receiving 5 calls from a specific number

What I want to achieve: If in silent mode or vibration-only mode: After receiving 5 calls from a specific phone number, increase volume by one tick per each incoming call from that phone number. ...
0
votes
1answer
55 views

Make Android open a page at a specific time every morning

I want to login to a site for 50 consecutive days. For this, I will have to visit their homepage for 50 days. Is there anything that can be used to do this?
0
votes
0answers
74 views

An app with touch record and time delay playback

I'm looking for an app that allows me to record my finger touches and then repeat play what I recorded but after a set amount of time. For example I want to record a few fingers strokes and then have ...
1
vote
0answers
38 views

Alert only on Text Message

I use a Motorola G5 Plus with Android 7.0 on it. I'm on-call sometimes on nights and I want to be alerted in case there's a problem. I've forwarded important alerts to SMS text. I do NOT want to be ...
3
votes
1answer
3k views

How can I schedule timer to power on and off device?

Is there any way to schedule timer to power on and off device? Example daily power on at 8am and power off at 10pm.
1
vote
1answer
619 views

Automatic screen recording when my android phone wakes up

I have checked out many Android screen recorders, but none of them start recording the screen automatically when the phone wakes up. Does anybody know of a screen recorder that does that job?
2
votes
0answers
474 views

Is there an API for google's Find My Device, specifically the ringer?

My mom loses her phone constantly, and it's a pain to log out of my password manager, log into hers, log into her google account, and ring the phone with Find My Device. Is there an API somewhere so I ...
0
votes
1answer
1k views

App to wake up WiFi periodically while on sleep

WiFi drastically drains the battery. There is a setting to disable WiFi while the phone is on sleep. However, it's all or nothing: either you are connected all the time (and kiss good-bye to the ...
2
votes
1answer
158 views

Auto SMS reply a missed call from a specific contact anytime

I am looking for a solution to auto SMS reply a missed call from a specific contact anytime. All solution I found are either for all contacts, or for limited time intervals. Anyone has an idea?
0
votes
0answers
208 views

IFTTT Toggle Button Widget

I would like to create a button widget in IFTTT for toggling my Bluetooth On and Off with the same button. However, it is only possible to select either 'Turn on Bluetooth' or 'Turn off Bluetooth' as ...
3
votes
1answer
118 views

Auto start two apps on split screen after reboot

I have Two running Android apps (used for surveillance and doorbell) permanently and simultaneously on split screen. Sometimes, the person who used the device (for personal purposes) forget to get ...
3
votes
2answers
2k views

Lock Alarm Volume Level To Max

So I let other people use my phone a lot and one little boy (which will go unnamed) finds it funny lowering my alarm to zero when he uses my phone. Is there a way to lock this value(just alarm volume ...
0
votes
1answer
436 views

Backup of internal and SD storage via script (USB)

tl;dr I want to backup my internal storage and SD card contents when connected via USB cable due to potentially large amounts of data I don't want to use WiFi-based programs failed attempt at using ...
0
votes
2answers
933 views

Automation - unable to turn hotspot on

I am using a device running on AOSP 8.1 Recently I wanted to automatically turn hotspot on when device boots but Macrodroid is unable to do so Help required!
1
vote
0answers
158 views

Automate: Enable WiFi Calling in GPS Coordinates

My goal is to configure my Android LG G5, running the stock ROM, to enable Wi-Fi calling when I'm at home. I downloaded the Automate app from the Google Play Store. Next, I created a new workflow, ...
0
votes
1answer
25 views

How to fire text message to particular mobile numbers when my device enters into geofence specified?

I want to track a vehicle fleet. Whenever the device enters into the specified geofence, it should fire a text message to the specified mobile numbers, so that they will get notified.
1
vote
1answer
2k views

Is it possible to simulate a button press on an Android application from another application (Android or Desktop)?

I need to automatically click on a specific button on an app. Is there a way to do this on a completely controlled environment? By controlled environment, I mean the phone could be rooted, it could ...
1
vote
0answers
382 views

If I'm connected to device A don't connect to device B

I often find myself in my car following my wife until our commutes separate. When arriving at stop signs for instance, my audio regularly cuts out and transfers to the BT Audio in her vehicle. I'd ...
2
votes
1answer
2k views

How do I invert colours inside a specific app?

The latest Android has an Invert Colours option in quick settings. Is there any way to turn this on automatically when a specific app is opened? Is there any other way to achieve inversion of colours ...
0
votes
1answer
9k views

How to automatically repeatedly dial a number and automatically press numbers each time?

I'm trying to get through to the Swedish Migration Agency (Migrationsverket) and their lines are constantly busy. In order to get into the queue, one needs to call them, then press 1 twice. This would ...
0
votes
1answer
2k views

Change critical settings with ADB without root

I am new to Android "internals". I am looking for a way to change some settings on my device, just by using ADB, with debug mode enabled, without having root on my phone (warranty issues taken ...
3
votes
0answers
282 views

Enable OK Google detection when connected to car bluetooth

I have set "OK Google" detection to "in Google app" only. I don't want Google to be listening all the time. However, I would like "OK Google" detection to work when I'm driving. This means that the ...
1
vote
1answer
343 views

Automatically toggle background data for a given app

I have one app that "misbehaves" when on mobile data – ie. it takes quite big bites out of my battery. I don't want to cut it off from mobile data completely, though – as I need it from time to time ...