cache - Tasker Tips & Tricks

Anyone know a good task to clean cache when screen turns off? Running cm 13 T-Mobile note 3

Tmobilefan906 said:
Anyone know a good task to clean cache when screen turns off? Running cm 13 T-Mobile note 3
Click to expand...
Click to collapse
I just created one that deletes cache for apps. The only thing is that you have to put the location of each apps cache manually. There is an app that does this, fast cache cleaner. It didn't work on my nexus 6p so I did it manually.
Here is my profile, you can add it remove what ever you need to, to suit your needs.
https://mega.nz/#!1EoQwISB!qrxkGA-zwck-taKnFkOUgKQvgjCfkNybPtFpA5eePAA

Fe Mike said:
I just created one that deletes cache for apps. The only thing is that you have to put the location of each apps cache manually. There is an app that does this, fast cache cleaner. It didn't work on my nexus 6p so I did it manually.
Here is my profile, you can add it remove what ever you need to, to suit your needs.
https://mega.nz/#!1EoQwISB!qrxkGA-zwck-taKnFkOUgKQvgjCfkNybPtFpA5eePAA
Click to expand...
Click to collapse
This one?

Tmobilefan906 said:
This one?
Click to expand...
Click to collapse
Nvm. Seems to work. How would I go about cleaning for a specific app?

Fe Mike said:
I just created one that deletes cache for apps. The only thing is that you have to put the location of each apps cache manually. There is an app that does this, fast cache cleaner. It didn't work on my nexus 6p so I did it manually.
Here is my profile, you can add it remove what ever you need to, to suit your needs.
https://mega.nz/#!1EoQwISB!qrxkGA-zwck-taKnFkOUgKQvgjCfkNybPtFpA5eePAA
Click to expand...
Click to collapse
Can u show me a manual way? Tyvm

Tmobilefan906 said:
Can u show me a manual way? Tyvm
Click to expand...
Click to collapse
That's the app.
Make a context when screen turns off.
Next, make action and select code, run shell.
Then type in
rm -r /data/data/name.of.app/cache
If your doing multiple apps put a ; at the end of each line like this.
rm -r /data/data/name.of.app/cache;
rm -r /data/data/name.of.app/cache;

Fe Mike said:
That's the app.
Make a context when screen turns off.
Next, make action and select code, run shell.
Then type in
rm -r /data/data/name.of.app/cache
If your doing multiple apps put a ; at the end of each line like this.
rm -r /data/data/name.of.app/cache;
rm -r /data/data/name.of.app/cache;
Click to expand...
Click to collapse
Like this? Don't seem to work

Tmobilefan906 said:
Like this? Don't seem to work
Click to expand...
Click to collapse
Edit. I put "," in front of com
Lol. Thanks.

Run this as root by shell script:
#!/system/bin/sh
busybox find /data/data -type d -iname "cache*" -exec busybox rm -fr {}/ ';'
Does the job for all apps(tested). Test it first in terminal.

Tmobilefan906 said:
Edit. I put "," in front of com
Lol. Thanks.
Click to expand...
Click to collapse
So your good to go? Taisto method I'm trying now. Thanks Taisto.
---------- Post added at 05:36 PM ---------- Previous post was at 05:26 PM ----------
taisto said:
Run this as root by shell script:
#!/system/bin/sh
busybox find /data/data -type d -iname "cache*" -exec busybox rm -fr {}/ ';'
Does the job for all apps(tested). Test it first in terminal.
Click to expand...
Click to collapse
Tried it, I get error -exec needs an argument any suggestions

Fe Mike said:
So your good to go? Taisto method I'm trying now. Thanks Taisto.
---------- Post added at 05:36 PM ---------- Previous post was at 05:26 PM ----------
Tried it, I get error -exec needs an argument any suggestions
Click to expand...
Click to collapse
Syntax error in exec, should end in ";".
Put space before the last ';'.
Attached the shell script.

taisto said:
Syntax error in exec, should end in ";".
Put space before the last ';'.
Attached the shell script.
Click to expand...
Click to collapse
Got it, thank you. I was missing the space. So hard to see gap after fwd slash to notice space.

