Okay... here is the situation. I see a ROM, looks nice but has a couple of apps I don't really care for. If I were to delete some of the .apks from the data/app folder contained within the .zip file would flashing this slightly altered ROM cause any issues during flashing?
Should that be the case then another question to ask on the same page is what if I were to drop some other .apk's in that folder?
Is it safe to do any this?
Yea as long as you use clockwork as a recovery u can flash unsigned zips. If not then best bet is to flash a signed zip and then hack the app out with adb or root explorer.
Please refer to the cyanogenmod wiki on barebones. It tells u what's ok to remove and what's not.
htc vision
Excellent, thank you for the info... so clockworkmod allows for such... excellent... thanks!
Related
hey does anyone know how to make a update.zip for a apk???
you need to create an update-script that basically tells the flashing app where the file of your apk goes in the live system.
zip and sign and you're done.
if your next question is "how do I write an update-script" I would suggest you download any of the roms available, extract their script and have a look at it.
its quite basic, not much more difficult than writing a batch file on DOS.
there are a couple of threads that give a few pointers as well but they are somewhere in xda, not necessarily in the nexus section.
search for update-script and you'll see.
nmesisca said:
you need to create an update-script that basically tells the flashing app where the file of your apk goes in the live system.
zip and sign and you're done.
if your next question is "how do I write an update-script" I would suggest you download any of the roms available, extract their script and have a look at it.
its quite basic, not much more difficult than writing a batch file on DOS.
there are a couple of threads that give a few pointers as well but they are somewhere in xda, not necessarily in the nexus section.
search for update-script and you'll see.
Click to expand...
Click to collapse
thanks mam ill give it a try
Remove the .txt extension or use the META-INF folder in the .zip that already has the same update-script in it or finally, you can use the empty update.zip which already has all the components in it, you just need to add your .apk's and .jar's to it.
This is a basic update script that works well for themes (or at least for me it does). In your .zip have META-INF (for the update-script) folder (take one from a ROM or theme) and an app and a framework folder and it will work.
Hey all, I'm currently in RA after flashing the recovery image , and I'm trying to install the FRESH rom on there but for some reason when I try to "Flash zip from sdcard" it's telling me "No zip files found." Why is that? I have the whole zip folder placed in the main SD card, so why is it telling me it's not found?
BOOGIE_BOTZ said:
Hey all, I'm currently in RA after flashing the recovery image , and I'm trying to install the FRESH rom on there but for some reason when I try to "Flash zip from sdcard" it's telling me "No zip files found." Why is that? I have the whole zip folder placed in the main SD card, so why is it telling me it's not found?
Click to expand...
Click to collapse
I responded to you on http://GeekFor.Me, but the reason is because RA looks in the root of sdcard, the zips can't be inside of any folders.
So does that mean I have to take out all the individual files and place them directly into the root of the sdcard? Because I just basically copied the download folder and dropped it into the root. Thanks for the reply
BOOGIE_BOTZ said:
So does that mean I have to take out all the individual files and place them directly into the root of the sdcard? Because I just basically copied the download folder and dropped it into the root. Thanks for the reply
Click to expand...
Click to collapse
You need to leave the files in a .zip, but yea that zip needs to be on the root of the sdcard.
The only file you need to install the rom is fresh-cdma-hero-20d.zip (for fresh rom 2.0d). Any other zips are just addons or tweaks or whatever they may be.
flipzmode said:
You need to leave the files in a .zip, but yea that zip needs to be on the root of the sdcard.
The only file you need to install the rom is fresh-cdma-hero-20d.zip (for fresh rom 2.0d). Any other zips are just addons or tweaks or whatever they may be.
Click to expand...
Click to collapse
Hmm, I'm on a Mac and maybe it's me but the link I download from gives me an actual folder rather than a zip. And when I rename the folder to a zip, it gives an error. Is there a mirror link to download an actual zip folder?
Boogie when you download it dont opening after it finishes downloading .. just use the finder to navigate to where its at and then copy that to your sd .. when you open it on a mac it will automatically create the extracted folder .. hope this helps ...
Sounds like your using Safari to download it. To make this easier in the future go to Safari > Preferences > General and make sure that "Open safe files after downloading" is NOT check-marked.
Safari is unpacking the zip file for you. The file you want is in your trash bin, drag it to the root of your SD card and that's it..
Ok I'm gonna give it another go. Since I made it all the way through to the RA stage, there's no reason I shouldn't be able to flash the rom is there?
Thanks for all the help everyone I finally got it to flash the FRESH rom, but once I rebooted it, it's still in the "HTC" branded screen. Is it loading? It's not going anywhere but this screen, although I know it's doing something because the animation shine is moving.
BOOGIE_BOTZ said:
Thanks for all the help everyone I finally got it to flash the FRESH rom, but once I rebooted it, it's still in the "HTC" branded screen. Is it loading? It's not going anywhere but this screen, although I know it's doing something because the animation shine is moving.
Click to expand...
Click to collapse
After flashing a new ROM, it can take up to 10 minutes or so to load.
Nice Everything is all good! Now my last question is how do I get the removed apps from the ROM back onto here? I actually prefer to have some of those programs back onto the phone.
BOOGIE_BOTZ said:
Nice Everything is all good! Now my last question is how do I get the removed apps from the ROM back onto here? I actually prefer to have some of those programs back onto the phone.
Click to expand...
Click to collapse
There is a link in the release notes to download all the removed apk's from Fresh Rom. You will then need to use adb push to push them back to /system/app. Search for how to setup adb on a mac as I honestly don't know.
I've done a bit of searching and haven't managed to find the answer(s) I'm looking for. There are a few decent ROM's around here but nothing specific to what I want as an end result. The ROM's seem to come in ZIP files and open fine in WinRAR. Can I use WinRAR to delete apk files that I don't want to install and still end up with a file safe to flash in Clockwork Recovery? Thanks in advance!
yes you can. But dont extract the zip file (the rom), double click on it, system>app, and then delete what you want I let you here this site for you to see witch apk you can remove/uninstall :
http://wiki.cyanogenmod.com/index.php?title=Barebones
(from cyanogenmod but the same roms are practilly the same)
Thanks! That makes life so much simpler than reading about this Kitchen stuff and such when I just simply want to remove what I consider useless.
i have tried to modify the froyobylaszlo by removing a couple of system/app
and put my own apps
after that i tried to flash it but i had some errors im not familiar with
hope someone could help me out
im attaching the recovery.log files
EDIT: btw im a complete idiot hahaha... im just starting out
marchking said:
i have tried to modify the froyobylaszlo by removing a couple of system/app
and put my own apps
after that i tried to flash it but i had some errors im not familiar with
hope someone could help me out
im attaching the recovery.log files
EDIT: btw im a complete idiot hahaha... im just starting out
Click to expand...
Click to collapse
which apps did u place in system apps?
did u remove the apps fromm data/app as well?
maximo360 said:
which apps did u place in system apps?
did u remove the apps fromm data/app as well?
Click to expand...
Click to collapse
yeah i think only 1 app is there in data/app = gallery i think i removed that thinking that it was the gallery3d
i changed the launcher and a couple of things in the system/app
are there limitations of which apps that i could put there...
btw is it ok if i change the updater-script to update-script?
or i shouldnt have change that... the kitchen was requesting to change it
hey if you are only removing some apk's you dont need kitchen.. just unzip file.. take out what you want than re-zip and than Sign it! should be able to flash no problem
marchking said:
yeah i think only 1 app is there in data/app = gallery i think i removed that thinking that it was the gallery3d
i changed the launcher and a couple of things in the system/app
are there limitations of which apps that i could put there...
btw is it ok if i change the updater-script to update-script?
or i shouldnt have change that... the kitchen was requesting to change it
Click to expand...
Click to collapse
You should just do what LDrifta said if your still having problems.
OH and regarding the update-script, heres your answer straight from the op of the kitchen:
QUESTION: Why do I need to convert the ROM's updater-script to an update-script when using the kitchen?
The kitchen can only perform operations on an update-script. UpdateR-scripts are too complicated to check because there are so many combinations of parameters for every command and for different devices; plus they can be written in different formatting styles. Thus the kitchen converts them to update-script so that there is one universal method to modify any device's configuration. If we didn't convert the updater-script then it would take months of work to overhaul the dozens of scripts (plus doubling my work) to accept updater-scripts, which would really NOT make a difference in the end anyway and would likely slow down the kitchen due to extra checks made in the updater-script. So please do not request this again and again, there is no gain in doing it (I also don't have that much free time ...).
When you build the ROM you have the option of converting it back to an updater-script, or the kitchen will convert it automatically if it decides it's necessary. The conversion back to the original updater-script is near-perfect, as I have already spent months on the implementation to get it right.
QUESTION: I have converted my update-script to an updater-script, but after flashing I still have the original ROM on the device.
That means your updater-script did not have the proper mount points defined for the system (and/or data) partition. Refer to this post for more info.
QUESTION: My device only supports ROMs with the updater-script/update-binary files but not the update-script
If you extract a ROM that contains an updater-script, then the kitchen will ask you if it should convert it to an update-script. You *must* use an update-script while customizing the ROM, as the kitchen is not capable of modifying updater-scripts. When you are ready to build the ROM, though, you will need to convert it back to an updater-script if the device requires it. Use the option in the Advanced menu to convert update-script to updater-script, or else the kitchen will ask you to convert it while building the ROM.
Click to expand...
Click to collapse
ldrifta said:
hey if you are only removing some apk's you dont need kitchen.. just unzip file.. take out what you want than re-zip and than Sign it! should be able to flash no problem
Click to expand...
Click to collapse
ok... so im also adding a few apks at the system/app what you suggested will that still work?
btw
just to clarify, i unzip, then remove the apks
then zip it again
then i put it in the kitchen to get signed?
marchking said:
ok... so im also adding a few apks at the system/app what you suggested will that still work?
btw
just to clarify, i unzip, then remove the apks
then zip it again
then i put it in the kitchen to get signed?
Click to expand...
Click to collapse
ok well depending on what apk's you are putting in.. if they are system required like a sense app.. it wont work on a froyo base rom.. but if its something like superuser or mail or something and is compatible with your rom than put it in system/app folder.. if its something that you want the choice to uninstall later on like a 'task killer' apk or something, place it in data/app folder..
and to sign it you dont need kitchen, you can download an auto-sign.zip file for windows here on xda.. all you do is unzip it directly to C: drive, place zip file in filder rename it to 'update.zip' than run the 'sign.bat' and it will sign the zip file. than you can flash it
marchking said:
ok... so im also adding a few apks at the system/app what you suggested will that still work?
btw
just to clarify, i unzip, then remove the apks
then zip it again
then i put it in the kitchen to get signed?
Click to expand...
Click to collapse
did u do this on Kitchen?
If you want to add Market or non-stock apps (*.apk) to your ROM (which can be uninstalled or updated from your device later) then select the kitchen's menu option that adds "/data/app functionality". Afterwards you can copy these .apk files to the new /data/app folder of your working folder.
EDIT; After your done adding/deleting all the apps, dont forget to use the sign apk command to sign.
maximo360 said:
did u do this on Kitchen?
If you want to add Market or non-stock apps (*.apk) to your ROM (which can be uninstalled or updated from your device later) then select the kitchen's menu option that adds "/data/app functionality". Afterwards you can copy these .apk files to the new /data/app folder of your working folder.
EDIT; After your done adding/deleting all the apps, dont forget to use the sign apk command to sign.
Click to expand...
Click to collapse
would apps from a 2.2 hero would work? they have a mdpi format???
or do you think i will encounter lots of problems? ^_^
marchking said:
would apps from a 2.2 hero would work? they have a mdpi format???
or do you think i will encounter lots of problems? ^_^
Click to expand...
Click to collapse
Which kind of apps? Like sense apps? I guess they might work, try it out, make a nand backup first tho.
Sent from my COS-DS using XDA App
maximo360 said:
Which kind of apps? Like sense apps? I guess they might work, try it out, make a nand backup first tho.
Sent from my COS-DS using XDA App
Click to expand...
Click to collapse
its actually system/app from miui ported to mdpi...
i was able to flash it but its going into a bootloop...
im not sure how to gather logcat... i dont use adb hahaha...
i only use droid explorer... anyways
i checked the logcat console while it was on the bootloop
it appears to me that the apps that i used is not signed...
any suggestions?
marchking said:
its actually system/app from miui ported to mdpi...
i was able to flash it but its going into a bootloop...
im not sure how to gather logcat... i dont use adb hahaha...
i only use droid explorer... anyways
i checked the logcat console while it was on the bootloop
it appears to me that the apps that i used is not signed...
any suggestions?
Click to expand...
Click to collapse
sign them using the sign apk/zip command in the kitchen
maximo360 said:
sign them using the sign apk/zip command in the kitchen
Click to expand...
Click to collapse
i signed them that seemed to be one problem... based on what im seeing on the logcat it seems now its having lots of problems while installing... FYI im trying to make a miui ported from nexus 1 to hero... trying to make it run on froyo by laszlo... i think there is much more complications here not as easy as i think it would be... but i like challenges ^_^ do you have any idea how we could do this maximo? try checking this link http://forum.xda-developers.com/showthread.php?t=858935
marchking said:
i signed them that seemed to be one problem... based on what im seeing on the logcat it seems now its having lots of problems while installing... FYI im trying to make a miui ported from nexus 1 to hero... trying to make it run on froyo by laszlo... i think there is much more complications here not as easy as i think it would be... but i like challenges ^_^ do you have any idea how we could do this maximo? try checking this link http://forum.xda-developers.com/showthread.php?t=858935
Click to expand...
Click to collapse
I read the thread, and he said he dropped some of the phones he was porting miui for, he was still doing the eris/hero. So seems to me he maybe dropped the g1, not sure tho. I guess you're gonna have to wait til either delsa is done porting it to the g1 or drakko.
Sent from my COS-DS using XDA App
Hi guys , I installed CM7 Rom (from 2.1 JFD) through Rom Manager, it works good, i put update.zip on card, but ddnt put google apps .zip file.
CM7 installed correctly. when i tried to put googleAppsUpdate.zip on card (and removed th CM7Update.zip ) and restarted in recovery from rom manager , i got An Exclamation White triangle Above and Android Man Symbol. and no progress !!!
wht is wrong ?? and how can i Install google Apps update ??
I'm kind of confused here bud, but update.zip is clockwork mod not cm7. By putting the update.zip and applying it via recovery, that would have installed clockwork recovery, and from there you would have needed to install the cm7 zip via recovery to flash cm7. The Google apps zip can be downloaded through your ron manager or via cm7 server, then it needs to he flashed the same way via clockwork recovery (install zip from sdcard).
Sent from my SGH-T959 using Tapatalk
Here comes the fire!!! :-D simple beginner mistake lol
Galaxy S Vibrant CM7.1
google apps....are apps!
you can extract all the apps from the zip, and push them to system/app.
if you cant do that, try mounting system in recovery before you flash....if this was the hd2 forum, you will be hot Cheetos right now...flamed! lol
dapoharoun said:
google apps....are apps!
you can extract all the apps from the zip, and push them to system/app.
if you cant do that, try mounting system in recovery before you flash....if this was the hd2 forum, you will be hot Cheetos right now...flamed! lol
Click to expand...
Click to collapse
seems easy , but how exactly is system/apps ??
when i decompress the .zip i found 2 folders:
-META-INF
-system
each of , contains another files and folders , can you tell exactly where to put in details ?
thx
This belongs in the Q&A, NOT in the Vibrant Android Development
tarreq said:
seems easy , but how exactly is system/apps ??
when i decompress the .zip i found 2 folders:
-META-INF
-system
each of , contains another files and folders , can you tell exactly where to put in details ?
thx
Click to expand...
Click to collapse
First fo all, this is in the wrong forum.
Second of all, I really believe you are probably trying to flash a version of gapps that is not correct for your device.
But either way...
The two compressed folders are
-META-INF
-system
decompress the system folder..maybe put it on your desktop or something. Inside the system folder is a series of different folders. Look for the one that is named "Apps" take that folder and place it on the root of your SDcard. Now, go back onto your phone and use Root explorer to manually move each of the apks from that app folder that you would like...and move them to system>apps. fix the permissions on the apk once you move it so that it has the same permissions as every other apk already in the folder and once you are done moving whichever apps you'd like on your phone and fixing the permissions, reboot your phone.