Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
fix(policies): fix gps
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelje authored and Hector Rondon committed Nov 23, 2017
1 parent 13c499f commit df4013b
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,12 @@ private static void executecmd(String[] cmds) {
}

public static void disableGps(boolean disable) {
String gps = "+gps";
if(disable) {
gps = "-gps";
String gps = "''";
String[] cmds = {"cd /system/bin" ,"settings put secure location_providers_allowed " + gps};
executecmd(cmds);
}

String[] cmds = {"cd /system/bin" ,"settings put secure location_providers_allowed " + gps};

executecmd(cmds);
}

public static void disableRoaming(boolean disable){
Expand Down

0 comments on commit df4013b

Please sign in to comment.