porting eclair to the g1 - G1 Q&A, Help & Troubleshooting

I was using manup's eclair rom and I was trying to edit the bootanimation (nexus) but I couldn't because there wasn't any space on my phone. So it switched over to the defualt android boot screen. I told a friend of my about this and he told me that eclair is not orginally for the g1. So I was wondering if there is a github or in the android tree where I could get the source for the eclair and editted. My plans on saving disk space is either to remove most apps and command scripts that take up space or to remove pngs inside the apps themselfs, which will create a picture-less rom. Would do you guys think? I am a themer and I also know basic java (OOP). So I have some experince in programming and also photo editting.

mohsinkhan47 said:
I was using manup's eclair rom and I was trying to edit the bootanimation (nexus) but I couldn't because there wasn't any space on my phone. So it switched over to the defualt android boot screen. I told a friend of my about this and he told me that eclair is not orginally for the g1. So I was wondering if there is a github or in the android tree where I could get the source for the eclair and editted. My plans on saving disk space is either to remove most apps and command scripts that take up space or to remove pngs inside the apps themselfs, which will create a picture-less rom. Would do you guys think? I am a themer and I also know basic java (OOP). So I have some experince in programming and also photo editting.
Click to expand...
Click to collapse
Since your a andro themer, you must know that it is better to do all of your mods n stuff before flashing the rom. This gives you the chance to remove apps you dont need and allows you to change the boot.

Related

Basic ROM information & structure

