资源简介
android 5.1源码root补丁
不需要SuperSU,使用android su

代码片段和文件信息
/*
* Main entry of app process.
*
* Starts the interpreted runtime then starts up the application.
*
*/
#define LOG_TAG “appproc“
#include
#include
#include
#include
#include
#include
#include
#include
#include // for AID_SYSTEM
#include
#include
#include
#include
namespace android {
void app_usage()
{
fprintf(stderr
“Usage: app_process [java-options] cmd-dir start-class-name [options]\n“);
}
class AppRuntime : public AndroidRuntime
{
public:
AppRuntime(char* argBlockStart const size_t argBlockLength)
: AndroidRuntime(argBlockStart argBlockLength)
mClass(NULL)
{
}
void setClassNameAndArgs(const String8& className int argc char * const *argv) {
mClassName = className;
for (int i = 0; i < argc; ++i) {
mArgs.add(String8(argv[i]));
}
}
virtual void onVmCreated(JNIEnv* env)
{
if (mClassName.isEmpty()) {
return; // Zygote. Nothing to do here.
}
/*
* This is a little awkward because the JNI FindClass call uses the
* class loader associated with the native method we‘re executing in.
* If called in onstarted (from RuntimeInit.finishInit because we‘re
* launching “am“ for example) FindClass would see that we‘re calling
* from a boot class‘ native method and so wouldn‘t look for the class
* we‘re trying to look up in CLASSPATH. Unfortunately it needs to
* because the “am“ classes are not boot classes.
*
* The easiest fix is to call FindClass here early on before we start
* executing boot class Java code and thereby deny ourselves access to
* non-boot classes.
*/
char* slashClassName = toSlashClassName(mClassName.string());
mClass = env->FindClass(slashClassName);
if (mClass == NULL) {
ALOGE(“ERROR: could not find class ‘%s‘\n“ mClassName.string());
}
free(slashClassName);
mClass = reinterpret_cast(env->NewGlobalRef(mClass));
}
virtual void onstarted()
{
sp proc = ProcessState::self();
ALOGV(“App process: starting thread pool.\n“);
proc->startThreadPool();
AndroidRuntime* ar = AndroidRuntime::getRuntime();
ar->callMain(mClassName mClass mArgs);
IPCThreadState::self()->stopProcess();
}
virtual void onZygoteInit()
{
// Re-enable tracing now that we‘re no longer in Zygote.
atrace_set_tracing_enabled(true);
sp proc = ProcessState::self();
ALOGV(“App process: starting thread pool.\n“);
proc->startThreadPool();
}
virtual vo
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-06-17 14:32 fr
目录 0 2017-06-17 14:32 fr
目录 0 2017-06-17 14:32 fr
目录 0 2017-06-17 14:32 fr
文件 21841 2017-06-17 14:32 fr
目录 0 2017-06-17 14:32 fr
目录 0 2017-06-18 02:59 fr
文件 10419 2017-06-17 14:32 fr
目录 0 2017-06-17 14:33 system\
目录 0 2017-06-17 14:33 system\core\
目录 0 2017-06-17 14:33 system\core\include\
目录 0 2017-06-17 14:33 system\core\include\private\
文件 13124 2017-06-17 14:33 system\core\include\private\android_filesystem_config.h
目录 0 2017-06-17 14:33 system\extras\
目录 0 2017-10-20 05:45 system\extras\su\
文件 4270 2017-06-17 14:33 system\extras\su\su.c
文件 52 2017-10-20 05:51 readme
- 上一篇:Jpcap资料与应用
- 下一篇:java反射工具类 ReflectionUtils
相关资源
- Android非常漂亮的登录界面
- pc与android通过usb socket实现手机通信
- android毕业设计
- 百度地图自定义Markerandroid
- Android分区工具包
- android-support-v4.jar已打包进去源代码
- u-blox_Android_GNSS_Driver_v3.10驱动源码+中
- 个人根据Android移动开发案例详解手写
- android 视频播放器 项目和原码
- Android【动画】【特效】 17种动画特效
- 基于Android智能家居详细设计(经典)
- android通过JDBC连接Mysql数据库
- Android通讯录的源代码
- android 瀑布流Demo
- 指纹传感器FPC1080在android下的驱动
- delphi xe5 android 调用照相机摄像头拍照
- Android手机连连看游戏源码
- android-sdk-windows v2.3离线完整版
- android 底部弹出菜单(带透明背景)
- Android工程模式简介.rar
- Android蓝牙和Cors网络开发源码
- Android powermanger wakelock
- Android v7的一些jar包
- 最新android supportV7包
- android图片压缩工具类分享
- 单机搭建Android(解决Network is unreach
-
ba
se64Encode编码,jar包源代码打包 - Android上监听收到的短信(SMS)
- android电商app源码
- Android代码-多功能拨号盘源码.zip
评论
共有 条评论