Commit Graph

1459 Commits

Author SHA1 Message Date
weishu
2a64784a33 kernel: hook syscall instead of unstable symbol 2024-03-20 14:21:19 +08:00
Caner Karaca
8f33926aa0 Add Dependabot, Update Dependencies and Workflows (#1440)
Build may fail because of some major dependency updates. Needs changes,
changes/fixes welcomed.

Main goal is keeping all things up-to-date.

---------

Co-authored-by: weishu <twsxtd@gmail.com>
2024-03-20 12:52:34 +08:00
weishu
2b0d19928a manager: don't show mode for non gki 2024-03-19 21:12:43 +08:00
Fede2782
1fc1ffe2ab Docs: add backport notice in module umount docs (#1476)
This aims to uniform the documentation since the official introduction
of pre-GKI modules umount feature
2024-03-19 15:41:22 +08:00
dabao1955
97faab6be4 kernel: Use CONFIG_KSU=m to compile lkm (#1468)
before:
CONFIG_KSU=y
CONFIG_KSU_MODULE=y

after:
CONFIG_KSU=m

---------

Signed-off-by: dabao1955 <dabao1955@163.com>
Co-authored-by: weishu <twsxtd@gmail.com>
2024-03-19 15:40:38 +08:00
backslashxx
247aa877e4 fixup! Suggest non-gki kernel users to backport path_umount (#1477)
My bad.

as reported by @AzusaHana on tg

![image](https://github.com/tiann/KernelSU/assets/118538522/a67f97c2-20f7-4ee6-9ae1-9f9089376857)
2024-03-19 15:39:54 +08:00
weishu
cbd47329e8 ci: no need to cache bot session 2024-03-19 13:32:29 +08:00
weishu
eb25644a0e ci: Don't upload images to group, uploading manager is enough because we can use manager to install directly 2024-03-19 13:31:02 +08:00
weishu
65b5ce2a50 ci: Remove kernel builds deprecated by Google 2024-03-19 12:19:02 +08:00
weishu
8c44e82db2 manager: Filter ignore case. fix #1470 2024-03-19 12:17:32 +08:00
weishu
79a1410fd3 manager: Correct minimal lkm version 2024-03-19 11:53:14 +08:00
weishu
ce0c397a65 kernel: support query working mode 2024-03-19 11:52:17 +08:00
weishu
99847cb986 manager: Show working mode 2024-03-19 11:50:45 +08:00
weishu
f41d73f7eb ksud: try parse kmi from gki modules if uname is modified 2024-03-19 10:37:17 +08:00
igor
7f73827658 website: update translation (#1473) 2024-03-19 09:53:45 +08:00
TheNeutrinoRaged
053fce61c0 [CI][A13] a13-5.10 security date 2024-04 (#1475)
My Pixel 7a March 2024 update has kernel version
5.10.189-android13-4-00012-g1217bb583cc5-ab11174560 and Android security
update 2024-03


https://cs.android.com/android/kernel/superproject/+/common-android13-5.10-2024-03:common/Makefile

Thanks
2024-03-19 09:51:38 +08:00
weishu
8ae6eaa5e3 ci: we don't need to build-lkm separetly because build-manager depends on it. 2024-03-18 23:24:32 +08:00
weishu
35553afd12 ci: Fix manager build 2024-03-18 23:20:41 +08:00
weishu
0c11d210a9 manager: support offline patch 2024-03-18 23:16:24 +08:00
weishu
9759a779cd embed LKM to ksud (#1472) 2024-03-18 23:12:46 +08:00
weishu
4bad691ec8 kernel: don't remove from sysfs when debug is enabled 2024-03-18 19:12:56 +08:00
weishu
fefb02e578 kernel: remove it from sysfs 2024-03-18 18:50:53 +08:00
Soo-Hwan Na
d6770467fa kernel: Make it compile on 3.18 (maybe older) kernels (#1460)
input-event-codes.h:

Input: add input-event-codes header file
(f902dd8934)
This was in 4.4-rc, so 4.4.0 or above has it else no.

aio.h:
fs: move struct kiocb to fs.h
(e2e40f2c1e)

Below this version, we need to explicitly include aio.h for struct kiocb
This was in 4.1-rc, so 4.0 or below should do the include

uaccess.h, sched.h was present for long times, but 4.10 splited out to
include/sched/ but the current ifdef is not including uaccess.h for
lower versions than 4.4. Fix it.
2024-03-18 13:13:00 +08:00
weishu
95dc7fcbe1 ci: fix version incorrect of avd kernel. android_ci config use sandbox and cannot access git 2024-03-18 12:30:09 +08:00
backslashxx
b4cfc2f298 Suggest non-gki kernel users to backport path_umount (#1464)
Most kernel builders have to touch their kernel source code anyway, why
not also tell them to backport path_umount so even non-gki users can
benefit from this?

I know this might be a bit controversial as this will raise the barrier
of entry, but the benefits are just so high.

Idea was from OnlyTomInSecond on KernelSU group chat way back, and it
has been on the discussions for some time

references:
https://t.me/KernelSU_group/27237/176515
https://t.me/KernelSU_group/3249/184908

https://github.com/tiann/KernelSU/discussions/955#discussioncomment-7617166

03d233db8b
https://github.com/tiann/KernelSU/pull/1060 


https://elixir.bootlin.com/linux/v5.9.1/source/fs/namespace.c#L1728
https://elixir.bootlin.com/linux/v5.10.9/source/fs/namespace.c#L1730
https://elixir.bootlin.com/linux/v6.5/source/fs/namespace.c#L1887
https://github.com/tiann/KernelSU/pull/1464#issuecomment-2002492107


Kernel side change examples
5.4
961d978862
4.19
164917f56d
4.14
c07c70a0c5
4.9
195f07593a
4.4
21ea33fe41
https://github.com/tiann/KernelSU/pull/1464#issuecomment-2002424069
ofcourse having someone on 3.18 confirm this will be nice.

**PROS**: umount modules for everyone
**CONS**: barrier of entry +1

---------

Co-authored-by: Christoph Hellwig <hch@lst.de>
Co-authored-by: Fede2782 <78815152+Fede2782@users.noreply.github.com>
Co-authored-by: Tom <31297720+onlytominsecond@users.noreply.github.com>
2024-03-18 10:27:31 +08:00
hosizoraru
6016937d5a ci: a14-6.1 patch level 2024-02 to 03 (#1465)
https://android.googlesource.com/kernel/common/+/refs/heads/android14-6.1-2024-03
android14-6.1-2024-03 已经发布

https://android.googlesource.com/kernel/common/+/refs/heads/android14-6.1-2024-03/Makefile
从 Makefile 来看依旧是 6.1.68
2024-03-17 21:47:00 +08:00
weishu
117b4dc051 manager: check init_boot more precisely 2024-03-17 17:41:35 +08:00
weishu
f6d552c797 ksud: ensure post-fs-data.d is created by post ota 2024-03-17 17:25:42 +08:00
weishu
a5e76553e4 manager: Fix new version tip 2024-03-17 13:30:13 +08:00
weishu
44c0b3a767 skipci: Fix release upload 2024-03-17 13:15:55 +08:00
weishu
177ef6b634 manager: Add tips for select boot image 2024-03-17 12:00:44 +08:00
Weblate (bot)
9a4ea27e9d Translations update from Hosted Weblate (#1454)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for
[KernelSU/Manager](https://hosted.weblate.org/projects/kernelsu/manager/).



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/kernelsu/manager/horizontal-auto.svg)

---------

Co-authored-by: Rex_sa <rex.sa@pm.me>
Co-authored-by: Misaka <79515833+misakazip@users.noreply.github.com>
Co-authored-by: I g o r <igormczampola1@gmail.com>
Co-authored-by: yuztass <inkognito0901@gmail.com>
Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Co-authored-by: Madis Otenurm <robotkoer@gmail.com>
Co-authored-by: dabao1955 <dabao1955@163.com>
Co-authored-by: ngocanhtve <ngocanh.tve@gmail.com>
Co-authored-by: Integral <integral@member.fsf.org>
Co-authored-by: Igor Sorocean <sorocean.igor@gmail.com>
Co-authored-by: weishu tian <twsxtd@gmail.com>
Co-authored-by: Skallr2 <pm563838@gmail.com>
Co-authored-by: charlotte <charlotterose@duck.com>
Co-authored-by: sus <jeffpeng2012@gmail.com>
Co-authored-by: Caner Karaca <canerkaraca_23@hotmail.com>
Co-authored-by: Ali Beyaz <alipolatbeyaz@gmail.com>
2024-03-17 10:19:05 +08:00
igor
339e75be24 website: fix typo (#1456) 2024-03-17 09:08:46 +08:00
weishu
cf210d629f ci: Fix avd build (#1457) 2024-03-17 09:07:52 +08:00
weishu
ca480a5ec3 ci: Add lkm to release 2024-03-16 22:59:22 +08:00
weishu
23263a55de try fix 2024-03-16 12:21:03 +08:00
weishu
f65ea5a340 manager: Add install menu 2024-03-16 11:46:13 +08:00
weishu
ad6e2390f5 manager: Add CN translation 2024-03-16 11:37:31 +08:00
weishu
383f164453 remove ccache, bazel don't use 2024-03-16 11:37:30 +08:00
sewn
f675ce9aba [CI][A13] a13-5.10 patch level 2024-02 (#1449)
My Pixel 7a has a kernel version
`5.10.177-android13-4-00003-ga7208022a7ea-ab1081582`, with a security
patch of 2024-02, but the only available kernel build for that is
security patch 2023-07 which causes a bootloop.
2024-03-16 11:32:32 +08:00
weishu
7fd760f4f4 manager: Fix loading dialog 2024-03-16 11:13:50 +08:00
weishu
972d347a14 manager: Add string resource 2024-03-16 11:13:50 +08:00
weishu
ca8a88f0cc manager: Fix reboot button is missing when flash 2024-03-16 11:13:50 +08:00
weishu
e39be55db8 ksud: Fix magisk detect 2024-03-16 11:13:50 +08:00
Weblate (bot)
d00d3cbf82 Translations update from Hosted Weblate (#1437)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for
[KernelSU/Manager](https://hosted.weblate.org/projects/kernelsu/manager/).



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/kernelsu/manager/horizontal-auto.svg)

---------

Co-authored-by: Rex_sa <rex.sa@pm.me>
Co-authored-by: Misaka <79515833+misakazip@users.noreply.github.com>
Co-authored-by: I g o r <igormczampola1@gmail.com>
Co-authored-by: yuztass <inkognito0901@gmail.com>
Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Co-authored-by: Madis Otenurm <robotkoer@gmail.com>
Co-authored-by: dabao1955 <dabao1955@163.com>
Co-authored-by: ngocanhtve <ngocanh.tve@gmail.com>
Co-authored-by: Integral <integral@member.fsf.org>
Co-authored-by: Igor Sorocean <sorocean.igor@gmail.com>
Co-authored-by: weishu tian <twsxtd@gmail.com>
Co-authored-by: Skallr2 <pm563838@gmail.com>
Co-authored-by: charlotte <charlotterose@duck.com>
Co-authored-by: sus <jeffpeng2012@gmail.com>
Co-authored-by: Caner Karaca <canerkaraca_23@hotmail.com>
2024-03-16 11:08:56 +08:00
cachiusa
7168a974be Add nethunter.root template (#1445)
This app requires DAC_OVERRIDE, DAC_READ_SEARCH, SYS_PTRACE, SYS_ADMIN
(for /data/local r/w) and SYS_CHROOT, SETGID (to run chroot and run it's
processes)

Devices with NetHunter installed is already considered compromised due
to lack of security features(like SELinux), therefore users are advised
not to store private data

It's not really worth restricting more capabilities of the app.
2024-03-16 10:54:00 +08:00
TheNeutrinoRaged
ddc086c4ef Update installation.md (#1451)
typo flush -> flash
2024-03-16 10:53:10 +08:00
sus
076511e275 Updated the Traditional Chinese translations for the website and templates. (#1453)
Signed-off-by: sus <54392299+jeffpeng3@users.noreply.github.com>
2024-03-16 10:52:53 +08:00
weishu
9d5529fb09 ksud: Fix magisk detect 2024-03-16 09:22:37 +08:00
weishu
ceb00dfdfd ci: remove avd build disk cache 2024-03-15 22:28:00 +08:00