{"id":18469630,"url":"https://github.com/janithcooray/lin_os_swap_mod","last_synced_at":"2025-10-11T12:47:37.790Z","repository":{"id":182703219,"uuid":"668882178","full_name":"janithcooray/lin_os_swap_mod","owner":"janithcooray","description":"increases the SWAP memory by an additional 4GB or 8GB for Android 7.0 or above","archived":false,"fork":false,"pushed_at":"2025-02-13T05:25:16.000Z","size":171,"stargazers_count":90,"open_issues_count":5,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-13T09:11:30.013Z","etag":null,"topics":["android","android-development","android-root","android-rooting","android14","aosp","custom-rom","lineageos","magisk","magisk-module"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janithcooray.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["janithcooray"],"patreon":null,"open_collective":null,"ko_fi":"janithcooray","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2023-07-20T20:21:07.000Z","updated_at":"2025-09-11T16:04:44.000Z","dependencies_parsed_at":"2023-07-21T03:38:25.914Z","dependency_job_id":"abb8c4e6-5e3e-4938-9237-954d26f6ca6b","html_url":"https://github.com/janithcooray/lin_os_swap_mod","commit_stats":null,"previous_names":["janithcooray/lin_os_swap_mod"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/janithcooray/lin_os_swap_mod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janithcooray%2Flin_os_swap_mod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janithcooray%2Flin_os_swap_mod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janithcooray%2Flin_os_swap_mod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janithcooray%2Flin_os_swap_mod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janithcooray","download_url":"https://codeload.github.com/janithcooray/lin_os_swap_mod/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janithcooray%2Flin_os_swap_mod/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007193,"owners_count":26084248,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","android-development","android-root","android-rooting","android14","aosp","custom-rom","lineageos","magisk","magisk-module"],"created_at":"2024-11-06T10:11:07.721Z","updated_at":"2025-10-11T12:47:37.760Z","avatar_url":"https://github.com/janithcooray.png","language":"Shell","funding_links":["https://github.com/sponsors/janithcooray","https://ko-fi.com/janithcooray"],"categories":["android"],"sub_categories":[],"readme":"![linos jpg](https://github.com/janithcooray/lin_os_swap_mod/assets/50979590/55e98a40-9b04-4a72-8e1b-a59b394c7f10)\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e\n    Android 7+ Swapfile Mod\n  \u003c/h1\u003e\n\u003c/div\u003e\nThis Magisk module enables or increases the SWAP memory by an additional 4GB or 8GB for Android 7.0 or above. It should also work with AOSP based ROMs, but it has only been tested on Lineage OS, ASOP and EVOX.\n\n#\n\nTested Versions : Android 7 - 14\n\n\nAndroid 15 Pending\n#\n\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/janithcooray/lin_os_swap_mod/commits/main/)\n[![GPL license](https://img.shields.io/badge/License-GPL-blue.svg)](https://github.com/janithcooray/lin_os_swap_mod/blob/main/LICENSE)\n\n\n## Installation Steps\n1. Download a Varient of this module from the latest release, choose the varient of your choice (more info below)\n2. Flash the ZIP file in Magisk v24 or above\n\n\n## Config Varients\nWe have organized the configurations using the following naming scheme, which you will find in all v2+ releases. Simply download your desired variant and flash it. Each variant has its configuration hardcoded. To change the configuration, uninstall the previous module and flash the new one.\n\nThe naming scheme is as follows:\n`v\u003cSWAP_BIN_SIZE\u003e-\u003cSWAPPINESS\u003e-\u003cSWAP_FILE_PRIOR or AUTO\u003e`\n\n- SWAP_BIN_SIZE - is the size of how big the file will be in MB\n- SWAPPINESS -  A value between 0 and 100. Higher values may improve battery life and allow more background apps but can slow app responsiveness and potentially wear out your storage device.\n- SWAP_FILE_PRIOR - Useful if your ROM includes a swap file. Higher values prioritize the new swap file.\n\n\nFor Example, a 4096 SWAP_BIN_SIZE, 80% SWAPPINESS and SWAP_FILE_PRIOR as 1 would be called var_4096_80_1.sh. you will find these installation zips under assests on the release section.\n\n\n## No init.d Support Required\nThis module does not require init.d support for its operation.\n\n## SWAP Creation Process\nThe creation process for the SWAP may take a minute or two to complete.\n\n## Reboot\nOnce the installation is complete, reboot your device for the changes to take effect.\n\n## Verify if SWAP is Enabled\nTo verify if the SWAP is enabled, follow these steps:\n1. Download a terminal app\n2. Switch to SU (Super User) mode\n3. Type \"htop\" in the terminal app\n4. If you see a value above 4GB, then the SWAP is successfully enabled\n\n## Does Not touch ZRAM config\nthis module unlike others, does not touch the devices ZRAM config, rather runs along side.\nif you run `cat /proc/swaps`, you will see 2.\n\n## Best Results\nFor optimal results, open a few apps and keep them running for a few hours. The performance improvement is highly conditional.\n\nThe biggest difference i noticed in my case was battery life and less lag.\n\n## Device Testing\nThis module has been tested on Lineage 20 with a device having 4GB RAM. With an additional 8GB SWAP, the device was capable of running more apps and it felt like having more than 4GB RAM. Additionally, improved battery performance was observed. The average memory usage dropped from 89% to 65% with over 30 apps in the recent apps list and using a bulky Gapps package with all the future flags set to true.\n\n## Uninstallation\nTo uninstall the module, simply deactivate the module in Magisk and then reboot your device.\n\n## Support\nIf you find this module useful, please consider starring the repository on GitHub:\n[https://github.com/janithcooray/lin_os_swap_mod](https://github.com/janithcooray/lin_os_swap_mod)\n\n## Contribution\nFork this repository, create a new branch (example - dev/feature-name) and commit your changes, test and verify if they are functional.\nOnce you confirm, please open a pull request from your forked branch to the source branch and assign @janithcooray to review. I'll be testing them manually before merging it.\n\n## Issues\nIf you encounter any issues, please open an issue from GitHub at https://github.com/janithcooray/lin_os_swap_mod/issues/new i will try to patch them asap.\n\n## Update\n`2024-10-22` - Version `2.0-b beta` - Added More logging info, improved fail safe function\n\n`2024-10-22` - Version `2.0-a beta` - Adding separate Prebuilt Configs on install + Bug fixes, Added Fail Safe option\n\n`2023-10-15` - Version `1.3` - Increased Swappiness to fix usage issues\n\n`2023-07-25` - Version `1.2` - Added Option to choose RAM Priority over ZRAM\n\n`2023-07-22` - Version `1.1` - Updated SWAP Priority to auto and less then ZRAM\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanithcooray%2Flin_os_swap_mod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanithcooray%2Flin_os_swap_mod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanithcooray%2Flin_os_swap_mod/lists"}