File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
java/com/prey/backwardcompatibility Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1717import com .prey .PreyConfig ;
1818import com .prey .PreyLogger ;
1919import com .prey .PreyUtils ;
20+ import com .prey .R ;
2021import com .prey .exceptions .PreyException ;
2122import com .prey .json .actions .Lock ;
2223import com .prey .receivers .PreyDeviceAdmin ;
@@ -122,9 +123,11 @@ public Intent getAskForAdminPrivilegesIntent() {
122123 return intent ;
123124 }
124125
125- public void wipe () {
126+ public void wipe () throws Exception {
126127 if (isAdminActive ())
127128 policyManager .wipeData (0 );
129+ else
130+ throw new Exception (ctx .getString (R .string .administrator_disabled ));
128131 }
129132
130133 public static boolean supportSMS (Context ctx ) {
Original file line number Diff line number Diff line change 377377
378378 <string name =" restriction_title_setup_key" >Clave de configuración</string >
379379 <string name =" restriction_description_setup_key" >Clave de cuenta</string >
380+ <string name =" administrator_disabled" >El componente de administrador dado no está actualmente activo y deshabilitado en el sistema.</string >
380381</resources >
Original file line number Diff line number Diff line change 383383
384384 <string name =" restriction_title_setup_key" >Setup key</string >
385385 <string name =" restriction_description_setup_key" >Account key</string >
386+ <string name =" administrator_disabled" >The given administrator component is not currently active disabled in the system.</string >
386387</resources >
You can’t perform that action at this time.
0 commit comments