[Q] Scripting Application Install - Desire Q&A, Help & Troubleshooting

Hi all,
I am not sure if this is the right place or not but worth a shot. I am swapping between quite a few roms at the moment and each time I do, I need to reinstall lots of applications from the market.
Now I know how to install an APK using ADB over USB when I have the package file but what I am ideally after is slightly different that that as I do not have the APK available.
What I would like is a way to install an application via command line from the market. That command line can be directly on the phone using a terminal or via ADB shell.
Is it possible at all to install an application from the market via a terminal?
Thanks in advance.

Read this
http://developer.android.com/reference/android/content/Intent.html
Also read about am command. You will have to open up the Vending.apk, see the intent and action required, pass the app name. I can't be more specific.
This is an example
Code:
#!/system/bin/sh
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/system/lib
am start -a android.intent.action.SEND -d "Hello World" -t "text/plain"

Hi,
I don't know if what you're after is possible, but you can:
1) leave it to google - with the newer versions of market when you first configure your google account the market starts installing the apps registered under that account
2) use a backup/restore app as mybackup Pro or titanium backup, which allow you to backup or restore all the apps with a single click
Bye,
Ildanish
Sent from my HTC Desire using XDA App

The reason I am looking for an alternative to googles backup within android is that when I am rolling from one ROM to another, this restore does not always work. A price exmaple is Sandvolds ICS ROM. Each time there is a new releast, the restore fails to restore - hence looking for an alternative.
I have previously used Titanium backup but not with this use case. Maybe I will give it a try and see how it works in this sense...
As an alternative, I think I could script something with "android.intent.action." It probably requrires some interaction still but it would get to a more automated install situation than I have now.
Thanks for the input guys, I will see what milage I can get from this.

Related

[HOWTO] Install Latest WaveSecure in ROM

