yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] kam333:
I use ADB OTG to run simple adb commands from my tablet to my phone (both unrooted)

https://play.google.com/store/apps/details?id=com.htetznaing.adbotg

Does anyone know if it's possible to run the darQ script android to android?
[Android Apps and Games] kam333:
[MENTION=3563640]Quinny899[/MENTION]

Any suggestions for this?

Thanks
[Android Apps and Games] Bradford1040:
You can use tasker app (ADB Wifi) unless I am totally taking your question wrong.

I use adb Wifi on the device to run the script needed after reboot

```

Task Name: Adb Darq

Actions:

A1: ADB Wifi [

Command:sh /storage/emulated/0/Android/data/com.kieronquinn.app.darq/files/script.sh

Host:

Port:

Timeout (Seconds):1

Enable Debugging (Check Help):eek:ff ]

```
[Android Apps and Games] kam333:
Thanks for attempting to help.

The key part of my question was running the script from another Android device e.g. from an Android tablet to an Android phone both unrooted.

Can I do that with your method?
[Android Apps and Games] kam333:
Guess the answer to my query is that it's not possible.

It's a free app so can't complain.

Cheers
[Android Apps and Games] n0j0e:
sry, wrong thread. delete please!
[Android Apps and Games] yochananmarqos:
Did you try running the command in the script?
[Android Apps and Games] kam333:
Hi,

Thanks for the suggestion, but there isn't a single command to run in the script files, rundarq-linux-mac.sh or rundarq-windows.bat

It's not a huge deal, it just would have been more convenient to run from the tablet since it's always on and closer than my laptop.

Cheers
[Android Apps and Games] yochananmarqos:
Yes, there is. Open the script in a text editor, you'll see. ;)
[Android Apps and Games] kam333:
I did open the script in an editor, but couldn't identify what i would need to run, I you know specifically what I need to do, I'd appreciate if you could narrow it down or if you're able to, tell me the line I need to input.

Cheers
[Android Apps and Games] yochananmarqos:
Oh shoot, sorry. I meant this one. It's a one-liner:

/sdcard/Android/data/com.kieronquinn.app.darq/files/script.sh
[Android Apps and Games] AyieStyx:
hi, is it possible for me to add adb wifi? tried to add connect x.x.x.x:5555 lines but it won't run it. is there a way to run the script without having to connect with pc?
[Android Apps and Games] Quinny899:
adb connect x.x.x.x:5555
adb shell "sh /sdcard/Android/data/com.kieronquinn.app.darq/files/script.sh"

Should do it. You can't do adb connect and the actual command in one line as far as I'm aware.
[Android Apps and Games] sirliam:
Hi all, i've a xiaomi mi 9t android 10 no root. I've used darq for a lot of days but there are some days that I have not been able to use it anymore, accessibility Service not running error. Actually I have already tried to disable and enable the option, to restart the phone, same result. Please could you help me to solve it? Thanks a lot
[Android Apps and Games] crowley2k:
same problem with an s9 without root
[Android Apps and Games] EstherTakumi:
Xiaomi had per app of dark mode, why didn't you use that?
[Android Apps and Games] heyChristo:
Can you give us an APK file for christmas?
[Android Apps and Games] Quinny899:
Labs is still down then eh.

APKs can always be found on GitHub too: https://github.com/KieronQuinn/DarQ/releases
[Android Apps and Games] eliass123:
I used DarQ 1.2 and 1.3 on my Android 10 (non-rooted) Pixel 3. Forcing Dark Mode Globally changed the appearance of apps, while choosing specific apps never did so for the same apps.
[Android Apps and Games] Quinny899:
That happens with some apps, it's caused by them performing layout before the switch can be changed. Accessibility Service is the fastest way to detect an app change without the hacky logcat methods which don't work very well or polling the system constantly which is very CPU intensive unfortunately.
[Android Apps and Games] eliass123:
using force global dark mode would've been fine if they didn't change the homescreen Google search bar to pitch black

just doesn't go well with the other icon colors
[Android Apps and Games] EstherTakumi:
If you select dark mode in each app setting, force global dark mode won't interfere the app. Work fine for me, at least for now.
[Android Apps and Games] brian_acalderon:
I had some troubles with getting the script to detect ADB on Mac, but found a mention earlier in the thread about modifying the ADB path. It may help to add this code to the readme so that other users can update their directory before trying to run the script. Code source from here.

echo 'export PATH=$PATH:~/platform-tools/adb' >> ~/.bash_profile
source ~/.bash_profile

