Commit Graph

1477 Commits

Author SHA1 Message Date
weishu 64908583e9 kernel: Fix compile warning 2024-03-21 11:32:30 +08:00
weishu c408710b11 kernel: minor fixes 2024-03-21 11:24:56 +08:00
weishu bc1e03feb1 kernel: remove unused headers 2024-03-20 23:14:30 +08:00
Houvven 39b025b235 add user custom select lkm file button on install screen top bar (#1491) 2024-03-20 22:29:04 +08:00
weishu 65a0f0070a manager: print space to avoid button overlap. close #1478 2024-03-20 21:48:00 +08:00
weishu 8b71d3c9ba ksud: try find KMI from installed modules 2024-03-20 21:33:41 +08:00
dependabot[bot] 2bcb6a93c0 build(deps): bump com.google.devtools.ksp from 1.9.22-1.0.18 to 1.9.23-1.0.19 in /manager (#1487)
Bumps [com.google.devtools.ksp](https://github.com/google/ksp) from
1.9.22-1.0.18 to 1.9.23-1.0.19.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/google/ksp/releases">com.google.devtools.ksp's
releases</a>.</em></p>
<blockquote>
<h2>1.9.23-1.0.19</h2>
<h3>New APIs</h3>
<ul>
<li><a
href="https://redirect.github.com/google/ksp/issues/1708">#1708</a>
<code>SymbolProcessorEnvironment.kspVersion</code></li>
<li><a
href="https://redirect.github.com/google/ksp/issues/1707">#1707</a>
<code>CodeGenerator.associateWithFunctions</code> and
<code>CodeGenerator.associateWithProperties</code></li>
</ul>
<h3>Issues fixed in KSP2</h3>
<ul>
<li><a
href="https://redirect.github.com/google/ksp/issues/1691">#1691</a>
IllegalStateException: Value type not found for value</li>
<li><a
href="https://redirect.github.com/google/ksp/issues/1719">#1719</a> The
order of symbols returned from Resolver.getSymbolsWithAnnotation() is
different</li>
<li><a
href="https://redirect.github.com/google/ksp/issues/1718">#1718</a>
Getting packageName of Kotlin types returns empty String</li>
<li><a
href="https://redirect.github.com/google/ksp/issues/1721">#1721</a>
KSAnnotation packageName is an empty String for a type from a different
module</li>
<li><a
href="https://redirect.github.com/google/ksp/issues/1722">#1722</a>
Resolver.getDeclarationsFromPackage() returns declarations from the
default package when passing in an unknown package</li>
<li><a
href="https://redirect.github.com/google/ksp/issues/1717">#1717</a>
Resolver.getJvmName() returns different results for annotation args</li>
<li><a
href="https://redirect.github.com/google/ksp/issues/1725">#1725</a>
asMemberOf() throws exception with a generic type without arguments</li>
<li><a
href="https://redirect.github.com/google/ksp/issues/1728">#1728</a>
ClassCastException when calling KSType.replace() with empty list</li>
<li><a
href="https://redirect.github.com/google/ksp/issues/1713">#1713</a>
NoClassDefFoundError for LZ4Factory when trying KSP2</li>
<li><a
href="https://redirect.github.com/google/ksp/issues/1665">#1665</a>
NoClassDefFound in ksp.useKSP2=true mode</li>
<li><a
href="https://redirect.github.com/google/ksp/issues/1733">#1733</a> ABI
incompatibility with kotlin-compiler-embeddable in 2.0.0-Beta4</li>
<li><a
href="https://redirect.github.com/google/ksp/issues/1714">#1714</a>
Generated resources are not added to KotlinCompilation inputs</li>
<li><a
href="https://redirect.github.com/google/ksp/issues/1747">#1747</a>
isCompanionObject is false for companion objects from KOTLIN_LIB</li>
<li><a
href="https://redirect.github.com/google/ksp/issues/1743">#1743</a>
Incorrect type parameter variances</li>
<li><a
href="https://redirect.github.com/google/ksp/issues/1759">#1759</a>
IllegalStateException when getting the modifiers from properties in a
Java annotation declaration</li>
</ul>
<h3>Issues fixed in KSP Gradle Plugin</h3>
<ul>
<li><a
href="https://redirect.github.com/google/ksp/issues/1712">#1712</a>
Analysis API artifacts have the wrong common-deps dependency</li>
<li><a
href="https://redirect.github.com/google/ksp/issues/1775">#1775</a>
1.0.18 creates circular dependencies with kapt tasks</li>
<li><a
href="https://redirect.github.com/google/ksp/issues/1772">#1772</a>
Update plugin com.google.devtools.ksp to v1.9.22-1.0.18 BUILD
FAILED</li>
</ul>
<h3>Known issues</h3>
<ul>
<li><a
href="https://redirect.github.com/google/ksp/issues/1776">#1776</a> KSP2
has higher memory usage when the compile classpath is very large.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/google/ksp/commits/1.9.23-1.0.19">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.google.devtools.ksp&package-manager=gradle&previous-version=1.9.22-1.0.18&new-version=1.9.23-1.0.19)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-20 21:03:39 +08:00
weishu 51880e3e90 ci: revert apksign plugin 2024-03-20 20:03:58 +08:00
weishu 4cd435b194 [no ci]: Don't upload ci manager 2024-03-20 19:22:41 +08:00
weishu c986b7a53a Fix manager signature (#1489)
https://github.com/LSPosed/LSPlugin/commit/f48f2fea59bb5717459593f63cc799d7f8724df0
2024-03-20 19:12:39 +08:00
weishu 808342bf04 kernel: Fix sepolicy on ColorOS14 2024-03-20 17:43:37 +08:00
weishu 0b9f675013 ci: fix manager ci 2024-03-20 17:42:17 +08:00
weishu f19d157887 manager: tar oplus log if exists 2024-03-20 16:24:36 +08:00
weishu a160a7bf0d ci: fix typo 2024-03-20 16:13:54 +08:00
weishu ef26aba4d8 ci: build manager when kernel changed, don't upload apk for pr builds 2024-03-20 15:42:29 +08:00
weishu 71b56ba700 kernel: fix panic cast 2024-03-20 15:39:07 +08:00
weishu d958e6d7e7 ci: only post manager to tg 2024-03-20 15:34:06 +08:00
weishu 815f4d0428 kernel: hook newfstatat/faccessat syscall instead of unstable symbol 2024-03-20 15:15:26 +08:00
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
(https://github.com/torvalds/linux/commit/f902dd893427eade90f7eaf858e5ff8b150a5a12)
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
(https://github.com/torvalds/linux/commit/e2e40f2c1ed433c5e224525c8c862fd32e5d3df2)

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

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
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>
v0.9.0
2024-03-17 10:19:05 +08:00