Skip to content

Instantly share code, notes, and snippets.

Sergey Ryazanov 2Grey

Block or report user

Report or block 2Grey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@2Grey
2Grey / frendlyDeviceNames.swift
Last active Mar 25, 2019
Friendly device name (Swift)
View frendlyDeviceNames.swift
func frendlyDeviceNames(forModel model: String) -> String {
let frendlyNames: [String: String] = [
//Simulator
"i386" : "Simulator",
"x86_64" : "Simulator",
//Apple TV
"AppleTV1,1" : "Apple TV",
"AppleTV2,1" : "Apple TV 2G",
@2Grey
2Grey / README.md
Created Nov 17, 2017 — forked from aldur/README.md
OnePlusRoot
View README.md

Root OnePlus5 without unlocking the bootloader

Gain adb root.

$ adb shell am start -n com.android.engineeringmode/.qualcomm.DiagEnabled --es "code" "angela"

Download Magisk-v14.0 and extract it somewhere. Download MagiskManager.

@2Grey
2Grey / friendlyDeviceName.m
Last active Sep 19, 2018
iOS Devices friendly model name
View friendlyDeviceName.m
- (NSString *)frendlyDeviceNames:(NSString *)name
{
NSDictionary *frendlyNames =
@{
//Simulator
@"i386" : @"Simulator",
@"x86_64" : @"Simulator",
//Apple TV
@"AppleTV1,1" : @"Apple TV",
You can’t perform that action at this time.