FORUMS
Remove All Ads from XDA
H10 Turbo

[TUTORIAL] The updater-script completely explained

2,303 posts
Thanks Meter: 5,252
 
By KINGbabasula, Recognized Developer on 25th July 2013, 12:32 PM
Post Reply Email Thread
5th August 2014, 02:28 PM |#31  
Nikhil's Avatar
Senior Member
Flag Ahmedabad
Thanks Meter: 1,719
 
More
@KINGbabasula could you explain about symlink more?
Written in OP isn't enough for my project!
 
 
5th August 2014, 07:48 PM |#32  
KINGbabasula's Avatar
OP Recognized Developer
Flag Treviso
Thanks Meter: 5,252
 
Donate to Me
More
Quote:
Originally Posted by Nikhil

@KINGbabasula could you explain about symlink more?
Written in OP isn't enough for my project!

When symlink is executed it creates a file linked to an executable. For example I have a file /bin/sh and I want to call it from somewhere else. I create a symlink of it in /sdcard/sh and if I execute sh in the sdcard folder it will be the same as executing /bin/sh
The Following 2 Users Say Thank You to KINGbabasula For This Useful Post: [ View ]
5th August 2014, 08:27 PM |#33  
Nikhil's Avatar
Senior Member
Flag Ahmedabad
Thanks Meter: 1,719
 
More
Quote:
Originally Posted by KINGbabasula

When symlink is executed it creates a file linked to an executable. For example I have a file /bin/sh and I want to call it from somewhere else. I create a symlink of it in /sdcard/sh and if I execute sh in the sdcard folder it will be the same as executing /bin/sh

and syntax for that would be
Code:
symlink("/bin/sh", "/sdcard/sh");
or vice-versa? i.e.
Code:
symlink("/sdcard/sh", "/bin/sh");
5th August 2014, 08:30 PM |#34  
KINGbabasula's Avatar
OP Recognized Developer
Flag Treviso
Thanks Meter: 5,252
 
Donate to Me
More
Quote:
Originally Posted by Nikhil

and syntax for that would be

Code:
symlink("/bin/sh", "/sdcard/sh");
or vice-versa? i.e.
Code:
symlink("/sdcard/sh", "/bin/sh");

First one
The Following User Says Thank You to KINGbabasula For This Useful Post: [ View ]
26th September 2014, 10:43 PM |#35  
cryostasis25's Avatar
Senior Member
Thanks Meter: 84
 
More
Is it possible to post my updater script here and have it checked if I did it correctly as I just created one but once it finishes it reboots to the recovery and once I just reboot it still automatically goes to the recovery. I really don't know what to do or what line i did incorrectly
Attached Files
File Type: rar META-INF.rar - [Click for QR Code] (237.9 KB, 59 views)
26th September 2014, 11:29 PM |#36  
Quote:
Originally Posted by cryostasis25

Is it possible to post my updater script here and have it checked if I did it correctly as I just created one but once it finishes it reboots to the recovery and once I just reboot it still automatically goes to the recovery. I really don't know what to do or what line i did incorrectly

The file structure is off, I'm on mobile right now or I would fix it up for you, but for now have a look here
http://forum.xda-developers.com/show....php?t=2290009
If your still stuck let me know and I'll lend a hand when I'm at a PC
Oh and be careful with the dd commands, its often best not to use these if there is another way as it even a little mistake or a corrupt file can lead to a quick brick, consider the flash raw image busybox command instead for the kernel
The Following User Says Thank You to demkantor For This Useful Post: [ View ] Gift demkantor Ad-Free
27th September 2014, 12:06 AM |#37  
cryostasis25's Avatar
Senior Member
Thanks Meter: 84
 
More
Ok will do thanks got dizzy looking at all the lines

Sent from my X140 using XDA Premium 4 mobile app
1st November 2014, 10:39 PM |#38  
Member
Thanks Meter: 5
 
More
I am making a rom in cwm but I always get the error status 0 , help me fill in the updater script correctly?

This is the updater script made from cygwin:

Code:
show_progress(0.1, 0);
format("MTD", "system");
mount("MTD", "system", "/system");
format("MTD", "userdata");
package_extract_dir("system", "/system");
symlink("dumpstate", "/system/bin/dumpcrash");
symlink("debuggerd", "/system/bin/csview");
symlink("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/touchinput");
symlink("toolbox", "/system/bin/playback");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 06755, "/system/bin/ip");
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(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm(0, 0, 0544, "/system/etc/install-recovery.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/su");
symlink("/system/xbin/su", "/system/bin/su");
show_progress(0.1, 10);
show_progress(0.2, 0);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
       write_raw_image("/tmp/boot.img", "boot"),
       delete("/tmp/boot.img"));
show_progress(0.2, 10);
unmount("/system");
The rom is for s3 mini
2nd November 2014, 01:15 AM |#39  
Status 0 usually means the wrong update-binary is being used, try to extract one from a known working ROM for your device and replace, then try again
The Following User Says Thank You to demkantor For This Useful Post: [ View ] Gift demkantor Ad-Free
12th December 2014, 11:59 PM |#40  
ziaulh.ch's Avatar
Senior Member
Flag Dhaka
Thanks Meter: 1,274
 
Donate to Me
More
Hey mate! Thanks for the thread. What about lollipop roms. Things have changed a little as it seems? I see .dat files inside. Can you tell me how make this files and also extract them?


THanks
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes