1. Download our Official Android App: Forums for Android!

Root Please help me making a rom flashable to cwm

Discussion in 'Android Devices' started by thomasmbl, Jan 10, 2012.

  1. thomasmbl

    thomasmbl Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    480
    Joined:
    Jul 11, 2011

    Jul 11, 2011
    480
    72
    53
    Please help me making a rom flashable to cwm
     

    Advertisement

  2. Lordvincent 90

    Lordvincent 90 ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
    Rank:
    None
    Points:
    583
    Posts:
    5,559
    Joined:
    Oct 5, 2011

    Oct 5, 2011
    5,559
    4,444
    583
    Male
    entertainer
    grand rapids,mi
  3. thomasmbl

    thomasmbl Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    480
    Joined:
    Jul 11, 2011

    Jul 11, 2011
    480
    72
    53
  4. Lordvincent 90

    Lordvincent 90 ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
    Rank:
    None
    Points:
    583
    Posts:
    5,559
    Joined:
    Oct 5, 2011

    Oct 5, 2011
    5,559
    4,444
    583
    Male
    entertainer
    grand rapids,mi
  5. Kcsuper

    Kcsuper Well-Known Member
    Rank:
    None
    Points:
    43
    Posts:
    189
    Joined:
    Nov 22, 2011

    Nov 22, 2011
    189
    25
    43
    CT
    I can't f'n believe he made this thread for this.
     
    Lordvincent 90 likes this.
  6. hroark13

    hroark13 Android Expert
    Recognized Developer
    Rank:
     #49
    Points:
    483
    Posts:
    3,288
    Joined:
    Jul 15, 2011

    Jul 15, 2011
    3,288
    4,136
    483
    I am assuming you are using a windows computer

    Download and install Notepad ++
    Notepad++ Home

    Download my new beta4d CM7


    unzip it somewhere on your computer


    go into the folder META-INF\com\google\android folder

    there is 2 files in there
    update-binary
    updater-script

    DO NOT MESS WITH THE UPDATE-BINARY IF YOU USE AN UPDATE BINARY FOR A DIFFERENT PHONE YOU WILL MOST LIKELY BRICK THE PHONE


    right click on the update-script and choose edit with notepad ++

    and you should see this

    Code (Text):
    1. assert(getprop("ro.product.device") == "SPH-M820" || getprop("ro.build.product") == "SPH-M820" || getprop("ro.product.board") == "SPH-M820");
    2. ui_print("");
    3. ui_print("CM7 FOR PREVAIL");
    4. ui_print("");
    5. ui_print("Unmounting Partitions");
    6. unmount("/cache");
    7. unmount("/data");
    8. unmount("/system");
    9. ui_print("");
    10. ui_print("Format /cache(stl14) to Ext4");
    11. show_progress(0.500000, 0);
    12. format("ext4", "EMMC", "/dev/block/stl14");
    13. ui_print("");
    14. ui_print("Format /data(stl13) to Ext4");
    15. format("ext4", "EMMC", "/dev/block/stl13");
    16. ui_print("");
    17. ui_print("Format /system(stl12) to Ext4");
    18. format("ext4", "EMMC", "/dev/block/stl12");
    19. ui_print("");
    20. ui_print("Mounting /system");
    21. mount("ext4", "EMMC", "/dev/block/stl12", "/system");
    22. ui_print("");
    23. ui_print("Extracting Files");
    24. package_extract_dir("system", "/system");
    25. show_progress(0.200000, 0);
    26. ui_print("");
    27. ui_print("Creating Symlinks");
    28. symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
    29.         "/system/xbin/arp", "/system/xbin/ash", "/system/xbin/awk",
    30.         "/system/xbin/base64", "/system/xbin/basename", "/system/xbin/bbconfig",
    31.         "/system/xbin/blockdev", "/system/xbin/brctl", "/system/xbin/bunzip2",
    32.         "/system/xbin/bzcat", "/system/xbin/bzip2", "/system/xbin/cal",
    33.         "/system/xbin/cat", "/system/xbin/catv", "/system/xbin/chattr",
    34.         "/system/xbin/chgrp", "/system/xbin/chmod", "/system/xbin/chown",
    35.         "/system/xbin/chroot", "/system/xbin/clear", "/system/xbin/cmp",
    36.         "/system/xbin/comm", "/system/xbin/cp", "/system/xbin/cpio",
    37.         "/system/xbin/crond", "/system/xbin/crontab", "/system/xbin/cut",
    38.         "/system/xbin/date", "/system/xbin/dc", "/system/xbin/dd",
    39.         "/system/xbin/depmod", "/system/xbin/devmem", "/system/xbin/df",
    40.         "/system/xbin/diff", "/system/xbin/dirname", "/system/xbin/dmesg",
    41.         "/system/xbin/dnsd", "/system/xbin/dos2unix", "/system/xbin/du",
    42.         "/system/xbin/echo", "/system/xbin/ed", "/system/xbin/egrep",
    43.         "/system/xbin/env", "/system/xbin/expand", "/system/xbin/expr",
    44.         "/system/xbin/false", "/system/xbin/fdisk", "/system/xbin/fgrep",
    45.         "/system/xbin/find", "/system/xbin/flash_lock",
    46.         "/system/xbin/flash_unlock", "/system/xbin/flashcp",
    47.         "/system/xbin/flock", "/system/xbin/fold", "/system/xbin/free",
    48.         "/system/xbin/freeramdisk", "/system/xbin/fsync", "/system/xbin/ftpget",
    49.         "/system/xbin/ftpput", "/system/xbin/fuser", "/system/xbin/getopt",
    50.         "/system/xbin/grep", "/system/xbin/groups", "/system/xbin/gunzip",
    51.         "/system/xbin/gzip", "/system/xbin/halt", "/system/xbin/head",
    52.         "/system/xbin/hexdump", "/system/xbin/id", "/system/xbin/ifconfig",
    53.         "/system/xbin/insmod", "/system/xbin/install", "/system/xbin/iostat",
    54.         "/system/xbin/ip", "/system/xbin/kill", "/system/xbin/killall",
    55.         "/system/xbin/killall5", "/system/xbin/length", "/system/xbin/less",
    56.         "/system/xbin/ln", "/system/xbin/losetup", "/system/xbin/ls",
    57.         "/system/xbin/lsattr", "/system/xbin/lsmod", "/system/xbin/lsusb",
    58.         "/system/xbin/lzcat", "/system/xbin/lzma", "/system/xbin/lzop",
    59.         "/system/xbin/lzopcat", "/system/xbin/man", "/system/xbin/md5sum",
    60.         "/system/xbin/mesg", "/system/xbin/mkdir", "/system/xbin/mke2fs",
    61.         "/system/xbin/mkfifo", "/system/xbin/mkfs.ext2",
    62.         "/system/xbin/mkfs.vfat", "/system/xbin/mknod", "/system/xbin/mkswap",
    63.         "/system/xbin/mktemp", "/system/xbin/modinfo", "/system/xbin/modprobe",
    64.         "/system/xbin/more", "/system/xbin/mount", "/system/xbin/mountpoint",
    65.         "/system/xbin/mpstat", "/system/xbin/mv", "/system/xbin/nanddump",
    66.         "/system/xbin/nandwrite", "/system/xbin/netstat", "/system/xbin/nice",
    67.         "/system/xbin/nohup", "/system/xbin/nslookup", "/system/xbin/ntpd",
    68.         "/system/xbin/od", "/system/xbin/patch", "/system/xbin/pgrep",
    69.         "/system/xbin/pidof", "/system/xbin/ping", "/system/xbin/pkill",
    70.         "/system/xbin/pmap", "/system/xbin/poweroff", "/system/xbin/printenv",
    71.         "/system/xbin/printf", "/system/xbin/ps", "/system/xbin/pstree",
    72.         "/system/xbin/pwd", "/system/xbin/pwdx", "/system/xbin/rdev",
    73.         "/system/xbin/readlink", "/system/xbin/realpath", "/system/xbin/renice",
    74.         "/system/xbin/reset", "/system/xbin/resize", "/system/xbin/rev",
    75.         "/system/xbin/rm", "/system/xbin/rmdir", "/system/xbin/rmmod",
    76.         "/system/xbin/route", "/system/xbin/run-parts", "/system/xbin/rx",
    77.         "/system/xbin/sed", "/system/xbin/seq", "/system/xbin/setconsole",
    78.         "/system/xbin/setserial", "/system/xbin/setsid", "/system/xbin/sh",
    79.         "/system/xbin/sha1sum", "/system/xbin/sha256sum",
    80.         "/system/xbin/sha512sum", "/system/xbin/sleep", "/system/xbin/sort",
    81.         "/system/xbin/split", "/system/xbin/stat", "/system/xbin/strings",
    82.         "/system/xbin/stty", "/system/xbin/sum", "/system/xbin/swapoff",
    83.         "/system/xbin/swapon", "/system/xbin/sync", "/system/xbin/sysctl",
    84.         "/system/xbin/tac", "/system/xbin/tail", "/system/xbin/tar",
    85.         "/system/xbin/tee", "/system/xbin/telnet", "/system/xbin/telnetd",
    86.         "/system/xbin/test", "/system/xbin/tftp", "/system/xbin/tftpd",
    87.         "/system/xbin/time", "/system/xbin/timeout", "/system/xbin/top",
    88.         "/system/xbin/touch", "/system/xbin/tr", "/system/xbin/traceroute",
    89.         "/system/xbin/true", "/system/xbin/ttysize", "/system/xbin/tune2fs",
    90.         "/system/xbin/umount", "/system/xbin/uname", "/system/xbin/uncompress",
    91.         "/system/xbin/unexpand", "/system/xbin/uniq", "/system/xbin/unix2dos",
    92.         "/system/xbin/unlzma", "/system/xbin/unlzop", "/system/xbin/unxz",
    93.         "/system/xbin/unzip", "/system/xbin/uptime", "/system/xbin/usleep",
    94.         "/system/xbin/uudecode", "/system/xbin/uuencode", "/system/xbin/vi",
    95.         "/system/xbin/watch", "/system/xbin/wc", "/system/xbin/wget",
    96.         "/system/xbin/which", "/system/xbin/whoami", "/system/xbin/xargs",
    97.         "/system/xbin/xz", "/system/xbin/xzcat", "/system/xbin/yes",
    98.         "/system/xbin/zcat");
    99. symlink("iwmulticall", "/system/xbin/iwconfig", "/system/xbin/iwgetid",
    100.         "/system/xbin/iwlist", "/system/xbin/iwpriv",
    101.         "/system/xbin/iwspy");
    102. symlink("toolbox", "/system/bin/cat", "/system/bin/cmp",
    103.         "/system/bin/date", "/system/bin/dd", "/system/bin/dmesg",
    104.         "/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd",
    105.         "/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop",
    106.         "/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice",
    107.         "/system/bin/kill", "/system/bin/log", "/system/bin/lsmod",
    108.         "/system/bin/nandread", "/system/bin/netstat",
    109.         "/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",
    110.         "/system/bin/ps", "/system/bin/reboot", "/system/bin/renice",
    111.         "/system/bin/rmdir", "/system/bin/rmmod", "/system/bin/route",
    112.         "/system/bin/schedtop", "/system/bin/sendevent",
    113.         "/system/bin/setconsole", "/system/bin/setprop", "/system/bin/sleep",
    114.         "/system/bin/smd", "/system/bin/start", "/system/bin/stop",
    115.         "/system/bin/sync", "/system/bin/top", "/system/bin/uptime",
    116.         "/system/bin/vmstat", "/system/bin/watchprops",
    117.         "/system/bin/wipe");
    118. ui_print("");
    119. ui_print("Setting Permissions");
    120. set_perm_recursive(0, 0, 0755, 0644, "/system");
    121. set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
    122. set_perm(0, 3003, 02750, "/system/bin/netcfg");
    123. set_perm(0, 3004, 02755, "/system/bin/ping");
    124. set_perm(0, 2000, 06750, "/system/bin/run-as");
    125. set_perm(1000, 1003, 02755, "/system/bin/screenshot");
    126. set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
    127. set_perm(0, 0, 0755, "/system/etc/bluetooth");
    128. set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
    129. set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
    130. set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
    131. set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
    132. set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
    133. set_perm(0, 0, 0755, "/system/etc/init.d");
    134. set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
    135. set_perm(0, 0, 0544, "/system/etc/install-recovery.sh");
    136. set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
    137. set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
    138. set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
    139. set_perm(0, 2000, 0755, "/system/vendor/firmware");
    140. set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
    141. set_perm(0, 0, 06755, "/system/xbin/hcitool");
    142. set_perm(0, 0, 06755, "/system/xbin/librank");
    143. set_perm(0, 0, 06755, "/system/xbin/procmem");
    144. set_perm(0, 0, 06755, "/system/xbin/procrank");
    145. set_perm(0, 0, 06755, "/system/xbin/su");
    146. set_perm(0, 0, 06755, "/system/xbin/tcpdump");
    147. show_progress(0.200000, 10);
    148. ui_print("");
    149. ui_print("Flashing Kernel");
    150. assert(package_extract_file("boot.img", "/tmp/boot.img"),
    151.        write_raw_image("/tmp/boot.img", "boot"),
    152.        delete("/tmp/boot.img"));
    153. show_progress(0.100000, 0);
    154. unmount("/system");
    155. ui_print("");
    156. ui_print("Done");
    157. ui_print("");
    158. ui_print("Reboot Phone You Freak");

    When you flash a CWM zip file this is what runs and the update-binary tell the script the locations of the partitions and there sizes, that is why you dont use another phones update binary


    looking at this script it is pretty obvious what it is doing

    it unmounts 3 paritions, formats them, mounts system partition

    it then extracts the /system folder from the zip file onto the /system partition

    it then creates symlinks ( the symlinks are like windows short cuts kind of)

    it then sets permissions on files

    extracts the boot.img to /tmp and them writes it to the boot partition




    The contents of the system folder in the zip file is your ROM

    it contains the app framework lib and many other important folders and files



    Like I said download my beta4d zip file and look at the contents

    once you study it for a while you will start to understand
     
    thomasmbl likes this.
  7. hroark13

    hroark13 Android Expert
    Recognized Developer
    Rank:
     #49
    Points:
    483
    Posts:
    3,288
    Joined:
    Jul 15, 2011

    Jul 15, 2011
    3,288
    4,136
    483
    here is the update script that CM7 generates before I mod it

    Code (Text):
    1.  
    2. assert(getprop("ro.product.device") == "SPH-M820" || getprop("ro.build.product") == "SPH-M820" || getprop("ro.product.board") == "SPH-M820");
    3. package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
    4. set_perm(0, 0, 0777, "/tmp/backuptool.sh");
    5. run_program("/tmp/backuptool.sh", "backup");
    6. show_progress(0.500000, 0);
    7. format("ext4", "EMMC", "/dev/block/stl12");
    8. mount("ext4", "EMMC", "/dev/block/stl12", "/system");
    9. package_extract_dir("recovery", "/system");
    10. package_extract_dir("system", "/system");
    11. symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
    12.         "/system/xbin/arp", "/system/xbin/ash", "/system/xbin/awk",
    13.         "/system/xbin/base64", "/system/xbin/basename", "/system/xbin/bbconfig",
    14.         "/system/xbin/blockdev", "/system/xbin/brctl", "/system/xbin/bunzip2",
    15.         "/system/xbin/bzcat", "/system/xbin/bzip2", "/system/xbin/cal",
    16.         "/system/xbin/cat", "/system/xbin/catv", "/system/xbin/chattr",
    17.         "/system/xbin/chgrp", "/system/xbin/chmod", "/system/xbin/chown",
    18.         "/system/xbin/chroot", "/system/xbin/clear", "/system/xbin/cmp",
    19.         "/system/xbin/comm", "/system/xbin/cp", "/system/xbin/cpio",
    20.         "/system/xbin/crond", "/system/xbin/crontab", "/system/xbin/cut",
    21.         "/system/xbin/date", "/system/xbin/dc", "/system/xbin/dd",
    22.         "/system/xbin/depmod", "/system/xbin/devmem", "/system/xbin/df",
    23.         "/system/xbin/diff", "/system/xbin/dirname", "/system/xbin/dmesg",
    24.         "/system/xbin/dnsd", "/system/xbin/dos2unix", "/system/xbin/du",
    25.         "/system/xbin/echo", "/system/xbin/ed", "/system/xbin/egrep",
    26.         "/system/xbin/env", "/system/xbin/expand", "/system/xbin/expr",
    27.         "/system/xbin/false", "/system/xbin/fdisk", "/system/xbin/fgrep",
    28.         "/system/xbin/find", "/system/xbin/flash_lock",
    29.         "/system/xbin/flash_unlock", "/system/xbin/flashcp",
    30.         "/system/xbin/flock", "/system/xbin/fold", "/system/xbin/free",
    31.         "/system/xbin/freeramdisk", "/system/xbin/fsync", "/system/xbin/ftpget",
    32.         "/system/xbin/ftpput", "/system/xbin/fuser", "/system/xbin/getopt",
    33.         "/system/xbin/grep", "/system/xbin/groups", "/system/xbin/gunzip",
    34.         "/system/xbin/gzip", "/system/xbin/halt", "/system/xbin/head",
    35.         "/system/xbin/hexdump", "/system/xbin/id", "/system/xbin/ifconfig",
    36.         "/system/xbin/insmod", "/system/xbin/install", "/system/xbin/iostat",
    37.         "/system/xbin/ip", "/system/xbin/kill", "/system/xbin/killall",
    38.         "/system/xbin/killall5", "/system/xbin/length", "/system/xbin/less",
    39.         "/system/xbin/ln", "/system/xbin/losetup", "/system/xbin/ls",
    40.         "/system/xbin/lsattr", "/system/xbin/lsmod", "/system/xbin/lsusb",
    41.         "/system/xbin/lzcat", "/system/xbin/lzma", "/system/xbin/lzop",
    42.         "/system/xbin/lzopcat", "/system/xbin/man", "/system/xbin/md5sum",
    43.         "/system/xbin/mesg", "/system/xbin/mkdir", "/system/xbin/mke2fs",
    44.         "/system/xbin/mkfifo", "/system/xbin/mkfs.ext2",
    45.         "/system/xbin/mkfs.vfat", "/system/xbin/mknod", "/system/xbin/mkswap",
    46.         "/system/xbin/mktemp", "/system/xbin/modinfo", "/system/xbin/modprobe",
    47.         "/system/xbin/more", "/system/xbin/mount", "/system/xbin/mountpoint",
    48.         "/system/xbin/mpstat", "/system/xbin/mv", "/system/xbin/nanddump",
    49.         "/system/xbin/nandwrite", "/system/xbin/netstat", "/system/xbin/nice",
    50.         "/system/xbin/nohup", "/system/xbin/nslookup", "/system/xbin/ntpd",
    51.         "/system/xbin/od", "/system/xbin/patch", "/system/xbin/pgrep",
    52.         "/system/xbin/pidof", "/system/xbin/ping", "/system/xbin/pkill",
    53.         "/system/xbin/pmap", "/system/xbin/poweroff", "/system/xbin/printenv",
    54.         "/system/xbin/printf", "/system/xbin/ps", "/system/xbin/pstree",
    55.         "/system/xbin/pwd", "/system/xbin/pwdx", "/system/xbin/rdev",
    56.         "/system/xbin/readlink", "/system/xbin/realpath", "/system/xbin/renice",
    57.         "/system/xbin/reset", "/system/xbin/resize", "/system/xbin/rev",
    58.         "/system/xbin/rm", "/system/xbin/rmdir", "/system/xbin/rmmod",
    59.         "/system/xbin/route", "/system/xbin/run-parts", "/system/xbin/rx",
    60.         "/system/xbin/sed", "/system/xbin/seq", "/system/xbin/setconsole",
    61.         "/system/xbin/setserial", "/system/xbin/setsid", "/system/xbin/sh",
    62.         "/system/xbin/sha1sum", "/system/xbin/sha256sum",
    63.         "/system/xbin/sha512sum", "/system/xbin/sleep", "/system/xbin/sort",
    64.         "/system/xbin/split", "/system/xbin/stat", "/system/xbin/strings",
    65.         "/system/xbin/stty", "/system/xbin/sum", "/system/xbin/swapoff",
    66.         "/system/xbin/swapon", "/system/xbin/sync", "/system/xbin/sysctl",
    67.         "/system/xbin/tac", "/system/xbin/tail", "/system/xbin/tar",
    68.         "/system/xbin/tee", "/system/xbin/telnet", "/system/xbin/telnetd",
    69.         "/system/xbin/test", "/system/xbin/tftp", "/system/xbin/tftpd",
    70.         "/system/xbin/time", "/system/xbin/timeout", "/system/xbin/top",
    71.         "/system/xbin/touch", "/system/xbin/tr", "/system/xbin/traceroute",
    72.         "/system/xbin/true", "/system/xbin/ttysize", "/system/xbin/tune2fs",
    73.         "/system/xbin/umount", "/system/xbin/uname", "/system/xbin/uncompress",
    74.         "/system/xbin/unexpand", "/system/xbin/uniq", "/system/xbin/unix2dos",
    75.         "/system/xbin/unlzma", "/system/xbin/unlzop", "/system/xbin/unxz",
    76.         "/system/xbin/unzip", "/system/xbin/uptime", "/system/xbin/usleep",
    77.         "/system/xbin/uudecode", "/system/xbin/uuencode", "/system/xbin/vi",
    78.         "/system/xbin/watch", "/system/xbin/wc", "/system/xbin/wget",
    79.         "/system/xbin/which", "/system/xbin/whoami", "/system/xbin/xargs",
    80.         "/system/xbin/xz", "/system/xbin/xzcat", "/system/xbin/yes",
    81.         "/system/xbin/zcat");
    82. symlink("iwmulticall", "/system/xbin/iwconfig", "/system/xbin/iwgetid",
    83.         "/system/xbin/iwlist", "/system/xbin/iwpriv",
    84.         "/system/xbin/iwspy");
    85. symlink("toolbox", "/system/bin/cat", "/system/bin/cmp",
    86.         "/system/bin/date", "/system/bin/dd", "/system/bin/dmesg",
    87.         "/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd",
    88.         "/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop",
    89.         "/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice",
    90.         "/system/bin/kill", "/system/bin/log", "/system/bin/lsmod",
    91.         "/system/bin/nandread", "/system/bin/netstat",
    92.         "/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",
    93.         "/system/bin/ps", "/system/bin/reboot", "/system/bin/renice",
    94.         "/system/bin/rmdir", "/system/bin/rmmod", "/system/bin/route",
    95.         "/system/bin/schedtop", "/system/bin/sendevent",
    96.         "/system/bin/setconsole", "/system/bin/setprop", "/system/bin/sleep",
    97.         "/system/bin/smd", "/system/bin/start", "/system/bin/stop",
    98.         "/system/bin/sync", "/system/bin/top", "/system/bin/uptime",
    99.         "/system/bin/vmstat", "/system/bin/watchprops",
    100.         "/system/bin/wipe");
    101. set_perm_recursive(0, 0, 0755, 0644, "/system");
    102. set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
    103. set_perm(0, 3003, 02750, "/system/bin/netcfg");
    104. set_perm(0, 3004, 02755, "/system/bin/ping");
    105. set_perm(0, 2000, 06750, "/system/bin/run-as");
    106. set_perm(1000, 1003, 02755, "/system/bin/screenshot");
    107. set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
    108. set_perm(0, 0, 0755, "/system/etc/bluetooth");
    109. set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
    110. set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
    111. set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
    112. set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
    113. set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
    114. set_perm(0, 0, 0755, "/system/etc/init.d");
    115. set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
    116. set_perm(0, 0, 0544, "/system/etc/install-recovery.sh");
    117. set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
    118. set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
    119. set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
    120. set_perm(0, 2000, 0755, "/system/vendor/firmware");
    121. set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
    122. set_perm(0, 0, 06755, "/system/xbin/hcitool");
    123. set_perm(0, 0, 06755, "/system/xbin/librank");
    124. set_perm(0, 0, 06755, "/system/xbin/procmem");
    125. set_perm(0, 0, 06755, "/system/xbin/procrank");
    126. set_perm(0, 0, 06755, "/system/xbin/su");
    127. set_perm(0, 0, 06755, "/system/xbin/tcpdump");
    128. show_progress(0.200000, 0);
    129. show_progress(0.200000, 10);
    130. package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
    131. set_perm(0, 0, 0777, "/tmp/backuptool.sh");
    132. run_program("/tmp/backuptool.sh", "restore");
    133. package_extract_file("system/bin/modelid_cfg.sh", "/tmp/modelid_cfg.sh");
    134. set_perm(0, 0, 0777, "/tmp/modelid_cfg.sh");
    135. run_program("/tmp/modelid_cfg.sh");
    136. package_extract_file("system/bin/verify_cache_partition_size.sh", "/tmp/verify_cache_partition_size.sh");
    137. set_perm(0, 0, 0777, "/tmp/verify_cache_partition_size.sh");
    138. run_program("/tmp/verify_cache_partition_size.sh");
    139. show_progress(0.200000, 10);
    140. assert(package_extract_file("boot.img", "/tmp/boot.img"),
    141.        write_raw_image("/tmp/boot.img", "boot"),
    142.        delete("/tmp/boot.img"));
    143. show_progress(0.100000, 0);
    144. unmount("/system");
    145.  
    can you tell me what functions I added and removed ?
     
    thomasmbl likes this.
  8. hroark13

    hroark13 Android Expert
    Recognized Developer
    Rank:
     #49
    Points:
    483
    Posts:
    3,288
    Joined:
    Jul 15, 2011

    Jul 15, 2011
    3,288
    4,136
    483
    if you wanted the the flashable zip to copy files to the data partition what are all the changed you would have to make


    but keeping the apps on the data partiton is not a good idea because if you do a factory wipe the data partition gets formatted

    that is why your apps are disapearing on your rom

    the system partition does not get a formatted on factory wipe

    that is why you want your apk files in the /system/app folder
     
    thomasmbl likes this.
  9. hroark13

    hroark13 Android Expert
    Recognized Developer
    Rank:
     #49
    Points:
    483
    Posts:
    3,288
    Joined:
    Jul 15, 2011

    Jul 15, 2011
    3,288
    4,136
    483
    normally when linux symlink files get copied to a windows computer they get corrupted and dont work

    that is why it is good that the script in my rom creates them for you

    so you should be able to unzip the rom make your changes re-zip it

    and it should work


    I have given you enough to digest for now

    I will wait for you to ask questions
     
    thomasmbl likes this.
  10. thomasmbl

    thomasmbl Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    480
    Joined:
    Jul 11, 2011

    Jul 11, 2011
    480
    72
    53
    Thank you so much
     
  11. PlayfulGod

    PlayfulGod Android Expert
    Rank:
    None
    Points:
    353
    Posts:
    8,109
    Joined:
    Jan 28, 2011

    Jan 28, 2011
    8,109
    4,938
    353
    Male
    Web Design and Hosting/PC Repair
    NW Georgia
    Asking questions is what are forums are for and how you learn. Dumbest question is the one not asked.

    I know google is great for alot of things and maybe even for this question, but with android dev'ing, alot of times the answers are just not out there as there are ALOT of Devs who feel they are above sharing info and/or helping others learn to be dev's or better devs.

    Remember your comments here next time you are needing help. ;)
     
    Mr.Push and Lordvincent 90 like this.
  12. Lordvincent 90

    Lordvincent 90 ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
    Rank:
    None
    Points:
    583
    Posts:
    5,559
    Joined:
    Oct 5, 2011

    Oct 5, 2011
    5,559
    4,444
    583
    Male
    entertainer
    grand rapids,mi
    I totally agree, but only after you have attempted to acquire the knowledge first. There are many detailed instructions in several places. I was just frustrated that this was his immediate response to my suggestion to do some research. it just seems like he us waiting for everyone else to finish his ROM.
     
  13. thomasmbl

    thomasmbl Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    480
    Joined:
    Jul 11, 2011

    Jul 11, 2011
    480
    72
    53

    No.I just needed some help from somebody that I no sortof.
     
  14. Lordvincent 90

    Lordvincent 90 ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
    Rank:
    None
    Points:
    583
    Posts:
    5,559
    Joined:
    Oct 5, 2011

    Oct 5, 2011
    5,559
    4,444
    583
    Male
    entertainer
    grand rapids,mi
    How do you know you needed help? You didn't even try first, man. I suggested researching it and less than 5 min later you made this thread. I'm all for helping, but at least give it the ol' college try before having the info fed to you.

    also I find that (at least, in my case) I retain the knowledge better by figuring it out and reading about it them jjust reading a step by step. because then you know WHY.and HOW it works, not just how to make it, or use it.
    please don't take my comments as negative, while I may respond out of frustration sometimes, I really do mean good. I'm not even a 'dev' (atleast not good enough to release something publicly) but just out of curiosity I've ripped most/if not all mods for this phone and several others apart just to see what is inside, in hopes of understanding. If I don't understand, I use the 'search this thread' button, if still unclear, I use google, and when I've exhausted all those options THEN I ask for help.

    Hroark has a good idea,(go figure, lol) compare his script (in his installer) to the original he posted note the changes, and try to understand why they were made.
     
  15. Kcsuper

    Kcsuper Well-Known Member
    Rank:
    None
    Points:
    43
    Posts:
    189
    Joined:
    Nov 22, 2011

    Nov 22, 2011
    189
    25
    43
    CT
    When it comes to searching the "search" doesn't give me the results I need, I usually create a new thread and type keyword(s) in the title and press tab...the dropdown usually offers me some good threads.
     
    Lordvincent 90 likes this.
  16. hroark13

    hroark13 Android Expert
    Recognized Developer
    Rank:
     #49
    Points:
    483
    Posts:
    3,288
    Joined:
    Jul 15, 2011

    Jul 15, 2011
    3,288
    4,136
    483
    I want you to answer my questions in post 7 and 8

    If you dont answer my questions I will not help you anymore, with anything

    Not a rush but once you figure it out on your own, with out help from anyone else, I want the questions answered

    There are enough clues in my post for you to figure out how to make the the mods
     
  17. thomasmbl

    thomasmbl Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    480
    Joined:
    Jul 11, 2011

    Jul 11, 2011
    480
    72
    53

    I don't know really
     
  18. thomasmbl

    thomasmbl Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    480
    Joined:
    Jul 11, 2011

    Jul 11, 2011
    480
    72
    53

    I'm using windows 7 32bit.120 gb hdd and fast internet
     
  19. hroark13

    hroark13 Android Expert
    Recognized Developer
    Rank:
     #49
    Points:
    483
    Posts:
    3,288
    Joined:
    Jul 15, 2011

    Jul 15, 2011
    3,288
    4,136
    483

    i want you to look at the scripts and figure it out

    take your time

    if you want to learn you have to know what the script is doing
     
  20. thomasmbl

    thomasmbl Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    53
    Posts:
    480
    Joined:
    Jul 11, 2011

    Jul 11, 2011
    480
    72
    53

    Ok.I might have some questions to ask you. But ill look at it n figure it out
     
  21. Kcsuper

    Kcsuper Well-Known Member
    Rank:
    None
    Points:
    43
    Posts:
    189
    Joined:
    Nov 22, 2011

    Nov 22, 2011
    189
    25
    43
    CT
    I'm using windows 7 64bit 120 gb hdd with slow internet. Can I make a rom now? lol
     
  22. Capn069

    Capn069 Well-Known Member
    Rank:
    None
    Points:
    53
    Posts:
    238
    Joined:
    Aug 6, 2011

    Aug 6, 2011
    238
    78
    53
    Male
    Georgia
    Good luck getting your Rom fixed. :)
     

Share This Page

Loading...