Hi guys. I've tried to make a cleaning dalvik-cache script.
It contain only:
Code:
#!/bin/bash
rm -rf /data/dalvik-cache/*
Is it wrong?? Do i have to include something else??
Related
I want to make a simple little busybox or something script that i can run via script manger (desktop widget) to clear dalvik cache and restart. Also possibly clear all caches but just dalvik for now.
I just made this and it seems to work but is this good enough?
Code:
#!/system/bin/busybox
rm /data/dalvik-cache/*.*
reboot
Should work fine.
Just to make it safe I'd just add a "sync" before rebooting.
And force the use of the busybox rm which is not as limited as some of the default roms rm command.
Code:
#!/system/bin/busybox
/system/bin/busybox rm -f /data/dalvik-cache/*
sync
reboot
timduru said:
Should work fine.
Just to make it safe I'd just add a "sync" before rebooting.
And force the use of the busybox rm which is not as limited as some of the default roms rm command.
Code:
#!/system/bin/busybox
/system/bin/busybox rm -f /data/dalvik-cache/*
sync
reboot
Click to expand...
Click to collapse
That doens't work, for some reason...
It actually seems to kinda mess up the phone, now when it reboots the screen goes off before the bootanimation transistions to phone and the led comes on white really quick...weird
Went back to original but phone still acting weird no big deal made a nandroid yesterday...gonna stick to original way.
Hey guys, I managed to make a simple script that removes "batterystats.bin" but i don't really know if the script is 100% correct could you help pointing me to right direction?
Code:
#!/system/bin/sh
rm -f -v /data/system/batterystats.bin
reboot
Thanks.
guys,
i have a script that runs on every boot. but its not working. i mean, the directory is still having its permission to write and the files on the directory is not beeing empty with the script. would "rm -rf /data/log/*" be better than the current one below? what am i doing wrong? thank in advance
(yes i have SU and root. im using script manager)
#!/system/bin/sh
rm /data/log/*.* <-- why isnt this deleting the files in log directory ??
chmod 444 data/log
really??no one?
Hi,
I've tried with
unmount("/system");
run_program("/sbin/erase_image","system");
Does not work. Would it be sufficient to run a shell script which mounts system and runs rm -rf /system through busybox?
Tanks for advice!
Anyone tried it?
I mean, can I use my old data.img with this release?
Cheers...
Thx...
Regnas said:
Anyone tried it?
I mean, can I use my old data.img with this release?
Cheers...
Thx...
Click to expand...
Click to collapse
I did. I cleared some stuff from data.img though - not sure what's needed - as is sorta stalls.
From [email protected]
Code:
rm /data/dalvik-cache/ [to remove dalvik-cache; it would probably be auto cleared anyway]
cd /data/data
for line in `ls | grep [b]com.android[/b]`; do rm -rf $line; done
for line in `ls | grep [b]jide[/b]`; do rm -rf $line; done
[this should clear data from stock android and jide apps]
It's probably just 1/a few app causing the stall; but clearing the above shouldn't do any real harm.
EDIT: Oh and you might need to disable setupwizard [I don't think it's a dirty flash issue though]; I'd try to go through setup maybe twice; if it errors and blackscreens; then if needed run pm disable com.jide.setupwizard to circumvent it.
HypoTurtle said:
I did. I cleared some stuff from data.img though - not sure what's needed - as is sorta stalls.
From [email protected]
Code:
rm /data/dalvik-cache/ [to remove dalvik-cache; it would probably be auto cleared anyway]
cd /data/data
for line in `ls | grep [b]com.android[/b]`; do rm -rf $line; done
for line in `ls | grep [b]jide[/b]`; do rm -rf $line; done
[this should clear data from stock android and jide apps]
It's probably just 1/a few app causing the stall; but clearing the above shouldn't do any real harm.
Click to expand...
Click to collapse
Big thanks mate...