[Q] Error when flashing - Galaxy S II Q&A, Help & Troubleshooting

I'm not sure if this was asked before but, if so, please take your trolling elsewhere. Whenever I download a custom rom I always try to customize it to my needs, like remove apps I don't think are needed and add apps I want to be installed at the time of flashing. However, after I unziz the rom, remove/add the files, rezip and try to flash I ALWAYS get an 'Instillation Aborted' error. I just want to know if there are steps I'm missing when putting the file together that's causing it to be corrupted or something? :S

I believe there's a script in the zip that would need altering if you add/takeaway files, someone correct me if im wrong. Otherwise i'd do that after installing the rom with titanium backup.

frigers said:
I'm not sure if this was asked before but, if so, please take your trolling elsewhere. Whenever I download a custom rom I always try to customize it to my needs, like remove apps I don't think are needed and add apps I want to be installed at the time of flashing. However, after I unziz the rom, remove/add the files, rezip and try to flash I ALWAYS get an 'Instillation Aborted' error. I just want to know if there are steps I'm missing when putting the file together that's causing it to be corrupted or something? :S
Click to expand...
Click to collapse
Just use program 7zip to "open" archive. Delete from within and save on exit.
Do NOT "extract" or unzip.
Sent from my GT-I9100 using xda premium

Oh ok. I think the unzipping was my problem. Thank you. Hope this helps someone

No worries, if it works, just hit thanks when you have time. Happy flashing
Sent from my GT-I9100 using xda premium

Related

--(Tool)-- CustomSuperZipBuilder/Batch apk installer. Please post your requests.

