Very Quick Question - myTouch 3G, Magic General

If I take a ROM in .ZIP format and unzip it on my PC into a folder with the same name...
Then delete any .APKs of programs I have no use for (Twidroid, facebook, etc) and then replace the boot.img with a different kernel of my choice and different SuperUser.apk...
Can I then ZIP this primary folder and load it as a ROM onto my MT3G?
Forgive me if this sounds really stupid, but I have no idea.
Would it need to be "cooked" before I can load it??

When you cook you need to make sure the gloves are on and you have the oven's temp turned up real nicely to fry that thing
I guess you didnt search or something? I need you to confirm that you cant/can see this at the top left corner of screen:
xda-developers > Dream > Dream Android Development
Press Dream then head to Q&A section please.Wait a sec...Thats not a Dream..You belong here for asking q's about your phone:
http://forum.xda-developers.com/forumdisplay.php?f=480
Just do a search for signing tool and it shows up.

rbrainard said:
If I take a ROM in .ZIP format and unzip it on my PC into a folder with the same name...
Then delete any .APKs of programs I have no use for (Twidroid, facebook, etc) and then replace the boot.img with a different kernel of my choice and different SuperUser.apk...
Can I then ZIP this primary folder and load it as a ROM onto my MT3G?
Forgive me if this sounds really stupid, but I have no idea.
Would it need to be "cooked" before I can load it??
Click to expand...
Click to collapse
its more complicated than it looks...
First u will have to know if removing those .apk will not cause any trouble...
Second u will have to sign the apks u r going to add, and signed the zip too...
about changing the boot.img has been tried before in another thread...
but most important u will have to search, search and read, read...
going to try and find some thread for u, before the mods closed this...

Need to have it resigned...once a zip file is open it breaks the signature but I would aslo like to kno if this is possible

ilostchild said:
Need to have it resigned...once a zip file is open it breaks the signature but I would aslo like to kno if this is possible
Click to expand...
Click to collapse
here its a thread about resigned:
http://forum.xda-developers.com/showthread.php?t=473580
read it all, has interesting stuff, but keep searching...
actually i would like to try this too...
if u ask devs, unless they want to teach u, great...

Wow...
You can open zips (roms/updates) and browse them without the need to resign them. If you change any of the contents in a zip (rom/update) file, as in remove or add, then you have to resign. You do not have to resign the apks you add to the zip (rom/update) file.
To do what you want to do, refer to the link about signing zips that was posted above. Remove the APKs, sign the zip (rom/update) file, and apply the update to your phone.

bring in the wrecking crew!

anyone know how to run this on a mac?

Ha people had post, but the one that make the thread, its no where...

Sweet! Thanks folks.
The "Search" function is the most important in any forum, but it does the user no good if they have absolutely positively no idea what to search for... lol
My goal is to take Manup's Eclair_2.1-v1.5 and remove all the .APKs I don't have any use for... Swap the boot.img for the eclair one with the 10MB hack, replace the SpareParts.APK with one that contains "Keep home app in memory" option, etc, etc, etc.

