Skip to content

Commit

Permalink
Merge branch 'tiann:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
whyakari authored Sep 19, 2023
2 parents 7f4c4e8 + 3c0c70b commit c3c66a4
Show file tree
Hide file tree
Showing 25 changed files with 1,212 additions and 44 deletions.
18 changes: 9 additions & 9 deletions docs/README_PT-BR.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
[English](README.md) | [Español](README_ES.md) | [简体中文](README_CN.md) | [繁體中文](README_TW.md) | [日本語](README_JP.md) | [Polski](README_PL.md) | **Portuguese-Brazil** | [Türkçe](README_TR.md) | [Русский](README_RU.md) | [Tiếng Việt](README_VI.md) | [Indonesia](README_ID.md)
[English](README.md) | [Español](README_ES.md) | [简体中文](README_CN.md) | [繁體中文](README_TW.md) | [日本語](README_JP.md) | [Polski](README_PL.md) | **Português (Brasil)** | [Türkçe](README_TR.md) | [Русский](README_RU.md) | [Tiếng Việt](README_VI.md) | [Indonesia](README_ID.md)

# KernelSU

Uma solução raiz baseada em Kernel para dispositivos Android.
Uma solução raiz baseada em kernel para dispositivos Android.

## Características

1. `su` baseado em kernel e gerenciamento de acesso root.
1. `su` e gerenciamento de acesso root baseado em kernel.

2. Sistema modular baseado em overlayfs.