I found that [email protected]'s ROM had a good idea of adding WaveSecure to the system partition (preventing listing in the My Downloads part of market, and preventing uninstallation through normal means), but his version is slightly out of date now (latest version is 3.0.0.43)
As a result, I set about finding a means to install WaveSecure to ROM myself. Here are my findings for anyone interested in doing the same.
Install the latest version from the market (3.0.0.43 at this time). Now use adb pull to get it off the device onto your pc
Code:
adb pull /data/app/com.wsandroid.apk D:\com.wsandroid.apk
Now open Market back up from the menu, go to My Downloads, and choose Wavesecure Mobile Security Beta and uninstall it for just now (to get it off the data/A2SD location that normal apps are stored in) - thanks, my-space!
Then push the saved apk to the system partition after a remount (to make it read/write)
Code:
adb remount
Code:
adb push D:\com.wsandroid.apk /system/app/com.wsandroid.apk
Then set it all up as usual (will appear in apps list immediately)
and remount system as read only again
Code:
adb remount
And that seems to be it so far. Remember to change the D:\com.wsandroid.apk path to whatever you actually used.
Let me know if anyone finds any problems with this, but I've done it and, fingers crossed, it's worked OK for me.
Obviously, this is only for root users, and there are no guarantees for this.
Couple of questions that might need looked into -
- Do settings carry across after a wipe (as Paul claims Modaco's version does. I've never tried it so can't confirm)
- Is there any disadvantage to using this method? (I guess this is all Modaco's update.zip does, but I don't know)
you forgot to metion to uninstall wavesecure before it is pushed back into system....
my_space said:
you forgot to metion to uninstall wavesecure before it is pushed back into system....
Click to expand...
Click to collapse
Oops! Knew I'd forget something, as I always seem prone to do. Well spotted, and OP corrected.
Thanks
No worries I got a bit confused when i pushed it back onto the phone and was still in my downloads...
I've rooted my phone already but whenever i try to use the command adb remount I get "remount failed: operation not permitted". Suggestions?
I see more and more often, redundant threads.
What How-to will you post next time? How to change backlight settings?
You're pointlessly spamming the board.
I can't say i agree with the 'pointlessly spamming the board' comment, but i would have thought this would at least be better in the applications and themes subforum rather than in development.
Don't forget that an awful lot of android users (and more recently all HTC devices) are more and more 'newbs' and need stuff like this.
While this is good and provides info that people like that need (and myself cos i'm crap at adb and stuff like that so wouldn't have had a clue how to do this previously), maybe the development forum is not the best place for it....
I'm guessing one won't be notified via Market if there's an update available if you push an app to /system/app/, right?
usb0 said:
I'm guessing one won't be notified via Market if there's an update available if you push an app to /system/app/, right?
Click to expand...
Click to collapse
You won't be notified, correct
If anybody doesn't already know, WaveSecure have started hosting update.zip files. This means it's now easy to update your "baked-in" version of WaveSecure without much messing around.
https://www.wavesecure.com/installations/update.zip
Download the file, save it to your SD card, reboot into the recovery console and choose the option to apply an update.zip file.
Voila! Your version of WaveSecure will be updated to the very latest version
DJBenson said:
[...]
Click to expand...
Click to collapse
That's really awesome! Thanks for the tip!
Just a question of curiosity: If I push an app to /system/app/ and then issue the rm-command to remove its apk, won't there be lying a bunch of files associated with the program and with absolutely no function, since the app itself is removed? How do I know the name of these files and where they are located for removal?
I'm a bit confused by that question. My understanding (which may be incorrect but from what I've seen of the "guts of a ROM" appears to be the case) is that the applications reside in the apk files, they are not extracted. If you list the content of any of the app folders (/system/app, /data/app or /data/app-private) then all you get is a bunch of apk files (and some odex files). So when you 'push' an apk to the phone, that application is then "installed", when you rm/remove an application, you do so by removing the apk.
if you remove the apk you have left something in /data/dalvik-cache. wiping the dalvik-cache every now and then helps reclaiming that space, though it is not much.
the app settings and data are stored in /data/data, you could delete the files manually by checking their names (no idea if/what convention the names follow), imho not worth the trouble as it is only a few kb.
odex files aren't created if you don't do in a PITA process manually. don't worry about them, don't touch them, then you're good. odex files are only for system apps.
I bought a used phone and it had WaveSecure already installed. I couldn't find it in the applications list to uninstall, so I did a factory reset on the phone. The application was still there and it still didn't show up in the applications list.
I have the Superuser Permissions application, so someone must have rooted it.
Is there any way to uninstall this?
motomeup said:
I bought a used phone and it had WaveSecure already installed. I couldn't find it in the applications list to uninstall, so I did a factory reset on the phone. The application was still there and it still didn't show up in the applications list.
I have the Superuser Permissions application, so someone must have rooted it.
Is there any way to uninstall this?
Click to expand...
Click to collapse
""Just (re)flash a ROM................""
I just noticed that WaveSecure now points to this post for instructions to install as system application, and I am not sure that the update.zip maintained with them is up-to-date.
However, you can now select to download the .apk directly to your PC thus eliminating the first Market step in this guide.
strife242 said:
I just noticed that WaveSecure now points to this post for instructions to install as system application, and I am not sure that the update.zip maintained with them is up-to-date.
However, you can now select to download the .apk directly to your PC thus eliminating the first Market step in this guide.
Click to expand...
Click to collapse
I believe it is kept up to date, as VillainROM kitchen uses it as a source for the WaveSecure app (fetched each night to keep it up-to-date).
I've certainly never had any problems with it.
Excellent guide Pulser,... I should really reinstall Wavesecure now Im not using a MoDacO Custom ROM. Nice one bruv.
Found this to be helpful.
https://www.wavesecure.com/blog/how-to-make-wavesecure-hard-reset-proof.aspx
I just did a search in the Market fro 'wavesecure' and two things popped up WaveSecure and WaveSecure UninstallProtection Add-on which needs to be uninstalled before WaveSecure and if the add-on is uninstalled it is supposed to lock the phone. (all this is in the description I have yet to try)

Removing pre-installed applications (Bell HTC Desire Z)