rbrainard said:
If I take a ROM in .ZIP format and unzip it on my PC into a folder with the same name...
Then delete any .APKs of programs I have no use for (Twidroid, facebook, etc) and then replace the boot.img with a different kernel of my choice and different SuperUser.apk...
Can I then ZIP this primary folder and load it as a ROM onto my MT3G?
Forgive me if this sounds really stupid, but I have no idea.
Would it need to be "cooked" before I can load it??
Click to expand...
Click to collapse
You've just described in detail what about 90% of roms out there really are: open zip, add/remove files, ..., profit!!!
As mentioned correctly by Moonspoon, all you'd need afterwards is to sign your package (just to ensure that there's no problems with the signature, delete the three files inside /META-INF (leave the folders alone)).
Also, as mentioned by ginatojr (kind of...), you have to know which files you're removing, for example, removing TelephonyProvider.apk, well, that should be obvious. One that's not so obvious is gtalkservice.apk. When I first started, I removed it because I though it was part of Google Talk, when in fact it's more closely related to GoogleApps and SubscribedFeedsProvider.
The only times you want to deal with signatures is if your roms come from two different sources (if you're using an AOSP test-signed core and want to toss in some release-singed Google apps), but for the most part it's unnecessary and mostly discouraged as it's a different can of worms.
So, yeah, that's basically "Rom Cooking 101", where most other people releasing roms are at "Rom Cooking 102", there's really nothing to it.

rbrainard said:
Sweet! Thanks folks.
The "Search" function is the most important in any forum, but it does the user no good if they have absolutely positively no idea what to search for... lol
My goal is to take Manup's Eclair_2.1-v1.5 and remove all the .APKs I don't have any use for... Swap the boot.img for the eclair one with the 10MB hack, replace the SpareParts.APK with one that contains "Keep home app in memory" option, etc, etc, etc.
Click to expand...
Click to collapse
The keep in home might not work on 2.1 roms yet.

If this works out... My future plans would include doing this to streamline and modify any ROM of my choice as they are released.
I have absolutely no intention of modifying ROMs for redistribution.
This will be for my own personal needs alone.

Can anyone tell me where the .APK files of Market downloads are stored on the handset?

rbrainard said:
Can anyone tell me where the .APK files of Market downloads are stored on the handset?
Click to expand...
Click to collapse
NEVERMIND!
Found them in /SDCard/BackupRoot/app directory.

Related

Prevent erasure of application after wiping?

I recently started using the new Mobile Defense app (mobiledefense.com) and I'm trying to make it survive a wipe. I moved it to /system/app and the APK stays after a wipe, but it is not recognized as an installed program. Can anybody give me some direction as to how to fix this?
Thanks,
Chris
Anyone? Maybe better in the dev. forum?
grokdesigns said:
Anyone? Maybe better in the dev. forum?
Click to expand...
Click to collapse
can you not cook it into the ROM, i think if you open up the flash and put the APK file into the framework-res.apk in the framework/apps folder
then sign the update.zip and flash it
and with any luck the app should now be integrated into the OS.
EDIT: Ignore this post and read my second one below Daveid's this explains what I meant better than this post does.
I think you were on the right path trying to place the file into the /system/app directory, however.. I believe you want to do it a little differently. I think the command you want to use is:
adb install xxx.apk /system/app
I think that installs it into the specified directory, instead of just copying it there. I could be wrong, but I think that may do it. If not, it may need to be signed with the test-keys in order to be installed in /system.
I am not sure what you tried to copy it (I am assuming you did "adb push xxx.apk /system/app"), but I would try my method out. Don't listen to warrmr, judging by what they wrote, I doubt they really know what they are talking about. The framework-res.apk file is an application in and of itself, that is mainly responsible for the layout and design of the operating system. and there is no framework/apps folder, nor do you put any apks into the framework-res-apk file. So his entire post is pretty bad advice (no offense intended, just if you don't know what you are talking about, maybe you should tell people that to start off with).
EDIT - I guess you can't specify the target using adb install. Let me try to figure this one out real quick.
In fact, I believe I will attempt to install an app using the adb install command listed above, and post back in a few moments to see if it works out ok.
Alright, so I pushed an APK into the /system/app directory, and it worked just fine for me. Showing in the list and all, one thought. Is the program you are trying to do this with a copy-protected program? If so, you may need to be a little underhanded in your actions. Let me try moving one real quick from /data/app and /data/app-private over to /system/app and see what happens, though I doubt it will work.
Nah, doesn't work like that, if this is indeed a copy-protected app, I don't think there is much you can do about it. Sorry.
I am able to copy to /system/app and run it with no problems. The problem is after wiping, the APK is still in the directory, but doesn't show up in my applications.
daveid said:
I think you were on the right path trying to place the file into the /system/app directory, however.. I believe you want to do it a little differently. I think the command you want to use is:
adb install xxx.apk /system/app
I think that installs it into the specified directory, instead of just copying it there. I could be wrong, but I think that may do it. If not, it may need to be signed with the test-keys in order to be installed in /system.
I am not sure what you tried to copy it (I am assuming you did "adb push xxx.apk /system/app"), but I would try my method out. Don't listen to warrmr, judging by what they wrote, I doubt they really know what they are talking about. The framework-res.apk file is an application in and of itself, that is mainly responsible for the layout and design of the operating system. and there is no framework/apps folder, nor do you put any apks into the framework-res-apk file. So his entire post is pretty bad advice (no offense intended, just if you don't know what you are talking about, maybe you should tell people that to start off with).
EDIT - I guess you can't specify the target using adb install. Let me try to figure this one out real quick.
In fact, I believe I will attempt to install an app using the adb install command listed above, and post back in a few moments to see if it works out ok.
Alright, so I pushed an APK into the /system/app directory, and it worked just fine for me. Showing in the list and all, one thought. Is the program you are trying to do this with a copy-protected program? If so, you may need to be a little underhanded in your actions. Let me try moving one real quick from /data/app and /data/app-private over to /system/app and see what happens, though I doubt it will work.
Nah, doesn't work like that, if this is indeed a copy-protected app, I don't think there is much you can do about it. Sorry.
Click to expand...
Click to collapse
It was a suggestion, and as nobody had replied to the thread i thought i would give it a bash with my limited knowlage.
Mabe i should explain what i meant a bit better than i did in my last post and then you can tell me of im talking utter balls so to speak.
Ignore what i said about the framework-res.apk I was being slightly stupid. I was getting confused with where the App folder in the flash.
If you take the update.zip and look in system/app you will see lots of the "core" APK files along with any other ones that the "chef" has decided to cook into it.
If you were to take your APK file and inject it into the update.zip and then sign it, put the update.zip on your phone and then flash that zip file you will have the app pre-installed thus if you do a factory wipe then it will still be there.
It was badly explained and there was no real need to just brush my post off and say it was a useless waste of time. Isnt the ethos of this forum for learning and development, If I was talking utter balls then fine. I also should have bothered to check the content of an update.zip file rather than just relying that i saw the folder somewhere.
warrmr said:
It was a suggestion, and as nobody had replied to the thread i thought i would give it a bash with my limited knowlage.
Mabe i should explain what i meant a bit better than i did in my last post and then you can tell me of im talking utter balls so to speak.
Ignore what i said about the framework-res.apk I was being slightly stupid. I was getting confused with where the App folder in the flash.
If you take the update.zip and look in system/app you will see lots of the "core" APK files along with any other ones that the "chef" has decided to cook into it.
If you were to take your APK file and inject it into the update.zip and then sign it, put the update.zip on your phone and then flash that zip file you will have the app pre-installed thus if you do a factory wipe then it will still be there.
It was badly explained and there was no real need to just brush my post off and say it was a useless waste of time. Isnt the ethos of this forum for learning and development, If I was talking utter balls then fine. I also should have bothered to check the content of an update.zip file rather than just relying that i saw the folder somewhere.
Click to expand...
Click to collapse
I personally understood what you meant the first time and agree. For example, having SuperUser permissions, Spare Parts, and Term emulator "cooked" into JesusFreke's build. Should be able to simply decompile an update.zip, plug in those programs, and resign.

