Skip to content

Instantly share code, notes, and snippets.

View xlogix's full-sized avatar
🏠
Working from home

Abhishek Uniyal xlogix

🏠
Working from home
View GitHub Profile
val forName = Class::class.java.getDeclaredMethod("forName", String::class.java)
val getDeclaredMethod = Class::class.java.getDeclaredMethod("getDeclaredMethod", String::class.java, arrayOf<Class<*>>()::class.java)
val vmRuntimeClass = forName.invoke(null, "dalvik.system.VMRuntime") as Class<*>
val getRuntime = getDeclaredMethod.invoke(vmRuntimeClass, "getRuntime", null) as Method
val setHiddenApiExemptions = getDeclaredMethod.invoke(vmRuntimeClass, "setHiddenApiExemptions", arrayOf(arrayOf()::class.java)) as Method
val vmRuntime = getRuntime.invoke(null)
setHiddenApiExemptions.invoke(vmRuntime, arrayOf("L"))
@xlogix
xlogix / schema.graphql
Created July 8, 2019 08:28 — forked from krsnvijay/schema.graphql
RLE Suite Graphql Schema
type User @model {
id: ID!
username: String!
firstName: String!
lastName: String!
profilePic: String!
email: String!
bio: String
about: String
tags: [String!]
@xlogix
xlogix / ID3.java
Created January 15, 2018 06:27
Sorting of Tags in MP3 files
import java.io.RandomAccessFile;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.File;
public class ID3 {
File mp3File;
private final String encoding = "Cp437";