LSPosed Xposed Framework [8.0-12.0]. Simple Magisk Module, EdXposed Alternative.

What Xppsed Framework are You Using??


  • Total voters
    1,010
Search This thread

ThePieMonster

Senior Member
Nov 25, 2013
75
4
@ayush.gl

More of a general question, but if there are modules in the OG Xposed framework store, how would those get installed when using LSPosed? Does the module need to be updated and submitted to LSPosed?

I am looking for a LSPosed version of the below:

 

fil3s

Senior Member
Aug 30, 2014
1,469
331
43
bendigo
mobiledevices11.blogspot.com
Where did you get the new version of lsposed 6313. I can only find 629
 

PocoF3

Member
Jan 18, 2022
20
0
Hello, I have a problem with LSposed & XPrivacyLua-. When I was using EdXposed Manager I could choose in PrivacyLua what permissions gives to each app installed, but now with LSposed, I have to choose in both applications. First check on LpoSed then select again the permissions in PrivacyLua.
Anyway to give the whole permission only to XPrivacyLua?
 

heinhuiz

Senior Member
Nov 26, 2011
1,102
839
Xiaomi Mi A1
Redmi K20 / Xiaomi Mi 9T
Hello, I have a problem with LSposed & XPrivacyLua-. When I was using EdXposed Manager I could choose in PrivacyLua what permissions gives to each app installed, but now with LSposed, I have to choose in both applications. First check on LpoSed then select again the permissions in PrivacyLua.
Anyway to give the whole permission only to XPrivacyLua?
No, as lengthily discussed in this topic, LSposed requires you to select all apps you want to hook yourself, and despite popular request automatic whitelisting of new apps has never been added. Check a few pages back, where the unsurpassed member @Fif_ shared how he automated this process.
 
Last edited:

Feduz

Senior Member
Jun 1, 2014
81
7
Hi, I've installed riru v26, but it results suspended because Zygisk is enabled. Will it works?
 
Jan 23, 2022
11
2
[Edit:] The OP has been updated with a new version that detects and works with the LSPosed parasitic manager.

I am very stuck on getting Bash to work with your script, I am so sorry to trouble you but could I get some help? I have:

* Bought Automate
* Used Magisk to install the cross compiled binaries package which supposedly installs Bash, it did not seem to.
* I flashed Bash via TWRP from here (to my regret as it didn't work and now I can't uninstall it)
* I have created a directory, put Bash 5.0 in to it (from here) and attempted to add it to my $PATH
* I dumped Bash 5.0 directly into /system/bin in both my A and B partitions and rebooted twice.
* I have attempted to add Termux's bin directory (which has bash) to my path
* I have dumped bash from Termux's bin directory directly into /system/bin in both my A and B partitions and rebooted twice.

All returns:

/system/bin/sh: bash: inaccessible or not found

in your Automate script. I am very inexperienced with the Linux command line so I am likely missing something simple here but can you, or anyone, give me a hint as to what I am doing wrong? 🤷‍♂️
 
Last edited:

Fif_

Senior Member
Jun 5, 2013
1,191
1,313
Google Nexus 10
Google Nexus 4
I am very stuck on getting Bash to work with your script, I am so sorry to trouble you but could I get some help? I have:

* Used Magisk to install the cross compiled binaries package which supposedly installs Bash, it did not seem to.
* I flashed Bash via TWRP from here: https://forum.xda-developers.com/t/dev-addon-lastest-bash-for-android.2898295/
* I have created a directory, put Bash 5.0 in to it (from here) and attempted to add it to my $PATH
* I dumped Bash 5.0 directly into /system/usr/bin in both my A and B partitions and rebooted twice.
* I have attempted to add Termux's bin directory (which has bash) to my path
* I have dumped bash from Termux's bin directory directly into /system/usr/bin in both my A and B partitions and rebooted twice.

All returns:

/system/bin/sh: bash: inaccessible or not found

in your Automate script. I am very inexperienced with the Linux command line so I am likely missing something simple here but can you, or anyone, give me a hint as to what I am doing wrong? 🤷‍♂️

The problem is that the little pieces of shell fragments in the Automate flow expect to have bash in the system path.
Changing .bashrc won't work since it's generally not read by the system shell (ash?).
Throwing bash in /system/xbin (or bin) won't work either since this is a Magisk tmpfs mount and won't stick after a reboot (unless you did this in recovery or do not have any modules that add or touch /system/xbin or bin, but then you could have ran into verity issues).
You have to create a magisk module by hand:
- Create /data/adb/modules/bash/system/bin.
- Put bash there, set rwxr-xr-x perms (chmod 775 /data/adb/modules/bash/system/bin/bash)
- Create a /data/adb/modules/bash/module.prop plain text file with the following contents:
Code:
id=bash
name=System bash
version=1.0
versionCode=1
author=Me
description=bash in /system/bin
- Reboot.
 
Last edited:

Moon_stay

Senior Member
Apr 4, 2020
70
24
By popular request, this is my setup for automatically adding newly installed packages to some user-defined LSPosed scopes.

[EDIT:] These instructions and the zip file have been updated on November 14, 2021.