I changed the code because I only kept the /platform-tools/ folder and moved it into my main user directory and added the /adb portion as mentioned earlier here in the thread.
[Android Apps and Games] scoobyjenkins:
I had a strange issue with the latest Magisk Canary builds on Android 11. DarQ has been working fine with Magisk 21201 and earlier. Then I updated Magisk to 21202 and then 21203. With either of those, when I open DarQ it says that although accessibility is enabled it can't connect to the service and gave instructions for the adb script as if I wasn't rooted. But DarQ was given superuser permission in Magisk. I went back to Magisk 21201 and DarQ works fine again. I know this may be a Magisk issue but wondered if anyone here might know why? I use another app that uses superuser permissions and accessibility and that doesn't seem affected.

I took a log, though not sure if I got anything useful, attached it here.

*Edit*

Can't seem to attach the file, here's a link to it: https://drive.google.com/file/d/1cNqN5t4NV7-4jSNcX4G_m60px8c4DRap/view?usp=drivesdk
[Android Apps and Games] Lughnasadh:
I am experiencing the same thing on my Pixel 4 XL, Stock Android 11, Magisk Beta/Stable 21.3.
[Android Apps and Games] Mr_Happy:
I have the same issue on A10 and mist recent magisk/xposed..

Also reported is on github with a link to @scoobyjenkins (and further) post.
[Android Apps and Games] Krsmqn:
Same situation with me on OnePlus 7 Pro, latest magisk build.
[Android Apps and Games] Bradford1040:
I am on rooted 1+7tpro5g LOS 17.1, been using Darq 1.2 since forever, magisk stable updated today to 21.3 and now Darq refuses to run, I've tried removing/uninstall after clearing the cache & data, reinstalled granted root & accessibility and darq repeatly asks me to run adb script & saying the service is not enabled

Edit, I had a twrp backup with magisk version 20.4, restored that boot image and DarQ is again working as expected,
[Android Apps and Games] scoobyjenkins:
DarQ seems to be working with Magisk 21304 for me, just flashed it over Magisk 21201 and no issues with DarQ
[Android Apps and Games] Mr_Happy:
I only see 21300. Where did you find 21304?
[Android Apps and Games] chomsky55:
Darq doesn't work anymore after flashing Magisk 21.300. Everything was fine before.
[Android Apps and Games] scoobyjenkins:
I have Magisk update channel set to Canary, so it's the latest bleeding edge build. Can be risky as I found out but also let me download a fix quicker I guess
[Android Apps and Games] darhma:
I'm facing the same issue with magisk 21.3 (21300) and the issue is present also with another similar app (autodark) so I think that's an issue of magisk
[Android Apps and Games] RoccoLocco:
DarQ working with Magisk 21305 for me, just flashed it over Magisk 21300 and no issues with DarQ
[Android Apps and Games] IronDwarf:
I found out that if I updated root then I have same problem. I went back to 2.0.4 and it works again.
[Android Apps and Games] IronDwarf:
Did you do anything special ? when I upate darq wont work
[Android Apps and Games] Mr_Happy:
Latest update of magisk fixed it:D
[Android Apps and Games] chomsky55:
Magisk-21-4 fixed it, had to disable and re-enable the DarQ service first though.
[Android Apps and Games] ForT4eHorde:
Have rooted oneplus phone but there's no oxygen os force dark toggle
[Android Apps and Games] Quinny899:
Have you modified the build prop for Magisk Hide or something? It checks if the ro.build.manufacturer is OnePlus.
[Android Apps and Games] ForT4eHorde:
As far as i remember i havent modified build prop

Btw there's no such string

Should i add it?
[Android Apps and Games] Quinny899:
Oops, ro.product.manufacturer not ro.build. It's there on my OnePlus 7T Pro, also you should be doing "getprop" in the terminal as build.prop is only the static values defined by the system and Magisk can change those.
[Android Apps and Games] ForT4eHorde:
[ro.product.manufacturer]: [Sony]

Lmao

How can i change it?
[Android Apps and Games] Quinny899:
You have a Magisk module changing it, 100%. Easiest way to fix that is to disable/uninstall the module doing it. If it's not a Magisk Hide prop changer, maybe some sort of Sony framework or app?
[Android Apps and Games] ForT4eHorde:
Then i know what is the problem of it

Appreciate you.
[Android Apps and Games] Lughnasadh:
Mod Edit: Quote removed since post removed

You really need to check your attitude at the door....just an idea.
[Android Apps and Games] Lord Sithek:
Mod Edit: Quote removed since post removed

Wow, after 5 years you made your first post and what kind of post it is. Bravo, Alpha
[Android Apps and Games] Quinny899:
Mod Edit: Quote removed since post removed

