├── .gitignore ├── LICENSE ├── README.md ├── README_EN.md ├── changelog.md ├── config ├── 7+g2.lua ├── 888.lua ├── 8g1.lua ├── 8g2.lua ├── 8g3.lua ├── 8g4.lua ├── 8sg3.lua ├── gs101.lua ├── gs201.lua ├── gs301.lua ├── gs401.lua ├── mt8000.lua ├── mt9000.lua ├── mt9200.lua ├── mt9300.lua └── mt9400.lua ├── customize.sh ├── module.prop ├── service.sh └── version.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Lua sources 2 | luac.out 3 | 4 | # luarocks build files 5 | *.src.rock 6 | *.zip 7 | *.tar.gz 8 | 9 | # Object files 10 | *.o 11 | *.os 12 | *.ko 13 | *.obj 14 | *.elf 15 | 16 | # Precompiled Headers 17 | *.gch 18 | *.pch 19 | 20 | # Libraries 21 | *.lib 22 | *.a 23 | *.la 24 | *.lo 25 | *.def 26 | *.exp 27 | 28 | # Shared objects (inc. Windows DLLs) 29 | *.dll 30 | *.so 31 | *.so.* 32 | *.dylib 33 | 34 | # Executables 35 | *.exe 36 | *.out 37 | *.app 38 | *.i*86 39 | *.x86_64 40 | *.hex 41 | 42 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # **fas-gt-dlc** 2 | 3 | - [English](README_EN.md) 4 | 5 | 6 | ## **介绍** 7 | 8 | - 本仓库是项目[`fas-gt`](https://github.com/yinwanxi/fas-gt)的插件系统的模板仓库 9 | - 本仓库同时也是一个`magisk/ksu`模块的模板仓库,这是因为`fas-rs`插件推荐以独立模块的形式存在 10 | - 本仓库源自[`fas-rs-extension`](https://github.com/shadow3aaa/fas-rs-extension-module-template)但那个仓库为模板仓库,所以重新创了个新仓库 11 | 12 | ## **API** 13 | 14 | - 插件脚本是自文档化的,查看对应版本的`main.lua`以获取API说明 15 | - `fas-rs` 致力于保持向后兼容性。也就是说,即使更新的`fas-rs`发生了插件API更新,老的插件也依然能正常工作 16 | 17 | | 插件api | 最小fas-rs版本 | 18 | | --- | --- | 19 | | v0(不声明api版本时的默认) | v2.3.0 | 20 | | v1 | v3.0.0 | 21 | 22 | ## **使用** 23 | 24 | - `magisk/ksu`模块的标准可参考[magisk官方说明](https://magisk.readthedocs.io/en/latest/developers/guides.html),本仓库的模块模板开箱即用,如无特殊需求修改模块名和[main.lua](main.lua)即可 25 | - 插件实际被fas-rs调用的代码应全部在[main.lua](main.lua)中编写 26 | - [main.lua](main.lua)是自文档化的,包含了如何编写插件脚本的说明 27 | - 记得修改module/module.prop来更改模块名 & 模块id 28 | - 模块已经做好适配等,或者说,其本身就是一个模板,如果需要修改直接修改config和其他即可 29 | - ps: 可以检查```getprop fas-rs-installed```的输出来确认用户是否安装了`fas-rs` 30 | 31 | ## **FAQ** 32 | 33 | - 为什么推荐以`magisk/ksu`模块的形式开发插件? 34 | - 有以下原因: 35 | - 模块的id是唯一的,因此避免了插件重名导致的相互冲突 36 | - 方便用户管理插件 37 | - 方便进行依赖检查,比如此模板在未安装`fas-rs`时会拒绝安装 38 | 39 | - 可以通过别的方式制作插件吗/插件最基础的注册方式是什么? 40 | - 复制后缀为`.lua`的lua脚本到`/dev/fas_rs/extensions`文件夹(待它出现后)即可,要求和文档和[main.lua](main.lua)相同 41 | - 当对`/dev/fas_rs/extensions`下的脚本进行`删除/创建/修改`等操作时,`fas-rs`会重新读取所有插件脚本,也就是说插件是可以即时更新的 42 | -------------------------------------------------------------------------------- /README_EN.md: -------------------------------------------------------------------------------- 1 | # **fas-gt-dlc** 2 | 3 | - [简体中文](README.md) 4 | 5 | ## **Introduction** 6 | 7 | - This repository is the template repository of the plugin system of the project [`fas-gt`](https://github.com/yinwanxi/fas-gt) 8 | - This repository is also a template repository for the `magisk/ksu` module, because the `fas-rs` plugin is recommended to exist as an independent module 9 | - This repository is derived from [`fas-rs-exte This repository is derived from [`fas-rs-exte 10 | 11 | ## **API** 12 | 13 | - The extension script is self-documenting, check the corresponding version of `main.lua` for API description 14 | - `fas-rs` is committed to maintain backwards compatibility. That is, even if the extension API is updated in newer `fas-rs`, the old extension can still work normally. 15 | 16 | | extension api | Minimum fas-rs version | 17 | | --- | --- | 18 | | v0 (default when no api version is declared) | v2.3.0 | 19 | 20 | ## **Use** 21 | 22 | - The standard of the `magisk/ksu` module can refer to the [Magisk Official Description](https://magisk.readthedocs.io/en/latest/developers/guides.html), the module template of this repository is ready to use out of the box, if there is no special need to modify the module name and [main.lua](main.lua). 23 | - The code that the extension is actually called by fas-rs should be all written in [main.lua](main.lua). 24 | - [main.lua](main.lua) is self-documented and contains instructions on how to write extension scripts. 25 | - Remember to change module/module.prop to change the module name > module id 26 | - The module has been adapted, or in other words, it is a template. If you need to modify it, just modify the config and other 27 | - ps: You can check the output of```getprop fas-rs-installed```to confirm if the user has installed `fas-rs`. 28 | 29 | ## **FAQ** 30 | 31 | - Why is it recommended to develop extensions in the form of `magisk/ksu` module? 32 | - There are the following reasons: 33 | - The ID of the module is unique, so conflicts caused by duplicate names of extensions are avoided. 34 | - Convenient for users to manage extensions. 35 | - Easy to do dependency checking, e.g. templates refuse to be installed. 36 | 37 | - Is it possible to create a extension in other ways/What is the most basic way to register a extension? 38 | - Copy the lua script with the suffix `.lua` to the `/dev/fas_rs/extensions` folder (when it appears) with the same requirements as the documentation and [main.lua](main.lua). 39 | - When deleting/creating/modifying a lua script under `/dev/fas_rs/extensions`, `fas-rs` will re-read all extension scripts, which means that the extension can be updated instantly. 40 | -------------------------------------------------------------------------------- /changelog.md: -------------------------------------------------------------------------------- 1 | # 更新日志 2 | 3 | ## Fas-gt-dlc-0.03 4 | 5 | 【更新内容】 6 | 7 | - 适配新处理器 8 | - 修复部分处理器识别bug 9 | - 修改参数模型,优化使用体验 10 | - 修复模型配置错误 11 | - 修复异常卡顿问题 12 | - 针对机型和处理器进行真机配置,优化使用体验 13 | - 修改参数模型,优化使用体验 14 | - 解决功耗异常问题,修复bug 15 | - 优化优化安装脚本,增加流畅度 16 | 17 | 【Update content】 18 | - Adapts to new processors 19 | - Fixed the bug of some processor recognition 20 | - Modify the parameter model to optimize the user experience 21 | - Fix model configuration errors 22 | - Fixed the issue of abnormal lag 23 | - Configure the real machine for the model and processor to optimize the user experience 24 | - Modify the parameter model to optimize the user experience 25 | - Solve the problem of abnormal power consumption and fix the bug 26 | - Optimized the installation script to increase the smoothness 27 | -------------------------------------------------------------------------------- /config/7+g2.lua: -------------------------------------------------------------------------------- 1 | API_VERSION = 1 2 | 3 | function set_offset(policy0, policy4, policy7) 4 | set_policy_freq_offset(0, policy0) 5 | set_policy_freq_offset(4, policy4) 6 | set_policy_freq_offset(7, policy7) 7 | end 8 | 9 | function load_fas(pid, pkg) 10 | if (pkg == "com.miHoYo.Yuanshen" or pkg == "com.miHoYo.ys.mi" or pkg == "com.miHoyo.ys.bilibili" or pkg == "com.miHoYo.GenshinImpact") 11 | then 12 | set_offset(-400000, -250000, 0) 13 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.Nap.bilibili" or pkg == "com.miHoYo.zenless") 14 | then 15 | set_offset(-250000, -250000, 0) 16 | elseif (pkg == "com.tencent.tmgp.sgame" or pkg == "com.levelinfinite.sgameGlobal") 17 | then 18 | set_offset(-350000, -200000, 0) 19 | elseif (pkg == "com.netease.x19" or pkg == "com.mojang.minecraftpe") 20 | then 21 | set_offset(-420000, -450000, 0) 22 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.zenless") 23 | then 24 | set_offset(-500000, -500000, 0) 25 | elseif (pkg == "com.ChillyRoom.DungeonShooter") 26 | then 27 | set_offset(-500000, -600000, 0) 28 | elseif (pkg == "com.tencent.tmgp.pubgmhd") 29 | then 30 | set_offset(-500000, -600000, 0) 31 | elseif (pkg == "com.tencent.lolm") 32 | then 33 | set_offset(-400000, -300000, -100000) 34 | elseif (pkg == "com.tencent.tmgp.cf") 35 | then 36 | set_offset(-900000, -600000, 0) 37 | elseif (pkg == "com.netease.l22" ) 38 | then 39 | set_offset(-400000, -600000, 0) 40 | elseif (pkg == "com.netease.dfjs.mi" ) 41 | then 42 | set_offset(-600000, -400000, 0) 43 | elseif (pkg == "com.tencent.nfsonline" ) 44 | then 45 | set_offset(-300000, -200000, 0) 46 | elseif (pkg == "com.kurogame.mingchao" ) 47 | then 48 | set_offset(-400000, -200000, 0) 49 | elseif (pkg == "com.hypergryph.arknights" ) 50 | then 51 | set_offset(-300000, -300000, -300000) 52 | elseif (pkg == "com.netease.sky") 53 | then 54 | set_offset(-350000, -450000, -250000) 55 | elseif (pkg == "com.tencent.jkchess" ) 56 | then 57 | set_offset(-450000, -350000, 0) 58 | elseif (pkg == "com.tencent.tmgp.speedmobile" ) 59 | then 60 | set_offset(-300000, -200000, -300000) 61 | elseif (pkg == "com.tencent.KiHan" ) 62 | then 63 | set_offset(-300000, -300000, -500000) 64 | elseif (pkg == "com.tencent.tmgp.cod" ) 65 | then 66 | set_offset(-500000, -550000, 0) 67 | elseif (pkg == "com.miHoYo.hkrpg" or pkg == "com.miHoYo.hkrpg.bilibili" or pkg == "com.HoYoverse.hkrpgovers") 68 | then 69 | set_offset(-450000, -500000, 0) 70 | elseif (pkg == "com.netease.dwrg") 71 | then 72 | set_offset(-500000, -650000, -350000) 73 | elseif (pkg == "com.tencent.tmgp.dfm") 74 | then 75 | set_offset(-550000, -650000, 0) 76 | elseif (pkg == "com.sofunny.Sausage" ) 77 | then 78 | set_offset(-550000, -600000, 0) 79 | end 80 | end 81 | 82 | function unload_fas() 83 | set_offset(0, 0, 0) 84 | end 85 | -------------------------------------------------------------------------------- /config/888.lua: -------------------------------------------------------------------------------- 1 | API_VERSION = 1 2 | 3 | function set_offset(policy0, policy4, policy7) 4 | set_policy_freq_offset(0, policy0) 5 | set_policy_freq_offset(4, policy4) 6 | set_policy_freq_offset(7, policy7) 7 | end 8 | 9 | function load_fas(pid, pkg) 10 | if (pkg == "com.miHoYo.Yuanshen" or pkg == "com.miHoYo.ys.mi" or pkg == "com.miHoyo.ys.bilibili" or pkg == "com.miHoYo.GenshinImpact") 11 | then 12 | set_offset(-400000, -180000, 0) 13 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.Nap.bilibili" or pkg == "com.miHoYo.zenless") 14 | then 15 | set_offset(-400000, -150000, 0) 16 | elseif (pkg == "com.tencent.tmgp.sgame" or pkg == "com.levelinfinite.sgameGlobal") 17 | then 18 | set_offset(-500000, -300000, 0) 19 | elseif (pkg == "com.netease.x19" or pkg == "com.mojang.minecraftpe") 20 | then 21 | set_offset(-500000, -400000, 0) 22 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.zenless") 23 | then 24 | set_offset(-400000, -300000, 0) 25 | elseif (pkg == "com.ChillyRoom.DungeonShooter") 26 | then 27 | set_offset(-500000, -350000, 0) 28 | elseif (pkg == "com.tencent.tmgp.pubgmhd") 29 | then 30 | set_offset(-450000, -350000, 0) 31 | elseif (pkg == "com.tencent.lolm") 32 | then 33 | set_offset(-500000, -400000, 0) 34 | elseif (pkg == "com.tencent.tmgp.cf") 35 | then 36 | set_offset(-500000, -350000, 0) 37 | elseif (pkg == "com.netease.l22" ) 38 | then 39 | set_offset(-400000, -350000, 0) 40 | elseif (pkg == "com.netease.dfjs.mi" ) 41 | then 42 | set_offset(-400000, -450000, 0) 43 | elseif (pkg == "com.tencent.nfsonline" ) 44 | then 45 | set_offset(-300000, -150000, 0) 46 | elseif (pkg == "com.kurogame.mingchao" ) 47 | then 48 | set_offset(-400000, -180000, 0) 49 | elseif (pkg == "com.hypergryph.arknights" ) 50 | then 51 | set_offset(-300000, -300000, -300000) 52 | elseif (pkg == "com.netease.sky") 53 | then 54 | set_offset(-350000, -350000, -200000) 55 | elseif (pkg == "com.tencent.jkchess" ) 56 | then 57 | set_offset(-450000, -350000, 0) 58 | elseif (pkg == "com.tencent.tmgp.speedmobile" ) 59 | then 60 | set_offset(-300000, -200000, -200000) 61 | elseif (pkg == "com.tencent.KiHan" ) 62 | then 63 | set_offset(-300000, -300000, -200000) 64 | elseif (pkg == "com.tencent.tmgp.cod" ) 65 | then 66 | set_offset(-500000, -450000, 0) 67 | elseif (pkg == "com.miHoYo.hkrpg" or pkg == "com.miHoYo.hkrpg.bilibili" or pkg == "com.HoYoverse.hkrpgovers") 68 | then 69 | set_offset(-450000, -480000, 0) 70 | elseif (pkg == "com.netease.dwrg") 71 | then 72 | set_offset(-400000, -400000, -300000) 73 | elseif (pkg == "com.tencent.tmgp.dfm") 74 | then 75 | set_offset(-550000, -450000, 0) 76 | elseif (pkg == "com.sofunny.Sausage" ) 77 | then 78 | set_offset(-450000, -400000, 0) 79 | end 80 | end 81 | 82 | function unload_fas() 83 | set_offset(0, 0, 0) 84 | end 85 | -------------------------------------------------------------------------------- /config/8g1.lua: -------------------------------------------------------------------------------- 1 | API_VERSION = 1 2 | 3 | function set_offset(policy0, policy4, policy7) 4 | set_policy_freq_offset(0, policy0) 5 | set_policy_freq_offset(4, policy4) 6 | set_policy_freq_offset(7, policy7) 7 | end 8 | 9 | function load_fas(pid, pkg) 10 | if (pkg == "com.miHoYo.Yuanshen" or pkg == "com.miHoYo.ys.mi" or pkg == "com.miHoyo.ys.bilibili" or pkg == "com.miHoYo.GenshinImpact") 11 | then 12 | set_offset(-500000, -150000, 0) 13 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.Nap.bilibili" or pkg == "com.miHoYo.zenless") 14 | then 15 | set_offset(-300000, -350000, 0) 16 | elseif (pkg == "com.tencent.tmgp.sgame" or pkg == "com.levelinfinite.sgameGlobal") 17 | then 18 | set_offset(-500000, -250000, 0) 19 | elseif (pkg == "com.netease.x19" or pkg == "com.mojang.minecraftpe") 20 | then 21 | set_offset(-500000, -350000, 0) 22 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.zenless") 23 | then 24 | set_offset(-500000, -500000, 0) 25 | elseif (pkg == "com.ChillyRoom.DungeonShooter") 26 | then 27 | set_offset(-500000, -400000, 0) 28 | elseif (pkg == "com.tencent.tmgp.pubgmhd") 29 | then 30 | set_offset(-450000, -500000, 0) 31 | elseif (pkg == "com.tencent.lolm") 32 | then 33 | set_offset(-500000, -500000, 0) 34 | elseif (pkg == "com.tencent.tmgp.cf") 35 | then 36 | set_offset(-500000, -450000, 0) 37 | elseif (pkg == "com.netease.l22" ) 38 | then 39 | set_offset(-400000, -550000, 0) 40 | elseif (pkg == "com.netease.dfjs.mi" ) 41 | then 42 | set_offset(-600000, -400000, 0) 43 | elseif (pkg == "com.tencent.nfsonline" ) 44 | then 45 | set_offset(-300000, -200000, 0) 46 | elseif (pkg == "com.kurogame.mingchao" ) 47 | then 48 | set_offset(-400000, -200000, 0) 49 | elseif (pkg == "com.hypergryph.arknights" ) 50 | then 51 | set_offset(-300000, -300000, -300000) 52 | elseif (pkg == "com.netease.sky") 53 | then 54 | set_offset(-350000, -450000, -250000) 55 | elseif (pkg == "com.tencent.jkchess" ) 56 | then 57 | set_offset(-450000, -350000, 0) 58 | elseif (pkg == "com.tencent.tmgp.speedmobile" ) 59 | then 60 | set_offset(-300000, -200000, -300000) 61 | elseif (pkg == "com.tencent.KiHan" ) 62 | then 63 | set_offset(-300000, -300000, -500000) 64 | elseif (pkg == "com.tencent.tmgp.cod" ) 65 | then 66 | set_offset(-500000, -550000, 0) 67 | elseif (pkg == "com.miHoYo.hkrpg" or pkg == "com.miHoYo.hkrpg.bilibili" or pkg == "com.HoYoverse.hkrpgovers") 68 | then 69 | set_offset(-450000, -500000, 0) 70 | elseif (pkg == "com.netease.dwrg") 71 | then 72 | set_offset(-500000, -350000, -300000) 73 | elseif (pkg == "com.tencent.tmgp.dfm") 74 | then 75 | set_offset(-500000, -400000, 0) 76 | elseif (pkg == "com.sofunny.Sausage" ) 77 | then 78 | set_offset(-550000, -450000, 0) 79 | end 80 | end 81 | 82 | function unload_fas() 83 | set_offset(0, 0, 0) 84 | end 85 | -------------------------------------------------------------------------------- /config/8g2.lua: -------------------------------------------------------------------------------- 1 | API_VERSION = 1 2 | 3 | function set_offset(policy0, policy3, policy7) 4 | set_policy_freq_offset(0, policy0) 5 | set_policy_freq_offset(3, policy3) 6 | set_policy_freq_offset(7, policy7) 7 | end 8 | 9 | function load_fas(pid, pkg) 10 | if (pkg == "com.miHoYo.Yuanshen" or pkg == "com.miHoYo.ys.mi" or pkg == "com.miHoyo.ys.bilibili" or pkg == "com.miHoYo.GenshinImpact") 11 | then 12 | set_offset(-500000, -150000, 0) 13 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.Nap.bilibili" or pkg == "com.miHoYo.zenless") 14 | then 15 | set_offset(-300000, -350000, 0) 16 | elseif (pkg == "com.tencent.tmgp.sgame" or pkg == "com.levelinfinite.sgameGlobal") 17 | then 18 | set_offset(-500000, -250000, 0) 19 | elseif (pkg == "com.netease.x19" or pkg == "com.mojang.minecraftpe") 20 | then 21 | set_offset(-500000, -400000, 0) 22 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.zenless") 23 | then 24 | set_offset(-600000, -500000, 0) 25 | elseif (pkg == "com.ChillyRoom.DungeonShooter") 26 | then 27 | set_offset(-500000, -500000, 0) 28 | elseif (pkg == "com.tencent.tmgp.pubgmhd") 29 | then 30 | set_offset(-450000, -500000, 0) 31 | elseif (pkg == "com.tencent.lolm") 32 | then 33 | set_offset(-500000, -500000, 0) 34 | elseif (pkg == "com.tencent.tmgp.cf") 35 | then 36 | set_offset(-500000, -450000, 0) 37 | elseif (pkg == "com.netease.l22" ) 38 | then 39 | set_offset(-400000, -550000, 0) 40 | elseif (pkg == "com.netease.dfjs.mi" ) 41 | then 42 | set_offset(-600000, -400000, 0) 43 | elseif (pkg == "com.tencent.nfsonline" ) 44 | then 45 | set_offset(-300000, -200000, 0) 46 | elseif (pkg == "com.kurogame.mingchao" ) 47 | then 48 | set_offset(-400000, -200000, 0) 49 | elseif (pkg == "com.hypergryph.arknights" ) 50 | then 51 | set_offset(-300000, -300000, -300000) 52 | elseif (pkg == "com.netease.sky") 53 | then 54 | set_offset(-350000, -450000, -250000) 55 | elseif (pkg == "com.tencent.jkchess" ) 56 | then 57 | set_offset(-450000, -350000, 0) 58 | elseif (pkg == "com.tencent.tmgp.speedmobile" ) 59 | then 60 | set_offset(-300000, -200000, -300000) 61 | elseif (pkg == "com.tencent.KiHan" ) 62 | then 63 | set_offset(-300000, -300000, -500000) 64 | elseif (pkg == "com.tencent.tmgp.cod" ) 65 | then 66 | set_offset(-500000, -550000, 0) 67 | elseif (pkg == "com.miHoYo.hkrpg" or pkg == "com.miHoYo.hkrpg.bilibili" or pkg == "com.HoYoverse.hkrpgovers") 68 | then 69 | set_offset(-450000, -500000, 0) 70 | elseif (pkg == "com.netease.dwrg") 71 | then 72 | set_offset(-500000, -450000, -350000) 73 | elseif (pkg == "com.tencent.tmgp.dfm") 74 | then 75 | set_offset(-550000, -450000, 0) 76 | elseif (pkg == "com.sofunny.Sausage" ) 77 | then 78 | set_offset(-550000, -500000, 0) 79 | end 80 | end 81 | 82 | function unload_fas() 83 | set_offset(0, 0, 0) 84 | end 85 | -------------------------------------------------------------------------------- /config/8g3.lua: -------------------------------------------------------------------------------- 1 | API_VERSION = 1 2 | 3 | function set_offset(policy0, policy2, policy5, policy7) 4 | set_policy_freq_offset(0, policy0) 5 | set_policy_freq_offset(2, policy2) 6 | set_policy_freq_offset(5, policy5) 7 | set_policy_freq_offset(7, policy7) 8 | end 9 | 10 | function load_fas(pid, pkg) 11 | if (pkg == "com.miHoYo.Yuanshen" or pkg == "com.miHoYo.ys.mi" or pkg == "com.miHoyo.ys.bilibili" or pkg == "com.miHoYo.GenshinImpact") 12 | then 13 | set_offset(-500000, -350000, -250000, 0) 14 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.Nap.bilibili" or pkg == "com.miHoYo.zenless") 15 | then 16 | set_offset(-500000, -450000, -350000, 0) 17 | elseif (pkg == "com.tencent.tmgp.sgame" or pkg == "com.levelinfinite.sgameGlobal") 18 | then 19 | set_offset(-500000, -450000, -200000, 0) 20 | elseif (pkg == "com.netease.x19" or pkg == "com.mojang.minecraftpe") 21 | then 22 | set_offset(-500000, -550000, -450000, 0) 23 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.zenless") 24 | then 25 | set_offset(-600000, -500000, -450000, 0) 26 | elseif (pkg == "com.ChillyRoom.DungeonShooter") 27 | then 28 | set_offset(-500000, -600000, -450000, 0) 29 | elseif (pkg == "com.tencent.tmgp.pubgmhd") 30 | then 31 | set_offset(-450000, -500000, -450000, 0) 32 | elseif (pkg == "com.tencent.lolm") 33 | then 34 | set_offset(-500000, -500000, -450000, 0) 35 | elseif (pkg == "com.tencent.tmgp.cf") 36 | then 37 | set_offset(-500000, -600000, -450000, 0) 38 | elseif (pkg == "com.netease.l22" ) 39 | then 40 | set_offset(-400000, -550000, -450000, 0) 41 | elseif (pkg == "com.netease.dfjs.mi" ) 42 | then 43 | set_offset(-600000, -400000, -450000, 0) 44 | elseif (pkg == "com.tencent.nfsonline" ) 45 | then 46 | set_offset(-300000, -200000, -450000, 0) 47 | elseif (pkg == "com.kurogame.mingchao" ) 48 | then 49 | set_offset(-400000, -200000, -450000, 0) 50 | elseif (pkg == "com.hypergryph.arknights" ) 51 | then 52 | set_offset(-300000, -300000, -450000, -300000) 53 | elseif (pkg == "com.netease.sky") 54 | then 55 | set_offset(-350000, -450000, -450000, -250000) 56 | elseif (pkg == "com.tencent.jkchess" ) 57 | then 58 | set_offset(-450000, -350000, -450000, 0) 59 | elseif (pkg == "com.tencent.tmgp.speedmobile" ) 60 | then 61 | set_offset(-300000, -200000, -450000, -300000) 62 | elseif (pkg == "com.tencent.KiHan" ) 63 | then 64 | set_offset(-300000, -300000, -450000, -500000) 65 | elseif (pkg == "com.tencent.tmgp.cod" ) 66 | then 67 | set_offset(-500000, -550000, -450000, 0) 68 | elseif (pkg == "com.miHoYo.hkrpg" or pkg == "com.miHoYo.hkrpg.bilibili" or pkg == "com.HoYoverse.hkrpgovers") 69 | then 70 | set_offset(-450000, -500000, -450000, 0) 71 | elseif (pkg == "com.netease.dwrg") 72 | then 73 | set_offset(-500000, -650000, -450000, -350000) 74 | elseif (pkg == "com.tencent.tmgp.dfm") 75 | then 76 | set_offset(-550000, -650000, -450000, 0) 77 | elseif (pkg == "com.sofunny.Sausage" ) 78 | then 79 | set_offset(-550000, -600000, -450000, 0) 80 | end 81 | end 82 | 83 | function unload_fas() 84 | set_offset(0, 0, 0, 0) 85 | end 86 | -------------------------------------------------------------------------------- /config/8g4.lua: -------------------------------------------------------------------------------- 1 | API_VERSION = 1 2 | 3 | function set_offset(policy0, policy6) 4 | set_policy_freq_offset(0, policy0) 5 | set_policy_freq_offset(6, policy6) 6 | end 7 | 8 | function load_fas(pid, pkg) 9 | if (pkg == "com.miHoYo.Yuanshen" or pkg == "com.miHoYo.ys.mi" or pkg == "com.miHoyo.ys.bilibili" or pkg == "com.miHoYo.GenshinImpact") 10 | then 11 | set_offset(-500000, 0) 12 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.Nap.bilibili" or pkg == "com.miHoYo.zenless") 13 | then 14 | set_offset(-500000, 0) 15 | elseif (pkg == "com.tencent.tmgp.sgame" or pkg == "com.levelinfinite.sgameGlobal") 16 | then 17 | set_offset(-500000, 0) 18 | elseif (pkg == "com.netease.x19" or pkg == "com.mojang.minecraftpe") 19 | then 20 | set_offset(-500000, 0) 21 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.zenless") 22 | then 23 | set_offset(-600000, 0) 24 | elseif (pkg == "com.ChillyRoom.DungeonShooter") 25 | then 26 | set_offset(-500000, 0) 27 | elseif (pkg == "com.tencent.tmgp.pubgmhd") 28 | then 29 | set_offset(-450000, 0) 30 | elseif (pkg == "com.tencent.lolm") 31 | then 32 | set_offset(-500000, 0) 33 | elseif (pkg == "com.tencent.tmgp.cf") 34 | then 35 | set_offset(-500000, 0) 36 | elseif (pkg == "com.netease.l22" ) 37 | then 38 | set_offset(-400000, 0) 39 | elseif (pkg == "com.netease.dfjs.mi" ) 40 | then 41 | set_offset(-600000, 0) 42 | elseif (pkg == "com.tencent.nfsonline" ) 43 | then 44 | set_offset(-300000, 0) 45 | elseif (pkg == "com.kurogame.mingchao" ) 46 | then 47 | set_offset(-400000, 0) 48 | elseif (pkg == "com.hypergryph.arknights" ) 49 | then 50 | set_offset(-300000, -300000) 51 | elseif (pkg == "com.netease.sky") 52 | then 53 | set_offset(-350000, -250000) 54 | elseif (pkg == "com.tencent.jkchess" ) 55 | then 56 | set_offset(-450000, 0) 57 | elseif (pkg == "com.tencent.tmgp.speedmobile" ) 58 | then 59 | set_offset(-300000, -300000) 60 | elseif (pkg == "com.tencent.KiHan" ) 61 | then 62 | set_offset(-300000, -500000) 63 | elseif (pkg == "com.tencent.tmgp.cod" ) 64 | then 65 | set_offset(-500000, 0) 66 | elseif (pkg == "com.miHoYo.hkrpg" or pkg == "com.miHoYo.hkrpg.bilibili" or pkg == "com.HoYoverse.hkrpgovers") 67 | then 68 | set_offset(-450000, 0) 69 | elseif (pkg == "com.netease.dwrg") 70 | then 71 | set_offset(-500000, -350000) 72 | elseif (pkg == "com.tencent.tmgp.dfm") 73 | then 74 | set_offset(-550000, 0) 75 | elseif (pkg == "com.sofunny.Sausage" ) 76 | then 77 | set_offset(-550000, 0) 78 | end 79 | end 80 | 81 | function unload_fas() 82 | set_offset(0, 0) 83 | end 84 | -------------------------------------------------------------------------------- /config/8sg3.lua: -------------------------------------------------------------------------------- 1 | API_VERSION = 1 2 | 3 | function set_offset(policy0, policy3, policy7) 4 | set_policy_freq_offset(0, policy0) 5 | set_policy_freq_offset(3, policy3) 6 | set_policy_freq_offset(7, policy7) 7 | end 8 | 9 | function load_fas(pid, pkg) 10 | if (pkg == "com.miHoYo.Yuanshen" or pkg == "com.miHoYo.ys.mi" or pkg == "com.miHoyo.ys.bilibili" or pkg == "com.miHoYo.GenshinImpact") 11 | then 12 | set_offset(-500000, -200000, 0) 13 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.Nap.bilibili" or pkg == "com.miHoYo.zenless") 14 | then 15 | set_offset(-300000, -250000, 0) 16 | elseif (pkg == "com.tencent.tmgp.sgame" or pkg == "com.levelinfinite.sgameGlobal") 17 | then 18 | set_offset(-500000, -200000, 0) 19 | elseif (pkg == "com.netease.x19" or pkg == "com.mojang.minecraftpe") 20 | then 21 | set_offset(-500000, -400000, 0) 22 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.zenless") 23 | then 24 | set_offset(-400000, -300000, 0) 25 | elseif (pkg == "com.ChillyRoom.DungeonShooter") 26 | then 27 | set_offset(-500000, -400000, 0) 28 | elseif (pkg == "com.tencent.tmgp.pubgmhd") 29 | then 30 | set_offset(-450000, -400000, 0) 31 | elseif (pkg == "com.tencent.lolm") 32 | then 33 | set_offset(-500000, -450000, 0) 34 | elseif (pkg == "com.tencent.tmgp.cf") 35 | then 36 | set_offset(-500000, -350000, 0) 37 | elseif (pkg == "com.netease.l22" ) 38 | then 39 | set_offset(-400000, -350000, 0) 40 | elseif (pkg == "com.netease.dfjs.mi" ) 41 | then 42 | set_offset(-400000, -400000, 0) 43 | elseif (pkg == "com.tencent.nfsonline" ) 44 | then 45 | set_offset(-300000, -200000, 0) 46 | elseif (pkg == "com.kurogame.mingchao" ) 47 | then 48 | set_offset(-400000, -200000, 0) 49 | elseif (pkg == "com.hypergryph.arknights" ) 50 | then 51 | set_offset(-300000, -300000, -300000) 52 | elseif (pkg == "com.netease.sky") 53 | then 54 | set_offset(-350000, -450000, -250000) 55 | elseif (pkg == "com.tencent.jkchess" ) 56 | then 57 | set_offset(-450000, -350000, 0) 58 | elseif (pkg == "com.tencent.tmgp.speedmobile" ) 59 | then 60 | set_offset(-300000, -200000, -300000) 61 | elseif (pkg == "com.tencent.KiHan" ) 62 | then 63 | set_offset(-300000, -300000, -250000) 64 | elseif (pkg == "com.tencent.tmgp.cod" ) 65 | then 66 | set_offset(-500000, -450000, 0) 67 | elseif (pkg == "com.miHoYo.hkrpg" or pkg == "com.miHoYo.hkrpg.bilibili" or pkg == "com.HoYoverse.hkrpgovers") 68 | then 69 | set_offset(-450000, -500000, 0) 70 | elseif (pkg == "com.netease.dwrg") 71 | then 72 | set_offset(-400000, -450000, -350000) 73 | elseif (pkg == "com.tencent.tmgp.dfm") 74 | then 75 | set_offset(-550000, -550000, 0) 76 | elseif (pkg == "com.sofunny.Sausage" ) 77 | then 78 | set_offset(-450000, -500000, 0) 79 | end 80 | end 81 | 82 | function unload_fas() 83 | set_offset(0, 0, 0) 84 | end 85 | -------------------------------------------------------------------------------- /config/gs101.lua: -------------------------------------------------------------------------------- 1 | API_VERSION = 1 2 | 3 | function set_offset(policy0, policy3, policy6) 4 | set_policy_freq_offset(0, policy0) 5 | set_policy_freq_offset(4, policy3) 6 | set_policy_freq_offset(6, policy6) 7 | end 8 | 9 | function load_fas(pid, pkg) 10 | if (pkg == "com.miHoYo.Yuanshen" or pkg == "com.miHoYo.ys.mi" or pkg == "com.miHoyo.ys.bilibili" or pkg == "com.miHoYo.GenshinImpact") 11 | then 12 | set_offset(-500000, -150000, 0) 13 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.Nap.bilibili" or pkg == "com.miHoYo.zenless") 14 | then 15 | set_offset(-300000, -350000, 0) 16 | elseif (pkg == "com.tencent.tmgp.sgame" or pkg == "com.levelinfinite.sgameGlobal") 17 | then 18 | set_offset(-500000, -250000, 0) 19 | elseif (pkg == "com.netease.x19" or pkg == "com.mojang.minecraftpe") 20 | then 21 | set_offset(-500000, -600000, 0) 22 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.zenless") 23 | then 24 | set_offset(-600000, -500000, 0) 25 | elseif (pkg == "com.ChillyRoom.DungeonShooter") 26 | then 27 | set_offset(-500000, -600000, 0) 28 | elseif (pkg == "com.tencent.tmgp.pubgmhd") 29 | then 30 | set_offset(-450000, -500000, 0) 31 | elseif (pkg == "com.tencent.lolm") 32 | then 33 | set_offset(-500000, -500000, 0) 34 | elseif (pkg == "com.tencent.tmgp.cf") 35 | then 36 | set_offset(-500000, -600000, 0) 37 | elseif (pkg == "com.netease.l22" ) 38 | then 39 | set_offset(-400000, -550000, 0) 40 | elseif (pkg == "com.netease.dfjs.mi" ) 41 | then 42 | set_offset(-600000, -400000, 0) 43 | elseif (pkg == "com.tencent.nfsonline" ) 44 | then 45 | set_offset(-300000, -200000, 0) 46 | elseif (pkg == "com.kurogame.mingchao" ) 47 | then 48 | set_offset(-400000, -200000, 0) 49 | elseif (pkg == "com.hypergryph.arknights" ) 50 | then 51 | set_offset(-300000, -300000, -300000) 52 | elseif (pkg == "com.netease.sky") 53 | then 54 | set_offset(-350000, -450000, -250000) 55 | elseif (pkg == "com.tencent.jkchess" ) 56 | then 57 | set_offset(-450000, -350000, 0) 58 | elseif (pkg == "com.tencent.tmgp.speedmobile" ) 59 | then 60 | set_offset(-300000, -200000, -300000) 61 | elseif (pkg == "com.tencent.KiHan" ) 62 | then 63 | set_offset(-300000, -300000, -500000) 64 | elseif (pkg == "com.tencent.tmgp.cod" ) 65 | then 66 | set_offset(-500000, -550000, 0) 67 | elseif (pkg == "com.miHoYo.hkrpg" or pkg == "com.miHoYo.hkrpg.bilibili" or pkg == "com.HoYoverse.hkrpgovers") 68 | then 69 | set_offset(-450000, -500000, 0) 70 | elseif (pkg == "com.netease.dwrg") 71 | then 72 | set_offset(-500000, -650000, -350000) 73 | elseif (pkg == "com.tencent.tmgp.dfm") 74 | then 75 | set_offset(-550000, -650000, 0) 76 | elseif (pkg == "com.sofunny.Sausage" ) 77 | then 78 | set_offset(-550000, -600000, 0) 79 | end 80 | end 81 | 82 | function unload_fas() 83 | set_offset(0, 0, 0) 84 | end 85 | -------------------------------------------------------------------------------- /config/gs201.lua: -------------------------------------------------------------------------------- 1 | API_VERSION = 1 2 | 3 | function set_offset(policy0, policy4, policy6) 4 | set_policy_freq_offset(0, policy0) 5 | set_policy_freq_offset(4, policy4) 6 | set_policy_freq_offset(6, policy6) 7 | end 8 | 9 | function load_fas(pid, pkg) 10 | if (pkg == "com.miHoYo.Yuanshen" or pkg == "com.miHoYo.ys.mi" or pkg == "com.miHoyo.ys.bilibili" or pkg == "com.miHoYo.GenshinImpact") 11 | then 12 | set_offset(-500000, -350000, 0) 13 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.Nap.bilibili" or pkg == "com.miHoYo.zenless") 14 | then 15 | set_offset(-400000, -350000, 0) 16 | elseif (pkg == "com.tencent.tmgp.sgame" or pkg == "com.levelinfinite.sgameGlobal") 17 | then 18 | set_offset(-400000, -350000, 0) 19 | elseif (pkg == "com.netease.x19" or pkg == "com.mojang.minecraftpe") 20 | then 21 | set_offset(-500000, -400000, 0) 22 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.zenless") 23 | then 24 | set_offset(-600000, -500000, 0) 25 | elseif (pkg == "com.ChillyRoom.DungeonShooter") 26 | then 27 | set_offset(-500000, -480000, 0) 28 | elseif (pkg == "com.tencent.tmgp.pubgmhd") 29 | then 30 | set_offset(-450000, -500000, 0) 31 | elseif (pkg == "com.tencent.lolm") 32 | then 33 | set_offset(-500000, -500000, 0) 34 | elseif (pkg == "com.tencent.tmgp.cf") 35 | then 36 | set_offset(-500000, -400000, 0) 37 | elseif (pkg == "com.netease.l22" ) 38 | then 39 | set_offset(-400000, -550000, 0) 40 | elseif (pkg == "com.netease.dfjs.mi" ) 41 | then 42 | set_offset(-500000, -400000, 0) 43 | elseif (pkg == "com.tencent.nfsonline" ) 44 | then 45 | set_offset(-300000, -200000, 0) 46 | elseif (pkg == "com.kurogame.mingchao" ) 47 | then 48 | set_offset(-400000, -200000, 0) 49 | elseif (pkg == "com.hypergryph.arknights" ) 50 | then 51 | set_offset(-300000, -300000, -300000) 52 | elseif (pkg == "com.netease.sky") 53 | then 54 | set_offset(-350000, -450000, -250000) 55 | elseif (pkg == "com.tencent.jkchess" ) 56 | then 57 | set_offset(-450000, -350000, 0) 58 | elseif (pkg == "com.tencent.tmgp.speedmobile" ) 59 | then 60 | set_offset(-300000, -200000, -300000) 61 | elseif (pkg == "com.tencent.KiHan" ) 62 | then 63 | set_offset(-300000, -300000, -500000) 64 | elseif (pkg == "com.tencent.tmgp.cod" ) 65 | then 66 | set_offset(-500000, -550000, 0) 67 | elseif (pkg == "com.miHoYo.hkrpg" or pkg == "com.miHoYo.hkrpg.bilibili" or pkg == "com.HoYoverse.hkrpgovers") 68 | then 69 | set_offset(-450000, -500000, 0) 70 | elseif (pkg == "com.netease.dwrg") 71 | then 72 | set_offset(-500000, -450000, -350000) 73 | elseif (pkg == "com.tencent.tmgp.dfm") 74 | then 75 | set_offset(-550000, -450000, 0) 76 | elseif (pkg == "com.sofunny.Sausage" ) 77 | then 78 | set_offset(-550000, -450000, 0) 79 | end 80 | end 81 | 82 | function unload_fas() 83 | set_offset(0, 0, 0) 84 | end 85 | -------------------------------------------------------------------------------- /config/gs301.lua: -------------------------------------------------------------------------------- 1 | API_VERSION = 1 2 | 3 | function set_offset(policy0, policy4, policy8) 4 | set_policy_freq_offset(0, policy0) 5 | set_policy_freq_offset(4, policy4) 6 | set_policy_freq_offset(8, policy8) 7 | end 8 | 9 | function load_fas(pid, pkg) 10 | if (pkg == "com.miHoYo.Yuanshen" or pkg == "com.miHoYo.ys.mi" or pkg == "com.miHoyo.ys.bilibili" or pkg == "com.miHoYo.GenshinImpact") 11 | then 12 | set_offset(-500000, -200000, 0) 13 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.Nap.bilibili" or pkg == "com.miHoYo.zenless") 14 | then 15 | set_offset(-300000, -150000, 0) 16 | elseif (pkg == "com.tencent.tmgp.sgame" or pkg == "com.levelinfinite.sgameGlobal") 17 | then 18 | set_offset(-500000, -200000, 0) 19 | elseif (pkg == "com.netease.x19" or pkg == "com.mojang.minecraftpe") 20 | then 21 | set_offset(-500000, -400000, 0) 22 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.zenless") 23 | then 24 | set_offset(-400000, -300000, 0) 25 | elseif (pkg == "com.ChillyRoom.DungeonShooter") 26 | then 27 | set_offset(-500000, -400000, 0) 28 | elseif (pkg == "com.tencent.tmgp.pubgmhd") 29 | then 30 | set_offset(-450000, -400000, 0) 31 | elseif (pkg == "com.tencent.lolm") 32 | then 33 | set_offset(-500000, -450000, 0) 34 | elseif (pkg == "com.tencent.tmgp.cf") 35 | then 36 | set_offset(-500000, -350000, 0) 37 | elseif (pkg == "com.netease.l22" ) 38 | then 39 | set_offset(-400000, -350000, 0) 40 | elseif (pkg == "com.netease.dfjs.mi" ) 41 | then 42 | set_offset(-400000, -400000, 0) 43 | elseif (pkg == "com.tencent.nfsonline" ) 44 | then 45 | set_offset(-300000, -200000, 0) 46 | elseif (pkg == "com.kurogame.mingchao" ) 47 | then 48 | set_offset(-400000, -200000, 0) 49 | elseif (pkg == "com.hypergryph.arknights" ) 50 | then 51 | set_offset(-300000, -300000, -300000) 52 | elseif (pkg == "com.netease.sky") 53 | then 54 | set_offset(-350000, -450000, -250000) 55 | elseif (pkg == "com.tencent.jkchess" ) 56 | then 57 | set_offset(-450000, -350000, 0) 58 | elseif (pkg == "com.tencent.tmgp.speedmobile" ) 59 | then 60 | set_offset(-300000, -200000, -300000) 61 | elseif (pkg == "com.tencent.KiHan" ) 62 | then 63 | set_offset(-300000, -300000, -250000) 64 | elseif (pkg == "com.tencent.tmgp.cod" ) 65 | then 66 | set_offset(-500000, -450000, 0) 67 | elseif (pkg == "com.miHoYo.hkrpg" or pkg == "com.miHoYo.hkrpg.bilibili" or pkg == "com.HoYoverse.hkrpgovers") 68 | then 69 | set_offset(-450000, -400000, 0) 70 | elseif (pkg == "com.netease.dwrg") 71 | then 72 | set_offset(-400000, -400000, -350000) 73 | elseif (pkg == "com.tencent.tmgp.dfm") 74 | then 75 | set_offset(-550000, -450000, 0) 76 | elseif (pkg == "com.sofunny.Sausage" ) 77 | then 78 | set_offset(-450000, -400000, 0) 79 | end 80 | end 81 | 82 | function unload_fas() 83 | set_offset(0, 0, 0) 84 | end 85 | -------------------------------------------------------------------------------- /config/gs401.lua: -------------------------------------------------------------------------------- 1 | API_VERSION = 1 2 | 3 | function set_offset(policy0, policy4, policy7) 4 | set_policy_freq_offset(0, policy0) 5 | set_policy_freq_offset(4, policy4) 6 | set_policy_freq_offset(7, policy7) 7 | end 8 | 9 | function load_fas(pid, pkg) 10 | if (pkg == "com.miHoYo.Yuanshen" or pkg == "com.miHoYo.ys.mi" or pkg == "com.miHoyo.ys.bilibili" or pkg == "com.miHoYo.GenshinImpact") 11 | then 12 | set_offset(-400000, -180000, 0) 13 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.Nap.bilibili" or pkg == "com.miHoYo.zenless") 14 | then 15 | set_offset(-400000, -150000, 0) 16 | elseif (pkg == "com.tencent.tmgp.sgame" or pkg == "com.levelinfinite.sgameGlobal") 17 | then 18 | set_offset(-500000, -300000, 0) 19 | elseif (pkg == "com.netease.x19" or pkg == "com.mojang.minecraftpe") 20 | then 21 | set_offset(-500000, -400000, 0) 22 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.zenless") 23 | then 24 | set_offset(-400000, -300000, 0) 25 | elseif (pkg == "com.ChillyRoom.DungeonShooter") 26 | then 27 | set_offset(-500000, -350000, 0) 28 | elseif (pkg == "com.tencent.tmgp.pubgmhd") 29 | then 30 | set_offset(-450000, -350000, 0) 31 | elseif (pkg == "com.tencent.lolm") 32 | then 33 | set_offset(-500000, -400000, 0) 34 | elseif (pkg == "com.tencent.tmgp.cf") 35 | then 36 | set_offset(-500000, -350000, 0) 37 | elseif (pkg == "com.netease.l22" ) 38 | then 39 | set_offset(-400000, -350000, 0) 40 | elseif (pkg == "com.netease.dfjs.mi" ) 41 | then 42 | set_offset(-400000, -450000, 0) 43 | elseif (pkg == "com.tencent.nfsonline" ) 44 | then 45 | set_offset(-300000, -150000, 0) 46 | elseif (pkg == "com.kurogame.mingchao" ) 47 | then 48 | set_offset(-400000, -180000, 0) 49 | elseif (pkg == "com.hypergryph.arknights" ) 50 | then 51 | set_offset(-300000, -300000, -300000) 52 | elseif (pkg == "com.netease.sky") 53 | then 54 | set_offset(-350000, -350000, -200000) 55 | elseif (pkg == "com.tencent.jkchess" ) 56 | then 57 | set_offset(-450000, -350000, 0) 58 | elseif (pkg == "com.tencent.tmgp.speedmobile" ) 59 | then 60 | set_offset(-300000, -200000, -200000) 61 | elseif (pkg == "com.tencent.KiHan" ) 62 | then 63 | set_offset(-300000, -300000, -200000) 64 | elseif (pkg == "com.tencent.tmgp.cod" ) 65 | then 66 | set_offset(-500000, -450000, 0) 67 | elseif (pkg == "com.miHoYo.hkrpg" or pkg == "com.miHoYo.hkrpg.bilibili" or pkg == "com.HoYoverse.hkrpgovers") 68 | then 69 | set_offset(-450000, -480000, 0) 70 | elseif (pkg == "com.netease.dwrg") 71 | then 72 | set_offset(-400000, -400000, -300000) 73 | elseif (pkg == "com.tencent.tmgp.dfm") 74 | then 75 | set_offset(-550000, -450000, 0) 76 | elseif (pkg == "com.sofunny.Sausage" ) 77 | then 78 | set_offset(-450000, -400000, 0) 79 | end 80 | end 81 | 82 | function unload_fas() 83 | set_offset(0, 0, 0) 84 | end 85 | -------------------------------------------------------------------------------- /config/mt8000.lua: -------------------------------------------------------------------------------- 1 | API_VERSION = 1 2 | 3 | function set_offset(policy0, policy4, policy7) 4 | set_policy_freq_offset(0, policy0) 5 | set_policy_freq_offset(4, policy4) 6 | set_policy_freq_offset(7, policy7) 7 | end 8 | 9 | function load_fas(pid, pkg) 10 | if (pkg == "com.miHoYo.Yuanshen" or pkg == "com.miHoYo.ys.mi" or pkg == "com.miHoyo.ys.bilibili" or pkg == "com.miHoYo.GenshinImpact") 11 | then 12 | set_offset(-500000, -200000, 0) 13 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.Nap.bilibili" or pkg == "com.miHoYo.zenless") 14 | then 15 | set_offset(-400000, -250000, 0) 16 | elseif (pkg == "com.tencent.tmgp.sgame" or pkg == "com.levelinfinite.sgameGlobal") 17 | then 18 | set_offset(-400000, -300000, 0) 19 | elseif (pkg == "com.netease.x19" or pkg == "com.mojang.minecraftpe") 20 | then 21 | set_offset(-500000, -400000, 0) 22 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.zenless") 23 | then 24 | set_offset(-400000, -300000, 0) 25 | elseif (pkg == "com.ChillyRoom.DungeonShooter") 26 | then 27 | set_offset(-500000, -400000, 0) 28 | elseif (pkg == "com.tencent.tmgp.pubgmhd") 29 | then 30 | set_offset(-450000, -400000, 0) 31 | elseif (pkg == "com.tencent.lolm") 32 | then 33 | set_offset(-500000, -450000, 0) 34 | elseif (pkg == "com.tencent.tmgp.cf") 35 | then 36 | set_offset(-500000, -350000, 0) 37 | elseif (pkg == "com.netease.l22" ) 38 | then 39 | set_offset(-400000, -350000, 0) 40 | elseif (pkg == "com.netease.dfjs.mi" ) 41 | then 42 | set_offset(-400000, -400000, 0) 43 | elseif (pkg == "com.tencent.nfsonline" ) 44 | then 45 | set_offset(-300000, -200000, 0) 46 | elseif (pkg == "com.kurogame.mingchao" ) 47 | then 48 | set_offset(-400000, -200000, 0) 49 | elseif (pkg == "com.hypergryph.arknights" ) 50 | then 51 | set_offset(-450000, -400000, -300000) 52 | elseif (pkg == "com.netease.sky") 53 | then 54 | set_offset(-350000, -450000, -250000) 55 | elseif (pkg == "com.tencent.jkchess" ) 56 | then 57 | set_offset(-450000, -350000, 0) 58 | elseif (pkg == "com.tencent.tmgp.speedmobile" ) 59 | then 60 | set_offset(-300000, -200000, -300000) 61 | elseif (pkg == "com.tencent.KiHan" ) 62 | then 63 | set_offset(-400000, -350000, -300000) 64 | elseif (pkg == "com.tencent.tmgp.cod" ) 65 | then 66 | set_offset(-500000, -450000, 0) 67 | elseif (pkg == "com.miHoYo.hkrpg" or pkg == "com.miHoYo.hkrpg.bilibili" or pkg == "com.HoYoverse.hkrpgovers") 68 | then 69 | set_offset(-450000, -500000, 0) 70 | elseif (pkg == "com.netease.dwrg") 71 | then 72 | set_offset(-400000, -450000, -300000) 73 | elseif (pkg == "com.tencent.tmgp.dfm") 74 | then 75 | set_offset(-550000, -500000, 0) 76 | elseif (pkg == "com.sofunny.Sausage" ) 77 | then 78 | set_offset(-450000, -500000, 0) 79 | end 80 | end 81 | function unload_fas() 82 | set_offset(0, 0, 0) 83 | end -------------------------------------------------------------------------------- /config/mt9000.lua: -------------------------------------------------------------------------------- 1 | API_VERSION = 1 2 | 3 | function set_offset(policy0, policy4, policy7) 4 | set_policy_freq_offset(0, policy0) 5 | set_policy_freq_offset(4, policy4) 6 | set_policy_freq_offset(7, policy7) 7 | end 8 | 9 | function load_fas(pid, pkg) 10 | if (pkg == "com.miHoYo.Yuanshen" or pkg == "com.miHoYo.ys.mi" or pkg == "com.miHoyo.ys.bilibili" or pkg == "com.miHoYo.GenshinImpact") 11 | then 12 | set_offset(-500000, -250000, 0) 13 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.Nap.bilibili" or pkg == "com.miHoYo.zenless") 14 | then 15 | set_offset(-300000, -250000, 0) 16 | elseif (pkg == "com.tencent.tmgp.sgame" or pkg == "com.levelinfinite.sgameGlobal") 17 | then 18 | set_offset(-500000, -200000, 0) 19 | elseif (pkg == "com.netease.x19" or pkg == "com.mojang.minecraftpe") 20 | then 21 | set_offset(-500000, -350000, 0) 22 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.zenless") 23 | then 24 | set_offset(-500000, -300000, 0) 25 | elseif (pkg == "com.ChillyRoom.DungeonShooter") 26 | then 27 | set_offset(-500000, -400000, 0) 28 | elseif (pkg == "com.tencent.tmgp.pubgmhd") 29 | then 30 | set_offset(-450000, -400000, 0) 31 | elseif (pkg == "com.tencent.lolm") 32 | then 33 | set_offset(-500000, -450000, 0) 34 | elseif (pkg == "com.tencent.tmgp.cf") 35 | then 36 | set_offset(-500000, -350000, 0) 37 | elseif (pkg == "com.netease.l22" ) 38 | then 39 | set_offset(-400000, -350000, 0) 40 | elseif (pkg == "com.netease.dfjs.mi" ) 41 | then 42 | set_offset(-400000, -400000, 0) 43 | elseif (pkg == "com.tencent.nfsonline" ) 44 | then 45 | set_offset(-500000, -200000, 0) 46 | elseif (pkg == "com.kurogame.mingchao" ) 47 | then 48 | set_offset(-400000, -200000, 0) 49 | elseif (pkg == "com.hypergryph.arknights" ) 50 | then 51 | set_offset(-300000, -300000, -300000) 52 | elseif (pkg == "com.netease.sky") 53 | then 54 | set_offset(-350000, -450000, -250000) 55 | elseif (pkg == "com.tencent.jkchess" ) 56 | then 57 | set_offset(-450000, -350000, 0) 58 | elseif (pkg == "com.tencent.tmgp.speedmobile" ) 59 | then 60 | set_offset(-450000, -200000, -300000) 61 | elseif (pkg == "com.tencent.KiHan" ) 62 | then 63 | set_offset(-400000, -300000, -250000) 64 | elseif (pkg == "com.tencent.tmgp.cod" ) 65 | then 66 | set_offset(-500000, -450000, 0) 67 | elseif (pkg == "com.miHoYo.hkrpg" or pkg == "com.miHoYo.hkrpg.bilibili" or pkg == "com.HoYoverse.hkrpgovers") 68 | then 69 | set_offset(-450000, -500000, 0) 70 | elseif (pkg == "com.netease.dwrg") 71 | then 72 | set_offset(-400000, -450000, -350000) 73 | elseif (pkg == "com.tencent.tmgp.dfm") 74 | then 75 | set_offset(-500000, -500000, 0) 76 | elseif (pkg == "com.sofunny.Sausage" ) 77 | then 78 | set_offset(-500000, -450000, 0) 79 | end 80 | end 81 | 82 | function unload_fas() 83 | set_offset(0, 0, 0) 84 | end -------------------------------------------------------------------------------- /config/mt9200.lua: -------------------------------------------------------------------------------- 1 | API_VERSION = 1 2 | 3 | function set_offset(policy0, policy4, policy7) 4 | set_policy_freq_offset(0, policy0) 5 | set_policy_freq_offset(4, policy4) 6 | set_policy_freq_offset(7, policy7) 7 | end 8 | 9 | function load_fas(pid, pkg) 10 | if (pkg == "com.miHoYo.Yuanshen" or pkg == "com.miHoYo.ys.mi" or pkg == "com.miHoyo.ys.bilibili" or pkg == "com.miHoYo.GenshinImpact") 11 | then 12 | set_offset(-500000, -250000, 0) 13 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.Nap.bilibili" or pkg == "com.miHoYo.zenless") 14 | then 15 | set_offset(-300000, -250000, 0) 16 | elseif (pkg == "com.tencent.tmgp.sgame" or pkg == "com.levelinfinite.sgameGlobal") 17 | then 18 | set_offset(-500000, -300000, 0) 19 | elseif (pkg == "com.netease.x19" or pkg == "com.mojang.minecraftpe") 20 | then 21 | set_offset(-500000, -350000, 0) 22 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.zenless") 23 | then 24 | set_offset(-450000, -300000, 0) 25 | elseif (pkg == "com.ChillyRoom.DungeonShooter") 26 | then 27 | set_offset(-500000, -400000, 0) 28 | elseif (pkg == "com.tencent.tmgp.pubgmhd") 29 | then 30 | set_offset(-450000, -400000, 0) 31 | elseif (pkg == "com.tencent.lolm") 32 | then 33 | set_offset(-500000, -450000, 0) 34 | elseif (pkg == "com.tencent.tmgp.cf") 35 | then 36 | set_offset(-500000, -350000, 0) 37 | elseif (pkg == "com.netease.l22" ) 38 | then 39 | set_offset(-450000, -350000, 0) 40 | elseif (pkg == "com.netease.dfjs.mi" ) 41 | then 42 | set_offset(-400000, -400000, 0) 43 | elseif (pkg == "com.tencent.nfsonline" ) 44 | then 45 | set_offset(-450000, -200000, 0) 46 | elseif (pkg == "com.kurogame.mingchao" ) 47 | then 48 | set_offset(-400000, -200000, 0) 49 | elseif (pkg == "com.hypergryph.arknights" ) 50 | then 51 | set_offset(-450000, -300000, -300000) 52 | elseif (pkg == "com.netease.sky") 53 | then 54 | set_offset(-450000, -450000, -250000) 55 | elseif (pkg == "com.tencent.jkchess" ) 56 | then 57 | set_offset(-450000, -350000, 0) 58 | elseif (pkg == "com.tencent.tmgp.speedmobile" ) 59 | then 60 | set_offset(-450000, -200000, -300000) 61 | elseif (pkg == "com.tencent.KiHan" ) 62 | then 63 | set_offset(-450000, -300000, -250000) 64 | elseif (pkg == "com.tencent.tmgp.cod" ) 65 | then 66 | set_offset(-500000, -450000, 0) 67 | elseif (pkg == "com.miHoYo.hkrpg" or pkg == "com.miHoYo.hkrpg.bilibili" or pkg == "com.HoYoverse.hkrpgovers") 68 | then 69 | set_offset(-450000, -500000, 0) 70 | elseif (pkg == "com.netease.dwrg") 71 | then 72 | set_offset(-400000, -450000, -350000) 73 | elseif (pkg == "com.tencent.tmgp.dfm") 74 | then 75 | set_offset(-500000, -550000, 0) 76 | elseif (pkg == "com.sofunny.Sausage" ) 77 | then 78 | set_offset(-500000, -500000, 0) 79 | end 80 | end 81 | 82 | function unload_fas() 83 | set_offset(0, 0, 0) 84 | end 85 | -------------------------------------------------------------------------------- /config/mt9300.lua: -------------------------------------------------------------------------------- 1 | API_VERSION = 1 2 | 3 | function set_offset(policy0, policy4, policy7) 4 | set_policy_freq_offset(0, policy0) 5 | set_policy_freq_offset(4, policy4) 6 | set_policy_freq_offset(7, policy7) 7 | end 8 | 9 | function load_fas(pid, pkg) 10 | if (pkg == "com.miHoYo.Yuanshen" or pkg == "com.miHoYo.ys.mi" or pkg == "com.miHoyo.ys.bilibili" or pkg == "com.miHoYo.GenshinImpact") 11 | then 12 | set_offset(-500000, -300000, 0) 13 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.Nap.bilibili" or pkg == "com.miHoYo.zenless") 14 | then 15 | set_offset(-300000, -300000, 0) 16 | elseif (pkg == "com.tencent.tmgp.sgame" or pkg == "com.levelinfinite.sgameGlobal") 17 | then 18 | set_offset(-500000, -250000, 0) 19 | elseif (pkg == "com.netease.x19" or pkg == "com.mojang.minecraftpe") 20 | then 21 | set_offset(-500000, -400000, 0) 22 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.zenless") 23 | then 24 | set_offset(-400000, -400000, 0) 25 | elseif (pkg == "com.ChillyRoom.DungeonShooter") 26 | then 27 | set_offset(-500000, -350000, 0) 28 | elseif (pkg == "com.tencent.tmgp.pubgmhd") 29 | then 30 | set_offset(-450000, -400000, 0) 31 | elseif (pkg == "com.tencent.lolm") 32 | then 33 | set_offset(-500000, -380000, 0) 34 | elseif (pkg == "com.tencent.tmgp.cf") 35 | then 36 | set_offset(-500000, -350000, 0) 37 | elseif (pkg == "com.netease.l22" ) 38 | then 39 | set_offset(-450000, -350000, 0) 40 | elseif (pkg == "com.netease.dfjs.mi" ) 41 | then 42 | set_offset(-400000, -380000, 0) 43 | elseif (pkg == "com.tencent.nfsonline" ) 44 | then 45 | set_offset(-500000, -300000, 0) 46 | elseif (pkg == "com.kurogame.mingchao" ) 47 | then 48 | set_offset(-400000, -200000, 0) 49 | elseif (pkg == "com.hypergryph.arknights" ) 50 | then 51 | set_offset(-400000, -300000, -300000) 52 | elseif (pkg == "com.netease.sky") 53 | then 54 | set_offset(-450000, -450000, -250000) 55 | elseif (pkg == "com.tencent.jkchess" ) 56 | then 57 | set_offset(-450000, -350000, 0) 58 | elseif (pkg == "com.tencent.tmgp.speedmobile" ) 59 | then 60 | set_offset(-480000, -200000, -300000) 61 | elseif (pkg == "com.tencent.KiHan" ) 62 | then 63 | set_offset(-400000, -300000, -250000) 64 | elseif (pkg == "com.tencent.tmgp.cod" ) 65 | then 66 | set_offset(-500000, -450000, 0) 67 | elseif (pkg == "com.miHoYo.hkrpg" or pkg == "com.miHoYo.hkrpg.bilibili" or pkg == "com.HoYoverse.hkrpgovers") 68 | then 69 | set_offset(-450000, -500000, 0) 70 | elseif (pkg == "com.netease.dwrg") 71 | then 72 | set_offset(-400000, -450000, -350000) 73 | elseif (pkg == "com.tencent.tmgp.dfm") 74 | then 75 | set_offset(-550000, -500000, 0) 76 | elseif (pkg == "com.sofunny.Sausage" ) 77 | then 78 | set_offset(-450000, -430000, 0) 79 | end 80 | end 81 | 82 | function unload_fas() 83 | set_offset(0, 0, 0) 84 | end -------------------------------------------------------------------------------- /config/mt9400.lua: -------------------------------------------------------------------------------- 1 | API_VERSION = 1 2 | 3 | function set_offset(policy0, policy4, policy7) 4 | set_policy_freq_offset(0, policy0) 5 | set_policy_freq_offset(4, policy4) 6 | set_policy_freq_offset(7, policy7) 7 | end 8 | 9 | function load_fas(pid, pkg) 10 | if (pkg == "com.miHoYo.Yuanshen" or pkg == "com.miHoYo.ys.mi" or pkg == "com.miHoyo.ys.bilibili" or pkg == "com.miHoYo.GenshinImpact") 11 | then 12 | set_offset(-550000, -400000, 0) 13 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.Nap.bilibili" or pkg == "com.miHoYo.zenless") 14 | then 15 | set_offset(-500000, -450000, 0) 16 | elseif (pkg == "com.tencent.tmgp.sgame" or pkg == "com.levelinfinite.sgameGlobal") 17 | then 18 | set_offset(-550000, -400000, 0) 19 | elseif (pkg == "com.netease.x19" or pkg == "com.mojang.minecraftpe") 20 | then 21 | set_offset(-550000, -400000, 0) 22 | elseif (pkg == "com.miHoYo.Nap" or pkg == "com.miHoYo.zenless") 23 | then 24 | set_offset(-550000, -400000, 0) 25 | elseif (pkg == "com.ChillyRoom.DungeonShooter") 26 | then 27 | set_offset(-500000, -400000, 0) 28 | elseif (pkg == "com.tencent.tmgp.pubgmhd") 29 | then 30 | set_offset(-550000, -400000, 0) 31 | elseif (pkg == "com.tencent.lolm") 32 | then 33 | set_offset(-550000, -480000, 0) 34 | elseif (pkg == "com.tencent.tmgp.cf") 35 | then 36 | set_offset(-500000, -450000, 0) 37 | elseif (pkg == "com.netease.l22" ) 38 | then 39 | set_offset(-450000, -350000, 0) 40 | elseif (pkg == "com.netease.dfjs.mi" ) 41 | then 42 | set_offset(-400000, -380000, 0) 43 | elseif (pkg == "com.tencent.nfsonline" ) 44 | then 45 | set_offset(-500000, -350000, 0) 46 | elseif (pkg == "com.kurogame.mingchao" ) 47 | then 48 | set_offset(-500000, -350000, 0) 49 | elseif (pkg == "com.hypergryph.arknights" ) 50 | then 51 | set_offset(-500000, -450000, -350000) 52 | elseif (pkg == "com.netease.sky") 53 | then 54 | set_offset(-500000, -450000, -330000) 55 | elseif (pkg == "com.tencent.jkchess" ) 56 | then 57 | set_offset(-550000, -400000, 0) 58 | elseif (pkg == "com.tencent.tmgp.speedmobile" ) 59 | then 60 | set_offset(-480000, -400000, -300000) 61 | elseif (pkg == "com.tencent.KiHan" ) 62 | then 63 | set_offset(-500000, -400000, -300000) 64 | elseif (pkg == "com.tencent.tmgp.cod" ) 65 | then 66 | set_offset(-560000, -480000, 0) 67 | elseif (pkg == "com.miHoYo.hkrpg" or pkg == "com.miHoYo.hkrpg.bilibili" or pkg == "com.HoYoverse.hkrpgovers") 68 | then 69 | set_offset(-600000, -550000, 0) 70 | elseif (pkg == "com.netease.dwrg") 71 | then 72 | set_offset(-400000, -450000, -300000) 73 | elseif (pkg == "com.tencent.tmgp.dfm") 74 | then 75 | set_offset(-550000, -520000, 0) 76 | elseif (pkg == "com.sofunny.Sausage" ) 77 | then 78 | set_offset(-550000, -480000, 0) 79 | end 80 | end 81 | 82 | function unload_fas() 83 | set_offset(0, 0, 0) 84 | end -------------------------------------------------------------------------------- /customize.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # 3 | # Copyright 2023 shadow3aaa@gitbub.com 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | LOCALE=$(getprop persist.sys.locale) 16 | soc_model=$(getprop ro.soc.model) 17 | 18 | if [ -z "$soc_model" ]; then 19 | soc_model=$(getprop ro.hardware) 20 | fi 21 | 22 | check_fasgt() { 23 | if [ -z "$(getprop fas-rs-installed)" ]; then 24 | return 0 25 | fi 26 | return 1 27 | } 28 | 29 | unsupported_device() { 30 | echo "该设备暂不支持,请耐心等待" 31 | echo "若申请提前适配,请发送邮件至 yinwanxi0107@gmail.com" 32 | echo "This device is not supported yet, please wait patiently" 33 | echo "If you want to apply for early adaptation, please send an email to yinwanxi0107@gmail.com" 34 | exit 1 35 | } 36 | 37 | check_platform() { 38 | case "$soc_model" in 39 | "SM8650") 40 | mv "$MODPATH/config/8g3.lua" "$MODPATH/main.lua" 41 | echo "8Gen3已部署,祝您使用愉快❤️" 42 | ;; 43 | "SM8550" | "SM7675") 44 | mv "$MODPATH/config/8g2.lua" "$MODPATH/main.lua" 45 | echo "8Gen2/7+Gen3已部署,祝您使用愉快❤️" 46 | ;; 47 | "SM8635") 48 | mv "$MODPATH/config/8sg3.lua" "$MODPATH/main.lua" 49 | echo "8sGen3已部署,祝您使用愉快❤️" 50 | ;; 51 | "SM8475" | "SM8450") 52 | mv "$MODPATH/config/8g1.lua" "$MODPATH/main.lua" 53 | echo "8Gen1/8+Gen1已部署,祝您使用愉快❤️" 54 | ;; 55 | "SM7475") 56 | mv "$MODPATH/config/7+g2.lua" "$MODPATH/main.lua" 57 | echo "7+Gen2已部署,祝您使用愉快❤️" 58 | ;; 59 | "SM8350") 60 | mv "$MODPATH/config/888.lua" "$MODPATH/main.lua" 61 | echo "888已部署,祝您使用愉快❤️" 62 | ;; 63 | "MT6989") 64 | mv "$MODPATH/config/mt9300.lua" "$MODPATH/main.lua" 65 | echo "mt9300已部署,祝您使用愉快❤️" 66 | ;; 67 | "MT6985") 68 | mv "$MODPATH/config/mt9200.lua" "$MODPATH/main.lua" 69 | echo "mt9200已部署,祝您使用愉快❤️" 70 | ;; 71 | "MT6983") 72 | mv "$MODPATH/config/mt9000.lua" "$MODPATH/main.lua" 73 | echo "mt9000已部署,祝您使用愉快❤️" 74 | ;; 75 | "MT6991") 76 | mv "$MODPATH/config/mt9400.lua" "$MODPATH/main.lua" 77 | echo "mt9400已部署,祝您使用愉快❤️" 78 | ;; 79 | "MT6895Z/TCZA" | "MT6895" | "MT6895Z_A/TCZA" | "MT6896" | "mt6897") 80 | mv "$MODPATH/config/mt8000.lua" "$MODPATH/main.lua" 81 | echo "mt8000系列已部署,祝您使用愉快❤️" 82 | ;; 83 | "gs101") 84 | mv "$MODPATH/config/gs101.lua" "$MODPATH/main.lua" 85 | echo "tensor g1已部署,祝您使用愉快❤️" 86 | ;; 87 | "gs201") 88 | mv "$MODPATH/config/gs201.lua" "$MODPATH/main.lua" 89 | echo "tensor g2已部署,祝您使用愉快❤️" 90 | ;; 91 | "cheetah" | "shiba" | "husky" | "zuma") 92 | mv "$MODPATH/config/gs301.lua" "$MODPATH/main.lua" 93 | echo "tensor g3已部署,祝您使用愉快❤️" 94 | ;; 95 | *) 96 | unsupported_device 97 | ;; 98 | esac 99 | } 100 | 101 | 102 | if ! check_fasgt; then 103 | check_platform 104 | else 105 | echo "安装失败,请先安装fas-gt再安装此插件❣️" 106 | echo "Install failed,Please install fas-gt first❣️" 107 | echo "🌟https://github.com/yinwanxi/fas_gt" 108 | 109 | abort 110 | fi 111 | 112 | -------------------------------------------------------------------------------- /module.prop: -------------------------------------------------------------------------------- 1 | id=fas_gt_DLC 2 | name=fas-gt-dlc 3 | version=0.02 4 | versionCode=241001 5 | author=吟惋兮&shadow3 6 | description=fas-gt插件模块,此模块如有意见或建议请反馈至 yinwanxi0107@gmail.com❤️$❤️fas-gt extension module,if you have any comments or suggestions for, please send feedback to yinwanxi0107@gmail.com 7 | updateJson=https://github.com/yinwanxi/Fas_gt_dlc/raw/master/version.json -------------------------------------------------------------------------------- /service.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # 3 | # Copyright 2023 shadow3aaa@gitbub.com 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | MODDIR=${0%/*} 17 | EXTENSIONS=/dev/fas_rs/extensions 18 | 19 | until [ -d $EXTENSIONS ]; do 20 | sleep 1s 21 | done 22 | 23 | id=$(awk -F= '/id/ {print $2}' $MODDIR/module.prop) 24 | cp -f $MODDIR/main.lua $EXTENSIONS/${id}.lua 25 | -------------------------------------------------------------------------------- /version.json: -------------------------------------------------------------------------------- 1 | { 2 | "versionCode": 241103, 3 | "version": "0.04", 4 | "zipUrl": "https://github.com/yinwanxi/Fas_gt_dlc/releases/download/fas_gt_dlc-0.04/fas_gt_dlc.zip", 5 | "changelog": "https://raw.githubusercontent.com/yinwanxi/Fas_gt_dlc/refs/heads/main/changelog.md" 6 | } 7 | --------------------------------------------------------------------------------