Check dir path before updating permissions. am: 018bae5e8e

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/providers/TelephonyProvider/+/19734283

Change-Id: If62fce830bad42f78ee905c7433929c08aa41ed9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>