Does anyone get the error when trying to restore an app backup:
"For security your phone is set to block installation of applications not sourced in the Android Market?"
What am I doing wrong? I've rebooted many times thinking it would clear it up. Thanks.
Your phone needs to have side loading enabled. Follow the steps here any method will work
Also this post is in the wrong section it should be in the QA section of general.
chasesavestheday said:
Does anyone get the error when trying to restore an app backup:
"For security your phone is set to block installation of applications not sourced in the Android Market?"
What am I doing wrong? I've rebooted many times thinking it would clear it up. Thanks.
Click to expand...
Click to collapse
Did you enable Sideloading?
There's an alternative way that requires no monkeying around with the structure of your phone and a lot less software on your computer.
I backed up my apps with Titanium. It basically zips the .apk's into .tgz formats; mount your usb to the computer and browse to the Titanium directory. Copy the .tgz files to your desktop, and use Winrar (or similar) to extract the .tgz files. (Note: once you extract them, the .apk files don't have the .apk file extension. Rename the extracted files to add the .apk)
Use the Sideload Wonder Machine to reinstall your programs, gotten from here.
http://www.androidcentral.com/sideload-android-apps-all-you-want-sideload-wonder-machine
Worked very well for me. If anybody's interested in this method, I can do a more detailed tutorial.
jeromekobriger said:
There's an alternative way that requires no monkeying around with the structure of your phone and a lot less software on your computer.
I backed up my apps with Titanium. It basically zips the .apk's into .tgz formats; mount your usb to the computer and browse to the Titanium directory. Copy the .tgz files to your desktop, and use Winrar (or similar) to extract the .tgz files. (Note: once you extract them, the .apk files don't have the .apk file extension. Rename the extracted files to add the .apk)
Use the Sideload Wonder Machine to reinstall your programs, gotten from here.
http://www.androidcentral.com/sideload-android-apps-all-you-want-sideload-wonder-machine
Worked very well for me. If anybody's interested in this method, I can do a more detailed tutorial.
Click to expand...
Click to collapse
But if you follow the steps to enable sideloading then you won't have to jump through these hoops to restore a backup. Plus your way may or may not restore any data associated with the apps.
You are correct, it did not reinstall the data. I apologize for not mentioning it. The only reason I mention doing it this way is because any of the five steps mentioned in the sideloading post, while easy for quite a few people, are not necessarily newbie friendly. It indeed has the drawback of not copying all the data over, only the app, but it seemed to me that it might be a little less intimidating to some people.
Related
I want to make my own rom based on the cyanogen rom. I want to add a few apps and remove a few that already exist.
I have tried using the adb but it wont uninstall the ones I dont want.
I would like to mod a rom before I flash it, Is there a how to for this?
Thanks,
Dubstar_04
I dont think there's a how-to, but I can type a quick one in a jiffy;
Tools;
A computer (Windows PC in this example)
7zip (google it)
The rom you wish to modify.
Either JRE or JDK (so you can run java apps) (google it)
JF's testsign.jar (google it)
Method:
Install 7zip in your computer. Also install the Java runtimes so you can run java apps through the console (ahem, command prompt).
Unzip (if it's not already) your testsign.jar and place it somewhere easy on your HDD (C:\, for example, doesn't get easier than that). Also place the rom you wish to modify in the same folder.
Open the update.zip file (or whatever it's called) with 7zip (you can do this by either using the command dialog (right click) and selecting 7-zip > Open Archive, or by going right-click > Open With > Choose Default Program and select "Always open with this program" with 7zip FM (file manager)).
Once it's open, navigate to the folder system/app and remove in there any apks you don't want in there (for example, I always remove VoiceSearch.apk, VoiceDialer.apk, SystemUpdater.apk, Talk.apk, and when available, SpareParts.apk, com.mp3.amazon.apk, and a few others). That is basically the uninstall process. If you have the apks for the apps you wish to install, you can drag them into the 7z windows at this point too (if you have hboot spl, you have a lot of space in system, so dumping them here is safe). If you don't have the apks, but you have them installed in your phone, you can use adb to get them. Just make a folder in your desktop called app (or whatever you wish) and run adb with your working directory in the desktop (C:\users\myname\desktop). The adb command would be: adb pull data/app app. This will place all the contents of downloaded apps (free ones) inside the app folder in your desktop as apks. I don't know that there's anything you can do at this point about paid apps.
Anyway, once you're done deleting and adding apks to your zip. Close the 7zip window (it saves the changes automatically, you should have kept the window open through the whole process).
Open up the command prompt again, and change your working directory to C:\ (usually cd ../..), then, if you placed all like I told you to, you can just run; java testsign updatenamewhateveritis.zip
Ofcourse, replace updatenamewhateveritisi.zip with the name of the update, but I recomend renaming it to update.zip beforehand so you don't have to type a lot.
After it's done signing, the rom is ready to flash.
Good lucks to you
Wow...Good explanation.
I have few questions.
-Do i need the jar sign thing?
-Can I create a flasheable update.zip to "add/remove" apps to a fresh flashed rom? (I mean, flash a custom rom and then apply update.zip which can add and remove apk ), or do you recommend to modify the zipped rom instead of creating a update.zip ?
Many thanks
Depending on your recovery you can just toggle on/off if you need a signed zip or not. This is a very old thread and I imagine it was much harder to push apps into /system back then or to remove /system apps for that matter. With root access there are many apps you can do this with now, or with adb or terminal emulator
What is your purpose for this by the way? I feel there may be easier ways to accomplish what you're after
Sent from my GT-I9100 using xda premium
Thanks for answer
Yeah...it's and old thread, but actually it saved me to post a similar topic thread again :good:
My purpose? Not developing anything nor cooking rom. I just found at http://wiki.cyanogenmod.com/wiki/Barebones that i can safely uninstall apks that i don't use. So i uninstalled some of then, and i was thinking, in case of reinstalling the rom or flashing a new version of it, how to erase the unusefull apks(for me at least) in one step.
I think the easiest way is removing them from the zipped rom before flashing.
What do you think?
yes you can unzip and rome .apks, but then you will have to sign it unless your recovery allows unsigned zipps. why not flash the rom as is, remove all the unwanted, add what you like, then make a nandroid copy of the way you like it. this can then be flashed whenever
Sent from my HTC Vision using xda premium
Oh...the sign thing!
Anyway, there are few useless apks, so i think i can do it manually after flashing rom.
Hey. I'd like to know what nandroid is...
I use CWM recovery to backup/restore data/rom and I use Titanium Backup for the applications. So what the **** is nandroid. I mean, is an apk? Is a boot tool? And what can i do with it?
Thanks a lot dude!
it is the backup you make in your recovery, you will make either a nandroid backup or bart backup. depending how it is done it will be an exact copy of your rom, apps, call log, etc. any thing stored to you phone @ that "recovery" point
it gets its name from nand (the nand flash memory) and android, some recoveries may just call it a backup
Sent from my HTC Vision using xda premium
When I look in my sdcard, some of the apps that I've backed up end up as zip files. According to search, I should be able to just rename it from .zip to .apk
I did that, and tried to install, but it keeps giving me a warning that says this app cannot be installed on the phone.
Why? and how can I fix this so I can install these apps back?
Thanks
maybe because changing extension names on files makes them unstable. look in app private. im sure the zips came from the apps folder it happens like i said look in appsprivate folder
I installed this from the market on my legend rom. I have created a nandroid backup of that rom and I'm now rockin the nonsense rom from team-slide (great rom by the way!). However I'm trying to find this on the market now and it seems like it is nowhere to be found. I've tried a variation of searches with no luck. So I thought, well I'll just restore my legend rom backup and adb pull the file from there. It was located in the /data/app as a .zip file while the other apps were .apk. Anyhow I was able to pull the file and its now on my computer. I then did a restore to my nonsesnse rom but I'm unsure how to get the zip file back on the phone. I can adb push it on there but it doesn't 'install' it per sey. Any ideas on how to get this app back on the nonsense rom?
You can place the apk on the sd card and then on the phone you can use astro to install it. If that doesn't work you can connect to the pc and use the "adb install" command.
Sent from my HTC Mytouch 3G Slide using XDA App
Part of the problem is that I don't see an apk file. The file is actually .zip in the /data/app path. The other files in the /data/app path are .apk files. Am I missing something here or is the apk file in another path? When I unzip the file on my computer there are multiple folders. If I had the actual apk then I might be in business. Any suggenstions on where it might be hiding?
go to app private in the backup that u got the zip from there should b the apk
update - app private had the apk, installed and working fine, thanks for all the help. So is it safe to say if it is a zip file the apk will always appear in app private? Why make this different from the other apks? Is it just developer specific i guess?
If you're like me, you probably have installed a new ROM at least once a week. I usually use Titanium Backup to restore all my Apps, but it takes quite a long time since I use a lot of Apps. Also, if you don't have the Pro version of Titanium Backup, you will need to click through the Install button for every App you want to install.
This program is a simple way to fix that. What it does is it injects you Apps as part of the ROM when you install a new ROM. This way, as soon as you install your ROM, your Apps will already be installed as part of the ROM.
I have only tried this with the latest Team Whiskey Onyx ROM, but it should work with most, if not all ROMs.
Also, not all Apps can be installed this way, especially if you try to include the data. YMMV.
INSTRUCTIONS
Prepare your computer
1. Install Java JRE and SDK.
2. Install 7-Zip. It can be found here: http://www.7-zip.org/
3. Download Testsign.jar. It can be found here: http://www.robmcghee.com/android/creating-an-android-update-zip-package/. Download the file "Testsign.zip" and extract it. Testsign.jar should be in there. You will need this later.
4. Set up your windows Path Environment.
a. Go to your Control Panel and open "System."
b. For Windows 7, you will need to click on "Advanced System Settings."
c. Go to the "Advanced" tab.
d. Click on the "Environment Variables" button.
e. Under "System Variables" find "Path." Select it and click on the "Edit" button.
f. A window should pop up a field for "Variable value." In there, you will want to add your 7-Zip and Java SDK bin path. At the end of "Variable value," add (without the quotes)
";C:\Program Files (x86)\Java\jre6\bin;C:\Program Files\7-Zip"
It might be slightly different for you if you're not using a 64-bit Windows. Basically, this step is to allow you to run the Java and 7-Zip command-line tools from anywhere in your system.
5. Reboot your computer.
6. Test to make sure you can run the Java tools and 7-Zip tools. Do this by running "cmd." A command-line prompt should appear. In there, type "java" and hit enter. The usage info for running java should appear. Now type "7z" and hit enter. The usage info for 7-Zip should appear. Your computer is now set up to run my batch file.
Prepare your Apps
WARNING: Not all Apps work using this method, and not all data can be restored using this method. If it doesn't work, you can restore it using Titanium Backup and it should work fine. Once you find that a certain App doesn't work, you should probably remove it from your App/Data folder (read below) so it doesn't install next time using this method.
1. Get all your APKs and data. The easiest way I know how to do this is by using Titanium Backup to make a backup of all my Apps.
2. Use Titanium Backup and back up your Apps.
3. Inside your SD Card, you should have a TitaniumBackup folder. All your Apps and data are in here. Every App you have backed up in Titanium should have 3 files. A .properties file, a apk.gz file, and a tar.gz file. The apk.gz file will contain your APK. The tar.gz file will contain your data. You can extract these files using something like WinRAR.
4. Extract your APKs and put them in a folder called "data\app". Extract your App's data and put them in a folder called "data\data". Your "data\data" should look something like this "data\data\com.appname".
5. Once this is complete, you can use this APK/data set for any future ROMs.
Create your ROM with your Apps
1. Put AppToROM.bat, testsign.jar, your data folder, and your ROM's zip into the same folder.
2. Drag your ROM's zip onto AppToROM.bat.
3. The batch file will now start creating your new ROM for you. It will do the following steps:
a. Extract your ROM.
b. Copy your data to the extracted ROM folder.
c. Zip everything back up.
d. Sign the new Zip.
4. When everything is done, you should have a "NewROM.zip" file. Use this new Zip file to install your ROM like you normally would.
Disclaimer:
I take no responsibility for any harm that this may do to your device. All of the tools here, except the bat file, I did not write. I just created a bat file that puts all the tools together to make it easier to install your Apps after installing a new ROM.
or you could just open your update.zip and place your apks in system/app re-zip and flash. Done this multiple times and it works. just need to keep a copy of your apks on your computer. ill try this method tonight. thanks
If you put it into "system/app" it will install it as a System app, and I believe you can't uninstall it regularly (kind of like how you can't install the bloatware). You will need to use Titanium Backup to uninstall it.
Also, I remember reading that some people were not able to install the ROMs after zipping it up because it's not signed.
This script is very simple. It basically just unzips the ROM, copies over your apps, zips back the ROM, and then signs it. Once you have your Windows set up, you can just drag and drop the ROM to the .bat file and it'll do all that for you.
Is this useless? Maybe. But, the same could be said for something like RyanZA's OCLF. You can sit there, type in all the commands to convert to EXT2, wait for it to convert, and reboot, or you can just run OCLF (which is basically just running a script for the conversion, to put it simply).
blackerwater said:
or you could just open your update.zip and place your apks in system/app re-zip and flash.
Click to expand...
Click to collapse
Why not just put them into data/app instead?
or you could just...
Or you could just download a pro version of titanium backup so that it can restore all your apps without you needing to click. There are plenty to be found online. The latest version, the better, as it would be more stable with froyo
So doing things this way... since it will be signed, i can also take other things out form other roms that i like and toss them in this rom??
I have titanium paid version. Just run it and it does everything
Sent from my SGH-T959 using XDA App
Dude it's called WinRAR. Open up the zip. Drop your apps into the data/app folder.
Then flash it. Simple.
Want certain apps to stay even after hard resetting? put them in system/app
This tool is completely unnecessary.
That's really a good idea. I like the method very much, it give me more free time to do some other things when flashing...Thanks !
Anderdroid said:
Dude it's called WinRAR. Open up the zip. Drop your apps into the data/app folder.
Then flash it. Simple.
Want certain apps to stay even after hard resetting? put them in system/app
This tool is completely unnecessary.
Click to expand...
Click to collapse
Ditto. This seems way more complicated then the method I've been using. You say it's simple that there are like 20 steps.
yeah and CWM has the option to toggle signature verification.. so you can flash unsigned apps on the vibrant.. but if you use 7zip it doesnt mess with the sig...
epakrat75 said:
Why not just put them into data/app instead?
Click to expand...
Click to collapse
Or that should work. And as for signing problems I us ubuntu and ive never had that happen but I guess with windows anything is possible.
Sent from my vibrant
Etrnaly said:
If you put it into "system/app" it will install it as a System app, and I believe you can't uninstall it regularly (kind of like how you can't install the bloatware). You will need to use Titanium Backup to uninstall it.
Click to expand...
Click to collapse
$adb shell
$su
#rm /system/app/CrappyBloatwareAppOfChoice.apk
Done.
No need for titanium.
Sorry for the noob question
Anderdroid said:
Dude it's called WinRAR. Open up the zip. Drop your apps into the data/app folder.
Then flash it. Simple.
Want certain apps to stay even after hard resetting? put them in system/app
This tool is completely unnecessary.
Click to expand...
Click to collapse
When you say your apps do you mean your .apks thanks
Hi all!
I've been tinkering with rom changes recently,
and I find it a bit fraustraring to restore all my apps semi-manually
(using titanium backup),
I noticed titanium has the option to create a "update.zip" file
but it's discribed as an option to install titanium itself,
I know there is a manual way to make a directory tree and place the right files in the right places and all, but I'm not a progremmer, I have no idea what files go where in android (I barely have a clue where they go in ms-windows).
Is there an automated way to batch up all my apps with their data into one file?
It would be possible I'm guessing, however its not as simple as putting the folder structure / apps in a zip. You have to write a updater-script so that CWM can install the files.
This tutorial should help you out, and explains the commands that can be used.
http://forum.xda-developers.com/showthread.php?t=994940