Skip to content

Instantly share code, notes, and snippets.

View Babar-Bashir's full-sized avatar

Babar Bashir Babar-Bashir

View GitHub Profile
@Babar-Bashir
Babar-Bashir / license.txt
Created March 13, 2019 02:46 — forked from javisantana/license.txt
NMEA parser in java which does not suck
this software is under the terms of MIT license: http://opensource.org/licenses/MIT
/* Copyright 2013 Google Inc.
Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0.html */
package com.example.latlnginterpolation;
import android.animation.ObjectAnimator;
import android.animation.TypeEvaluator;
import android.animation.ValueAnimator;
import android.annotation.TargetApi;
import android.os.Build;
@Babar-Bashir
Babar-Bashir / get-file-from-android
Created March 1, 2018 04:27 — forked from fdanelyan/get-file-from-android
Get database from root android device to Mac desktop
adb shell "su -c 'chmod 777 /data/data/com.android.providers.telephony/databases/mmssms.db'"
adb shell "su -c 'chmod 777 /data/data/com.android.providers.telephony/databases/telephony.db'"
adb shell "su -c 'chmod 777 /data/data/com.android.providers.contacts/databases/profile.db'"
adb shell "su -c 'chmod 777 /data/data/com.android.providers.contacts/databases/contacts2.db'"
adb pull /data/data/com.android.providers.telephony/databases/mmssms.db /Users/fridondanelyan/Desktop/databases/mmssms.sqlite
adb pull /data/data/com.android.providers.telephony/databases/telephony.db /Users/fridondanelyan/Desktop/databases/telephony.sqlite
adb pull /data/data/com.android.providers.contacts/databases/profile.db /Users/fridondanelyan/Desktop/databases/profile.sqlite
adb pull /data/data/com.android.providers.contacts/databases/contacts2.db /Users/fridondanelyan/Desktop/databases/contacts2.sqlite
@Babar-Bashir
Babar-Bashir / ShareIntentBuilder
Last active December 12, 2017 11:11 — forked from gelldur/ShareIntentBuilder
Share builder for android
package com.dexode.util;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.LabeledIntent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.support.annotation.Nullable;
@Babar-Bashir
Babar-Bashir / Connectivity.java
Created February 10, 2017 07:38 — forked from emil2k/Connectivity.java
Android utility class for checking device's network connectivity and speed.
package com.emil.android.util;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.telephony.TelephonyManager;
/**
* Check device's network connectivity and speed
* @author emil http://stackoverflow.com/users/220710/emil
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