diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-06-23 17:09:52 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-06-23 17:09:52 +0200 |
commit | 0e76e955ba4848b18ee458cb9f53cc8e64671146 (patch) | |
tree | 818cb149d78d508dcc34fa6cdfc3e94e3655db4b /src/de/blinkt/openvpn/api/ExternalOpenVPNService.java | |
parent | 180642560ef5c8a0139dcd50c1a7fa949c0c20f4 (diff) |
Fix issues found by Code Analysis
Diffstat (limited to 'src/de/blinkt/openvpn/api/ExternalOpenVPNService.java')
-rw-r--r-- | src/de/blinkt/openvpn/api/ExternalOpenVPNService.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/de/blinkt/openvpn/api/ExternalOpenVPNService.java b/src/de/blinkt/openvpn/api/ExternalOpenVPNService.java index 866fb698..35374c77 100644 --- a/src/de/blinkt/openvpn/api/ExternalOpenVPNService.java +++ b/src/de/blinkt/openvpn/api/ExternalOpenVPNService.java @@ -76,7 +76,8 @@ public class ExternalOpenVPNService extends Service implements StateListener { }
private final IOpenVPNAPIService.Stub mBinder = new IOpenVPNAPIService.Stub() {
- private boolean checkOpenVPNPermission() throws SecurityRemoteException{
+
+ private void checkOpenVPNPermission() throws SecurityRemoteException{
PackageManager pm = getPackageManager();
for (String apppackage:mExtAppDb.getExtAppList()) {
@@ -84,7 +85,7 @@ public class ExternalOpenVPNService extends Service implements StateListener { try {
app = pm.getApplicationInfo(apppackage, 0);
if (Binder.getCallingUid() == app.uid) {
- return true;
+ return;
}
} catch (NameNotFoundException e) {
// App not found. Remove it from the list
@@ -299,7 +300,7 @@ public class ExternalOpenVPNService extends Service implements StateListener { {
broadcastItem.newStatus(um.vpnUUID, um.state, um.logmessage, um.level.name());
}
- };
+ }
}
\ No newline at end of file |