Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
preludedrew
Old
(Last edited by preludedrew; 11th February 2011 at 01:53 AM.)
#1  
preludedrew's Avatar
Recognized Developer - OP
Thanks Meter 1512
Posts: 511
Join Date: Jul 2010
Location: Santan Valley

 
DONATE TO ME
Default [Dev-Guide] Developers reference - Ongoing -- Updated 2-2-11

Alright seems we've gotten off to a slow start on rom developing so I figured I'd take a look at what the issues are and post a few tips/tricks. This really isn't a Q&A for every issue that is come across, but will definitely suffice to get some developing going on some roms.

First let's start of with what I'm seeing as an issue for dev's coming from phones like the Evo and other phones that use MTD partitions. I'm only going to post snippets for edify/updater scripts. The reason for this, is IMO all dev's should use this style of scripting. Amend/Update scripts are old tech and need to be gone anyways. Also because clockworkmod 3.0 only supports edify/updater scripting. Something like this well help you out - Link - but I'll post a little more detail and examples of scripting.

Wrong way to format /system

Code:
format("MTD", "system");
Correct way on our phone using ext3 partition.

Code:
format("ext3", "EMMC", "/dev/block/mmcblk0p26");

Wrong way to mount /system

Code:
mount("MTD", "system", "/system");
Correct way to mount /system on our phone using ext3 partition.

Code:
mount("ext3", "EMMC", "/dev/block/mmcblk0p26", "/system");
The same applies to other partitions like /data. Here's a list of partitions and their mounting points.

Code:
/boot         -     /dev/block/mmcblk0p22
/cache        -     /dev/block/mmcblk0p28
/data         -     /dev/block/mmcblk0p27
/sdcard       -     /dev/block/mmcblk1p1
/system       -     /dev/block/mmcblk0p26

UPDATE #2-2-11 - Stock rooted & deodex'd rom for dev's to base off of. This has the updater-script fixed and a new update-binary. There was also an issue with the HTC_IME.apk that has been fixed. I am not supporting this rom, but you shouldn't have any issues with it as a stock base.

http://evervolv.bpcr.biz/Artis/Stock...reludedrew.zip

UPDATE #2-10-11 - Mounting partitions read/writable for emmc.

/system

Code:
mount -o rw,remount -t emmc /dev/block/mmcblk0p26 /system
/data

Code:
mount -o rw,remount -t emmc /dev/block/mmcblk0p27 /data
/cache

Code:
mount -o rw,remount -t emmc /dev/block/mmcblk0p28 /cache


Alright, this is just a start. I'll be updating & adding stuff to this as we go. i just wanted to get this straightened out so newer dev's and ones coming from phones like the evo will know how to properly use these. If I note or state anything incorrectly, please don't hesitate to let me know... I'll get it fixed asap. Also, anybody who would like to contribute just reply to this thread and let me know about it. I'll add it to this guide. Bcnice20 should also be replying and adding stuff as we go along.
Device-HTC Evo 4G LTE
ROM-Evervolv


Join me. chat.freenode.net #evervolv

Follow me and evervolv on twitter @preludedrew
The Following 2 Users Say Thank You to preludedrew For This Useful Post: [ Click to Expand ]
 
bcnice20
Old
#2  
bcnice20's Avatar
Recognized Developer
Thanks Meter 402
Posts: 1,575
Join Date: Dec 2009
Location: south va.

 
DONATE TO ME
Reserved for now
Device: HTC EVO 3d
Kernel: whatever my latest is
Rom: depends on the time of day.

like my work perhaps you would consider donating

 
cloverdale
Old
#3  
cloverdale's Avatar
Senior Member
Thanks Meter 145
Posts: 1,597
Join Date: Feb 2009
Location: Washington DC
This is great, thank you.
Empirical evidence can never establish mathematical existence - nor can the mathematician's demand for existence be dismissed by the physicist as useless rigor. Only a mathematical existence proof can ensure that the mathematical description of a physical phenomenon is meaningful.
-- Richard Courant
 
linkosffl
Old
#4  
Member
Thanks Meter 5
Posts: 87
Join Date: Dec 2010
Well done.

--
phone
 
bubby323
Old
#5  
Account currently disabled
Thanks Meter 1477
Posts: 1,603
Join Date: Jul 2010
Location: Michigan City, IN

 
DONATE TO ME
Reserved for some insight.
 
newkidd
Old
#6  
Recognized Developer
Thanks Meter 69
Posts: 303
Join Date: Nov 2009
Location: Midland

 
DONATE TO ME
you might also add some common rom etiquette in here as well. start training up the dev scene properly. things like unmounting /system and /data at the end of your rom, that way there is more of a "oh thats why you have to do this" instead of "well ionno why. newkidd said i should do it."
Im just a frog, tryin to get some wood.
The Following User Says Thank You to newkidd For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Guide to Using Adobe Air on Android

When writing an app with performance in mind, you most likely want to write it native code using the … more

Boot Animation Paradise for your Android Device

The default boot animations on any device, no matter whichmanufacturer, are generally pretty … more