2

I have the Nexus 7, and I just updated to 4.3, and I'm creating restricted profiles for my kids. They use to play in my main profile, and they progressed a lot in several games and, when they access their new user, they have to start over. Is there anyway to migrate the application data from my main user to the restricted users? I'm not rooted. Tks

1

Had the same problem with my kids profile. Finally solved, but it required root grants!

This is what I did:

  1. close all running [app] instances.
  2. from command prompt start ADB shell:

    c:> adb shell

  3. switch to root user (your device must be rooted):

    shell> su

  4. go to in target profile directory:

    root> cd /data/user/[profile_user_id]

    For example: profile_user_id==10 for first restricted profile.

  5. rename directory (to have a back up copy)

    root> mv [app_dir] [app_dir].old

  6. copy app data from main profile (id=0) to new profile:

    root> cp -r /data/user/0/[app_dir] .

  7. change owner for files just copied:

    root> find [app_dir] | xargs chown [app_user]:[app_group]

  8. restart device (not sure if it is really needed).

Hope this helps.

  • I'd just make a small adjustment to Tonto|One's answer: use "cp -a" rather than "cp -r". This preserves symlinks (typically to a lib directory) and avoids the need for the chown step. – Jason Merrill Sep 15 '13 at 20:28
  • chown is required to set the owner to the new user. Also, there's a -R (recursive) option so running find isn't necessary. chown -R [app_user]:[app_group] [app_dir] (ls -l [app_dir] to know what they are before step 5) – Ricky Beam Mar 7 '15 at 6:15

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.