Skip to content

Instantly share code, notes, and snippets.

Permissions Table (mnt Smart)

Name type:web type:privileged type:certified
geolocation ! ! !
geolocation-noprompt
mmi-test
camera !
alarms
tcp-socket
udp-socket
@raiym
raiym / Ubuntu.sh
Last active January 22, 2020 05:58
Build libwesocket library statically for Ubuntu 18.04
#!/bin/bash
apt install wget
apt install gcc
apt install make
apt install cmake
WORKDIR=$(pwd .)
export WORKDIR
<?php
error_reporting(-1);
require_once 'vendor/autoload.php';
require_once 'src/InstagramScraper.php';
use InstagramScraper\Exception\InstagramException;
use InstagramScraper\Instagram;
try {
$medias = Instagram::getMedias('kevin', 1497);
@raiym
raiym / DeviceAdminInteractor.java
Last active February 21, 2023 07:54
Activate KNOX Standard SDK Demo
public class DeviceAdminInteractor {
private static final String LOG_TAG = DeviceAdminInteractor.class.getName();
// Can be dev and production key
private static final String ELM_LICENSE_KEY
= "SECRETKEY";
public ComponentName componentName;
private DevicePolicyManager devicePolicyManager;
/**
* Samsung KNOX Standard SDK related variables