How to mod custom ROM ? - Desire Q&A, Help & Troubleshooting

Hello, I was browsing through Desire ROM section and found Marius.a ROM which I liked , apart from its phone dialer ,that not good for me as I like MIUI dialer. I wonder is it possible to mix apps from different ROMs. So I need some guide how to mod a ROM.
Basicaly ( as far as I understand) there are two processes :
1. How can I extract application from ROM ? Is it only a matter of extracting the apk file from the source ROM and putting it in the targer ROM? or there is some extra work to be done?
2.How can I edit the ROM zip and replace the dialer ( and other applications if needed) and have a ROM that will work?.
I will appreciate any help .

Double click (do not extract) the ROM.zip with 7zip
Then try drag / drop between ROM.zips. There's no guarantee it will work with all apps. In fact with dialer there is more risk as it's a core system app. No harm in trying though. As always, have a nandroid backup before you flash.
Your modified ROM.zip must also fit into whatever hboot you have, in other words the extracted /system size of the ROM.zip must be less than the hboot's /system size.
I've posted about it before here, have a look

eddiehk6 said:
Double click (do not extract) the ROM.zip with 7zip
Then try drag / drop between ROM.zips. There's no guarantee it will work with all apps. In fact with dialer there is more risk as it's a core system app. No harm in trying though. As always, have a nandroid backup before you flash.
Your modified ROM.zip must also fit into whatever hboot you have, in other words the extracted /system size of the ROM.zip must be less than the hboot's /system size.
I've posted about it before here, have a look
Click to expand...
Click to collapse
Thank you, I'll try it out as soon as possible. I wonder is there some script or configuration file that has to be edited when replacing core applications?

tanyot said:
Thank you, I'll try it out as soon as possible. I wonder is there some script or configuration file that has to be edited when replacing core applications?
Click to expand...
Click to collapse
Nope. All applications in the /system folder will be installed as system apps.

Related

Merging Flashable ZIPs

