RikkaApps / Sui

Modern super user interface implementation on Android.
GNU General Public License v3.0
2.65k stars 152 forks source link

Question about the goal of this project #1

Closed gtf35 closed 3 years ago

gtf35 commented 3 years ago

Root itself is a concept in Linux, coincidentally, Android is running on Linux.

The goal of this project is to replace the "su" executable and call for the root community to switch to the correct way.

The purpose of this project seems to be to call system APIs in an efficient way.

It is not related to su, no need to replace it.

The result is, everyone suffers from "su".

ใ€Œsuใ€ is very convenient in some simple scenarios, such as move or delete certain files, set permissions

By the way, this is a very interesting project, I love it. It can be of great help in complicated situations.๐Ÿ˜‰

RikkaW commented 3 years ago

All my views are from the perspective of developing an Android application that requires root, using "su" is indeed painful.

The "su" binary itself is also "just an interface", this project is to replace this interface, not the real thing behinds it.

For the user, nothing will change. There is already an API, IRemoteProcess newProcess(String[] cmd, String[] env, String dir), which allows the app to create a "shell". It is easy for the terminal app to switch to the new way. For using "su" in ADB, simply copy the original "su" file to somewhere like /data/local/tmp.

gtf35 commented 3 years ago

I feel that the description in the document is too extreme, but this situation does exist.

SU is really not suitable for Android, he is very suitable for Linux.

But like you said:

For using "su" in ADB, simply copy the original "su" file to somewhere like /data/local/tmp.

You are right, maybe my dissatisfaction will only be missed ๐Ÿ˜Š

RikkaW commented 3 years ago

It's not about the number of commands, many things are impossible with only commands. I noticed you have a project that uses app_process. Have you tried using system server APIs that involving binder? You should know it is impossible to use them with only commands.

So I don't think the document is extreme ๐Ÿ˜‹.

gtf35 commented 3 years ago

You are right, many things canโ€™t be done by commands, that is why I love this project so much.

When writing that project, I was inspired by this article to a large extent, but itโ€™s a pity that I couldnโ€™t finish it by binder at that time.

This is indeed the case, this project is great.

And the description of the document is appropriate.

Bye the way, when I see ใ€Œๅ่€ถใ€, I know the author is related to Rikka.

But unfortunately the link that says "ๅ่€ถ" at the beginning of the article cannot be opened

Only Chinese can express my feelings: ็œ‹ๅฎŒ้‚ฃ็ฏ‡ๆ–‡็ซ ๆˆ‘ๆปก่„‘ๅญ้ƒฝๆ˜ฏ๏ผšใ€Œๅ่€ถ๏ผŒๅ่€ถ๏ผŒๅ่€ถ๏ผŒๅ่€ถ...ใ€๏ผŒๅคช้ญ”ๆ€งไบ†ใ€‚ ๆ„Ÿ่ฐข Rikka ้กน็›ฎ็š„ๆฏไธชๆˆๅ‘˜๏ผŒๆไพ›ไบ†้‚ฃไนˆๅคšๅฎž็”จๅˆ้ป‘็ง‘ๆŠ€็š„็‚นๅญๅ’Œ่ดก็Œฎใ€‚ ๆ„Ÿ่ฐข Rikka ้กน็›ฎ้™ชไผดๆˆ‘่ตฐ่ฟ‡ๅ…ฅ้—จๅˆฐๆˆ็†Ÿใ€‚๐Ÿ˜˜

RikkaW commented 3 years ago

๐Ÿ˜‹