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

Nyxi

Member
May 2, 2012
8
0
0
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.
 

Dev Jaskirat

Senior Member
Jun 19, 2012
1,319
2,160
0
New Delhi
jaskiratoberoi.com
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
 

Nyxi

Member
May 2, 2012
8
0
0
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.
 
Last edited: