update the storage way of permission and all build.gradle