![]() |
#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. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,838
Karma: 12000001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
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 06:41 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#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. |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,838
Karma: 12000001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
Augmented, annotated and sorted:
|
![]() |
![]() |
![]() |
#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 | |
|
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,838
Karma: 12000001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
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 |
|
![]() |
![]() |
![]() |
#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? |
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,838
Karma: 12000001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
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. |
![]() |
![]() |
![]() |
#9 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Apr 2024
Device: Onyx Boox Note Air 1
|
|
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Apr 2024
Device: Onyx Boox Note Air 1
|
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,838
Karma: 12000001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
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" |
![]() |
![]() |
![]() |
#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. |
![]() |
![]() |
![]() |
#13 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,838
Karma: 12000001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
|
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 05:42 AM. |
![]() |
![]() |
![]() |
#14 |
Junior Member
![]() Posts: 9
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. |
![]() |
![]() |
![]() |
#15 |
Junior Member
![]() Posts: 9
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.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
App Icons for Boox Devices | triumph627 | Onyx Boox | 13 | 04-23-2021 07:58 AM |
Boox releasing 5 new devices | Crowriver | Onyx Boox | 105 | 10-07-2020 08:47 AM |
[GUIDE] OTG devices with Onyx boox | utkarshj | Onyx Boox | 36 | 05-19-2020 12:27 PM |
Separate collection for devices | bump | Library Management | 0 | 01-14-2017 03:23 PM |
Calibre work with two different devices? | BrentB | Devices | 4 | 11-18-2011 09:22 AM |