copy file to system/lib on adroid root devices

转载 2016年05月30日 20:05:24

前言

今天要做so静态调用的试验, 我得先将编译好的so放到system/lib中.

试验记录

开始拿360一键root试过,对HM1SC不好使.

先用刷机精灵将真机HM1SC root了, 在刷机精灵和她的ROOT精灵运行时,给ROOT权限(安全中心=>授权管理=>ROOT权限管理=>打勾), 给ROOT权限的时候,小米的安全中心要弹出好几次的提示, 还是挺安全的, 安全中心很不愿意自己所在的真机被ROOT啊:)

将刷机精灵(PC版, 手机版,ROOT精灵)退出, 将PC上的刷机精灵后台进程杀掉.
这时手机已经被root了.

启动adb, 将文件先push到临时目录,再从临时目录push到/system/lib.
如果push的是一个so, 就可以做动态app静态调用so的试验了.

D:\>adb devices
List of devices attached
e73c0da device

D:\>adb -s e73c0da push d:\tmp\test.txt /data/local/tmp
0 KB/s (12 bytes in 0.015s)

D:\>adb -s e73c0da shell
shell@armani:/ $ su
root@armani:/ # cd /data/local/tmp
root@armani:/data/local/tmp # ls
hw
test.txt
root@armani:/data/local/tmp # cp ./test.txt /system/lib
root@armani:/data/local/tmp # ls -l /system/lib/*.txt
-rw-r----- root     root           12 2016-05-30 19:58 test.txt
root@armani:/data/local/tmp #

在shell中时,拷贝文件不能用push命令,要用cp

root@armani:/data/local/tmp # push ./test.txt /system/lib
k_shell/2000:2827: push: not found
127|root@armani:/data/local/tmp #

Creating a Root File System for Linux on OMAP35x - 为Linux基于OMAP35x创建根文件系统

本文原载于 http://processors.wiki.ti.com/index.php?title=Creating_a_Root_File_System_for_Linux_on_OMAP35...

Creating a Root File System for Linux on OMAP35x

ABSTRACT A Linux kernel is not very useful without a root file system containing applications and se...

How to Copy an Assembly From the GAC to the File System

http://blogs.msdn.com/b/johnwpowell/archive/2009/01/14/how-to-copy-an-assembly-from-the-gac.aspx Som...
  • lJean
  • lJean
  • 2011年06月03日 17:35
  • 786

Remote Code Execution as System User on Android 5 Samsung Devices abusing WifiCredService (Hotspot 2

This article explains a recently disclosed vulnerability, independently discovered by the Google's P...

File-Sharing Support on iOS Devices (iOS 4 only)

File-Sharing SupportApplications that want to make user data files accessible can do so using applic...

Testing of RF and System-on-a-Chip Devices

  • 2012年01月11日 21:24
  • 2.78MB
  • 下载

Deployment failure on Tomcat 6.x. Could not copy all resources to C:\tomcat6\webapps\OAPMS. If a fil

Deployment failure on Tomcat 6.x. Could not copy all resources to C:\tomcat6\webapps\OAPMS. If a fil...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:copy file to system/lib on adroid root devices
举报原因:
原因补充:

(最多只允许输入30个字)