How do i remove apk's out of a rom???

i'm trying to build a rom (credits will be giving) and i'm trying to strip out apks out of the rom so when you flash it you won't have all the go to the comandprompt and do it...
also how do i add apk's to the rom....
once i get this info i can release this unstable rom clueless me is trying to make.
http://forum.xda-developers.com/showthread.php?t=581976&highlight=apps+safe+remove
i know how to do that.
i mean from an alredy built rom. i have a rom that i would like to strip some stuff out of completely. and i can tell you know it's alot of steps. it's easy just time consuming.
i would also like to say that it is very very very fast. i don't mean fast as in "it's ok" i mean fast as in "oh **** it's fast" i would like to share it with everyone but i don't want them to go threw all the steps i had to go threw.
There, I cannot help you, sorry. I flashed the ROM I wanted and tore out what I didn't want after. I've never built my own.
The kitchen doenst allow you to adb pull apk's or adb push apk's?
4SidedDie said:
The kitchen doenst allow you to adb pull apk's or adb push apk's?
Click to expand...
Click to collapse
fresh kitchen lets you pull apks and delete afterwards if you choose.
i thought it doesn't work with 2.1???
Check your ROM thread -- I created an update.zip file for you that will take care of exactly what you want to do.
All anyone has to do is copy the file I created to the SD Card and flash. It will remove all the apps you've listed in your ROM thread. Enjoy.

