Skip to content

Instantly share code, notes, and snippets.

View simoarpe's full-sized avatar

Simone Arpe simoarpe

View GitHub Profile
@simoarpe
simoarpe / android-adb-pull-apk.md
Created March 6, 2019 13:57 — forked from ctrl-freak/android-adb-pull-apk.md
Retrieve APK from Non-Rooted Android Device through ADB

https://stackoverflow.com/a/18003462/348146

None of these suggestions worked for me, because Android was appending a sequence number to the package name to produce the final APK file name (this may vary with the version of Android OS). The following sequence of commands is what worked for me on a non-rooted device:

  1. Determine the package name of the app, e.g. com.example.someapp. Skip this step if you already know the package name.

    adb shell pm list packages

    Look through the list of package names and try to find a match between the app in question and the package name. This is usually easy, but note that the package name can be completely unrelated to the app name. If you can't recognize the app from the list of package names, try finding the app in Google Play using a browser. The URL for an app in Google Play contains the package name.

@simoarpe
simoarpe / libGdxFromShaderToy.java
Created August 5, 2016 10:45
this is an attempt to port this shader to libgdx https://www.shadertoy.com/view/XdcXDN#
package de.qx.shaders.CustomFrameBuffer;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import de.qx.shaders.ShaderManager;