-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Supporting x86/x86_64 #1
Comments
x86_64 is feasible and I will try it, but 32bit arch such as x86 and arm is unsupported |
thanks |
x86_64 support is added in 0d8785e, could you test it with the latest commit? |
ok, by the way I can only test SELinux in permissive because this is Android-x86 |
If it is permissive, may this cause bootloop? |
if you make that hack then it might be, iirc we can't even get SurfaceFlinger running with enforcing |
2806601 keeps permissive if it is |
If you build the manager app yourself, you should also change this to the apk's signature: https://github.com/tiann/KernelSU/blob/main/kernel/apk_sign.c#L115 |
The signature ensure only the manager can allow/disallow root request, you can try my build(it's the builtin |
You can modify this line https://github.com/tiann/KernelSU/blob/main/kernel/apk_sign.c#L79 and read the dmesg to get your EXPECTED_SIZE and EXPECTED_HASH. |
I tested this and it still not working, but on dmesg it show this |
Thanks |
The system doesn't have |
show some |
by the way, a small request |
Sure, please try this build: https://github.com/tiann/KernelSU/actions/runs/3709915866 |
https://github.com/hmtheboy154/Darkmatter-kernel/tree/umbral |
Does the kernel have |
it haven't, and when compile it show this
|
I'm including linux/sched/task_stack.h to sucompat.c right now, I'll see if that help |
Maybe you should enable |
I turn that on already |
guess we should close this issue, x86_64 is working now |
Hello, I see that your Android x86 is using Linux kernel 5.15. Do you have any available source code? The 5.15 kernel compiled by myself does not work, and the system graphical interface does not refresh |
Which Android version are you trying to build ? |
Nested iterate_dir() within the same shared parent directory is an unsupported behavior and may cause deadlock when other processes access files under the same directory. Avoid it by using a linked-list and processing it after directory traversal is done. [24928.245837] sysrq: Show Blocked State [24928.247448] task:binder:1535_1 state:D stack: 0 pid: 1594 ppid: 1 flags:0x04000000 [24928.247462] Call trace: [24928.247471] __switch_to+0x148/0x250 [24928.247480] __schedule+0x454/0x6ec [24928.247488] schedule+0x7c/0x118 [24928.247498] rwsem_down_read_slowpath+0x4c0/0x9b8 [24928.247506] down_read_killable+0x3c/0x174 [24928.247519] iterate_dir+0x40/0x184 [24928.247528] __arm64_sys_getdents64+0x58/0x148 [24928.247540] el0_svc_common.llvm.14247025778268414372+0xa8/0x138 [24928.247548] do_el0_svc+0x24/0x90 [24928.247559] el0_svc+0x10/0x1c [24928.247567] el0_sync_handler+0xcc/0xe4 [24928.247576] el0_sync+0x1a0/0x1c0 [24928.247586] task:binder:1535_4 state:D stack: 0 pid: 2679 ppid: 1 flags:0x04000000 [24928.247597] Call trace: [24928.247605] __switch_to+0x148/0x250 [24928.247613] __schedule+0x454/0x6ec [24928.247621] schedule+0x7c/0x118 [24928.247629] rwsem_down_write_slowpath+0x44c/0xbd4 [24928.247637] down_write+0x94/0x138 [24928.247648] do_renameat2+0x1e4/0x4b4 [24928.247658] __arm64_sys_renameat2+0x68/0x84 [24928.247667] el0_svc_common.llvm.14247025778268414372+0xa8/0x138 [24928.247675] do_el0_svc+0x24/0x90 [24928.247683] el0_svc+0x10/0x1c [24928.247691] el0_sync_handler+0xcc/0xe4 [24928.247698] el0_sync+0x1a0/0x1c0 [24928.247706] task:binder:1535_5 state:D stack: 0 pid: 2680 ppid: 1 flags:0x04000000 [24928.247716] Call trace: [24928.247724] __switch_to+0x148/0x250 [24928.247731] __schedule+0x454/0x6ec [24928.247738] schedule+0x7c/0x118 [24928.247746] rwsem_down_read_slowpath+0x4c0/0x9b8 [24928.247753] down_read_killable+0x3c/0x174 [24928.247760] iterate_dir+0x40/0x184 [24928.247767] __arm64_sys_getdents64+0x58/0x148 [24928.247775] el0_svc_common.llvm.14247025778268414372+0xa8/0x138 [24928.247783] do_el0_svc+0x24/0x90 [24928.247791] el0_svc+0x10/0x1c [24928.247798] el0_sync_handler+0xcc/0xe4 [24928.247805] el0_sync+0x1a0/0x1c0 [24928.247815] task:binder:1535_9 state:D stack: 0 pid: 2684 ppid: 1 flags:0x04000000 [24928.247825] Call trace: [24928.247832] __switch_to+0x148/0x250 [24928.247839] __schedule+0x454/0x6ec [24928.247846] schedule+0x7c/0x118 [24928.247853] rwsem_down_read_slowpath+0x5b8/0x9b8 [24928.247860] down_read+0x3c/0x164 [24928.247869] lookup_slow+0x2c/0x60 [24928.247877] link_path_walk+0x31c/0x380 [24928.247884] path_lookupat+0x68/0x11c [24928.247891] filename_lookup+0x88/0x17c [24928.247901] vfs_statx+0x9c/0x1b0 [24928.247908] __arm64_sys_newfstatat+0x34/0x5c [24928.247916] el0_svc_common.llvm.14247025778268414372+0xa8/0x138 [24928.247924] do_el0_svc+0x24/0x90 [24928.247932] el0_svc+0x10/0x1c [24928.247939] el0_sync_handler+0xcc/0xe4 [24928.247946] el0_sync+0x1a0/0x1c0 [24928.248384] task:AnrConsumer state:D stack: 0 pid:12893 ppid: 1158 flags:0x04000800 [24928.248396] Call trace: [24928.248403] __switch_to+0x148/0x250 [24928.248411] __schedule+0x454/0x6ec [24928.248418] schedule+0x7c/0x118 [24928.248426] rwsem_down_read_slowpath+0x5b8/0x9b8 [24928.248433] down_read+0x3c/0x164 [24928.248440] lookup_slow+0x2c/0x60 [24928.248448] link_path_walk+0x31c/0x380 [24928.248456] path_lookupat+0x68/0x11c [24928.248464] filename_lookup+0x88/0x17c [24928.248474] user_statfs+0x44/0x1c4 [24928.248481] __arm64_sys_statfs+0x28/0x104 [24928.248490] el0_svc_common.llvm.14247025778268414372+0xa8/0x138 [24928.248498] do_el0_svc+0x24/0x90 [24928.248506] el0_svc+0x10/0x1c [24928.248514] el0_sync_handler+0xcc/0xe4 [24928.248520] el0_sync+0x1a0/0x1c0 [24928.249471] task:binder:4694_6 state:D stack: 0 pid: 7417 ppid: 1158 flags:0x04000800 [24928.249488] Call trace: [24928.249502] __switch_to+0x148/0x250 [24928.249509] __schedule+0x454/0x6ec [24928.249514] schedule+0x7c/0x118 [24928.249524] rwsem_down_read_slowpath+0x5b8/0x9b8 [24928.249531] down_read+0x3c/0x164 [24928.249538] lookup_slow+0x2c/0x60 [24928.249547] link_path_walk+0x31c/0x380 [24928.249554] path_openat+0x84/0xacc [24928.249559] do_filp_open+0x6c/0xf8 [24928.249568] do_sys_openat2+0x7c/0x1e8 [24928.249576] __arm64_sys_openat+0x64/0x74 [24928.249584] el0_svc_common.llvm.14247025778268414372+0xa8/0x138 [24928.249589] do_el0_svc+0x24/0x90 [24928.249632] el0_svc+0x10/0x1c [24928.249640] el0_sync_handler+0xcc/0xe4 [24928.249645] el0_sync+0x1a0/0x1c0 [24928.250868] task:othing.launcher state:D stack: 0 pid:29301 ppid: 1158 flags:0x04000801 [24928.250880] Call trace: [24928.250887] __switch_to+0x148/0x250 [24928.250894] __schedule+0x454/0x6ec [24928.250899] schedule+0x7c/0x118 [24928.250905] rwsem_down_read_slowpath+0x5b8/0x9b8 [24928.250910] down_read+0x3c/0x164 [24928.250916] lookup_slow+0x2c/0x60 [24928.250922] link_path_walk+0x31c/0x380 [24928.250928] path_openat+0x84/0xacc [24928.250934] do_filp_open+0x6c/0xf8 [24928.250941] do_sys_openat2+0x7c/0x1e8 [24928.250947] __arm64_sys_openat+0x64/0x74 [24928.250954] el0_svc_common.llvm.14247025778268414372+0xa8/0x138 [24928.250959] do_el0_svc+0x24/0x90 [24928.250965] el0_svc+0x10/0x1c [24928.250970] el0_sync_handler+0xcc/0xe4 [24928.250976] el0_sync+0x1a0/0x1c0 [24928.251020] task:BG Thread tiann#1 state:D stack: 0 pid: 9009 ppid: 1158 flags:0x04000800 [24928.251027] Call trace: [24928.251033] __switch_to+0x148/0x250 [24928.251039] __schedule+0x454/0x6ec [24928.251044] schedule+0x7c/0x118 [24928.251050] rwsem_down_read_slowpath+0x5b8/0x9b8 [24928.251056] down_read+0x3c/0x164 [24928.251062] lookup_slow+0x2c/0x60 [24928.251069] link_path_walk+0x31c/0x380 [24928.251075] path_openat+0x84/0xacc [24928.251080] do_filp_open+0x6c/0xf8 [24928.251086] do_sys_openat2+0x7c/0x1e8 [24928.251092] __arm64_sys_openat+0x64/0x74 [24928.251098] el0_svc_common.llvm.14247025778268414372+0xa8/0x138 [24928.251104] do_el0_svc+0x24/0x90 [24928.251111] el0_svc+0x10/0x1c [24928.251116] el0_sync_handler+0xcc/0xe4 [24928.251121] el0_sync+0x1a0/0x1c0 [24928.253819] task:Thread-221 state:D stack: 0 pid:11089 ppid: 1158 flags:0x04000809 [24928.253838] Call trace: [24928.253849] __switch_to+0x148/0x250 [24928.253857] __schedule+0x454/0x6ec [24928.253866] schedule+0x7c/0x118 [24928.253873] rwsem_down_read_slowpath+0x5b8/0x9b8 [24928.253878] down_read+0x3c/0x164 [24928.253885] lookup_slow+0x2c/0x60 [24928.253895] link_path_walk+0x31c/0x380 [24928.253901] path_openat+0x84/0xacc [24928.253907] do_filp_open+0x6c/0xf8 [24928.253914] do_sys_openat2+0x7c/0x1e8 [24928.253922] __arm64_sys_openat+0x64/0x74 [24928.253929] el0_svc_common.llvm.14247025778268414372+0xa8/0x138 [24928.253934] do_el0_svc+0x24/0x90 [24928.253941] el0_svc+0x10/0x1c [24928.253949] el0_sync_handler+0xcc/0xe4 [24928.253954] el0_sync+0x1a0/0x1c0 [24928.254415] task:kworker/u32:3 state:D stack: 0 pid:10599 ppid: 2 flags:0x00000008 [24928.254435] Workqueue: kernelsu_work_queue do_update_uid.llvm.10243150712685858777 [24928.254442] Call trace: [24928.254449] __switch_to+0x148/0x250 [24928.254458] __schedule+0x454/0x6ec [24928.254463] schedule+0x7c/0x118 [24928.254469] rwsem_down_read_slowpath+0x5b8/0x9b8 [24928.254475] down_read+0x3c/0x164 [24928.254481] path_openat+0x19c/0xacc [24928.254487] do_filp_open+0x6c/0xf8 [24928.254493] filp_open+0x88/0xac [24928.254501] ksu_filp_open_compat+0x2c/0x238 [24928.254507] my_actor+0x150/0x200 [24928.254516] f2fs_fill_dentries+0x18c/0x2b4 [24928.254522] f2fs_readdir.llvm.12898971218442528687+0x170/0x3c4 [24928.254528] iterate_dir+0xa0/0x184 [24928.254537] do_update_uid.llvm.10243150712685858777+0x2dc/0x2f8 [24928.254547] process_scheduled_works+0x1c8/0x550 [24928.254554] worker_thread+0x340/0x724 [24928.254561] kthread+0x13c/0x178 [24928.254566] ret_from_fork+0x10/0x30 [24928.254665] task:SysUiBg state:D stack: 0 pid:12113 ppid: 1158 flags:0x04000800 [24928.254686] Call trace: [24928.254698] __switch_to+0x148/0x250 [24928.254710] __schedule+0x454/0x6ec [24928.254724] schedule+0x7c/0x118 [24928.254738] rwsem_down_read_slowpath+0x5b8/0x9b8 [24928.254750] down_read+0x3c/0x164 [24928.254762] lookup_slow+0x2c/0x60 [24928.254776] link_path_walk+0x31c/0x380 [24928.254789] path_openat+0x84/0xacc [24928.254802] do_filp_open+0x6c/0xf8 [24928.254816] do_sys_openat2+0x7c/0x1e8 [24928.254824] __arm64_sys_openat+0x64/0x74 [24928.254831] el0_svc_common.llvm.14247025778268414372+0xa8/0x138 [24928.254837] do_el0_svc+0x24/0x90 [24928.254843] el0_svc+0x10/0x1c [24928.254852] el0_sync_handler+0xcc/0xe4 [24928.254857] el0_sync+0x1a0/0x1c0 [24928.254924] task:facebook.katana state:D stack: 0 pid:12407 ppid: 1158 flags:0x04000801 [24928.254932] Call trace: [24928.254939] __switch_to+0x148/0x250 [24928.254945] __schedule+0x454/0x6ec [24928.254950] schedule+0x7c/0x118 [24928.254957] rwsem_down_read_slowpath+0x5b8/0x9b8 [24928.254965] down_read+0x3c/0x164 [24928.254970] lookup_slow+0x2c/0x60 [24928.254977] link_path_walk+0x31c/0x380 [24928.254982] path_lookupat+0x68/0x11c [24928.254987] filename_lookup+0x88/0x17c [24928.254993] vfs_statx+0x9c/0x1b0 [24928.254999] __arm64_sys_newfstatat+0x34/0x5c [24928.255009] el0_svc_common.llvm.14247025778268414372+0xa8/0x138 [24928.255014] do_el0_svc+0x24/0x90 [24928.255020] el0_svc+0x10/0x1c [24928.255027] el0_sync_handler+0xcc/0xe4 [24928.255032] el0_sync+0x1a0/0x1c0 [24928.255090] task:Thread-5 state:D stack: 0 pid:12798 ppid: 1158 flags:0x04000801 [24928.255099] Call trace: [24928.255105] __switch_to+0x148/0x250 [24928.255111] __schedule+0x454/0x6ec [24928.255120] schedule+0x7c/0x118 [24928.255126] rwsem_down_read_slowpath+0x5b8/0x9b8 [24928.255132] down_read+0x3c/0x164 [24928.255137] lookup_slow+0x2c/0x60 [24928.255144] link_path_walk+0x31c/0x380 [24928.255150] path_lookupat+0x68/0x11c [24928.255155] filename_lookup+0x88/0x17c [24928.255161] vfs_statx+0x9c/0x1b0 [24928.255166] __arm64_sys_newfstatat+0x34/0x5c [24928.255174] el0_svc_common.llvm.14247025778268414372+0xa8/0x138 [24928.255183] do_el0_svc+0x24/0x90 [24928.255190] el0_svc+0x10/0x1c [24928.255195] el0_sync_handler+0xcc/0xe4 [24928.255200] el0_sync+0x1a0/0x1c0 Signed-off-by: Juhyung Park <[email protected]>
Hello, @tiann @hmtheboy154 |
test #2102 |
@hmtheboy154 working! thks!!! Use Alt-F1-F2 or Alt-F7 to switch to debug console. |
I don't build 5.15 anymore so idk, you have to switch to newer ver |
There's nothing to do with Superuser it has to do with bootloader unlocked
everybody don't even need to be rooted to do that just need to put a loader
unlocked on your device and all of it's unlocked cuz when you're turning on
your Android you'll say you're unlocked every time you turn on your device
this is how you know you're bootloaders actually unlocked cuz it tells you
every time you turn on your device if it doesn't then it's not really
unlocked that's your issue everybody I'm pretty sure and if you don't
believe me I will make a video and post it right here so you all can see
this every time I turn on my phone it says bootloader unlocked so why are
you almost seeing that if you're not seeing that this software won't work
that's correct has nothing to do with super use or anything like that
…On Tue, Oct 15, 2024, 3:19 AM Huy Minh ***@***.***> wrote:
@hmtheboy154 <https://github.com/hmtheboy154> working! thks!!! But i have
another question. Do you have a note for how to porting KernelSU to Blissos
that includes all commit? I build my own aosp with the same kernel with
BlissOS (umbral-20230826) . but enter boot loop!
I don't build 5.15 anymore so idk, you have to switch to newer ver
—
Reply to this email directly, view it on GitHub
<#1 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYRZBWP4ESBE57Y6JKTJ7C3Z3S6WPAVCNFSM6AAAAABP43TKTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJTGA4DMMBWG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Redmi Note 12 Turbo (marble) comes shipped with Android 13, but the baseline/kernel target version is Android 12. ``` # getprop | grep api_level [ro.board.api_level]: [31] [ro.board.first_api_level]: [31] [ro.product.first_api_level]: [33] [ro.vendor.api_level]: [31] # uname -a Linux localhost 5.10.198-android12-9-00085-g226a9632f13d-ab11136126 #1 SMP PREEMPT Wed Nov 22 14:16:37 UTC 2023 aarch64 Toybox ``` Maybe we should use `ro.board.first_api_level` instead of `ro.product.first_api_level`, or the minimum value. But anyway, it's better to be consistent with ksud. https://github.com/tiann/KernelSU/blob/2f9210b2e79338e7e7b1eb91878cada2b9a37ed6/userspace/ksud/src/boot_patch.rs#L407
Redmi Note 12 Turbo (marble) comes shipped with Android 13, but the baseline/kernel target version is Android 12. ``` # getprop | grep api_level [ro.board.api_level]: [31] [ro.board.first_api_level]: [31] [ro.product.first_api_level]: [33] [ro.vendor.api_level]: [31] # uname -a Linux localhost 5.10.198-android12-9-00085-g226a9632f13d-ab11136126 tiann#1 SMP PREEMPT Wed Nov 22 14:16:37 UTC 2023 aarch64 Toybox ``` Maybe we should use `ro.board.first_api_level` instead of `ro.product.first_api_level`, or the minimum value. But anyway, it's better to be consistent with ksud. https://github.com/tiann/KernelSU/blob/2f9210b2e79338e7e7b1eb91878cada2b9a37ed6/userspace/ksud/src/boot_patch.rs#L407
Redmi Note 12 Turbo (marble) comes shipped with Android 13, but the baseline/kernel target version is Android 12. ``` # getprop | grep api_level [ro.board.api_level]: [31] [ro.board.first_api_level]: [31] [ro.product.first_api_level]: [33] [ro.vendor.api_level]: [31] # uname -a Linux localhost 5.10.198-android12-9-00085-g226a9632f13d-ab11136126 tiann#1 SMP PREEMPT Wed Nov 22 14:16:37 UTC 2023 aarch64 Toybox ``` Maybe we should use `ro.board.first_api_level` instead of `ro.product.first_api_level`, or the minimum value. But anyway, it's better to be consistent with ksud. https://github.com/tiann/KernelSU/blob/2f9210b2e79338e7e7b1eb91878cada2b9a37ed6/userspace/ksud/src/boot_patch.rs#L407
Redmi Note 12 Turbo (marble) comes shipped with Android 13, but the baseline/kernel target version is Android 12. ``` # getprop | grep api_level [ro.board.api_level]: [31] [ro.board.first_api_level]: [31] [ro.product.first_api_level]: [33] [ro.vendor.api_level]: [31] # uname -a Linux localhost 5.10.198-android12-9-00085-g226a9632f13d-ab11136126 tiann#1 SMP PREEMPT Wed Nov 22 14:16:37 UTC 2023 aarch64 Toybox ``` Maybe we should use `ro.board.first_api_level` instead of `ro.product.first_api_level`, or the minimum value. But anyway, it's better to be consistent with ksud. https://github.com/tiann/KernelSU/blob/2f9210b2e79338e7e7b1eb91878cada2b9a37ed6/userspace/ksud/src/boot_patch.rs#L407
Redmi Note 12 Turbo (marble) comes shipped with Android 13, but the baseline/kernel target version is Android 12. ``` # getprop | grep api_level [ro.board.api_level]: [31] [ro.board.first_api_level]: [31] [ro.product.first_api_level]: [33] [ro.vendor.api_level]: [31] # uname -a Linux localhost 5.10.198-android12-9-00085-g226a9632f13d-ab11136126 tiann#1 SMP PREEMPT Wed Nov 22 14:16:37 UTC 2023 aarch64 Toybox ``` Maybe we should use `ro.board.first_api_level` instead of `ro.product.first_api_level`, or the minimum value. But anyway, it's better to be consistent with ksud. https://github.com/tiann/KernelSU/blob/2f9210b2e79338e7e7b1eb91878cada2b9a37ed6/userspace/ksud/src/boot_patch.rs#L407
Bumps the maven group in /manager with 2 updates: com.android.application and com.android.library. Updates `com.android.application` from 8.7.3 to 8.8.0 Updates `com.android.library` from 8.7.3 to 8.8.0 Updates `com.android.library` from 8.7.3 to 8.8.0 --- updated-dependencies: - dependency-name: com.android.application dependency-type: direct:production update-type: version-update:semver-minor dependency-group: maven - dependency-name: com.android.library dependency-type: direct:production update-type: version-update:semver-minor dependency-group: maven - dependency-name: com.android.library dependency-type: direct:production update-type: version-update:semver-minor dependency-group: maven ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Hi, I just read about the project and I really like it. I am maintaining BlissOS and currently looking for a better root solution than the old Superuser made by koush. But looking at the codes, it seems like the project only support arm64 so far, are there any plan for x86/x86_64 ? I can help you test with x86_64 if you want.
The text was updated successfully, but these errors were encountered: