mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
mount -o ro,remount -t yaffs2 /dev/block/mtdblock0 /systemBut since you will be running shell commands for that task anyway, I suggest you do all the deleting with shell commands as well - this way you won't have to insert an action for each file you want removed and you won't end up with 389484 Delete File actions ;). It will probably also be a bit faster than using Delete File actions, but I'm not sure about that. Anyway, if you want to do it with shell commands, you could put the following in the Run Shell action:
Yar, since you actually have to root your phone for this task to actually work, might as well install busybox while you're there.. Not doing so would roughly equate having a condom but keeping it in your pocket while having sex with a random stranger : not really useful in any practical way.. ^^
Interesting -if not to say crucial- is that the shell command to set the /system partition to R/W actually varies with the brand/model of your device and is usually specific to a brand or family of devices.. E.g., Ivelin I can tell frim your command that you most probably own an HTC device, since mtdblock0 is mostly HTC specific. On a Samsung device it is rather /dev/block/mmcblk0pX, where X designates the partition number (which also doesn't necessarily have to be the chronological order of the actual partition layout, at that, to further confuse matters).
So I suggest you actually do a bit of research on the partition layout specific to your device, -and to backup your whole phone before trying anything at all-, as root can be a very unforgiving thing that has the potential to turn your day into a (totally communicationless) nightmare. Accidentally wipe the secondary bootloader for example, and you'll wind up toting a 500$+ mp3 player -at best.. Such a mistake cannot be righted without access to pro hardware (i.e a JTAG device) and a lot of knowledge. ;)
(Sent from my supercharged, hot-rodded, nuclear-fueled Samsung Galaxy Note2...)
--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/groups/opt_out.
Personally, I would *not* use a wildcard delete in a system dir.
Lastly, if op just doesn't like seeing the calc app, most launchers let you hide an app from the drawer.
Tom
Interesting -if not to say crucial- is that the shell command to set the /system partition to R/W actually varies with the brand/model of your device and is usually specific to a brand or family of devices.. E.g., Ivelin I can tell frim your command that you most probably own an HTC device, since mtdblock0 is mostly HTC specific. On a Samsung device it is rather /dev/block/mmcblk0pX, where X designates the partition number (which also doesn't necessarily have to be the chronological order of the actual partition layout, at that, to further confuse matters).
Oh, my bad... but since huawei sounds very chinese to me, I guess they must've copied an HTC reference board, or maybe they're using them under license. Whatever... ^^
Short answer : yup, it is possible to brick a bóoted phone, if it's rooted.
Stock Androids don't have a root account (although the UID 0 that is reserved for the superuser exists, it's visible in the init.rc and the files listing file/directory permissions -the one the recovery uses when you're doing a 'fix permissions' after installing a paranoidandroid rom, for example), but rooting them 'activates' it back, giving the user and the whole system access to all the hidden partitions...
It depends on the target file/partition, everything that is mounted during normal use cannot be wiped while powered on, most of those have to be manipulated via adb under the recovery *before* bootup.
But since the primary and secondary bootloaders are only used when the system is starting (and actually never get mounted by it), it's very possible (on some devices it's even trivial) to wipe'em out if you have superuser privileges, putting the phone out of commission as soon as you'll try rebooting it... Your only çhance then (provided that you realize that you did fatally screw up before it's too late, I mean) would be to fix the problem by dd'ing a backup of those partitions back on -and to not reboot the phone before you've done just that. But this supposes that you took the precaution to make a dd backup of those partitions beforehand, something that most people carelessly neglect to do. ;)
Ánd no, CWM couldn't help you either, because it's fired up by the bootloader also.. the bootloader is the gateway to everything, even the 'download mode' that saves you from the majority of screwups usually... ;)
Basically : no more bootloader + phone rebooted before having been fixed = very expensive paperweight + an arm and a leg to spend to get it fixed by your nearest service center (which usually won't let themselves be arsed by such things, and charge you a full motherboard replacement, just to pass you the temptation to mess with their products ever again... :s)
Ánd no, CWM couldn't help you either, because it's fired up by the bootloader also.. the bootloader is the gateway to everything, even the 'download mode' that saves you from the majority of screwups usually... ;)
Basically : no more bootloader + phone rebooted before having been fixed = very expensive paperweight + an arm and a leg to spend to get it fixed by your nearest service center (which usually won't let themselves be arsed by such things, and charge you a full motherboard replacement, just to pass you the temptation to mess with their products ever again... :s)
mount -o rw,remount /system
rm -f /system/app/%list_of_files
mount -o r,remount /system
Are you willing to bet that %list_of_files would never be accidently set to any of the following:
[empty string]
*
..
.
../..
Seriously? Worth the risk?
Tom
Uuuuugh... Seeing a rm -f command and a /system on the same line of code gives me chills down the back of my neck... ^^
Although it's a thing I might try on one of my linux or BSD boxes (with an R added for good measure and recursivity, like 'rm -Rf'.. they're old machines and are easily reinstalled after all. I've even scripted the packages they have to install in order to make the process fully automatic without any intervention from me), just for the hell of it and to see wot happens, that's something I'd never try on my 600$+ phones... Talk about playing with matches right next to a cooking pan filled with boiling ethyl ether (why anyone would have such a thing on their stove, I'll leave to your guessing... xD), that's pretty close -although far less dangerous towards your physical integrity... :p
If anyone is interested in learning more, head on over to my usual hangout : xda-developers.com, there's almost surely a forum section dedicated to your own device(s), it's a gold mine for anyone who doesn't want to brick their phones but still want to squeeze every last ounce of performance it has to offer ;)
As an example, check this out, it's from the Samsung Galaxy S2 forum (a phone I've owned for 2 years now, and which is very near indestructible -has to be in order to survive me for that long... I must have totally taken it apart and reassembled it about 20 times by now, I guess I could even do it blindfolded, much like a US marine with his trusty M-16 (or M-4). :p), and describes in detail the .pit file for it (basically it's the files that tell the flashing program how to partition the internal memory before actually flashing a custom ROM on it (every samsung device running android have one such file, but they can even differ between variants of one model) :
http://forum.xda-developers.com/showthread.php?p=40456199
It doesn't tell you the mountpoints the partitions will be mounted on though, but a bit of research and some guesswork will tell you that factoryfs = /system, datafs=/data, ums=/sdcard, cache=/cache, etc. Hidden is a 512mb partition that gets mounted to /preload but only stock roms use it, to store some stuff during their install, it's unused after tha5, and custom kernels like the siyah kernel use it as a secondary /system for dual-boot setups. (The note2 follows much the same layout, but /system and /data got fused together under factoryfs in a bigass 2gb partition..)
Interesting to notice : there're two 8mb partitions reserved for kernel and recovery, but only the recovery is user, as the kernel and recovery are compiled together into a single initramfs ramdisk, why samsung chose to lim8t the s2 like this is still unclear to most of us :s
Also, notice the quite complex boot sequence that actually involve 5 different binaries (that are each an easy target to wipe for an unsuspecting nerd messing around, or an ill-meaning malware -virus, worm, you name it- if it somehow gets root privileges... And how there are actually 2 secondary bootloaders (='SBL') in the S2, a primary and a backup in case the primary is accidentally wiped. But the catch is : the secondary SBL partition only gets populated the first time you'll flash an update package for the stock ROM (and by this I mean a full rom, flashing a stock kernel won't work), when the device comes out of the factory the backup partition is blank... Many an unsuspecting user (who didn't properly do their homework and research things *before* they start messing with their device) has been caught unawares by this small catch, and had to hand some $$ over to a samsung service center because of that apparently small detail (that isn't actually documented anywhere that I could see, it's at XDA that I learned this soon enough to be of any help to me.. ^^)...