Hi guys, Basically I'm sick of all the trialware that Bell has put on the thing and would like to get rid of it. I have root and root explorer installed. I don't really want to reflash my phone and follow the debranding procedure. So is there any way I can achieve this ?
I have tried deleting the .apk files from the system/app folder as well. The applications just reappear after a couple of minutes.
holycow123 said:
Hi guys, Basically I'm sick of all the trialware that Bell has put on the thing and would like to get rid of it. I have root and root explorer installed. I don't really want to reflash my phone and follow the debranding procedure. So is there any way I can achieve this ?
Click to expand...
Click to collapse
Pretty sure there are quite a few questions/guides about this out there already if you do a search...
In short, you can delete the appropriate APK from your /system/app directory (or use the "pm uninstall" command in terminal). Alternatively, you can simply disable the app with a "pm disable" command (see here: http://forum.xda-developers.com/showthread.php?t=809231). This is usually the safer route---disable the app, make sure your phone is still running properly, then uninstall it if you still want to. If you want a nicer interface for doing all this, you can download TitaniumBackup from the Market (I believe the free version allows both uninstalling and freezing/disabling apps).
ianmcquinn said:
Pretty sure there are quite a few questions/guides about this out there already if you do a search...
In short, you can delete the appropriate APK from your /system/app directory (or use the "pm uninstall" command in terminal). Alternatively, you can simply disable the app with a "pm disable" command (see here: http://forum.xda-developers.com/showthread.php?t=809231). This is usually the safer route---disable the app, make sure your phone is still running properly, then uninstall it if you still want to. If you want a nicer interface for doing all this, you can download TitaniumBackup from the Market (I believe the free version allows both uninstalling and freezing/disabling apps).
Click to expand...
Click to collapse
Uninstalling in Titanium Backup didn't work either. Freezing however did. I'll keep it this way till I put some Cyanogen magic on it. Thank you kind sir!
holycow123 said:
Uninstalling in Titanium Backup didn't work either. Freezing however did. I'll keep it this way till I put some Cyanogen magic on it. Thank you kind sir!
Click to expand...
Click to collapse
Interesting that Titanium Backup didn't work either (or that deleting the apk from /system/app failed as well). Be sure in your Titanium Backup preferences, you select "Chuck Norris" mode if you didn't already.

[Q] New to Android

Hi,
I just got my new SE Xperia Play phone and got it with android Gingerbread on it, I'm not completely familiar with this OS but following information that I've read I rooted my phone and it is working fine, I did this cause I read that by doing this I would be able to remove and add apps to my phone as I became a Super User on the Linux side of it. Now my questions is, How can I do this? I've tried to find like an step by step add and remove apps on my phone with no luck. Also I'd like to get some information on what can I do and what I can't (or shouldn't do) with my super user rights ( i found this but not sure how to add this titanium backup on my phone http://forum.xda-developers.com/showthread.php?t=1046699).
All help will be greatly appreciated.
Regards,
Btts.
you can delete any apps including system apps by using TITANIUM BACKUP.
once you've installed it and run it click on the backup/restore tab at the top then select whatever app you want to remove (system apps inluded) click that app and there will be an uninstall option.
BE CAREFUL WHAT YOU DELETE!
Hope this helps
You have to download Titanium Backup from the market
oh ok I get it, so it is available through the android market.. now that is for the Uninstall stuff part (thanks to both) now in order to get stuff installed into the phone is it there an option for that or can I do it using the linux terminal that is installed on the phone?
Thanks for all the help
OK, I have been where you are, and maybe this VERY brief summary will get you started.
1. Root - you did that.
2. Download and install the CWM for locked bootloaders from this link here.
3. Follow the instructions to power off, then power on and press down on the Volume Down key to enter the recovery mode. Then go to the Backup/Restore menu and backup the phone. This creates a Nandroid, or image of the phone so you can put it back to rooted stock if you mess something up.
4. Download and install Titanium Backup from the App Market. You can use this to uninstall any bloatware, including System files, but use with caution so you won't need to use your Nandroid! There is a safe list thread here that will give you some help in what you can remove.
5. Apps for Android usually come from the Android Market, or another market that hosts Android apps like Amazon AppMarket, etc. So any program you want to install will generally need to come from there. (Yes, I know there are some apps around that some Joe Ubertech wrote, but in general, you will want to get apps from the Market or a Vendor site, like Gameloft or EA.)
6. Use an App2SD program to move as many apps to your SD Card as are able to go. This frees up internal storage so you can run smoothly and have a lot of apps too. I like Droidsail Super App2SD (ROOT) because it lets you select a group of apps at one time to move. Do NOT move to SD any app that is accessed through a widget, or any replacement launcher program.
7. Be aware that Programs marked as System files cannot be moved to SD. However, some of them, like the preinstalled games, GMail, Youtube, etc, are also found in the Market. You can either delete them and reinstall them from the Market, or use a program like Root Explorer to manually move these to a folder on the SD card. Then reboot your phone, and you can reinstall them as user apps and be able to move them to SD as well.
8. Read. Read, read, read, READ everything you can get your hands on here in xda. It has been the best source of info for the Xperia Play.
I hope this helps you get going. Have fun, and if you run into trouble, someone here will usually be able to help you get going again.
Cheers!
netizenmt said:
OK, I have been where you are, and maybe this VERY brief summary will get you started.
1. Root - you did that.
2. Download and install the CWM for locked bootloaders from this link here.
3. Follow the instructions to power off, then power on and press down on the Volume Down key to enter the recovery mode. Then go to the Backup/Restore menu and backup the phone. This creates a Nandroid, or image of the phone so you can put it back to rooted stock if you mess something up.
4. Download and install Titanium Backup from the App Market. You can use this to uninstall any bloatware, including System files, but use with caution so you won't need to use your Nandroid! There is a safe list thread here that will give you some help in what you can remove.
5. Apps for Android usually come from the Android Market, or another market that hosts Android apps like Amazon AppMarket, etc. So any program you want to install will generally need to come from there. (Yes, I know there are some apps around that some Joe Ubertech wrote, but in general, you will want to get apps from the Market or a Vendor site, like Gameloft or EA.)
6. Use an App2SD program to move as many apps to your SD Card as are able to go. This frees up internal storage so you can run smoothly and have a lot of apps too. I like Droidsail Super App2SD (ROOT) because it lets you select a group of apps at one time to move. Do NOT move to SD any app that is accessed through a widget, or any replacement launcher program.
7. Be aware that Programs marked as System files cannot be moved to SD. However, some of them, like the preinstalled games, GMail, Youtube, etc, are also found in the Market. You can either delete them and reinstall them from the Market, or use a program like Root Explorer to manually move these to a folder on the SD card. Then reboot your phone, and you can reinstall them as user apps and be able to move them to SD as well.
8. Read. Read, read, read, READ everything you can get your hands on here in xda. It has been the best source of info for the Xperia Play.
I hope this helps you get going. Have fun, and if you run into trouble, someone here will usually be able to help you get going again.
Cheers!
Click to expand...
Click to collapse
awesome thanks for the information
Also, grab KeiranFTW's tweak package in the dev forum. Best thing you could do to your phone.
Sent from my R800x using xda premium
Trygon said:
Also, grab KeiranFTW's tweak package in the dev forum. Best thing you could do to your phone.
Click to expand...
Click to collapse
here's the link
http://forum.xda-developers.com/showthread.php?t=1385236
University of Pi said:
here's the link
http://forum.xda-developers.com/showthread.php?t=1385236
Click to expand...
Click to collapse
thanks for the info guys, now I'm working on my other phone the Xperia Arc ^^, if a moderator wants to close this thread is alright
thanks to all

[NTG][1.2]GlowNooter 1.12.25

This Nooter is officially supported by The Nooter Project for Nook Simple Touch​
I'm not adding certain things because I don't believe they should be available as part of a rooting kit designed to give users more control of their devices. Things such as additional readers or CPU Clocks are up to the user to install themselves and needlessly putting them in Nooter creates app bloat that a user may or may not want. You can always drop Apps you want into \nooter\data\app and they will install automatically when you root the device. This Nooter is designed with the sole purpose of opening up the possibilities of the device by giving users Root, Google Apps, and other Apps which make the device more usable as an android device than just an e-reader.
What it does:
Enables ADB via uRamdisk
Installs adbWireless
Installs Button Savior
Installs Amazon Marketplace
Installs su and Superuser.apk
Installs ADW + E-ink Friendly Theme
Installs Busybox & Busybox Installer/Uninstaller
Installs Gapps (Gmail, Market, Youtube, Others)
Installs NookColor Tools (To Enable Non-Market Installs)
System Files that get Modified:
/system/build.prop - Enabling Google Check In
packages.xml - Allows Gapps to install properly.
framework.jar - Should allow a proper Android ID to generate.
Changes:
May 26, 2012 - Initial Release
Before you begin:
You must already have a registered Nook Simple Touch Glow
You must have a Gmail/Youtube linked Account. IF you used a Gmail account for B&N Registration you should use that one for this process.
You must either have dd (Linux) or WinImage (Windows) software.
You must have an external microSDCard reader or this will not work. Using the Nook Simple Touch can result in it becoming unusable (bricked).
You must have enough intelligence to follow instructions.
Let's get started:
Download CWM from here: http://forum.xda-developers.com/attachment.php?attachmentid=806435&d=1323121399
Download TouchNooter from here: glownooter-1-12-25.zip - Uploaded
Download eded333's beta5-1XWUMFTouch-PART-2-END from here: http://nooter.googlecode.com/files/beta5-1XWUMFTouch-PART-2-END.zip
Unzip CWM and you'll find an image file you will then need to write this to an SD Card.
Linux: Unzip and use dd if=cwmimagename.img of=/dev/sdcard
Windows: Unzip and use WinImage to "Restore Virtual Hard Disk Image" to your SDcard.
Windows Alternative: https://launchpad.net/win32-image-writer/+download
Power off your Nook Simple Touch.
Insert TouchNooter SDcard into your Nook Simple Touch.
Power on your Nook Simple Touch.
User "n" to select, Left Buttons to go up in the menu, Right Buttons to go down in the menu, Power Button to go back.
Install from zip
Choose zip from sdcard
glownooter-1-5-26.zip
Click Yes and let Complete
Remove SD Card and press Power Button to go back one to main menu
Click Reboot
Upon boot unlock your screen.
At the Android Welcome Screen skip Sign In.
Enable Location Services when given the option.
Connect to Wifi and launch Youtube from ADW's App Drawer (Or the App Drawer of your Choice).
Click the Menu button (The right one in the middle of the status bar).
Select "My Channel" and Login using your Gmail Account.
Exit Youtube and Launch Gmail from ADW's App Drawer.
Sync your Gmail Account and Exit. (If it fails to sync that is fine.)
Power off your Nook Simple Touch.
Insert TouchNooter SDcard into your Nook Simple Touch.
Power on your Nook Simple Touch.
User "n" to select, Left Buttons to go up in the menu, Right Buttons to go down in the menu, Power Button to go back.
Install from zip
Choose zip from sdcard
beta5-1XWUMFTouch-PART-2-END.zip
Click Yes and let Complete
Remove SD Card and press Power Button to go back one to main menu
Click Reboot
Open up Market and Accept Terms and Service.
If you made it this far your nook should be successfully Rooted. Go Download an App to make sure.
Enable Non-Market Installs by running the NookColor Tools App.
If your Youtube fails to launch Uninstall and Reinstall Youtube from /data/app
Go to Settings > Device Info > SdCard > UnMount > Format
Thanks To:
mali100 - For porting CWM to Nook Simple Touch
eded333 - The second zip to fix Market Issues.
MrMuffin - For the original Market Hack that we're using.
If I'm using an app in TouchNooter and you would like Credit/Thanks, or to have it removed, please PM me, otherwise I might not see your requests
Currently Working On: Raspberry Pi Triple Boot System
It works!! Thank you thank you thank you thank you!
It works.
You couldn't have made me day any happier, Your hard work has given me a small tablet that I will use at work for keeping notes and recalling info. I'll be Joe cool with the info.
Thank you for all your hard work, I'll look in my couch and find something to donate.
Anyone experiencing problems accessing settings/screen to change the screesaver Folder?
Sent from my NOOK using xda premium
I have previously rooted using Roustabout's tinynoot. If I decide to do this Nooter, would I have to restore to stock first? (Haven't decided yet, pretty happy as is, but would like to know the options.)
Thanks,
Dude, nice job! Now to go buy a glowlight.
Hi,
Hmm, awesome =), just installed this on my Nook STR Glow.
Two questions
1. What's the best way to get Market searching enabled?
I've heard of installing SearchMarket - however, how do you do that? Do you just find the APK and install it manually?
2. Is it possible to install the Multitouch and NoRefresh patch from here?
http://forum.xda-developers.com/showthread.php?t=1568560
Or is the Glowlight version different enough that these won't work?
Cheers,
Victor
Anybody have trouble with getting the Opera Mini that comes with this to work? It doesn't even open for me. I installed Dolphin Mini and it seems to work ok but I'd like to get Opera working.
Multi-language root
This is great!
Is there a way to add menus and/or keyboard with another language?
xanadu1979 said:
Anybody have trouble with getting the Opera Mini that comes with this to work? It doesn't even open for me. I installed Dolphin Mini and it seems to work ok but I'd like to get Opera working.
Click to expand...
Click to collapse
Try opera mobile, not mini.
@glowco: I'm looking at GD's scripts and the tinynoot scripts right now.
It looks as if I used the same binary (despite the different name) for the
/system/app/Superuser piece (the file sizes and mod dates are identical.)
I used a different release of busybox, though. So the busybox my script installed would be overwritten by the glownoot busybox.
My advice is that if you want to get the google apps working, restore from a nonrooted backup and use this tool. I'm very likely to ignore my advice on my own device and see what happens, but today's not likely the day that's going to happen.
The line in glownooter that does the copy-in is:
package_extract_dir("system/xbin/", "/system/xbin/");
Unless the package_extract_dir command wipes a directory before copying in the file, you'd overwrite busybox at that step but leave the links to it. The links would probably continue to work but if there's an important difference between the two busyboxes, you might find it made trouble in a weird, random way long after you'd forgotten that you'd overlaid one root with another.
The busybox updater/manager might alleviate that issue - not sure what Ed's or GD's take on overlaying one root with another is.
Roustabout, thanks for your reply. I'm not rushing into anything, so if you do decide to try installing this over yours, let us know the results. (I tend to like the easier approach if it works okay.)
Maybe I should take this opportunity to ask an additional question: what will this root let me do that tinynoot didn't, other than run the Market? What additional apps would it allow me to run that would actually run well?
One app I have partially working on tinynoot is Jabiru, a jabber chat client. The basic chat connection works, but the Conference function crashes the session. I doubt this other root would make a difference in something like that?
Thanks.
I just did this and it works great. The only problem I have noticed is that when I am in gtalk and trying to chat I only see the top two rows of keys. Is anyone else getting this or know how to fix it?
Hi,
before to try rooting the nstglowlight, is it possible to make backup with noogie like the normal NST ?
Yes, you can and should boot from a noogie disk and make a whole-device backup before changing things up, just like with the NST.
Assuming that tinynoot used MinimalNooter as a basis for it's design (as is evident by the forum convo) then GlowNooter will run perfectly fine without any issues, however keep in mind that because the package names for files in GlowNooter in /data/app are likely to be different than those in tinynoot you'll end up with multiple copies of things like Amazon market, which doesn't actually affect performance, but can take up more space. So you have two options, the first is to do a fresh install onto a fresh NTG, or you can install this on top of tinynoot and go in and remove the excess files using Super Manager.
Aurtach said:
I just did this and it works great. The only problem I have noticed is that when I am in gtalk and trying to chat I only see the top two rows of keys. Is anyone else getting this or know how to fix it?
Click to expand...
Click to collapse
Using an alternative keyboard could fix it, the major issue is finding an alternative keyboard that is e-ink friendly. This tends to be broken in the app itself, because I have noticed the Google Voice app will do the same exact thing on nook devices.
glowco said:
Maybe I should take this opportunity to ask an additional question: what will this root let me do that tinynoot didn't, other than run the Market? What additional apps would it allow me to run that would actually run well?
One app I have partially working on tinynoot is Jabiru, a jabber chat client. The basic chat connection works, but the Conference function crashes the session. I doubt this other root would make a difference in something like that?
Thanks.
Click to expand...
Click to collapse
The difference between this and tinynoot IS the fact it has Market on it, you can actually go to google.com/play now and install apps to the device. Other than that there is no major difference.
Yeah, folks should understand what tinynoot grew out of: I wanted the smallest set of changes I could make to have a rooted NST usable by me. I almost didn't include the Amazon appstore, but then realized there were things I wanted from it and that it'd be more helpful to others if there was at least something
That's very bare-bones, because I don't use the NST for too much other than reading - I want an rss reader, a non-BN book reader and my contacts (via b-folders, rather than a google account,) and at that point I'm pretty much done. I often install what I want to a fresh device just using adb or pm from a commandline
Gabrial's trying to get the Google market working because so many folks really want it.
Also, I tested tinynoot against an NST last night and was able to root that using it, which is helpful to me.
That said, here are the files tinynoot copies in; it sounds as if the two rooting tools are compatible, which is helpful.
in system:
/system/xbin/busybox
/system/bin/su
/system/app/NookColorTools.apk
/system/app/com.noshufou.android.su.apk
and in /data/app:
ADW.Launcher_v1.3.6_Standalone.apk
Amazon_Appstore-2.1.0.apk
BusyBox_v7.3.apk
Button_Savior_v1.3.1.apk
NookTouchTools_v1.0-beta2.apk
Super_Manager_v2.6.0.apk
adbWireless_v1.4.1.apk
and that's that.

