Author Topic: Pointless (but fun) app idea  (Read 2652 times)

Charlie Stross

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Pointless (but fun) app idea
« on: May 24, 2018, 04:24:08 pm »
I suddenly realized that the Gemini has 5 lid LEDs. And of course the Google Voice button.

All I want now is a simple app that monitors the voice button and, when it's pressed (big clue: I have no use for the voice button -- I use mine as a PDA) flashes the LEDs to emulate a binary watch, displaying first the hour (in 24 hour format) and then, a second later, the minute past the hour. So that when my Gemini is closed I can use it as a very bulky, pointless, binary watch.

Anyone know if enough of the APIs are exposed to make this possible?

ali1234

  • Newbie
  • *
  • Posts: 19
    • View Profile
Pointless (but fun) app idea
« Reply #1 on: May 24, 2018, 06:39:09 pm »
Quote from: Charlie Stross
I suddenly realized that the Gemini has 5 lid LEDs. And of course the Google Voice button.

All I want now is a simple app that monitors the voice button and, when it's pressed (big clue: I have no use for the voice button -- I use mine as a PDA) flashes the LEDs to emulate a binary watch, displaying first the hour (in 24 hour format) and then, a second later, the minute past the hour. So that when my Gemini is closed I can use it as a very bulky, pointless, binary watch.

Anyone know if enough of the APIs are exposed to make this possible?

LED API: https://www.oesf.org/forum/index.php?showto...st&p=286028

I have not figured out how to take over the voice button yet.

ali1234

  • Newbie
  • *
  • Posts: 19
    • View Profile
Pointless (but fun) app idea
« Reply #2 on: May 25, 2018, 11:57:14 am »
Quote from: ali1234
I have not figured out how to take over the voice button yet.

It seems this is not possible because the voice button intent is generated by a patch to the core android framework. It is delivered directly to com.pripla.gemini.voiceassistant package by a hardcoded lookup. To override it, an app would need to have this package name. It would not be possible to install such an app on the stock firmware, because this app is already built in.

So changing the voice assistant button action isn't possible without rooting.