Skip to content

Universal Reader v0.3.1

Latest

Choose a tag to compare

@wuwenhou wuwenhou released this 12 Nov 14:16

Universal Reader v0.3.1

A fix for the version that closed itself right after it was opened.

What went wrong

The ad block engine was built while the app started, and it was built twice:
once by the app and once by the reader. Parsing the filter lists needs a few
hundred megabytes of memory, so the second parse was enough for Android to
kill the app right after it was opened.

The fix

  • The engine is only built when a chapter is opened, never while the app
    starts.
  • A build that is already running is not restarted.
  • Only ABPVN is enabled by default. EasyList and EasyPrivacy need a few
    hundred megabytes to parse, which is more than a low end phone can spare
    while it is running. They can be switched on in
    Settings → Ad blocking, and the app turns the blocking off on a device
    that cannot hold the engine instead of being closed by the system.
  • The text-to-speech session is created when it is first used instead of
    when the app starts, because creating it binds the system speech engine.
  • A blocked request answers without a body, which the fetch implementation
    rejects for a 204.
  • The error boundary now wraps the whole application, so a failure while it
    starts up shows an error instead of closing the app.
  • A chapter above 256 KB is no longer walked with a DOM parser, which took
    seconds on a low end phone. The cosmetic rules still apply and the requests
    are still blocked.

Downloads

File ABI
UniversalReader-v0.3.1-arm64-v8a.apk arm64-v8a (most modern phones)
UniversalReader-v0.3.1-armeabi-v7a.apk armeabi-v7a (older phones)
UniversalReader-v0.3.1-universal.apk all ABIs
UniversalReader-v0.3.1-x86.apk x86 (emulator)
UniversalReader-v0.3.1-x86_64.apk x86_64 (emulator)

SHA256SUMS.txt holds the checksum of every file.

This release has a higher version code than 0.3.0, so it can be installed
over it.