Ok I'm building this out some more. I added to the bottom of this post with future changes and am asking for requests of what the community wants in a this. Please read entire op. It's not that long yet..... Yet. Lol. It will be I forgot to nab a couple for changelog. I will get on Ubuntu and format this for the site but I'm on tapatalk til that happens.
So..
How many times have you flashed a new ROM or an update and had to go through the hassle of reinstalling or restoring all your must have apps? I usually have about 60 to 80 apps that I was installing/restoring with titanium backup. It's a pain. You gotta sign into Google and go DL titanium backup or whatever app you use. Wait while it installs all your apps. That, I guess, is if you have TiBu pro, if not its one by one. A painstaking process to say the least.
Well I was sick of it so I did something about it. I made a flashable zip you can add your apps to and flash from recovery to bulk install as many apps as you like all at once.
Here is a simple but endlessly useful tool I whiped up. What this allows the user to do is take any amount of apk files that you want (granted you have enough room) and restore them in a painless onetime flash from recovery.
Simple to use. Just follow this quick guide to get started.
Step 1. Download the file at the bottom of this post. Save it to your SD card wherever you can remember where it is.
Step 2. Using root explorer extract the zip folder to wherever you want to, I recomend makeing a temp folder to work in.
Step 3. Using root explorer or astro file manager navigate to your data/app folder.
Step 4. Start a multiple selection and choose all apps that you would like from your data/app folder to be automatically flashed back to your device next time you need to do so.
Step 5 COPY don't MOVE your selections to the data/app folder of the bulk-installerV1 that you extracted earlier.
Step 5.5 At this time if you have other apks you want to use that are not in there already now is your chance to get them in there as well.
Step 6. Rezip with root explorer or astro. And if you so choose rename the zip to update.zip and place on the root of your sd card. Or leave the original name if you prefer.
That's all, now next time you flash a new ROM or wipe your data and want your base apps back all you need to do is flash it from recovery. Or if you renamed it to update.zip and put in sdcard root you can choose apply sdcard update.zip and it will do it thing.
I have tested this on my evo3d and it works great, I wrote it on my phone with root explorers file editor so I made sure to test it with both twrp and cwm5.
***Disclaimer***
As always if it makes your phone do crazy things or kicks your dog. Or steals your wallet. Well that sucks. Sorry.
***Disclaimer***
If you find it useful remember to hit the thanks button.
Hope you all enjoy it, and I hope it makes life a bit easier for you all.
Download link.
https://www.dropbox.com/s/nwodh0grer1rdhf/bulk-installerV1.zip
FAQ..
alammori said:
Does that restore your apps and data or just the apps?
Click to expand...
Click to collapse
No it will not save data of any sort. Next version I will see about writing some more to the updater to be able to add data to. That's more reading. This is my first albiet simple script, and ill add to it for sure. However you can put TiBu in the update folder and when you boot up it'll be a few seconds extra to restore just data for certain apps instead of the whole app.
Update...
I'm working on building my "superzip". I will update the op when I get there.
But expected additions are..
Incorporate init.d path for custom scripts.
system/app option.
Cleanup after flash (cache and dalvik)
Path for themes, add what you want.
Two versions also, one with system tweaks from our awesome devs. I'm currently building it and asking permissions to bake in stuff from certain developers and various mods and tweaks from various developers on xda. I want to add the stuff. But further, I would ask everyone what tweaks they might want written in. Please throw stuff out and ill get to putting this together.
Till then.
Sent from my PG86100 using Tapatalk
nice bro ill have to give this a shot......
i was just thinking about this. this is really the only reason i'm not more flash happy. going through the hassle of restoring my apps has been the main reason i havent been trying out all the evo 3d roms lately. i will definitely give this a try. thank you.
Awesome!
Now if you could create something similar that would place all of my non-Sense Widgets back on my homescreens in their proper places I would be your friend forever
Thanks man I have been using it LOL I just rewrite the update script to show what it was and who made it. Decided to share it. I hope people find it useful
Sent from my PG86100 using Tapatalk
mitchellvii said:
Awesome!
Now if you could create something similar that would place all of my non-Sense Widgets back on my homescreens in their proper places I would be your friend forever
Click to expand...
Click to collapse
I wish I new where to even start on that LOL. Sorry
Sent from my PG86100 using Tapatalk
Thanks. Downloading now and will give it a try my next flash : )
Does that restore your apps and data or just the apps?
alammori said:
Does that restore your apps and data or just the apps?
Click to expand...
Click to collapse
Added a FAQ section to OP the answer is there.
Once you use this respond with your thoughts guys. Much appreciated.
Sent from my PG86100 using Tapatalk
Awesome, thanks for this. Seems to be the simplest way of restoring apps. My girlfriend on the other hand does not appreciate it bc your feeding my flashing addiction lol
I think i will create two of them, one for Sense roms and the other for AOSP. =)
I use the same setup for both but all my apps are pretty much compatible with both sense and aosp. Remember no data goes just fresh apps on a fresh ROM. Simple and as custom as you make it.
Sent from my PG86100 using Tapatalk
mikedavis120 said:
I use the same setup for both but all my apps are pretty much compatible with both sense and aosp. Remember no data goes just fresh apps on a fresh ROM. Simple and as custom as you make it.
Sent from my PG86100 using Tapatalk
Click to expand...
Click to collapse
I tend to use a lot more apks on aosp because of theme builder themes, go launcher and go sms themes, and certain apps to replace sense widgets.
It worked beautifully. Thanks. That temp file is still in the extracted section of root explorer. So in the future as I am adding more apps can I just put them in there and rezip? also I renamed the temp file to update and I had to flash it. Thats not a problem but it sounded like changing the name to update would give an easier way to install. How does that work? Either way I'll be using this from now on. It kind of reminds me of the sashimi days( I think that is what it was called) from windows mobile
mjcole2003 said:
It worked beautifully. Thanks. That temp file is still in the extracted section of root explorer. So in the future as I am adding more apps can I just put them in there and rezip? also I renamed the temp file to update and I had to flash it. Thats not a problem but it sounded like changing the name to update would give an easier way to install. How does that work? Either way I'll be using this from now on. It kind of reminds me of the sashimi days( I think that is what it was called) from windows mobile
Click to expand...
Click to collapse
That's what I usually do. Just keep a working directory going. Glad it worked for you.
Sent from my PG86100 using Tapatalk
DL link not working... thx !
vizionforever said:
DL link not working... thx !
Click to expand...
Click to collapse
Second thing I've tried to download from dropbox and it said 404. May be dropbox.
Sent from my PG86100 using Tapatalk
vizionforever said:
DL link not working... thx !
Click to expand...
Click to collapse
speedracerbubba said:
Second thing I've tried to download from dropbox and it said 404. May be dropbox.
Sent from my PG86100 using Tapatalk
Click to expand...
Click to collapse
here you go:
I actually did this with a gapps flashable... Remived all google apps and added root explorer and TiBu...
Sent from my PG86100 using xda premium
MFD00M said:
Awesome, thanks for this. Seems to be the simplest way of restoring apps. My girlfriend on the other hand does not appreciate it bc your feeding my flashing addiction lol
I think i will create two of them, one for Sense roms and the other for AOSP. =)
Click to expand...
Click to collapse
The simplest way is just restoring the data partition from recovery. It restores both the apps and the associated data, so you don't lose anything.
btw, nice work, just not for me, too much work for such little return.
mikedavis120 said:
Ok I'm building this out some more. I added to the bottom of this post with future changes and am asking for requests of what the community wants in a this. Please read entire op. It's not that long yet..... Yet. Lol. It will be I forgot to nab a couple for changelog. I will get on Ubuntu and format this for the site but I'm on tapatalk til that happens.
So..
How many times have you flashed a new ROM or an update and had to go through the hassle of reinstalling or restoring all your must have apps? I usually have about 60 to 80 apps that I was installing/restoring with titanium backup. It's a pain. You gotta sign into Google and go DL titanium backup or whatever app you use. Wait while it installs all your apps. That, I guess, is if you have TiBu pro, if not its one by one. A painstaking process to say the least.
Well I was sick of it so I did something about it. I made a flashable zip you can add your apps to and flash from recovery to bulk install as many apps as you like all at once.
Here is a simple but endlessly useful tool I whiped up. What this allows the user to do is take any amount of apk files that you want (granted you have enough room) and restore them in a painless onetime flash from recovery.
Simple to use. Just follow this quick guide to get started.
Step 1. Download the file at the bottom of this post. Save it to your SD card wherever you can remember where it is.
Step 2. Using root explorer extract the zip folder to wherever you want to, I recomend makeing a temp folder to work in.
Step 3. Using root explorer or astro file manager navigate to your data/app folder.
Step 4. Start a multiple selection and choose all apps that you would like from your data/app folder to be automatically flashed back to your device next time you need to do so.
Step 5 COPY don't MOVE your selections to the data/app folder of the bulk-installerV1 that you extracted earlier.
Step 5.5 At this time if you have other apks you want to use that are not in there already now is your chance to get them in there as well.
Step 6. Rezip with root explorer or astro. And if you so choose rename the zip to update.zip and place on the root of your sd card. Or leave the original name if you prefer.
That's all, now next time you flash a new ROM or wipe your data and want your base apps back all you need to do is flash it from recovery. Or if you renamed it to update.zip and put in sdcard root you can choose apply sdcard update.zip and it will do it thing.
I have tested this on my evo3d and it works great, I wrote it on my phone with root explorers file editor so I made sure to test it with both twrp and cwm5.
***Disclaimer***
As always if it makes your phone do crazy things or kicks your dog. Or steals your wallet. Well that sucks. Sorry.
***Disclaimer***
If you find it useful remember to hit the thanks button.
Hope you all enjoy it, and I hope it makes life a bit easier for you all.
Download link.
https://www.dropbox.com/s/nwodh0grer1rdhf/bulk-installerV1.zip
FAQ..
No it will not save data of any sort. Next version I will see about writing some more to the updater to be able to add data to. That's more reading. This is my first albiet simple script, and ill add to it for sure. However you can put TiBu in the update folder and when you boot up it'll be a few seconds extra to restore just data for certain apps instead of the whole app.
Update...
I'm working on building my "superzip". I will update the op when I get there.
But expected additions are..
Incorporate init.d path for custom scripts.
system/app option.
Cleanup after flash (cache and dalvik)
Path for themes, add what you want.
Two versions also, one with system tweaks from our awesome devs. I'm currently building it and asking permissions to bake in stuff from certain developers and various mods and tweaks from various developers on xda. I want to add the stuff. But further, I would ask everyone what tweaks they might want written in. Please throw stuff out and ill get to putting this together.
Till then.
Sent from my PG86100 using Tapatalk
Click to expand...
Click to collapse
the link down bro