Related

Removing Dalvik Cache

If I delete the /data/dalvik-cache folder from the phone will it recreate itself. From what I'm reading this may assist in fixing my phone boot errors.
Don't think it will cause a problem. You can try rebooting after removing the files (dalvik).
I would recommend deleting it in Counsole just because it'd be safer for all your apps and processes, but it should be recreated in Android's framework.
needed to remove /data/dalvik-cache
Metatronx said:
If I delete the /data/dalvik-cache folder from the phone will it recreate itself. From what I'm reading this may assist in fixing my phone boot errors.
Click to expand...
Click to collapse
thanks this was just what I needed... I was having the same error with the first boot as you had in some of your earlier comments in the thread. used adb to connect and remove the dalvik-cache file and then reboot... the next reboot nicely passed the 'G1' screen...and looks like my g1 may be back and running... if the endless force closes ever end
lukekirstein said:
I would recommend deleting it in Counsole just because it'd be safer for all your apps and processes, but it should be recreated in Android's framework.
Click to expand...
Click to collapse
How do you do that?
ThR1LL said:
How do you do that?
Click to expand...
Click to collapse
reboot in recovery
alt X to go into counsol
hit enter to get in SU mode
if you don't have apps2sd
mount data
rm -r data/dalvik-cache
reboot
if you have apps2sd
mount system/sd
rm -r system/sd/dalvik-cache
reboot
Good luck
borodin1 said:
if you have apps2sd
mount system/sd
rm -r system/sd/dalvik-cache
reboot
Good luck
Click to expand...
Click to collapse
is it the same commands in adb?

Forgot unlock pattern (FreshROM)

It used to prompt me to unlock with my google account.. now it lets me do it 5 times and reboots. Over and over.
Im kind of stuck.. I dont want to do a hard reset, theres messages in there I need..
redtxstar said:
It used to prompt me to unlock with my google account.. now it lets me do it 5 times and reboots. Over and over.
Im kind of stuck.. I dont want to do a hard reset, theres messages in there I need..
Click to expand...
Click to collapse
I'm not entirely sure, but maybe there's a way to ADB into the phone/Android Commander it and remove the lockscreen apk? Again, just tossing around ideas.
Open command prompt and enter the following:
Code:
adb -d shell
# sqlite3 data/data/com.android.providers.settings/databases/settings.db
sqlite> update system set value=0 where name='lock_pattern_autolock';
sqlite> .exit
# exit
Now power off the phone, and turn it back on. Tada! No more pattern lock.
I added this to the Wiki just in case. But its not like anyone ever looks there.
regaw_leinad said:
Open command prompt and enter the following:
Code:
adb -d shell
# sqlite3 data/data/com.android.providers.settings/databases/settings.db
sqlite> update system set value=0 where name='lock_pattern_autolock';
sqlite> .exit
# exit
Now power off the phone, and turn it back on. Tada! No more pattern lock.
Click to expand...
Click to collapse
So if someone finds/steals an android phone, that's all they would need to do to bypass the lockscreen?
t-wrench said:
So if someone finds/steals an android phone, that's all they would need to do to bypass the lockscreen?
Click to expand...
Click to collapse
exactly... kinda sad, but i'm guessing the average phone user knows nothing about sqlite lol but then again, it's posted here now thanks to me haha
regaw_leinad said:
exactly... kinda sad, but i'm guessing the average phone user knows nothing about sqlite lol but then again, it's posted here now thanks to me haha
Click to expand...
Click to collapse
Would this work on unrooted phones as well?
t-wrench said:
Would this work on unrooted phones as well?
Click to expand...
Click to collapse
hmmm, actually never tried.. I am actually not sure on this one.. someone want to try?
I think it will since it is located in /data which is R/W
unCoRrUpTeD said:
I think it will since it is located in /data which is R/W
Click to expand...
Click to collapse
well unless the system mounts /data/ as r/w, it's not... you can't do anything with /data/ in adb or any file explorer without root.
regaw_leinad said:
well unless the system mounts /data/ as r/w, it's not... you can't do anything with /data/ in adb or any file explorer without root.
Click to expand...
Click to collapse
That makes me feel a little better.
I will try this on an unrooted Samsung Moment and let you know. I thought that /data is r/w all the time.

