Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Onyx Boox

Notices

Reply
 
Thread Tools Search this Thread
Old 02-04-2022, 11:07 AM   #1
llinfeng
Enthusiast
llinfeng is on a distinguished road
 
Posts: 38
Karma: 58
Join Date: Jan 2019
Device: Kobo, Kindles, Sony DPTs, QQ-Read
Collection of intents that work for Boox devices?

Is there a compiled list of intents that work for Boox devices? For example, thanks to lvlrdka22's post here, we have:
  • action.enable.all.tp.region as Broadcast intent that enables "Finger Touch", and
  • action.disable.tp.exclude.bar.region as Broadcast intent that disables "Finger Touch"

For example, useful intents may include: rotate the orientation by 90/180/270 degrees, show/hide the navigation ball (as it may disappear from time to time), and start/stop screencasting.
llinfeng is offline   Reply With Quote
Old 02-04-2022, 01:40 PM   #2
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 3,164
Karma: 12537601
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
Code:
/* Dialogs */
am broadcast -a action.show.brightness.dialog
am broadcast -a com.onyx.action.show.contrast.dialog
am broadcast -a com.onyx.action.show.refreshmode.dialog
am broadcast -a com.onyx.action.SHOW_ROTATION_LOCK_DIALOG_ACTION
am broadcast -a onyx.android.show.global.dialog

/* Rotation */
am broadcast -a com.onyx.action.ROTATION --ei rotation 0
am broadcast -a com.onyx.action.ROTATION --ei rotation 1
am broadcast -a com.onyx.action.ROTATION --ei rotation 2
am broadcast -a com.onyx.action.ROTATION --ei rotation 3

/* Screenshot */
am broadcast -a onyx.android.intent.screenshot

/* Injection */
am broadcast -a onyx.android.intent.send.key.event --ei key_code <keycode>
am broadcast -a onyx.android.intent.send.touch.event --ef tap_event_x <x> --ef tap_event_y <y>

/* Multi-window - kind of funky */
am broadcast -a com.onyx.action.START_MULTI_WINDOW
am broadcast -a com.onyx.action.QUIT_MULTI_WINDOW

Last edited by Renate; 02-04-2022 at 07:41 PM.
Renate is offline   Reply With Quote
Advert
Old 05-10-2022, 12:02 PM   #3
llinfeng
Enthusiast
llinfeng is on a distinguished road
 
Posts: 38
Karma: 58
Join Date: Jan 2019
Device: Kobo, Kindles, Sony DPTs, QQ-Read
Here is a list of keycodes, serving in complement to the list of intents. (One way to make use of these keycodes is to map other keys on a BT-controller to simulate the keycode in the list, using Button Mapper.)
  • 25 - Volume Up
  • 24 - Volume Down
  • 134 - Full screen refresh
  • 136 - Toggle backlight on/off
  • 135 - Take a screenshot
  • 92 - page up
  • 93 - page down
  • 131 - Toggle Menu
  • 138 - Home page
  • 132 - Back button
  • 21 - Page up
  • 22 - Page down
  • 20 - decrease font size by 1 (Neoreader specific)
  • 19 - increase font size by 1 (Neoreader specific)



Source: User MAI from the Boox Lumi user group on Wechat. Here is MAI's original notes written in Chinese, as linked.
llinfeng is offline   Reply With Quote
Old 05-10-2022, 12:54 PM   #4
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 3,164
Karma: 12537601
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
Augmented, annotated and sorted:
  • 19 - Increase font size by 1 (Neoreader specific) (DPAD_UP)
  • 20 - Decrease font size by 1 (Neoreader specific) (DPAD_DOWN)
  • 21 - Page up (DPAD_LEFT)
  • 22 - Page down (DPAD_RIGHT)
  • 25 - Volume Up (VOLUME_UP)
  • 24 - Volume Down (VOLUME_DOWN)
  • 92 - Page up (PAGE_UP)
  • 93 - Page down (PAGE_DOWN)
  • 131 - Toggle Menu (F1)
  • 132 - Back button (F2)
  • 133 - Display control (F3)
  • 134 - Full screen refresh (F4)
  • 135 - Take a screenshot (F5)
  • 136 - Toggle backlight on/off (F6)
  • 138 - Home page (F8)
  • 139 - Display control (F9)
  • 140 - Refresh settings (F10)
  • 142 - Brightness settings (F12)
