|
|
@ -37,6 +37,7 @@
|
|
|
|
#include <openssl/md5.h>
|
|
|
|
#include <openssl/md5.h>
|
|
|
|
|
|
|
|
|
|
|
|
#include <android-base/logging.h>
|
|
|
|
#include <android-base/logging.h>
|
|
|
|
|
|
|
|
#include <android-base/parseint.h>
|
|
|
|
#include <android-base/stringprintf.h>
|
|
|
|
#include <android-base/stringprintf.h>
|
|
|
|
#include <cutils/fs.h>
|
|
|
|
#include <cutils/fs.h>
|
|
|
|
#include <cutils/log.h>
|
|
|
|
#include <cutils/log.h>
|
|
|
@ -596,6 +597,10 @@ int VolumeManager::remountUid(uid_t uid, const std::string& mode) {
|
|
|
|
|
|
|
|
|
|
|
|
// Poke through all running PIDs look for apps running as UID
|
|
|
|
// Poke through all running PIDs look for apps running as UID
|
|
|
|
while ((de = readdir(dir))) {
|
|
|
|
while ((de = readdir(dir))) {
|
|
|
|
|
|
|
|
pid_t pid;
|
|
|
|
|
|
|
|
if (de->d_type != DT_DIR) continue;
|
|
|
|
|
|
|
|
if (!android::base::ParseInt(de->d_name, &pid)) continue;
|
|
|
|
|
|
|
|
|
|
|
|
pidFd = -1;
|
|
|
|
pidFd = -1;
|
|
|
|
nsFd = -1;
|
|
|
|
nsFd = -1;
|
|
|
|
|
|
|
|
|
|
|
|