Is it possible to move/install any .apk to /system/app

sorry for the double post
Curious..........when we install .apks do they alreadly know where to install its self. some apks i can completely move to the /system/app/ and others go straight to /data/app where most apks go and cannot be moved without FCing
IS there a way to force all data that i want to system/app/
just wanted to know if this is possible...would be sweet
TIA
As far as I know if you install them manually you can install them wherever you want. System or data.
While rom building I've put non-standard apps into the system/app folder with no problem.
If you put them in the system/app folder you might need to make sure the permissions are set right.
bp328i said:
If you put them in the system/app folder you might need to make sure the permissions are set right.
Click to expand...
Click to collapse
Well here is my situation.........
i want to use the HTC_IME_lo.apk mod found here http://forum.xda-developers.com/showthread.php?t=624416
then I would like to Remove the stock HTC_IME.apk im sure everyone does this...
then i cook
bake and
flash but it doesnt install
how do i edit the permissions or maybe there is another solution ???????
TIA fellow chefs
DS36 said:
Well here is my situation.........
i want to use the HTC_IME_lo.apk mod found here http://forum.xda-developers.com/showthread.php?t=624416
then I would like to Remove the stock HTC_IME.apk im sure everyone does this...
then i cook
bake and
flash but it doesnt install
how do i edit the permissions or maybe there is another solution ???????
TIA fellow chefs
Click to expand...
Click to collapse
I'm probably out of my league here, but I would guess that you should be able to add in the new keyboard (to the SYSTEM folder), select the new keyboard as your default keyboard (using an SMS app or something), then once it's selected you're good to go. You may be able to even delete the old one at that point without any errors?
However, you mentioned cooking and baking so this is what's over my head. Sorry if this doesn't help you.
Also, like that other dude said... "other" apps like the ones installed from the Market usually go in DATA. I noticed that when some ROMs have Maps installed in SYSTEM and you go to update it, it will install the newer version in DATA. I remember seeing in the logcat during boot that the phone detects both versions and just ignores the older version in the SYSTEM folder.
DS36 said:
Well here is my situation.........
i want to use the HTC_IME_lo.apk mod found here http://forum.xda-developers.com/showthread.php?t=624416
then I would like to Remove the stock HTC_IME.apk im sure everyone does this...
then i cook
bake and
flash but it doesnt install
how do i edit the permissions or maybe there is another solution ???????
TIA fellow chefs
Click to expand...
Click to collapse
I have used that exact keyboard on ROMs in the past. I did a straight install from the SD card using a file explorer, Astro to be exact.
Maybe I'm missing what you are trying to accomplish, but that's how I installed it. I'm not up on the cooking and baking, but maybe it's different if you are trying to add it to the ROM prior to flashing?
To remove the standard HTC_IME.apk, I would install the new one first then go into adb shell and remove it that route.
The only way I know how to change permissions is by using the Root Explorer app. If you have that you mount r/w and navigate to the apk you wanna change. Then you long press it and go to permissions. It looks like all the ones in /system/app are "User: Read, Write; Group: Read; Others: Read". Hope this helped!
zwade01 said:
The only way I know how to change permissions is by using the Root Explorer app. If you have that you mount r/w and navigate to the apk you wanna change. Then you long press it and go to permissions. It looks like all the ones in /system/app are "User: Read, Write; Group: Read; Others: Read". Hope this helped!
Click to expand...
Click to collapse
Great info guys but actually im trying to build a Rom from scratch in the Rom Kitchen.......
when i flash the Rom to my Phone i want the keyboard i want and not the stock one built in at all....i actually remove it while in the kitchen....
so basically if you were to flash this rom to you phone the stock is gone and the custom will be there.....
P.S. I already know about removing the htc ime_mod via ADB after i flash but i want it gone before
TIA everyone great info
ANYBODY ??????

