How to remove a android directory automatically while booting

cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove a android directory automatically while booting

783 Views
aravinthkumarja
Senior Contributor II

Hi all,

I'm using android 4.4.3, i want to delete the following directory on every booting.

/data/data/com.android.providers.settings/   --> this is the directory

In init.rc file i give all commands(rm -rf, rmdir, exec rm -rf), but it's not deleting.

Can you give the right init.rc command to delete a android directory???

Regards,

Aravinth

0 Kudos
1 Reply

235 Views
b36401
NXP TechSupport
NXP TechSupport

You can remove content of this directory with the command like

rm -r /data/data/com.android.providers.settings/*

but the directory itself can not be deleted.

Have a great day,

Victor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos