Edit: Firstly, please follow the answer here. It offers an easier approach and is tested with Android 7.1.1.
Some users have reported that the following solution didn't work for Android Marshmallow and above. That may be so since I tested this with Android Lollipop and worked well on it.
Yes and No! It depends upon how you want to use this answer.
I still ...
For Android 8, 9, 10, and possibly for Nougat too I suppose, run:
adb shell am get-current-user # returns USER_ID of the foreground user
adb shell cmd activity get-current-user # alternative command
adb shell 'dumpsys activity | grep mCurrentUser'
You output would be:
0 is always the user Id for ...
Yes there is.
When the community discovered this feature in android 4.1 (the code was exist but has not been declared yet so Google did not open the feature in Settings), I remember playing with this in my Nexus 4.
So, here are some commands that I remember for the android Terminal:
Create new user: pm create-user User_Name
To switch between users: am ...
The Linux user IDs that Android uses to isolate apps from each other are completely unrelated to user profiles on Android 4.2 tablets.
In Android, each app gets its own directory for saving data. The Linux user ID system is used to make sure apps can't read each others' data. But all these data directories are inside one directory on the filesystem, /data/...
It might not always be possible to transfer data between multiple users/profiles. It depends on the Device/Work Policy Controller app, installed by you or your IT admin.
Android device can be managed in two ways: fully managed (which is setup at the time of first use or after factory reset on a company owned device) and work profiles (which can be added or ...
They are stored in
I've just created a restricted profile and it created a new folder in there with the name "10", the main admin users folder is "0". You should be able to copy the files into the relevant place within these folders to get mine craft to pick them up.
(This was done on the 2012 Nexus 7 but I don't think it will be any ...
In terminal emulator;
List users to get their ID. It's the first number listed, usually 11 for the first user. 0 is owner. Ie 11:user:10 & 0:owner:13
# pm list users
Stop the users execution instance (logoff)
# am stop-user <id>
Usually 'am stop-user 11'
You can't logoff the device owner, ID 0.
In a terminal app on Android, enter (requires root access) :
am stop-user USER_ID
E.g. For a Guest user, its USER_ID in my device is 11 so the command would be am stop-user 11.
am stop-user doesn't process multiple input so you've to execute the command for every secondary user which you want to pause.
This is bit different from restarting the ...
As of this moment, it is not possible to convert a user into a profile.
However, you could create a profile based on the existing user. Downside: Since a profile doesn't have a Google account tied to it, they can't have a GMail app. And as you have already mentioned, they would also lose those user-specific data.
UPDATE #1: From Android.com, it says that ...
I've checked on one of my devices, and as the comment chain already suspected, you don't need to worry about everyone having access to everybody elses data. First:
/storage/sdcard0 -> /storage/emulated/legacy
Which means, it's just a symlink which always points to the data of the current user:
/storage/emulated/legacy -> /mnt/shell/emulated/0
PRIVACY: ANDROID VS. *NIX:
Being protected has a very vast meaning, varying for persons and situations. Comparing Android with *NIX systems, admittedly the former offers more isolation between apps and a more fine-grained control over permissions. Quick examples:
On PC, user is trusting all the processes / apps running under same UID (...
Mention the specific user as an argument for which the package is to be installed. Example:
adb install --user UID YOUR_APK
adb shell pm install --user UID YOUR_APK # alternative command
UID for main/primary user is always 0.
Sidenote: in case of difficulty with an adb command, simply enter adb as the sole command. It would list help section.
It works in a very similar way to how one user's apps are isolated from each other. Whereas apps' private data used to be stored in /data/data, now it's stored in /data/users/n, where n is the ID of the user profile. Each user gets their own directory, and each app that user uses gets a directory within that. POSIX file system permissions protect the data ...
Yes, it is possible.
Need a File Manager w/Root
First, you need a file manager that has root access. Personally I use ES File Explorer. Within ES File Explorer, you will need to enable Root access (it's under the Tools part on the left menu).
All users will need to have signed in
All users must have had to signin at least once to create their ...
I think the first answer (by June Lau) misses the point - the question was about sharing files between different users on the SAME device. I have been using subdirectories that I created within android/obb with success. In my Nexus 7 tablet the exact path is /storage/emulated/0/Android/obb/. The issue is that the media browser does not see files in there, so ...
It is supported, but you must have rooted device.
Download file manager that allows root access(for example: ES File Explorer)
Navigate to /system/
Add these lines at the end of build.prop file:
Save and reboot device
If something went wrong, restore build.prop backuped version from recovery.
You can enable multiuser support without rooting the device by using ADB.
Enable debug mode (developer settings)
Connect the device via USB to a PC with ADB installed.
Execute these commands:
adb shell setprop fw.show_multiuserui 1
adb shell setprop fw.max_users 4
The settings might be lost after reboot. I'm sure it's possible to modify the build....
WHY IS ADB DENIED ACCESS TO MULTI-USER STORAGE?
Access to /storage/emulated/10 is denied from adb shell due to this change in Android 9:
Add "default_normal" support to vold.
This new flag isolates each user on a multi-user device for security reasons.
What the mount option default_normal does in sdcardfs is explained here:
The default_normal ...
In Android 4.2, only tablets support multiple user profiles, not phones. This means it's up to the manufacturer to enable multiple users when they set up Android for the device (what's called system integration). Since the Le Pan Mini is a tablet, they should have turned on this support. You should report this bug to the manufacturer (and let us know what ...
The second user will have to explicitly install the wanted app (in your example: Facebook) – as otherwise all accounts' app drawers would be cluttered with a bunch of apps not wanted by everybody, except for those who installed them. But if the app already had been installed before by another account, it will rather be a "fake install" (i.e. it appears as if ...
Shared apps are stored only once on the device (with just the data and settings part being specific for each user), so whenever one user decides to update a shared app, it gets updated for all users (Source: Heise.DE). As usual with some of the real important details (see: Google Backup), there are no details (or even manuals) describing exactly how it works....
On rooted system change in xml file for user in /data/system/users/ flags from 16 to 24
user id="11" serialNumber="13" flags="24" created="1373565328127" lastLoggedIn="1376779161829" icon="/data/system/users/11/photo.png"
Here are the constants https://android.googlesource.com/platform/frameworks/base.git/+/android-4.2.2_r1/core/java/android/...
The only way I found was to restart the device.
Be careful to not switch to other users after the restart. Once you switch to another user, his processes are initiated and continue working even if you switch back to your user - just like you said in the question.
Strange that Google haven't tackled this issue. Perhaps on a newer Android version 4.3+?
There are a few options available, but the effective ones I came up with will require root access. And the second option may require an unlocked bootloader (I'm not sure if the Note 2 can unlock its bootloader or not).
Even if you have the most recent version of Android, Google has not enabled multiple users for phones; they figure people share tablets, but ...
No. You can only do what you describe on Samsung devices with their "KNOX" feature. This uses special security hardware to provide separate, isolated environments on your phone, so there's no way that information can leak from the "business" environment to the "personal" environment. It's present on their high-end phones since the Galaxy S3, and you can ...
I have a Nexus 7 V2 and when you bring down the notification area there is a buton with you username on it and the picture you chose. When you click that button, it will bring you to the log in screen where you can switch users. Doing it this way does not end your session.
Some phones and tablets do not have the multiple user feature, which means that this feature is disabled by manufacturer. The feature can be enabled by installing "Multi Users for Phone" module on Xposed Framework, which needs root. This works for Tablets too, and works for Android 4.4.2 KitKat (I am not sure if it works on other versions).
Steps on how to ...