an open letter to chefs

After installing new rom(s) we should install a file manager. Is there any way to install one by default, in order to reach the apk files at sdcard. (Any other solution is also appreciated.)
Rate this Thread
[x] Terrible
Click to expand...
Click to collapse
Srsly, delete it yourself before mods do and more member rage because you're simply not abled to use any of the 239087 fileexplorers from the market/preinstalled ones in almost every rom.
till1988 said:
Srsly, delete it yourself before mods do and more member rage because you're simply not abled to use any of the 239087 fileexplorers from the market/preinstalled ones in almost every rom.
Click to expand...
Click to collapse
What are you talking about? all file explorers work fine for me.
hilmiabi said:
After installing new rom(s) we should install a file manager. Is there any way to install one by default, in order to reach the apk files at sdcard. (Any other solution is also appreciated.)
Click to expand...
Click to collapse
A file explorer comes installed with every single ROM... its called "File Manager"....
Samdeath said:
What are you talking about? all file explorers work fine for me.
A file explorer comes installed with every single ROM... its called "File Manager"....
Click to expand...
Click to collapse
Thanks for repeating what I already wrote, seems like you haven't understood anything, just read it again (;
hilmiabi said:
After installing new rom(s) we should install a file manager. Is there any way to install one by default, in order to reach the apk files at sdcard. (Any other solution is also appreciated.)
Click to expand...
Click to collapse
i request you to shoot yourself to the moon...
hilmiabi said:
After installing new rom(s) we should install a file manager. Is there any way to install one by default, in order to reach the apk files at sdcard. (Any other solution is also appreciated.)
Click to expand...
Click to collapse
google for file manager apk and download it from the web
Thank you all for your nice (!) answers. I am aware of downloading an app from the market or can google for it too. What I have asked was to preinstall one in order not to loose time everytime for searching android market. If there is one preinstalled, why can I not see it? Where is the so called "file manager" hidden? If you answer it I will delete my thread and shoot myself to Pluton
Okay guys be nice... This is the kind of thing I hate when I log in first thing in the morning... A new guy getting his ass ripped apart for asking a question just because you don't like the question or because it's posted in the wrong forum... It's not necessary and it only depreciates the quality of the site...
Not ALL ROMs come with a file manager so it is a legitimate request. Albeit I wouldn't have opened a new thread in Development just to ask for it.
Adao File Manager is a good free file manager that can/should be included in EVERY ROM. I concur that chefs probably should include this since it's very small size-wise and is extremely functional.
That being said, it is entirely the chef's choice.
Now... This thread is located in the wrong section so I'm going to close it but I'm not going to delete it.

[GUIDE]How to make a custom rom?Custom ROMs explained[UPDATE:20-3-2012]