Hey everyone, so I'm just starting to buckle down and learn more about Android Mods. Here's my latest question. I have a few zip files that I always flash on top of a new ROM. These include at the moment, a Rotary Lockscreen and the DroidX boot animation, possibly a circle battery shortly.
My question is, would there be a simple way to merge these zip files so I only have to flash one every time I load a new ROM, or even better, load these into a ROM file before flashing?
Is it as simple as opening the ZIPs, moving the files from one to the other (keeping the directory structure intact) and re-zipping the lot? Or is there something more complicated I need to look at...
Thanks in advance!
Edit: A quick look in one of the files revealed a .xml file with some references to the files to be installed. I assume I would have to edit the .xml to include all the instructions from each mod, but if that's all it takes, that should be easy... Again, I ask all of you... Am I missing something?
PSULightingGuy said:
Hey everyone, so I'm just starting to buckle down and learn more about Android Mods. Here's my latest question. I have a few zip files that I always flash on top of a new ROM. These include at the moment, a Rotary Lockscreen and the DroidX boot animation, possibly a circle battery shortly.
My question is, would there be a simple way to merge these zip files so I only have to flash one every time I load a new ROM, or even better, load these into a ROM file before flashing?
Is it as simple as opening the ZIPs, moving the files from one to the other (keeping the directory structure intact) and re-zipping the lot? Or is there something more complicated I need to look at...
Thanks in advance!
Edit: A quick look in one of the files revealed a .xml file with some references to the files to be installed. I assume I would have to edit the .xml to include all the instructions from each mod, but if that's all it takes, that should be easy... Again, I ask all of you... Am I missing something?
Click to expand...
Click to collapse
i think you need to edit the meta file and the xml file, but this can be done though.
PSULightingGuy said:
Hey everyone, so I'm just starting to buckle down and learn more about Android Mods. Here's my latest question. I have a few zip files that I always flash on top of a new ROM. These include at the moment, a Rotary Lockscreen and the DroidX boot animation, possibly a circle battery shortly.
My question is, would there be a simple way to merge these zip files so I only have to flash one every time I load a new ROM, or even better, load these into a ROM file before flashing?
Is it as simple as opening the ZIPs, moving the files from one to the other (keeping the directory structure intact) and re-zipping the lot? Or is there something more complicated I need to look at...
Thanks in advance!
Edit: A quick look in one of the files revealed a .xml file with some references to the files to be installed. I assume I would have to edit the .xml to include all the instructions from each mod, but if that's all it takes, that should be easy... Again, I ask all of you... Am I missing something?
Click to expand...
Click to collapse
what is the full name of the .xml file you see?
the recovery reads a file called update-script or updater-script inside the zip file META-INF/com/google/android/ directory. you memorize that directory path after messing with enough zip files!
that file tells the recovery what actions to take with which files. for list of very basic commands for this update-script file, i have a guide - http://forum.sdx-developers.com/android-2-1/creating-an-update-zip-list-of-commands/
it is possible to merge update.zip files but its important to understand their structure and how the commands are executed.
also signing .zip files is a whole different topic...
hopefully this helps get you going in the correct direction!
joeykrim said:
what is the full name of the .xml file you see?
the recovery reads a file called update-script or updater-script inside the zip file META-INF/com/google/android/ directory. you memorize that directory path after messing with enough zip files!
that file tells the recovery what actions to take with which files. for list of very basic commands for this update-script file, i have a guide - http://forum.sdx-developers.com/android-2-1/creating-an-update-zip-list-of-commands/
Click to expand...
Click to collapse
Since all the files have this could you copy and paste the codes inside them into one file?
Sent from my PC36100 using XDA App
chandlerw88 said:
Since all the files have this could you copy and paste the codes inside them into one file?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
You would want to read up a little bit and make sure you understand the commands, but yes. You do not want to copy the entire set of commands, just the particular needed lines. Often you don't need to change anything because the script may just say copy this entire system directory and everything in it will go.
Sent from my PC36100 using XDA App
It's pretty basic.
Move all the files into the same zip delete everything in meta-inf except the update script.
Adjust the script accordingly, pay attention to syntax or better yet just look at all the individual scripts and put them together, then remove dupes
As for zip signing..
This is what you need
http://forum.xda-developers.com/showthread.php?t=666441
OK, thanks! This has all helped a lot and I think I nailed the basics that I was shooting for, just haven't been able to test yet since no need to re-flash a working ROM.
My next question is, would there be a way to force files INSIDE an APK? Trying to add a different battery meter (have the images) to framework-res.apk and would love to do that from a boot script... Ideas?
PSULightingGuy said:
OK, thanks! This has all helped a lot and I think I nailed the basics that I was shooting for, just haven't been able to test yet since no need to re-flash a working ROM.
My next question is, would there be a way to force files INSIDE an APK? Trying to add a different battery meter (have the images) to framework-res.apk and would love to do that from a boot script... Ideas?
Click to expand...
Click to collapse
yes, its called 7-zip and its your new best friend in this battle. heres how i learned.
i started ripping apart the things that i liked, including roms themselves. now find an update zip that has the files inside the folders that you will need to add, and you can then recycle that update zip. here it is plain and simple:
1.use 7zip to VIEW; NEVER UNZIP the files(forget about windows zips)
2.check what folder the apps you will be putting in belong in
3.put them in their corresponding folders(some apps are tricky when you need to install their libs too and you dont know it)
4.erase the 3 bottom files in your meta-inf folder
5.resign the rom
6.verify the sign(look for the new certs)
7.move to sd
8.flash rom
9.have a pop,beer, or w/e your vice.(my fave is cherry coke)
if you need help getting started feel free to pm. you dont know who i am, but ive been thru this process many times.
​
Actually, that's not quite what I'm talking about... I want a flashable zip that will add certain images (the battery meter) to the INSIDE of a .apk file that already exists on the device. Not sure if it's possible, but if so, I'd love to know... If not, I'll try pulling the .apk and using 7-zip...

How to add apk files into a rom

