the firmware version of the PocketBook 623 does not provide NetMgrPing()
this leads to the application crashing after WiFi is activated and the
keepalive is scheduled
https://github.com/koreader/koreader/pull/14895 is a bit inefficient and does not take the option to lock the orientation in place.
This change reuses the existing functionality and in turn respects the other settings as well
Wrap LIPC calls in pcall() to prevent crashes when accessing Wi-Fi properties.
This PR adds error handling to five critical functions that interact with the Kindle's LIPC (Lab126 IPC) system for Wi-Fi management. Without proper error handling, these functions can crash KOReader when LIPC calls fail.
- prior to #14719, `$KOREADER_DIR` was not part of the environment,
so an update relying on it without a restart from the parent
launcher would crash KOReader on startup
- pocketbook: fix check (`koreader.app` is located in `$KOREADER_DIR/..`)
- remarkable: ensure `$KOREADER_DIR` remain correct after relocalization
The input device is autodetected by FBInk, which should hopefully mean we don't have to think about this again when it hits new devices ;).
(Supported devices were the PW6 & CS at time of writing)
Re #14461
Cache the result of `android.isColorScreen()` once and for all
(since the result is static). This fix a regression from #14505,
where `Device:hasColorScreen()` is called from a fork when the
file browser tries to generate covers, resulting in a crash:
```
… F reader.launche: thread.cc:1326] Check failed: FindStackTop() > reinterpret_cast<void*>(tlsPtr_.stack_end) …
```
* Kobo: Don't send `PowerPress` twice when fudging page turn button events for `pageturn_power`
Should help with *some* #12787 reports, but not all, since that
issue predates the PR that implemented the above feature (#13669)
* Only fudge release events, dwallow press and repeat.
Always follow your first instinct ;).
Much of this code was taken from the Kobo implementation of an auxiliary battery. The biggest difference between the Kobo and Kindle implementation is that the status file for the charging cover is not present when the cover is detached, so the check for status there will result in the file failing to read.
- ArchiveViewer: instead of using unzip and to support more formats
(only CBR & RAR for now)
- NewsDownloader & Wikipedia plugins: instead of using `ZipWriter`
- device: re-implement `Device:unpackArchive` and get rid of device
specific `untar` implementations
- readerui: instead of using unzip for document provider detection
Currently you can only toggle page turn buttons to inverted or not. This
commit adds the ability to also have an option in dispatcher to set the
value instead of just toggling.
This can be useful for profiles that want to set the value rather then
toggle.
ATM you can only toggle G sensor lock in dispatcher, this commit adds
the ability to set the lock to on or off.
This can be useful in profiles that want to set an explicit mode
instead of toggling the setting.