搜索结果
查询Tags标签: meth,共有 3条记录-
Android 通过Java反射 拨打、挂断电话
public void call(String number) {Class<TelephonyManager> c = TelephonyManager.class;Method getITelephonyMethod = null;try {getITelephonyMethod = c.getDeclaredMethod("getITelephony", (Class[]) null);getITelephonyMethod.setAccessible(tru…
2021/7/10 17:06:09 人评论 次浏览 -
Android 通过Java反射 拨打、挂断电话
public void call(String number) {Class<TelephonyManager> c = TelephonyManager.class;Method getITelephonyMethod = null;try {getITelephonyMethod = c.getDeclaredMethod("getITelephony", (Class[]) null);getITelephonyMethod.setAccessible(tru…
2021/7/10 17:06:09 人评论 次浏览 -
使用 openssl 计算 base64(防止内存泄露)
#include "openssl/bio.h" #include "openssl/evp.h" #include "openssl/buffer.h"int base64(const unsigned char *src, int src_len, unsigned char *dst, int *dst_len) {BIO *bio_hnd_mem = NULL;BIO *bio_hnd_meth = NULL;BUF_MEM *…
2021/6/2 7:26:02 人评论 次浏览