[Q] RingtonePicker.apk

I did something stupid...
I deleted the Ringtonepicker.apk out of my root. So now when i go into the settings and try to change my rintone or notification via the sound tab, i get a force close.
Can anyone upload that .apk for me or point me to it?
Thanks guys.
PS. Just registered here.
meme405 said:
I did something stupid...
I deleted the Ringtonepicker.apk out of my root. So now when i go into the settings and try to change my rintone or notification via the sound tab, i get a force close.
Can anyone upload that .apk for me or point me to it?
Thanks guys.
PS. Just registered here.
Click to expand...
Click to collapse
Just flash a stock sprint ROM and you'll have it back.
Twolazyg said:
Just flash a stock sprint ROM and you'll have it back.
Click to expand...
Click to collapse
Im running a custom rom, KingCobra 1.7 (Im a Rogers GSM user). And i rather not go through the process as i just got my phone setup how i like.
is there no way of getting the .apk back?
Please anyone with root, just go into /system/app and grab the ringtonepicker.apk
and upload that file.
This would seriously help me out....
meme405 said:
Please anyone with root, just go into /system/app and grab the ringtonepicker.apk
and upload that file.
This would seriously help me out....
Click to expand...
Click to collapse
FYI...just do a dirty flash - re-flash the rom with just a cache/dalvik clear. you won't have to set everything back up.
Modified the rom and i dont have the file i flashed again. I really just need that ringtonepicker.apk.
There is a method to my madness. If all else fails i will just reflash kingcobra 1.7 and re-do my mods, but its such a simple .apk replace that i cant believe nobody can do it.
Im about to flash an old nandroid just to pull that .apk, then reload my current backup just to put in that .apk.
But if someone could just up that file it would save me some hassle.
meme405 said:
Modified the rom and i dont have the file i flashed again. I really just need that ringtonepicker.apk.
There is a method to my madness. If all else fails i will just reflash kingcobra 1.7 and re-do my mods, but its such a simple .apk replace that i cant believe nobody can do it.
Im about to flash an old nandroid just to pull that .apk, then reload my current backup just to put in that .apk.
But if someone could just up that file it would save me some hassle.
Click to expand...
Click to collapse
Sorry, but I am on CDMA so I would think the apk would be different for GSM. Here are the ringtone apks - just not sure if they will work on GSM.
meme405 said:
Modified the rom and i dont have the file i flashed again. I really just need that ringtonepicker.apk.
There is a method to my madness. If all else fails i will just reflash kingcobra 1.7 and re-do my mods, but its such a simple .apk replace that i cant believe nobody can do it.
Im about to flash an old nandroid just to pull that .apk, then reload my current backup just to put in that .apk.
But if someone could just up that file it would save me some hassle.
Click to expand...
Click to collapse
Redownload the ROM you have, pull the ringtonepicker.apk out of the ROM. You've been told how to do it 4 times, I can't believe you can't do it.
We aren't here to do the work for you bud..

