[APP][Pro] Android Control [BETA]

Android Control

Control your Android phone or tablet from Homey

APP is in beta!


Useful links


About
Homey connects to your Android device directly over your local network using ADB. You don’t need to install anything on the device and you don’t need a computer.

:warning: Android turns Wireless debugging off after a reboot. Turn it back on after restarting the device. The pairing itself is kept.


Usage

  • Install the app on your Homey
  • On the device, turn on Developer options, then Wireless debugging (Android 11+)
  • In Homey, go to add devices and choose Android Control
  • Enter the pairing code shown on the device (the pairing screen has steps for each brand)
  • Older devices can use classic network ADB on port 5555

Features:

  • Screen on/off, brightness, media volume, battery level and charging state
  • Flow actions: open app, open web page, press button (home, back, media, volume…), type text, keep screen on while charging, set screen timeout, run ADB shell command
  • Flow conditions: app is open on screen, is charging
  • Battery saving: adjustable polling, or connect only when needed
  • Follows the random Wireless debugging port automatically

Tips:
Use it as a wall display: wake the screen when someone enters the room, dim it in the evening, open your dashboard, and turn it off at night.


Contributions
If you like the app, you can support me with a PayPal donation, a Ko-Fi coffee or via Bunq.me.

paypal-buttonbunq-buttonkofi-button


This app is independent and unofficial. It is not affiliated with, endorsed by, or sponsored by Google or Android.


:laptop: Apps made by @martijnpoppen

See for more apps link below :backhand_index_pointing_down:t2: or just open the pull down.

How-to send a diagnostic report:

:warning: Note: Before sending a report make sure to reproduce the issue so the issue will be visible in the report

  1. :mobile_phone: Via Homey Mobile app:
    More - apps - Android Control - settings wheel right top - send diagnostic report (put your email in the input field to make it easier)

  2. :laptop: Via Homey Webapp:
    Settings wheel bottom left - Select Android Control - Click on send diagnostic report

:warning: Every issue needs a diagnostic report. Issues without one can’t be looked into.

Frequently Asked Questions

The most common questions about Android Control. Click a question to open its answer.

:wrench: Setup & pairing

Q1. Do I need root, a computer or an extra app on the device?

No. Homey connects over Wi-Fi using Android’s own Wireless debugging (Android 11+). You don’t need root, a cable or an extra app.
Only Android 10 and older (and Fire tablets) without an ADB over network switch need a computer once, to run adb tcpip 5555.

Q2. Pairing fails
  • Keep the Pair device with pairing code dialog open on the device while you press Connect. The code stops working when the dialog closes.
  • The pairing port (after the colon in that dialog) is not the same as the port on the Wireless debugging screen.
  • The device and Homey must be on the same network.
Q3. I can't find Developer options or Wireless debugging

Tap Build number 7 times (Xiaomi: OS version) under About phone. The pairing screen in Homey has steps for each brand. If you still can’t find it, search for “wireless debugging” in Settings.
Samsung: is Wireless debugging greyed out? Turn off Auto Blocker under Security and privacy first.

Q4. Should I give the device a fixed IP address?

Yes, set up a DHCP reservation in your router. The Wireless debugging port changes every time, but Homey follows it automatically.

:electric_plug: Connection

Q5. The device is unavailable after a restart

Android turns Wireless debugging off after every restart. Turn it back on and Homey reconnects by itself. You don’t need a new pairing code.

Q6. Error: The device refused the secure connection

The device no longer knows Homey, for example after revoking debugging authorisations or a factory reset. Open the device in Homey, go to Settings › Repair and pair again with a new code.

Q7. Does it drain the battery?

You can control that under Battery saving in the device settings:

  • Raise the check interval for when the screen is off, or set it to 0 to never check.
  • Turn off Keep the connection open. Homey then only connects to send a command, which makes each command about a second slower.
Q8. Triggers (app, Wi-Fi, Bluetooth) fire late or not at all

Homey notices these changes at the next state check. They only work reliably with Keep the connection open on, and a short check interval makes them faster.

:iphone: Device specific

Q9. OnePlus, OPPO or realme: the screen or buttons don't react

In Developer options, turn on Disable permission monitoring. These brands block remote button presses without it.

Q10. Xiaomi, Redmi or POCO: the screen won't turn on or off

Also turn on USB debugging (Security settings) in Developer options. This needs a Mi account and sometimes a SIM card.

:camera: Flow cards

Q11. The screenshot is black

