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 04-03-2022, 10:28 PM   #1
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,895
Karma: 17236157
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
Angry Onyx 3.2.1 release screwed with buttons

I just did the 3.2.1 update on my Poke3.
Those knuckleheads mucked with the buttons.

At a low level they made all PgDn to be VolDn and all PgUp to be VolUp
(This is not a keylayout issue.)

Even:
Code:
# input keyevent 92 => 24
# input keyevent 93 => 25
Ok, tomorrow I'll look at it.

Edit: Well, I was too impatient, I wanted to read my book and not be annoyed by dumb stuff.

So, there is probably a setting to disable this (but in any case, the setting changed with the update), but because it cobbles in long press it also delays a simple push until it's released.

It's all in /system/framework/framework-res.apk -> res/raw/keypad.json
Code:
    {
      "keySet": [
        "KEYCODE_PAGE_UP"
      ],
      "shortPressAction": "switchByConf",
      "longPressAction": "KEYCODE_MENU",
      "repeat": false
    },
    {
      "keySet": [
        "KEYCODE_PAGE_DOWN"
      ],
      "shortPressAction": "switchByConf",
      "longPressAction": "fullRefreshScreen",
      "repeat": false
    },
I mentioned elsewhere how to disable this. I'll follow up tomorrow. My book is calling.

Last edited by Renate; 04-03-2022 at 11:02 PM.
Renate is offline   Reply With Quote
Old 04-04-2022, 06:42 AM   #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,895
Karma: 17236157
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
I had previously disabled all this long press stuff and key mapping.
I ran into problems before when I just deleted res/raw/keypad.json and res/raw/bt_keypad.json from /system/framework/framework-res.apk
The least intrusive way to disable access to these two files is to rename the filenames in the .zip (.apk) in the local header.

These numbers are from the Poke3 but other models will have stuff in approximately the same place.
Code:
C:\>findtext framework-res.apk keypad.json
00B2BCBD  res/raw/bt_keypad.json // manifests
00B2BD91     res/raw/keypad.json
01539DDE  res/raw/bt_keypad.json // zip local headers
0153A5A1     res/raw/keypad.json
016A3844  res/raw/bt_keypad.json // zip global headers
016A39E5     res/raw/keypad.json
C:\>modfile framework-res.apk 1539DDE 7a // k -> z
C:\>modfile framework-res.apk 153A5A1 7a // k -> z
(Your tools are probably named something else, but you get the idea.)

Then you'll need to put the modified file in a Magisk module.
You should probably make a module just for yourself that you can throw in odds and ends.
Making a module like this is easier than a packaged module for distribution.
Just make your own directory:
Code:
# cd /data/adb/modules
# mkdir -p MyModule/system/framework
Then you'll need to make the MyModule/module.prop file. It's nothing critical, just give your module some names. It's all documented here: https://topjohnwu.github.io/Magisk/guides.html
Renate is offline   Reply With Quote
Advert
Old 04-04-2022, 10:51 AM   #3
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,506
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
Why don’t you just override long presses with “Do nothing” in, for example, Button Mapper?
mergen3107 is offline   Reply With Quote
Old 04-04-2022, 10:54 AM   #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,895
Karma: 17236157
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
Quote:
Originally Posted by mergen3107 View Post
Why don’t you just override long presses with “Do nothing” in, for example, Button Mapper?
I don't object to the actions of a long press, I object that the system holds off 1/2 a second to determine whether something is a short or long press. Also, I have no need of Button Mapper.
Renate is offline   Reply With Quote
Old 04-04-2022, 12:19 PM   #5
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,506
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
This time delay is also configurable in Button Mapper
mergen3107 is offline   Reply With Quote
Advert
Old 04-04-2022, 01:10 PM   #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,895
Karma: 17236157
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
Not if the Onyx stuff has already delayed it. Have you checked?
Renate is offline   Reply With Quote
Old 04-05-2022, 02:41 AM   #7
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,506
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
Ah, ok! No, I haven’t
mergen3107 is offline   Reply With Quote
Old 04-06-2022, 02:17 PM   #8
daldred
Enthusiast
daldred is a marvel to beholddaldred is a marvel to beholddaldred is a marvel to beholddaldred is a marvel to beholddaldred is a marvel to beholddaldred is a marvel to beholddaldred is a marvel to beholddaldred is a marvel to beholddaldred is a marvel to beholddaldred is a marvel to beholddaldred is a marvel to behold
 
