Android guest accounts introduced by Lollipop are pretty good. If you aren’t aware, multi-user accounts let you maintain separate profiles on your Android phone or tablet. This is great for anyone who is sharing an Android with someone. However, if you are serious about privacy and data security, you must be annoyed.
Unlike a desktop, a phone is a very personal device, the idea of a group-owned mobile is completely absurd. Naturally, people started to look for ways to remove this feature completely, and it turned out, the process was really simple. No rooting is required!
Files you need
ADB and fastboot tools
Appropriate USB drivers for your device.
To Remove Guest User Icon from Quick Settings
1. Go to Settings > About Phone, tap on build number 7 times, until Developer Options are unlocked.
2. Go back and tap Developer Options. There enable USB debugging and OEM Unlock.
3. Now return to main Settings page once more and open Users.
4. Make sure there is no second user account on your device.
5. Connect your device to your PC via a USB cable.
6. Now open a terminal window in your PC and type in the following command:
adb shell settings put global guest_user_enable
7.Reboot your device.
Disabling Guest User Option in Settings
We need to access android build properties located in the /system directory. You cannot access this location through your normal file explorer here’s the way!
You need your bootloader unlocked. Also, it is necessary to boot into a custom recovery, TWRP.
1. Hold down the device specific correct key combination to boot into recovery.
2. Select Mount, and then select the System partition.
3. Go back to the main screen.
4. Connect your device to your PC via a USB cable.
5. Open a terminal in your PC, and type the following command:
adb pull /system/build.prop
6. The build.prop file will appear on your Desktop.
7. Edit the file (the exact modifications are described later), and save without renaming the file.
8. To push back the modified file, type the following command in your terminal:
adb push build.prop /system/
9. Next, you need to grant proper permissions for your file by typing the following commands:
adb shell cd system chmod 644 build.prop
10. Reboot your device.
Hide users in settings
At the end of the build.prop file, create a new line and type:
This command will still allow you to switch between users through ADB shell. Go to /data/system/users/ directory to obtain all existing user IDs. Connect your device to your PC via a USB cable and open a terminal window on your PC.
To switch between users, type:
adb shell am switch-user USERID
(replace USERID with the actual user ID obtained from data/system/users).
To create a new user, type:
adb shell pm create-user USERID (replace USERID with the actual username).
To remove an existing user, type:
adb shell pm remove-user USERID
To restrict the total number of Users to one:
At the end of the build.prop file, add a new line and type:
This will also remove the Users option from Settings menu.