* [impr]update setExternalStorage method logic,support more db check,add 8 count unit test method * update comment desc