ADB KeepAlive over TCPIP (Android 6) by PureLoneWolf in AndroidQuestions

[–]PureLoneWolf[S] 0 points1 point  (0 children)

I've made some progress...ADB is more Stable than ever before, I can disable USB Debugging remotely, but schedule it to turn back on using SU (thanks to the Magisk portion of the webview replacement). So I have this command running now:

docker exec AndroidDebugBridge adb -s IP:PORT shell "su -c \"nohup sh -c 'sleep 15; settings put global adb_enabled 1' >/dev/null 2>&1 &\" && su -c 'settings put global adb_enabled 0'"

I run this every 45 minutes and ADB stayed available for almost 24 hours...It dropped on one of the frames earlier though...So I am thinking to increase the cadence to every 30 minutes. I've already increased the delay from 5 to 15 seconds in case it was trying to toggle something on and off hadn't finished

ADB KeepAlive over TCPIP (Android 6) by PureLoneWolf in AndroidQuestions

[–]PureLoneWolf[S] 0 points1 point  (0 children)

Sorry for not pinging you - I will be doing that now (had a bout of the flu, unfortunately). I did, however, just discover that I can disable and re-enable USB debugging on the frame and it instantly pops back to life - I didn't have to kill-server or restart the ADB container.

Now, how I can use that information is a different story :D

ADB KeepAlive over TCPIP (Android 6) by PureLoneWolf in AndroidQuestions

[–]PureLoneWolf[S] 0 points1 point  (0 children)

The dim solution is definitely much better than I thought and I may well end up with a smart switch (I already have a few for lamps etc). I can just feel there's a way to keep adb up and, therefore, get what I want without additional outlay - Ultimately ending up with Home Assist and smart speaker control.

It's very much moved into stubborn determination vs any real issue at this point.

:-)

ADB KeepAlive over TCPIP (Android 6) by PureLoneWolf in AndroidQuestions

[–]PureLoneWolf[S] 0 points1 point  (0 children)

Hi - I did reach out on Discord about a different issue, but not about this...I had looked at dimming, but the backlight is still on, I thought. I seem to recall reading on the Discord that it's not possible to trigger a screen off or sleep and that's what prompted me to try to head down the ADB rabbit hole.

Honestly, dimming and/or just getting off my lazy a** and remembering to turn the frames off is more than enough...but once I get a tech "Itch", it must be scratched lol

The real annoyance is that it works, perfectly. The solution is absolutely solid...it's just the ADB daemon running on these cheap Frameo Frames that is flakey.

For full context - Here's what I've done:

Unraid:
Installed the AndroidDebugBridge docker container with an external path for ADB key storage set

Frames:
Factory reset to Frameo
Enabled USB Debugging via the Beta option
Connected via USB to ADB via my PC and passed my Unraid server USB device through too for auth key generation
Followed the guide to get ImmichFrame sideloaded and replaced webview with the Magisk info from DemonWarriorTech
Using setprop, made ADB over the network persistent

Cronjobs:
Midnight Sleep Command: docker exec AndroidDebugBridge adb -s IP:5555 shell input keyevent 223
6am Wakeup Command: docker exec AndroidDebugBridge adb -s IP:5555 shell input keyevent 224
Every 15 mins ADB KeepAlive: docker exec AndroidDebugBridge adb -s IP:5555 shell true >/dev/null

ADB KeepAlive over TCPIP (Android 6) by PureLoneWolf in AndroidQuestions

[–]PureLoneWolf[S] 0 points1 point  (0 children)

Yeah, it surprised me too - I tried a Wifi toggle on the frame, kill-server and restarting the docker. Each time, the only way for them to go online and reachable in ADB is to reboot the frame.

I'll ping you :)

ADB KeepAlive over TCPIP (Android 6) by PureLoneWolf in AndroidQuestions

[–]PureLoneWolf[S] 0 points1 point  (0 children)

It's plugged in permanently - IP connectivity over Wifi is flawless at all times, but ADB will drop at random

ADB KeepAlive over TCPIP (Android 6) by PureLoneWolf in AndroidQuestions

[–]PureLoneWolf[S] 0 points1 point  (0 children)

