• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [ACS] Star-ScROM for Transform Ultra

Sorry guys. I'm doing my best to get this script right. wish I had some help but I'll keep trying till we get it perfect. Then I'd like to see if I can get the files from smith058 to make MrRee??ROM flashable as well I think we are almost there just have a few kinks to work out

I would like to thank hroark13 , lMonsterl, and interdpth for pointing me in the right directions for info on how to write the scripts and their advice and thank you guys for testing it
 
If i knew how the scripts work to run a zipped batch file i could help but not familiar with making scripts run
this is the most complete guide I've found on the commands:
Free Your Android - An introduction to the Edify (Updater-Script) language

You would have to create a folder, take the files from interdepth's Rom folder and place them in an appropreate according to where those files are meant to go /system or /data

eg.

MAIN FILE

system------app
--------------framework
--------------xbin
--------------etc
--------------build.prop

data---------app
--------------data

Then create a script for cwm to read as to how those files are to be placed on the phones partitions from those above folders..

I found a tool over in XDA that lets you browse the files you want to place in the zip, then you add your updater-script and specify what type of binary you use and it will create the zip for you. then it has to be signed for cwn to accept it. the tool will do that too..
fyi.. cwm uses two types of binaries. Amend for versions before version3 and Edify for versions3+. CWM for the TU is Edify..
The tool is for windows only

Here it is:
thread in XDA: [Tool] Update.zip Creator - xda-developers

Windows Installer

here is how I wrote my script