So I'm hoping that I can get some clarification about how an android rom works exactly, and how things can be modified and such.
My current understanding of a ROM, is that essentially android is a linux distribution with a special type of java virtual machine (called a dalvik machine) that runs java code in the form of .apks. This all runs ontop of a specialized linux kernel (for example kernals with BFS in Cyanogen & JAC's ROMs). The .apk's that run in the virtual machine have access to frameworks and libraries. The frameworks are part of different ROM versions, for example, HTC Hero ROMs have a different frameworks and libraries than say a stock 1.6 ROM.
What is the difference between a framework and a library?
Do most ROMs have modified frameworks/libraries?
How would you edit a framework? A library?
What are odexes? Are they a neccessary part of a ROM?
How are .apk's (that come with ROMs, such as Browser or Rosie or MMS) modified to say remove a dependency or "optimized" to go faster?
I have the android SDK 1.6r1 installed and I have learned how to sign .apk's and update.zip's, I understand the flashing process and fastboot etc.
I am kind of looking for a way to run Hero's Stock Widget and Stock application on my Cyanogen build, but I realize there isn't a dev out there for every one of my wants and want to play with it myself.
If I have a concept wrong or you want to elaborate on something I said please feel free, all of my knowledge is just stuff I have picked up and I'm still not confident in my understanding. Thanks for your answers!
I'll try and help you out here but this is mainly a bump so you can get where you need to go.
I may not be 100% correct and I'll let someone correct me if I'm wrong.
Your first paragraph is correct.
Do most ROMs have modified frameworks/libraries?
Click to expand...
Click to collapse
Yes. The Hero ROM's frameworks are heavily modded and closed-source, making it very hard to reverse engineer. Some of these frameworks have been modified to allow for HTC apps on the stock android platform, such as HTC Music. However, this is a very difficult and arduous process so it is rarely undertaken and the distribution of HTC apps are limited for the stock android platform. ( you mention you want the stock widget and the twitter widget. These rely on the Hero framework. Many attempts have been made. If you can port this, props man. You should release it publicly )
Some ROM's, especially those that use Cyanogen ROM, have modified framework for speed or feature reasons. I am not very sure of the mods made, but there are plenty as can be seen by the release of Cyan's theme templates.
How are .apk's (that come with ROMs, such as Browser or Rosie or MMS) modified to say remove a dependency or "optimized" to go faster?
Click to expand...
Click to collapse
Some apks are optimized by reducing the file size of images located within the .apk. Also, recently a new method of zipping the .apk files has been unveiled by google which makes them faster at runtime.
Thats all I can answer with relative confidence
EDIT: i forgot to mention, if you want to sign your .apk's and update.zip's
http://forum.xda-developers.com/showthread.php?t=473580
Thx for your reply. That helps a lot. Any other comments anyone?

[Theme][Metamorph] The Oficcial Drone by ravenjr, Droid's Nemesis

This is the introducion of Drone© developed by myself Brian, or [email protected] I am developing a new ui for Android and also will be releasing the Official Drone introduction video soon. Drone© also is not specific to any OS as of yet. So i hereby introduce to the Android community "Drone"!
This is just a theme for Dream users, im not doing a whole lot of advanced theming because im not revealing the ui or other Drone© specific official related material.
NOTICE NOTICE NOTICE
RavensScript has a lot more options now and also i have fixed the problem with the turbo opt script but dont use as of now because i have to do more scripting, all the other options work just fine. I also have the official Droid fonts that change the whole system fonts to the Droid, pretty neat!
Instructions-------> Extract, place tmp folder on the root of sdcard or if you already have directory /sdcard/tmp created then just copy all the contents over
Actions--------> In your terminal app type: su (enter), sh /sdcard/tmp/ravensScript.sh
Will be posting the Morph this wknd, thanks and HAPPY NEW YEARS
[SCRIPT] RavenScript v1.5
Use my script to toggle market on or off b4 EVERY morph!
[morph] Drone Eclair Transparent Lock (sterricson)
Just tried to flashing metamorph is saying that its something missing in the zip.
sahurbari said:
Just tried to flashing metamorph is saying that its something missing in the zip.
Click to expand...
Click to collapse
Urgh ok, lemme see whats goin on
i had a similar issue with metamorph
just unzip the file using your computer and extract files to a folder on your sd card, use the existing theme button in metamorph and select the .thm file.
works for me my motorola a855 android is running the ICE theme. no custom rom, just root access.
cheers!
Very nice theme. When will you be putting it back up? I am running Manup's Eclair v1.5, will this work for that ROM when you put it back up?

Newbie - question on Metamorph themes

I have a Droid, 2.0.1 (Sholes ROM) and it is rooted. I have Metamorph installed, even loaded a couple of themes - worked great!
Then I found this place and this very long list of themes. Even found the file for metamorph themes. Problem is this:
I have no idea of what the rev/version is referencing:
CM
cyanogen
AOS1.6
etc, etc.
Can someone tell me what I am looking for???
I figure that AOS is the Android Operating System but I am at 2.0.1, not 1.6. Are there just no MM themes for 2.0.1 or is there another thing I should be looking for???
Marsha
CM
cyanogen
AOS1.6
etc, etc.
This is telling you that the theme works on Cyanogen Mods (for G1/Mytouch3g)... version 1.6 (Donut)
Things made for CM and most other arent going to really work for the Droid. We are running Android 1.5/1.6 and even with using eclair, our stuff is ported so we maintain only having a drawable folder, even if there is a themed eclair ROM, if the theme is made for the G1/My Touch, only the drawable-mdpi and drawable folders are themed, we wouldnt edit things in the drawable-hdpi folder since out phones don't use it. You on the other hand need the edits in the hdpi folder since the Droid is a higher res phone. MetaMorph would be a good opportunity for you to learn the basics of themes and use that to put them together for yourself. Of course, maybe a backup of your phone before applying.

[Release][Program] Universal Theme Porter (Beta)

I've decided to go ahead and make a tool mostly for themers to make their life of porting the endless amounts of pictures from rom to rom. Now, this doesn't mean users cant use this as well, but PLEASE make a nandroid before hand. It's in beta so don't expect it to be perfect. I have an auto updater with it as well so ill be updating it that way.
*** i had no idea there was a working theme porter on here untill after i made this. I tried i think 1.3 and it failed so i decided to make my own. I just came across the 1.0 posted last month.
WILL NOT PORT GAPPS IF ITS NOT IN THE STOCK ROM.
Im currently working on a fix for that, if you want gapps, throw them in the stock rom your self and then port it.
Notes:
This has only been tested on Motorola Droid.
Instructions:
1. Make a nandroid. I don't want to hear whining if it doesn't work and you lose everything. I'm also not responsible if this bricks your phone. Even if it does, you have recovery, then you have SBF.
2. Download, DO NOT simply just run if your using IE (Who uses IE anymore...?)
3. Select the theme as "Select Theme".
4. Select the STOCK rom you are running as "Select Stock Rom".
5. Hit port and sit back and watch.
Limitations:
Only supports Update.zip formats, for now. i may support Meta Morphs in the future.
Only moves .pngs to new rom, Meaning if the theme has custom .xmls in it, it WONT port.
Change log:
Code:
Version: 1.0:
Ability to port themes from one rom to another.
Progress bars on extracting / moving (Title of console window)
Output log on screen (Not great, will work on.)
Version 1.1:
Added Auto Updater.
Added some crash fixes.
Version 1.2:
Fixed bug where if theme has no themed /system/app's it would crash.
Version 1.5 (Initial Release):
Fixed Progress bar on extracting / moving to archive.
Implemented Suggestion/bug reporting system.
Some general bug fixes.
Added audio on port completion.
Version 1.5.1.0
Added options form.
-Change colors of output console.
-Save last used .zips (toggle)
-Play sound on port completion (toggle)
-Fade out on exit (toggle)
Download:
TheDeathly said:
Only moves .jpgs to new rom, Meaning if the theme has custom .xmls in it, it WONT port.
Click to expand...
Click to collapse
Hmm so it will port the default wallpaper xD
Did you heard about MetaMorph? From your description I think it does exactly the same and more and it's some kind of standard in theming world.
Brut.all said:
Did you heard about MetaMorph? From your description I think it does exactly the same and more and it's some kind of standard in theming world.
Click to expand...
Click to collapse
I've heard of people having lots of issues with metamorph over a standard update.zip, and at least in the moto droid community we use update.zip's over metamorph's especially since metamorph was buggy with Froyo for the longest time, I do not know if it still is or not.
C0mpu13rFr34k said:
Hmm so it will port the default wallpaper xD
Click to expand...
Click to collapse
Oops, i meant it'll only port over .pngs. sorry for the typo lol
Hey cool, haven't tried it but does it work for porting eclair/froyo themes to cupcake/donut roms ? and vice-versa ? A lot has changed since the firmwares (including some .9 being changed to .png and vice versa). Checkout the last beta i posted, it had support for that, u cud prolly use most of the schemes.
@Brut, correct this is a lot like metamorph but metamorph is firmware dependant whereas this isnt/shudnt be. For eg, title_bar in pre eclair/froyo roms was a .png and now is a .9 png. Metamorph just inserts images and hence would cause problems. This only brings over files if they match and in some cases like my script renames them to match the firmware's naming convention (eg, pre-eclair/froyo didnt have mdpi,hdpi, just plain drawable). Hope that clears the air.
Also another thing that makes these have the upperhand to metamorph is the capability to take a dump of ur phone, put the dump of a rom u want to try and BAM ur theme is ported to that rom. Whereas with metamorph, id have to go out and look for the individual morphs that helped me accomplish the look/feel of my phone.
Daneshm90 said:
Hey cool, haven't tried it but does it work for porting eclair/froyo themes to cupcake/donut roms ? and vice-versa ? A lot has changed since the firmwares (including some .9 being changed to .png and vice versa). Checkout the last beta i posted, it had support for that, u cud prolly use most of the schemes.
@Brut, correct this is a lot like metamorph but metamorph is firmware dependant whereas this isnt/shudnt be. For eg, title_bar in pre eclair/froyo roms was a .png and now is a .9 png. Metamorph just inserts images and hence would cause problems. This only brings over files if they match and in some cases like my script renames them to match the firmware's naming convention (eg, pre-eclair/froyo didnt have mdpi,hdpi, just plain drawable). Hope that clears the air.
Also another thing that makes these have the upperhand to metamorph is the capability to take a dump of ur phone, put the dump of a rom u want to try and BAM ur theme is ported to that rom. Whereas with metamorph, id have to go out and look for the individual morphs that helped me accomplish the look/feel of my phone.
Click to expand...
Click to collapse
Hey, i actually have not had a chance to look at donut/eclair themes. My first Android phone was the moto droid so ive never done anything with a donut rom. i will make sure to take a look into that though. Ill go take a look at your latest beta now and see what i can come up with. thanks
Edit: i just took a look at your script and very nice work i have to say also, i may in the future decide to add support to 1.6 and lower to 2.0 +. it'll port most of it over as is except for the .9 and everything that does get ported over wont be resized properly as it does in yours. This should port eclair to froyo fine. ive actually ported over a mdpi to hdpi just fine with this so im assuming it works fine. in anycase thanks for the heads up.
Daneshm90 said:
@Brut, correct this is a lot like metamorph but metamorph is firmware dependant whereas this isnt/shudnt be. For eg, title_bar in pre eclair/froyo roms was a .png and now is a .9 png. Metamorph just inserts images and hence would cause problems. This only brings over files if they match and in some cases like my script renames them to match the firmware's naming convention (eg, pre-eclair/froyo didnt have mdpi,hdpi, just plain drawable). Hope that clears the air.
Click to expand...
Click to collapse
Ahh, ok, thanks for explanation.
But I don't understand, how such tool would work so it'll be flexible and reliable. I mean... it would need to guess what to do. Human could look at files and say: "Ohh, this file was moved here, so I should rename it to xxx.", but what about the computer? How it will know how to port themes to other platforms? Of course you could implement hooks for specific situations as porting between eclair and froyo. But what about custom frameworks from manufacturers? What about changes made by themers? I could add, rename, remove anything I want, so how this tool will know, what I did and how to port my changes to other systems?
Maybe I don't understand something.
Correct its definately not perfect and apks modified more than theming ie smali\xml edit will have to be left out.
Also user must select which firmware theme is and which rom is.
Still its a step up from metamorph imho. In the end the user must recognize a products limitation and react accordingly.
Sent from my GT-I9000M using XDA App
help please.. i get this error....
Error: Could not find file 'C:\Users\Jason\AppData\Local\Temp\Rar$EX00.444\port\new\META-INF'.
Whats next
What do I need to do when finished it says my ZIP file is the final folder but it is just a folder not ZIPPED please help this is too cool to not use.
Edubyah said:
What do I need to do when finished it says my ZIP file is the final folder but it is just a folder not ZIPPED please help this is too cool to not use.
Click to expand...
Click to collapse
Just go inside of the final folder and zip all the contents with a winzip, and make sure it zips as a zip file and not a zipx. after you're done you can use a program to sign your zip like RegawMOD Zip Signer v1.0.
The supplied zip file is not flashable for some reason - have had to manually add them to a ROM.
Going to test this out tomorrow. Any success stories?
I'm giving this a run, but I'm trying to port an hdpi theme to mdpi... will let you know the results. All in all, this is really nice work!!!
Unfortunately for me, the theme I wanted to port is giving me issues because it's a UI rather than a theme. I was trying to get DarkEdge on my Eris. I did want to say though that every thing worked beautifully and this is really an incredible resource for the android community.
From me to you on Cyanogentazz [insert latest version here] Eris
This works great now that it get that instant update! Thanks for the work!

pashinator/flyboyovyick Custom Series: What would you like to see in our next rom?

I have teamed up with pashinator to bring you the roms you want.
Looking for ideas of what to put in our next two roms
The first in the series was Custom Clean
They will be called:
Custom Everyday
Custom Performance
We will start with the Custom Everyday.
SO!!! What do you do on a daily basis and what would you like to do on a daily basis with your phone?
Things to include:
Gingerbread themes and keyboard
arc video editor
black status bar
Things to learn:
editing framework-res.apk
general customsiing
making custom bootanimation.zip
We are not going to include app2sd because it is too much messing about and can sometimes be dangerous. Please install it yourself or use Openswift FroYo.
Make it clean i can install my daily basis apps whenever i want Simple.
A working Metamorph device would be enuff for me
DonPanda said:
A working Metamorph device would be enuff for me
Click to expand...
Click to collapse
Indeed!
---------------
As clean as possible and maybe a gingerbread theme?
m4nu4l said:
Make it clean i can install my daily basis apps whenever i want Simple.
Click to expand...
Click to collapse
I agree, clean and basic is good
Working App2sd
add more locale
It would be great if the rom supports more locale. (traditional and simplified chinese)
So for the person that wants a gingerbread theme, I can do that. ATM I am using the gingerbread keyboard.
Not sure about metamorph because I can't get it to work either
I will try the app2sd but currently I have failed twice at setting it up. So it might be a 2.2 rom, as that has it built in.
Anymore suggestions?
Sent from my GT540 using XDA App
Gingerbread theme it might be good, 2.2 with camera and blue working, i'm new, i don't knoe if it's simple or difficult but if u want, i will help u, i'm just seeing some xda threads for making rom, but i don't undesrstand a lot.
Also NEW Gmail/Market/Maps/Youtube Apps would be cool ! And Black theme would be preferable something like Galaxy S have. But with eclair Drawer and Gingerbread icons And Built in Root rights and busybox installed. THAT WOULD BE PERFECT ROM !
Apps2sd working would be biggest plus for me
pleas this is vanilla eclair ROM by arekl1988r v.1 and v.2
h*tp://forum.android.com.pl/f200/rom-vanilla-eclair-rom-37914/
built aps2sd on ext2 partiton
this ROM is maximum slim.
Sorry for my english. I write by translator
Fastboot and quick recovery included in the package.....its a pain to install otherwise.
Why don't you write to quarx and ankuch and help them with developing OpenSwift faster
I'd like to have the original Arc Video Editor from the official LG firmware, its pretty awesome!!!
psfreedom support would be legendary.
seeming as though i am helpin out i need to highlight something.
me and flyboyovyick are just adding and removing apps to make a original rom better
until we do some learning.
when we have learnt i would like to put the following:
black status bar
better looking battery bar
and a slick finish
but now i would like to inform flyboyovyick that i have bricked my phone and will just be telling him what i suggest to put in rom
pashinator said:
seeming as though i am helpin out i need to highlight something.
me and flyboyovyick are just adding and removing apps to make a original rom better
until we do some learning.
when we have learnt i would like to put the following:
black status bar
better looking battery bar
and a slick finish
but now i would like to inform flyboyovyick that i have bricked my phone and will just be telling him what i suggest to put in rom
Click to expand...
Click to collapse
So we are teaming up then?
If so il change the first post to include you.
two heads are better than one!
Lacokako said:
I'd like to have the original Arc Video Editor from the official LG firmware, its pretty awesome!!!
Click to expand...
Click to collapse
Il make sure thats in.
yeah sure thats great

Categories

Resources