02-04-2022, 11:07 AM | #1 |
Enthusiast
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:
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. |
02-04-2022, 01:40 PM | #2 |
Onyx-maniac
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. |
Advert | |
|
05-10-2022, 12:02 PM | #3 |
Enthusiast
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.)
Source: User MAI from the Boox Lumi user group on Wechat. Here is MAI's original notes written in Chinese, as linked. |
05-10-2022, 12:54 PM | #4 |
Onyx-maniac
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:
|
04-22-2024, 01:35 AM | #5 |
Junior Member
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? |
Advert | |
|
04-22-2024, 10:07 AM | #6 | |
Onyx-maniac
Posts: 3,164
Karma: 12537601
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
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:
Code:
/* Multi-window - kind of funky */ am broadcast -a com.onyx.action.START_MULTI_WINDOW am broadcast -a com.onyx.action.QUIT_MULTI_WINDOW |
|
04-27-2024, 02:05 AM | #7 | |
Junior Member
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:
Do you have any further Idea? |
|
04-27-2024, 08:55 AM | #8 |
Onyx-maniac
Posts: 3,164
Karma: 12537601
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
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. |
04-30-2024, 03:05 PM | #9 |
Junior Member
Posts: 5
Karma: 10
Join Date: Apr 2024
Device: Onyx Boox Note Air 1
|
|
05-04-2024, 02:18 PM | #10 |
Junior Member
Posts: 5
Karma: 10
Join Date: Apr 2024
Device: Onyx Boox Note Air 1
|
|
05-04-2024, 03:38 PM | #11 |
Onyx-maniac
Posts: 3,164
Karma: 12537601
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
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" |
05-06-2024, 01:27 AM | #12 |
Junior Member
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. |
05-06-2024, 06:22 AM | #13 |
Onyx-maniac
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. |
08-25-2024, 01:53 AM | #14 |
Member
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. |
08-25-2024, 02:28 AM | #15 |
Member
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.
|
|
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 |