Hi
If you open Android's built-in "People" app (the contacts app),
and tap the Menu button -> Import/Export -> Phone -> Phone Storage,
the People app will generate a file called 00001.vcf in the root folder of your storage area.
This file includes all the contacts on your phone,
and you can later import it (in a similar way to how it was exported),
and restore all your contacts,should anything happen to them.
My suggestion:
Can an action be created in tasker, that will call this API which performs this export?
There is no need to write code that will iterate each contact person,
the API gets 1 call, and exports everything to a file..
This action will be highly useful, for automatically creating a backup of our contacts.
This backup file can then be used to restore, without needing any special application,
as said: just import it back, using the People app, and your phone is back alive :)
Thank you