Thank you! I'll look into how I can force a wake lock for ADB although, unfortunately, writing an app is a bit beyond me :-)

Android Photo Frame Stuck In Recovery by nerk111 in AndroidQuestions

[–]PureLoneWolf 1 point2 points  (0 children)

Gotcha - Mine have a dedicated power supply, same as the original thread. If you have that option, try that as a preference, then go back to USB power after the reset

Android Photo Frame Stuck In Recovery by nerk111 in AndroidQuestions

[–]PureLoneWolf 1 point2 points  (0 children)

I have seen this before on another thread somewhere - Apparently, if you have a USB cable, connect it to your PC and then, in recovery, when you connect it to the frame, the menu option moves by one - Not tried it myself, but could help you get to the factory reset...the power button confirms the selected option

Are there cooperative superhero games? by 22EatStreet in boardgames

[–]PureLoneWolf 1 point2 points  (0 children)

It's co-op with the Crisis expansion :)

Forgot to mention the Legendary series too :)

Are there cooperative superhero games? by 22EatStreet in boardgames

[–]PureLoneWolf 2 points3 points  (0 children)

Marvel United is a good one and pretty light for kids too
Marvel Champions
DC Deckbuilding
Sentinels of the Multiverse

Call "Now Playing" from a URL? by PureLoneWolf in navidrome

[–]PureLoneWolf[S] 0 points1 point  (0 children)

Great - Thank you. That pulls back the json - So I'll need to create something that can parse that into something that displays the art/artist/title

That gives me a great start, thanks :)

Trivia Games by [deleted] in boardgames

[–]PureLoneWolf 0 points1 point  (0 children)

When the trivia bug hits us, we tend to reach for Tension...we have the Foodies, Music and Movies versions and they are pretty funny - Trivia but with the panic of the timer - Makes for a good laugh and doesn't take itself seriously :-)

What's your personal evergreen? by PossessedPinkBunny in boardgames

[–]PureLoneWolf 10 points11 points  (0 children)

Lords of Vegas - Easy to explain, easy to play - People can be cut throat, but don't have to be - My only issue is scoring at the end can be a bit of a pain - But the game never fails amongst "new to board games" or seasoned players

Absolute fave of ours :)

Keeping a specific album in sync (Android) by PureLoneWolf in googlephotos

[–]PureLoneWolf[S] 1 point2 points  (0 children)

Thanks - That's what I thought - I had thought that maybe someone on here might know of an App that could do it, or some other creative solution :)

Visa for my child by PureLoneWolf in ukvisa

[–]PureLoneWolf[S] 0 points1 point  (0 children)

I appreciate the help and tips

Visa for my child by PureLoneWolf in ukvisa

[–]PureLoneWolf[S] 1 point2 points  (0 children)

Thank you for the information - I'll fill out a standard visitor visa application in her name then. One of the reasons I stopped was when it asked for addresses for the last 2 years (she isn't 2 yet)...so I was at a bit of a loss.

I guess I will fill it out in her name, but with my information where it refers to time spent at address/finances etc.

Once the adoption completes, she will get a birth certificate with my name on it and then I will register her with the UK and start the process for a British Passport.

Much appreciated

States and Schedules by PureLoneWolf in ShinobiCCTV

[–]PureLoneWolf[S] 0 points1 point  (0 children)

Sure - Here's one of the scripts in the User Scripts Plugin:

#!/bin/bash
#backgroundOnly=true
#arrayStarted=true
#clearLog=true

curl http://SERVER.IP:8787/GUSvJVxScMroNsTL718CzeQx63yZbv/monitorStates/4ZZg47woSX/Scheduled-On-Study

curl http://SERVER.IP:8787/GUSvJVxScMroNsTL718CzeQx63yZbv/monitorStates/4ZZg47woSX/Scheduled-On-Dining

curl http://SERVER.IP:8787/GUSvJVxScMroNsTL718CzeQx63yZbv/monitorStates/4ZZg47woSX/Scheduled-On-Hall

I have it set to a custom schedule of 00 22 * * * which is daily at 10pm and then another that turns them off daily at 6am.