{"id":17654281,"url":"https://github.com/pgaskin/lithiumpatch","last_synced_at":"2025-07-10T10:36:48.614Z","repository":{"id":57658707,"uuid":"472275906","full_name":"pgaskin/lithiumpatch","owner":"pgaskin","description":"Adds additional functionality to the Lithium EPUB Reader Android app.","archived":false,"fork":false,"pushed_at":"2025-04-04T04:55:53.000Z","size":59920,"stargazers_count":64,"open_issues_count":3,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-15T05:47:12.512Z","etag":null,"topics":["android","apk","apktool","epub","smali"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pgaskin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-21T09:53:58.000Z","updated_at":"2025-04-12T11:18:18.000Z","dependencies_parsed_at":"2024-03-30T04:25:29.536Z","dependency_job_id":"5f5b23c4-f26c-4191-97a3-7b65a9a52ae6","html_url":"https://github.com/pgaskin/lithiumpatch","commit_stats":{"total_commits":73,"total_committers":1,"mean_commits":73.0,"dds":0.0,"last_synced_commit":"6d37ba26c86fa2110f6221d53332031d67ca5b85"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaskin%2Flithiumpatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaskin%2Flithiumpatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaskin%2Flithiumpatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaskin%2Flithiumpatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgaskin","download_url":"https://codeload.github.com/pgaskin/lithiumpatch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249016316,"owners_count":21198832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","apk","apktool","epub","smali"],"created_at":"2024-10-23T12:09:19.826Z","updated_at":"2025-04-15T05:47:24.807Z","avatar_url":"https://github.com/pgaskin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lithiumpatch\n\nAdds additional functionality to the Lithium EPUB Reader Android app.\n\n## Features\n\n- Requires Android Oreo (8) or higher.\n- Latest WebView (at least ~73) required for full functionality.\n- Custom icon color.\n- Monochrome adaptive icon support.\n- Dynamic grid view cover width and custom aspect ratio.\n- Optional cover-only grid view.\n- Debuggable reader webview.\n- Dictionary (works offline).\n- Custom fonts.\n- Additional font script support (e.g., Thai).\n- Smaller minimum font size.\n- Additional information in the reader footer.\n- Series metadata support.\n- Series section in library drawer.\n- Increased number of visible actions for the reader toolbar.\n- Support for inverted portrait/landscape rotation.\n- Expand display settings popup by default.\n- Support for hyphenation.\n- Additional built-in themes.\n- Material You colors on Android 12+.\n- Full-bleed background in fullscreen mode on devices with a notch.\n- Option to disable page turn animations (e.g., for e-ink screens).\n- Option to invert the color of images or the entire page.\n\n## Usage\n\n1. Install JRE 1.8 or newer.\n2. Install Go 1.21 or newer.\n3. Install zipalign (part of the Android build tools).\n4. Optionally run `go generate ./dict/edgedict` to download additional dictionaries.\n5. Optionally download additional fonts into the `fonts` directory to add additional fonts (to limit them to a single language, put them in a subdirectory named `latin`/`cyrillic`/`greek`/`thai`).\n6. Run `go generate ./app` from the root of the repository to download the APK. If this does not work, you can manually download the Lithium 0.24.5 APK from [here](https://www.apkmirror.com/apk/faultexception/lithium-epub-reader/lithium-epub-reader-0-24-5-release/lithium-epub-reader-0-24-5-android-apk-download/) or extract it from your device.\n7. Run `go run . app/Lithium_0.24.5.apk` from the root of the repository. Use `--help` to see additional options including using a custom keystore, setting the tool paths, and adding fonts from an external directory.\n8. For Google Drive support, specify a custom keystore with `--keystore whatever.jks`, and create a new Google APIs project with access to the Drive API for the signing key's signature to enable sync.\n\n```\nusage: lithiumpatch [options] APK_PATH\n\noptions:\n  -k, --keystore string              Path to keystore for signing (will be created if does not exist) (default \"keystore.jks\")\n      --keystore-alias string        Keystore alias (default \"default\")\n      --keystore-passphrase string   Keystore passphrase (default \"default\")\n  -o, --output string                Output APK path (default: {basename}.patched.resigned.apk)\n  -d, --diff string                  Write diff to the specified file (default: disabled)\n      --add-fonts strings            Add extra TTF fonts from a directory (Regular/Roman, Bold, Italic, and BoldItalic variants should be provided) (can be specified multiple times)\n      --apktool string               Path to apktool.jar (2.8.1) (default \"lib/apktool-2.8.1.jar\")\n      --apksigner string             Path to apksigner.jar (0.9 or later) (default \"lib/apksigner-0.9.jar\")\n      --zipalign string              zipalign executable (will search PATH) (default \"zipalign\")\n      --keytool string               keytool executable (will search PATH) (default \"keytool\")\n  -q, --quiet                        Do not show the diff\n      --help                         Show this help text\n```\n\n**Note:** If you get an error from apktool about `No resource identifier found for attribute 'preserveLegacyExternalStorage'`, run `java -jar lib/apktool-2.8.1.jar empty-framework-dir`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgaskin%2Flithiumpatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgaskin%2Flithiumpatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgaskin%2Flithiumpatch/lists"}