Skip to content

Instantly share code, notes, and snippets.

View vladimir-paskov's full-sized avatar

Vladimir Paskov vladimir-paskov

View GitHub Profile
country region bbox
Afghanistan Badakhshan 35.44241059007663,69.99854943181077,38.47367340200013,74.89230676300008
Afghanistan Badghis 34.5093667668628,62.651762729566315,36.0317323437726,65.04732710206406
Afghanistan Baghlan 35.006700750838945,68.005234408641,36.571204739407165,69.9610323420689
Afghanistan Balkh 35.66725474700894,66.2478739774021,37.385212708,68.18909915610112
Afghanistan Bamyan 33.93792877938961,66.33060794540035,35.469618232295545,68.28268517398158
Afghanistan Farah 31.388741287780192,60.56150191200004,33.51668834119397,64.73840538909741
Afghanistan Faryab 35.18699982398266,63.88739790189163,37.241997468508316,65.8166858250907
Afghanistan Ghazni 32.07184113206256,66.8291821628265,34.20933340081575,68.80017296680893
Afghanistan Ghor 33.12257802995208,63.07075524305998,35.26973379198091,66.7740950866189
@mvaisakh
mvaisakh / Bringup.md
Last active May 1, 2026 04:26
An Android Device Tree Bringup Guide

A small Device Tree Bringup Guide

Introduction

So, you guys might be wondering, how do these "Developers" get your favourite Custom roms, such as LineageOS, Paranoid Android etc., to their own devices. Well I'm here to Guide you on how to do it, specifically on how to bringup or make your own device tree from scratch or adapting.

Gist of this Guide: This is for people with genuine interest in Android OS porting/development. After going through this guide, you should be able to do a total device tree bringup on your own.

Prerequisite: Certain requirements are to be met before you start with this amazing journey.

@Thorsten1976
Thorsten1976 / CompatUtils.java
Created October 20, 2020 10:24
Detect the interaction mode of the navigation bar (i.e. full screen gesture mode, 2-button navigation, 3-button navigation) in Android: navBarInteractionMode
import android.content.Context;
import android.content.res.Resources;
import androidx.annotation.IntDef;
import androidx.annotation.NonNull;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
public final class CompatUtils {
@Retention(RetentionPolicy.SOURCE)
@typebrook
typebrook / MBTilesServer.kt
Last active March 18, 2025 05:50
How to make MBTiles valid on Mapbox Android SDK #mbtiles #android #mapbox
package com.example.sample.offline
import android.util.Log
import java.io.BufferedReader
import java.io.ByteArrayOutputStream
import java.io.FileNotFoundException
import java.io.PrintStream
import java.net.ServerSocket
import java.net.Socket
import kotlin.math.pow
@hormesiel
hormesiel / Device.java
Last active May 29, 2024 11:47
How to get an Android device's serial number, visible to the user in "Settings > About phone/tablet/device > Status > Serial number".
import android.os.Build;
import java.lang.reflect.Method;
public class Device {
/**
* @return The device's serial number, visible to the user in {@code Settings > About phone/tablet/device > Status
* > Serial number}, or {@code null} if the serial number couldn't be found
*/
public static String getSerialNumber() {
@xpcmdshell
xpcmdshell / Hooky.cpp
Created June 3, 2017 04:19
Application Verifier Basics
#include "stdafx.h"
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include "prio.h"
//Convenient define for the fdwReason
#define VERIFIER_LOAD 4
/*
Prototypes for additional event callbacks (dll load, unload, and heap free). If you wanted to, you could respond to these events. We will
@chomi3
chomi3 / ToolbarColorizeHelper
Last active February 11, 2022 23:41
Helper class to colorize all Android Toolbar Icons
/*
Copyright 2015 Michal Pawlowski
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software