You really think I make people run scripts for ****s and giggles? It's a requirement. Like it or go elsewhere, there's no alternative way for it to work without root.
[Android Apps and Games] Bradford1040:
I have a request, I am using 1.2 have been for a few phone models, I am rooted this trip on 1+7tpro5g LOS 17.1, magisk 21.4

The app works fantastic always has, unrooted or rooted, the app is unmatched!

I've noticed that one app doesn't respond to enabling dark mode, "Dubox" mobile app. I am not going to pretend I know how the Darq app woks lol, but it would be cool for this singular app, to be dark, everything else works flawless!

Hope everyone is healthy and safe,
[Android Apps and Games] Quinny899:
Either it'll work using the global force dark option (the one with the bug icon), it'll work with the Xposed module enabled (which is in 1.3 and prevents an app disabling force dark) or it unfortunately won't work at all (some apps have their own tricky workarounds that can't be bypassed easily).
[Android Apps and Games] Bradford1040:
Thank you for the answer, I don't think I'm ready to do the whole xposed thing yet, this is my first rooted phone in a long time, last rooted experience ended badly lol, so I'm super cautious before I do anything. My phone runs flawless at the moment, so I just deal with the blinding app (it's really bright white)

I tried 1.3 on my last unrooted phone, it didn't work on that model. Is there any benefit to upgrade 1.2 to 1.3 on my current setup? Or all that was added was the xposed module support?

Or should I just read the github

Edit and completely unrelated, I really miss xda labs mobile app lol, using bromite for my xda, but have to physically check, no notifications.
[Android Apps and Games] Quinny899:
1.3 won't matter much if you don't have Xposed. If the app doesn't work without Xposed and the global force dark doesn't do anything, you're out of luck unfortunately.
[Android Apps and Games] Bradford1040:
I get it, maybe after I get my confidence that I can recover from "mishaps" lol, I'll update to 1.3 and go that route. For now I am in wussy corner,

Again thank you for the advice, stay safe & healthy
[Android Apps and Games] Clark Joseph Kent:
Thread Cleaned, since it looks like someone is having a bad day, maybe too much quarantine or not enough. Nevertheless, be nice, play nice, or else you will find, yourself quarantined from XDA.

Carry on.
[Android Apps and Games] UnpleasantPeasant:
xda labs download link is dead
[Android Apps and Games] Lughnasadh:
That's because XDA Labs itself is dead and has been discontinued. Get the app through the github link in the OP.
[Android Apps and Games] thepersona:
Man I really wish this would work on my Sony Xperia 5 mark 2. It was working perfectly fine on my Google pixel 4 XL and even on my Samsung Galaxy note 10 plus when I had that device. I don't know what's going on with Sony or with this app but I just installed Android 11 I did the wireless ADB method and everything connected I have yet to experience a disconnect the issue is I can't enable dark theme for specific apps.

there is an option to disable which would technically override the selected app list I have that disabled so I can have dark theme only in certain applications and it's not working for some reason but the connection is still running and it's still consistent. Any advice?
[Android Apps and Games] michasssxdd:
Android 11 oneplus 6t. Will the app work with this android version?
[Android Apps and Games] rogosteve:
Connecting to service...... Forever. Rooted OnePlus 7T, Android 10, Magisk 21400. Accessibility granted.
[Android Apps and Games] rogosteve:
Doesn't work with 7t. Rooted, latest Magisk, latest OOS, no Magisk mods, root apps etc.
[Android Apps and Games] Quinny899:
Works absolutely fine on my 7T Pro on 11 though. I have no idea what is causing the seemingly random problem for some.
[Android Apps and Games] Bradford1040:
I am on 1+7tpro5g LOS 17.1 rooted, version 1.2 as I do not use xposed modules at this time, and darq works incredibly well
[Android Apps and Games] rogosteve:
Just tried with version 1.2. 1.3 was stuck at waiting for service on my 7t. 1.2 connected and runs well.1.3 will not connect to service on latest OOS Stable 10.
[Android Apps and Games] rogosteve:
Nice app, thanks OP. Stupid AliExpress opens too fast so unfortunately it's the only app still white for me. Nothing worse than one apps blinding bright white light on my otherwise dark phone. Thanks for the hard work OP.
[Android Apps and Games] chomsky55:
It used to work on Aliexpress for me but after the latest update like 2 weeks ago it doesn't anymore.
[Android Apps and Games] rogosteve:
Yeah, me too on just the developer options force dark. I was hoping Darq would maybe help switch it fast enough to work after the update. No dice, but nice app anyway.
[Android Apps and Games] Kreuger:
Im just wondering how exactly does the Xposed module work and/or what does it do? Would it be possible to create it as a magisk module?
[Android Apps and Games] fobtob387:
"Added Xposed module to prevent apps disabling force dark mode programmatically"
[Android Apps and Games] BLEK0TA:
Will be worked on note 20 with android 11? Cuz I don't have PC anymore and don't want wasting time my neighborhood if it wouldn't have to work.. so please can someone ask me? Or is any solution without PC.. like package disabler working without PC or root.. I can't make root for Knox security and firm check..
[Android Apps and Games] Lord Sithek:
Samsung Galaxy Tab S5e, crDroid A11. Dark mode doesn't survive reboot, even though Xposed module is enabled. Is there any other way to force the service start on reboot? With Tasker possibly?
[Android Apps and Games] Kreuger:
That tells me nothing.
[Android Apps and Games] Quinny899:
They're right though, that's exactly what it does - stops apps disabling force dark in code.