The screen must be on. Apps that block screenshots (banking apps, some video apps) also show up black.

Q12. Take photo doesn't work

The app opens the camera app and tries several ways to press the shutter. That doesn’t work on every phone. If it fails for you, please post your device and Android version in this topic.

Q13. Show notification shows nothing

Notifications come from the Shell app. Allow notifications for Shell in the Android settings.

Q14. How do I find the position for Tap or Swipe on screen?

Turn on Pointer location in Developer options. The coordinates appear at the top of the screen.

Q15. Why do some apps show a technical name like com.something.app?

Android has no fast way to read app names over ADB. Well-known apps get a readable name, and for the rest the name is guessed from the package name.

Q16. Can I turn off Wi-Fi or turn on airplane mode?

No, on purpose: that would cut Homey’s own connection to the device.

:lock: Safety

Q17. Is Wireless debugging safe?

Only devices you paired with a code (like Homey) can connect. Only pair on a network you trust. You can remove all pairings at any time with Revoke USB debugging authorisations in Developer options.


Not in the list? Post your question in this topic with a diagnostic report.

Ah, very cool, Martijn! Works with Samsung Tab A9+ and phone S21+.

Thanks @Peter_Kawa !

Front cam button uses back cam :blush: @ both Samsung GS21+ (Android15) and GTab A9+ (Android 16)
a185fa21-d909-4df8-8b60-9e387ab0a585

Cool app! A condition card with “media is playing” would be very usefull to me.

EDIT: Is already included I see! :grinning_face_with_smiling_eyes:

@Peter_Kawa will check!
I did check on a tablet A9+ which did use the front cam. Strange

A little test.
When I switch cams on the device itself, it uses the front cam, and keeps using it, with both the front cam and back cam button :wink:

@Peter_Kawa ok good to know! Will check. Default camera app?

Yes all stock.

@Peter_Kawa

I just published a new version. Can you force install it via the app store and test it? :smiley:

"Take photo: the front and back camera buttons now pick the right camera on devices whose camera app keeps the last used one (e.g. Samsung)

Solved! :partying_face:

Excited to see adb available on homey :slight_smile:

I connected my Nvidia Shield TV and mapped a button on my remote to send a webhook to my homey. That webhook requests a screenshot over adb and the screenshot is sent to my personal WhatsApp using the WhatsApp app in Homey!

@Archimedes awesome! and good to know it works on Android TV as well :smiley:

Hi Martijn,

The dim function doesn’t seem to be aligned well yet for both Samsung GS21+ (Android15) and GTab A9+ (Android 16)

Dim (Homey) to 0: brightness slide (Android device) is set to 25%
Dim to 1%: brightness slide is set to 25%
Dim to 2%: brightness slide is set to 50%
Dim to 3%: brightness slide is set to 95%
Dim to 4% and higher: brightness slide is set to 100%

Using the Homey Android Control app device slider, or it’s flow cards doesn’t make a difference.

Diag:
164d24dc-426f-4543-9e2d-57fa2744a315

Note:
RAM use is pretty high, there’s 2 connected devices:

I never know what’s the actual value :face_with_peeking_eye:, in this listing it’s much less:

New app update (:orange_square: TEST: 1.1.2):

Changelog:

NEW:
1: None

FIXES:
1: FIX: Brightness now uses the right scale on Samsung devices (4% was already full brightness). The app uses less memory when taking screenshots and photos.



:collision: If you find any issues, send a diagnostic report

:warning: Note: Before sending a report make sure to reproduce the issue so the issue will be visible in the report

  1. :mobile_phone: Via Homey Mobile app:
    More - apps - Android Control - settings wheel right top - send diagnostic report (put your email in the input field to make it easier)

  2. :laptop: Via Homey Webapp:
    Settings wheel bottom left - Select Android Control - Click on send diagnostic report


You can install this version by clicking the link above and press install (do not remove the app, only press install)

:fast_reverse_button: Don’t want to be part of a test version? Install the live version → https://homey.app/a/com.android.adb/


@Peter_Kawa can you check the new version? fixed dim and improved memory

Thanks! Dim is fixed, RAM went down to 80MBs in Insights.

@martijnpoppen Interesting app. A feature that I have always missed in Homey are when cards for ‘Android phone receiving incoming call’ or ‘Android phone does an outgoing call’ without involving stuff like tasker etc. Would that be possible to integrate in your app? Opens up a few possibilities like reducing sound on stereo systems etc. when receiving calls.