Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,804,709 Members 46,997 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Simple script please...

Tip us?
(Last edited by Odlanyer22; 30th August 2014 at 08:02 AM.) Reason: Update
Odlanyer22's Avatar
Junior Member - OP
Thanks Meter 1
Posts: 15
Join Date: Jul 2014
Prompt [Q] Simple script please...

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 / / how can I really mount (in read/write) /data, /sdcard and /sysem in writing in <name>.sh
(Last edited by samsungrockz; 30th August 2014 at 10:56 PM.)
samsungrockz's Avatar
Thanks Meter 10
Posts: 37
Join Date: Jul 2014
Location: Kolkata
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes