Ionic3 SQLite External Location Error

I am trying to protect android app internal database from being destroyed when the app is uninstalled.

For that i am trying to store sqlite database into external location from the app folder, but it is not working when i am giving external location. It show the error The code is as follows.

this.sqlite
.create({
name: “database.db”,
location: "file://android/data/com.android.weightapp/file/db/ "
})
.then((db: SQLiteObject) => {
“CREATE TABLE IF NOT EXISTS test(rowid INTEGER PRIMARY KEY, m_id INTEGER,m_code TEXT, m_name TEXT, m_no TEXT)”
}).then(res=>{
alert(“Sucess”+JSON.stringify(res))
}).catch(error=>{
alert(error)
})
})

When the location is ‘default’ everything is working fine.