[Collection] Updater Script commands with short discribe - Android

OK, Lets Start
1.(Mounting system)-
______________
[[ mount("yaffs2", "MTD", "system", "/system");]]
[[ run_program("/sbin/busybox", "mount", "/system");]]
_______________
^^^ this 2 command is for mounting system.....
(Discribe)-use any command from this 2 command for mounting system pertition.this give you permission to write and read system pertition.So you must use these command in update script.you can mount anothers folders like data.just write data in stead of system.E.X- [[ mount("yaffs2", "MTD", "data", "/data");]] and no need to mount sdcard...
2.Formating system-
_______________
[[ format("yaffs2", "MTD", "system", "/system");]]
[[ run_program("/sbin/busybox", "format", "/system");]]
_______________
^^^this 2 command is for formating system pertition....
(Discribe)-this 2 command are used in formating system pertition...you can use it in your custom rom's script but in case of flashable patch/upadate zip dont use it.its only for custom ron's script...
3. package extracting -
_______________
[[package_extract_dir("system", "/system");]]
_______________
^^^this command for extracting package...
(Discribe)-this command for extracting files...^^^this command is used for extractimg files in system pertition..you also ectract anothers files in anothers pertition...like by this- [[package_extract_dir("data", "/data");]]your data files are extracted in data pertition... [[package_extract_dir("data", "/data");]] by this your sdcard folder will be extracted in your sdcard...
4.(Smylink)-
_______________
[[symlink("toolbox", "/system/bin/mount");]]
_______________
^^^This command for smylink...
(Discribe)-you can use this command if you want to add some brinay in system/bin folder...
5.setting permissions(folder)-
_______________
[[set_perm_recursive(0, 0, 0755, 0644, "/system]]
_______________
^^^this command for setting permission(folder)
(Discribe)-this is used for set permission of system folder...
6.setting permission(files)-
_______________
[[ set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");]]
_______________
^^^this command for setting permission(files)
(Discribe)-this is used for set permission for defferent files
7.Delect files/folder-
_______________
[[ delete_recursive("/system/appbackup");]]
_______________
^^^this for delecting folder/files...
(Discribe)-this is used for delact adutional files/folders...
8.installing busybox-
_______________
[[ set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
ui_print(" Installing BusyBox ");
sleep(2);
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");]]
_______________
^^^this whole line is for installing busybox
(Discribe)-this is used for installing busybox...for this your busybox must be in system/xbin..
9.For rooting-
_______________
[[ ui_print(" Rooting ");
set_perm(0, 0, 06755, "/system/xbin/su");
symlink("/system/xbin/su", "/system/bin/su");]]
_______________
^^^this lines for rooting...
(Discribe)-this is used for auto rooting...for this su file must be in system/xbin
10.unmounting-
_______________
[[ui_print(" Unmount system ");
unmount("/system");]]
[[ run_program("/sbin/busybox", "umount", "/system");]]
_______________
^^^this 2 command for unmounting...
(Discribe)-this is used for unmounting system...you must need to unmount another folders too which you mounted like-[[ unmount("/data");]] and [[unmount("/sdcard");]]
11.Show progress-
_______________
[[ show_progress(0.2, 10);]]
_______________
this for show your ui print times
12.ui_print-
_______________
[[ ui_print(" Starting to install... ");]]
_______________
^^^this is ui print what is showed on cwm....
13.auto reboot-
_______________
[[ui_print(" Auto rebooting ");
sleep(2);
ui_print(" Opening Cayno 'X'... ");
sleep(2);
run_program("/sbin/sleep", "5");
run_program("/sbin/reboot");]]
_______________
^^^this whole line for auto rebooting.
14.installing backup imei and restore imei-
_______________
[[ ui_print(" Backuping your imei ");
sleep(2);
package_extract_file("backup_imei", "/tmp/backup_imei");
set_perm(0, 0, 0777, "/tmp/backup_imei");
run_program("/tmp/backup_imei");]]
_______________
^^^this for backup imei
Discribe)-for this the backup imei files must be in you zip folder with meta_inf, system, another files...
______________
[[ ui_print(" Restoring your imei ");
sleep(2);
package_extract_file("restore_imei", "/tmp/restore_imei");
set_perm(0, 0, 0777, "/tmp/restore_imei");
run_program("/tmp/restore_imei");]]
_______________
^^^this for restoring imei....
(Discribe)- for this the restore imei files must be in you zip folder with meta_inf, system, another files...
15.logo.bin-
_______________
[[ ui_print(" Extracting boot logo ");
sleep(2);
package_extract_file("logo.bin", "/dev/logo");]]
_______________
^^^this for installing boot logo...
(Discribe)- for this the logo.bin files must be in you zip folder with meta_inf, system, another files...
16.for installing boot.img-
[[ ui_print(" Installing kernel ");
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "bootimg"),
delete("/tmp/boot.img"));]]
_______________
^^^this for extract and installing new karnel/boot.img
(Discribe)- for this the boot.img file must be in you zip folder with meta_inf, system, another files...
17.active init.d-
_______________
[[ ui_print(" Activated init.d ");
sleep(2);
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");]]
________________
^^^this for active init.d...
(Discribe)-for this the init.d file must be in system/etc
18.sleep-
________________
[[sleep(2);]]
________________
[[run_program("/sbin/sleep", "3");]]
________________
^^^this 2 command for sleep...
(Discribe)-this commands are same as show_progress...
19.for making recovery.img flashable zip-
________________
[[ui_print("Starting Installation......... ");
ui_print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-");
sleep(5);
assert(package_extract_file("recovery.img", "/dev/recovery"));]]
________________
^^^this for installing recovery.img
(Discribe)-for this you recovery.img must be in your zip with another folder..just put it with meta_inf and make zip and flash...
_______________________________________
Thats all important command...and i know...if you know anothers command what i forget to add then told me plz...i will add this too....
_______________________________________
Written by :
MD Shafikul
HIT THANKS IF I HELPED U

Most of these commands don't actually do as your titles suggest.
For example, 17 doesn't activate anything. It just prints a line and gives everyone access to the init.d file.
Most of these command just make the device wait before doing anything or print a string to the screen.

Thanks bro. For ur feedback.

unable to mount device read write.
Hi,
I have a rooted lava iris x5 KitKat 4.4.2 android phone. I have installed busybox, tun ko. When I try to install binary in openvpn installer, I get system is mounted read only. I tried
PHP:
remount
command in emulator but it shows no device found . when given [mount] this what the output is
PHP:
. [email protected]:/ $ su
[email protected]:/ # mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0
tmpfs /mnt/secure tmpfs rw,seclabel,relatime,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
tmpfs /mnt/media_rw tmpfs rw,seclabel,relatime,size=0k,mode=700,uid=1023,gid=1023 0 0
tmpfs /storage tmpfs rw,seclabel,relatime,size=0k,mode=751,gid=1028 0 0
/dev/block/platform/sdhci.1/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
/dev/block/platform/sdhci.1/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,errors=panic,data=ordered 0 0
/dev/block/platform/sdhci.1/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,errors=panic,data=ordered 0 0
adb /dev/usb-ffs/adb functionfs rw,relatime 0 0
/dev/block/vold/179:169 /mnt/media_rw/sdcard0 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:169 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/vold/179:32 /mnt/media_rw/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/fuse /storage/sdcard1 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
[email protected]:/ #

ShrikrishnaP said:
Hi,
I have a rooted lava iris x5 KitKat 4.4.2 android phone. I have installed busybox, tun ko. When I try to install binary in openvpn installer, I get system is mounted read only. I tried
PHP:
remount
command in emulator but it shows no device found . when given [mount] this what the output is
PHP:
. [email protected]:/ $ [email protected]:/ # mountrootfs / rootfs ro,relatime 0 0tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0proc /proc proc rw,relatime 0 0sysfs /sys sysfs rw,seclabel,relatime 0 0selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0none /acct cgroup rw,relatime,cpuacct 0 0none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0tmpfs /mnt/secure tmpfs rw,seclabel,relatime,mode=700 0 0tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0none /dev/cpuctl cgroup rw,relatime,cpu 0 0tmpfs /mnt/media_rw tmpfs rw,seclabel,relatime,size=0k,mode=700,uid=1023,gid=1023 0 0tmpfs /storage tmpfs rw,seclabel,relatime,size=0k,mode=751,gid=1028 0 0/dev/block/platform/sdhci.1/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0/dev/block/platform/sdhci.1/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,errors=panic,data=ordered 0 0/dev/block/platform/sdhci.1/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,errors=panic,data=ordered 0 0adb /dev/usb-ffs/adb functionfs rw,relatime 0 0/dev/block/vold/179:169 /mnt/media_rw/sdcard0 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0/dev/block/vold/179:169 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0/dev/block/vold/179:32 /mnt/media_rw/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0/dev/fuse /storage/sdcard1 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 [email protected]:/ #
Click to expand...
Click to collapse
Sent from my iris X5 using XDA Free mobile app

Related

Rezound mount points

$ mount
mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
/dev/block/mmcblk0p29 /system ext4 ro,relatime,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p35 /data ext4 rw,nosuid,nodev,noatime,barrier=1,nodelalloc,da
ta=ordered 0 0
/dev/block/mmcblk0p36 /cache ext4 rw,nosuid,nodev,noatime,barrier=1,nodelalloc,d
ata=ordered 0 0
/dev/block/mmcblk0p30 /devlog ext4 rw,nosuid,nodev,noatime,barrier=1,nodelalloc,
data=ordered 0 0
/dev/block/mmcblk0p17 /vendor/firmware/misc vfat ro,relatime,fmask=0000,dmask=00
00,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=re
mount-ro 0 0
/dev/block/mmcblk0p21 /vendor/firmware/adsp vfat ro,relatime,fmask=0000,dmask=00
00,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=re
mount-ro 0 0
/dev/block/mmcblk0p18 /vendor/firmware/misc_mdm vfat ro,relatime,fmask=0000,dmas
k=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=lower,error
s=remount-ro 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /app-cache tmpfs rw,relatime,size=8192k,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
tmpfs /data/secure/data tmpfs rw,relatime,mode=771,uid=1000,gid=1000 0 0
/data/d /data/d debugfs rw,relatime 0 0
htcfs /data/htcfs fuse.htcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow
_other 0 0
/dev/block/vold/179:37 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,
uid=1000,gid=1015,fmask=0202,dmask=0202,allow_utime=0020,codepage=cp437,iocharse
t=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:37 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,rela
time,uid=1000,gid=1015,fmask=0202,dmask=0202,allow_utime=0020,codepage=cp437,ioc
harset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
/dev/block/vold/179:65 /mnt/sdcard/ext_sd vfat rw,dirsync,nosuid,nodev,noexec,re
latime,uid=1000,gid=1015,fmask=0202,dmask=0202,allow_utime=0020,codepage=cp437,i
ocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
DxDrmServerIpc /data/DxDrm/fuse fuse.DxDrmServerIpc rw,nosuid,nodev,relatime,use
r_id=0,group_id=0,allow_other 0 0
do you have the partition sizes?
con247 said:
do you have the partition sizes?
Click to expand...
Click to collapse
Phone is out of my hands now. I do not.
That is fine. How did you root it? Zergrush or whatever?
con247 said:
That is fine. How did you root it? Zergrush or whatever?
Click to expand...
Click to collapse
Zerg worked for temp root. Permanent root did not work. Also I'd like to mention that I removed all bloat from /system/app but it ended up coming back after the reboot. The market started to download every application i removed. Sucks.
How would I add these mount points to the Android Kitchen?
xboxexpert said:
Zerg worked for temp root. Permanent root did not work. Also I'd like to mention that I removed all bloat from /system/app but it ended up coming back after the reboot. The market started to download every application i removed. Sucks.
Click to expand...
Click to collapse
It probably has nand lock so the files may have not even been deleted. I am sure we can get around that issue once we have some to play with. I am sure there is an APK or something that checks /system so if we find and remove that we should be OK.
con247 said:
It probably has nand lock so the files may have not even been deleted. I am sure we can get around that issue once we have some to play with.
Click to expand...
Click to collapse
No I mean to add the device to the android kitchen. You need a mount file to get the roms correctly flashable.
sorry, i quoted the wrong thing. I meant to quote the fact that the apps he removed re-appeared after reboot. Sorry that was probably confusing as hell to anyone that read that.
dmeadows013 said:
No I mean to add the device to the android kitchen. You need a mount file to get the roms correctly flashable.
Click to expand...
Click to collapse
do it manually type them in to the updater-script
in other words
Mount Script:
mount("ext4", "EMMC", "/dev/block/mmcblk0p29", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p35", "/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p36", "/cache");
run_program("/sbin/busybox", "mount", "/sdcard");
Format Script:
format("ext4", "EMMC", "/dev/block/mmcblk0p29", "/system");
format("ext4", "EMMC", "/dev/block/mmcblk0p35", "/data");
format("ext4", "EMMC", "/dev/block/mmcblk0p36", "/cache");
What are the /boot and /sdcard mount points?
You need to add a definition file to the kitchen, look at what's already there for the info you need.
D
/boot emmc /dev/block/mmcblk0p22
/cache ext4 /dev/block/mmcblk0p36
/data ext4 /dev/block/mmcblk0p35
/misc emmc /dev/block/mmcblk0p24
/recovery emmc /dev/block/mmcblk0p23
/sdcard vfat //dev/block/mmcblk0p1 /dev/block/mmcblk0
/system ext4 /dev/block/mmcblk0p29
/sd-ext ext4 //dev/block/mmcblk0p2
// <-- means I want more info..
cat /proc/emmc
at /proc/emmc
dev: size erasesize name
mmcblk0p24: 00fff600 00000200 "misc"
mmcblk0p23: 00fffc00 00000200 "recovery"
mmcblk0p22: 01000000 00000200 "boot"
mmcblk0p29: 4dfffc00 00000200 "system"
mmcblk0p31: 001ffe00 00000200 "local"
mmcblk0p36: 13fffe00 00000200 "cache"
mmcblk0p35: 97fffe00 00000200 "userdata"
mmcblk0p30: 01dba800 00000200 "devlog"
mmcblk0p33: 00040000 00000200 "pdata"
mmcblk0p17: 02800000 00000200 "radio"
mmcblk0p21: 02000000 00000200 "adsp"
mmcblk0p19: 007ffc00 00000200 "radio_config"
mmcblk0p25: 00400000 00000200 "modem_st1"
mmcblk0p26: 00400000 00000200 "modem_st2"
mmcblk0p18: 02800000 00000200 "mdm9k"
mmcblk0p20: 007ffa00 00000200 "mdm9k_config"
mmcblk0p27: 00400000 00000200 "mdm_efs1"
mmcblk0p28: 00400000 00000200 "mdm_efs2"
$
The way XDA handle my post is dumb..
I need the mounts for sd-card and sd-ext

[Q] updater-script to mount and remove stuff from vendor partition?

Hi, I am trying to edit a updater-script in a flashable CWM zip file to mount the vendor partition and then remove some files from it. This is what I have so far and it's not working, I can flash the zip but the app is not removed:
Code:
show_progress(0.1, 0);
ui_print(" ");
ui_print(" ");
ui_print("VENDOR CLEANER, GO!");
ui_print(" ");
ui_print(" ");
mount("MTD", "system", "/system");
run_program("/system/xbin/busybox", "mount", "-wt", "yaffs2", "/dev/mtdblock1", "/system/vendor");
run_program("/system/xbin/busybox", "rm", "-f", "/system/vendor/app/trackid.apk");
unmount("/system");
unmount("/system/vendor");
show_progress(1, 0);
ui_print(" ");
ui_print(" ");
ui_print("FLASH SUCCESSFUL");
I am well aware I can use Titanium Backup to remove the app in question but I want to do it this way for a project of mine.
Code:
show_progress(0.1, 0);
ui_print(" ");
ui_print(" ");
ui_print("VENDOR CLEANER, GO!");
ui_print(" ");
ui_print(" ");
mount("MTD", "system", "/system");
run_program("/system/xbin/busybox", "mount", "-wt", "yaffs2", "/dev/mtdblock1", "/system/vendor/");
run_program("/system/xbin/busybox", "rm", "-f", "/system/vendor/app/trackid.apk");
unmount("/system");
unmount("/system/vendor/");
show_progress(1, 0);
ui_print(" ");
ui_print(" ");
ui_print("FLASH SUCCESSFUL");
Try this
Are u sure the app is in /system/vendor/app?
I think its in /system/app
Sent from my Neo V running JS v6.2.5 using tapatalk 2
There isn't any app in /system/vendor on stock ICS just some libs and config files.
mati865 said:
There isn't any app in /system/vendor on stock ICS just some libs and config files.
Click to expand...
Click to collapse
Well your run program line says in the end /system/ vendor/app/trackid.apk
Sent from my Neo V running Paranoid android RC2 test build 5 using tapatalk 2
When I flash the stock Sony .587 firmware with Flashtool I get a vendor partition on /dev/block/mtdblock1 that is mounted on /system/vendor. When I check /system/vendor/app all the Sony junk apps are there, like Let's Golf and trackid etc.
Code:
tmpfs on /dev type tmpfs (rw,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /acct type cgroup (rw,relatime,cpuacct)
tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000)
tmpfs on /mnt/obb type tmpfs (rw,relatime,mode=755,gid=1000)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
/dev/block/mtdblock0 on /system type yaffs2 (rw,relatime)
/dev/block/mtdblock2 on /data type yaffs2 (rw,nosuid,nodev,relatime)
/dev/block/mtdblock3 on /cache type yaffs2 (rw,nosuid,nodev,relatime)
/dev/block/mtdblock1 on /system/vendor type yaffs2 (ro,relatime)
I have tried many many ways to mount /dev/block/mtdblock1 when in CWM but it appears CWM just can't see that device and thus can't mount it.

Mount Point problem

I have created rom for Xolo Q700.
While flashing it showed me a Status 0 Error(CWM Recovery).
It's due to system mount point error.
I used this cmd on updater-script.
Code:
format("ext4", "EMMC", "/[email protected]");
mount("ext4", "EMMC", "/[email protected]", "/system")
Then I checked the mount pointmount)
Code:
[email protected]:/ # mount
mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/secure tmpfs rw,relatime,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/[email protected] /system ext4 ro,noatime,noauto_da_alloc,commit=1,data=ordered 0 0
/[email protected] /data ext4 rw,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered 0 0
/[email protected] /cache ext4 rw,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered 0 0
/dev/block/loop0 /mnt/cd-rom iso9660 ro,relatime 0 0
/[email protected]_f /protect_f ext4 rw,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered 0 0
/[email protected]_s /protect_s ext4 rw,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered 0 0
/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/vold/179:97 /storage/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
Any solution?
I don't know the solution. However, I hope you get the solution for it. Egerly awaiting the rom for Q700.
Solved the problem.
It was due to the corrupted update binary.
ROM will be uploaded soon.
Sent from my Q700 using xda app-developers app
Great!
Dude, any news on the ROM?
Please help
I tried to make a stock flashable zip, from a backup, in mtk 6592 device.
At first, i got status 0 errot to flash it, but i solved correcting the updater-script, and it flashed, but didn' boot, i think that because of a corrupted binary too.
I used dsixda kitcehn.

[CANCELLED] M-Horse S51 root feedback ....as device bricked

Hi
I am aware of the wonderful posts of
ElectronikHeart
for Spreadtrum devices but poster has no mention of sc7715 as yet.
2) I have yet to root this device but have been restricted to APK, fastboot, adb as I have only a Linux PC
b) attempts to vroot via WINE on Linux also a fail....I suspect because WINE does not have devman.
ie Not able to install Windows USB drivers and have them corrrectly associated with M-Horse
3) I read about the TBH "factory" cables and bought one, actually I bought the cheaper adapter but its the same thing
Yes I know its not mentioned in the supported devices list
However, I was hoping it might put my device into "download mode"
It doesn't so end of feedback so far.
thanks for reading.
###################
M-Horse
CPU SC7715
ro.build.id=KOT49H....from build.prop
ro.board.platform=scx15....from build.prop
##### following is mounts info
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
adb /dev/usb-ffs/adb functionfs rw,relatime 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /sys/fs/cgroup tmpfs rw,relatime,mode=750,gid=1000 0 0
pstore /sys/fs/pstore pstore rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
/dev/ubi0_system /system ubifs ro,nosuid,nodev,relatime,compr=lzo 0 0
/dev/ubi0_userdata /data ubifs rw,nosuid,nodev,noatime,compr=lzo 0 0
/dev/ubi0_prodnv /productinfo ubifs rw,nosuid,nodev,noatime,compr=lzo 0 0
/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/temp_sd fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
tmpfs /storage/emulated tmpfs rw,nosuid,nodev,relatime,mode=751,gid=1028 0 0
/dev/block/vold/179:1 /mnt/media_rw/sdcard0 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:1 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/loop0 /cache ext4 rw,relatime,data=ordered 0 0
/dev/ubi0_cache /cache2 ubifs rw,relatime 0 0
/dev/fuse /storage/emulated/0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/legacy fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/0/temp_sd fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/legacy/temp_sd fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
########## end of mounts info
##### following is mtd
dev: size erasesize name
mtd0: 00040000 00040000 "spl"
mtd1: 000c0000 00040000 "2ndbl"
mtd2: 00080000 00040000 "kpanic"
mtd3: 1fe80000 00040000 "ubipac"
############# end of mtd
###### following is partitions
major minor #blocks name
7 0 61440 loop0
179 0 7761920 mmcblk0
179 1 7757824 mmcblk0p1
253 0 204800 zram0
Click to expand...
Click to collapse
So attempted to use Windows and vroot with Windows drivers, an user usb ini file called adb_usb.ini
contents
0x1782
Click to expand...
Click to collapse
on phone allow Windows fingerprint
vroot progresses better than WINE on Linux to say Daemon is installing.....then I get to green root button and then fail
reboot phone and retry no luck
so here is what I have tried as well
APKs
z4root
tr (towell)
framaroot (yes I know its MTK-based)
RootGenius
rootmaster (an APK version of vroot)
Click to expand...
Click to collapse
also tried various Linux scripts based on
Motochopper
Doomlord
saferoot
Click to expand...
Click to collapse
I am struggling with this beast

Need help to run script after external SD card mounted

Hi.. I need to run a script AFTER the sdcard is mounted. However, it seems that my script is always run before or when the sdcard is not mounted yet. My phone is rooted already.
This is my script, located at /etc/init.d/myscript.sh
Code:
#!system/bin/sh
#this is to show that my script is run properly as root.
chmod 777 /cache
mkdir /cache/foo
### and it runs without any problem. So far so good.
#now I want to check if there is file "foo.img" at my external sd card "/storage/0764-8617"
#of course, there IS the file at /storage/0764-8617
#i tried all "wait", "loop" below to make sure sdcard is loaded before the "if" block below..
wait /dev/block/loop1
count=10
until [ -d /storage/0764-8617 ] || [ $count -lt 1 ];
do
sleep 1
count=$((count-1));
done;
sleep 10
if [ -f /storage/0764-8617/foo.img ] ; then
echo "File existed
else
echo "File not found"
fi
#but it always spits out that "File not found!"
How should I fix this code so that the script can always find /storage/0764-8617/foo.img
this is what mounted in my phone:
cat /proc/mounts
rootfs / rootfs rw,seclabel 0 0
tmpfs /tmp tmpfs rw,seclabel,relatime 0 0
proc /proc proc rw,relatime 0 0
tmpfs /proc/cmdline tmpfs rw,seclabel,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
adb /dev/usb-ffs/adb functionfs rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,seclabel,relatime 0 0
none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
/dev/fuse /mnt/runtime/default/emulated fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/runtime/read/emulated fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/runtime/write/emulated fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/vold/public:179,129 /mnt/media_rw/0764-8617 vfat rw,dirsync,nosuid,nodev,noexec,noatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/public:179,129 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,noatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/fuse /mnt/runtime/default/0764-8617 fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/runtime/read/0764-8617 fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/runtime/write/0764-8617 fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/dm-0 /mnt/asec/com.UCMobile.intl-2 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0
tmpfs /storage/emulated tmpfs rw,seclabel,relatime,mode=755,uid=1023,gid=1023 0 0
/[email protected] /system ext4 ro,seclabel,relatime,data=ordered 0 0
/[email protected] /cache ext4 rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered 0 0
/dev/block/loop101 /cache/QQdata ext4 rw,seclabel,relatime,data=ordered 0 0
/[email protected] /data ext4 rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,resuid=10010,data=ordered 0 0
/[email protected] /data/sdext2 ext4 rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered 0 0
/[email protected]_f /protect_f ext4 rw,seclabel,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered 0 0
/[email protected]_s /protect_s ext4 rw,seclabel,nosuid,nodev,noatime,nodelalloc,noauto_da_alloc,commit=1,data=ordered 0 0
/[email protected] /cust ext4 rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered 0 0
/[email protected] /persist ext4 rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered 0 0
/[email protected]_lg /persist-lg ext4 rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered 0 0
/[email protected] /mpt ext4 rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered 0 0
tmpfs /storage tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
/dev/fuse /storage/emulated fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/0764-8617 fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/loop1 /su ext4 rw,seclabel,noatime,data=ordered 0 0
p/s: I have found a way quite simple, but crazy solution to my problem by directly check and wait for the file and IT WORKS.
Code:
until [ [COLOR="Red"]-f /storage/0764-8617/foo.img[/COLOR]] || [ $count -lt 1 ];
but my question is still open: I link some app from foo.img, (that is mounted to /dev/block/loop1), to /data/app but it is not shown in the app drawer, even after reboot. However if I put the image in internal storage, then the app can be shown.

Categories

Resources