我正在尝试关注此链接安装 FlashTool,以便我可以 root 我的 Micromax Canavas HD。我的开发环境是 Ubuntu 12.04 LTE 64 位,支持 32 架构的库。我还将 80-persistent-usb.rules 文件更改为:
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x10ec:/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0 (r8169)
SUBSYSTEM=="usb", ACTION=="add", SYSFS{idVendor}=="0bb4", SYSFS{idProduct}=="*", MODE="0777"
我的供应商反映了 Micromax 标识(更改了供应商部分SYSFS{idVendor}=="0bb4"
)。但是,当我通过发出以下命令运行该工具时:
./FlashTool
我收到以下消息:
Not running as root but Sony/SonyEriccson Vendor ID found on your udev rules
if Flashing didn't work well, run flashtool as root
JAVA_HOME not set. Using default value : ./x10flasher_lib/linjre64
Flash 工具 GUI 打开后会列出各种 Sony Xperia 手机。您知道我可能哪里出错了吗?为什么我的特定设备无法打开?
编辑:我尝试设置JAVA_HOME 就像这里讨论的那样
结果:
Johndoe@pc-dev-a147:~/Downloads/Softwares/FlashTool$ echo $JAVA_HOME
/usr/lib/jvm/java-1.5.0-sun
Johndoe@pc-dev-a147:~/Downloads/Softwares/FlashTool$ sudo su
[sudo] password for Johndoe:
root@pc-dev-a147:/home/Johndoe/Downloads/Softwares/FlashTool# ./FlashTool
Running as root.
#
[thread 140425866192640 also had an error]
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fb7221a8a70, pid=3958, tid=140424834840320
#
# JRE version: 6.0_27-b27
# Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea6 1.12.6
# Distribution: Ubuntu 12.04 LTS, package 6b27-1.12.6-1ubuntu0.12.04.4
# Problematic frame:
# C [libdbus-1.so.3+0x1da70][thread 140424832734976 also had an error]
# [ timer expired, abort... ]
Aborted (core dumped)
FLashTool 启动了,但是我仍然得到索尼型号。