0

I'm using CyanogenMod 12.0. I have installed Titanium Backup in primary user account. I have an another user. I tend to let the other user have apps like Facebook, WhatsApp, some games, etc., while letting the owner for maintenance of the device.

The owner has root access while the other user doesn't, so I can't use Titanium Backup as the other but I need to make backups of the other user's apps. Titanium Backup only lists the apps installed under the primary user account.

So, how to make backup of apps installed in a secondary user account, using Titanium Backup?

Note

I know there exists other backup options but I want to use Titanium Backup (one day or another I'll have to).

If there are other ways besides "using SuperSU instead" I'd appreciate it.

  • Can CM's root option not be enabled for secondary accounts? – Matthew Read Mar 9 '16 at 23:09
  • @MatthewRead sorry But I didn't find anything like that in the settings, All what I found is Developer Options -> Root access where I can disable it completely or allow only ADB or allow only apps or both. – niceman Mar 10 '16 at 10:32
0

I messed up somewhere with multi-user functionality of my Android 5.0 ROM and because of that the following method was tested only on stock Android 6.0.1.

The owner has root access while the other user doesn't So I can't use titanium as the other but I need to make backups of the other user's apps. (sic)

SuperSU supports multi-user functionality. In its settings you would find the option Enable multi-user under the section Security. Enable it. When you would attempt to enable it, SuperSU would show a dialog stating that all users need to have SuperSU installed in their account and the way to go is to have SuperSU installed as a system app.

Make SuperSU app accessible through every user account

It's very simple to do using ES File Explorer. Copy the apk of SuperSU into /system/app/, reboot and you're done making it a system app.

Alternatively, you can setup in PC and execute this command:

adb install -r FILE   # replace FILE with file path of latest and stable SuperSU apk downloaded in your PC

-r would (re)install the app in all the user accounts.

If you've a terminal emulator app and apk available under /sdcard, then you can execute this command:

pm install -r FILE  # replace FILE with file path of SuperSU apk wherever it is available in /sdcard

Do the same with Titanium Backup app's apk as well, or alternatively, you can always go into that secondary account and side load the app (I doubt whether a secondary user is allowed to do that).

Protect SuperSU from unauthorized access

Protect your SuperSU app with a PIN code so that nobody can grant root access to any app without entering that code. You need to set PIN code in SuperSU when you're logged in as the owner. The PIN code would apply on all user sessions.

You can set PIN code from settings of SuperSU app. It is available under Security section.

This would cause some (major) inconvenience to you since even when logged in as the owner in primary account, if an app demands root access you would be given the option to grant the access only when you enter that PIN code. That's the price you've to pay.

Set Default access to Prompt in secondary accounts

In the SuperSU app of your secondary account(s), make sure the Default access type is set to Prompt only.

Time to launch Titanium Backup in secondary account. Titanium Backup would look for root rights and you would be shown a window by SuperSu to provide PIN code. Provide it, grant root access and that's all to be done for setup.

  • /data/media/ID - the absolute location of disk space meant for media storage for a particular user. – Firelord Mar 9 '16 at 20:05
  • I forgot to mention something. Either ask that other user to make backups or do it yourself but there is no way to backup user apps of a secondary user when logged in as a primary user in Titanium Backup. – Firelord Mar 9 '16 at 20:12
  • Do I have to replace the su binary ? – niceman Mar 10 '16 at 10:35
  • I don't understand what you're asking. I didn't recommend anywhere to change su so how did that query came up? I assumed that you are using SuperSU as your primary superuser manager. Was my assumption wrong? – Firelord Mar 10 '16 at 10:37
  • I'm using su binary coming with cyanogenmod not supersu – niceman Mar 10 '16 at 11:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.