3. [App Perfil](https://kernelsu.org/guide/app-profile.html): Tranque o poder raiz em uma gaiola.
3. [Perfil do Aplicativo](https://kernelsu.org/guide/app-profile.html): Tranque o poder raiz em uma gaiola.

## Estado de compatibilidade
## Estado de Compatibilidade

O KernelSU suporta oficialmente dispositivos Android GKI 2.0 (com kernel 5.10+), kernels antigos (4.14+) também são compatíveis, mas você mesmo precisa construir o kernel.

WSA, ChromeOS e Android baseado em contêiner também deve funcionar com o KernelSU integrado.

E os ABIs atualmente suportados são: `arm64-v8a` e `x86_64`
E as ABIs atualmente suportadas são: `arm64-v8a` e `x86_64`

## Uso
- [Instalação](https://kernelsu.org/guide/installation.html)
- [Instrução de instalação](https://kernelsu.org/guide/installation.html)
- [Como construir?](https://kernelsu.org/guide/how-to-build.html)
- [Site Oficial](https://kernelsu.org/)

## Tradução
Para traduzir o KernelSU para o seu idioma, ou para melhorar uma tradução existente, use o [Weblate](https://hosted.weblate.org/engage/kernelsu/), por favor.
Para traduzir o KernelSU para o seu idioma ou melhorar uma tradução existente, use o [Weblate](https://hosted.weblate.org/engage/kernelsu/), por favor.

## Discussão

Expand All @@ -41,6 +41,6 @@ Para traduzir o KernelSU para o seu idioma, ou para melhorar uma tradução exis
## Créditos

- [kernel-assisted-superuser](https://git.zx2c4.com/kernel-assisted-superuser/about/): a ideia do KernelSU.
- [Magisk](https://github.com/topjohnwu/Magisk): a implementação da sepolicy.
- [Magisk](https://github.com/topjohnwu/Magisk): a poderosa ferramenta raiz.
- [genuine](https://github.com/brevent/genuine/): validação de assinatura apk v2.
- [Diamorphine](https://github.com/m0nad/Diamorphine): algumas habilidades de rootkit.
4 changes: 2 additions & 2 deletions kernel/sucompat.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int ksu_handle_faccessat(int *dfd, const char __user **filename_user, int *mode,
return 0;
}

char path[sizeof(su)];
char path[sizeof(su) + 1];
memset(path, 0, sizeof(path));
ksu_strncpy_from_user_nofault(path, *filename_user, sizeof(path));

Expand All @@ -73,7 +73,7 @@ int ksu_handle_stat(int *dfd, const char __user **filename_user, int *flags)
return 0;
}

char path[sizeof(su)];
char path[sizeof(su) + 1];
memset(path, 0, sizeof(path));
ksu_strncpy_from_user_nofault(path, *filename_user, sizeof(path));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.input.key.Key
import androidx.compose.ui.input.key.key
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.ramcosta.composedestinations.annotation.Destination
Expand Down Expand Up @@ -124,7 +125,7 @@ fun InstallScreen(navigator: DestinationsNavigator, uri: Uri) {
modifier = Modifier.padding(8.dp),
text = text,
fontSize = MaterialTheme.typography.bodySmall.fontSize,
fontFamily = MaterialTheme.typography.bodySmall.fontFamily,
fontFamily = FontFamily.Monospace,
lineHeight = MaterialTheme.typography.bodySmall.lineHeight,
)
}
Expand Down
5 changes: 3 additions & 2 deletions manager/app/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<string name="module_failed_to_enable">فشل في تمكين الوحدة: %s</string>
<string name="module_failed_to_disable">فشل تعطيل الوحدة : %s</string>
<string name="module_empty">لا توجد وحدة مثبتة</string>
<string name="module">وحدة</string>
<string name="module">الوحدات</string>
<string name="uninstall">إلغاء التثبيت</string>
<string name="module_install">تثبيت الوحدة</string>
<string name="install">تثبيت</string>
Expand Down Expand Up @@ -56,7 +56,7 @@
<string name="module_update">تحديث</string>
<string name="module_downloading">تحمبل الوحدة : %s</string>
<string name="module_start_downloading">ابدأ التنزيل: %s</string>
<string name="new_version_available">الإصدار الجديد: %s متاح ، انقر للتنزيل</string>
<string name="new_version_available">الإصدار الجديد: %s متاح ، انقر للتحديث</string>
<string name="launch_app">تشغيل</string>
<string name="profile_default">الإفتراضي</string>
<string name="profile_template">نموذج</string>
Expand All @@ -79,4 +79,5 @@
<string name="failed_to_update_sepolicy">فشل تحديث قواعد SELinux لما يلي: %s</string>
<string name="profile_name">اسم الملف الشخصي</string>
<string name="require_kernel_version">إصدار KernelSU الحالي %d منخفض جدًا بحيث لا يعمل المدير بشكل صحيح. الرجاء الترقية إلى الإصدار %d أو أعلى!</string>
<string name="module_changelog">سجل التغييرات</string>
</resources>
3 changes: 2 additions & 1 deletion manager/app/src/main/res/values-in/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@
<string name="module_update">Perbarui</string>
<string name="module_downloading">Mengunduh module: %s</string>
<string name="module_start_downloading">Mulai mengunduh: %s</string>
<string name="new_version_available">Versi baru: %s telah tersedia, tap untuk mengunduh</string>
<string name="new_version_available">Versi baru: %s sudah tersedia, tap untuk mengunduh</string>
<string name="launch_app">Jalankan</string>
<string name="force_stop_app">Paksa Berhenti</string>
<string name="restart_app">Mulai ulang</string>
<string name="failed_to_update_sepolicy">Gagal memperbarui aturan SELinux untuk: %s</string>
<string name="require_kernel_version">Versi KernelSU saat ini %d terlalu rendah bagi manajer untuk dapat berfungsi dengan baik. Harap tingkatkan ke versi %d atau yang lebih tinggi!</string>
<string name="module_changelog">Catatan Perubahan</string>
</resources>
21 changes: 11 additions & 10 deletions manager/app/src/main/res/values-ja/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<string name="home_superuser_count">スーパーユーザー: %d</string>
<string name="home_module_count">モジュール: %d</string>
<string name="home_unsupported">非対応</string>
<string name="home_unsupported_reason">KernelSU は現在、GKI カーネルにのみ対応しています</string>
<string name="home_unsupported_reason">現在、 KernelSU GKI カーネルにのみ対応しています</string>
<string name="home_kernel">カーネル</string>
<string name="home_manager_version">バージョン</string>
<string name="home_fingerprint">Fingerprint</string>
Expand All @@ -27,9 +27,9 @@
<string name="install">インストール</string>
<string name="reboot">再起動</string>
<string name="settings">設定</string>
<string name="reboot_userspace">ソフトリブート</string>
<string name="reboot_userspace">通常の再起動</string>
<string name="reboot_recovery">リカバリーへ再起動</string>
<string name="reboot_bootloader">Bootloader へ再起動</string>
<string name="reboot_bootloader">ブートローダー へ再起動</string>
<string name="reboot_download">ダウンロードモードへ再起動</string>
<string name="reboot_edl">EDLへ再起動</string>
<string name="about">アプリについて</string>
Expand All @@ -53,21 +53,21 @@
<string name="home_support_content">KernelSU はこれからもずっとフリーでオープンソースです。寄付をすることで私たちを気にかけていることを示せます。</string>
<string name="about_source_code"><![CDATA[%1$s でソースコードを表示<br/>%2$s チャンネルに参加]]></string>
<string name="profile">アプリのプロファイル</string>
<string name="profile_default">デフォルト</string>
<string name="profile_default">既定</string>
<string name="profile_template">テンプレート</string>
<string name="profile_custom">カスタム</string>
<string name="profile_name">プロファイル名</string>
<string name="profile_namespace">マウント名前空間</string>
<string name="profile_namespace">名前空間のマウント</string>
<string name="profile_namespace_inherited">継承</string>
<string name="profile_namespace_global">グローバル</string>
<string name="profile_namespace_global">共通</string>
<string name="profile_namespace_individual">分離</string>
<string name="profile_umount_modules">モジュールのアンマウント</string>
<string name="profile_groups">グループ</string>
<string name="profile_selinux_context">SELinux コンテキスト</string>
<string name="failed_to_update_app_profile">%sのアプリのプロファイルの更新をできませでした</string>
<string name="profile_selinux_domain">ドメイン</string>
<string name="profile_selinux_rules">ルール</string>
<string name="new_version_available">新しいバージョン: %s が利用可能です。タップするとダウンロードします</string>
<string name="new_version_available">新しいバージョン: %s が利用可能です。タップしてダウンロード</string>
<string name="module_update">アップデート</string>
<string name="module_start_downloading">ダウンロードを開始:%s</string>
<string name="launch_app">起動</string>
Expand All @@ -76,8 +76,9 @@
<string name="failed_to_update_sepolicy">SELinux ルールの更新に失敗しました: %s</string>
<string name="profile_capabilities">ケーパビリティ</string>
<string name="module_downloading">モジュールをダウンロード中: %s</string>
<string name="profile_umount_modules_summary">このオプションを有効にすると、KernelSU はこのアプリケーションのモジュールによって変更されたファイルを復元できるようになります。</string>
<string name="settings_umount_modules_default">デフォルトでモジュールをマウント解除</string>
<string name="settings_umount_modules_default_summary">アプリプロファイルの「モジュールのマウント解除」のグローバルデフォルト値です。 有効にすると、プロファイル セットを持たないアプリでのシステムに対するすべてのモジュール変更が削除されます。</string>
<string name="profile_umount_modules_summary">このオプションを有効にすると、KernelSU はこのアプリのモジュールによって変更されたファイルを復元できるようになります。</string>
<string name="settings_umount_modules_default">既定でモジュールのマウントを解除</string>
<string name="settings_umount_modules_default_summary">アプリプロファイルの「モジュールのマウント解除」の共通既定値です。 有効にすると、プロファイル セットを持たないアプリでのシステムに対するすべてのモジュール変更が削除されます。</string>
<string name="require_kernel_version">現在の KernelSU バージョン %d はマネージャーが適切に機能するには低すぎます。 バージョン %d 以降にアップグレードしてください!</string>
<string name="module_changelog">変更履歴</string>
</resources>
7 changes: 4 additions & 3 deletions manager/app/src/main/res/values-pl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<string name="home_fingerprint">Odcisk</string>
<string name="home_selinux_status">Status SELinux</string>
<string name="selinux_status_disabled">Wyłączony</string>
<string name="selinux_status_enforcing">Wymuszone</string>
<string name="selinux_status_permissive">Zezwalający</string>
<string name="selinux_status_enforcing">Enforcing</string>
<string name="selinux_status_permissive">Permissive</string>
<string name="selinux_status_unknown">Nieznany</string>
<string name="superuser">Superużytkownik</string>
<string name="module_failed_to_enable">Nie udało się włączyć modułu: %s</string>
Expand Down Expand Up @@ -75,10 +75,11 @@
<string name="module_update">Zaktualizuj</string>
<string name="module_downloading">Pobieranie modułu: %s</string>
<string name="module_start_downloading">Rozpocznij pobieranie: %s</string>
<string name="new_version_available">Nowa wersja: %s jest dostępna, kliknij, aby pobrać</string>
<string name="new_version_available">Nowa wersja: %s jest dostępna, kliknij, aby zaktualizować</string>
<string name="launch_app">Uruchom</string>
<string name="force_stop_app">Wymuś zatrzymanie</string>
<string name="restart_app">Restartuj</string>
<string name="failed_to_update_sepolicy">Nie udało się zaktualizować reguł SELinux dla: %s</string>
<string name="require_kernel_version">Obecna wersja KernelSU %d jest zbyt stara, aby menedżer działał poprawnie. Prosimy o aktualizację do wersji %d lub nowszej!</string>
<string name="module_changelog">Dziennik zmian</string>
</resources>
3 changes: 2 additions & 1 deletion manager/app/src/main/res/values-ro/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@
<string name="module_update">Actualizează</string>
<string name="module_downloading">Se descarcă modulul: %s</string>
<string name="module_start_downloading">Începe descărcarea: %s</string>
<string name="new_version_available">Versiune nouă: %s disponibilă, clic pentru a descărca</string>
<string name="new_version_available">Versiune nouă: %s este disponibilă, clic pentru a actualiza</string>
<string name="failed_to_update_sepolicy">Nu s-au reușit actualizările regulilor SELinux pentru: %s</string>
<string name="launch_app">Lansare</string>
<string name="force_stop_app">Oprire forțată</string>
<string name="restart_app">Repornește</string>
<string name="require_kernel_version">Versiunea actuală a KernelSU %d este prea mică pentru ca managerul să funcționeze corect. Actualizează la versiunea %d sau o versiune superioară!</string>
<string name="module_changelog">Jurnalul modificărilor</string>
</resources>
3 changes: 2 additions & 1 deletion manager/app/src/main/res/values-tr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@
<string name="module_update">Güncelle</string>
<string name="module_downloading">Modül indiriliyor: %s</string>
<string name="module_start_downloading">İndirme başladı: %s</string>
<string name="new_version_available">Yeni sürüm: %s mevcut, indirmek için tıklayın</string>
<string name="new_version_available">Yeni sürüm: %s mevcut, güncellemek için tıklayın</string>
<string name="launch_app">Uygulamayı çalıştır</string>
<string name="force_stop_app">Uygulamayı durmaya zorla</string>
<string name="restart_app">Uygulamayı yeniden başlat</string>
<string name="failed_to_update_sepolicy">%s için SELinux kuralları güncellenemedi</string>
<string name="require_kernel_version">Mevcut KernelSU sürümü %d, yöneticinin düzgün çalışması için çok düşük. Lütfen %d veya daha yüksek bir sürüme yükseltin!</string>
<string name="module_changelog">Değişiklik listesi</string>
</resources>
5 changes: 3 additions & 2 deletions manager/app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@
<string name="module_update">更新</string>
<string name="module_downloading">正在下载模块:%s</string>
<string name="module_start_downloading">开始下载:%s</string>
<string name="new_version_available">发现新版本:%s,点击下载</string>
<string name="new_version_available">发现新版本:%s,点击升级</string>
<string name="launch_app">启动</string>
<string name="force_stop_app">强制停止</string>
<string name="restart_app">重新启动</string>
<string name="failed_to_update_sepolicy">为:%s 更新翻译失败</string>
</resources>
<string name="module_changelog">更新日志</string>
</resources>
10 changes: 5 additions & 5 deletions userspace/ksud/src/banner
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
_ __
/\ /\___ _ __ _ __ ___| / _\/\ /\
/ //_/ _ \ '__| '_ \ / _ \ \ \/ / \ \
/ __ \ __/ | | | | | __/ |\ \ \_/ /
\/ \/\___|_| |_| |_|\___|_\__/\___/
_ __ _ ____ _ _
| |/ /___ _ __ _ __ ___| / ___|| | | |
| ' // _ \ '__| '_ \ / _ \ \___ \| | | |
| . \ __/ | | | | | __/ |___) | |_| |
|_|\_\___|_| |_| |_|\___|_|____/ \___/
7 changes: 7 additions & 0 deletions website/docs/.vitepress/locales/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import vi_VN from './vi_VN'
import id_ID from './id_ID'
import ja_JP from './ja_JP'
import ru_RU from './ru_RU'
import pt_BR from './pt_BR'

export default defineConfig({
locales: {
Expand Down Expand Up @@ -50,6 +51,12 @@ export default defineConfig({
lang: ru_RU.lang,
themeConfig: ru_RU.themeConfig,
description: ru_RU.description
},
pt_BR: {
label: 'Português (Brasil)',
lang: pt_BR.lang,
themeConfig: pt_BR.themeConfig,
description: pt_BR.description
}
}
})
61 changes: 61 additions & 0 deletions website/docs/.vitepress/locales/pt_BR.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import { createRequire } from 'module'
import { defineConfig } from 'vitepress'

const require = createRequire(import.meta.url)
const pkg = require('vitepress/package.json')

export default defineConfig({
lang: 'pt-BR',
description: 'Uma solução raiz baseada em kernel para dispositivos Android GKI.',

themeConfig: {
nav: nav(),

lastUpdatedText: 'Última atualização',

sidebar: {
'/pt_BR/guide/': sidebarGuide()
},

socialLinks: [
{ icon: 'github', link: 'https://github.com/tiann/KernelSU' }
],

footer: {
message: 'Lançado sob a Licença GPL3.',
copyright: 'Copyright © Desenvolvedores KernelSU atuais de 2022'
},

editLink: {
pattern: 'https://github.com/tiann/KernelSU/edit/main/website/docs/:path',
text: 'Edite esta página no GitHub'
}
}
})

function nav() {
return [
{ text: 'Guia', link: '/pt_BR/guide/what-is-kernelsu' },
{ text: 'Github', link: 'https://github.com/tiann/KernelSU' }
]
}

function sidebarGuide() {
return [
{
text: 'Guia',
items: [
{ text: 'O que é KernelSU?', link: '/pt_BR/guide/what-is-kernelsu' },
{ text: 'Instalação', link: '/pt_BR/guide/installation' },
{ text: 'Como construir?', link: '/pt_BR/guide/how-to-build' },
{ text: 'Integração para dispositivos não GKI', link: '/pt_BR/guide/how-to-integrate-for-non-gki'},
{ text: 'Dispositivos com suporte não oficial', link: '/pt_BR/guide/unofficially-support-devices.md' },
{ text: 'Guia do Módulo', link: '/guide/module.md' },
{ text: 'Perfil do Aplicativo', link: '/pt_BR/guide/app-profile.md' },
{ text: 'Resgate do bootloop', link: '/pt_BR/guide/rescue-from-bootloop.md' },
{ text: 'FAQ', link: '/guide/faq' },
{ text: 'Recursos ocultos', link: '/pt_BR/guide/hidden-features' },
]
}
]
}
Loading

0 comments on commit c3c66a4

Please sign in to comment.