Giter VIP home page Giter VIP logo

riru_lsposed's Introduction

LSPosed Framework

Build Crowdin Channel Chat Download Total

Introduction

A Riru module trying to provide an ART hooking framework which delivers consistent APIs with the OG Xposed, leveraging YAHFA hooking framework.

Xposed is a framework for modules that can change the behavior of the system and apps without touching any APKs. That's great because it means that modules can work for different versions and even ROMs without any changes (as long as the original code was not changed too much). It's also easy to undo. As all changes are done in the memory, you just need to deactivate the module and reboot to get your original system back. There are many other advantages, but here is just one more: Multiple modules can do changes to the same part of the system or app. With modified APKs, you to decide for one. No way to combine them, unless the author builds multiple APKs with different combinations.

Supported Versions

Android 8.1 ~ 12, 12L DP1

Install

  1. Install Magisk v23+
  2. Install Riru v25+ from Magisk repo
  3. Download and install LSPosed in Magisk app
  4. Reboot
  5. Follow the prompts to add LSPosed shortcut to launcher
    • Some launchers won't show the prompt but silently add the shortcut
    • If the shortcut cannot be added, you can install the manager manually by /data/adb/lspd/manager.apk
    • If you accidentally delete the shortcut, reboot your device or install the manager manually to add the shortcut again
    • If you don't need the shortcut, install the manager manually and you can disable future shortcut adding in the settings
    • In any case, you can dial *#*#5776733#*#* (aka LSPosed) to launch the manager if you have a dialer
  6. Have fun :)

Download

For stable release, please go to Github Release page For canary build, please check Github Actions Note: debug build is only available on Github Actions.

Get Help

  • GitHub issues: Issues
  • (For Chinese speakers) 本项目只接受英语标题的issue。如果您不懂英语,请使用翻译工具

For Developers

Developers are welcomed to write Xposed modules with hooks based on LSPosed Framework. Module written based on LSPosed framework is fully compatible with the original Xposed Framework, so contrary a Xposed Framework-based module will work well with the LSPosed framework too.

We use our own module repository. We welcome developers to submit modules to our repository, and then modules can be downloaded in LSPosed.

Community Discussion

Notice: These community group don't accept any bug report, please use Get help to report.

Translation Contribute

You can contribute translation here.

Credits

  • YAHFA: the core ART hooking framework
  • Magisk: makes all these possible
  • Riru: provides a way to inject codes into zygote process
  • XposedBridge: the OG xposed framework APIs
  • DexBuilder: to dynamically generate YAHFA hooker classes
  • Dobby: used for inline hooking
  • EdXposed: fork source
  • SandHook: ART hooking framework for SandHook variant
  • dexmaker and dalvikdx: to dynamically generate YAHFA hooker classes

License

LSPosed is licensed under the GNU General Public License v3 (GPL-3) (http://www.gnu.org/copyleft/gpl.html).

riru_lsposed's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

riru_lsposed's Issues

Bug

Build version: 1.8.6 (6712)
Current date: 2023-01-30T16:31:06.731910
Device: Xiaomi M2012K11AC
Fingerprint: Redmi/alioth/alioth:13/TKQ1.220829.002/V14.0.22.12.8.DEV:user/release-keys

SDK: 33

Stack trace:
java.lang.RuntimeException: Unable to resume activity {org.lsposed.manager/org.lsposed.manager.ui.activity.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object android.os.Parcelable$Creator.createFromParcel(android.os.Parcel)' on a null object reference
at android.app.ActivityThread.performResumeActivity(Unknown Source:223)
at android.app.ActivityThread.handleResumeActivity(Unknown Source:6)
at android.app.servertransaction.ResumeActivityItem.execute(Unknown Source:12)
at android.app.servertransaction.ActivityTransactionItem.execute(Unknown Source:4)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(Unknown Source:32)
at android.app.servertransaction.TransactionExecutor.execute(Unknown Source:79)
at android.app.ActivityThread$H.handleMessage(Unknown Source:172)
at android.os.Handler.dispatchMessage(Unknown Source:19)
at android.os.Looper.loopOnce(Unknown Source:182)
at android.os.Looper.loop(Unknown Source:82)
at android.app.ActivityThread.main(Unknown Source:123)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11)
at com.android.internal.os.ZygoteInit.main(Unknown Source:312)
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object android.os.Parcelable$Creator.createFromParcel(android.os.Parcel)' on a null object reference
at io.github.xposed.xposedservice.utils.BaseParceledListSlice.(Unknown Source:3)
at io.github.xposed.xposedservice.utils.ParceledListSlice.(Unknown Source:1)
at io.github.xposed.xposedservice.utils.ParceledListSlice$a.createFromParcel(Unknown Source:1)
at Lh.k(Unknown Source:47)
at io.k(Unknown Source:2)
at wl.d(Unknown Source:33)
at wl.a(Unknown Source:14)
at org.lsposed.manager.ui.fragment.HomeFragment.R(Unknown Source:2)
at androidx.fragment.app.a.n(Unknown Source:4)
at androidx.fragment.app.a.k(Unknown Source:2)
at androidx.fragment.app.FragmentManager.R(Unknown Source:1)
at androidx.fragment.app.FragmentManager.u(Unknown Source:3)
at androidx.fragment.app.a.n(Unknown Source:7)
at androidx.fragment.app.a.k(Unknown Source:2)
at androidx.fragment.app.FragmentManager.R(Unknown Source:1)
at androidx.fragment.app.FragmentManager.u(Unknown Source:3)
at ee.onPostResume(Unknown Source:5)
at r1.onPostResume(Unknown Source:0)
at android.app.Activity.performResume(Unknown Source:170)
at android.app.ActivityThread.performResumeActivity(Unknown Source:146)
... 13 more

if setting ro.debuggable 1,the lsposed will error

i run this command

adb shell #adb进入命令行模式
su #切换至超级用户
magisk resetprop ro.debuggable 1
stop;start; #一定要通过该方式重启

after device reboot,open lsposed will be error, and the hook will not working

achei um probrema com o odulo sui do magisk

quando eu baixei é instalei o modulo sui do magisk, reiniciei o android é tentei abrir as configuração mas não da porque diz as configuração parou, por favor resolva isso o mais rapido possivel, meu android é o 8.1.1 go, galaxy j2 core

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.