Closed s1204IT closed 1 year ago
This is intend behavior, KernelSU shouldn't be a system apk. There are many reasons:
Can we change the structure to something like Magisk?
Which structure?
Which structure?
KernelSU manager is installed from the first boot of the device without direct deployment on the system.
Because KernelSU modify the kernel, so this step must be done in the kernel, but the kernel is GPL-2 and the manager is GPL-3, they are not compatible, we cannot put manager to kernel, so there isn't a good way to do that.
Maybe you can put the ksud
to /data/adb
, and put a script to /data/adb/service.d
and it would work without manager, and install manager in this script.
Maybe you can put the
ksud
to/data/adb
, and put a script to/data/adb/service.d
and it would work without manager, and install manager in this script.
Can you explain more about this way. Do you mean place ksud.so to /data/adb
? And also please give me a example script
Which structure?
KernelSU manager is installed from the first boot of the device without direct deployment on the system.
Or you can do like what I did here https://github.com/supremegamers/device_generic_common/blob/bliss/12l-x86/init.sh#L679
/system/etc/user_app
)/data/vendor/post_inst_complete
)So as you can see, whenever I build a new version, when booting new apps will always being installed. I use this one to install or update some user apps including KernelSU Manager on BlissOS
Describe the bug Place the APK of KernelSU Manager in the
/system/priv-app/KernelSU/KernelSU.apk
and boot the device with clean user data.To Reproduce Steps to reproduce the behavior:
/system/priv-app/KernelSU/KernelSU.apk
Expected behavior The application starts normally.
Smartphone (please complete the following information):
Additional context
logcat
``` I IntentRedirectionHandler: Start activity for package me.weishu.kernelsu activityId 93ce118c-0900-49d5-aef4-493e6ce91703 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10010000 pkg=me.weishu.kernelsu cmp=me.weishu.kernelsu/.ui.MainActivity} from uid 10062 I IntentRedirectionHandler: Start activity for package me.weishu.kernelsu result: true V WsaTaskManager: TaskStackListener onTaskCreated task: 5 ComponentInfo{me.weishu.kernelsu/me.weishu.kernelsu.ui.MainActivity} V WsaTaskManager: TaskStackListener onTaskMovedToFront taskInfo: TaskInfo{userId=0 taskId=5 displayId=0 isRunning=true baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10010000 pkg=me.weishu.kernelsu cmp=me.weishu.kernelsu/.ui.MainActivity } baseActivity=ComponentInfo{me.weishu.kernelsu/me.weishu.kernelsu.ui.MainActivity} topActivity=ComponentInfo{me.weishu.kernelsu/me.weishu.kernelsu.ui.MainActivity} origActivity=null realActivity=ComponentInfo{me.weishu.kernelsu/me.weishu.kernelsu.ui.MainActivity} numActivities=1 lastActiveTime=58328 supportsMultiWindow=true resizeMode=1 isResizeable=true minWidth=-1 minHeight=-1 defaultMinSize=220 token=WCT{android.window.IWindowContainerToken$Stub$Proxy@173406a} topActivityType=1 pictureInPictureParams=null shouldDockBigOverlays=false launchIntoPipHostTaskId=-1 displayCutoutSafeInsets=null topActivityInfo=ActivityInfo{7aee95b me.weishu.kernelsu.ui.MainActivity} launchCookies=[] positionInParent=Point(440, 262) parentTaskId=-1 isFocused=false isVisible=false isSleeping=false topActivityInSizeCompat=false topActivityEligibleForLetterboxEducation= false locusId=null displayAreaFeatureId=1 cameraCompatControlState=hidden} I ActivityManager: Start proc 3311:me.weishu.kernelsu/u0a28 for top-activity {me.weishu.kernelsu/me.weishu.kernelsu.ui.MainActivity} I WsaTaskManager: onTaskAppeared taskId: 5 packageName: me.weishu.kernelsu V GraphicsEnvironment: ANGLE Developer option for 'me.weishu.kernelsu' set to: 'default' V GraphicsEnvironment: ANGLE GameManagerService for me.weishu.kernelsu: false D CoreBackPreview: Window{a8db9b7 u0 me.weishu.kernelsu/me.weishu.kernelsu.ui.MainActivity}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@d83588d, mPriority=-1} I ActivityTaskManager: Displayed me.weishu.kernelsu/.ui.MainActivity: +268ms E AndroidRuntime: Process: me.weishu.kernelsu, PID: 3311 E AndroidRuntime: at me.weishu.kernelsu.Natives.Reinstall the same APK and it will start.
Pre-built https://github.com/YT-Advanced/WSA-Script/actions/runs/5088965426