[Q] Editing Gapps

Hey guys im flashing joker's cm9 beta. With this you have to flash gapps. This is all working great with no complaints. However, I was wondering how I would edit the gapps file to so that I can add in some apps that I like to use ie Titanium back up, root explore....
I have tried unzipping the file and adding in the the apps to the /system/app folder. However after flashing the gapps while the app is there it will crash when i try to run it. If install from the apk over it, then the programs work fine.
Thanks for the help!
Bit_Reaper said:
Hey guys im flashing joker's cm9 beta. With this you have to flash gapps. This is all working great with no complaints. However, I was wondering how I would edit the gapps file to so that I can add in some apps that I like to use ie Titanium back up, root explore....
I have tried unzipping the file and adding in the the apps to the /system/app folder. However after flashing the gapps while the app is there it will crash when i try to run it. If install from the apk over it, then the programs work fine.
Thanks for the help!
Click to expand...
Click to collapse
There will have to be some codework done in order for it to actually install, you cant just toss some apks in there. AFAIK atleast.. I personally would just backup all your apps with TI and then all you have to do is install TI and restore them all. Its how I personally do it. If your hellbent on having them there on your first flash you *might* be able to put them in the /system/apps folder of the actual rom before flashing. Not 100% sure that'd do the trick but ive installed a few apps that way myself.
w0lf215 said:
There will have to be some codework done in order for it to actually install, you cant just toss some apks in there. AFAIK atleast.. I personally would just backup all your apps with TI and then all you have to do is install TI and restore them all. Its how I personally do it. If your hellbent on having them there on your first flash you *might* be able to put them in the /system/apps folder of the actual rom before flashing. Not 100% sure that'd do the trick but ive installed a few apps that way myself.
Click to expand...
Click to collapse
Edit: I tried this but with no luck. I even tried rebooting to see if that would help and it did not. Does anyone know of a guide how to create gapps or how to edit a build of one?
Yeah, that's what I have been doing with TI. It would just be faster if it was already there and I wouldn't have to navigate to it. Install and then have it install all my apps. I will try putting the apps in the rom and see if that works. I was hoping there was some tutorial on how to make your own gapps or how to edit an existing one. It would have been awesome if there was a program that made the gapps for you haha.
I'd like to know as well. I am about to try the rom thing myself, but it would be quite handy to add into the gapps file and use it instead of the rom, then I could switch roms and still have gapps file with my chosen installs without having to adjust each rom file and just adjusting a single file for all.
update:
I tried adding apps to the rom zip file and for whatever reason I can't add to it. I can remove from it, just not add to it.
That happens with certain zips. Extract the zip, add in the files you want and zip it again at the root folder level (select all the folders and send to compressed zip folder in Windows). That's how I always do it to avoid errors if I want to add anything to a zip.
Take a look here to learn how to make your own flashable zips - http://forum.xda-developers.com/showthread.php?p=31624265
Sent from my Desire HD using xda premium
easyrider77 said:
I'd like to know as well. I am about to try the rom thing myself, but it would be quite handy to add into the gapps file and use it instead of the rom, then I could switch roms and still have gapps file with my chosen installs without having to adjust each rom file and just adjusting a single file for all.
update:
I tried adding apps to the rom zip file and for whatever reason I can't add to it. I can remove from it, just not add to it.
Click to expand...
Click to collapse
All you have to do is open it with 7zip. Youll be able to drag/drop as you please.
Sent from my MB855 using xda premium

