Interesting question. You could use the registry for this, but you have to initialize a value with a published channel first. Then when you try to read that value in developer mode, it won't exist. I have several small private published apps for a similar purpose so I can set a debugging level value in the registry that my published channel reads and then sends information to my local server if the channel is running on one of my boxes (not that anyone else could possibly set the debugging level in "my" registry). Of course this kind of thing is only for my own boxes, but there's no way anyone else could run my app in developer mode (i.e., if it's not my box, it can't be developer mode).
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.