View Single Post
Old 01-31-2020, 05:37 AM   #259
pazos
cosiņeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
Quote:
Originally Posted by mePy2 View Post

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.
We don't support any "offline" device and some core features, like wikipedia, dictionary download, ota updates.., use it a lot.

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
pazos is offline   Reply With Quote