Commit Graph

501 Commits

Author SHA1 Message Date
ThePedroo 7a892e0d62 improve: companion.c, dl.c and utils.c code
This commit improves the code for multiple files by making "read_string" function already make the string NULL-terminated, avoiding code duplication. Also for "companion.c" fixes an "if" where it would read "client_fd" and check if "fd" is equal to "-1", instead of "client_fd", also does some overall code improvements there like detaching the thread, avoiding memory leaks in the exit, of the thread itself.
2025-01-11 06:37:22 -03:00
ThePedroo 6b0b71a690 fix: Zygiskd remote read types
This commit fixes the mismatch between types sent by lizygisk.so and read by Zygiskd, causing issues.
2025-01-11 06:37:21 -03:00
Lucky Kiddos 88eb16331e update: id_ID translations (#107)
This commit updates the translations for Indonesia language with proper grammar.

Signed-off-by: Lucky Kiddos <95188840+GuitarHeroStyles@users.noreply.github.com>
2025-01-11 01:13:22 -03:00
ThePedroo 95073d9f4a fix: checking malloc against non NULL not NULL
This commit fixes an issue where one of the "malloc", a libc function to allocate dynamic memory, "if"s were checking its return against non-NULL instead of NULL, making it seem to have failed when it didn't.
2024-12-18 13:07:06 -03:00
Pedro.js 4b7618ddf9 merge: Clean up injection traces of ReZygisk (#101)
This merge commit merges the Pull Request by JingMatrix that cleans up the rest of detection points of ReZygisk in non-KSU environments.
2024-12-18 03:26:41 -03:00
JingMatrix 0671f2e497 improve: reset linker module counters
Two counters for module loading and unloading are introduced in the commit https://cs.android.com/android/_/android/platform/bionic/+/a2e83ab34845759f0999d0ec88f4cdf558c0a9f5. To remove linker traces of libzygisk.so and Zygisk modules, we should reset them properly.
2024-12-18 07:21:03 +01:00
JingMatrix 5e072bd919 improve: cache scanned virtual maps
Reading the file `/proc/self/maps` is detectable by the target process.
Hence, we should cache scanned virtual maps after `libart.so` is loaded for later plt hooks in the target process.
2024-12-18 07:21:03 +01:00
JingMatrix 2814aaf67f remove: unnecessary memory mapping renaming
Note that it is impossible to hide injecting trace of virtual memory maps from the hooked target process.
ReZygisk will only focus on removing its trace for approcess that are not hooked by modules.
2024-12-18 07:19:41 +01:00
JingMatrix b7138d6353 add: drop soinfo for libzygisk.so
1. fix typo vsdo -> vdso and allow this symbol to be not found, which is the case for the 32bit linkers on some devices
2. use soinfo_free to fully remove the soinfo record of libzygisk.so
3. set `soinfo.size = 0` to avoid the library being unmapped while removing its soinfo record
4. add more debug logs for troubleshooting
2024-12-15 16:28:49 +01:00
JingMatrix 5e43e4a71b improve: hook pthread_attr_setstacksize
Relying on dlclose to unload libzygisk.so will block us to clean its trace in the solist.
This commit allows us to unmap libzygisk.so without using dlclose.
To call munmap, we use the function pthread_attr_setstacksize instead of pthread_attr_destroy, so that tail-call can still be applied here since it has the same signature as munmap.
2024-12-15 16:25:06 +01:00
ThePedroo 8fb5d9197a fix: magisk file detection
This commit fixes the detection for the "magisk" file which can be in 2 different folders, with 3 possible different names.
2024-12-13 13:56:27 -03:00
Md Arif 060a1f3cf9 add: GrapheneOS support (#53)
This commit adds support for devices that run GrapheneOS by hooking on JNI methods they renamed.

Signed-off-by: Md Arif <111168803+sabamdarif@users.noreply.github.com>
2024-12-07 19:03:22 +00:00
Pedro.js 6cb8f305bc merge: Improve SoList hiding (#95, #96)
This commit merges the pull request by JingMatrix that includes improvements for clangd users, fixes for devices which have llvm suffix in SoList related symbols, and improved hiding related to the SoList.
2024-12-05 20:07:50 -03:00
JingMatrix 6c41a8188d improve: drop soinfo records of loaded modules
In Bionic linker, the `soinfo` structure has a field `next`, which points to the next loaded library in a linked list consisting of all loaded libraries.
Hence, an injected process can easily find all loaded libraries.
Previously in ReZygisk, module library records are hidden by setting the `pathname` field to be empty, which is futile but easier to detect.
Current idea of dropping record can be found in the following commit:
https://github.com/RikkaApps/Riru/commit/5d635e8c66a018b5086f28e083b18b0d0656022b
2024-12-06 00:02:29 +01:00
JingMatrix 3d79939d7b fix: linker64 static symbols lookup with suffix
On Android 15+ in some devices, the symbol names of some static variables such as `solist`, has a `llvm` suffix in its exported name.
Current commit handles this case and close #63 as fixed.
2024-12-06 00:02:26 +01:00
JingMatrix 9bcbec91aa improve: turn on CMAKE_EXPORT_COMPILE_COMMANDS
To make `clangd` work properly, one needs to make symbolic links
```
ln -sf $PWD/loader/build/tools/debug/arm64-v8a/compile_commands.json loader/build
```
2024-11-26 18:10:31 +01:00
Kirill Kuznetsov 5a061e6daa fix: ru_RU language name translation (#86)
This commit fixes russian language name translation, which previously said, in russian, "English (USA)".

Signed-off-by: Kirill Kuznetsov <kdevlab@yandex.ru>
2024-11-24 15:24:49 -03:00
JingMatrix d498a9ab01 fix: trigger Zygisk modules service.sh in parallel (#91)
This commit fixes 2 issues:
- service.sh of files were not being executed in parallel, a behavior described in: https://github.com/topjohnwu/Magisk/blob/master/docs/guides.md#boot-scripts . This was fixed by using "&" in the end of the command to execute the module's service.sh, telling the shell to not block.
- Gradle wrapper used in ReZygisk was old, causing failing CIs.

It also updates the NDK version to ensure we'll be operating smoothly.
2024-11-24 15:18:50 -03:00
Fyphen b5b5c2f9d8 add: ja_JP README (#88)
* Create README_ja-JP.md

Signed-off-by: Fyphen <fyphensub@gmail.com>

* Update README_ja-JP.md

Signed-off-by: Fyphen <fyphensub@gmail.com>

---------

Signed-off-by: Fyphen <fyphensub@gmail.com>
2024-11-23 20:39:46 +07:00
Willow Hayley Lovelace 27b3de562f add: Turkish language for WebUI (#85)
Co-authored-by: witch <witch@dyingwillow.dev>
2024-11-23 14:47:23 +07:00
何意挽秋風 5d9276e9e0 add: README_zh-TW.md translation (#84)
This commit adds Traditional Chinese translation for README.

Signed-off-by: 何意挽秋風 <94283631+RejectVanity@users.noreply.github.com>
2024-11-16 13:32:22 -03:00
Berlian Panca 56d307783f add: indonesian language for WebUI (#83)
This commit will add support for indonesian language in webui, following commits:

* Add Indonesian language for WebUI

* Sort TRANSLATOR.md contributor alphabetically
2024-11-15 15:18:20 +07:00
Keeperorowner 7da7b8bd07 improve: Simplified Chinese README translation (#80)
This commit improves translations in the Simplified Chinese README.

Signed-off-by: Keeperorowner <qingfong0731@outlook.com>
2024-11-14 19:16:23 -03:00
unexpected unresolved 38f3f4ec63 fix: wrong file name (installer)
Signed-off-by: unexpected unresolved <xeondev@xeondex.onmicrosoft.com>
2024-11-13 22:45:10 +07:00
unexpected unresolved 05f673bce1 fix: wrong file name (build)
Signed-off-by: unexpected unresolved <xeondev@xeondex.onmicrosoft.com>
2024-11-13 22:44:00 +07:00
RainyXeon 43b3bfbc99 fix: language cannot translated fully 2024-11-13 18:44:05 +07:00
SheepChef ef7e6c07e4 update: translations for zh_CN (#79)
This commit updates the translations for Simplified Chinese so that it is fully translated.

Signed-off-by: SheepChef <50871867+SheepChef@users.noreply.github.com>
2024-11-13 07:01:03 -03:00
ThePedroo f4af759aab fix: free in garbage data pointer; fix: Zygiskd wrong message length
This commit fixes the issue where "free" would be executed in a pointer which has garbage data, leading to crashes. This was fixed by setting to NULL, so that it's clean.
It also fixes the issue where Zygiskd messages for "DAEMON_SET_INFO" would not count the NULL-terminator, causing crashes.
2024-11-12 20:38:28 -03:00
unexpected unresolved 84a139fcaf add: new translation for vi_VN
Signed-off-by: unexpected unresolved <xeondev@xeondex.onmicrosoft.com>
2024-11-13 06:36:44 +07:00
ThePedroo ea42fbea41 fix: monitor information
This commit fixes monitor information, which now is properly working and named, and also has proper status words.
2024-11-12 20:25:57 -03:00
ThePedroo e55a825f7d fix: 64-bit/32-bit-only device detection
This commit fixes the detection made by ReZygisk WebUI that makes it be aware of whether the device's CPU is capable of 64-bit or 32-bit only, allowing it to properly mark as Fully functioning or just partially.
2024-11-12 17:39:57 -03:00
SheepChef dddda78496 update: zh_CN translations (#78)
This commit updates the Simplified Chinese translations for the WebUI.

Signed-off-by: SheepChef <50871867+SheepChef@users.noreply.github.com>
2024-11-12 14:48:00 -03:00
SheepChef 21325ec409 fix: WebUI branch URL in READMEs (#77)
This commit fixes the URL of the new WebUI branch in the READMEs.

Signed-off-by: SheepChef <50871867+SheepChef@users.noreply.github.com>
2024-11-12 14:47:08 -03:00
echo 0e9307bfd6 remove: Rust dependencies information from README.md (#74)
This commit removes information about Rust dependencies used in previous Zygiskd from "README.md" file.
2024-11-12 13:34:03 -03:00
RainyXeon 664aed058a fix: translation not completely for webui 2024-11-12 20:04:16 +07:00
RainyXeon 8b611b4153 add: some small padding for header 2024-11-12 19:40:23 +07:00
RainyXeon b805d86f47 fix: go back icon not change the color 2024-11-12 18:43:05 +07:00
ThePedroo d82bd17003 fix: re-declaring constant variable
This commit fixes the issue where two variables with the same name would overlap, causing a re-declaration of a constant (imutable) variable
2024-11-12 04:22:54 -03:00
unexpected unresolved 847c8c1544 remove: light icon data for errorh page
Signed-off-by: unexpected unresolved <minh15052008@gmail.com>
2024-11-12 14:29:02 +07:00
unexpected unresolved 5d8db1b602 remove: button icon in light theme
Signed-off-by: unexpected unresolved <minh15052008@gmail.com>
2024-11-12 14:28:11 +07:00
RainyXeon 44ba054f96 fix: error history header 2024-11-12 14:16:41 +07:00
RainyXeon 98743e8523 add: new ui for error history page
remove: modal support (initial)
2024-11-12 14:12:53 +07:00
ThePedroo 949a526cf2 fix: Web UI not loading
This commit fixes the issue where the Web UI doesn't load by properly implementing the saving of the status of ReZygisk so that it can be displayed easily, which wasn't properly implemented before.
2024-11-12 02:33:33 -03:00
ThePedroo 73295ab4b5 update: ReZygisk's Web UI license
This commit updates the Web UI of ReZygisk to a license with copyleft, making it harder to be used in proprietary projects.
2024-11-12 00:18:07 -03:00
RainyXeon a0d79875ea add: new cache state storing and handling 2024-11-12 00:17:38 -03:00
ThePedroo 73acecaa9d improve: translations detection
This commit allows ReZygisk WebUI to dynamically fetch translations.
2024-11-12 00:17:37 -03:00
Blazzycrafter f4968599cf add: de_DE translations (#62)
This commit adds German translations for ReZygisk WebUI.

Signed-off-by: Blazzycrafter <39300111+Blazzycrafter@users.noreply.github.com>
2024-11-12 00:17:37 -03:00
Igor 8f6a3ae8e8 update: ro_RO translations (#57)
This commit updates Romanian translations to translate untranslated phrases and fix some grammatically incorrect phrases.

Signed-off-by: Igor <sorocean.igor@gmail.com>
2024-11-12 00:17:36 -03:00
Blazzycrafter 0c44c5c281 add: de_DE translation credits (#52)
This commit adds the credit for Blazzycrafter, the contributor whom added German translations for ReZygisk WebUI.

Signed-off-by: Blazzycrafter <39300111+Blazzycrafter@users.noreply.github.com>
2024-11-12 00:17:36 -03:00
RainyXeon cd96363249 remove: test code 2024-11-12 00:17:35 -03:00