New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
ricsim78
Old
(Last edited by ricsim78; 6th October 2010 at 05:36 AM.)
#1  
ricsim78's Avatar
Senior Member - OP
Thanks Meter 265
Posts: 1,220
Join Date: Sep 2010
Location: Chicago Heights, IL

 
DONATE TO ME
Default [Q] Can someone please help me with two things?

Hey everyone, I have successfully made a few ROMS for myself (using the DSIXDA HTC Android ROM kitchen v 1.00). I am making a ROM for the HTC Evo.

I know how to do most of it, I have managed so far:
  • To add my own ringtones
  • To add my own notification sounds
  • To set the default ringtone, notification, and change the default wallpaper
  • Add a theme to my ROM

But there is a few questions I have. I have Googled, looked around on here, and done what I can to find the answers but I am so far unsuccessful.

My first question: Ok, I know that the default wallpapers reside in the system/customize/resource directory. I have attempted to replace the wallpaper (and small preview) wallpapers with my own custom ones. I tried using Paint.net for Windows to resize to the same dimensions as the default wallpaper. For example, to replace htc_wallpaper_01.jpg, I edited a 960x800 wallpaper to have the same size and name (everything the same) and changed htc_wallpaper_small_01 with a matching 80x60 smaller version of the new graphic. I have found sometimes it works, but if I do a few using the method mentioned above, the ROM fails to load up. Can someone help and explain why?

Question 2: I am trying to place the removed apps automatically on the SD Card. I made a "sdcard" folder in the root directory of my ROM. I tried editing the update.zip to include copy_dir PACKAGE:sdcard /sdcard and when I do a check for errors I get none, yet when I try and install the ROM it gives me the "E:syntax error in update script" meaning I am not doing it right. I tried doing it the same way Fresh did it and it also threw me the same error.

So can anyone please tell me how to do this? I know I am close with both and I have tried dissecting other ROMS to see how they did it but I cannot figure it out.
HTC Evo 4G

My ROMS:
Azrael X v5.0 (new 06/23/2011)
Stock Turbo

My Guide:
Common misconceptions and other useful information

--------------------
If you want to buy me some coffee
 
RichieDaze
Old
#2  
RichieDaze's Avatar
Senior Member
Thanks Meter 126
Posts: 477
Join Date: Jan 2009
Location: New York City

 
DONATE TO ME
First question:
It could be many possibilities. Maybe not enough room on system, file names not matching, etc...
Try each png on seperate flashes to find the culprit.

*The best way to find out for sure is to use "adb logcat" on boot. This tells you all your errors the OS has.*

Second question:
Im not understanding what your trying to do?

Root of a rom is /
sdcard is mounted to a folder on /

If you want to store the apk on sdcard then,
the proper code to install in /sdcard from update.zip:

Code:
copy_dir PACKAGE:sdcard SDCARD:
If this is not what your asking please explain to me what your asking.
 
ricsim78
Old
(Last edited by ricsim78; 6th October 2010 at 09:06 PM.)
#3  
ricsim78's Avatar
Senior Member - OP
Thanks Meter 265
Posts: 1,220
Join Date: Sep 2010
Location: Chicago Heights, IL

 
DONATE TO ME
Quote:
Originally Posted by RichieDaze View Post
First question:
It could be many possibilities. Maybe not enough room on system, file names not matching, etc...
Try each png on seperate flashes to find the culprit.

*The best way to find out for sure is to use "adb logcat" on boot. This tells you all your errors the OS has.*

Second question:
Im not understanding what your trying to do?

Root of a rom is /
sdcard is mounted to a folder on /

If you want to store the apk on sdcard then,
the proper code to install in /sdcard from update.zip:

Code:
copy_dir PACKAGE:sdcard SDCARD:
If this is not what your asking please explain to me what your asking.
Thank you RichieDaze for the response.

You mentioned png., but all the ROMS I have seen have the wallpaper in .jpg format. I was just wondering if there was a certain size they have to be (I mimic the exact size of the default ones).

I think I got this part worked out by doing exactly that, installing 1 at a time until I find the culprit.

For question 2: Thanks to using the DSIXDA kitchen, I cannot use updater.script, which seems to be the way ROM makers like Calkulin, Hero_over, and other have used to set their removed apps to automatically copy on to the SD card when you install the ROM.

I have to use update.script instead, and when I try and do it using that I run into an error.

What I am trying to is remove the usual bloat from the ROM, but copy the removed apps so that users can have the option of installing them if they use any of them.

You are answering my question and are on the right track to helping me. I will try to add that (the way you wrote it out) and see what happens to my update.script.

Thank you very much for your help, greatly appreciated and please let me know if there is some other way to do this if you are aware of any or if someone is using update.script instead of updater.script.
HTC Evo 4G

My ROMS:
Azrael X v5.0 (new 06/23/2011)
Stock Turbo

My Guide:
Common misconceptions and other useful information

--------------------
If you want to buy me some coffee
Tags
cooking, evo, kitchen, question, rom