01-31-2020, 05:07 AM | #256 | |
Junior Member
Posts: 8
Karma: 10
Join Date: Jan 2020
Device: Max2 Pro
|
Quote:
Thank you. Well yes... but before starting to ask you many things, I would like you to join this Discord and to directly chat there. TL;DR is I would like to compile KOReader for Android and optimizing it for my Max2 Pro device. First thing I would like to do is to remove all the things I do not need like internet connection. But again, I think it’s more comfortable to speak there. Cheers https://discord.gg/MJsjcKJ Tell me (mePy2) “who you are” if you enter :) |
|
01-31-2020, 05:23 AM | #257 | |
cosiñeiro
Posts: 1,271
Karma: 2200049
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
You can remove the apk without loosing any configuration as long as you do not remove the /sdcard/koreader folder, where shared preferences are stored. |
|
01-31-2020, 05:33 AM | #258 | |
Wizard
Posts: 1,619
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
I would recommend you open an issue on GitHub or go to https://gitter.im/koreader/koreader so that there are more people who see and can respond to your questions. Also if something's unclear in the docs that way it has a significantly better chance of being fixed.
Quote:
|
|
01-31-2020, 05:37 AM | #259 | |
cosiñeiro
Posts: 1,271
Karma: 2200049
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
Bear in mind that if you're trying to remove the android INTERNET permission without modifying the entire frontend you'll end with an app that crashes each time it tries to connect to something. Having an app crashing is not exactly an optimization. More in general, stripping not needed parts of the code isn't really an optimization. The entire program logic is less than 100k lines of code, including device abstraction, framebuffer/input handling and ffi for a bunch of libraries. My suggestion would be leaving the frontend as is and just don't use the network features. You can remove most of the plugins you don't need before building the apk without problem. If you have technical questions about the android platform code you can ask in https://github.com/koreader/android-luajit-launcher. Cheers |
|
01-31-2020, 05:56 AM | #260 |
Wizard
Posts: 1,619
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Removing the plugins isn't an optimization either though. It is in the sense that the program will start slightly faster (but for the most part not in a way you'll notice), but you can just disable them in the settings to achieve the same effect. Going through the effort of compiling a custom build just for that would be pretty much the opposite of optimizing anything.
|
01-31-2020, 06:26 AM | #261 | |
cosiñeiro
Posts: 1,271
Karma: 2200049
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
In the traditional sense of optimizations we have an open issue about integrating the eink update routines for onyx devices. Maybe mePy2 find it interesting: https://github.com/koreader/koreader/issues/5073 |
|
01-31-2020, 06:55 AM | #262 |
Junior Member
Posts: 8
Karma: 10
Join Date: Jan 2020
Device: Max2 Pro
|
Thank you guys. You are fast.
What I would like to achieve is a minimal version of the reader with very little functionality. So no plugins, no internet, even some formats support removed if necessary. Maybe I didn’t specify that what I’m trying to achieve is another application, based on koreader, which has the above specifics. |
01-31-2020, 07:35 AM | #263 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
As people mentioned, it isn't going to make anything any faster. The only thing you'll have done is a lot of work for a simpler UI .
|
01-31-2020, 07:49 AM | #264 | |
cosiñeiro
Posts: 1,271
Karma: 2200049
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
Have fun with that but don't expect any kind of support, specially if you're going to remove parts of working code. |
|
01-31-2020, 08:21 AM | #265 |
Junior Member
Posts: 8
Karma: 10
Join Date: Jan 2020
Device: Max2 Pro
|
good answer. very nice person.
|
01-31-2020, 09:04 PM | #266 | |
Enthusiast
Posts: 32
Karma: 10
Join Date: Mar 2015
Device: Kobo Aura H2o
|
Quote:
I removed the old one and installed the new one; works great. Thanks for the help! |
|
02-18-2020, 11:45 AM | #267 |
Enthusiast
Posts: 28
Karma: 10
Join Date: Feb 2018
Device: Likebook Mars, Onyx Boox Nova, EnergyReader ProHD (Boyue)
|
Really it would be better if we could choose a personalized path for the sdr folders, between main memory (or a simple file) or book folder, each would choose according to their needs. Is this parameter not possible in the Settings ? Thank you
Last edited by joandr; 02-18-2020 at 11:57 AM. |
02-18-2020, 12:13 PM | #268 | |
cosiñeiro
Posts: 1,271
Karma: 2200049
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
There are a few reasons to keep sidecar dirs in the same path of books: easy sync, easy backup & restore, easy export, avoids hashing each book on an underpowered device, allows moving books... The only downside I can see is that exploring a directory filled with books (and sidecar dirs) is not as clean as one with ebooks only. That issue is android (and desktop, dunno Pocketbook) specific because on the rest of platforms there are no filemanagers that can display these "crappy" files. |
|
03-18-2020, 01:32 AM | #269 |
Member
Posts: 13
Karma: 10
Join Date: Sep 2015
Device: Kobo Aura H2O, Kobo Glo, PocketBook 626
|
Hello! I use Koreader on Tolino Vision 4. Autorun SimpleInkLauncher - > Koreader -> I get to the filemanager (library). Can I make an option to open the last book I read? Thank you for a wonderful program!
|
03-18-2020, 02:52 AM | #270 |
Wizard
Posts: 1,060
Karma: 3000026
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
Try this:
File Manager - Menu on top, first tab, "Start with:" -> Last file. Works on Kindle |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Koreader running on Kobos (all of them, hopefully!) | giorgio130 | KOReader | 3517 | 03-24-2024 05:43 PM |
Koreader doesn't work on 5.4.3 | vr4y | Kindle Developer's Corner | 13 | 04-15-2014 03:40 AM |
coolreader/koreader without fmon | peyton | Kobo Developer's Corner | 17 | 03-30-2014 04:06 PM |
framebuffer settings for koreader | shadoooo | Kobo Developer's Corner | 15 | 01-01-2014 11:20 AM |
Koreader v. Coolreader | 93terp | Kobo Developer's Corner | 8 | 11-05-2013 04:37 AM |