Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] The command did not take effect after running and restarting when using KernelSU #52

Open
GoodbyeNJN opened this issue Apr 3, 2024 · 0 comments

Comments

@GoodbyeNJN
Copy link

Description:

After excuting /data/adb/modules/quickswitch/quickswitch --ch=app.lawnchair command and restarting, the recents provider did not switch to Lawnchair correctly.

Environment:

  • Android 13
  • KernelSU 11458
  • QuickSwitch v4.0.2
  • Lawnchair v14.0.0-beta-2

Causes:

After executing the command, the directory structure was as follows (some files have been omitted):

.
├── overlays
│   ├── AndroidManifest.xml
│   └── overlay
│       └── values
│           ├── bools.xml
│           └── strings.xml
├── product
│   └── overlay
│       └── QuickSwitchOverlay
│           └── QuickSwitchOverlay.apk
└── system
    ├── etc
    │   ├── permissions
    │   │   └── privapp-permissions-app.lawnchair.xml
    │   └── sysconfig
    │       └── app.lawnchair-hiddenapi-package-whitelist.xml
    └── priv-app
        └── QuickSwitch-app.lawnchair-107
            └── QuickSwitch-app.lawnchair-107.apk

According to KernelSU documentation, the directory structure should be like this:

/data/adb/modules
├── .
├── .
|
└── $MODID                  <--- The folder is named with the ID of the module
    │
    │      *** Main Contents ***
    │
    ├── system              <--- This folder will be mounted if skip_mount does not exist
    │   ├── ...
    │   ├── ...
    │   └── ...
    │
    │      *** Auto Generated, DO NOT MANUALLY CREATE OR MODIFY ***
    │
    ├── vendor              <--- A symlink to $MODID/system/vendor
    ├── product             <--- A symlink to $MODID/system/product
    └── system_ext          <--- A symlink to $MODID/system/system_ext

Where product should be a symlink, but was actually a normal directory created by quickswitch, so it was not mounted correctly by overlayfs, which can be fixed by simply moving the product directory to the system directory

Reference: https://kernelsu.org/guide/module.html#kernelsu-modules

j7b3y pushed a commit to j7b3y/QuickSwitch that referenced this issue Apr 11, 2024
j7b3y pushed a commit to j7b3y/QuickSwitch that referenced this issue Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant