EasyPermissions is a wrapper library to simplify basic system permissions logic when targeting Android M or higher.
EasyPermissions is installed by adding the following dependency to your build.gradle file:
| public class CustomZoomableImageView extends ImageView { | |
| private Paint borderPaint = null; | |
| private Paint backgroundPaint = null; | |
| private float mPosX = 0f; | |
| private float mPosY = 0f; | |
| private float mLastTouchX; | |
| private float mLastTouchY; | |
| private static final int INVALID_POINTER_ID = -1; |
| <resources> | |
| <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> | |
| <!-- Customize your theme here. --> | |
| <item name="alertDialogTheme">@style/Theme.Dialog.Alert</item> | |
| </style> | |
| </resources> |
| -fullscreen -language schinese -novid -international -high -perfectworld |
| #include <string.h> | |
| #include <openssl/rsa.h> | |
| #include <openssl/evp.h> | |
| #include <openssl/bn.h> | |
| #include <openssl/pem.h> | |
| // cheating, .. ignoring deprecation warnings | |
| #pragma GCC diagnostic ignored "-Wdeprecated-declarations" | |
| unsigned char *base64_decode(const char* base64data, int* len) { |
| #!/bin/bash | |
| # Copyright 2014, The Android Open Source Project | |
| # | |
| # 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 |
| externalNativeBuild{ | |
| cmake{ | |
| path "CMakeLists.txt" | |
| } | |
| } | |
| defaultConfig { | |
| externalNativeBuild { | |
| cmake { | |
| targets "target1", "target2" |
Generate a new private key and Certificate Signing Request
openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.keyGenerate a certificate signing request (CSR) for an existing private key
openssl req -out CSR.csr -key privateKey.key -new| #include <string> | |
| #include <sys/ptrace.h> | |
| #include <unistd.h> | |
| #include <stdlib.h> | |
| #include <chrono> | |
| #include <thread> | |
| #include "log.h" | |
| void be_attached_check() | |
| { |
| public class TouchInterceptActivity extends Activity implements ViewPager.OnPageChangeListener { | |
| private ViewPager mViewPager; | |
| private ListView mListView; | |
| public void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.touch_intercept); | |
| mViewPager = new ViewPager(this); |