Search results

  1. C

    Anti-shutdown

    I don't have that option on my phone unfortunately :(
  2. C

    Anti-shutdown

    I'm trying to create a macro that blocks the phone from being shutdown/powered off, in the case of a lost phone. Once the phone is lost, I'll send a webhook to trigger a macro to run. When the phone knows it's lost, it should prevent the power button from being triggered to show the power menu...
  3. C

    ADB connected trigger?

    I don't use wireless debugging. You don't even need that if you're just connecting your phone to PC via USB cable. I basically plug in my phone to my PC via USB, then ADB (which is always on) is automatically engaged and I can start using ADB commands. I mainly use scrcpy with scrcpy GUI to...
  4. C

    ADB connected trigger?

    Does anyone know if it's possible to have a trigger based on ADB connected devices? For example, if my phone is connected to my PC via ADB, then I want this event to be used as a trigger.
  5. C

    Webhook not working?

    Tried both, still getting the same result. With a new ID, I pasted the new webhook URL in my browser and getting the same thing. Even tried to export and import the ID and it's the same.
  6. C

    Webhook not working?

    This is mine, taken directly from the webhook trigger that was generated on my phone: https://trigger.macrodroid.com/8d9d2d7a-ea2f-47d9-9fd6-3101998xxxxx/Disable-Teams It used to work perfectly fine, then it stopped and I haven't noticed it until recently. I think it worked fine last month or...
  7. C

    Webhook not working?

    I'm getting this when I paste the webhook URL in my browser. It used to just give an OK message and it'll get triggered on my phone.
  8. C

    Shell script woes

    Hmm I just can't get it to work for some reason. Anyway, I ended up modifying it and was able to achieve what I wanted.
  9. C

    Shell script woes

    Hi all, I'm on a rooted device. I don't have issues running shell scripts, but this one seems to not output anything to a local MD variable: It doesn't matter if I run as root with or without the helper APK, it just won't output anything. Other shell scripts of mine work fine, but not the...
  10. C

    Wifi ADB debug mode lost on restart?

    Oh lol. Yeah you'd need that on for sure. I never turn it off because it's useful all the time. On some phones, you need to also disable the authorization timeout and some other settings. They're all found under Developer Settings.
  11. C

    Wifi ADB debug mode lost on restart?

    Wireless debugging requires wifi to be on. When I turn off my wifi, wireless debugging is off as well. However, ADB TCPIP 5555 should still stay on and so it doesn't actually impact me if I leave my wifi turned off, otherwise it would have bugged me to hell if I had to re-do this whole thing all...
  12. C

    Wifi ADB debug mode lost on restart?

    Only the first connection on phone boot-up is required for me. On my Xiaomi phone (rooted) and Lenovo tablet (non-rooted but runs MacroDroid and Shizuku), I can get ADB over TCP on first bootup even after I disconnect my wifi. I'm not using Wirebug on my Lenovo tablet because Wirebug requires root.
  13. C

    MacroDroid quick tile not named properly

    I've set up MacroDroid on my new tablet (Lenovo Xiaoxin Pad Pro 12.7') and for some reason the MD quick tiles just aren't updating their names to the actual names that I've given them. They're named Macrodroid tile 1, tile 2, etc. Normally, I would fix this by going to MD -> quick tiles and...
  14. C

    How to compare contents of 2 variables?

    Your suggestion did help me a lot. I ended up tweaking a few things and got it working. And yes it's definitely faster than iterating an array/dictionary. Thanks again.
  15. C

    How to compare contents of 2 variables?

    Ended up appending a - between the words using regex, so that it makes each word unique. So instead of Google-Home, it'll become Google-Home and therefore when the word "Google" is matched, it'll just match itself and not any other words that contain Google. Not ideal, but it'll do for my use case.
  16. C

    How to compare contents of 2 variables?

    Thanks, I've just tried it but it doesn't quite work. Firstly, it should be replacing \n by | because there could be words that are separated by spaces. It'd be better to do this on a new line instead. Anyway, here's my data for variable A: Here's my data for variable B: And here's the...
  17. C

    How to compare contents of 2 variables?

    Let's say I have 2 variables: Variable A: apple orange pear banana kiwifruit Variable B: orange apple pear I want to compare them and list only the differences that are found in Variable A but not Variable B. Does anyone have a shell script for this? I've tried a few shell scripts and just...
  18. C

    Android 15 will break MacroDroid helper

    I'm still on Android 13 and I don't really see the need to update to newer versions. Sure I might miss security patches, but I don't do any banking stuff on my phone and don't do anything dodgy that would potentially get my device compromised. Would rather stay on older Android version purely...
  19. C

    Wireless Debugging intent

    Turns out that I don't even need the port! I found this app from F-Droid called Wirebug. In the app, you can enable wireless debugging and after that point, you can then run adb connect IP_address, e.g. adb connect 192.168.0.140. Right after that, you can then run adb tcpip 5555. Both these can...
  20. C

    Wireless Debugging intent

    That's a nice tool, but I'm not sure how it would help here. All I need to do is something like this: 1. Open the Wireless Debugging page 2. Get IP address and port on the page 3. Run adb connect ip_address : port with Termux via Termux Tasker plugin 4. Once connected, use Termux again to run...
Top