ui_print("Star-ScROM");
ui_print("By Interdpth");
ui_print("Made Flashable By");
ui_print("Mavrikmeercat");
unmount("/data");
unmount("/cache");
ui_print("Prepairing system");
delete_recursive("/system/app");
delete_recursive("/system/etc");
delete_recursive("/system/framework");
delete_recursive("/system/xbin");
delete_recursive("/system/build.prop");
ui_print("Formatting cache");
format("ext4", "EMMC", "/dev/block/mmcblk0p16", "/cache");
ui_print("Formatting data");
format("ext4", "EMMC", "/dev/block/mmcblk0p17", "/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p15", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p17", "/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p16", "/cache");
ui_print("Installing Star-ScROM");
package_extract_dir("system/app", "/system");
package_extract_dir("system/etc", "/system");
package_extract_dir("system/framework", "/system");
package_extract_dir("system/xbin", "/system");
package_extract_dir("system/build,prop", "/system");
package_extract_dir("system/obuild.prop", "/system");
package_extract_dir("data/app"."/data");
package_extract_dir("data/data"."/data");
ui_print("Setting Symlinks");
symlink("toolbox", "/system/bin/cat","/system/bin/chmod",
"/system/bin/chown","/system/bin/chownto",
"/system/bin/cmp","/system/bin/date",
"/system/bin/dd","/system/bin/df",
"/system/bin/dmesg","/system/bin/getevent",
"/system/bin/getprop","/system/bin/hd",
"/system/bin/id","/system/bin/ifconfig",
"/system/bin/iftop","/system/bin/insmod",
"/system/bin/ioctl","/system/bin/ionice",
"/system/bin/kill","/system/bin/ln",
"/system/bin/log","/system/bin/ls",
"/system/bin/lsmod","/system/bin/mkdir",
"/system/bin/mount","/system/bin/mv",
"/system/bin/nandread","/system/bin/netstat",
"/system/bin/newfs_msdos","/system/bin/notify",
"/system/bin/printenv","/system/bin/ps",
"/system/bin/renice","/system/bin/rm",
"/system/bin/rmdir","/system/bin/rmmod",
"/system/bin/route","/system/bin/schedtop",
"/system/bin/sendevent","/system/bin/setconsole",
"/system/bin/setprop","/system/bin/sleep",
"/system/bin/smd","/system/bin/start",
"/system/bin/stop","/system/bin/sync",
"/system/bin/top","/system/bin/umount",
"/system/bin/vmstat","/system/bin/watchprops",
"/system/bin/wipe");
set_perm(0, 0, 04755, "/system/bin/toolbox");
symlink("busybox", "/system/xbin/[","/system/xbin/[[","/system/xbin/addgroup",
"/system/xbin/adduser","/system/xbin/adjtimex","/system/xbin/ar",
"/system/xbin/arp","/system/xbin/arping","/system/xbin/ash",
"/system/xbin/awk","/system/xbin/basename","/system/xbin/bbconfig",
"/system/xbin/beep","/system/xbin/blkid","/system/xbin/brctl",
"/system/xbin/bunzip2","/system/xbin/bzcat","/system/xbin/bzip2",
"/system/xbin/cal","/system/xbin/cat","/system/xbin/catv",
"/system/xbin/chat","/system/xbin/chattr","/system/xbin/chgrp",
"/system/xbin/chmod","/system/xbin/chown","/system/xbin/chpasswd",
"/system/xbin/chpst","/system/xbin/chroot","/system/xbin/chrt",
"/system/xbin/chvt","/system/xbin/cksum","/system/xbin/clear",
"/system/xbin/cmp","/system/xbin/comm","/system/xbin/cp",
"/system/xbin/cpio","/system/xbin/crond","/system/xbin/crontab",
"/system/xbin/cryptpw","/system/xbin/cttyhack","/system/xbin/cut",
"/system/xbin/date","/system/xbin/dc","/system/xbin/dd",
"/system/xbin/deallocvt","/system/xbin/delgroup","/system/xbin/deluser",
"/system/xbin/depmod","/system/xbin/devmem","/system/xbin/df",
"/system/xbin/diff","/system/xbin/dirname","/system/xbin/dmesg",
"/system/xbin/dnsd","/system/xbin/dnsdomainname","/system/xbin/dos2unix",
"/system/xbin/du","/system/xbin/dumpkmap","/system/xbin/echo",
"/system/xbin/ed","/system/xbin/egrep","/system/xbin/eject",
"/system/xbin/env","/system/xbin/envdir","/system/xbin/envuidgid",
"/system/xbin/ether-wake","/system/xbin/expand","/system/xbin/expr",
"/system/xbin/fakeidentd","/system/xbin/false","/system/xbin/fbset",
"/system/xbin/fbsplash","/system/xbin/fdflush","/system/xbin/fdformat",
"/system/xbin/fdisk","/system/xbin/fgrep","/system/xbin/find",
"/system/xbin/findfs","/system/xbin/fold","/system/xbin/free",
"/system/xbin/fsck","/system/xbin/fsck.minix","/system/xbin/fsync",
"/system/xbin/ftpd","/system/xbin/ftpget","/system/xbin/ftpput",
"/system/xbin/fuser","/system/xbin/getopt","/system/xbin/getty",
"/system/xbin/grep","/system/xbin/gunzip","/system/xbin/gzip",
"/system/xbin/halt","/system/xbin/hd","/system/xbin/hdparm",
"/system/xbin/head","/system/xbin/hexdump","/system/xbin/hostid",
"/system/xbin/hostname","/system/xbin/httpd","/system/xbin/hush",
"/system/xbin/hwclock","/system/xbin/id","/system/xbin/ifconfig",
"/system/xbin/ifdown","/system/xbin/ifenslave","/system/xbin/ifplugd",
"/system/xbin/ifup","/system/xbin/inetd","/system/xbin/init",
"/system/xbin/insmod","/system/xbin/install","/system/xbin/ionice",
"/system/xbin/ip","/system/xbin/ipaddr","/system/xbin/ipcalc",
"/system/xbin/ipcrm","/system/xbin/ipcs","/system/xbin/iplink",
"/system/xbin/iproute","/system/xbin/iprule","/system/xbin/iptunnel",
"/system/xbin/kbd_mode","/system/xbin/kill","/system/xbin/killall",
"/system/xbin/killall5","/system/xbin/klogd","/system/xbin/last",
"/system/xbin/length","/system/xbin/less","/system/xbin/linux32",
"/system/xbin/linux64","/system/xbin/linuxrc","/system/xbin/ln",
"/system/xbin/loadfont","/system/xbin/loadkmap","/system/xbin/logger",
"/system/xbin/login","/system/xbin/logname","/system/xbin/logread",
"/system/xbin/losetup","/system/xbin/lpd","/system/xbin/lpq",
"/system/xbin/lpr","/system/xbin/ls","/system/xbin/lsattr",
"/system/xbin/lsmod","/system/xbin/lzmacat","/system/xbin/lzop",
"/system/xbin/lzopcat","/system/xbin/makedevs","/system/xbin/makemime",
"/system/xbin/man","/system/xbin/md5sum","/system/xbin/mdev",
"/system/xbin/mesg","/system/xbin/microcom","/system/xbin/mkdir",
"/system/xbin/mkdosfs","/system/xbin/mkfifo","/system/xbin/mkfs.minix",
"/system/xbin/mkfs.vfat","/system/xbin/mknod","/system/xbin/mkpasswd",
"/system/xbin/mkswap","/system/xbin/mktemp","/system/xbin/modprobe",
"/system/xbin/more","/system/xbin/mount","/system/xbin/mountpoint",
"/system/xbin/msh","/system/xbin/mt","/system/xbin/mv","/system/xbin/nameif",
"/system/xbin/nc","/system/xbin/netstat","/system/xbin/nice",
"/system/xbin/nmeter","/system/xbin/nohup","/system/xbin/nslookup",
"/system/xbin/od","/system/xbin/openvt","/system/xbin/passwd",
"/system/xbin/patch","/system/xbin/pgrep","/system/xbin/pidof",
"/system/xbin/ping","/system/xbin/ping6","/system/xbin/pipe_progress",
"/system/xbin/pivot_root","/system/xbin/pkill","/system/xbin/popmaildir",
"/system/xbin/poweroff","/system/xbin/printenv","/system/xbin/printf",
"/system/xbin/ps","/system/xbin/pscan","/system/xbin/pwd","/system/xbin/raidautorun",
"/system/xbin/rdate","/system/xbin/rdev","/system/xbin/readahead",
"/system/xbin/readlink","/system/xbin/readprofile","/system/xbin/realpath",
"/system/xbin/reformime","/system/xbin/renice","/system/xbin/reset",
"/system/xbin/resize","/system/xbin/rm","/system/xbin/rmdir",
"/system/xbin/rmmod","/system/xbin/route","/system/xbin/rtcwake",
"/system/xbin/run-parts","/system/xbin/runlevel","/system/xbin/runsv",
"/system/xbin/runsvdir","/system/xbin/rx","/system/xbin/script",
"/system/xbin/scriptreplay","/system/xbin/sed","/system/xbin/sendmail",
"/system/xbin/seq","/system/xbin/setarch","/system/xbin/setconsole",
"/system/xbin/setfont","/system/xbin/setkeycodes","/system/xbin/setlogcons",
"/system/xbin/setsid","/system/xbin/setuidgid","/system/xbin/sh",
"/system/xbin/sha1sum","/system/xbin/sha256sum","/system/xbin/sha512sum",
"/system/xbin/showkey","/system/xbin/slattach","/system/xbin/sleep",
"/system/xbin/softlimit","/system/xbin/sort","/system/xbin/split",
"/system/xbin/start-stop-daemon","/system/xbin/stat","/system/xbin/strings",
"/system/xbin/stty","/system/xbin/sulogin","/system/xbin/sum",
"/system/xbin/sv","/system/xbin/svlogd","/system/xbin/swapoff",
"/system/xbin/swapon","/system/xbin/switch_root","/system/xbin/sync",
"/system/xbin/sysctl","/system/xbin/syslogd","/system/xbin/tac",
"/system/xbin/tail","/system/xbin/tar","/system/xbin/tcpsvd",
"/system/xbin/tee","/system/xbin/telnet","/system/xbin/telnetd",
"/system/xbin/test","/system/xbin/tftp","/system/xbin/tftpd",
"/system/xbin/time","/system/xbin/timeout","/system/xbin/top",
"/system/xbin/touch","/system/xbin/tr","/system/xbin/traceroute",
"/system/xbin/true","/system/xbin/tty","/system/xbin/ttysize",
"/system/xbin/tunctl","/system/xbin/udpsvd","/system/xbin/umount",
"/system/xbin/uname","/system/xbin/uncompress","/system/xbin/unexpand",
"/system/xbin/uniq","/system/xbin/unix2dos","/system/xbin/unlzma",
"/system/xbin/unlzop","/system/xbin/unzip","/system/xbin/uptime",
"/system/xbin/usleep","/system/xbin/uudecode","/system/xbin/uuencode",
"/system/xbin/vconfig","/system/xbin/vi","/system/xbin/vlock",
"/system/xbin/volname","/system/xbin/watch","/system/xbin/watchdog",
"/system/xbin/wc","/system/xbin/wget","/system/xbin/which",
"/system/xbin/who","/system/xbin/whoami","/system/xbin/xargs",
"/system/xbin/yes","/system/xbin/zcat","/system/xbin/zcip");
ui_print("Setting Permissions")
set_perm(0, 1000, 0755, "/system/xbin/busybox");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/hcitool");
set_perm(0, 0, 06755, "/system/xbin/librank");
set_perm(0, 0, 06755, "/system/xbin/procmem");
set_perm(0, 0, 06755, "/system/xbin/procrank");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/tcpdump");
ui_print("First boot can take a while");
unmount("/system");
unmount("/data");
ui_print("DONE! Reboot System Now");

anyone see anything wrong please point it out feel free to experiment or ask me anything.
here is my updater-script file if you would like to work from it:
http://dl.dropbox.com/u/50773952/updater-script
 
Tried to install V6 for boost, used the adb method by running the bat file, failed twice. The bat file did run as if it installed, it even rebooted back to the same stock rom I was running. Then tried the flash able zip file, and had no luck with that. I have the drivers installed as I just rooted the device. Any tips on how to push this would be great. :mad:
 
FOR WINDOWS ONLY

Assuming you have installed Java JDK-6, Android SDK, and have set up ADB and have installed the Samsung drivers for windows

1. Download and install the newest version of notepad++ here

2. Unzip/extract the Star-ScROM0.6 folder in the same place you downloaded it.

3. Move the extracted folder to C:\users\your name\My Documents.
This is to make it easier for me to give instructions.

4. Now navigate to C:\users\your name\My Documents\Star-ScROM0.6\Star-ScROM and right click on Star-ScROM-0.6-BOOST and select "edit with notepad++"
(You should now see the Commands for the rom)

5. Grab the top of the notepad++ window and snap it to the right of the screen

6. Plug in your TU usb cable and plug it in to you PC

7. Press the windows key on your keyboard and type cmd and hit enter
(command prompt)

8. Just to Check, type adb devices and press enter
you should see your device model #
mavrikmeercat-albums-support-picture5259-capture1.png


9. Now, In the command prompt, you will have move to inside the Star-ScROM folder in order to push the files directly so, type this command:
(from now on, always press enter after a command is given)

cd My Documents\Star-Scrom0.6\Star-ScROM

your prompt should now look like this:
mavrikmeercat-albums-support-picture5266-capture2.png


10. Now check the files in that directory to make sure your in the right directory. Type:
You should see the files in the Star-ScROM folder listed:
mavrikmeercat-albums-support-picture5267-capture3.png

Now you're ready to push Star-ScROM...

11. Bring up the notepad++ window with the commands in it from earlier and snap it to the right of the screen and move the cmd window to the left of the screen so you can see both and move between the two of them like so:
mavrikmeercat-albums-support-picture5265-capture4.png


12. Starting from the "RUNROOT:" line in notepad++, copy the adb.exe commands and paste them in the cmd one at a time, pressing enter after each line.
When you run the adb.exe wait-for-device command, you will have to disconnect your TU and reconnect it before the command prompt will respond. (not sure if you need to run it but I did just to be sure I was doing it right)
You DO NOT need to run the echo commands...

The last line/command from notepad++ is:
adb.exe shell reboot
Your TU should restart and you should have Star-ScROM0.6.
Check to see if you have Star Settings and Advanced Task Killer in your app drawer to confirm

13. After that, in the command prompt type:

I will give advice directed to pushing the ROM but if you have problems with adb detecting your device or similar problems then you need to check that first. the link above "set up adb" is a very usefull guide so you should start there first to fix your problem. Once you have done that then come back and start over. Please dont post questions already answered in the instructions. You will get no answer. I suggest you educate yourself on adb and how to use it elsewhere if you know nothing about it... I would not have time to cover it all and don't want to. If you want to do this type of stuff then READING is your friend..;)
 
Mavrikmeercat you are the man. I was able to push the rom manually with your instructions. I'm going to play with it for a little bit. Thank you for all your help.
 
Mavrikmeercat you are the man. I was able to push the rom manually with your instructions. I'm going to play with it for a little bit. Thank you for all your help.
It's this community that is truly awesome. I'm just trying do give back for all I have learned and have recieved from so many awesome people.

If you all are seeking info on development on a boost device then you should go to the Samung Galaxy Prevail - All Things Root Threads. Development is huge (because it's been out longer) for that device and there is tons of info on everything you, as a boost customer and as a samsung device user, need to know about these devices. and get to know those devs. cuz they will eventually move this way. Shabbypenguine gave us our first ROM and Interdpth gave us root on the prevail. The more devs you have working on a device the faster you'll get Kernels, ROMs, Scripts, and Themes..
 
wow, thank you for your research and hard work setting up the script.
:):):)
well the script isn't working so there isnt really anything to thank me about yet. but your welcome, we could use someone else to learn about this as well. the more the merrier and the faster it will come.
 
