I've done a lot of theme edits on my phones by decompiling with the NinjaMorph app, editing drawable-hdpi, then compiling again with NinjaMorph.
This doesn't seem to be the way to go for tabs though.
Can someone give me a quick intro?
-What programs to use
-Where the files are that I need to edit
-anything else I might need
I'm pretty handy when it comes to photoshop and I would like to incorporate that into customizing my tab like I did for my phones.
Aha! I found it....I couldn't find what i was looking for in framework-res with Ninjamorph so i looked around a bit and found them in SystemUI under /system/app...
Gonna hop on photoshop and see if changing one of them works.
F**k all of you who knew how to do it and didnt tell me!!
---loljk
Running into a problem now...
When I repack SystemUI with ninjamorph, it force closes.
Does that mean I'll get an error with framework-res too?
Would metamorph work instead?
When i repack framework-res, it goes through all the are you sure you want to replace and do you want to zipalign and all that...then when i get through those, it gets stuck at "Please Wait...Working, please wait..."
Tivo7 said:
When i repack framework-res, it goes through all the are you sure you want to replace and do you want to zipalign and all that...then when i get through those, it gets stuck at "Please Wait...Working, please wait..."
Click to expand...
Click to collapse
Lol. All lonely in this thread bro? Alright, so screw ninjamorph or whatever you're using. Go and get your adb all setup (Google it) and then get apktool honeycomb addition that can be found in our dev thread. Tphillips has modified it to work with honeycomb really nicely. Then when you have that all setup. I'll try my best to help you figure things out bro. If you think you have some issues setting it all up, just Google it, there's sooo much info on this stuff that will get you through it pretty easily. Sorry for not responding sooner. Been really busy.
Try looking at this:
http://forum.xda-developers.com/showthread.php?t=1265213
It details how to do one specific thing to Browser.apk, but the guide can be used for any system apk, including systemui.apk and framework-res.apk.
I'm sorry that I don't have time to go further into this - there has been a death in my immediate family.
task650 said:
Lol. All lonely in this thread bro? Alright, so screw ninjamorph or whatever you're using. Go and get your adb all setup (Google it) and then get apktool honeycomb addition that can be found in our dev thread. Tphillips has modified it to work with honeycomb really nicely. Then when you have that all setup. I'll try my best to help you figure things out bro. If you think you have some issues setting it all up, just Google it, there's sooo much info on this stuff that will get you through it pretty easily. Sorry for not responding sooner. Been really busy.
Click to expand...
Click to collapse
All good bro.
Hooolm said:
Try looking at this:
http://forum.xda-developers.com/showthread.php?t=1265213
It details how to do one specific thing to Browser.apk, but the guide can be used for any system apk, including systemui.apk and framework-res.apk.
I'm sorry that I don't have time to go further into this - there has been a death in my immediate family.
Click to expand...
Click to collapse
Thanks for the link.
Sorry for your loss.
Alright I've been able to decompile, edit whatever, and compile again.
I followed the guide that hoolm posted and have browser, framework-res, and twframework-res in my placeapkhere folder.
I also now have a unsignedbrowser.apk. This is my newly edited one right?
I'll be getting some use out of this thread/info. Thanks guys.
Sent from my SGH-T959 using xda premium
MINUS Stl said:
I'll be getting some use out of this thread/info. Thanks guys.
Sent from my SGH-T959 using xda premium
Click to expand...
Click to collapse
You're welcome lol...i have yet to get all this working though
I signed my update.zip and tried to flash it but apparently the newer versions of CWM don't work with amend scripting and i need to use edify. I found the counterparts of amend for edify and changed the coding manually and changed the name of update-script to updater-script. I then read that it needs an update-binary too so i found a download for that and put that file with my updater-script (not sure why or what its for, its just gibberish).
Tried to flash and get:
Code:
Installing update...
E:Error in /sdcard/update.zip
(Status 0)
Installation aborted
Here's what i changed to go from amend to edify
I had a file called update-script with..
Code:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
set_perm_recursive 0 0 0755 0644 SYSTEM:app
show_progress 0.1 10
And I replaced it with a file called updater-script with..
Code:
show_progress (0.1 0);
package_extract_dir("system", "/system");
set_perm_recursive(uid, gid, dmode, fmode, “/system/app”);
show_progress (0.1 10);
And i added the attached update-binary file (unzipped of course)
Tivo7 said:
I signed my update.zip and tried to flash it but apparently the newer versions of CWM don't work with amend scripting and i need to use edify. I found the counterparts of amend for edify and changed the coding manually and changed the name of update-script to updater-script. I then read that it needs an update-binary too so i found a download for that and put that file with my updater-script (not sure why or what its for, its just gibberish).
Tried to flash and get:
Code:
Installing update...
E:Error in /sdcard/update.zip
(Status 0)
Installation aborted
Click to expand...
Click to collapse
try this one and see if it works.
http://dl.dropbox.com/u/22014441/updater-script
http://dl.dropbox.com/u/22014441/update-binary
Hmm...still getting the same error.
Is there a certain way i need to zip the file?
I hope its not a problem with my compiled files >.<
EDIT: Now that i look at it again...its a different error. The first time i was getting"(status 0)" now i get "(status 6)"
Oh wait...don't you need to know this for the updater script...
I'm editing /system/app/Browser.apk
I did something small with a file somewhere and i cant even remember what i did....but now I get Error (Status 4)
Here are my update zips signed and unsigned.
I edited a PNG in /system/app/Browser.apk using hoolms guide posted on page 1.
After i edited and compiled with APK manager, i got a file called unsignedBrowser.apk (or something like that). I copied that to my METAINF system apps folder and renamed it Browser.apk (you can see exactly where via the update zips i posted previously.
I didn't use the apk signing thing within APK Manager, i used a seperate program called ZipSigner.exe
If it would be better for me to sign via APK manager, please point me to a guide explaining how to do so.
now no matter what I try i get this error
Code:
Installing Update...
E:Error in /sdcard/update.zip
(Status 4)
Installation aborted.
Any idea what is going wrong?
I followed this guide
http://forum.xda-developers.com/showthread.php?t=1265213
but instead of editing that xml file to change desktopUA or whatever it was for, i edited a PNG in drawable-mdpi.
I deleted the counterpart of that specific PNG in the keep folder, and I DIDNT delete /keep/resources.arsc because I didnt edit an XML file (is that the right way to go?)
one thing you should do is manually push you apks that you modify through adb or root explorer. its an easier way then having to flash everytime you wanna see if something works. i manually pushed the browser apk that you mad. but i see no different at all than stock browser. what did you attempt to change?
Related
This has happened twice to me:
1) I modify a xml file in framework-res.apk (using apktool)
(I modified the two slide lock screen xmls. apktol rebuilt it without any errors)
2) push the rebuilt apk back. (didnt sign it)
3) reboot
During the reboot i get a ton of app permission errors, and then a "Failure starting core service" error, a few seconds later the phone restarts
The permission errors ("no group null"):
http://pastebin.com/p2ut8MmB
And then the actual errors:
http://pastebin.com/Hg4M9jcA
Fixed by:
1)pushing the backup framework-res.apk back.
2)fixing UID mismatches using the utility in AMON-RA's recovery
Solution: http://forum.xda-developers.com/showpost.php?p=6334647&postcount=5
Questions:
What am I doing wrong?
What triggers the permission errors?
My suggestion didn't work, see below for alternative.
I don't know much about all these signing mechanisms, but I had exactly the same problems when I was testing framework-res rebuilding capabilities of apktool. Tried to sign it using testsign, but had no luck.
I searched for help on IRC and prash told me that I must testsign update.zip file, not framework-res.apk. I did as he said and it worked for me
Brut.all said:
I don't know much about all these signing mechanisms, but I had exactly the same problems when I was testing framework-res rebuilding capabilities of apktool. Tried to sign it using testsign, but had no luck.
I searched for help on IRC and prash told me that I must testsign update.zip file, not framework-res.apk. I did as he said and it worked for me
Click to expand...
Click to collapse
Thanks for the info. Great tool by the way
Will try the update.zip method, and the method djmcnz mentioned.
Update:
Brut.all's tip worked!! thanks again man. I learnt how to create update zips now
Also tried djmcnz's test but it did not work.
update 11/19/2010:
All you need to do is copy/install the file while the OS is not running. The signing part was only needed to allow the update to be flashed
Since AmonRa 2.0 has an option to turn off signature checking all you need to do is
1) update whatever you need in framework-res.apk
2) put the new framework-res.apk in any update.zip whose script copies it to /system/framework. (get a CM nightly if you dont have one)
3) reboot to recovery
4) turn off update signature checking (options>)
5) flash the update. and reboot.
Hmm, is this nexus specific? I'm trying to update framework-res.apk
on motorole milestone, but I get only crashreport after my device boots up.
I jarsign and zipalign this apk and set mode 644 before reboot.
herrlado said:
Hmm, is this nexus specific? I'm trying to update framework-res.apk
on motorole milestone, but I get only crashreport after my device boots up.
I jarsign and zipalign this apk and set mode 644 before reboot.
Click to expand...
Click to collapse
see #3 "..I must testsign update.zip file, not framework-res.apk. I did as he said and it worked for me "
OK Thx, do not need we to zipalign framework-res.apk?
Lado
rori~ said:
see #3 "..I must testsign update.zip file, not framework-res.apk. I did as he said and it worked for me "
Click to expand...
Click to collapse
I've seen it asked quite a few times now, so I thought I would share how I've been creating my own themes for the Nook. This is a quick and dirty guide as I've almost got it down to a science for quick, keyboard shortcut, theming.
Things you'll need
Photoshop or The Gimp for editing files
Android SDK so you can push and pull files to/from the Nook.
draw9patch app in the Android SDK /tools folder for creating 9.png files
APK Manager (http://forum.xda-developers.com/showpost.php?p=6703735&postcount=1)
Notepad++ or some other text editor for editing XML files. After using Notepad++ on this, I'd highly recommend it though
An attention span
Some restraint
This is a rather good guide that helped me get started. My only complaint is that it is almost to complicated and includes more information than what is needed for a basic theme.
http://forum.xda-developers.com/showthread.php?t=916814
Getting Started:
Download the Android SDK and get it installed.
Download APK Manager
ADB pull /system/framework/framework-res.apk
Make a copy of the framework-res.apk files as a back-up in case you need to revert
Copy the framework-res.apk file to the /place-apk-here-for-modding folder under the APK Manager folder
Launch the APK Manager Script.bat file
Type in 22 to select the default project
Type in the number next to framework-res.apk in the list to select it as your project
Select 1 to extract the files
Select 9 to decompile (this is what makes the XML files readable)
Go to the /projects/framework-res/res folder under the APK Manager folder to view all the files from the theme
Images are located in the /drawable-mdpi folder. XML files are located throughout, but the files specific to layout are under the /layout folder. To change global settings, such as color codes and strings, edit the XML files under the /values folder.
Creating custom PNG files: If you are using Photoshop, use the Save For Web feature when saving. Save the image as PNG-24. Select None under the Matte option. Select None under Metadata.
A word on 9.png files: 9.png files are files that can be stretched by the OS. There is a 1 pixel border all the way around the image. In that 1 pixel border, you'll notice solid black lines here and there. The black pixels indicate which portions of the image are to be stretched. You can add this border and the black pixels in Gimp or Photoshop, or you can open the file the draw9patch app under the Android SDK /tools folder. The draw9patch app will actually display how the image will look when stretched as you add the black pixels around the border, so it can come in handy and it's what I prefer to use. You can open and edit .9.png files in draw9patch and edit the border even after you save the file.
Once you have all your files edited, recompile the APK package with APK Manager
Option 11
y
y
It will tell you to delete the files under the /keep folder that you have edited. Delete any images and XML files, from the /keep folder, you edited under the /projects folder. If you edited XML files, delete the /keep/res/resources.arsc file as well
Press any key to continue and let the script finish
In a separate command line window, mount your Nook's /system folder (adb shell mount -o remount,rw /dev/block/mmcblk1p2 /system)
back in APK Manager, select 8
/system/framework/framework-res.apk
Reboot your Nook
Boot Loop: If you messed something up and are stuck in a boot loop, most of the time you can still mount your Nook, push the original framework-res.apk to it and reboot. Or, you can use an unedited version of the CWM flashable zip file from the link below.
NOTE: it is not smart to push your framework-res.apk file to the Nook. I've learned the hard way that you can only do this about 10 times before you run out of memory and can no longer boot your Nook until you reflash Froyo again.
I'd recommend only a few flashes on a bare bones copy of Froyo until you feel comfortable with working on the framework theme. After that, I'm attaching a base, flashable zip for you to use in CWM so you can flash the theme instead of pushing. This will prevent you from getting stuck in a boot loop (unless you do something wrong yourself).
To add your framework-res.apk file to the zip, just open the zip and replace the /system/framework/framework-res.apk file (I'd recommend 7zip).
A Few Goodies
I'm including all of the PSD files I use to edit and create themes. If you want to create your own, custom theme, these will get you started. The only downside to these PSD files is that they are at the MDPI scale. If you want to create an HDPI theme, you'll need to increase the sizes.
Link to PSD files for creating your own theme, plus the flashable CWM zip file:
http://jjis.me/android-theme-templates
Hey man, I know you theme the froyo roms, but Im attempting a theme for the Phiremod CM7 and I cant seem to get anything but splash hangs and bootloops. I theme CM7 for the hero so I know my way around that, but Im wondering if theres something about the Nook that I have to do differently. For instance what is the mount.sh file you have in the tools folder on your themes? Is that only for froyo? Any help you could give me would be appreciated.
PMDColeslaw said:
Hey man, I know you theme the froyo roms, but Im attempting a theme for the Phiremod CM7 and I cant seem to get anything but splash hangs and bootloops. I theme CM7 for the hero so I know my way around that, but Im wondering if theres something about the Nook that I have to do differently. For instance what is the mount.sh file you have in the tools folder on your themes? Is that only for froyo? Any help you could give me would be appreciated.
Click to expand...
Click to collapse
CM7 is a little different than the stock builds of Froyo and others. They use the theme manager for it. If you are looking to theme for CM7, I'd suggest learning what it is needed to package it for the theme manager. I spent about an hour one day trying to find documentation, but couldn't. If can, or have it, please let me know where to find it so I can link to it and use it myself.
With that said, it appears that CWM does not flash, or at least mount, the same on the Nook. I'm assuming it's because it's on the external SD card and not internal. The mount.sh file was borrowed from samuelhaff's flashable ROMs. It actually tells CWM to mount the internal memory and flash to it.
If you are flashing without the mount.sh, it could be why you're getting the boot loops.
CWM uses edify language instead of amend. Again, it took me forever to find little to no documentation on it.
If you are using the mount.sh file and you are still getting stuck in a boot loop, I did discover a little issue with it yesterday. I was trying to use it to flash my new theme without the Vending.apk mod and I kept getting stuck in a black screen during start up. I forgot my edify code deletes the Vending.apk file so that was causing my problem. If you know how to edit the file, go for it. If not, I'm planning on updating it to correct this. If you need to, for now, just copy the Vending.apk to your flashable zip file.
It deletes the services.jar file as well. This was a requirement on Froyo since the status bar text is black by default. The services.jar file has to be edited to change the status bar text to white. Since CM7 does not need that change, try pushing just the framework-res.apk file, reboot and see if you boot successfully. If so, that is more than likely your problem.
wretchedlocket said:
CM7 is a little different than the stock builds of Froyo and others. They use the theme manager for it. If you are looking to theme for CM7, I'd suggest learning what it is needed to package it for the theme manager. I spent about an hour one day trying to find documentation, but couldn't. If can, or have it, please let me know where to find it so I can link to it and use it myself.
With that said, it appears that CWM does not flash, or at least mount, the same on the Nook. I'm assuming it's because it's on the external SD card and not internal. The mount.sh file was borrowed from samuelhaff's flashable ROMs. It actually tells CWM to mount the internal memory and flash to it.
If you are flashing without the mount.sh, it could be why you're getting the boot loops.
CWM uses edify language instead of amend. Again, it took me forever to find little to no documentation on it.
If you are using the mount.sh file and you are still getting stuck in a boot loop, I did discover a little issue with it yesterday. I was trying to use it to flash my new theme without the Vending.apk mod and I kept getting stuck in a black screen during start up. I forgot my edify code deletes the Vending.apk file so that was causing my problem. If you know how to edit the file, go for it. If not, I'm planning on updating it to correct this. If you need to, for now, just copy the Vending.apk to your flashable zip file.
It deletes the services.jar file as well. This was a requirement on Froyo since the status bar text is black by default. The services.jar file has to be edited to change the status bar text to white. Since CM7 does not need that change, try pushing just the framework-res.apk file, reboot and see if you boot successfully. If so, that is more than likely your problem.
Click to expand...
Click to collapse
Thanks for the reply! I actually took yours apart and was able to correct my script and I noticed that the delete services.jar line was causing issues as well. If you can I'd like you to take a look at the updater script after I edited it and see if you see any errors. It's attached below. I have gotten the framework and other themed apps to flash fine, but for some reason the themed market will not install. After flash it is in the /system/app folder as vending.apk. but it doesn't actually replace the stock market anywhere else. I actually spent several hours today trying to get the market back because I got frustrated and went all delete happy in root explorer, lol.
As far as Theme Chooser goes, here is a decent tutorial, but I haven't taken the time to really try and change my whole MO to use it. I theme the aospCMod for the heroc without using the chooser app. You can also get some good tips on building themes for the chooser in the #aospbot irc channel. A few of the guys in there build themes for it.
View attachment updater-script.zip
PMDColeslaw said:
Thanks for the reply! I actually took yours apart and was able to correct my script and I noticed that the delete services.jar line was causing issues as well. If you can I'd like you to take a look at the updater script after I edited it and see if you see any errors. It's attached below. I have gotten the framework and other themed apps to flash fine, but for some reason the themed market will not install. After flash it is in the /system/app folder as vending.apk. but it doesn't actually replace the stock market anywhere else. I actually spent several hours today trying to get the market back because I got frustrated and went all delete happy in root explorer, lol.
As far as Theme Chooser goes, here is a decent tutorial, but I haven't taken the time to really try and change my whole MO to use it. I theme the aospCMod for the heroc without using the chooser app. You can also get some good tips on building themes for the chooser in the #aospbot irc channel. A few of the guys in there build themes for it.
View attachment 546902
Click to expand...
Click to collapse
Stupid question, but you are copying the vending file as Vending.apk and not vending.apk, correct?
Also, if you're using my themed market, there are only two icons that are customized. The rest looks stock.
Sent from my SAMSUNG-SGH-I897 using Tapatalk
wretchedlocket said:
Stupid question, but you are copying the vending file as Vending.apk and not vending.apk, correct?
Also, if you're using my themed market, there are only two icons that are customized. The rest looks stock.
Sent from my SAMSUNG-SGH-I897 using Tapatalk
Click to expand...
Click to collapse
Yeah the file is Vending.apk but its my themed market.
Sent from my NookColor using Tapatalk
PMDColeslaw said:
Yeah the file is Vending.apk but its my themed market.
Sent from my NookColor using Tapatalk
Click to expand...
Click to collapse
Sorry for the delay in response. I had too many things to do with the family yesterday.
If you haven't got this working yet, I'd suggest trying to start with removing just the /system/app/Vendind.apk file via the updater-script. If it works, then go back in and add each additional line until you run into problems again. At that point, you'll know what your problem is.
Since everything else (framework-res.apk, services.jar, etc.) gets replaced successfully, leave those lines alone. I'd just start with the basics of replacing the Vending.apk first and then work your way back up from there.
I want to learn how to theme. I've read this guide http://forum.xda-developers.com/showthread.php?t=916814
I Think i understand the process of editing images, I'm not a noob when it comes to photoshop, but i get a little frustrated when it comes to the topic of signing. I have a windows vista system, and section two of this https://docs.google.com/Doc?docid=0AcdxIJRSH9ypZGZzc2pxNDlfMjdnazk4OHNxZA&hl=en states that signing in vista causes bootloops unless you take other steps. The directions for XP seem so straight forward, is there a way to sign without all the hassle that vista seems to cause?
I've been told that if you use another theme for a base, resigning is not needed. I'm a noob at this also, really wanting to learn.
thenaut said:
I want to learn how to theme. I've read this guide http://forum.xda-developers.com/showthread.php?t=916814
I Think i understand the process of editing images, I'm not a noob when it comes to photoshop, but i get a little frustrated when it comes to the topic of signing. I have a windows vista system, and section two of this https://docs.google.com/Doc?docid=0AcdxIJRSH9ypZGZzc2pxNDlfMjdnazk4OHNxZA&hl=en states that signing in vista causes bootloops unless you take other steps. The directions for XP seem so straight forward, is there a way to sign without all the hassle that vista seems to cause?
Click to expand...
Click to collapse
When it comes to basic themeing, you don't need to sign anything....its a matter of extracting and re-zipping the apk without signing it so it keeps its original signature...then you would add all your themed apks in a CWM flashable zip(that isn't signed either).....use APK Manager....it works wonders for theme devs
Mr. Apocalypse said:
When it comes to basic themeing, you don't need to sign anything....its a matter of extracting and re-zipping the apk without signing it so it keeps its original signature...then you would add all your themed apks in a CWM flashable zip(that isn't signed either).....use APK Manager....it works wonders for theme devs
Click to expand...
Click to collapse
Thanks man,
If i'm understanding you correctly you are basically saying that if i take from an existing theme i don't have to sign. but i create my own theme based off of a rom i need to sign it?
EDIT: nevermind, i mixed both responses up and with my question. i'm a little off today
thenaut said:
Thanks man,
If i'm understanding you correctly you are basically saying that if i take from an existing theme i don't have to sign. but i create my own theme based off of a rom i need to sign it?
EDIT: nevermind, i mixed both responses up and with my question. i'm a little off today
Click to expand...
Click to collapse
Ok...let me try to clarify this...if you're new to theme developing, get "signing" out of your head
You would only need to sign an apk if it was being installed...
When you theme, nothing is being "installed", all of the original apks that are in your /system/ directory are replaced with your themed ones while flashing....
YOU NEVER SIGN AN APK THAT IS BEING SENT TO /system/ DIRECTORY
In reality, no themed apks are signed, because they are sent to the /system/ directory....its just a matter of extracting the stock apk, make your mods, and re-zip. As a said above, if you use Apk Manager, this will be a breeze
Mr. Apocalypse said:
Ok...let me try to clarify this...if you're new to theme developing, get "signing" out of your head
You would only need to sign an apk if it was being installed...
When you theme, nothing is being "installed", all of the original apks that are in your /system/ directory are replaced with your themed ones while flashing....
YOU NEVER SIGN AN APK THAT IS BEING SENT TO /system/ DIRECTORY
In reality, no themed apks are signed, because they are sent to the /system/ directory....its just a matter of extracting the stock apk, make your mods, and re-zip. As a said above, if you use Apk Manager, this will be a breeze
Click to expand...
Click to collapse
Thanks, You've helped a lot. can't wait to start. I have to go to work though, so tomorrow, hopefully.
thenaut said:
Thanks, You've helped a lot. can't wait to start. I have to go to work though, so tomorrow, hopefully.
Click to expand...
Click to collapse
If you have any other questions, PM me....i'm always willing to help someone who is willing to learn.
What I do when i want to change something... example I made my own lock screen.
If it was already explained how to do this... im sorry for wasting your and mine time... I only have about 5 minutes so I cant read everything before i post this... but this is what i do when i want to edit the theme.
I put the rom on my computer and extract it... locate the files I need to edit, (they are alwas going to be in the res folder of an extracted .apk and then in a drawable folder.) I take the files i want and I edit them. put them back on my phone... copy the framework-res.apk from systems>framework>framework-res.apk and then put it in a folder i created on my sdcard.
Using Astro File Manager I select my edited files and copy them.... then click on framework-res.apk and select browse and past my edited files into the framework-res.apk then using root explorer I then copy my edited framework-res.apk and paste it back in system>framework>framework-res.apk
I'm trying to change the icon in my status bar that is displayed when i'm playing rhapsody. i've modified the notification icons in the .apk that i found in data/app. I created a .zip using the structure /META-INF/com/google/android/updater-script. in the main folder where META-INF resides i have a folder called data and inside that i have the modified com.rhapsody-1.apk. my updater script is as follows:
ui_print("Applying my update";
run_program("/sbin/busybox", "mount", "/data";
package_extract_dir("app", "/data/app";
run_program("/sbin/busybox", "umount", "/data";
i zipped everytihng up, put it on the root of my sd card. I then used zipsigner2 (from the market) to sign the .zip. Rebooted to recovery, made a back up, navigated to install the .zip from the sd card, flashed and it looked like it was working but the last line of the script simply said "installation aborted". Any help or guidance on where i'm failing here would be greatly appreciated.
thanks in advance!
Swyped Thunder coming at you
Swyped Thunder coming at you
Best advice I can give you is use an existing zip.
I have a template zip if you would like a copy.
Just insert your apk into it and flash.
D
dsb9938 said:
Best advice I can give you is use an existing zip.
I have a template zip if you would like a copy.
Just insert your apk into it and flash.
D
Click to expand...
Click to collapse
I concurr. That is how I started to make mine.. Much easier..
dsb9938 said:
Best advice I can give you is use an existing zip.
I have a template zip if you would like a copy.
Just insert your apk into it and flash.
D
Click to expand...
Click to collapse
Would love your template of you don't mind.
Swyped Thunder coming at you
hotelmrrsn said:
Would love your template of you don't mind.
Swyped Thunder coming at you
Click to expand...
Click to collapse
Whatever template zip yopu end up with, just check your ROM, some mount things differently etc. some mount ext3, some mount using busy box, some mount with certain permissions.
Another way, is to grab a mod, or theme that someone has done for your ROM you are using and then just delete out all the apps and such and use that for a base zip. Of course edit the update-script file as well.
Gunthermic said:
Whatever template zip yopu end up with, just check your ROM, some mount things differently etc. some mount ext3, some mount using busy box, some mount with certain permissions.
Another way, is to grab a mod, or theme that someone has done for your ROM you are using and then just delete out all the apps and such and use that for a base zip. Of course edit the update-script file as well.
Click to expand...
Click to collapse
I tried this with a uot zip buy the directory I need wasn't included, and want sure just how to update the script
Swyped Thunder coming at you
hotelmrrsn said:
I tried this with a uot zip buy the directory I need wasn't included, and want sure just how to update the script
Swyped Thunder coming at you
Click to expand...
Click to collapse
I can upload one tonight if need be.
using something like 7Zip open a flashable zip in view. Dont extract it.
You will see at least two folders. The one you want is the Manifest folder. go through that one and find the updater-script. One will be the binary, dont edit it. the othe ris the actual script, pull it out by dragging it out and use a text editor of some type to edit it. once done, drag file right back into the 7Zip you already have open.
Gunthermic said:
I can upload one tonight if need be.
using something like 7Zip open a flashable zip in view. Dont extract it.
You will see at least two folders. The one you want is the Manifest folder. go through that one and find the updater-script. One will be the binary, dont edit it. the othe ris the actual script, pull it out by dragging it out and use a text editor of some type to edit it. once done, drag file right back into the 7Zip you already have open.
Click to expand...
Click to collapse
really appreciate it!
Just got a PM about this and I figured since I spent 30 minutes typing this out I would share. Please click +thanks if this helps anyone. Enjoy
Heres a quick QUICK tutorial. Before we begin have android sdk installed to your computer in the C:/ area. You will want it there, not in the program files area. Next install both java platforms.. Android SDK Setup Tutorial. There is a tutorial on how to set it up.
SBF to stock(BARE BONES STOCK! NOTHING ELSE)>Install ROOT>Install Bootstrap>Make Nandroid Backup of STOCK system(This way you can go back if you mess up)>DEOdex system/app & system/framework(see note 1)>Put deodexed files in correct folders of a flashable .zip(see note 2)>Make/Edit an update-script(see note 3) and put file in the META-INF/com/google/android/ folder>sign the .zip(see note 4)>flash
Tools
Note 1:
Use the tool ultimatex or w/e in the tools provided to deodex your phone. It will pull the system/app and system/framework files from your phone and deodex them for you.
Note 2:
Flashable .zip tree
_Name_.zip
-----data(optional)
--------app
-----META-INF
--------com
-----------google
--------------android
-----system
--------app
--------framework
^^^these are folders in the .zip and the tree will look almost identical to this when you go to flash.
Note 3:
Amend&Edify scripting
There is a good tutorial on how to make the update-script. Make sure you download and install Notepad++ and use that as the text editor. NOT regular notepad! Not Wordpad! Example for update-script for this tutorial is:
Filename: update-script (save as any file or whatever, not RTF or anything else, click down arrow and select all or whatever doesn't have an extension(ie we don't want .rtf or .txt) If you are having trouble saving this file, download a flashable .zip and use its update-script.
Note 4:
Here is the tool I use to sign .zip files to flash, as well as a tutorial.
http://androidforums.com/developer-101/8665-how-signing-roms.html
delete_recursive SYSTEM:app
delete_recursive SYSTEM:framework
copy_dir PACKAGE:system SYSTEM:
set_perm_recursive 0 0 0755 0644 SYSTEM:app
set_perm_recursive 0 0 0755 0644 SYSTEM:framework
Click to expand...
Click to collapse
after you sign the .zip just flash and you should be set.... hope this helps.
There is some very useful stuff here. I'm glad you have the link to naven's post with android tools. That's where I got started. I have SDK and set up already but always good to check out other ways of getting things done. Thanks.
hedwig34 said:
There is some very useful stuff here. I'm glad you have the link to naven's post with android tools. That's where I got started. I have SDK and set up already but always good to check out other ways of getting things done. Thanks.
Click to expand...
Click to collapse
no problem... Im at work with no way of deving the rom so I'm constantly searching for this or that or looking at different ways to do things. I was going to make a update-script tutorial but I found that one.. Maybe ill do one just on permissions with the provided link to get everything else you would need, maybe compile a super thread... idk im just bored haha
Peperm1nt said:
no problem... Im at work with no way of deving the rom so I'm constantly searching for this or that or looking at different ways to do things. I was going to make a update-script tutorial but I found that one.. Maybe ill do one just on permissions with the provided link to get everything else you would need, maybe compile a super thread... idk im just bored haha
Click to expand...
Click to collapse
I was a work myself when responding to your first post. I tend to look around a lot during the day too. I usually end up emailing links to tutorials or other various to myself so I can check them out later at home.
I see that you have ultimatex on your list too. I used that to deodex my stock 2.3.4. Then I saw your post where you were sharing 2.3.4 already deodex'd. If you would have posted your deodex image sooner I probably wouldn't have tried it myself and just used yours. Good thing though cause I learned to do it for myself.
I'm really starting to get into the android thing now. Keep wanting to learn more about how it runs.
hedwig34 said:
I'm really starting to get into the android thing now. Keep wanting to learn more about how it runs.
Click to expand...
Click to collapse
I've rooted/modded all kinds of other devices(non-phone), but I've never went as in depth as I have with android. I've learned a lot and these tuts/references/roms I have put up are things I was looking for in the beginning. I just would like more development on the x2 and this is, I guess, my way of getting more into it.
I'm Still Looking For The Answer To Creating The "update-binary" I Know The Syntax For Amend And Edify.
Wondering....
I have an old G4 PowerPC Mac I am wanting to repurpose. I have never been able to get the SDK installed and working on my Windows or Linux machines... I want to install Ubuntu PPC on that machine and am wondering if I will have any problems with getting the SDK working since it is not an Intel/AMD processor... Any thoughts?
you get the binary in your system folder
Sent from my DROID X2 using Tapatalk
thanks for perfect tut.
i have some question:
1.i want to add fonts ? just adding to system/fonts ?
2.how to add update binary?
3.How To sign the zip?
thanks.
MikeJ92YJ said:
I'm Still Looking For The Answer To Creating The "update-binary" I Know The Syntax For Amend And Edify.
Click to expand...
Click to collapse
Good to see ya Mike
How's that unlock treating ya?
I decided I'm getting a computer before.a new phone. I really need one lol
How to sign .zip
http://androidforums.com/developer-101/8665-how-signing-roms.html
OP updated.
Tapin the Talk on the xSquared
Peperm1nt said:
you get the binary in your system folder
Sent from my DROID X2 using Tapatalk
Click to expand...
Click to collapse
I can't find anything there. Where is it peperm1nt?
Preinstall folder...or you can grab the one out of my ROM's .zip
Tapin the Talk on the xSquared
Peperm1nt said:
Preinstall folder...or you can grab the one out of my ROM's .zip
Tapin the Talk on the xSquared
Click to expand...
Click to collapse
What? That is from rerecovery, no others there.
I assume they are the same that's why I suggest it....
Tapin the Talk on the xSquared
Mikey is right we are guessing. Might as well use DKs latest from his 5027 cwr or p3droids prerooted aio.
If I recall correctly, the guys at CWM made edify scripting? I could be WAY wrong on that, and there are several different versions that have different commands within them. But most are generally the same. You can use any of the update-binary files in the uploads... Eclipse doesn't use edify scripting to my knowledge, but the other uploaded ROMs and most of the mods have it... in my GB Battery fix upload, that is the Binary I use.
I am sure it is a lot more than just this but, amend = update-script and has no binary
edify = updater-script and needs a binary.
Forgive me if I'm wrong but we don't have roms or anything that use edify because our BSR will only work with amend...for now
At least that was my understanding
http://rootzwiki.com/topic/3851-cwr-errors/page__view__findpost__p__89813
Our cwr has updater-script and a binary.