Home
last modified time | relevance | path

Searched refs:pw (Results 1 – 12 of 12) sorted by relevance

/system/extras/su/
Dsu.cpp30 struct passwd* pw = getpwnam(tok); in pwtoid() local
31 if (pw) { in pwtoid()
32 if (uid) *uid = pw->pw_uid; in pwtoid()
33 if (gid) *gid = pw->pw_gid; in pwtoid()
123 struct passwd* pw = getpwuid(uid); in main() local
124 if (pw) { in main()
125 setenv("LOGNAME", pw->pw_name, 1); in main()
126 setenv("USER", pw->pw_name, 1); in main()
/system/security/keystore/
Duser_state.cpp85 ResponseCode UserState::initialize(const android::String8& pw) { in initialize() argument
89 ResponseCode response = writeMasterKey(pw); in initialize()
139 ResponseCode UserState::writeMasterKey(const android::String8& pw) { in writeMasterKey() argument
141 generateKeyFromPassword(passwordKey, pw, mSalt); in writeMasterKey()
151 ResponseCode UserState::readMasterKey(const android::String8& pw) { in readMasterKey() argument
181 generateKeyFromPassword(passwordKey, pw, salt); in readMasterKey()
198 response = writeMasterKey(pw); in readMasterKey()
237 void UserState::generateKeyFromPassword(std::vector<uint8_t>& key, const android::String8& pw, in generateKeyFromPassword() argument
256 PKCS5_PBKDF2_HMAC(reinterpret_cast<const char*>(pw.string()), pw.length(), salt, saltSize, 8192, in generateKeyFromPassword()
Duser_state.h61 ResponseCode initialize(const android::String8& pw);
65 ResponseCode writeMasterKey(const android::String8& pw);
66 ResponseCode readMasterKey(const android::String8& pw);
84 void generateKeyFromPassword(std::vector<uint8_t>& key, const android::String8& pw,
DKeyStore.cpp81 ResponseCode KeyStore::initializeUser(const android::String8& pw, uid_t userId) { in initializeUser() argument
83 return userState->initialize(pw); in initializeUser()
92 ResponseCode KeyStore::writeMasterKey(const android::String8& pw, uid_t userId) { in writeMasterKey() argument
94 return userState->writeMasterKey(pw); in writeMasterKey()
97 ResponseCode KeyStore::readMasterKey(const android::String8& pw, uid_t userId) { in readMasterKey() argument
99 return userState->readMasterKey(pw); in readMasterKey()
DKeyStore.h104 ResponseCode initializeUser(const android::String8& pw, uid_t userId);
107 ResponseCode writeMasterKey(const android::String8& pw, uid_t userId);
108 ResponseCode readMasterKey(const android::String8& pw, uid_t userId);
Dkey_store_service.cpp439 Status KeyStoreService::unlock(int32_t userId, const String16& pw, int32_t* aidl_return) { in unlock() argument
463 const String8 password8(pw); in unlock()
/system/vold/
Dcryptfs.h62 int cryptfs_check_passwd(const char* pw);
63 int cryptfs_verify_passwd(const char* pw);
/system/teeui/tools/framebufferizer/src/com/android/framebufferizer/utils/
DConfig.java90 PrintWriter pw = new PrintWriter(file); in saveConfiguration() local
91 pw.write(jsonObject.toString()); in saveConfiguration()
92 pw.flush(); in saveConfiguration()
93 pw.close(); in saveConfiguration()
/system/core/run-as/
Drun-as.cpp264 passwd* pw = getpwuid(uid); in main() local
265 setenv("LOGNAME", pw->pw_name, 1); in main()
266 setenv("SHELL", pw->pw_shell, 1); in main()
267 setenv("USER", pw->pw_name, 1); in main()
/system/extras/runconuid/
Drunconuid.cpp90 struct passwd* pw; in lookup_uid() local
97 if ((pw = getpwnam(c)) != 0) { in lookup_uid()
98 return pw->pw_uid; in lookup_uid()
/system/core/adb/daemon/
Dshell_service.cpp256 passwd* pw = getpwuid(getuid()); in ForkAndExec() local
272 if (pw != nullptr) { in ForkAndExec()
273 env["HOME"] = pw->pw_dir; in ForkAndExec()
275 env["LOGNAME"] = pw->pw_name; in ForkAndExec()
276 env["SHELL"] = pw->pw_shell; in ForkAndExec()
278 env["USER"] = pw->pw_name; in ForkAndExec()
/system/timezone/input_data/android/
Dcountryzones.txt2602 isoCode:"pw"