Renate is offline   Reply With Quote
Old 04-22-2024, 01:35 AM   #5
Alex34
Junior Member
Alex34 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Apr 2024
Device: Onyx Boox Note Air 1
Does anybody know how to send a key combination? I need the Key Codes 117 + 71 (which is CMD + [).

Here is what it does: https://shop.boox.com/blogs/news/12-...=pocket_mylist (#7)

Or does anyone know an intent for this?
Alex34 is offline   Reply With Quote
Advert
Old 04-22-2024, 10:07 AM   #6
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 3,164
Karma: 12537601
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
Quote:
Originally Posted by Alex34 View Post
Does anybody know how to send a key combination?
Yes/no. The "input keyevent" can not "hold" modifier keyers.
The "input text" can manipulate the shift key implicitly.
With my injectd (not released) I can "echo M71 > /dev/inject".
(M = Meta)

Quote:
Originally Posted by Alex34 View Post
That is the smallest drink that I've ever seen a human holding!

Quote:
Originally Posted by Alex34 View Post
Or does anyone know an intent for this?
Code:
/* Multi-window - kind of funky */
am broadcast -a com.onyx.action.START_MULTI_WINDOW
am broadcast -a com.onyx.action.QUIT_MULTI_WINDOW
Renate is offline   Reply With Quote
Old 04-27-2024, 02:05 AM   #7
Alex34
Junior Member
Alex34 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Apr 2024
Device: Onyx Boox Note Air 1
Hey, thanks for your answer.

The intents are working perfectly to start and quit splitscreen. But in fact with the key combinations CMD+[ and CMD+] you can change the ratio of the splitscreen to 25/75%, 50/50% or 75/25% of the screen width. That is why I am looking for a way to simulate the key presses.

I tried

Quote:
am broadcast -a onyx.android.intent.send.key.event --ei key_code M71
[am broadcast -a onyx.android.intent.send.text --ei text M71
But it's not working. I also tried a lot of things with Tasker, but the CMD key is not working through Tasker on my Note Air 1.

Do you have any further Idea?
Alex34 is offline   Reply With Quote
Old 04-27-2024, 08:55 AM   #8
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 3,164
Karma: 12537601
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
Quote:
Originally Posted by Alex34 View Post
But it's not working.
Sorry, that "M71" stuff was only applicable to my injector.

I presume that that stuff is in SystemUI.apk but I've only got a Poke3 and a Poke5 and they don't seem to support split screen.

It's probably in /system_ext/priv-app/SystemUi/SystemUi.apk
adb pull a copy and post it somewhere, please.
Renate is offline   Reply With Quote
Old 04-30-2024, 03:05 PM   #9
Alex34
Junior Member
Alex34 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Apr 2024
Device: Onyx Boox Note Air 1
I exported the APK with apk-analyzer app and uploaded it here:

https://we.tl/t-Y70TerzJrC
Alex34 is offline   Reply With Quote
Old 05-04-2024, 02:18 PM   #10
Alex34
Junior Member
Alex34 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Apr 2024
Device: Onyx Boox Note Air 1
Quote:
Originally Posted by Renate View Post
adb pull a copy and post it somewhere, please.
Have you already had the chance to download the file? The Download Link is only valid for another 3 days.

Thank you in advance for your Help!
Alex34 is offline   Reply With Quote
Old 05-04-2024, 03:38 PM   #11
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 3,164
Karma: 12537601
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
Quote:
Originally Posted by Alex34 View Post
Have you already had the chance to download the file?
Oh, you got me confused with your "App Analyzer" and that website gives me big silly photos of people.

Well, there is only so far down this rabbit hole that I want to go.
The start intent does stuff, but you need to experiment with the extras.
Code:
== Action ==

com.onyx.action.START_MULTI_WINDOW

== Extras ==

int "primary_task_id"

int "args_primary_task_create_mode"

int "args_multi_windowmode"

int "args_spilt_screen_layout_type"

boolean "args_primary_task_to_top"

boolean "args_ignore_window_mode_check"

Bundle "compat_m_args_secondary_task_bundle"
Renate is offline   Reply With Quote
Old 05-06-2024, 01:27 AM   #12
Alex34
Junior Member
Alex34 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Apr 2024
Device: Onyx Boox Note Air 1
Thanks alot, but I am unfortunetely not able to make the Extras work. Do you have any Idea about valid values for the integers below?

Or can you tell me where and how you found the intent and the information about the extras? I checked the manifest.xml, but without sucess.
Alex34 is offline   Reply With Quote
Old 05-06-2024, 06:22 AM   #13
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 3,164
Karma: 12537601
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
Extras are not registered, so there's nothing in AndroidManifest.xml
They are in SystemUi.apk in com\android\systemui\stackdivider\OnyxSplitScreenI nfo.smali

Oh, yeah, you obviously can't extra a Bundle from a shell.

Last edited by Renate; 05-06-2024 at 06:42 AM.
Renate is offline   Reply With Quote
Old 08-25-2024, 01:53 AM   #14
HeavyLiquid
Member
HeavyLiquid began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Mar 2017
Device: Kobo Mini
Unfortunately on my note air3c key_code 134 doesn’t work for refresh if I send the intent with Macrodroid. F4 on keyboard works and other key_codes do (super cool!) but not F4? Any idea, can someone try on their device?

I’m trying to automate a page turn, wait, refresh in macrodroid using Bluetooth. If I just map a Bluetooth key to F4 it’s two presses because I can’t simulate it. I’m not rooted or ADBd.
HeavyLiquid is offline   Reply With Quote
Old 08-25-2024, 02:28 AM   #15
HeavyLiquid
Member
HeavyLiquid began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Mar 2017
Device: Kobo Mini
I take it back. It works in some apps but not others. For instance, not in launcher or Reddit, or Neobrowser but in PressReader or Mihon it does. Weird one. Maybe I’ll launch intent from elsewhere and try.
HeavyLiquid is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
App Icons for Boox Devices triumph627 Onyx Boox 13 04-23-2021 08:58 AM
Boox releasing 5 new devices Crowriver Onyx Boox 105 10-07-2020 09:47 AM
[GUIDE] OTG devices with Onyx boox utkarshj Onyx Boox 36 05-19-2020 01:27 PM
Separate collection for devices bump Library Management 0 01-14-2017 04:23 PM
Calibre work with two different devices? BrentB Devices 4 11-18-2011 10:22 AM


All times are GMT -4. The time now is 04:17 PM.


MobileRead.com is a privately owned, operated and funded community.