Skip to content

StickerManager/StickerSword

Repository files navigation

Sticker Sword

Inject stickers on app for Sticker Manager.

为 Sticker Manager 提供注入到社交平台 APP 的功能。

English | 中文文档

Usage

  1. Edit stickers.

    1. Download Sticker Manager
    2. Create categories and import stickers.
    3. Sort and edit notes for stickers (optional).
    4. Export (json) data in Sticker Manager's setting page.
  2. Mount data by Sticker Sword

    1. Download
    2. Set the scope in LSPosed/Xposed and more (system should be included or stickers will be unable to load).
    3. Restart system to hook permission.

Development

  1. This module is powered by YukiHookAPI, please view the doucument while developing.

  2. Add package name in array.xml

  3. Define package name in ConstFactory

  4. Add a Hooker in entity

  5. Add Hook Loader in HookEntry

    override fun onHook() = encase {
        loadSystem { loadHooker(PermissionGrantHooker) }
    
        loadApp(PackageName.QQ, PackageName.TIM) { loadHooker(QQTIMHooker) }
        loadApp(PackageName.WECHAT) { loadHooker(WechatHooker) }

        // Add your hook loader
        // loadApp(PackageName.XXX) { loadHooker(XXXHooker) }
    }
  1. Notes
    1. Code needs to be formatted, and files should be encoded in UTF-8.
    2. Commit messages should preferably follow the Angular commit guidelines.
    3. Commits should be GPG signed.

LICENSE

Copyright (C) 2024 FoskyM<[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

Powered by YukiHookAPI