Commit Graph

81 Commits

Author SHA1 Message Date
igor 0d3d63e342 website: update translations (#1772) 2024-05-27 10:35:41 +08:00
Akari cf379b271d website: added conditional preprocessor directive (#1774)
Signed-off-by: Akari <akariondev@gmail.com>
2024-05-27 10:33:44 +08:00
Scruel Tao 26fa99a6d7 doc: add boot scripts process explanation (#1726)
Co-authored-by: weishu <twsxtd@gmail.com>
2024-05-26 17:10:45 +08:00
igor aa6e617b97 website: update translations (#1760) 2024-05-25 11:08:35 +08:00
Joseph P 7921f0d745 docs: update documentation for the website (#1750)
Description:

I was originally browsing through project's FAQ on the
[website](https://kernelsu.org/) and noticed a few discrepancies across
the text.<br>I edited them out, and once having finished with the FAQ, I
looked through other website pages as well.

Changes:

- updated documentation for the project's website (English version).

--
P.S. I actually appreciate the partial documentation on GKI and in-depth
Android mechanisms present in it. While there is of course documentation
from Google, it is nice to have guidelines from a more practical
standpoint.
2024-05-21 09:35:51 +08:00
weishu 1bec08eacf docs: Add devpts description for non gki 2024-05-09 12:05:10 +08:00
igor 94ebe7952b website: update translation (#1514) 2024-03-23 21:50:43 +08:00
weishu 1e0396c999 website: Add docs for LKM mode 2024-03-23 16:05:21 +08:00
Fede2782 072021c322 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
igor a08addf39a website: update translation (#1473) 2024-03-19 09:53:45 +08:00
backslashxx cbb215ea81 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

https://github.com/OnlyTomInSecond/android_kernel_xiaomi_sdm845/commit/03d233db8bbe9fe101509430bfa09d1899168aa7
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
https://github.com/natsumerinchan/kernel_oneplus_sm8350/commit/961d9788624e88c3c58918b3781b9fbdd19ecbeb
4.19
https://github.com/backslashxx/android_karnol_ximi_fog/commit/164917f56d0e75ab51bb9f1bdf489acac7a6d3db
4.14
https://github.com/crdroidandroid/android_kernel_xiaomi_sm6150/commit/c07c70a0c59fb46ac0c1c812c3e993022e375cd5
4.9
https://github.com/backslashxx/msm8953-los21/commit/195f07593ae9769a992f3945bcdc43ff7fc99827
4.4
https://github.com/riarumoda/android_kernel_samsung_a9y18qlte/commit/21ea33fe41ce079ec1d663c0bd2201bc00a8084a
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
TheNeutrinoRaged ef4c3746bf Update installation.md (#1451)
typo flush -> flash
2024-03-16 10:53:10 +08:00
Ylarod eef789967e Fix typo (#1444) 2024-03-13 18:04:58 +08:00
zalnars 5b90a5f060 Fix typos (#1443) 2024-03-12 13:15:03 +08:00
igor 6c5e98998a website: update translation (#1423) 2024-03-08 10:32:08 +08:00
WindyDay 34f6e56c40 Add docs about Android 14 Kernel (#1421)
First time Pr to this project, not sure if I done it in the correct
format
2024-03-05 23:39:55 +08:00
igor 81b3529c29 website: fixed typos and update translation (#1407) 2024-03-04 19:16:39 +08:00
Fede2782 290e7f707f English Faq: add wrong storage size on some Samsung (#1400)
#1389
2024-02-29 13:47:45 +08:00
igor 6bc9ab6f53 website: update translation (#1377) 2024-02-25 22:48:22 +08:00
weishu b5a25efe97 website: Add docs for module WebUI 2024-02-23 22:43:31 +08:00
igor 97129d6940 website: update translation (#1322) 2024-01-31 11:16:57 +08:00
weishu 6d1e6d6287 ksud: default 1T for sparse file 2024-01-30 12:56:59 +08:00
weishu 200b10cc0f ksud: sparse file default 256G 2024-01-29 21:49:39 +08:00
weishu 2f1b4b484f website: Add description for sparse file 2024-01-29 21:42:52 +08:00
48d82835b3 website/docs: we don't need to use markdown for this, as it's not exactly a patch or sh file. (#1298)
```
# KernelSU 
CONFIG_KSU=y
```

---------

Signed-off-by: 明 <akariondev@gmail.com>
Signed-off-by: akari <akariondev@gmail.com>
Co-authored-by: Ylarod <me@ylarod.cn>
Co-authored-by: weishu <twsxtd@gmail.com>
2024-01-19 09:05:56 +08:00
Arthur 1962fdf605 website: optimize expression and complete Chinese translation (#1278)
Co-authored-by: weishu <twsxtd@gmail.com>
2024-01-09 09:17:25 +08:00
Celica Sylphil 28738e878e website: Fix patches display (#1281)
Option does not match the corresponding patch.

![2024-01-08
20-41-45](https://github.com/tiann/KernelSU/assets/64072399/22066923-8263-4fff-b2f8-a9b04e7ca8b5)
![2024-01-08
20-41-51](https://github.com/tiann/KernelSU/assets/64072399/f345e31a-dd5a-4224-a052-ddaf99aedc5a)
![2024-01-08
20-41-55](https://github.com/tiann/KernelSU/assets/64072399/6c7d4f9f-d588-46aa-ac92-d8eb8c003316)
![2024-01-08
20-41-58](https://github.com/tiann/KernelSU/assets/64072399/906bb033-eddd-4c8c-bd13-00cff799b3df)
2024-01-08 21:08:49 +08:00
a8ad4cd009 website/docs: add missing #ifdef and #endif in ksu_handle_stat [2/2] (#1277)
Signed-off-by: 明 <akariondev@gmail.com>
Signed-off-by: akari <akariondev@gmail.com>
Co-authored-by: Ylarod <me@ylarod.cn>
Co-authored-by: weishu <twsxtd@gmail.com>
2024-01-08 19:52:29 +08:00
c113cc0a17 website/docs/guide: Enable KernelSU support (CONFIG_KSU) (#1274)
### enable CONFIG_KSU on the website documentation.

Added support for KernelSU by enabling CONFIG_KSU in the kernel
defconfig located at `arch/arm64/configs/vendor/your_defconfig`. Please
ensure to verify the correct location of the file. Note that on some
devices, the defconfig may be located in `arch/arm64/configs`.

---------

Signed-off-by: 明 <akariondev@gmail.com>
Signed-off-by: akari <akariondev@gmail.com>
2024-01-08 14:42:17 +08:00
weishu f48ebdb1a9 website: remove coolapk download link 2023-12-28 21:08:57 +08:00
weishu b1d4732e34 website: fix build error 2023-12-28 13:43:56 +08:00
weishu f846de6537 website: update installation instructions 2023-12-28 13:24:49 +08:00
Pa1NarK 294e4786ab docs(faq): Fix typo in faq.md (#1186) 2023-12-04 11:30:04 +08:00
weishu 5a4624f5ab Docs update (#1143) 2023-11-14 13:56:21 +08:00
Aquarius223 94950a48bf website: Optimize the non-GKI page format and repair errors (#1141)
1. Divide the patches into a separate file segment
2. Fix the ISO C90 grammar warning in fs/open.c

Conflict: JA_JP Folder does not do how-to-integrate-for-non-gki.md
Change-Id: I23a611eb937d9cb3da7a2d97046e0b57f1efc4d6

Co-authored-by: admin <paper@localhost>
2023-11-14 11:06:44 +08:00
Brian c8b18b262e docs: Rename mentions of ZygiskOnKernelSU to ZygiskNext (#1114) 2023-11-06 10:26:58 +08:00
Ylarod e9b90c0d05 ksud: add post_mount stage (#864) 2023-08-16 11:39:32 +08:00
hopez13 605aed1155 Docs: Fixed Word Repetition (#818) 2023-08-01 10:06:56 +08:00
weishu 1f6c97836f website: Add docs for boot-completed stage 2023-07-31 19:58:45 +08:00
longhuan1999 bf3d75d787 Update app-profile.md and strings.xml (#712)
1. website: Correcting several errors in docs of App Profile
2. manager: Remove the 'app name' field except for the default
strings.xml file
2023-07-03 09:51:54 +08:00
weishu 7fddcaf173 website: Add docs for App Profile 2023-07-02 19:07:09 +08:00
SirRGB 45502f76ae misc grammar and typo fixes (#699) 2023-06-30 23:54:15 +08:00
Azeroth 6731d33ca3 Fix typo (#667)
Fixed typo in this section
https://kernelsu.org/guide/installation.html#patch-boot-img-manully
2023-06-20 17:58:05 +08:00
Juhyung Park 9fa6a0ce85 Hook improvements (take 2) (#563)
Hi @tiann.

Thanks for the great project, I had great fun playing around with it.

This PR mainly tries to further minimize the possible delays caused by
KernelSU hooking.

There are 3 major changes:
- Processes with 0 < UID < 2000 are blocked straight-up before going
through the allow_list.
I don't see any need for such processes to be interested in root, and
this allows returning early before going through a more expensive
lookup.
If there's an expected breakage due to this change, I'll remove it. Let
me know.
- A page-sized (4K) bitmap is added.
This allows O(1) lookup for UID <= 32767.
This speeds up `ksu_is_allow_uid()` by about 4.8x by sacrificing a 4K
memory. IMHO, a good trade-off.
Most notably, this reduces the 99.999% result previously from worrying
milliseconds scale to microseconds scale.
For UID > 32767, another page-sized (4K) sequential array is used to
cache allow_list.

Compared to the previous PR #557, this new approach gives another nice
25% performance boost in average, 63-96% boost in worst cases.

Benchmark results are available at
https://docs.google.com/spreadsheets/d/1w_tO1zRLPNMFRer49pL1TQfL6ndEhilRrDU1XFIcWXY/edit?usp=sharing

Thanks!

---------

Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
2023-06-16 19:53:15 +08:00
aiamadeus 2127bdbb46 website: fix web link address of taichi (#391)
Co-authored-by: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
2023-04-15 15:32:07 +08:00
セリカ・シルフィル bc532cf158 kernel: Support switch branch or tag (#382) 2023-04-13 14:40:56 +08:00
Ylarod b5accdfc9d website: fix typo, add hidden-features (#349) 2023-04-05 14:36:22 +08:00
tiann b61d36e0cc website: Add docs for REPLACE variables 2023-03-27 17:27:53 +08:00
tiann c10147043a website: Add docs for REMOVE 2023-03-27 15:17:55 +08:00
tiann 35a8ae2c02 feat: Add documentation for rescuing from bootloop.
- Add new link to sidebar of zh_CN documentation page
- Add new link to sidebar navigation in English documentation page
- Add new guide for rescuing from bootloop
- Include methods for rescuing wrong module flashing
- Provide mechanisms for safe mode and AB updates for module recovery
2023-03-27 11:37:18 +08:00