Skip to content

Instantly share code, notes, and snippets.

@myfreeer
Last active January 24, 2018 11:46
Show Gist options
  • Save myfreeer/13accca372d7b888158563804da154c7 to your computer and use it in GitHub Desktop.
Save myfreeer/13accca372d7b888158563804da154c7 to your computer and use it in GitHub Desktop.
#!/bin/bash
#REPO=genlocationdata
#REPO_URL=https://github.com/MoKee/android_frameworks_base.git
#REPO_PATH=mokee/tools/genlocationdata/*
#REPO_BRANCH=mkn-mr1
#rm -rf $REPO
#git init $REPO
#cd $REPO
#git remote add origin $REPO_URL
#git config core.sparsecheckout true
#echo "$REPO_PATH" >> .git/info/sparse-checkout
#git pull --depth=1 origin $REPO_BRANCH
#pacman -S wget --noconfirm
URL_PREFIX=https://github.com/MoKee/android_frameworks_base/raw/mko-mr1/mokee/tools/genlocationdata
wget --no-check-certificate --show-progress $URL_PREFIX/GenerateData.cpp
wget --no-check-certificate --show-progress $URL_PREFIX/Global.cpp
wget --no-check-certificate --show-progress $URL_PREFIX/Global.h
wget --no-check-certificate --show-progress $URL_PREFIX/Makefile
wget --no-check-certificate --show-progress $URL_PREFIX/mokee-phonelocation.txt
make clean
make
strip generateData.exe
./generateData.exe -c mokee-phonelocation.txt
@myfreeer
Copy link
Author

myfreeer commented Apr 23, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment