start bluestack or emulator install app on it start the app
connect adb to emulator
$ adb connect localhost:5555
get 'pid' of your app .Dont forget to run it first in emulator
const simulated_latitude = 48.8534 | |
const simulated_longitude = 2.3488 | |
Java.perform(function(){ | |
const Location = Java.use('android.location.Location') | |
var location = Location.$new("gps") | |
location.setLatitude(simulated_latitude) | |
location.setLongitude(simulated_longitude) |
arr=($(adb shell "ls /data/app" | tr "\r\n" " " | sed 's/-[0-9]//g') "Quit") | |
echo "It's time to choose" | |
select opt in "${arr[@]}";do | |
case $opt in | |
"Quit") | |
break | |
esac | |
re='^[0-9]+$' | |
if ! [[ $REPLY =~ $re ]]; then |
/* | |
* Copyright (c) 1996, 1998, Oracle and/or its affiliates. All rights reserved. | |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
* | |
* This code is free software; you can redistribute it and/or modify it | |
* under the terms of the GNU General Public License version 2 only, as | |
* published by the Free Software Foundation. Oracle designates this | |
* particular file as subject to the "Classpath" exception as provided | |
* by Oracle in the LICENSE file that accompanied this code. | |
* |
# first: mkdir user && cd user && cp /path/to/get_gists.py . | |
# python3 get_gists.py user | |
import requests | |
import sys | |
from subprocess import call | |
user = sys.argv[1] | |
r = requests.get('https://api.github.com/users/{0}/gists'.format(user)) |
adb shell content query --uri content://settings/secure --where "name=\'android_id\'" | |
adb shell content delete --uri content://settings/secure --where "name=\'android_id\'" | |
adb shell content insert --uri content://settings/secure --bind name:s:android_id --bind value:s:7373de1e9e9670c2 |
#!/bin/bash | |
iatest=$(expr index "$-" i) | |
####################################################### | |
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me | |
####################################################### | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc |
// | |
// AppDelegate.swift | |
// test | |
// | |
// Created by IOANNIS DELIGIANNIS on 1/2/16. | |
// Copyright © 2016 IOANNIS DELIGIANNIS. All rights reserved. | |
// | |
import Cocoa |
start bluestack or emulator install app on it start the app
connect adb to emulator
$ adb connect localhost:5555
get 'pid' of your app .Dont forget to run it first in emulator