Requirements:
Caveats:
  • LSPosed won't pick up the changes until the device is rebooted.
Instructions:
  1. Unzip the attached LSPosed-Auto-Add.zip
  2. Create the /sdcard/usr/bin directories.
  3. Move lsposed-scopes-add from step 1 file to /sdcard/usr/bin. The file full path must be /sdcard/usr/bin/lsposed-scopes-add
  4. Move xposed-modules-status from step 1 file to /sdcard/usr/bin. The file full path must be /sdcard/usr/bin/xposed-modules-status
  5. Import LSPosed Auto Add.flo in Automate.
  6. After the flow is imported, grant all needed permissions.
  7. In the imported flow, start Configure. You should see a list of active LSPosed modules like the one seen on the attached screenshot.
  8. Toggle the modules as needed. If shown with a check mark, any newly added package will be added to the module's scope.
  9. Press Cancel to exit from the module list.
  10. Make sure that Automate is set to start at boot (in Automate settings).
There should be two automate fibers running in the flow. If it stops for whatever reason, just start the Init flow.
You can add and remove modules at any time by launching the Configure flow.

Changes:
  • 2021-11-01: Provide missing script.
  • 2021-11-08: Force running scripts in / in Automate flow.
  • 2021-11-14: Also support parasitic manager.
Thanks to @Open.Orange and @spawnlives for testing.
In the lsposed Zygisk I'm not find import and use restore but boy support file.flo

