'How to trigger Android theme change via adb shell for one app only?

I know I can change theme in adb shell with

adb shell cmd uimode night yes
adb shell cmd uimode night no

But this triggers a theme change for the entire system. Is there a way to isolate this theme change for only a single app?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source