[Q] Help with making a quick dalvik cleaner script for script manager - Motorola Droid X2

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.

Related

Safe to Remove Apps

This thread is meant to serve as a compilation from the community of what .apk files can be removed safely without causing issues on your phone.
Currently these apps have been removed by the recovery exploit in Titanium Backup or Frozen in Titanium Backup:
Since we have full root now, just remove using whatever method you'd like
SAFE TO REMOVE
Code:
Adobe Reader
Amazon Kindle
Amazon MP3
Calculator
Calculator Widget 3.00
Calendar Widget
Facebook
Footprints and Widget
FriendStream 1.0
FriendStream Widget 1.0
HTC Facebook
HTC Keyboard
HTCLockscreen.apk - Stock Lockscreen returns, must reboot after removing HTCLockscreen.apk
HTC Mobile Guide
HTC Sense
HtcSyncwidget.apk
HtcSyncwidget.odex
News1.0
News Widget 1.00
Peep
Sprint Hotspot 1.00
Sprint NFL and Widget
Sprint Nascar and Widget
Sprint Voicemail
Sprint Zone SZ_2.1.12
Stockes Widget 1.00
Teeter
APPS removed by bcnice20's script
rm -R /system/app/nascar09-prod-release.apk
rm -R /system/app/Sprint_Navigator.apk
rm -R /system/app/sfl-prod-release.apk
rm -R /system/app/HTCMobileGuide_Speedy.apk
rm -R /system/app/amazonmp3.apk
rm -R /system/app/AppSharing.apk
rm -R /system/app/AppSharing.odex
rm -R /system/app/com.htc.FMRadioWidget.apk
rm -R /system/app/com.htc.FMRadioWidget.odex
rm -R /system/app/com.htc.FriendStreamWidget.apk
rm -R /system/app/com.htc.FriendStreamWidget.odex
rm -R /system/app/com.htc.MusicWidget.apk
rm -R /system/app/com.htc.MusicWidget.odex
rm -R /system/app/com.htc.NewsReaderWidget.apk
rm -R /system/app/com.htc.NewsReaderWidget.odex
rm -R /system/app/com.htc.StockWidget.apk
rm -R /system/app/com.htc.StockWidget.odex
rm -R /system/app/com.htc.TwitterWidget.apk
rm -R /system/app/com.htc.TwitterWidget.odex
rm -R /system/app/com.htc.WeatherWidget.apk
rm -R /system/app/com.htc.WeatherWidget.odex
rm -R /system/app/DCSStock.apk
rm -R /system/app/DCSStock.odex
rm -R /system/app/FriendStream.apk
rm -R /system/app/FriendStream.odex
rm -R /system/app/htcbookmarkwidget.apk
rm -R /system/app/htcbookmarkwidget.odex
rm -R /system/app/HtcCalculatorWidget.apk
rm -R /system/app/HtcCalculatorWidget.odex
rm -R /system/app/htccalendarwidgets.apk
rm -R /system/app/htccalendarwidgets.odex
rm -R /system/app/HtcClockWidget.apk
rm -R /system/app/HtcClockWidget.odex
rm -R /system/app/htccontactwidgets.apk
rm -R /system/app/htccontactwidgets.odex
rm -R /system/app/HtcFootprints.apk
rm -R /system/app/HtcFootprints.odex
rm -R /system/app/HtcFootprintsWidget.apk
rm -R /system/app/HtcFootprintsWidget.odex
rm -R /system/app/htcmailwidgets.apk
rm -R /system/app/htcmailwidgets.odex
rm -R /system/app/htcmsgwidgets.apk
rm -R /system/app/htcmsgwidgets.odex
rm -R /system/app/HtcPhotoWidget.apk
rm -R /system/app/HtcPhotoWidget.odex
rm -R /system/app/HtcProfileWidget.apk
rm -R /system/app/HtcProfileWidget.odex
rm -R /system/app/HtcRingtoneWidget.apk
rm -R /system/app/HtcRingtoneWidget.odex
rm -R /system/app/htcsettingwidgets.apk
rm -R /system/app/htcsettingwidgets.odex
rm -R /system/app/HtcSyncwidget.apk
rm -R /system/app/HtcSyncwidget.odex
rm -R /system/app/HtcTwitter.apk
rm -R /system/app/HtcTwitter.odex
rm -R /system/app/Rosie.apk
rm -R /system/app/Rosie.odex
rm -R /system/app/Stock.apk
rm -R /system/app/Stock.odex
rm -R /system/app/teeter.apk
rm -R /system/app/teeter.odex
NOT SAFE TO REMOVE
Code:
com.htc.socialnetwork
Script to remove files - MUST BE RUN EACH REBOOT DUE TO TEMP ROOT - Provided by bcnice20.
bcnice20 said:
http://dl.dropbox.com/u/6316939/scripts/removal-tool.sh
the first link is the actual script look at it for a list of what all is deleted..
http://dl.dropbox.com/u/6316939/scripts/scripter.json
place this on the root of your sdcard then download scripter from the market. Go to settings then click import scripts from sdcard. It will automatically load this script into scripter then you can simply go back click on the script and run it to remove everything
ps. the recovery exploit isnt implemented gotta look into tht but its an easy way of getting rid of everything quickly without having to delete each manually!!!!
Click to expand...
Click to collapse
To remove via recovery exploit use the following steps. (PLEASE NOTE THIS REMOVES THE FILE COMPLETELY FROM YOUR SYSTEM)
1. Open Titanium backup (if you don't have it download it here and PRO key here)
2. Click Backup/Restore and a full list of installed apps should show up (if not, post for some help)
3. Long press on whatever app you are looking to remove and scroll to the bottom of the new pop up.
4. Click Force remove app (by recovery exploit) and receive a prompt with a warning and thanks to Paul O'Brien for discovering the exploit.
5. Click Yes
6. Phone will reboot and flash a black screen with a red question mark for a short time, then reboot again.
7. After fully rebooted, you will find your app gone. METHOD NOT VALID ANYMORE DUE TO ROOT METHODS
Suggestion from cloverdave:
cloverdale said:
Also, if one does not want to go through the hours of removing the apps via titanium (I recommend just doing it though, as they never come back) just rename benice's script to visionary.sh, place it in /data/local, then check the option to run visionary.sh at boot in visionary. Then, at each reboot the script will autorun and you will never again see the apps.
Click to expand...
Click to collapse
DISCLAIMER: I, nor anyone here, is responsible for damage done to your device in this process. All information here is assembled based on input from all users of this thread/forum.
Com.HTC.socialnetwork
Footprints
when I removed these it pissed off the phone.
Its best to remove known sprint bloatware. This is the third time I've ruu after I started deleting stuff that "seemed" unnecessary. One time I got stuck in a registration loop. That sucked.
I have removed Sprint Zone, NFL, Nascar, Peep, Footprints, Mp3, Stocks, including their widgets and have no issues whatsoever. I use the FriendStream widget and have had no FC's at all.
I haven't removed it yet, but I'm sure the Kindle app is safe also.
When I run titanium backup, it does not list a single dang up for backup\restore etc. And it passes the root check. I am using visionary. Am I just a dolt and clueless as to how to use the app?
stealthfx said:
When I run titanium backup, it does not list a single dang up for backup\restore etc. And it passes the root check. I am using visionary. Am I just a dolt and clueless as to how to use the app?
Click to expand...
Click to collapse
Is your SD card mounted to your computer when this is happening?
stealthfx said:
When I run titanium backup, it does not list a single dang up for backup\restore etc. And it passes the root check. I am using visionary. Am I just a dolt and clueless as to how to use the app?
Click to expand...
Click to collapse
try having titanium install busybox.
stealthfx said:
When I run titanium backup, it does not list a single dang up for backup\restore etc. And it passes the root check. I am using visionary. Am I just a dolt and clueless as to how to use the app?
Click to expand...
Click to collapse
Do you have the view filtered? Hit search.
Sprint Voicemail is safe to remove, btw.
EDIT: Mail and Sprint Hotspot are also fine to remove.
Hey Guys,
Ok, so the "filter" section has "all" checked, right now the line. Also my sd card is not mounted. The only thing I see when I click on the backup/restore tab is..
Application widgets
Accounts
Bluetooth Pairings
Country language timezone
Wi-Fi access points.
I am sure that it's glaringly obvious...
stealthfx said:
Hey Guys,
Ok, so the "filter" section has "all" checked, right now the line. Also my sd card is not mounted. The only thing I see when I click on the backup/restore tab is..
Application widgets
Accounts
Bluetooth Pairings
Country language timezone
Wi-Fi access points.
I am sure that it's glaringly obvious...
Click to expand...
Click to collapse
Sorry but how do I get it to install busybox? I already have it installed from visionary root. Just to check if it was working, I was able to do su in terminal mode.
stealthfx said:
Sorry but how do I get it to install busybox? I already have it installed from visionary root. Just to check if it was working, I was able to do su in terminal mode.
Click to expand...
Click to collapse
In Titanium hit where it say "Problems?"
herbthehammer said:
Com.HTC.socialnetwork
Footprints
when I removed these it pissed off the phone.
Its best to remove known sprint bloatware. This is the third time I've ruu after I started deleting stuff that "seemed" unnecessary. One time I got stuck in a registration loop. That sucked.
Click to expand...
Click to collapse
Does freezing them also give issues?
ive been able to remove all of the sense apks and widgets without issue ill give a full list of everything i can successfully remove and maybe throw a simple script together for you guys that can b ran in scripter or gscript tht automagically removes all the apk i list
bcnice20 said:
ive been able to remove all of the sense apks and widgets without issue ill give a full list of everything i can successfully remove and maybe throw a simple script together for you guys that can b ran in scripter or gscript tht automagically removes all the apk i list
Click to expand...
Click to collapse
an adb script?
bcnice20 said:
ive been able to remove all of the sense apks and widgets without issue ill give a full list of everything i can successfully remove and maybe throw a simple script together for you guys that can b ran in scripter or gscript tht automagically removes all the apk i list
Click to expand...
Click to collapse
Will the script utilize the recovery exploit? For otherwise it would have to be run with each reboot.
And you can add the htc keyboard to the list of removable apps.
jesusice said:
Do you have the view filtered? Hit search.
Sprint Voicemail is safe to remove, btw.
EDIT: Mail and Sprint Hotspot are also fine to remove.
Click to expand...
Click to collapse
I want to add that if you updated the voicemail app, you need to also uninstall the update via settings-> manage applications, otherwise it will remain.
bcnice20 said:
ive been able to remove all of the sense apks and widgets without issue ill give a full list of everything i can successfully remove and maybe throw a simple script together for you guys that can b ran in scripter or gscript tht automagically removes all the apk i list
Click to expand...
Click to collapse
That would be awesome
Sent from my PG06100
bcnice20 said:
ive been able to remove all of the sense apks and widgets without issue ill give a full list of everything i can successfully remove and maybe throw a simple script together for you guys that can b ran in scripter or gscript tht automagically removes all the apk i list
Click to expand...
Click to collapse
Great. I will definitely put this in the OP and use it too! Glad this is starting to pick up a bit.
I'm Shifting on 4G.
I have removed the sense desktop with no issues.
Also safe: sprint updater, kindle, and htc mobile guide.
http://dl.dropbox.com/u/6316939/scripts/removal-tool.sh
the first link is the actual script look at it for a list of what all is deleted..
http://dl.dropbox.com/u/6316939/scripts/scripter.json
place this on the root of your sdcard then download scripter from the market. Go to settings then click import scripts from sdcard. It will automatically load this script into scripter then you can simply go back click on the script and run it to remove everything
ps. the recovery exploit isnt implemented gotta look into tht but its an easy way of getting rid of everything quickly without having to delete each manually!!!!
Thanks it worked
Sent from my PG06100 using XDA App

[Q] Add DALVIK-CACHE clean periodically

Hi! There's a way to clean periodically dalvik-cache, for example, when the phone is shutting down!?
I want to clean it periodically, or each sunday, 7 days... i dont know, only to keep clean the dalvik-cache...
Tnx for the answer!
Just be a flashaholic like me and always wipe data and caches
But there's a way to do it when the phone is running??
No one can help me??
mackief said:
But there's a way to do it when the phone is running??
Click to expand...
Click to collapse
You can wipe it from the terminal:
Code:
$ su
# cd /
# find / -name dalvik-cache
# cd /data/dalvik-cache # That's where it is on my phone
# rm *
# exit
$ exit
Instructions I've read say to reboot. The phone will rebuild the Dalvik cache which will take a while.
I dunno what happens if you don't reboot.

[Q] A script to clean Dalvik-Cache

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??

[Q] Link2SD and launcher stop to work?

Greetings!
I have tried some ROMs -Ace I SCAPE, REINCARNATION, simplicity v5- and kernels -bieltv 3.0 for cm7, rafael 201211201515- but no matter what, after a few reboots my launcher -that is in the internal memory- and link2SD -that is in the internal memory too- just disappear, I don't know how could I track this since is not consistent -is like after 8-11 reboots-.
I don't have a clue of how to prevent this or what could be triggering it.
PS: Everytime I tried any of the above ROMs with their Kernels, I got back to the stock in ODIN 3.07 then did a fresh clean installation.
Logcat says it all
Try re-creating the case scenario, then using a PC, connect your phone (make sure to enable USB Debugging after the flash) and open a command line (Start->Run->cmd.exe if on windows)
Once open, try the instructions on this thread and upload the logcat here, try to make it as short as possible, I suggest you prepare it all before taking the logcat and once you find the issue, immediately do logcat
Good luck!
El_Dark said:
Logcat says it all
Try re-creating the case scenario, then using a PC, connect your phone (make sure to enable USB Debugging after the flash) and open a command line (Start->Run->cmd.exe if on windows)
Once open, try the instructions on this thread and upload the logcat here, try to make it as short as possible, I suggest you prepare it all before taking the logcat and once you find the issue, immediately do logcat
Good luck!
Click to expand...
Click to collapse
Right after the bug right? Because I wasn't sure if the logcat would explain why is after some reboots and not in the first one.
I'll be updating this post as it happens -usually is "conviently" when I finish installing all of my previous apps, then after 8-10 boots happens-.
sgdva said:
Right after the bug right? Because I wasn't sure if the logcat would explain why is after some reboots and not in the first one.
I'll be updating this post as it happens -usually is "conviently" when I finish installing all of my previous apps, then after 8-10 boots happens-.
Click to expand...
Click to collapse
it's a possible way, but note that it's useless after a reboot lol so it has to be right before you install your apps
El_Dark said:
it's a possible way, but note that it's useless after a reboot lol so it has to be right before you install your apps
Click to expand...
Click to collapse
I installed some apps to see if because I'm installing too many of them are making the phone to cause this -not quite sure if link2SD is working properly-. I had 140 apps before the upgrade -before switching between/roms kernels-, the reason why I upgrade was that I couldn't upgrade from the store the installed apps -it always told me I was running out of memory-.
Anyways, I have tried these days to recrate the scenario , one of the random reboots -when suddenly a message telling Link2SD was not responding- my launcher got out again, when I tried to logcat this by rebooting it worked again
But my whatsapp was gone
Here's the logcat available at paste bin of what I think are the problems:
http://pastebin.com/3jMNX7LV
If needed, I upload the whole thing in box:
https://app.box.com/s/i66rfop429c0wgwldqv4
Anyways I attach the logcat in pastebin
PS: I have read that VFY is missing / replacing in the logcat, for what I have read here
Could be superuser got messed up while flashing the cm7 kernel?
sgdva said:
I installed some apps to see if because I'm installing too many of them are making the phone to cause this -not quite sure if link2SD is working properly-. I had 140 apps before the upgrade -before switching between/roms kernels-, the reason why I upgrade was that I couldn't upgrade from the store the installed apps -it always told me I was running out of memory-.
Anyways, I have tried these days to recrate the scenario , one of the random reboots -when suddenly a message telling Link2SD was not responding- my launcher got out again, when I tried to logcat this by rebooting it worked again
But my whatsapp was gone
Here's the logcat available at paste bin of what I think are the problems:
http://pastebin.com/3jMNX7LV
If needed, I upload the whole thing in box:
https://app.box.com/s/i66rfop429c0wgwldqv4
Anyways I attach the logcat in pastebin
PS: I have read that VFY is missing / replacing in the logcat, for what I have read here
Could be superuser got messed up while flashing the cm7 kernel?
Click to expand...
Click to collapse
Try reflashing... Although the issues I've experienced with Link2SD are usually related to /data/ partition getting full when having too many apps..
If after reflashing, installing Link2SD and linking your apps again you still have issues, download Link2SD again from the Play store, you could also try the following after installing Link2SD and linking your apps: connect your phone to a PC and use adb shell, while the phone boots, once shell is up, do:
Code:
su
cd /data/
ls (make sure here that you have an sdext2 directory, if not, it means Link2SD is not installed properly)
cd sdext2
ls (make sure that you have a dalvik-cache directory in this place, if not, start Link2SD for a
cd /data/dalvik-cache/
for file in data*
do
if [! -h $file] (we make sure it's not a symlink already, you don't want looping links!!!)
cp $file /data/sdext2/dalvik-cache/
rm $file
ln -s /data/sdext2/dalvik-cache/$file $file
fi
done
try that without the text in the parenthesis lol
hope that helps, it could help anyone with space issues in /data/!!
El_Dark said:
All the post above
Click to expand...
Click to collapse
Thanks for being up with this issue!
Well this install is fresh new -is like 2 days long-, I tried the commands you told me but this is what I get
Code:
C:\android-sdk-windows\platform-tools>adb shell
# su
su
# ls
ls
efs
config
cache
sd-ext
sdcard
acct
mnt
vendor
devices
d
etc
fota.rc
init
init.charge.rc
ueventd.rc
data
init.rc
ueventd.goldfish.rc
sbin
lib
init.bcm21553.rc
sys
init.goldfish.rc
proc
recovery.rc
tmp
default.prop
system
res
root
dev
# cd sdext2
cd sdext2
cd: can't cd to sdext2
#
Also I'm not quite sure I understood this line?
El_Dark said:
installing Link2SD and linking your apps again you still have issues, download Link2SD again from the Play store,
Click to expand...
Click to collapse
Do I uninstall and re Install?
sgdva said:
Thanks for being up with this issue!
Well this install is fresh new -is like 2 days long-, I tried the commands you told me but this is what I get
Code:
C:\android-sdk-windows\platform-tools>adb shell
# su
su
[COLOR="Red"]you missed the "cd /data/" part lol[/COLOR]
# ls
ls
efs
config
<<intentionally snipped>>
Also I'm not quite sure I understood this line? Do I uninstall and re Install?
Click to expand...
Click to collapse
Yep, from the Play itself, just in case you're using some local/downloaded version lol, although I doubt it
El_Dark said:
Yep, from the Play itself, just in case you're using some local/downloaded version lol, although I doubt it
Click to expand...
Click to collapse
Ok Thanks for remarking my bad, lol.
Ok I got the dalvik cache folder as you state, though I get an error when typing this line
> ln -s /data/sdext2/dalvik-cache/$file $file
ln -s /data/sdext2/dalvik-cache/$file $file
> fi
fi
Syntax error: "fi" unexpected (expecting "then")
I thought maybe it was an if, but yeah, isn't a "then" missing for the "if [! -h $file]" that we typed before?
Full code:
Code:
C:\android-sdk-windows\platform-tools>adb shell
# su
su
# cd /data/
cd /data/
# ls
ls
log
dontpanic
cache
misc
local
data
app-private
app
property
fota
anr
dalvik-cache
lost+found
brcm
vt
gps
lcs.socket
rilgps.socket
link2sd-debuggerd.log
link2sd-11link2sd.log
zipalign.db
zipalign.log
aeqcoe.txt
soundbooster.txt
system
secure
backup
cp_data.txt
sdext2
tombstones
# cd sdext2
cd sdext2
# ls
ls
lost+found
data
dalvik-cache
com.whatsapp-1.apk
com.jb.gosms-1.apk
com.opera.mini.android-1.apk
com.imo.android.imoim-1.apk
com.urbandroid.sleep-1.apk
com.urbandroid.sleep.full.key-1.apk
je.fit-1.apk
com.jb.gosms.widget-1.apk
jp.co.johospace.jorte-1.apk
com.c2call.app.android.friendcaller-1.apk
com.skype.raider-1.apk
com.viber.voip-1.apk
com.sds.android.ttpod-1.apk
com.facebook.katana-1.apk
com.google.android.apps.plus-1.apk
com.megacloud.android-1.apk
com.google.android.apps.maps-1.apk
com.plaincode.clinometer-1.apk
org.exobel.routerkeygen-1.apk
es.pulimento.wifi-1.apk
# cd /data/dalvik-cache/
cd /data/dalvik-cache/
# for file in data*
for file in data*
> do
do
> if [! -h $file]
if [! -h $file]
> cp $file /data/sdext2/dalvik-cache/
cp $file /data/sdext2/dalvik-cache/
> rm $file
rm $file
> ln -s /data/sdext2/dalvik-cache/$file $file
ln -s /data/sdext2/dalvik-cache/$file $file
> fi
fi
Syntax error: "fi" unexpected (expecting "then")
sgdva said:
Ok Thanks for remarking my bad, lol.
Ok I got the dalvik cache folder as you state, though I get an error when typing this line
> ln -s /data/sdext2/dalvik-cache/$file $file
ln -s /data/sdext2/dalvik-cache/$file $file
> fi
fi
Syntax error: "fi" unexpected (expecting "then")
I thought maybe it was an if, but yeah, isn't a "then" missing for the "if [! -h $file]" that we typed before?
Full code:
Code:
C:\android-sdk-windows\platform-tools>adb shell
# su
su
# cd /data/
cd /data/
# ls
ls
log
dontpanic
cache
misc
local
data
app-private
app
property
fota
anr
dalvik-cache
lost+found
brcm
vt
gps
lcs.socket
rilgps.socket
link2sd-debuggerd.log
link2sd-11link2sd.log
zipalign.db
zipalign.log
aeqcoe.txt
soundbooster.txt
system
secure
backup
cp_data.txt
sdext2
tombstones
# cd sdext2
cd sdext2
# ls
ls
lost+found
data
dalvik-cache
com.whatsapp-1.apk
com.jb.gosms-1.apk
com.opera.mini.android-1.apk
com.imo.android.imoim-1.apk
com.urbandroid.sleep-1.apk
com.urbandroid.sleep.full.key-1.apk
je.fit-1.apk
com.jb.gosms.widget-1.apk
jp.co.johospace.jorte-1.apk
com.c2call.app.android.friendcaller-1.apk
com.skype.raider-1.apk
com.viber.voip-1.apk
com.sds.android.ttpod-1.apk
com.facebook.katana-1.apk
com.google.android.apps.plus-1.apk
com.megacloud.android-1.apk
com.google.android.apps.maps-1.apk
com.plaincode.clinometer-1.apk
org.exobel.routerkeygen-1.apk
es.pulimento.wifi-1.apk
# cd /data/dalvik-cache/
cd /data/dalvik-cache/
# for file in data*
for file in data*
> do
do
> if [! -h $file]
if [! -h $file]
> cp $file /data/sdext2/dalvik-cache/
cp $file /data/sdext2/dalvik-cache/
> rm $file
rm $file
> ln -s /data/sdext2/dalvik-cache/$file $file
ln -s /data/sdext2/dalvik-cache/$file $file
> fi
fi
Syntax error: "fi" unexpected (expecting "then")
Click to expand...
Click to collapse
heh, nice one, indeed I was missing the "then" after the "if" :silly:
El_Dark said:
heh, nice one, indeed I was missing the "then" after the "if" :silly:
Click to expand...
Click to collapse
So then, lol, is like this?
rm $file
ln -s /data/sdext2/dalvik-cache/$file $file
then
done
sgdva said:
So then, lol, is like this?
rm $file
ln -s /data/sdext2/dalvik-cache/$file $file
then
done
Click to expand...
Click to collapse
nope, it's like this:
Code:
for file in somefile*
do
if [ blablabla ]
then
some actions
fi
done
that's it
El_Dark said:
nope, it's like this:
Code:
for file in somefile*
do
if [ blablabla ]
then
some actions
fi
done
that's it
Click to expand...
Click to collapse
I'm not quite sure what you mean by "some actions" is this a command?
This is how I typed it
> if [! -h $file]
if [! -h $file]
> cp $file /data/sdext2/dalvik-cache/
cp $file /data/sdext2/dalvik-cache/
> rm $file
rm $file
> ln -s /data/sdext2/dalvik-cache/$file $file
ln -s /data/sdext2/dalvik-cache/$file $file
> then
then
> some actions
some actions
> fi
fi
> done
done
[!: not found
some: not found
[!: not found
cp: '[email protected]@[email protected]' and '/data/
sdext2/dalvik-cache/[email protected]@[email protected]
ex' are the same file
El_Dark said:
Code:
su
cd /data/
ls (make sure here that you have an sdext2 directory, if not, it means Link2SD is not installed properly)
cd sdext2
ls (make sure that you have a dalvik-cache directory in this place, if not, start Link2SD for a
cd /data/dalvik-cache/
for file in data*
do
if [! -h $file] (we make sure it's not a symlink already, you don't want looping links!!!)
[U][B]then[/B][/U]
cp $file /data/sdext2/dalvik-cache/
rm $file
ln -s /data/sdext2/dalvik-cache/$file $file
fi
done
Click to expand...
Click to collapse
quoting myself
El_Dark said:
quoting myself
Click to expand...
Click to collapse
Oh ok, done
For what I can understand everything is supposed to be linked right? hence this is shown "! not found"?
But I'm still not getting why randomly the SSlauncher is not working in some reboots -and when this happens my link2SD gets vanished too and the message low storage is shown-.
Should I make this everytime that happens? -if it happens again?-
Code:
> if [! -h $file]
if [! -h $file]
> then
then
> cp $file /data/sdext2/dalvik-cache/
cp $file /data/sdext2/dalvik-cache/
> rm $file
rm $file
> ln -s /data/sdext2/dalvik-cache/$file $file
ln -s /data/sdext2/dalvik-cache/$file $file
> fi
fi
> done
done
[!: not found
sgdva said:
Oh ok, done
For what I can understand everything is supposed to be linked right? hence this is shown "! not found"?
But I'm still not getting why randomly the SSlauncher is not working in some reboots -and when this happens my link2SD gets vanished too and the message low storage is shown-.
Should I make this everytime that happens? -if it happens again?-
Code:
> if [! -h $file]
if [! -h $file]
> then
then
> cp $file /data/sdext2/dalvik-cache/
cp $file /data/sdext2/dalvik-cache/
> rm $file
rm $file
> ln -s /data/sdext2/dalvik-cache/$file $file
ln -s /data/sdext2/dalvik-cache/$file $file
> fi
fi
> done
done
[!: not found
Click to expand...
Click to collapse
you shouldn't need to do it every time, mainly when you install new apps, alternatively, you can check the apps' data directories to see which one is consuming a lot of space, you can do that by issuing the commands below:
Code:
su
cd /data/data
du -hc
that should tell you how much space every dir is using (I think, lol)
PS: HIGHLY IMPORTANT!!! You should no longer link dalvik-cache via link2sd with this, or you might experience Force Closes due to the apps' dalvik cache being missing, and I say being missing because if you link a dalvik-cache file that's already linked, Link2SD might move the link and overwrite the physical file, and you'll have a symlink loop

Is dirty install working with last M release?

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...

Categories

Resources