hey i want to add some files like htc clock.apk and calculator.apk to N.S.A rom, so how do i go about it. Any help
Thank you.
unzip the ROM, add them to the app folder and rezip it and then flash the ROM (making sure the recovery utility you're using allows non-signed ROMs)
i am using clockworkmod recovery, does it allow flashing unsigned rom??
Thanks
unquestioning
shoemeistah said:
unquestioning
Click to expand...
Click to collapse
Sorry, what does that means.
Yes, you have to remove the signing checking option in it (under advanced or something, have a play about)
hey use Android kitchen to Modify the Rom as want
>you can add and remove apps
>you can create your own custom rom if want..!!
>And you can sign the modified ROM
READ THE INSTRUCTION YOU'LL GET TO KNOW
try it out works great here is the link:
http://forum.xda-developers.com/showthread.php?t=633246
harish.awe said:
hey use Android kitchen to Modify the Rom as want
>you can add and remove apps
>you can create your own custom rom if want..!!
>And you can sign the modified ROM
READ THE INSTRUCTION YOU'LL GET TO KNOW
try it out works great here is the link:
http://forum.xda-developers.com/showthread.php?t=633246
Click to expand...
Click to collapse
It's a LOT easier to just do it yourself...
?
does this work for the captivate
Don't know, go ask in the captivate forum and not the Desire one
Hi all, i'm a new user and i have some trouble adding .apk's into cooked roms.
In particular, i'm trying to add some .apk into /system/app of InsertCoin Gingerbread 1.0.5
I have unzipped the rom, add those apk's, zipped again but when i flash it from recovery it says "Can't Find Update Script".
Iryon said:
Hi all, i'm a new user and i have some trouble adding .apk's into cooked roms.
In particular, i'm trying to add some .apk into /system/app of InsertCoin Gingerbread 1.0.5
I have unzipped the rom, add those apk's, zipped again but when i flash it from recovery it says "Can't Find Update Script".
Click to expand...
Click to collapse
Don't(!) unzip the rom. Just open the archive using 7zip or winzip (or something like that; right-click zip and choose 'open archive'). Then just move apk to correct folder. If you're taking apk's from another rom, open that using 7zip as well. Then, drag the program from one rom to the other. When you're finished and want to flash the rom, make sure you've disabled 'signature verification' in recovery (it is an option in recovery).
Thank you, i was able to flash my first "modded" version with different boot/down animation, Teeter game (i love it) and Titanium Backup
The only thing i was not able to do was Root Explorer, i tried to put it in system/app and in data/app but when i flash rom it doesn't appear in the drawer.
Any suggestion?
Iryon said:
Thank you, i was able to flash my first "modded" version with different boot/down animation, Teeter game (i love it) and Titanium Backup
The only thing i was not able to do was Root Explorer, i tried to put it in system/app and in data/app but when i flash rom it doesn't appear in the drawer.
Any suggestion?
Click to expand...
Click to collapse
I have been learning how to do this in the last few days and have had similar issues as you. I can get some to install fine and appear in the drawer but not all.
I have only been adding the apk's to system/app and not data/app. Should the apk's be added to one of these, both of them or another folder completely?
Can anyone help the two of us out?
I used apk swapper but all the apps are not working

Aroma Installer and some question

Hello guys.
Since it's my first post so i hope this's can usefull and can help my problem.
Did you all see thread this http://forum.xda-developers.com/showthread.php?t=1461712 It's aroma installer that can build custom rom with UI in recovery mode (if no mistake) and success in htc device. From this forum i know that sgy have dev and mod that success to build rom, recovery, and now MAROK kernel. It's sound good if we can build in with the installer to make our device more better.
So, is there any dev or mod try or start to this stuff to build our device?
You know that i'm newbie in android device, but i've start to learn the installer and make some modification (just a little part) and you know it's not easy to develop something if we are a newbie.
After i read about android i know that i must have tools to help us, so i've start to download any stuf to help me. Some of my tool that i have in my PC are cygwin, dsixda kitchen, apk manager, xUltimate, notepad++, 7zip, winrar, jre 6.22, jdk 6.20, microsoft.netframework 2 and 4 client user, and window xp sp2.
Is there any tools that i should have to help me playing with my device?
From all stuff that i have so far only xUltimate can give me best result for deodex. But to applied to my device in recovery mode i use tool that develop from other member like pratyuse, shuvit_kaskuser, skin, and the newest is marok. Thanks to you all guys and other that i've forget
Sory if this post is annoying you all and thanks to make me more better with this forum.
wow...you're so serious dude. I'm only using CWM, root explorer, titanium backup and a base custom ROM to make my own custom ROM (lol). btw, a deodex ROM will use a lot of internal memory. It isn't a mighty feature that every ROM must have. I thought we should use it wisely.
kurotsugi said:
wow...you're so serious dude. I'm only using CWM, root explorer, titanium backup and a base custom ROM to make my own custom ROM (lol). btw, a deodex ROM will use a lot of internal memory. It isn't a mighty feature that every ROM must have. I thought we should use it wisely.
Click to expand...
Click to collapse
I just read all bout android and don't know what should i do so i've try all of method for customize my device.
deodex In original stock of course it's will be more use internal memory but i've delete some app that i don't need. only some app can't deodex with xultimate.
I wanna make my device simple n fast. and of course wanna try aroma installer too.
well...this is what I do for compiling a new ROM. I'm definetely not a dev so I can't start with a raw project. I started from a custom ROM (in my case, its myss v.3.4. you may use other one. Repencis doesn't work in my test thought). we need these custom rom only to install our ROM in our device so basicly we can use any custom ROM. after that I customize my stock ROM with root explorer and titanium backup. I use root explorer to put some apps in /system/app and editing script. I like a light ROM which consume minimum internal memory so I use titanium backup to integrate dalvik cache into /system/app. after all customization on my stock ROM, I create a nandroid backup with CWM. extract it. then replace anything in my base custom ROM except /system/bin and /system/xbin. these two folder is related to kernel and the installer script so basicly I didn't do anything on them except removing any a2sd script. the last step, repack all the files into *zip file and flash it via cwm.
for customizing the theme, we can use UOT kitchen or recompile framework-res.apk and systemUI.apk manually via eclipse or just replacing the files inside with 7zip. we may also put another bootanimation.zip in /system/media to change the bootscreen and put bootsound.ogg in /system/etc for the bootsound.
for everything we do, we should make sure the size is fit with our system partition. thats the reason why I customize my stock ROM manually via rootexplorer. I just want to make sure that the my customization is fit with my system partition and work properly. I thought our system partition is 220 mb but make sure you give some space for later modification.
well...thats all. I'm not saying that I really make a new custom ROM. It's more like recompile another ROM with my personal taste. a fresh installation of mine is only use about 3.4 mb internal ROM.
kurotsugi said:
well...this is what I do for compiling a new ROM. I'm definetely not a dev so I can't start with a raw project. I started from a custom ROM (in my case, its myss v.3.4. you may use other one. Repencis doesn't work in my test thought). we need these custom rom only to install our ROM in our device so basicly we can use any custom ROM. after that I customize my stock ROM with root explorer and titanium backup. I use root explorer to put some apps in /system/app and editing script. I like a light ROM which consume minimum internal memory so I use titanium backup to integrate dalvik cache into /system/app. after all customization on my stock ROM, I create a nandroid backup with CWM. extract it. then replace anything in my base custom ROM except /system/bin and /system/xbin. these two folder is related to kernel and the installer script so basicly I didn't do anything on them except removing any a2sd script. the last step, repack all the files into *zip file and flash it via cwm.
for customizing the theme, we can use UOT kitchen or recompile framework-res.apk and systemUI.apk manually via eclipse or just replacing the files inside with 7zip. we may also put another bootanimation.zip in /system/media to change the bootscreen and put bootsound.ogg in /system/etc for the bootsound.
for everything we do, we should make sure the size is fit with our system partition. thats the reason why I customize my stock ROM manually via rootexplorer. I just want to make sure that the my customization is fit with my system partition and work properly. I thought our system partition is 220 mb but make sure you give some space for later modification.
well...thats all. I'm not saying that I really make a new custom ROM. It's more like recompile another ROM with my personal taste. a fresh installation of mine is only use about 3.4 mb internal ROM.
Click to expand...
Click to collapse
Same case with me, i'm not dev so i just compile any trick from other. But i always start from stock rom (i use dxlb1) then i modified as i like to make my device at least not brick. Anyway your method sound nice just 3.4MB fresh installation in internal and maybe sometime i will try.
I now there's many method to customize device but we (as newbie) still confuse with the step and tools are needed. Some method doesn't work even we doing step by step right because of different case or maybe some forget guide from the source.
In my opinon, can moderator give us guide or compilation how to customize device because i didn't see that thread in sgy forum (hope i'm not wrong) or maybe just link reference. Of course must put in faq or ultimate tutorial because this is just for newbie.
there's also a negatif effect of using full odexed ROM. it takes a lot of space in /system. in my case, I remove all bloatware and useless app and got only 20-15 mb free space in /system. btw, if you want to see which app is safe to removed, you may see hybrid ROM app list. he remove almost everything in this ROM (lol). I thought we can't put a tutorial for compiling a ROM. it would be huge and difficult to understand for a noob (just like me). you should PM'ed the dev to teach you how to make a custom ROM.
Aroma Installer can use on SGY..
--deleted--

[CWM][ALL] Base CWM zip packages - just add APPS!

Ok forum, so I got this idea: because a lot of people ask for CWM packages of this and that, why not let them create CWM flashable stuff without having to beg devs or other users to make them?
I think it saves them (yes, I am talking about YOU!) and us the trouble. So I created these two base CWM flashable zips to get everyone started:
Data_Skeleton.zip - Used for apps that you can uninstall afterwards.
System_Skeleton.zip - Used for anything that should be installed as a system app
Now, a short guide on how to use them:
1. Download the appropriate ZIP for what you plan to package. If you want to make a regular app package use Data_Skeleton.zip, for system apps, use System_Skeleton.zip.
2. Open the zip file with anything else other than Windows Explorer! Use 7zip, winzip, winrar or anything else, just not Explorer!
3. Look inside the zip! DO NOT DELETE ANYTHING! All you need to do is ADD STUFF!
4. Browse into the "data" or "system" zip folders, then down into the "app" folder inside.
5. After you get to the "app" folder, copy and paste the APKs you want to flash in the folder.
REMEMBER: do not DELETE anything! ADD APK files ONLY in the "app" folder.
6. Wait for the APK files you copy to get added to the archive.
7. Close the archive.
8. Rename and copy the archive to your SD card.
9. Boot into CWM and flash the copied zip file you just created.
10. Enjoy!!
Sooooo, quick 10-step process into cooking you own CWM Zips. You can do much more with them than flashing apps, but for general purpose usage, this should be enough!
Thanks and complaints go underneath.
PS: this idea was given to me by lambstone in a separate thread! Thanks a lot mate!!!
Peace,
C.
Nice thread, waiting for other..............
There's market apps that does this I.e apps2zip
Sent from my LG-P999 using Tapatalk 2 Beta-2
Ayysr,
App2zip works well for this purpose, but only when it works. There are apps that can't be zipped correctly, mainly those that rely on libs, media and/or other files that can't be included automagically. Needless to say that some apps (mainly games and such) store data on the SD card.
All of this can be easily accomplished by copying the files in a zip file; also learning something about Android in the process, wouldn't you say?
Peace,
C.
cheatman said:
Ayysr,
App2zip works well for this purpose, but only when it works. There are apps that can't be zipped correctly, mainly those that rely on libs, media and/or other files that can't be included automagically. Needless to say that some apps (mainly games and such) store data on the SD card.
All of this can be easily accomplished by copying the files in a zip file; also learning something about Android in the process, wouldn't you say?
Peace,
C.
Click to expand...
Click to collapse
Your right, I was not trying to deny your effort in any way
Sent from my LG-P999 using Tapatalk 2 Beta-2
I actually wasn't expecting anyone to comment on this thread to begin with
The fact that you mentioned app2zip is perfect! I know the intent is not to deny my effort, in fact, I am happy new information surfaced because it's useful and appropriate.
Very few contribute to such posts with relevant info for others. I think this is the point: sharing insightful and relevant stuff with others. But judging by the number of thanks you have, you already know this very well already
So, thanks! And glad to have you in my thread
Peace,
C.
cheatman said:
I actually wasn't expecting anyone to comment on this thread to begin with
The fact that you mentioned app2zip is perfect! I know the intent is not to deny my effort, in fact, I am happy new information surfaced because it's useful and appropriate.
Very few contribute to such posts with relevant info for others. I think this is the point: sharing insightful and relevant stuff with others. But judging by the number of thanks you have, you already know this very well already
So, thanks! And glad to have you in my thread
Peace,
C.
Click to expand...
Click to collapse
have trying to put 5 apk files on data/app exactly doing what it's in your post, then rename it to apk.zip, but when i'm trying flashing from cwm it's geting error
E:Can't open /sdcard/apk.zip
(bad)
Installation aborted
do I miss something??
edit: i'm using data_skeleton.zip
Make sure you don't extract the ZIP. Open it and add files. If you extract it, you get that error message (usually). That is a problem related to the unzip process in CWM, it's not very "compatible"
I have also re-upped the DATA CWM zip, maybe it got borked in the process. So download again from first post. It works on my tab. You can test it by just getting the zip and flashing it empty, like that.
cheatman said:
Make sure you don't extract the ZIP. Open it and add files. If you extract it, you get that error message (usually). That is a problem related to the unzip process in CWM, it's not very "compatible"
Click to expand...
Click to collapse
No dude, I do not extract the zip file, I do exzctly what you said in 1st post, just open it with winrar, look for Data-app, then adding apk files on app section/folder inside the zip files, i just try once again to make sure, and i just add 1 different apk file, but still not work, btw i always use this same method before when I' want to replace boot animation for ICS CM9 ROM and adding some apk file to ROM file, and it's always work.
cheatman said:
I have also re-upped the DATA CWM zip, maybe it got borked in the process. So download again from first post. It works on my tab. You can test it by just getting the zip and flashing it empty, like that.
Click to expand...
Click to collapse
will try this one..,
EDIT: have try your 2nd Data_skeleton.zip, it's work when flashing from cwm with or without add apk files, but not with previous zip file, thought the problem it's coming from your zip file..,
Glad the second one works!
Thanks for letting me know the first zip was borked!
Its a good thread man, makes creating flash able zips simple, you should also look into zipsigner2 on the play market
Sent from my LG-P999 using Tapatalk 2 Beta-2
Thx for the great work!!
Does this one only works for apks?? say i would like to add some files to system/bin or system/lib what do i need to add??
Thx again
You need to create the appropriate folder structure on your PC/Laptop/Mac drive (system/bin or system/lib as per your example) and add it to the archive.
Do not create the folders directly inside the archive as they seem to get borked. Instead archive the folders after you create them locally. It also works if you extract the skeleton archive as an example, delete the "system" folder from inside it and add to the archive the system folder from your drive to replace the original one.
Sounds more complicated than it is. With these CWM Zips you can create any zip that changes either "/data/*" or "/system/*"
Anything, including full ROMs, libs, firmware etc (i.e. except kernel!) can go inside. Play with them. You can't mess your tab with them. Worst case, you need to flash again your ICS copy and factory reset...
Peace,
C.
yeah jejeje i just mess up i am trying to flash a sound driver for my phone (by the way it works in my live with walkman) but they are not working so.
but it is great because i was able to use your file to flash my phone it seems to be universal.
thx again for your work.
Is it possible for this to work for radio images?
Sent from my Nexus S 4G using Tapatalk 2 Beta-5
No, it can't be used for radio images.
First off, radio images need to be flashed (i.e. not copied to a folder as this script does) and secondly because as far as I know with the latest versions of CWM don't support this anymore.
The old zips used to flash radio don't seem to be supported anymore. I recently encountered this problem while flashing a friend's HTC Buzz/Wildfire. So, no, I have no idea how to flash radio using CWM anymore. You can flash using Odin, though...
Peace,
C.
cheatman said:
You need to create the appropriate folder structure on your PC/Laptop/Mac drive (system/bin or system/lib as per your example) and add it to the archive.
Do not create the folders directly inside the archive as they seem to get borked. Instead archive the folders after you create them locally. It also works if you extract the skeleton archive as an example, delete the "system" folder from inside it and add to the archive the system folder from your drive to replace the original one.
Click to expand...
Click to collapse
Ah, this explains how come my /system/app zips were coming out fine but my /system/framework were messed up, thanks for the explanation.
I wonder if it's possible for a small tutorial in how to add our own text to a zip when it's being flashed.
I guess I could reupload the zips without the intro section (stating my nickname and galaxy tab / version etc.) if I weren't so lazy...
The problem with changing the text is that although a tutorial can be made, it requires external tools and such, which would make this waaay to complicated and out of the scope of this thread.
For your purposes (I assume you are using some version of Windows), here's my advice: extract the Zip archive, look for the "updater-script" file, change it and make sure you run it through a "dos2unix" tool to convert CR/LFs. Then add it back to the archive.
To everyone else: if this doesn't work for you, just stick to adding apps to the zip. You should be safe, there's no need to edit any files anyway!
Peace,
C.
Great, apparently it was just that simple, worked great, <3
Dumb question - is this only for Galaxy tab? Or can I use it on my Captivate?

Script to move files from System to Preload

Installer Script to move files from System to Preload
First of all, credits to Mattix for the original Move script and no idea who to credit for the symlink creator script.
This script (with some minor editing) will move select files from the system/app root folder to the preload/symlink/system/app folder. It will also create the necessary symlink files back to system/app for the moved files.
Prerequisites:
Download and install Notepad++.
It is not recommended to use a standard text editor to edit android files.
A good zip utility like WinRar or 7Zip.
Guide:
Please note - you must have enough available room in the Preload partition to move the existing files. Using Rom Toolbox/root explorer, scroll the tools at the bottom over to and select 'prefs', select the 'Show storage bar' checkbox.
This will give you the storage bar like in the screenshot below.
Using a zip file manager like WinRar or 7Zip, open (do not extract) the 'Move_Apps' file within the zip and when asked, select notepad++ as your editor and change the filename highlighted in red, exit and save.
Also, filenames are case sensitive. Make sure you input the full filename with the file extension:
Code:
#!/sbin/sh
#
# Created by Mattix724
# Move Apps
# v1.0
cd system/app
mv [COLOR="Red"]Sample.apk [/COLOR] /preload/symlink/system/app
Copy and paste the line with the filename as many times as you need to for any other files you want to move. Flash the zip in recovery.
Please make a backup prior to using this or any file management tool
That's it, have fun. Tnx - TD
Oh hey, look what we have here! If anyone wants some help using this script I'll be more than happy to help. Just shoot me a private message and I'll get back to ya.
Sent from my SPH-D710 using XDA Premium 4 mobile app
This may be a stupid question but when I open it in notepad++ its only giving me 10 lines .how do I add more lines.each line is numbered 1through 10 .I cant paste any more.
Just go to the end of line 9 and hit enter or to the empty line 10 and hit enter.
Then you should be able to right click and paste on the new blank line.
I'm not sure if the blank line is necessary at the end but I notice it in a lot of stuff so I just leave it there.
tdunham said:
Just go to the end of line 9 and hit enter or to the empty line 10 and hit enter.
Then you should be able to right click and paste on the new blank line.
I'm not sure if the blank line is necessary at the end but I notice it in a lot of stuff so I just leave it there.
Click to expand...
Click to collapse
Ok thanks TD.I will have to try it tomorrow.iam going to try to move 32 apk files over, there mostly small (k) but more space in system/apps should increase speed .I hope ( running recalked ):good:
mholloway said:
Ok thanks TD.I will have to try it tomorrow.iam going to try to move 32 apk files over, there mostly small (k) but more space in system/apps should increase speed .I hope ( running recalked ):good:
Click to expand...
Click to collapse
I usually just have the entire rom unzipped somewhere and copy and paste the entire filename.apk from the folder itself. It's easier for me to do it that way than trying to type them all in.
tdunham said:
I usually just have the entire rom unzipped somewhere and copy and paste the entire filename.apk from the folder itself. It's easier for me to do it that way than trying to type them all in.
Click to expand...
Click to collapse
For me to do that could I use my nandroid back up.move it to pc, then open with winrar.?
mholloway said:
For me to do that could I use my nandroid back up.move it to pc, then open with winrar.?
Click to expand...
Click to collapse
I think you can open a backup but it's easier to find stuff in the rom.zip.
tdunham said:
I think you can open a backup but it's easier to find stuff in the rom.zip.
Click to expand...
Click to collapse
Lol, yea I was thinking that after I posted.iam going to try it your way, rather move the stuff then to type all the apks. Thanks TD
You could always have the script opened on your computer and have a file browser on your phone open so you can just take a quick glance at the phone and type the name of the app into the script.
On another note, after seeing TD bring this back from the dead I thought about what else can be done to this script to make it even better... This weekend I'll be seeing what else can be done using this shell script.
Sent from my SPH-D710 using XDA Premium 4 mobile app
Question, if I unzip the rom zip and move what I want from system to preload do I then delete apk in system and after flashing rom flash the symlink tool?
mholloway said:
Question, if I unzip the rom zip and move what I want from system to preload do I then delete apk in system and after flashing rom flash the symlink tool?
Click to expand...
Click to collapse
You could move apps to the preload partition by doing it that way, the ROM zip should already have a command to set the symbolic links after flashing everything.
This script was created after I released an early deodexed Jellybean build and I wanted to move the SystemUI back to the system partition because I thought it was silly of Samsung to move an important system application to the preload partition. I thought it would help decrease the boot time a little bit, it probably didn't speed it up enough to be noticeable to the average user but in my opinion it was slightly faster to boot up to the lock screen.
Then I decided to move all of the "bloat" to the preload partition as well as any of the Google apps that can be downloaded from the Play Store. But now most of those aren't even needed in the system or preload unless you want the extra space in your data partition for other things like apps, games, data, etc...
Sent from my SPH-D710 using XDA Premium 4 mobile app
mholloway said:
Question, if I unzip the rom zip and move what I want from system to preload do I then delete apk in system and after flashing rom flash the symlink tool?
Click to expand...
Click to collapse
You can't do the rom zip this way because it needs the symlinks to boot.
Maybe in the next release I will change the way it does symlinks but right now I'm afraid the rom just wouldn't boot if you start rearranging the system and preload files before flashing.
Mattix724 said:
You could move apps to the preload partition by doing it that way, the ROM zip should already have a command to set the symbolic links after flashing everything.
This script was created after I released an early deodexed Jellybean build and I wanted to move the SystemUI back to the system partition because I thought it was silly of Samsung to move an important system application to the preload partition. I thought it would help decrease the boot time a little bit, it probably didn't speed it up enough to be noticeable to the average user but in my opinion it was slightly faster to boot up to the lock screen.
Then I decided to move all of the "bloat" to the preload partition as well as any of the Google apps that can be downloaded from the Play Store. But now most of those aren't even needed in the system or preload unless you want the extra space in your data partition for other things like apps, games, data, etc...
Sent from my SPH-D710 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thanks, I wanna try moving some things that isnt just apps like some services dont know actually names off hand but basically leaving system ui and sec settings in system for theming .
---------- Post added at 11:53 AM ---------- Previous post was at 11:48 AM ----------
tdunham said:
You can't do the rom zip this way because it needs the symlinks to boot.
Maybe in the next release I will change the way it does symlinks but right now I'm afraid the rom just wouldn't boot if you start rearranging the system and preload files before flashing.
Click to expand...
Click to collapse
Ok .last night I did try it with a nandroid but had a md5 mismatch, I have the link from bil for deleting the md5 #so I will try that later.
tdunham said:
You can't do the rom zip this way because it needs the symlinks to boot.
Maybe in the next release I will change the way it does symlinks but right now I'm afraid the rom just wouldn't boot if you start rearranging the system and preload files before flashing.
Click to expand...
Click to collapse
I may be wrong, but I think he was asking if he could unzip the ROM zip to move apps from the system to the preload partition. If this is the case, once you've moved the apps you want to move just zip the ROM back up and then it is ready to flash. You will need to wipe both the system and preload partition prior to flashing the newly modified zip.
This way it is as if it's a fresh install, the apps go where you want them, and you can still preserve user data.
Sent from my SPH-D710 using XDA Premium 4 mobile app
Mattix724 said:
I may be wrong, but I think he was asking if he could unzip the ROM zip to move apps from the system to the preload partition. If this is the case, once you've moved the apps you want to move just zip the ROM back up and then it is ready to flash. You will need to wipe both the system and preload partition prior to flashing the newly modified zip.
This way it is as if it's a fresh install, the apps go where you want them, and you can still preserve user data.
Click to expand...
Click to collapse
The way the current E4GT roms are written, you can't take the Rom.zip and just rearrange things because the installer script does the preload symlinks one file at a time. I've changed this in the Shostock rom and also I think in my ReCalked Odexed release so symlinks are all done from a separate script file.
Bilgerryan may fix this in his next release and I will do the same in the next ReCalked but it won't work the way they are written now.
Plus, the Preload partition is limited on space too. You can't just dump the entire contents of system/app into it. It just won't fit without some serious debloating of both folders first.
I'll just fix the script in ReCalked for Mholloway and post a link here after I upload it maybe. Or maybe I'll just add the new lockscreen mods if I have time and upload the new version to my thread so he can play with it.
tdunham said:
I'll just fix the script in ReCalked for Mholloway and post a link here after I upload it maybe. Or maybe I'll just add the new lockscreen mods if I have time and upload the new version to my thread so he can play with it.
Click to expand...
Click to collapse
Thank you so much, but do whats easier for you.I would think your a busy man with all that your invoved here, with all your mods . Just the thought of you willing to do that is very appreciated.
Uploading a modified version of ReCalked. Stripped down to a little over 400mb. It's getting late, I'll try to post it in the morning if it makes it ok.
Sorry, having trouble getting the file uploaded. I'll try again and see how it goes.

Categories

Resources