Frans de Jonge
ac7119c433
[fix] Android screen blackout on first light change ( #3303 )
7 years ago
Frans de Jonge
94c0e01b7f
[fix, Android] restore patch.lua and fix odd anonymous function issue
...
See https://github.com/koreader/koreader/issues/3214#issuecomment-332218408 and https://github.com/koreader/koreader/issues/3118#issuecomment-332633481
7 years ago
Huang Xin
a4e1a3ba5e
reflect changes in koreader/android-luajit-launcher#62 ( #3254 )
7 years ago
Frans de Jonge
87cf2864d9
Bump Android stuff ( #3251 )
...
https://github.com/koreader/koreader-base/pull/516
https://github.com/koreader/android-luajit-launcher/pull/62
7 years ago
Frans de Jonge
4360837e3b
[Android] Update to NDK 15 ( #3233 )
...
Also improve SDK installation for ease of setting up development system.
This also puts in place most of the missing pieces to finish the intent in #3064 .
7 years ago
Frans de Jonge
110c882bba
Bump android-luajit-launcher (fixes nightly build) ( #3229 )
7 years ago
Frans de Jonge
70e6aa9093
Bump android-luajit-launcher ( #3227 )
...
Part of the spirit of #3064 . Making it easier to test different things.
7 years ago
Frans de Jonge
abaa699080
Bump android-luajit-launcher
...
* Sync LuaJIT with koreader-base at v2.1.0-beta2 https://github.com/koreader/android-luajit-launcher/pull/58
7 years ago
Frans de Jonge
06d7eea507
[Kindle] Add support for Kindle PW3 "manga" model
...
Model number either `0LK` or `0LL`
See discussion in https://www.mobileread.com/forums/showthread.php?p=3565878#post3565878
7 years ago
Frans de Jonge
fd7382514e
Bump luajit-launcher
...
Fixes #3038
Also includes "Fullscreen status bar height" https://github.com/koreader/android-luajit-launcher/pull/56
7 years ago
Frans de Jonge
f95c52f680
Bump luajit-launcher
...
Fixes #3006
7 years ago
Frans de Jonge
6870bc2996
Bump luajit-launcher
...
Includes
* Android fullscreen mode (fa9dd61)
* add lib file name without suffix as fallback (c139b54)
7 years ago
Hzj_jie
30378eb2a8
Add restart koreader function and ensure FlushSettings event can be delivered to all widgets ( #2772 )
7 years ago
Frans de Jonge
1850ebca0d
(chore) koreader.sh: remove 32-bit workaround
...
Final fix for #2502 .
8 years ago
Qingping Hou
bdd0392a45
ota(fix): use gun tar in ubuntu touch and pocketbook
8 years ago
Qingping Hou
d1cc3bd6c2
ota(fix): always purge ota update files
8 years ago
a-kohout
870c4d3859
Update koreader.sh; fixes #2791
...
tar fails to apply permissions on fat32 filesystem. thus mv doesn't get executed and consequently OTA package gets applied on every launch.
8 years ago
Frans de Jonge
0eec5b5174
Simplify koreader.sh
...
`-C "${KOREADER_DIR}"` isn't needed, see https://github.com/koreader/koreader/issues/2752#issuecomment-293698136 .
8 years ago
Frans de Jonge
5de8310aa6
Kobo (koreader.sh): install OTA update in working directory
...
Thanks to @a-kohout
Fixes #2752
8 years ago
Frans de Jonge
e8c01274f4
Travis: enforce shellscript coding style
...
* enormous coding style update
* update luajit-launcher
All changes are formatting only except for:
* new more correct pushd/popd style
* keeps useful indentation
* prevents execution of commands when pushd failed (cf. https://github.com/koalaman/shellcheck/wiki/SC2164 and https://github.com/koalaman/shellcheck/issues/863 )
```
pushd some_dir && {
command1
command2
} || exit
popd
```
8 years ago
Frans de Jonge
9d39f11f59
Travis: speed up by caching base and running luacheck earlier ( #2741 )
...
* Travis: speed up by caching base and running luacheck earlier
* ignore bin and install for git status change detection
* skip coverage except on official master branch. It adds 3 whole minutes and does nothing to prevent regressions
* also cache ~/.luarocks. It evens out but would generally prevent remote timeout shenenigans
* remove base cache dir before caching with verbose remove to see what's going on
* more inclusive shell code quality analysis
* fixed more shellcheck issues
* better shellcheck/shfmt debugging info
8 years ago
Frans de Jonge
e5bcdee85e
Add ShellCheck and shfmt shell code quality analysis ( #2712 )
...
* Add ShellCheck and shfmt shell code quality analysis
* kobo/koreader.sh: remove useless $PREFIX
* kobo/koreader.sh: fix rotation issue caused by #2731
* Travis: speed up (caching Luarocks should shave a minute off install process)
8 years ago
pazos
3a75b6deab
use fullpath for reboot
8 years ago
pazos
31b246574b
Kobo framebuffer: workaround to support +4.0FW
8 years ago
Qingping Hou
c34e04e081
wifi(fix): use -D wext for kobo wpa_supplicant
8 years ago
Qingping Hou
6b50a2783b
kobo(fix): load wifi module by ENV
...
Aura One uses 8189fs instead of dhd module
8 years ago
Martín Fernández
79fd02e020
Kobo: remove useless error messages from ntx_hwconfig
8 years ago
Qingping Hou
f95ad00b9e
feat: add logger module & rewrite kobo suspend script in lua
8 years ago
poire-z
65881738b5
disable-wifi.sh: decreased sleep duration
8 years ago
Qingping Hou
744115de9f
crash.log(fix): obviously I suck at counting zeros
8 years ago
poire-z
08a92de179
Fix: avoid system hang when disabling wifi ( #2394 )
8 years ago
cibersheep
922cd0fecf
Update manifest.json
...
- Update to current framework
- "name": should match: «hooks name».«nickname»
8 years ago
cibersheep
14155c3662
Policy_version version bump
8 years ago
Qingping Hou
b7cdf103e3
chore: fix luacheck error & add comment to release-ip.sh
8 years ago
Hzj_jie
8e5f294902
Return correct result from koreader.sh
8 years ago
Qingping Hou
efae2ed16f
network(fix): automaticallly obtain IP if network is already authenticated
8 years ago
Qingping Hou
705d3e4cb4
doc(minor): document alternative usb plug event source for kobo
8 years ago
Qingping Hou
0ed95406a4
log(fix): do not pipe stdout to /dev/null during crash log rotation
8 years ago
Qingping Hou
5309a0a47f
misc: rotate crash.log for kobo/kindle/pocketbook
8 years ago
Qingping Hou
3d79d44381
build: fix android and pocketbook builds
8 years ago
Qingping Hou
cc4e510194
bump koreader base for android build tweaks
8 years ago
Qingping Hou
c716fef0e3
minor: change wording in restore-wifi-sync script
8 years ago
Hzj_jie
52bcf87643
always release ip before obtaining a new one
8 years ago
Hzj_jie
da2c57f93a
Automatically connect WIFI after Kobo has been resumed ( #2215 )
...
* Add bash scripts to control WIFI / IP, so we can share them with frontend/device/kobo/device.lua.
* add test cases
8 years ago
NiLuJe
2013a66fdd
Some more Kobo suspend tweaks...
...
Disable wakeup_count handling, that's often causing more harm than
anything else...
Nickel doesn't even use it, that should have been a hint ;).
Make the logging slightly less confusing.
Add commented out debug features (dumping relevant dmesg output).
Re #2188
8 years ago
NiLuJe
0f184e30ed
Tweak nickel restart script
...
Also restart sickel...
8 years ago
NiLuJe
207af74527
Support the White Kindle PW3 & the Kindle Oasis.
...
Also attempts to support the new Kindle Basic, pending confirmation.
8 years ago
chrox
41f2fe85b7
fix #2119 by updating libSDL2.so and fix Evernote Plugin
8 years ago
chrox
687b6df4f2
add support of screen brightness settings for Android
...
and use standrad Android API to query battery level and charging status
This should fix #2025 , fix #1759 and fix #1415 .
8 years ago
NiLuJe
892e3c0f1e
Kobo startup script tweak.
...
When using KFMon, make the reboot on exit user-configurable.
The user can now choose to try to restart Nickel directly, like with
fmon.
For now, we still do a full reboot by default.
8 years ago
Frans de Jonge
8643d38a68
Removed some bashisms
9 years ago
NiLuJe
e90f1018db
Make the KFMon chekc actually accurate...
...
Sleep does wonder for your brain!
9 years ago
NiLuJe
b406e3591f
Update Kobo startup script for KFMon
...
Takes care of some potentially critical stuff ;p
9 years ago
NiLuJe
66b40955c6
Tweak the timing of the previous commit a bit
...
On those FW, we can get an up-to-date status bar, instead of the one
from our fb dump ;).
9 years ago
NiLuJe
a3536e28a6
Bypass a few unneeded usleep when possible
...
If awesome is stopped, it won't cause any trouble ;).
9 years ago
NiLuJe
879b593455
Refresh the UI properly on exit on more Kindle FW
...
This broadens the fix applied to FW >= 5.6.5 to the whole range of FW
5.x, because it appears to be needed on some FW 5.3.7.x versions...
Fix #1924
9 years ago
chrox
f3e0d44cc4
disable jit on some modules on android
...
to make koreader on Android more stable
and with these opt params:
```
require("jit.opt").start("sizemcode=64","maxmcode=64", "hotloop=10000")
```
The strategy here is that we only use precious mcode memory (jitting)
on deep loops like the several blitting methods in blitbuffer.lua and
the pixel-copying methods in mupdf.lua. So that a small amount of mcode
memory (64KB) allocated when koreader is launched in the android.lua
is enough for the program and it won't need to jit other parts of lua
code and thus won't allocate mcode memory any more which by our
observation will be harder and harder as we run koreader.
9 years ago
Qingping Hou
ff273158af
bump luajit-launcher
9 years ago
Qingping Hou
dceaa01250
minor: redirect all output to crash.log
9 years ago
Qingping Hou
8621720d19
bump base and luajitlauncher
9 years ago
Frans de Jonge
b8b0684e30
Add a comment with 'from_nickel', fixes #1889
9 years ago
Qingping Hou
55fa046d49
android: set android log tag to KOReader
9 years ago
chrox
3a9cb659d1
add OTA update on Android
9 years ago
NiLuJe
770625d756
Tweak the 'IR down on resume' workaround...
...
Only apply it when started from nickel, because I'm guessing we'd have
seen a number of reports of this if it happened more widely...
9 years ago
NiLuJe
ea382aea86
Tweak the sd is ro check a bit
...
Inspired from MRPI, but without a strict check of the device name,
because I'm not sure it'll be the same across the whole range of
Kobos...
9 years ago
NiLuJe
150aac1630
More comment tweaks re: Kobo suspend
9 years ago
NiLuJe
06e1bd4ed2
Slightly more accurate comments re: Kobo suspend
9 years ago
NiLuJe
fe13af9d7e
More Kobo suspend tweaks...
...
Basically more loging to debug suspend issues...
AFAICT, having anything plugged in over USB will screw things up, for
instance.
9 years ago
NiLuJe
6c8bbfd470
Unbreak Kobo frontlight -> off when suspending.
...
If no-one touches anything, flState stays false...
And anyway, we should unconditionally disable the fl on sleep.
9 years ago
NiLuJe
b0c2821ed8
More accurate comment.
...
I think better on a full stomach ;p.
9 years ago
NiLuJe
278f060c2a
Disable the Kindle passcode while we're running
...
Because we cannot deal with it properly...
We'd need to be able to stop eating all input, and have a lot of luck
with refresh timings to actually have the popup visible at the right
time.
TL;DR: it's a mess, kill it with fire.
Fix #1811
9 years ago
NiLuJe
4510625d37
Unbreak native screensavers on Kindle >= 5.7.2
...
Which I broke the last time I touched this.
NOTE: I'm not quire sure why the bbsave/bbrestore on stop/resume did a
double check (screensaver & charging), because that effectiely disabled
it when charging, which I don't quite understand...
Also makes sure the needsScreenRefreshAfterResume flag is honored on
Kindles, because we need it on FW >= 5.7.2
Note that this *breaks* the behavior with passcode enabled, which was
unwittingly fixed in said previous changes...
re #1811
9 years ago
Qingping Hou
427abd1cf6
bump base for android fix
9 years ago
zijiehe
e7b8bdcde2
Check whether sd card is presenting and mounting as RO, before do the real remount
9 years ago
zijiehe
38553b5ef8
Mount SD card as RW on kobo, but ignore errors, since we may not have sd
...
card installed.
9 years ago
NiLuJe
693e732a71
Fix exit when running from KUAL on FW >= 5.6.5
...
Properly refresh the screen with useful stuff, instead of leaving
us hanging with an unusable mix of framework and our own crap.
9 years ago
NiLuJe
af743d106e
When started from KUAL on FW >= 5.6.5...
...
try to refresh the screen with more useful stuff on exit.
And because I forgot in my last commit, the issue was reported here:
http://www.mobileread.com/forums/showpost.php?p=3258045&postcount=903
9 years ago
NiLuJe
d3333fe81d
Prevent the status bar clock from peeking out...
...
When launched from KUAL on FW >= 5.7.2
9 years ago
NiLuJe
6413390490
Make Amazon's additional CJK fonts available to us
...
Should be a no-op on systems which don't have any.
Fix #1802
9 years ago
Qingping Hou
65455cee23
bump luajit-launcher
9 years ago
Qingping Hou
cc8e079548
doc: update description for KUAL
9 years ago
Cosmin Gorgovan
856ec6d075
Mark suspend.sh for Kobo as executable
...
Otherwise suspend fails to work when running koreader from a FS
which supports execute permissions.
9 years ago
chrox
f3dbf9ce2e
move mmap workaround to android-luajit-launcher
9 years ago
chrox
3df4832265
fix mcode allocation failure on Android
...
This workaround makes a reservation of mmap slots that are hopefully
near the address of `mcode_alloc_at`. Then it unmaps those slots and
lets luajit allocate a large slot for mcode.
9 years ago
NiLuJe
f9925a8c82
Play with the Kobo suspend script...
...
Because apparently it's not behaving as it should? IDK...
9 years ago
NiLuJe
29f14491e1
Forgot this bit in a previous commit.
9 years ago
NiLuJe
5979f9f855
Better and more complete status bar handling.
...
When runnning from KUAL on FW >= 5.6.5
9 years ago
NiLuJe
55fa3db6a1
Minor tweak to handle FW 5.6.5 better...
...
When launching KOReader with the framework up from KUAL...
Our gentle hide/unhide method doesn't work anymore, which leads to
various issues, the most obvious being not getting a refresh to the
default UI on exit...
9 years ago
chrox
5bab00ff9b
add apparmor.openstore file for openstore submission
9 years ago
chrox
a60544b1ad
Koreader Ubuntu-touch port
...
Currently only tested on Ubuntu-touch emulator with framework
ubuntu-sdk-14.10 for armhf.
The ubuntu-touch port is binary compatible with the Kobo port
major changes in this PR are:
1. rename the emulator device to sdl device since both the emulator
and the ubuntu-touch target use libsdl to handle input/output.
2. ubuntu-touch app has no write access to the installation dir so
all write-outs should be in a seperate dir definded in `datastorage`.
9 years ago
chrox
cf56f6a6e5
update luajit repo url
9 years ago
chrox
b65b70fec6
update base and luajit-launcher
9 years ago
NiLuJe
d6ab3b5224
Fix previous commit
...
So it actually works as intended ;p.
9 years ago
NiLuJe
2058209aa8
More Kindle startup tweaks on legacy devices
...
Don't try to setup iptables if it's not there (K2/DX/DXG).
Note that we'll do it on the K3, but it'll be useless there (no wifi).
9 years ago
NiLuJe
f85c10e3b9
Minor tweak to exit behavior on legacy devices.
...
Properly refresh the screen when exiting with the framework running.
The lua code to handle that is called while cvm is SIGSTOPP'ed, so it
doesn't help.
9 years ago
NiLuJe
a19954a201
Restart Kindle framework from an unpolluted env
9 years ago
NiLuJe
a4ebfee83b
Handle the PW3
...
(Dry-coded, assume it's basically a PW2 w/ the KV screen ;p)
9 years ago
NiLuJe
687aba796d
Fix networkmgr on Kobo
...
To avoid potential issues with USBMS.
Namely, make sure CWD doesn't point to the userstore for persitent
processes.
Make sure wpa_supplicant doesn't try to use our own OpenSSL lib, which,
again, is in the userstore area.
Properly kill our dhcp client invocation on when killing WiFi
Also, some related fixes to the startup script:
Properly kill wpa_supplicant & the dhcp client when we kill
wifi before rebooting to nickel.
9 years ago
arasyi
d3bc8ecb5f
Fix nickel doesn't recognize sdcard after exiting
...
After exiting koreader, nickel will not recognize that sdcard is present.
This patch fixes that
9 years ago
Huang Xin
0b45394a7f
Merge pull request #1564 from Frenzie/koreader.sh
...
Fix KOReader exit
9 years ago