Worked on the script again.. found the errors, I think. anyone want to test this out? post back the results...

I just updated the link in
post# 220
 
ok i got the starsettings but does any about phone info change to show that full rom installed i see that it pushed starsettings apk but that dont mean i got the complete goodness.
 
ill keep ya posted.
ok ran through no errors phone is booting now will update
ok it booted up fine but i dont think it flashed the full rom i mean all my apps are gone but the star settingsapk he made in rom isnt there . is it suppose to change any info in the about phone section so i can tell if it worked
 
ill keep ya posted.
ok ran through no errors phone is booting now will update
ok it booted up fine but i dont think it flashed the full rom i mean all my apps are gone but the star settingsapk he made in rom isnt there . is it suppose to change any info in the about phone section so i can tell if it worked
no but the starsettings and advanced task killer should be there.
it's a modded stock rom so it looks the same and about phone would'nt change. Man this script is a pain. did you make a backup before you flashed it?
 
i made a backup last night before bed and made one the other day when i first got cwm installed just to test.

man this backup and restore is awesome it even restores installed apps and settings very nice . on my intercept i was lucky if it restored the rom lol

since i know my backup and restore works ill test em for ya let me know :)
 
mavrikmeercat, what are the symlinks?
symlink("from","to")

what is "from" and what is "to"?
(i know they are file names but... mmmm lost)
honestly... I cant find shit on what they are but form what little exp. I've gained by reading them it looks to set how busybox and toolbox are used by the system. I found a thread in XDA with a universal/ typical script for a rom with root. as to how to manually write them. cant find nothing. I made a thread in all things root with all the info I have on it but I'm just trying to test changes right now. any help you can give would be greatly appreciated but I'm starting to think I need a guru to explain this. there really isn't any info on it to educate yourself on it. I'm guessing because Edify is newer