Question about the Red text CWM w Voodoo & batterystats.bin

When I click wipe battery stats, and yes...I don't get any confirmation. i just wanted to know if you all do actually recieve confirmation, or if that feature is broken.
Thanks
iamamp3pimp said:
When I click wipe battery stats, and yes...I don't get any confirmation. i just wanted to know if you all do actually recieve confirmation, or if that feature is broken.
Thanks
Click to expand...
Click to collapse
I don't recall getting confirmation. You can always use terminal emulator from the market and delete the file there. Commands from terminal emulator:
su
cd /data/system
ls
rm batterystats.bin
ls
The ls will list the files in the directory. You will see it before delete and should be removed after the rm command.
There's no confirmation. Just do it then reboot
Sent from my SAMSUNG-SGH-I897 using XDA App

OLYFR_U4_1.5.2 Market Fix

Here is a simple fix for the market issues between stock and 1.5.2 - it assumes you have flashed the 1.5.2 sbf, and also re-rooted your device.
adb shell (or open a terminal on your phone)
su
mount -o rw,remount /dev/block/mmcblk0p12 /system
sed -i 's!OLYFR_U4_1.5.2/1298398352!OLYFR_U4_1.2.6/1296900353!' /system/build.prop
reboot
I have been running with this most of the day with no issues noticed..
-G
how funny i JUST discovered this earlier today was going to post it on the forums. great minds think alike . my n64oid is back!
Funny, I just told someone else how to do this this morning. I'm surprised this hasn't come up sooner. I've been using this since the sbf has been released with no problems, guess I should have posted this solution sooner my b :-(
Sent from my MB860 using Tapatalk
Anyway to do this through terminal?
Sent from my MB860 using XDA App
Same commands without the first adb shell..
How do I enable RW to system?
Trying to do the market fix script but get RO error on write to /system.
from a command prompt in windows/linux:
you: adb shell
reply: $
you: su
(accept prompt on device, make sure it's unlocked and @ homescreen or it might not pop up)
reply: #
you: mount -o rw,remount /dev/block/mmcblk0p12 /system
reply: (copies it back)
you: sed -i 's!OLYFR_U4_1.5.2/1298398352!OLYFR_U4_1.2.6/1296900353!' /system/build.prop
reply:
you: reboot
What are the "market issues?"
Da_G said:
from a command prompt in windows/linux:
you: adb shell
reply: $
you: su
(accept prompt on device, make sure it's unlocked and @ homescreen or it might not pop up)
reply: #
you: mount -o rw,remount /dev/block/mmcblk0p12 /system
reply: (copies it back)
you: sed -i 's!OLYFR_U4_1.5.2/1298398352!OLYFR_U4_1.2.6/1296900353!' /system/build.prop
reply:
you: reboot
Click to expand...
Click to collapse
Thanks,
I made some assumptions that people would know the prerequisites
I edited the original.
-G
relaxed said:
What are the "market issues?"
Click to expand...
Click to collapse
Well, I had several apps I paid for that I could not load. I had the same issues with my G-Tablet until I loaded my N1 build id in the same file a while back..
-G
Well I did it with the first method and it works fine except the market doesn't update to the new market.
ghost_o said:
Thanks,
I made some assumptions that people would know the prerequisites
I edited the original.
-G
Click to expand...
Click to collapse
Sent from my MB860 using Tapatalk
Fixter said:
Well I did it with the first method and it works fine except the market doesn't update to the new market.
Click to expand...
Click to collapse
First method?
The sed command is the only command I have posted.. You could use 'vi' directly on the device as well.. My market updated to the new version just fine after I made the change. (albeit I used vi on the device through adb shell). I just posted the sed string for people not familiar with unix, or who might want to script it..
ghost_o said:
First method?
The sed command is the only command I have posted.. You could use 'vi' directly on the device as well.. My market updated to the new version just fine after I made the change. (albeit I used vi on the device through adb shell). I just posted the sed string for people not familiar with unix, or who might want to script it..
Click to expand...
Click to collapse
I meant to say the first method where you only posted
Adb shell
su
sed
reboot.
Nothing about remounting, like what Da_G posted. Might have something to do with it?
Fixter said:
I meant to say the first method where you only posted
Adb shell
su
sed
reboot.
Nothing about remounting, like what Da_G posted. Might have something to do with it?
Click to expand...
Click to collapse
Ahhh, you must have already run something that re-mounted it rw for you. It would have failed otherwise... You can always try to put it back, and let the market update, and then change it again to get the apps back. I seriously doubt that is what is keeping your market from updating though.
ghost_o said:
Ahhh, you must have already run something that re-mounted it rw for you. It would have failed otherwise... You can always try to put it back, and let the market update, and then change it again to get the apps back. I seriously doubt that is what is keeping your market from updating though.
Click to expand...
Click to collapse
Thats exactly what I'm thinking. That doesn't have to do anything with the Market updating... Stupid market... -kicks-
Fixter said:
Thats exactly what I'm thinking. That doesn't have to do anything with the Market updating... Stupid market... -kicks-
Click to expand...
Click to collapse
should be able to reverse by switching up this part:
sed -i 's!OLYFR_U4_1.5.2/1298398352!OLYFR_U4_1.2.6/1296900353!' /system/build.prop
to:
sed -i 's!OLYFR_U4_1.2.6/1296900353!OLYFR_U4_1.5.2/1298398352!' /system/build.prop
then have the market update without a problem and then reapply the fix, though I'm sure you thought of this already XD
Djazin said:
should be able to reverse by switching up this part:
sed -i 's!OLYFR_U4_1.5.2/1298398352!OLYFR_U4_1.2.6/1296900353!' /system/build.prop
to:
sed -i 's!OLYFR_U4_1.2.6/1296900353!OLYFR_U4_1.5.2/1298398352!' /system/build.prop
then have the market update without a problem and then reapply the fix, though I'm sure you thought of this already XD
Click to expand...
Click to collapse
Yeah I tried that with no success... I wonder if it was the Gingerblur.
Works great. I was wondering where some of my apps had ran off to!
sed: write error
Hey, I was wondering if anyone here could help me.
I've reflashed from GingerBLUR 6.5, and can't seem to apply the market fix. I keep getting a write error when I apply the sed command.
You have to be rooted, and remount /system as read/write prior. The mount command right before the serd command is needed. Also, make sure your "su" command is successful. If not, the rest will not work..

[Outdated, New Tool Created] Disable & Remove CIQ After Bootloader Unlock

!!!!UPDATE!!!
I have created a tool that makes this process 100% easier!
http://forum.xda-developers.com/showpost.php?p=21566003&postcount=1
Proceed to use the following manual guide as reference but I suggest using the tool I created for an easier experience.
=======================================================================
First if you havent already, Unlock the Vivid Bootloader on HTCdev.com!
>>>>>Follow These directions step by step dont rush or skip any steps. Take your time with this removal. It involves deleting certain files from the system folder!<<<<<
***You need root, Look for ZERGRUSH's root method on the forums***
Update the root SU binary! ( can be done in the superuser settings menu )
Go to the marketplace and look for NoBloat Free
***Look for two entries***
HtcIQAgent (com.htc.android.iqagent)
IQRD (com.htc.android.iqrd)
Click to expand...
Click to collapse
Remove them or Backup and Remove them
Go to your terminal
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd system/bin
rm iqd
rm iqfd
cd system/lib
rm libhtciqagent.so
rm libciq_client.so
rm libciq_htc.so
cd system/etc
rm iqprofile.pro
Click to expand...
Click to collapse
close your terminal session
reboot
Enjoy!
Update : This seems to be complete for now, all CIQ libraries and apps removed. Supercurios CIQ app detects that only the log remains, its useless but you can delete this too. thanks khhawkins for opening up my eyes to something i blinked over.
Update #2: You will detect two linux kernel drivers t__param_str_ciq_info & t__param_ciq_info, these two load up from the stock kernel and cant do anything after CIQ has been removed. This is normal and you will not see CIQ resurface on your device
Update #3: If youre score is 150 on Supercurios CIQ detector app you are clear!
Update #4: Dont skip any steps!
RIP CIQ on the Vivid....
What about /system/bin/iqfd? Is that related too?
Thanks for this
Sent from my HTC PH39100 using xda premium
kxhawkins said:
What about /system/bin/iqfd? Is that related too?
Thanks for this
Sent from my HTC PH39100 using xda premium
Click to expand...
Click to collapse
According to supercurios app for detecting CIQ, the IQD file in /system/bin remains after deletion of the main CIQ files. Youll see in the logcat regarding CIQ "Unable to start service Intent", after you killed the two main running apps. There are two linux drivers that stop running after you ill iqd. But even if they are on, they are basically stranded, youre CIQ free either way.
Thanks for pointing this out KHhawkins, Im updating the post to instruct how to remove the iqd file and the iqfd file
Mission Accomplished
I have searched for Zergrushs root but haven't had any luck. Can some one post the link?
capman231 said:
I have searched for Zergrushs root but haven't had any luck. Can some one post the link?
Click to expand...
Click to collapse
Search for the HTC supertool
there also happens to be an entry in /system/build.prop
ro.ril.ciq=1
dont know if changing it to 0 would have any effect.
Pirateghost said:
there also happens to be an entry in /system/build.prop
ro.ril.ciq=1
dont know if changing it to 0 would have any effect.
Click to expand...
Click to collapse
No effect, I see no more ciq activity on logcat. I wanted to tinker with the build.prop file and initially remove it, but its an unnecessary step. Similar to the orphaned kernel drivers
Sent from my HTC PH39100 using xda premium
My device has no system\pro directory at all.
Otherwise the only discrepancy I found was the file htciqagent.so was also libhtciqagent.so.
---------- Post added at 03:07 PM ---------- Previous post was at 02:44 PM ----------
FYI - My Voodoo CarrierIQ score is 150 after following your directions. The applicaiton labeled my device as "Carrier IQ elements found - however it seems inactive".
ifiweresolucky said:
My device has no system\pro directory at all...
Click to expand...
Click to collapse
Before
Code:
cd system\pro
rm iqprofile.pro
Issue:
Code:
find / -name iqprofile.pro
to locate the iqprofile.pro file.
Then, "cd" to that location, and issue
Code:
rm iqprofile.pro
Thanks, was in system\etc\
Fixed all entries
Any performance increase after removing CIQ?
ifiweresolucky said:
My device has no system\pro directory at all.
Otherwise the only discrepancy I found was the file htciqagent.so was also libhtciqagent.so.
---------- Post added at 03:07 PM ---------- Previous post was at 02:44 PM ----------
FYI - My Voodoo CarrierIQ score is 150 after following your directions. The applicaiton labeled my device as "Carrier IQ elements found - however it seems inactive".
Click to expand...
Click to collapse
Youre in the clear, the last "150" come from the linux kernel drivers which are actually part of the kernel.
Okay. Noob question here. When you say go to terminal. What does that mean? Terminal emulator on the phone? Or a terminal on the PC? And if on the PC what do I use?
I have unlocked the bootloader
He means a DOS prompt (Windows) or terminal window (Linux). Then navigate to where you have ADB (assuming you dont have environmental variables set up) and execute the commands.
backtothemac said:
Okay. Noob question here. When you say go to terminal. What does that mean? Terminal emulator on the phone? Or a terminal on the PC? And if on the PC what do I use?
I have unlocked the bootloader
Click to expand...
Click to collapse
On your Mac use the terminal app with adb. On a PC use command prompt with adb.
Sent from my HTC PH39100 using xda premium
I am missing something. I can open the shell. Enter SU and then then next step in the process fails. I am close. lol
backtothemac said:
I am missing something. I can open the shell. Enter SU and then then next step in the process fails. I am close. lol
Click to expand...
Click to collapse
Root first!
I did. I am missing something small I am sure. But I am definitely missing it.

Categories

Resources