Post Reply

[Q] Simple script please...

OP Odlanyer22

30th August 2014, 06:14 AM   |  #1  
Odlanyer22's Avatar
OP Junior Member
Thanks Meter: 1
 
15 posts
Join Date:Joined: Jul 2014
I am trying to create my own flashable icon pack based on flahable zip for Galaxy Y...

But I wonder if the written command line to mount /data, /sdcard and /system on updater-script is for all device?

mount("rfs", "EMMC", "/dev/block/stl9", "/system");
mount("rfs", "EMMC", "/dev/block/stl9", "/system");
mount("rfs", "EMMC", "/dev/block/stl2", "/data");
mount("rfs", "EMMC", "/dev/block/stl11", "/data");
mount("rfs", "EMMC", "/dev/block/mmcblk0p2", "/sd-ext");

So, I have to checked on other flashable zip (flashable SuperSU) that I have used if it's the same, but I found:

mount /system
mount /data
mount -o rw,remount /system
mount -o rw,remount /system /system
mount -o rw,remount /
mount -o rw,remount / /

...so how can I really mount (in read/write) /data, /sdcard and /sysem in writing in <name>.sh
TIA!
Last edited by Odlanyer22; 30th August 2014 at 08:02 AM. Reason: Update
30th August 2014, 10:53 PM   |  #2  
samsungrockz's Avatar
Member
Flag Kolkata
Thanks Meter: 10
 
46 posts
Join Date:Joined: Jul 2014
More
The flashable SuperSU uses a different approach, a shell script to flash packages.
However, for most of the flashable zips, people use the first method i.e updater script method

include a busybox command in a sbin folder,
Now mount /system using
run_program("/sbin/busybox", "mount", "-o", "remount,rw", "/system");
and mount /data and /sdcard similarly

Hope it helps
Last edited by samsungrockz; 30th August 2014 at 10:56 PM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Questions and Answers by ThreadRank