Skip to content

Commit

Permalink
Fixed Pipeline issues
Browse files Browse the repository at this point in the history
# V2 Beta A

## WARNING THIS IS A BETA

## Removed
### Volume keys to configure
This was a pain, for some it doesn't work

## Added
### PreConfiged File
Each release file will have it's own config

### More Configs
12 Different Combinations Added. You can add mode under config/

### Fail Safe
No Idea on how well it'll work, but if the service file detects an incomplete start up of the last swapon, it will permenently disable itself.
To re-enable, it you have to re-install the module.

## Log File
is persistant now, but if you uninstall the module, it will get deleted

## Downloads

Here are the naming schemes for each config

`v<SWAP_BIN_SIZE>-<SWAPPINESS>-<SWAP_FILE_PRIOR or AUTO>`

- SWAP_BIN_SIZE - is the size of how big the file will be in MB
- SWAPPINESS - self explanatory, has to be betweeen 0 - 100. Larger vaules may boost battery life, more apps on background BUT apps will become a bit slower to respond and may destroy your storage device
- SWAP_FILE_PRIOR - usefull if you ROM comes with a swap file, higher values will prioritize the the new swap file.

For Example, a 4096 SWAP_BIN_SIZE, 80% SWAPPINESS and SWAP_FILE_PRIOR as 1 would be called var_4096_80_1.sh
  • Loading branch information
janithcooray committed Oct 22, 2024
1 parent eb48c07 commit b3f7050
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,32 @@ This Magisk module enables or increases the SWAP memory by an additional 4GB or

Tested Versions : Android 7 - 14


Android 15 Pending
#

[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/BlazeIsClone/A41SLBOT/commits/master)
[![GPL license](https://img.shields.io/badge/License-GPL-blue.svg)](https://github.com/BlazeIsClone/A41SLBOT/blob/master/LICENSE.txt)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/janithcooray/lin_os_swap_mod/commits/main/)
[![GPL license](https://img.shields.io/badge/License-GPL-blue.svg)](https://github.com/janithcooray/lin_os_swap_mod/blob/main/LICENSE)


## Installation Steps
1. Download the ZIP file for this module
1. Download a Varient of this module from the latest release, choose the varient of your choice (more info below)
2. Flash the ZIP file in Magisk v24 or above
3. During the installation, it will ask you to press the volume key for an interactive install
4. As soon as it prompts to press the volume key, do so

## Choose SWAP Size
- If the volume key is detected, you can choose between a 4GB or 8GB SWAP size
- If the volume key is not detected, the module will use a 4GB SWAP size by default

## Choose SWAP Priority
- If the volume key is detected, you can choose between the Highest or auto SWAP Priority
- If the volume key is not detected, the module will use auto SWAP Priority by default
## Config Varients
We 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.

The naming scheme is as follows:
`v<SWAP_BIN_SIZE>-<SWAPPINESS>-<SWAP_FILE_PRIOR or AUTO>`

- SWAP_BIN_SIZE - is the size of how big the file will be in MB
- 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.
- SWAP_FILE_PRIOR - Useful if your ROM includes a swap file. Higher values prioritize the new swap file.


For 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.


## No init.d Support Required
This module does not require init.d support for its operation.
Expand Down Expand Up @@ -73,7 +81,7 @@ Once you confirm, please open a pull request from your forked branch to the sour
If 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.

## Update
`2024-03-10` (Pending) - Version `2.0` - Adding App to manage Config and separate Prebuilt Configs on install + Bug fixes
`2024-10-22` - Version `2.0` - Adding separate Prebuilt Configs on install + Bug fixes, Added Fail Safe option

`2023-10-15` - Version `1.3` - Increased Swappiness to fix usage issues

Expand Down

0 comments on commit b3f7050

Please sign in to comment.