Author Topic: So you want to develop ROMs...  (Read 3155 times)

0 Members and 1 Guest are viewing this topic.

So you want to develop ROMs...

« on: October 22, 2012, 10:26:33 AM »
  • Thank You
  • -Given: 0
  • -Receive: 32
  • Motorhead

    Posts: 1286
    User Rating: +393/-5
    Offline
    • Co-Admin
    • *
    • PostMaster General
    • Personal Text
      Global Moderator ** IRC Server Administrator ** Project Head ** Development Staff
    After developing since February (2012), I've learned a few trick and techniques. Now I'm sharing my wisdom with the public :). In this guide I will cover important tools that should be learned before beginning development.

    Note: These are mearly recommendations, I encourage new modders to find their own tricks and shortcuts.

    Now that the preface is covered, let's get started:

    ADB:
    An important tool used in any section of android modding is the Android Debug Bridge (henceforth known as adb). The number of things adb can do is astonshing, but the two main tools a first time developer with use are "logcat" and "ddms".Explanations are as follows:

        - Logcat:
    Logcat is accessed by passing the command "adb logcat" in your terminal (linux) or command prompt (Windows). What this will do is give you a readout of all processes occuring on your device. This can be used to diagnose errors, find problem apps, track processes and other stuff (see advanced section for pairing logcat with other commands).

        - DDMS (appears lowercase in sdk and other sources):
    DDMS stands for "Dalvik Debug Monitor Server". This is essentially the same as logcat, but it has a "user interface". Some people may understand ddms easier, others may prefer logcat.

    Edify scripting:
    Edify is the primary scripting language of Clockworkmod Recovery systems since generation 2.x. Love it or hate it, you'll need to know it and know how to debug it. Most of the time, edify errors are usually a missing comma, semicolon or quotation.

    Unix:
    Like it or not, android is an offspring of linux, and as such, the scripting language should be learned. Unix (the trade name for linux), is one of the easier scripting languages to learn, as most of it is straightforward.

    (more to come)
    • Custom
    • Samsung Galaxy Rugby Pro (comanche)
    • TWRP
    • Rooted-Rom
    Paypal: You are not allowed to view links. Register or Login

    You are not allowed to view links. Register or Login




    Re: So you want to develop ROMs...

    « Reply #1 on: October 22, 2012, 10:27:20 AM »
  • Thank You
  • -Given: 0
  • -Receive: 32
  • Motorhead

    Posts: 1286
    User Rating: +393/-5
    Offline
    • Co-Admin
    • *
    • PostMaster General
    • Personal Text
      Global Moderator ** IRC Server Administrator ** Project Head ** Development Staff
    In this post, I will be explaining intermediate techniques used with adb.

    - Using adb shell:
    The linux shell is a powerful tool used to do basically anything you want. Because of this, I'm including a disclaimer: I am not liable for damages caused by tampering with things at the shell level. Any claims that I am at fault will be dismissed. Experiment at your own risk!

    Now that that's out of the way, here we go. Using the shell can be a very rewarding experience, as it involves a bunch of typing, with no UI (user interface). Seeing the end product of a shell modification can build confidence, but mistyping can modify the wrong file and soft brick your device.
    • Custom
    • Samsung Galaxy Rugby Pro (comanche)
    • TWRP
    • Rooted-Rom
    Paypal: You are not allowed to view links. Register or Login

    You are not allowed to view links. Register or Login




    Re: So you want to develop ROMs...

    « Reply #2 on: October 22, 2012, 10:27:54 AM »
  • Thank You
  • -Given: 0
  • -Receive: 32
  • Motorhead

    Posts: 1286
    User Rating: +393/-5
    Offline
    • Co-Admin
    • *
    • PostMaster General
    • Personal Text
      Global Moderator ** IRC Server Administrator ** Project Head ** Development Staff
    Advanced adb techniques:

    -Stringing commands:
    In linux (and possibly Windows), one is able to string commands together to achieve a result. An examples of this include:

    adb shell ls /system/bin | grep '<file>'.

    What this will do is locate the file specified inside /system/bin.

    Another example is:

    adb shell cat /data/local/<file> | strings

    This will output printable strings in a file.
    (See You are not allowed to view links. Register or Login for further information on strings).
    • Custom
    • Samsung Galaxy Rugby Pro (comanche)
    • TWRP
    • Rooted-Rom
    Paypal: You are not allowed to view links. Register or Login

    You are not allowed to view links. Register or Login




    Re: So you want to develop ROMs...

    « Reply #3 on: October 22, 2012, 10:28:07 AM »
  • Thank You
  • -Given: 0
  • -Receive: 32
  • Motorhead

    Posts: 1286
    User Rating: +393/-5
    Offline
    • Co-Admin
    • *
    • PostMaster General
    • Personal Text
      Global Moderator ** IRC Server Administrator ** Project Head ** Development Staff
    <also reserved>
    • Custom
    • Samsung Galaxy Rugby Pro (comanche)
    • TWRP
    • Rooted-Rom
    Paypal: You are not allowed to view links. Register or Login

    You are not allowed to view links. Register or Login




    Re: So you want to develop ROMs...

    « Reply #4 on: October 22, 2012, 01:07:41 PM »
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Bustacap

    Posts: 34
    User Rating: +0/-968
    Offline
    • *
    • Jr. Member
    Good post mh :P
    • Stock
    • Flip Phone
    • Stock
    • n/a

    Re: So you want to develop ROMs...

    « Reply #5 on: October 22, 2012, 01:09:29 PM »
  • Thank You
  • -Given: 0
  • -Receive: 9
  • DroidHost

    Posts: 4820
    User Rating: +9568/-9
    Owner
    Offline
    • Administrator
    • *
    • PostMaster General
    • Personal Text
      it aint yours till the warranty is "VOID"
      • Android Area 51
    You are not allowed to view links. Register or Login
    Good post mh :P

    Hell he is just getting warmed up I am sure... its gonna be alot to read....
    • OC Kernel
    • LG Volt
    • TWRP
    • None
    • Rooted-Rom

    You are not allowed to view links. Register or Login




    Re: So you want to develop ROMs...

    « Reply #6 on: October 22, 2012, 01:43:33 PM »
  • Thank You
  • -Given: 0
  • -Receive: 32
  • Motorhead

    Posts: 1286
    User Rating: +393/-5
    Offline
    • Co-Admin
    • *
    • PostMaster General
    • Personal Text
      Global Moderator ** IRC Server Administrator ** Project Head ** Development Staff
    Feel free to add as you see fit DH :). And I'm just covering the basics and some higher level tools, but yes, I'm just getting warmed up...
    • Custom
    • Samsung Galaxy Rugby Pro (comanche)
    • TWRP
    • Rooted-Rom
    Paypal: You are not allowed to view links. Register or Login

    You are not allowed to view links. Register or Login




    Re: So you want to develop ROMs...

    « Reply #7 on: October 22, 2012, 01:49:58 PM »
  • Thank You
  • -Given: 0
  • -Receive: 1
  • kway

    Posts: 113
    User Rating: +23/-0
    Offline
    • VIP Member
    • *
    • Sr. Member
      • ATV Specialties
    Heck, I've yet to use adb to communicate with my phone...that's how NOOB I am. I'm looking forward to this post. 8)

    Sent from my SCH-S720C using Tapatalk 2
    • Stock
    • Stock
    • n/a
    You are not allowed to view links. Register or Login
    My life :D

    Tags:
     

    Related Topics

      Subject / Started by Replies Last post
    0 Replies
    1519 Views
    Last post March 19, 2013, 08:36:25 PM
    by deezinabox
    8 Replies
    4899 Views
    Last post January 23, 2014, 08:37:55 AM
    by d1al3r
    3 Replies
    3004 Views
    Last post April 29, 2013, 09:59:04 PM
    by DroidHost
    3 Replies
    2130 Views
    Last post May 10, 2013, 12:06:51 AM
    by treyonator56
    4 Replies
    2668 Views
    Last post June 01, 2014, 09:28:52 PM
    by thereal_bigjake
    1 Replies
    1290 Views
    Last post October 30, 2015, 12:45:32 PM
    by daddy366