Deleted Phone.apk

I deleted my the Phone.apk file on my rooted Galaxy Player 4.0 (YP-G1CWY/XAA) running the stock rom awhile back to save on battery life.
I have done the same thing on my Nook Color, and figured that it wouldn't cause any problems, as the Player isnt a phone.
Recently tried to record some video, and found I was unable to do so. After doing some research I found out that deleting phone.apk causes the stock camera app, but not 3rd party camera apps, to stop functioning.
While I was sure to backup the file when I originally deleted the file, the backup has been lost in the intervening months.
Do I just need to find a specific phone.apk file for my device and return it to the correct directory?
I assume a factory reset will solve the problem, but I would rather not try that unless I have to.
Thanks!
a factory reset will not solve the problem, since it was a system .apk it will reset everything except for that particular apk.
heet1 said:
a factory reset will not solve the problem, since it was a system .apk it will reset everything except for that particular apk.
Click to expand...
Click to collapse
In which case do I need to track down a copy of that specific apk or will I need to download odin and perform a full recovery?
put back the phone.apk file back on your device. Go to a ROM(best if its that ROM you are using) Find the phone.apk, and take it out. Then transfer it into your device, and use Root Explorer or something and put back phone.apk.
i dont think that will work because i uninstalled the screencapture.apk from my 5.0 and i backed it up so i tried to reinstal and it would not let me... but try aznflawless' way first if not you may want to flash a stock based rom...
heet1 said:
i dont think that will work because i uninstalled the screencapture.apk from my 5.0 and i backed it up so i tried to reinstal and it would not let me... but try aznflawless' way first if not you may want to flash a stock based rom...
Click to expand...
Click to collapse
I put screencapture.apk from stock rom 2 chip rom because it was missing and worked normaly..just copy it 2 root/system/app ..dont install it.
Sent from my GT-I9000 using XDA
aznflawless said:
put back the phone.apk file back on your device. Go to a ROM(best if its that ROM you are using) Find the phone.apk, and take it out. Then transfer it into your device, and use Root Explorer or something and put back phone.apk.
Click to expand...
Click to collapse
This seemed to work for me!
I tried looking in various roms before, but they were all formatted for flashing with odin.
I should have just went straight for the cwm package. *slaps forehead*
Thanks so much!
i shall try that sir thanks
As others said... find the phone.apk... preferably from the same rom you are using... use RootExplorer and copy the phone.apk to the system/apps folder. Change the permissions to match the other apps in that folder... reboot and you are good to go.
For your future reference, it is not a good idea to delete system apps without knowing what they actually do... I think you made a real good guess since phone.apk should not be on a device that is actually not a phone by function. For example, the Android Market app is actually called phonesky.apk or vendor.apk... nothing like what you would normally guess it to be, such as market.apk or something to that matter. So if I were you and I wanted to keep using my device and not brick it, I would becareful what I delete out of /system and it's sub folders...
Good luck...
Try to reinstall your custom rom!!
OrglCe said:
Try to reinstall your custom rom!!
Click to expand...
Click to collapse
this is a thread from august of 2012. please dont go digging through old threads and posting on them