Can anyone help with this?
Thanks
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    Setup needed to run XPrivacyLua with LSposed in Android11

    I am running XPL still with riru and EdXposed and Magisk 23. I am going to switch to LSposed but am a little lost what "modules" and versions are needed. Anybody here who can shortly summarize what is needed or recommended? Thx!
    Step 1. Read instructions.
    Step 2. Be happy.
    3
    Yes.
    For newbies who can't understand the real purpose of the Parasitic Manager.
    Doing that just to have the app on drawer is same to throw all the work of developers in the trash.
    Does NOT matter if you did that, but you should NEVER suggest same to someone.
    You gotta relax a little. A choice like that is always a choice of the user that chooses to install that. Easy as that.
    It can sometimes come in handy to install the APK, for several reasons, and if afterwards the choice is to go back to parasitic manager or not, is the user's choice.

    FYI, I'm not a newbie and neither have I misunderstood the concept of the parasitic manager.
    Have a good one 🙂
    3
    Nobody should install LSPosed apk.
    Everybody should use LSPosed PARASITIC Manager only.
    If you install LSPosed apk, LSPosed can be detect too easily.
    Parasitic Manager can avoid all types of detections.
    There's a reason the LSPosed developers still provide the apk. Not everyone cares about detection, and some people prefer having it in the app drawer.
    2
    Any plans to update or move to zygisk ? Riru is deprecated..
    LSPosed already supports Zygisk instead of Riru, and has since 1.7.0, released back in February. Just go to https://github.com/LSPosed/LSPosed/releases and download a Zygisk zip instead of a Riru zip.
    1
    Thanks for the reply! Unfortunately, it doesn't work. I have a choice: hide the root via denylist, then the module to change the data won't work, or remove the application from denylist and then the root will be visible to the application. Is there any way around this? To hide the root for an application without using denylist, I tried rootcloak but it didn't work :(
    Shamiko is the best (and the only) way.
    Shamiko depends totally of all your other settings.
  • 65
    Developers: LSPosed Developers
    Homepage: GitHub
    Requirements:
    • Magisk 21+
    • Android 8-11 [Android 12(experimental)]

    Riru
    Description: Riru module providing ART interception framework (natively for Android Pie) that provides consistent API -interfaces with OG Xposed, using YAHFA (or SandHook) interception environment, supports Android 8.0 ~ 11.
    & Installation:
    • Install Riru 23+
    • Install Riru - LSPosed via Magisk Manager
    Install LSPosed Manager app (Note: No Saparate App and Zip, App Will be Installed Automatically)
    • Reboot your device.

    Download:
    For stable release, please go to Github Release page For canary build use telegram.
    Go to second post for latest version Download

    Notes:
    I'm just sharing this from github, I'm not responsible if you bricked your device.

    GPay and other banking apps working fine without any issue so this xposed alternative is worth trying and safer.

    Note: If anyone facing bootloop issue, don't panic, hard reboot again and it will work.


    Screenshot:
    21
    Download:
    Flash zip file through magisk and then install LSPosed Manager app

    Update 1 March 2021
    V1.2.0

    V1.3.7 Updated 15.May.2021
    (Note: No Saparate App and Zip, App Will be Installed Automatically)

    Bump New Version v1.5.0 14.August.2021

    Android 12 Supported(Experimental)

    Changelog

    • Fix manager white screen
    • Support split-apk modules (LSPosed will choose only one apk with xposed_init to load)
    • Fix manager crash when launching an uninstalled module from notification
    • Load modules with SharedMemory (it can speedup app cold launch) 2
    • New manager icon
    • Fix incorrect update notification in the first installation
    • Fix some apps not showing in the scope list in some rare cases
    • Show notification of module uninstallation
    • Prevent modules from hooking inner methods (methods from XposedBridge's classloader)



    Note:

    Previously LSPosed only recognize modules from the primary user. However, this strategy is not good and leads to some problems: some modules require getting installed app lists for configuration but they cannot do so across users; some require reading themselves from the hooked apps but they cannot do so from non-primary users; some users want to configure modules differently on different users which is not feasible previously. Thus LSPosed now requires every module to be installed to the user on which the apps they want to hook are installed. Some devices restrict modules from installing onto some users. In such a case, you can install them from the manager (but it's recommended).

    1: For some weird devices that prevent installing apps from the root user, please install the manager from /data/adb/lspd/manager.apk or manager.apk from the zip file manually.

    2: Some modules get modules' apk path using reflection of its classloader, it's not recommended and unstable since the apk path from classloader no longer exists when using SharedMemory to load modules. Please use the documented way (from IXposedHookZygoteInit.StartupParam.modulePath) instead.
    16
    Why it's safer than EdXposed?
    I didn't say it's safer than edxposed. I meant xposed alternatives like taichi etc.
    All banking apps works, no system slowdown, i got more free ram etc.
    In edxposed the hooked apps take time to open, no such issue with LSPosed.
    That's why i thought it's worth trying and safer.
    16
    I was considering that until I made an Automate flow to automatically add newly installed apps to select Xposed modules' scope.
    By popular request, this is my setup for automatically adding newly installed packages to some user-defined LSPosed scopes.

    [EDIT:] These instructions have been updated on February 1, 2022 and the zip file has been updated on November 14, 2021.

    Requirements:
    Caveats:
    • LSPosed won't pick up the changes until the device is rebooted.
    Instructions:
    1. Unzip the attached LSPosed-Auto-Add.zip
    2. Create the /sdcard/usr/bin directories.
    3. Move lsposed-scopes-add from step 1 file to /sdcard/usr/bin. The file full path must be /sdcard/usr/bin/lsposed-scopes-add
    4. Move xposed-modules-status from step 1 file to /sdcard/usr/bin. The file full path must be /sdcard/usr/bin/xposed-modules-status
    5. Launch Automate, go to settings and change the Superuser command from its default of
      Code:
      su
      to
      Code:
      su -mm
      .
    6. Import LSPosed Auto Add.flo in Automate.
    7. After the flow is imported, grant all needed permissions.
    8. In the imported flow, start Configure. You should see a list of active LSPosed modules like the one seen on the attached screenshot.
    9. Toggle the modules as needed. If shown with a check mark, any newly added package will be added to the module's scope.
    10. Press Cancel to exit from the module list.
    11. Make sure that Automate is set to start at boot (in Automate settings).
    There should be two automate fibers running in the flow. If it stops for whatever reason, just start the Init flow.
    You can add and remove modules at any time by launching the Configure flow.

    Changes:
    • 2021-11-01: Provide missing script.
    • 2021-11-08: Force running scripts in / in Automate flow.
    • 2021-11-14: Also support parasitic manager.
    • 2022-02-01: Add "su -mm" instructions for newer versions of Automate.
    Thanks to @Open.Orange, @spawnlives and @randomwordhere for testing.
    14
    I have it working on the Poco X3 NFC, running RR, loaded and runs without issue, I used the YAHFA option, has updated without issue.

    Thought I should add that I can't get SafetyNet on, but I've never been worried about that, I think I've only ever had it working once on one of my devices years ago. The one app that refused to play nice I just used MagiskHide on, and it's not a problem now.

    In saying that I only have one module loaded, I haven't had time to go looking for the below answers, to install any others.

    The only thing I haven't figured out yet is what apps need to be picked with what modules, sure some are obvious as they are named after the apps, but is there anything else that needs to be picked with them? For example, do I need to pick the framework app with everything, I'm sure I don't, but how do I know?
    I'm using YAHFA myself, even though I was using SandHook earlier with EdXposed. Also, I'm passing SafetyNet without an issue and Play Store shows certified as well, so that's nice.

    Coming to your question about "scope", basically for a module, you have to select the apps that are hooked by the module. This is pretty straightforward for modules that hook a specific app, for example, if you're using WATweaker, you have to select WhatsApp in its "scope". Similarly, another example, if you're using Instaprefs, you have to select Instagram in its "scope". However, for more systemwide module (like GravityBox, for example), multiple apps have to be selected in the "scope" as the module is more global in nature, so to speak.

    The only way to figure out which apps need to be added in scope for a module is to ask the module developer or by trial and error. Taking GravityBox as an example, you'll find the list of apps that need to be selected for its scope in the first post of its thread (under apps that need to be whitelisted; "whitelisted" term being used in context of EdXposed, since when the post was written, LSPosed wasn't a thing).

    Also, modules can auto-add recommended apps to their scope, but the responsibility of making that happen lies with the module developer. Once again, taking GravityBox as the example, if you install GravityBox in LSPosed, you don't have to select apps manually in its scope. They're auto-selected since the developer has added support for LSPosed and auto-selection of scope apps.

    I know the reply is long-ish, but I hope it helps you and the others who had similar questions. :)