How to remove a android directory automatically while booting

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to remove a android directory automatically while booting

1,509 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

961 Views
b36401
NXP Employee
NXP Employee

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