Hey Guys,
I am going to explain some of the files in a custom rom,the small and easy to mod files because the aim is to educate newbies and NOT advanced devs.
Ok,So,I have seen a lot of questions being asked nowadays about making custom roms.This guide is NOT about building a custom rom but about editing and modding it.I am doing this guide taking CM7 as base,not stock,so there might be differences between the roms you choose to mod.Also,I am prone to mistakes here and there.If i made any,please comment about it and i will remove it.Also,please feel free to give your suggestions about making this guide better
What you would need:
Notepad++
WinRar or any other zip/rar manager like 7zip or WinZip
If you want go advanced,you would also need these things
Cygwin
Smali/Baksmali
APK Multi tool or anything like that,i dont care
And most importantly,a brain and eyes(So,Dont ask me stupid questions like,how de fuk du i xtarct? and then in brackets,sorry for my english)
GUIDE:
So,first up,download a rom of your choice(Dont forget to get the permissions for modding from the developer) and extract it.When you extract it,you will see 2 folders and 1 file,it varies.It depends on the contents of the rom.
The folders are:
1.META-INF
2.system
The file:
1.boot.img
So,
Open up system and the first folder you are going to see is 'apps'.
As you already see,this is the place where all the apps go,for the history.You might also see some .odex files below the apps.So,if you remove an app,you should delete the odex file too.If you want to add an app,just drag and drop Take care not to delete each and every app you find,because each of them has their own functions.Also,if you delete contact.apk and replace it with a better dialer like Exdialer,you wont be able to add or delete contacts.So,there are some files better left alone.
If you want to know how to merge them,then use google,there are a lot of tutorials on deodexing.If you want to edit an app,then use APK multi tool,again please use google,lots of tuts on this one too.
Also,you will find an app here and its a main one,systemui.apk By editing systemui.apk,you can get transparent status bars,transparent notification bars,centre the clock.Things like that.The idea with which you edit Systemui.apk and framework-res.apk,thats how your rom is going to look like.These files handle the visual things and they are awesome too.For some systemui mods,refer HERE
Now,some apk files are lib-dependent,meaning,they need certain lib files to work,a few examples are,Swype keyboard,now,swype wouldnt work if this lib file is not included in the rom,libswypecore.so,so if you remove swype,remove this lib file also,because its just a wastage of space and it doesnt do anything.Another example is DSP Manager in Froyo,in GB,it works native,no need to add any applications,but in Froyo,if you add DSP Manager,there are a few lib files that you should add to get them to work.
Next,the 'bin' folder,this guide is aimed at the noobs,so nothing about this,this is a bit advanced stuff,so sorry.
Next up,the 'etc' folder.There are a lot of things that go here.I wont be going to full details for the moment because i am having exams,so no time.However,i will be explaining the easy to explain files.
One thing you will notice is the 'init.d' folder.If you want to add any script like LagFree v2,just put the files of the init.d folder in the script's folder here,nothing else.You dont need to copy any other files like META-INF.
Another file,is CHANGELOG-CM,just as the name suggests its a file giving you changelogs
Another file is NOTICE.html..Its just a file showing copyrights and all that stuff.You wouldnt need to edit that,would you?
Will add more about the other files soon
Next,the 'fonts' folder..You guys need an explanation for that??
Next,'framework' folder.Here you will find framework-res.apk(Obviously,duh...).I wont tell about any other file because this is aimed at new users,not advanced guys.Framework-res is where all the icons in notification bar are.The battery icons,they are all in framework.Also,lockscreen icons
go here..Most of the icons.If i have to start on anything.It would take me weeks,theres so much to write about framework.Also take care not to mess up the framework.Because its like the skeleton(thats what i know ) of a rom.If a framework is incorrectly configured,the rom wont boot.So,keep that in your mind always when you edit framework.
Next,the 'libs' folder,This guide is aimed at newbies,so not touching this part.
And comes 'media'..Most probably you will find 2-3 folders here.Audio,bootanimation.zip and wallpapers.
If you want to change the default,its in build.prop,not here,i will explain that later.If you need to add some audio,its just drag and drop,nothing much,just put them in the right folders,like alarms,ringtones and notifications
If you need to add wallpapers,reszie the pictures to 640x480,thats the resolution that works for ace.Also resize it to 107x80 and save it as another pic with a _small at the end.For eg,the default file is defaultwallpaper.jpg,you make another pic with 107x80 called defaultwallper_small.jpg.
Then,theres the bootanimation.zip..However way you change this thing.Always name it bootanimation.If you want to know how to make a boot animation,then refer freeyourandroid.com
Next up is 'tts' folder..Sorry but i dont know much about this folder.I think this folder contains the languages for the tts app but i am not sure about it.Same goes for 'usr' and 'wifi' folders.But since this thread is aimed at newbies,i dont think there wouldnt a point in writing them up anyway
Next up is build.prop file.Open it with notepad++...build.prop file is pretty self explanatory.
Here you can change the most basic things like the android version that setting shows..Wondered how people are making 2.3.4 look like 4.0.3 in settings??Its build.prop.Also,you can change what 'About phone' shows here.
Other things,you can change things like,how long your wifi scans,how much battery your phone saves while in sleep,Dalvik VM heapsize and default ringtones.If you are wondering what # stands for,it signifies that,that particular tweak is not running,so you can take out the # if its a tweak you like.You could also use it say things like,Additional build properties.You could make it #AdditionalBuildProperties and go to the next line and give your tweaks there.Some build.prop tweaks can be found in slaid480's thread in Galaxy Ace S5830 titled "[MOD]Build.prop tweaks for SGA" or you can go to freeyourandroid.com and find some tweaks there,however the tweaks listed there are universal,so practise caution when playing with build.prop
Now to boot.img..Theres an awesome guide about this in freeyourandroid.com Please have a look at it,because there are lots to write about this one.This is where Cygwin comes in,for instructions on unpacking and repacking and commands and info about boot.img,referHERE and HERE.My summarized version,boot.img is where you can replace kernels.This is where you can make those low-level changes
Then,to META-INF folder.You would find lots of folders here but the file that you would edit consistently is update script.Find it and open it with Notepad++..Unless you edited xbin and bin files,this is not hard to do..Just change around ui_print to what you like.Dont touch anything else if you dont know what you are doing.If you DID edit xbin or bin files,you would need to touch advanced things like symlink tagged ones(I had to give them some sort of a tag)
Updater-Script References and notes:
Now,the updater-script is not something that you should mess around with,a single line of error in the script could get you in trouble.You might also have heard these words,Amend and Edify and wondered what they are,well Edify is the language with which Updater-script is written,while Amend is the language with which Update-Script is written.Now,As far as i know,Ace does NOT support Update script,it just supports Updater-script,so if you are working with kitchen,dont forget to swap the files in META-INF with the the updater-script provided by ketut.kumajaya in Blackhawk thread.So,you should learn to study updater-script of roms and patches before you mess around with them,especially patches here...Now,for example,I made a GPS patch that replaces hw folder in CyanogenMod with my patch.Now,i tell the updater script to delete the hw folder in lib and make another one and put my files in there,you,a normal user will flash it and it would work,but a rom maker without seeing that i have told the updater script to delete hw folder,adds my lib files to the existing lib files,which causes the rom not to boot.So,study the updater-script of patches and see what they do before you jump in and start doing things your own way and mess things up.I will write down a few updater-script commands here and what they do for your convenience now.Here you guys go with it:
mount-mounts a filesystem
is_mounted-checks if a filesystem is mounted
unmount-Unmounts a filesystem
format-format a filesystem (duh..)
delete-Deletes a single file
delete_recursive-Deletes a folder and all of its contents
show_progress-Display flash progress
package_extract_dir-Extract all the files present in a directory to a specified directory
package_extract_file-Extract single file from directory to specified target
file_getprop-dont know much about this one
symlink-Unlinks any existing symbolic links before creating the new symbolic links.
set_perm-Sets permissions for a file,note you dont write rw-r-r here.Its the numbers,for example,for root access,you write 777(right?),not anything else
set_perm_recursive-Sets permissions for a full directory,for example,if you specified a folder,permissions for the folder and all files in it will be set.
getprop-This function returns the value of the property specified. This is used to query platform information from the build.props file.
write_raw_image-Writes a raw image into a partition
apply_patch-Applies patches to a directory -_- (dont you guys understand it just by reading that? )
apply_patch_check-Checks if a file can be patched or if they have been patched
apply_patch_space-Checks if there is enough space to apply a patch
read_file-Reads contents of a file
sha1check-If only data is specified, then the function returns the sha1_hex string of the data. The optional parameters are used if you want to verify that the file you are checking for is one of a list of hashes. It reutrns the hash it matches, or returns nothing if it doesn't match any of the mentioned hashses.
ui_print-It outputs a message to the users while flashing.So,if you see something like 'This is so awesome',know that its not such a big deal and that its just a line of editing here
run_program-Runs a program
ifelse-This is the if-then construct of the Edify scripting language. The truecondition or falsecondition arguments can be a single edify command or a script block. Script blocks can be formed by enclosing the parameter with parenthesis, and seperating the commands with semicolons
abort-duh..it aborts script execution
assert-If condition evaluates to false, stops script execution, otherwise continues processing.
Thats it,dont worry after seeing all these commands.You wont see them all in most of the roms.Here is a list of commands that you usually see in a updater-script.
ui_print
mount
unmount
delete
delete_recursive
package_extract_directory
symlink
show_progress
set_perm
set_progress
set_perm_recursive
getprop
run_program
assert
Now on making it a flashable zip,archive them to a zip file.Get a signer here: http://forum.xda-developers.com/showpost.php?p=6050996&postcount=2
NOTE:Signing is not necessary
The instructions on using that are given with it.Just rename it back to the name you like after signing it.
Thanks to everyone.Especially,freeyourandroid,XDA and TeamCooper and all members of XDA developers and to me (well,you are the one who does that,remember that button Jk )
Hope this helped you guys..Again,this is a thread aimed at educating the new members,not advanced guys.Sorry if i missed anything or made a mistake..Please give me suggestions on this too.Will add more info to this thread when i have the time[/SIZE]
good guide
Looks good
Very helpful.
Fix those grammatical errors !
*grammar nazi alert*
Herpderp Adreno + Tegra.
gOOD guide overall but you shiould make it more advanced
EmoBoiix3 said:
Fix those grammatical errors !
*grammar nazi alert*
Herpderp Adreno + Tegra.
Click to expand...
Click to collapse
Aah....grammar hitler
slaid480 said:
gOOD guide overall but you shiould make it more advanced
Click to expand...
Click to collapse
Yep..I know that..I will work on it but i dont have much time now
This is a great guide , it'll help me a lot ^_^ thanks.
Great tut dude
Is an update needed??I dont think so because it didnt even stay on the front page for a day
Awesome guid please add some more advanced features and custom rom building guide also if u can. :thumbup:
Sent from my GT-S5830 using Tapatalk
The bad effect will be more and more new custom firmware which is actually just a re-branding
ketut.kumajaya said:
The bad effect will be more and more new custom firmware which is actually just a re-branding
Click to expand...
Click to collapse
What???I dont get you
mor_1228 said:
Awesome guid please add some more advanced features and custom rom building guide also if u can. :thumbup:
Sent from my GT-S5830 using Tapatalk
Click to expand...
Click to collapse
I will add them by tonight or something like that when i have time..Not much time now,stupid exams Oh,i hate them
Originally Posted by ketut.kumajaya
The bad effect will be more and more new custom firmware which is actually just a re-branding
Prawesome said:
What???I dont get you
Click to expand...
Click to collapse
Click to expand...
Click to collapse
i got what he is trying to say.
he is saying that due to rom building guides noobs will also learn how to build custom rom but they may not have that knowledge skills to make a distinguished ROMS they will be building common roms with little or no difference, difference will be only that different people will release rest things will be kind of same only no drastic changes.
hope i am right
mor_1228 said:
i got what he is trying to say.
he is saying that due to rom building guides noobs will also learn how to build custom rom but they may not have that knowledge skills to make a distinguished ROMS they will be building common roms with little or no difference, difference will be only that different people will release rest things will be kind of same only no drastic changes.
hope i am right
Click to expand...
Click to collapse
Maybe..But i am tired of questions on building custom roms..Recently,there were a lot of questions on building custom roms
Yeah.. i'm a newby become smarter... thx for share...
Sent from my GT-S5830 using xda premium
I will add more info about the boot.img and framework-res.apk tonight
Nice work, thank you
If you have time, can you please post a guide on how to sign APK files?
For example, if i want to edit an icon of an app, i change the icon in the .apk but then i have to sign it, how can i do it?
On the net i found lots of guides and programs but none of them worked for me...
Anyway good work

Categories

Resources