Crear usuario
adduser username
Agregar permission de administrador
usermod -aG sudo username
import 'dart:async'; | |
import 'package:geolocator/geolocator.dart'; | |
class GeolocatorWrapper { | |
StreamController<Position>? _positionController; | |
StreamController<bool>? _serviceEnabledController; | |
StreamSubscription? _positionSubscription, _serviceEnabledSubscription; | |
/// check if the Location Service is Enabled | |
Future<bool> get isLocationServiceEnabled => Geolocator.isLocationServiceEnabled(); |
Crear usuario
adduser username
Agregar permission de administrador
usermod -aG sudo username
/** | |
* Created by kientux on 3/20/15 | |
*/ | |
import android.util.Base64; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.SecureRandom; | |
import java.util.Arrays; |