How to Disable Guest Account Feature on Android

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!

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!

Using ADB

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:

fw.show_multiuserui=0

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.