Add uid/package check in RttServiceImpl#startRanging

Enforce UID to package name check to validate that the caller isn't
providing a fake packageName which isn't their own.

Bug: 194798757
Test: atest com.android.server.wifi
Change-Id: I5a595d73c07de7a992178caabd9d57250a451d67
(cherry picked from commit ad512b497c264f4f64a9a92aec1d4515543830fe)
diff --git a/service/java/com/android/server/wifi/rtt/RttServiceImpl.java b/service/java/com/android/server/wifi/rtt/RttServiceImpl.java
index c3267cc..d55c46a 100644
--- a/service/java/com/android/server/wifi/rtt/RttServiceImpl.java
+++ b/service/java/com/android/server/wifi/rtt/RttServiceImpl.java
@@ -426,6 +426,7 @@
         // permission checks
         enforceAccessPermission();
         enforceChangePermission();
+        mWifiPermissionsUtil.checkPackage(uid, callingPackage);
         mWifiPermissionsUtil.enforceFineLocationPermission(callingPackage, callingFeatureId, uid);
 
         final WorkSource ws;