No, it cannot be done in Magisk because magisk is not Xposed, they are a totally different concept.
[Android Apps and Games] Lord Sithek:
For some reason dark mode doesn't survive reboot on crDroid 11 on two of my devices, even with Xposed module. Can I provide any log or do something else to help to improve my experience?
[Android Apps and Games] Quinny899:
Dark mode or force dark mode? DarQ intentionally doesn't re-apply the normal dark mode after reboot - that's handled by the system.
[Android Apps and Games] Smartphones13:
So is there a was to save the dark mode after reboot?
[Android Apps and Games] Quinny899:
The system should do that. If it doesn't, you should tell the ROM maintainer
[Android Apps and Games] Lord Sithek:
Mmm, ok, I got it. I meant force dark mode. So it seems this issue is present on CrDroid generally, as I own two different devices and the problem is the same. Probably I'd have to reach the main developer, that can be difficult...

But is there any intent or something to toggle "Force Dark Mode" in DarQ? Then I could use Tasker to do it on boot and I'd be happy enough 😅
[Android Apps and Games] Quinny899:
Force Dark Mode (the override toggle with the bug icon) is automatically re-applied on boot already. It gets set when the accessibility service is started, does per-app force dark work for you after a reboot?
[Android Apps and Games] Lord Sithek:
Seems not, although the accessibility service is enabled :confused: It starts working only when I manually toggle "Force Dark Theme" on and off. Anyway, I'd prefer to force dark globally
[Android Apps and Games] Samuel Grande:
DarQ doesn't switch apps to light mode even with the sunrise/sunset mode toggled on. It just toggles system wide dark mode all the time. My phone is the Huawei Mate 20 Pro, Android 10
[Android Apps and Games] needletothebar:
i'm trying to run this not rooted from adb, and i consistently get permission denied for the script.sh that's supposed to live on the phone:

ls: /sdcard/Android/data/com.kieronquinn.app.darq/files/script.sh: Permission denied

poking around on google, it seems like android 11 locked down the "data" directory and there are various workarounds that are supposed to let you get at it, but i haven't had any luck.

$ adb shell 'sh /storage/emulated/0/Android/data/com.kieronquinn.app.darq/files/script.sh'

sh: /storage/emulated/0/Android/data/com.kieronquinn.app.darq/files/script.sh: Permission denied

i also saw something that suggested only the app itself can access its own data so i tried this one, but still no dice:

$ adb shell 'run-as com.kieronquinn.app.darq sh /storage/emulated/0/Android/data/com.kieronquinn.app.darq/files/script.sh'

run-as: package not debuggable: com.kieronquinn.app.darq

can i find the contents of that script somewhere else so that i can create it myself on the phone's file system?

i'm on a pixel 4a 5g, so i guess one problem with having the latest and greatest OS updates is maybe i have a more locked down data folder than anybody else.

if all else fails, maybe i'll try building the apk myself with debug artifacts...
[Android Apps and Games] Quinny899:
The script is auto generated, as it needs the correct path to the APK which is randomised nowadays. https://github.com/KieronQuinn/DarQ...uinn/app/darq/activities/MainActivity.kt#L400
[Android Apps and Games] Lord Sithek:
Sorry for noob question but... Is there a way to run the script directly on the device rather than from the PC?
[Android Apps and Games] Quinny899:
On a root shell, sure! Just run

sh /sdcard/Android/data/com.kieronquinn.app.darq/files/script.sh

You can actually even use the Local WiFi ADB method in Android 11 to do this without root too.
[Android Apps and Games] Lord Sithek:
Thanx, actually I figured this out meantime 😅 But I'm still looking how to run "Force Dark Theme" automatically after the reboot. With root or without. For some reason two of my devices running crDroid A11 don't want to restore this setting
[Android Apps and Games] Quinny899:
To enable standard dark theme (1 to disable it)