I should HANG myself for this question BUTT.....

is there a way to rename a nandroid back up?
if you are using CWM u can do with a file explorer, navigate to clockworkmod/backup/name folder of what u want, no spaces, u can use . though. or with TWRP u can do it before you do the backup on the right where it says rename backup.
robwscott83 said:
is there a way to rename a nandroid back up?
Click to expand...
Click to collapse
I have ended up with MD5 mismatch far too many times renaming CWM backups, I tend these days to place the backup itself into another folder and title that, tends to save the risk of a very irritating error.
TWRP is pretty badass in that it allows you to title your own backups before you even start the backup process. Much more organized of a way to do it if ya ask me.
When naming a backup avoid special characters, period's etc. -_ are OK. Absolutely no spaces. Follow those rules and your fine. To answer op, grab your favorite file explorer (I prefer Root explorer) and rename it under clockwork/backup.
Synergy-I535
thanks for all of the replies guys... I got it... should have known this I guess... just wasn't something I ever really needed to do but now with all the great roms out there for the note... its hard to settle on one.. so organizing my Nbackups is important... thanks guys really appreciate it and love this community! cheers
celkin said:
I have ended up with MD5 mismatch far too many times renaming CWM backups, I tend these days to place the backup itself into another folder and title that, tends to save the risk of a very irritating error.
TWRP is pretty badass in that it allows you to title your own backups before you even start the backup process. Much more organized of a way to do it if ya ask me.
Click to expand...
Click to collapse
this is the correct method...IMHO.:good:
I've renamed mine countless times with no spaces... no problems at all.
you could just make a folder with the name you like, and move the backup to that folder, avoiding the chance of a mismatched checksum.
Twrp is really easy to use
Sent from my SAMSUNG-SGH-I717 using xda app-developers app

Categories

Resources