• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Small Tool to delete a File

pandavova

Lurker
I would be very happy if someone want to make an (easy) app for me!
It should delete a specific file (root permission), stop a specific app and delete the cache of the app.
The name of the app is com.nintendo.zaba, and the file is located under /data/data/com.nintendo.zaba/shared_prefs/deviceAccount:.xml
It should be a button, so when i press it it, stops the app, clears the cache and then deletes the file.
I hope someone can help me!
Vova
 
Request covered.

Tasker task description:

A1: Flash [ Text:Starting... Long:Off ]
<Stop Nintendo Zaba application>
A2: Run Shell [ Command:am force-stop com.nintendo.zaba Timeout (Seconds):7 Use Root:On Store Output In: Store Errors In:%NZerror1 Store Result In: ]
A3: Flash [ Text:Application stopped... Long:Off ]
A4: Wait [ MS:200 Seconds:0 Minutes:0 Hours:0 Days:0 ]
<Clear cache>
A5: Run Shell [ Command:rm -rf /data/data/com.nintendo.zaba/cache/* Timeout (Seconds):7 Use Root:On Store Output In: Store Errors In:%NZerror2 Store Result In: ]
A6: Flash [ Text:Cache cleared... Long:Off ]
A7: Wait [ MS:200 Seconds:0 Minutes:0 Hours:0 Days:0 ]
<Delete desired file>
A8: Run Shell [ Command:rm /data/data/com.nintendo.zaba/shared_prefs/deviceAccount:.xml Timeout (Seconds):7 Use Root:On Store Output In: Store Errors In:%NZerror3 Store Result In: ]
A9: Flash [ Text:Account file deleted ... Long:Off ]
A10: Flash [ Text:Operation: SUCCESS Long:Off ]
 

Attachments

Back
Top Bottom