settings put secure ui_night_mode 2

To enable force dark globally (ignoring the per-app settings)

setprop debug.hwui.force_dark true

Both of these need root or adb shell (again Local WiFI adb will work too)
[Android Apps and Games] Lord Sithek:
Well, as simple as that... Thank you
[Android Apps and Games] needletothebar:
okay so any ideas for how i fix my problem and get the script to run? is there a way i can find the path?
[Android Apps and Games] Quinny899:
"pm path com.kieronquinn.app.darq" in adb shell will tell you the path
[Android Apps and Games] needletothebar:
oh wow it worked! thanks for the help. i'm probably not going to be the only person having this issue (i assume it's something with this new MDF policy that's rolling out to pixels?) so you may need to address it.

do apps has easy access to write scripts out to somewhere else?
[Android Apps and Games] Quinny899:
Only via the Storage Access Framework, if this is reproducible I may have to go down that route.

So you say that with ADB shell you can't access /sdcard/Android/data/com.kieronquinn.app.darq/files? That would indeed explain the issue if so.

EDIT: Or tbh I could probably embed the "pm path" call into the ADB script and negate the need for the on-device shell script at all 🤔
[Android Apps and Games] ryo2456:
Excuses me, may I ask the background service restore with v1.3 is only work with xposed/rooted phone?
[Android Apps and Games] Wam7:
Greeting to @Quinny899 from Whalley Range! ;)

Using a Huawei Mate 20 X it works fine using EMUI 10 (Android 10). Just updated to EMUI 11 (also Android 10) and also got it to work fine.

I did have issues at first even though the Accessibility Service was started and permission given to DarQ but I just had to restart the device to get it to work OK. I suggest people try that also.

DarQ works on my Paypal app but not at all on my Halifax banking app and a quite a few other apps which is a shame but thanks nonetheless for your efforts.
[Android Apps and Games] guyverzero:
Hello, read a few pages back that some phones were having issues with dark themes not being applied, can we assume this is the case for the Galaxy S21 (US T-Mobile version) as of now?

I'm coming from a rooted Oneplus 7 Pro that had every app that I needed apply dark theme (no xposed module). Now on my S21 (non-rooted, obviously) the same apps very rarely, if ever, have the dark theme trigger. I've ran the script, and it'll maybe work one time (but usually not at all) before not working on anything.

Curiously, even the force dark mode in S21 settings doesn't seem to work, so I have to assume this is an issue with the phone itself, but figured I would ask here to confirm
[Android Apps and Games] rawshn:
If I have a rooted phone, does DarQ installation steps remain the same for me?

I tried just running the latest v1.3 APK from the GitHub repo, did nothing.

I also tried running the ADB script while Darq APK was installed on my phone. I get the error "Script not found, please run DarQ to generate the script"

It could be because Pixel ROM I am running I cannot see nothing in the Android > Data.

I am on Android 11. What am I missing here?
[Android Apps and Games] KiraV:
Probably a dumb question/odd feature request, but I would really love the opposite option: being able to choose light mode per-app basis with the global theme still on dark. Is this doable/would this be a possible feature request?
[Android Apps and Games] Quinny899:
This has been answered many times (search the thread please), the answer is no it won't be done.
[Android Apps and Games] paolo200:
It's been requested many times but for some reason it can't be done. But there are other ways to do it. Using Tasker and adb
[Android Apps and Games] stefan243546:
Could anyone share the actual adb command to run instead of the script? I'm using LADB which requires the adb command.
[Android Apps and Games] Bradford1040:
sh /storage/emulated/0/Android/data/com.kieronquinn.app.darq/files/script.sh

That used to be the location of the script on the phone, I used to do it through Tasker after I granted adb permission for adb WiFi after a reboot
[Android Apps and Games] stefan243546:
Thank you
[Android Apps and Games] 93fuelslut:
Can anyone provide a link? Xda labs no longer exists
[Android Apps and Games] Lughnasadh:
You can find the app on his Github.
[Android Apps and Games] Bradford1040:
https://github.com/KieronQuinn/DarQ

and also you can add the repo to fdroid or Aurora droid.

Im all for helping people out, but "DarQ GitHub" google search was really easy, I understand you can get caught in a loop, not knowing where to get stuff, but normally a quick search first could save you the time & trouble of asking others
[Android Apps and Games] 93fuelslut:
So once inside GitHub where do you go?
[Android Apps and Games] Lughnasadh:
Releases · KieronQuinn/DarQ

DarQ provides a per-app selectable force dark option for Android 10 and above - KieronQuinn/DarQ

github.com