Posts: 30
Karma: 11514
Join Date: Sep 2010
Device: Elonex eb511
You're referring to Magisk modules and stuff here.

Is this update something to avoid if using a standard Poke3 (without Magisk or anything much else installed)?
daldred is offline   Reply With Quote
Old 04-06-2022, 02:34 PM   #9
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,895
Karma: 17236157
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
Quote:
Originally Posted by daldred View Post
Is this update something to avoid if using a standard Poke3?
No, the update is fine. It just seems like they changed some things that have to do with buttons. If you don't use a wired or Bluetooth keyboard or Bluetooth remote or any case buttons then this change will not affect you.

Being an optimist, I always hope that updates will be to help stability and increase performance. Therefore, if there is something that comes in that doesn't suit you it's better to just attack that than to roll back to an older version.
Renate is offline   Reply With Quote
Old 04-11-2022, 10:49 AM   #10
Djezpur
Member
Djezpur is on a distinguished road
 
Posts: 16
Karma: 50
Join Date: Apr 2022
Device: Onyx Boox Leaf 2
Renate, how did you update your rooted Poke3?

Mine is rooted with Magisk and I have tempered a bit with the files in the system/media folder.

I have tried two ways to update to 3.2.1 - (1) by retrieving the OTA-file directly and (2) by placing the update.upx on the sdcard as described at the bottom of this page: https://blog.tho.ms/hacks/2021/03/27...-note-air.html

Both times the update was being processed and decrypted, but the device always reboots back to 3.2.
Do I need to flash the original boot.img first?
Djezpur is offline   Reply With Quote
Old 04-11-2022, 11:17 AM   #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,895
Karma: 17236157
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
Right now it's not really a problem if you directly modified files in /system (or /vendor) as Onyx is still putting out unconditional updates. When they become incremental (i.e. much smaller than 1 GB) is when that will change. At some point you may need to restore /system and/or /vendor to do an update.

boot.img is monolithic, so it will either get replaced or not, same for recovery.

I've actually gotten away from Magisk, but that's irrelevent.

I've been doing updates using direct download, decrypting to zip and using a USB flash drive and a custom recovery (just because I can). I've disabled too much Onyx stuff already.
Renate is offline   Reply With Quote
Old 04-11-2022, 11:32 AM   #12
Djezpur
Member
Djezpur is on a distinguished road
 
Posts: 16
Karma: 50
Join Date: Apr 2022
Device: Onyx Boox Leaf 2
Thanks for your swift reply!

So reflashing boot.img will not have any effect and custom recovery is the only way to go?

(It's not that I'm eager to update to 3.2.1, but I would like to know what the correct procedure is.)
Djezpur is offline   Reply With Quote
Old 04-11-2022, 11:41 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,895
Karma: 17236157
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
No, it's certainly not the only way to go.

In regular Onyx, you can park the (still encrypted) .upx in /scard
You can navigate to some dialog for "Start update", but I forget how to get there.
You can just:
Code:
$ am start -n com.onyx.android.onyxotaservice/.OtaInfoActivity
I think.

Last edited by Renate; 04-11-2022 at 11:43 AM.
Renate is offline   Reply With Quote
Old 04-11-2022, 11:57 AM   #14
Djezpur
Member
Djezpur is on a distinguished road
 
Posts: 16
Karma: 50
Join Date: Apr 2022
Device: Onyx Boox Leaf 2
Quote:
Originally Posted by Renate View Post
In regular Onyx, you can park the (still encrypted) .upx in /scard
You can navigate to some dialog for "Start update".
That's what I've tried to do and the file does get recognized and decrypted but when the device automatically reboots to finish the update, I see my own boot animation again and I'm still on 3.2
Djezpur is offline   Reply With Quote
Old 04-11-2022, 11:59 AM   #15
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,895
Karma: 17236157
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
Well, that's one reason why I do stuff the way I do. I like to watch.
Attached Thumbnails
Click image for larger version

Name:	autoup1.jpg
Views:	147
Size:	126.0 KB
ID:	193203  
Renate is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firmware 2.3 for Onyx Note will be release very soon cicabum Onyx Boox 2 04-30-2020 09:36 AM
Wow, Apple screwed up another FW release! OtinG Apple Devices 0 11-01-2019 11:22 AM
Where are the pre-release purchase buttons? Sydney's Mom General Discussions 8 09-06-2012 10:57 PM
hello, and Q on onyx boox US release date plutino Introduce Yourself 2 11-24-2009 08:47 AM


All times are GMT -4. The time now is 04:42 AM.


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