• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : Tiny4412,android4.2.2的root权限 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 99368
精华: 0
发帖: 9
金钱: 45 两
威望: 9 点
综合积分: 18 分
注册时间: 2013-12-27
最后登录: 2014-01-08
楼主  发表于: 2014-01-02 11:53

 Tiny4412,android4.2.2的root权限

请问版主怎么去获取Tiny4412,android4.2.2的root权限(想要在终端下去查看SDCARD的内容,提示cd: /sdcard: Permission denied),按照手册点击SuperSU图标更新su,提示安装失败(网络是通的)。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2014-01-02 13:09

 回 楼主(tanhuqiang) 的帖子

如果你的Android image是eng或者userdebug build的话,可以在命令行上用su命令获取root权限。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 99368
精华: 0
发帖: 9
金钱: 45 两
威望: 9 点
综合积分: 18 分
注册时间: 2013-12-27
最后登录: 2014-01-08
2楼  发表于: 2014-01-02 13:43

 回 1楼(kasim) 的帖子

我的Android image是光盘自带的,另外我按手册. setenv   make重新编译了一个也是一样。没看到您所说的eng或者userdebug build的东西?
级别: 新手上路
UID: 99368
精华: 0
发帖: 9
金钱: 45 两
威望: 9 点
综合积分: 18 分
注册时间: 2013-12-27
最后登录: 2014-01-08
3楼  发表于: 2014-01-02 14:05

 回 2楼(tanhuqiang) 的帖子

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
TARGET_PRODUCT=full_tiny4412
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.5.0-44-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JDQ39
OUT_DIR=out
============================================
以上是我的编译信息,在命令行通过su后变为了1|shell@android:/这个是已经切换到root了吗?但是我还是进不了sdcard目录啊?而且我一运行ls,马上又变为了shell@android:/ $了。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2014-01-02 21:51

 回 3楼(tanhuqiang) 的帖子

TARGET_BUILD_VARIANT=eng

这是eng build。
看起来最新的Android镜像里已经改了root方式。按照用户手册3.1.5节,在执行su命令的时候通过SuperSu给mksh赋予root权限就可以。SuperSu提示需要更新的时候,点击"Continue", 不管是Success还是Fail都没有影响。
另外,你也可以通过adb shell的方式在PC端进入命令行,默认就是root权限,不需要依赖SuperSu,参考手册3.1.2.1
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
5楼  发表于: 2014-01-03 10:02

 Re:回 楼主(tanhuqiang) 的帖子

引用第1楼kasim于2014-01-02 13:09发表的 回 楼主(tanhuqiang) 的帖子 :
如果你的Android image是eng或者userdebug build的话,可以在命令行上用su命令获取root权限。
eng和userdebug有何区别嘞?
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
6楼  发表于: 2014-01-03 11:22
来自www.kandroid.org/online-pdk/guide/build_system.html

Build Variants

When building for a particular product, it's often useful to have minor variations on what is ultimately the final release build. These are the currently-defined build variants:
eng     This is the default flavor. A plain make is the same as make eng.

    Installs modules tagged with: eng, debug, user, and/or development.
    Installs non-APK modules that have no tags specified.
    Installs APKs according to the product definition files, in addition to tagged APKs.
    ro.secure=0
    ro.debuggable=1
    ro.kernel.android.checkjni=1
    adb is enabled by default.

user     make user

This is the flavor intended to be the final release bits.

    Installs modules tagged with user.
    Installs non-APK modules that have no tags specified.
    Installs APKs according to the product definition files; tags are ignored for APK modules.
    ro.secure=1
    ro.debuggable=0
    adb is disabled by default.

userdebug     make userdebug

The same as user, except:

    Also installs modules tagged with debug.
    ro.debuggable=1
    adb is enabled by default.
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 99368
精华: 0
发帖: 9
金钱: 45 两
威望: 9 点
综合积分: 18 分
注册时间: 2013-12-27
最后登录: 2014-01-08
7楼  发表于: 2014-01-03 15:33

 回 6楼(kasim) 的帖子

您好,我在串口终端输入如下指令:
shell@android:/ $ su
su: must be suid to work properly
1|shell@android:/ $ cd sdcard
/system/bin/sh: cd: /sdcard: Permission denied
2|shell@android:/ $
请问我想要完成上述过程该怎么做呢。
另外,我的板子(4412),android4.2.2系统下,用91助手等软件怎么都连接不到设备是怎么回事呢?在设备管理器里看到一个无法识别的MTP设备。光盘里也没有看到有相应驱动。
[ 此帖被tanhuqiang在2014-01-03 15:56重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
8楼  发表于: 2014-01-04 09:51

 回 7楼(tanhuqiang) 的帖子

您好,我在串口终端输入如下指令:
shell@android:/ $ su
su: must be suid to work properly
1|shell@android:/ $ cd sdcard
/system/bin/sh: cd: /sdcard: Permission denied
2|shell@android:/ $

这是因为SuperSu没有给shell赋予root权限造成的。你可以点击应用程序里的SuperSu图标,如果有mksh这一行,点击它,在出现的对话框里的Access这一栏里选"Grant", 然后选择"Save", 这时后面的"#"图标应该是绿色的,这样就可以了。如果没有,试试重启一下开发板再试一次,打完su命令后应该会出现SuperSu的对话框,选择"Grant"就可以了。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
9楼  发表于: 2014-01-04 10:00

 回 7楼(tanhuqiang) 的帖子


另外,我的板子(4412),android4.2.2系统下,用91助手等软件怎么都连接不到设备是怎么回事呢?在设备管理器里看到一个无法识别的MTP设备。光盘里也没有看到有相应驱动。

建议你另外发一个帖子讨论有关ADB驱动安装的问题,以方便其他人查询。发帖的时候把你Windows上设备管理器界面的截图附上。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go