I did write everything else but the symlinks
 
mavrikmeercat, what are the symlinks?
symlink("from","to")

what is "from" and what is "to"?
(i know they are file names but... mmmm lost)

The way busybox works is that it will execute all sorts of commands based on how it is invoked. So for instance, if busybox is invoked with the name cat, it will do what cat does (dump a file or files or stdin to stdout)

so doing the equivalent of
ln -s busybox cat

allows busybox to be invoked as cat.

The symlink is sort of like a windows shortcut. It allows a file to be referenced by another name. (I know more about UNX/Linux than Windows - so my analogy probably breaks down at some level)

This is an old UNIX trick - basically you can have the same binary invoked in multiple ways, and it will behave differently based on the command used to invoke it. Basically, the command used to invoke a binary is passed to the binary - and it can decide what to do based on that command.
 
The way busybox works is that it will execute all sorts of commands based on how it is invoked. So for instance, if busybox is invoked with the name cat, it will do what cat does (dump a file or files or stdin to stdout)

so doing the equivalent of
ln -s busybox cat

allows busybox to be invoked as cat.

The symlink is sort of like a windows shortcut. It allows a file to be referenced by another name. (I know more about UNX/Linux than Windows - so my analogy probably breaks down at some level)

This is an old UNIX trick - basically you can have the same binary invoked in multiple ways, and it will behave differently based on the command used to invoke it. Basically, the command used to invoke a binary is passed to the binary - and it can decide what to do based on that command.
sounds like I could use your help figuring this out.. trying to figure out how to write the scripts in the meta.inf of a cwm.zip. I've actually been on linux for about 8 years but I'm still learning everyday. just cant get the scripts to write the files for nothing
 
Back
Top Bottom