Backup & Restore Apps + Data of RESTRICTED Profile

Ok, so my tablet wouldn't install the latest JSS15J update. So I had to manually install it. In the process, it wiped out my entire tablet. I have a main profile and a restricted secondary profile (my son's. It's my son's tablet). How do I get all the apps + data backed up (from a restricted profile) and restored (to a restricted profile)?
I've tried Titanium Backup and MyBackupPro (both root). I got close a few times, but I CANNOT get the APK's + data off a restricted profile, flash the Nexus 7 upgrade, then install APK's + data again successfully.
If I use Titanium backup while logged into the main profile, it backup up the data from the main profile only. Nothing from the restricted profiles (game saves, settings, etc.)
I've spent the day trying to get this done! I've been going back and forth between NANDROID backups, trying different things.
i'm not sure, as i don't use profiles.
BUT, what I can suggest for the future is:
Create a new folder on your internal and call it R Tita. Backup [for giggles], then backup your sons apps to the second folder, keep yours in the original. Just before you restore, change the backup / restore folder appropriately.
teh roxxorz said:
i'm not sure, as i don't use profiles.
BUT, what I can suggest for the future is:
Create a new folder on your internal and call it R Tita. Backup [for giggles], then backup your sons apps to the second folder, keep yours in the original. Just before you restore, change the backup / restore folder appropriately.
Click to expand...
Click to collapse
I've tried that. I played around all day with it. You also can't easily move backup files from one place to the other. Then even when you do it (with Root Explorer), it still doesn't work for some reason. On top of everything else, it's hard to make backups as TB says there's no storage space left even though there's over 20GB. That's while trying to save it in all different place. Emulation 0, Emulation 10, legacy, Sdcard.... etc...
froggydoddy said:
I've tried that. I played around all day with it. You also can't easily move backup files from one place to the other. Then even when you do it (with Root Explorer), it still doesn't work for some reason. On top of everything else, it's hard to make backups as TB says there's no storage space left even though there's over 20GB. That's while trying to save it in all different place. Emulation 0, Emulation 10, legacy, Sdcard.... etc...
Click to expand...
Click to collapse
You should just do all the backups in the /storage/legacy directory.
Though I don't see any reason why TB should have issues restoring that, should work. Have you verified your backups are good within the app?
I wasn't even able to create the backup anywhere due to that "no storage" issue. Then finally when I was able to create one somehow, I wasn't able to restore from it.
I've emailed the makers of TB to ask if they are planning on adding that functionality (backing up restricted profiles)
Sent from my Nexus 7 using XDA Premium HD app
froggydoddy said:
I wasn't even able to create the backup anywhere due to that "no storage" issue. Then finally when I was able to create one somehow, I wasn't able to restore from it.
I've emailed the makers of TB to ask if they are planning on adding that functionality (backing up restricted profiles)
Sent from my Nexus 7 using XDA Premium HD app
Click to expand...
Click to collapse
What ever came of this? I too would like to know how to backup data from a restricted profile.
The apks aren't necessary, as the primary user is the one who's allowed to installed apps anyway, but the data itself is what's important.
Did the TB team ever respond to you?
bounti said:
What ever came of this? I too would like to know how to backup data from a restricted profile.
The apks aren't necessary, as the primary user is the one who's allowed to installed apps anyway, but the data itself is what's important.
Did the TB team ever respond to you?
Click to expand...
Click to collapse
I found a way to do it. It's not very easy, I'm afraid. You need root, busybox, and pretty good familiarity with the command line (adb shell or terminal emulator on the device itself. However with this much typing, I really recommend adb shell...)
App data for other than the main user is stored at
/data/user/XX/com.the.application/
where XX is a number. My restricted user was numbered "10".
so to backup, just make a tar archive of that directory:
Code:
cd /data/user/XX
tar cf /sdcard/whatevername.tar com.the.application
to restore,
Code:
cd /data/user/XX
tar xf /sdcard/whatevername.tar
but, this probably only works for the very same user, because the file ownerships need to match.
So if it's not the same user, you need to fix the ownership of the restored files, but not the "lib" symlink.
With the games (the different angry birds...) I cared about had the folders cache, databases, files and shared_prefs. If there are other folders, you need to need to include them too (I'm not sure what folders there can be).
So to fix the ownership of all those, before extracting the backup (the tar xf command), first see who the owner is:
Code:
cd /data/user/XX
ls -ld com.the.application
it says something like
Code:
drwxr-x--x u11_a89 u11_a89 2013-09-12 23:14 com.the.application
here the u11_a89 is the important value.
Then, do the above tar xf command, and run
Code:
cd /data/user/XX/com.the.application
chown uXX_aYY:uXX_aYY .
find cache databases files shared_prefs | xargs chown uXX_aYY:uXX_aYY
Where uXX_aYY obviously is the value the ls command showed before.
By the way, this way you can also copy data from one user to another, e.g. from the main user (who can use titanium backup etc) to the restricted user or the other way around.
Sorry if I'm not very clear.. maybe someone could make a more understandable guide from this.
Disclaimer: I tried this on a rooted stock 4.3 nexus 7 (2012). But I think it's the same on any android 4.3 based device. Also, I really only did this with the angry birds games, I don't know if other apps need other tricks. (well except Bad Piggies is different, the data is /sdcard/Android/data/com.rovio.BadPiggies, and it can be copied with a file manager, without root.)
Thanks. Based on this I wrote a perl script to fix up all the user/group names after restoring the entire data directory; you may need to change u11 to u10 or whatever the restricted user is on your tablet.
Code:
#! /usr/bin/perl -w
# Script to fix ownership of data directories on restore of Android
# restricted profile.
open (LS, "adb shell \"su -c 'ls -l /data/data'\" |") || die "Failed: $!\n";
while (<LS>) {
(undef, $owner, $group, undef, undef, $dir) = split(' ');
$owner =~ s/u0/u11/;
$group =~ s/u0/u11/;
system ("adb", "shell", "su -c \"cd data/user/11/$dir && find . \! -type l -print0 | xargs -t -0 chown $owner:$group\"");
}
froggydoddy said:
Ok, so my tablet wouldn't install the latest JSS15J update. So I had to manually install it. In the process, it wiped out my entire tablet. I have a main profile and a restricted secondary profile (my son's. It's my son's tablet). How do I get all the apps + data backed up (from a restricted profile) and restored (to a restricted profile)?
I've tried Titanium Backup and MyBackupPro (both root). I got close a few times, but I CANNOT get the APK's + data off a restricted profile, flash the Nexus 7 upgrade, then install APK's + data again successfully.
If I use Titanium backup while logged into the main profile, it backup up the data from the main profile only. Nothing from the restricted profiles (game saves, settings, etc.)
I've spent the day trying to get this done! I've been going back and forth between NANDROID backups, trying different things.
Click to expand...
Click to collapse
How did you get root to work on restricted profiles? In this mode, AFAIK root doesn't work.
EDIT: Just tried creating a restricted profile and assigned rooted apps like Titanium Backup - it complained no root was found, even though the tablet is rooted.
lanwarrior said:
How did you get root to work on restricted profiles? In this mode, AFAIK root doesn't work.
EDIT: Just tried creating a restricted profile and assigned rooted apps like Titanium Backup - it complained no root was found, even though the tablet is rooted.
Click to expand...
Click to collapse
I'm not sure if this works in a restricted user account. But to get TiB to work in a secondary user account, I had to go into the SuperUser app from the primary user account. Open the settings and select the "Wnable mult-user" checkbox. This is in Chainfire's Super User app. Not sure if other SU apps have this or not.
jicama said:
Thanks. Based on this I wrote a perl script to fix up all the user/group names after restoring the entire data directory; you may need to change u11 to u10 or whatever the restricted user is on your tablet.
Code:
#! /usr/bin/perl -w
# Script to fix ownership of data directories on restore of Android
# restricted profile.
open (LS, "adb shell \"su -c 'ls -l /data/data'\" |") || die "Failed: $!\n";
while (<LS>) {
(undef, $owner, $group, undef, undef, $dir) = split(' ');
$owner =~ s/u0/u11/;
$group =~ s/u0/u11/;
system ("adb", "shell", "su -c \"cd data/user/11/$dir && find . \! -type l -print0 | xargs -t -0 chown $owner:$group\"");
}
Click to expand...
Click to collapse
Just wanted to say your script worked wonderfully. Thanks. Unfortunately, though, Clash of Clans still opened up as if it were a new install . Anyway, good job!
hondoslack said:
Just wanted to say your script worked wonderfully. Thanks. Unfortunately, though, Clash of Clans still opened up as if it were a new install . Anyway, good job!
Click to expand...
Click to collapse
Perhaps Clash of Clans keeps its data on sdcard like Bad Piggies?
viljoviitanen said:
Perhaps Clash of Clans keeps its data on sdcard like Bad Piggies?
Click to expand...
Click to collapse
Yeah, I thought that too, but couldn't find it. I'll take another look when I get home, maybe I can find a definitive answer and post back.
hondoslack said:
Yeah, I thought that too, but couldn't find it. I'll take another look when I get home, maybe I can find a definitive answer and post back.
Click to expand...
Click to collapse
Did you find anything on this? I'm trying to backup CoC on a restricted profile as well.
Edit: found these instructions and they worked great! http://forum.xda-developers.com/showpost.php?p=51352083&postcount=4
Sorry, totally forgot to reply. IIRC, those were the exact same steps I ended up stumbling upon. Glad you found a solution.

Categories

Resources