Android's standard shell in how the kernel is not complete account management, and there is no / etc / passwd, through experience I know there are root and system Androd two users (of course there are others), it is how to manage it?
Management does not say, view the current user is not correct to say the following:
Sincere advice.
2013-11-04 supplement:
find the answer, there is no / etc / passwd file , I added this file, add the following on it:
root :: 0:0: root :/ :/ bin / sh
ftp::14:50:FTP User :/ var / ftp:
bin: *: 1:1: bin :/ bin:
daemon: *: 2:2: daemon :/ sbin:
nobody: *: 99:99: Nobody :/:
plg: $ 1 $ wwtsqwnk $ sWaEJGcJFTqaCW18sbUK7 /: 500:500: Linux User,,, :/ home / pl
whoami command to read the file. Android file system does not have the file / etc / passwd, it does not need to use this file.
These are hypothetical reasoning, the following is the http://android.stackexchange.com/questions/2974/what-is-the-default-android-root-password found a better explanation:
root in Linux (or any Unix-like system) is just the user with User ID 0. The su program (which actually stands for "Switch User", not "Super User") is just a program to start another program with a different user ID than the starting program (by default to uid 0, which is to user root). Android does not use the traditional / etc / passwd, however it still uses Linux User ID and Group ID for managing permissions.
If you want to intercept su requests so you can ask for password or enforce other rules, you will need to replace / sbin / su with your own version of su Alternative approach is the one described here:. Http://www.koushikdutta. com/2008/11/fixing-su-security-hole-on-modified.html though that will require applications to cooperate by firing an Intent when they want to switch user.
Android security framework is more or less like this: each installed application runs on its own User ID (selected at installation time), and application permissions is implemented as user groups
.
Can i change the root password after rooting my android device by simply typing "passwd"?
Android does not use / etc / passwd so it also does not have passwd program.
how is the rooting process working? i mean what is the "one click root" apps doing to my phone?
I'm not quire sure with the exact process myself, you probably want to ask to rooting developers. However, my guess is it just reverts the security check that originally prevent developer from setuid 0.
And im a developer, so how can i find hidden APIs (like iOS) for rooted app development?
Since Android is open source, there is no truly hidden API in Android. However, there are some unpublicized or undocumented APIs, you can browse for this in Android's source code. However, these APIs are not about root developments, they're usually in -development APIs that are not ready yet or is too localized for specific purpose that is not useful for public developer (or perhaps Google just haven't realized their usefulness yet). You are not restricted from using these APIs, but since these are not an officially supported APIs, they may disappear or break backward compatibilities in the future. If you need to use these APIs make sure your app breaks gracefully.<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
This problem is also prepared to let me do a no-answer statement posted?
There are no user is the root file system and the relationship between the user but also the level of user space, Android root file system does not need, nor do, do not do it.
There are questions about the opportunity to go abroad website.
No comments:
Post a Comment