Hello,
I'm trying to root my Gigabyte GSmart G1305 upgraded to Android 2.1 but the software fails. I'm including the error log below, thank you very much for your help:
Go for root !
Version: Universal Androot - v1.6.2 beta 5
Detected OS version:7
ls -l /system/etc
-rw-r--r-- root root 3216 2010-09-07 16:41 init.qcom.bt.sh
drwxr-xr-x root root 2010-09-07 16:41 dhcpcd
-rw-r--r-- root root 1471 2010-09-07 16:41 apns-conf.xml
-rw-r--r-- root root 85 2010-09-07 16:41 01_qcomm_omx.cfg
-rw-r--r-- root root 227 2010-09-07 16:41 ms3c_charger_offset.cfg
-rw-r--r-- root root 56860 2010-09-07 16:41 NOTICE.html.gz
-rw-r--r-- root root 784 2010-09-07 16:41 gps.conf
-rw-r--r-- root root 1170 2010-09-07 16:41 vold.conf
-rw-r--r-- root root 8319 2010-09-07 16:41 event-log-tags
drwxr-xr-x root root 2010-09-07 16:41 permissions
-rw-r--r-- root root 2132 2010-09-07 16:41 init.qcom.fm.sh
-rw-r--r-- root root 25 2010-09-07 16:41 hosts
drwxr-xr-x root root 2010-09-07 16:41 ppp
-rw-r--r-- root root 473 2010-09-07 16:41 pvplayer.cfg
-rw-r--r-- root root 4915 2010-09-07 16:41 AudioFilter.csv
-r-xr-x--- root root 111 2010-09-07 16:41 init.athwlan.sh
-rw-r--r-- root root 2046 2010-09-07 16:41 bookmarks.xml
drwxr-xr-x root root 2010-09-07 16:41 wifi
-r--r----- bluetooth bluetooth 935 2010-09-07 16:41 dbus.conf
drwxr-xr-x root root 2010-09-07 16:41 security
drwxr-xr-x root root 2010-09-07 16:41 firmware
-rw-r--r-- root root 2 2010-09-07 16:41 AutoVolumeControl.txt
-r-xr-x--- root shell 1176 2010-09-07 16:41 init.goldfish.sh
-rw-r--r-- root root 3025 2010-09-07 16:41 udhcpd.conf
-r-xr-x--- wifi wifi 2137 2010-09-07 16:41 init.qcom.sdio.sh
-rw-r--r-- root root 1804 2010-09-07 16:41 loc_parameter.ini
drwxr-xr-x root root 2010-09-07 16:41 bluez
-rw-rw-rw- root root 123 2010-09-07 16:41 ms3c_transformation.cfg
ls -l /system/bin/reboot
lrwxr-xr-x root shell 2010-09-07 16:41 reboot -> toolbox
cat /proc/sys/kernel/osrelease
2.6.29
getprop ro.product.model
Boston
getprop ro.product.brand
Optimus
getprop ro.product.name
Boston
getprop ro.product.manufacturer
FIH
getprop ro.build.product
Boston
ls -l /sqlite_stmt_journals
ls -l /data/local/tmp
opendir failed, Permission denied
ls -l /app-cache
/app-cache: No such file or directory
run mount
rootfs / rootfs rw 0 0
tmpfs /dev tmpfs rw,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
/dev/block/mtdblock7 /system yaffs2 rw 0 0
/dev/block/mtdblock10 /data yaffs2 rw,nosuid,nodev 0 0
tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0
/dev/block/mtdblock9 /cache yaffs2 rw,nosuid,nodev 0 0
/dev/block/mtdblock5 /hidden yaffs2 rw,nosuid,nodev 0 0
/dev/block/mtdblock1 /misc yaffs2 rw,nosuid,nodev 0 0
/dev/block/mtdblock8 /misc2 yaffs2 rw,nosuid,nodev 0 0
DxDrmServerIpc /data/DxDrm/fuse fuse.DxDrmServerIpc rw,nosuid,nodev,user_id=0,group_id=0,allow_other 0 0
/dev/block//vold/179:1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8 0 0
run df
/dev: 91564K total, 12K used, 91552K available (block size 4096)
/system: 163840K total, 146352K used, 17488K available (block size 4096)
/data: 175616K total, 87596K used, 88020K available (block size 4096)
/sqlite_stmt_journals: 4096K total, 0K used, 4096K available (block size 4096)
/cache: 90112K total, 1208K used, 88904K available (block size 4096)
/hidden: 26624K total, 11380K used, 15244K available (block size 4096)
/misc: 2048K total, 1176K used, 872K available (block size 4096)
/misc2: 2048K total, 1172K used, 876K available (block size 4096)
/sdcard: 1928992K total, 404064K used, 1524928K available (block size 32768)
/data/DxDrm/fuse: Permission denied
Preparing Exploit ... :true
Preparing busybox binary ... :true
User selected: Eclair
Preparing Su binary ... :true
Preparing Superuser apk ... :true, resid:2131034118
Preparing root toolkit script ... :true
Trying to get mount point:/data
/dev/block/mtdblock10 /data yaffs2 rw,nosuid,nodev 0 0
Trying to get mount point:/system
/dev/block/mtdblock7 /system yaffs2 rw 0 0
Trying to get mount point:/system/bin
mkdir /sqlite_stmt_journals/sys_bin_orig
mkdir /sqlite_stmt_journals/sys_bin_overlay
./busybox mount -r /dev/block/mtdblock7 /sqlite_stmt_journals/sys_bin_orig
./busybox ln -s /sqlite_stmt_journals/sys_bin_orig/bin/* /sqlite_stmt_journals/sys_bin_overlay/
cat su > /sqlite_stmt_journals/sys_bin_overlay/su
chmod 04755 /sqlite_stmt_journals/sys_bin_overlay/su
./busybox mount --bind /sqlite_stmt_journals/sys_bin_overlay /system/bin
mount -o remount,rw,nosuid,nodev -t yaffs2 /dev/block/mtdblock10 /data
./busybox umount /system/bin
rm /sqlite_stmt_journals/sys_bin_overlay/*
rmdir /sqlite_stmt_journals/sys_bin_overlay
Preparing to execute exploit, do chmod
Executing exploit..
cmd: /data/data/com.corner23.android.universalandroot/files/getroot /dev/block/mtdblock10 yaffs2
[*] Android local root exploid (C) The Android Exploid Crew
[*] Modified by shakalaca for various devices
[+] Using basedir=/sqlite_stmt_journals, path=/data/data/com.corner23.android.universalandroot/files/getroot
[+] opening NETLINK_KOBJECT_UEVENT socket
[+] sending add message ...
[*] Try to invoke hotplug now, clicking at the wireless
[*] settings, plugin USB key etc.
[*] You succeeded if you find /system/bin/rootshell.
[*] GUI might hang/restart meanwhile so be patient.
Wifi enabled ...
/sqlite_stmt_journals/rootshell missing ..
/app-cache/rootshell missing ..
/data/local/tmp/rootshell missing ..
Install/Uninstall rootkit: false
ls -l /sqlite_stmt_journals
lrwxrwxrwx app_79 app_79 2010-11-08 10:59 data -> /proc/sys/kernel/hotplug
-rw-r--r-- app_79 app_79 6 2010-11-08 10:59 fs_type
-rw-r--r-- app_79 app_79 21 2010-11-08 10:59 mount
-rw-r--r-- app_79 app_79 62 2010-11-08 10:59 hotplug
-rw-rw-rw- app_79 app_79 0 2010-11-08 10:59 loading
ls -l /data/local/tmp
opendir failed, Permission denied
ls -l /app-cache
/app-cache: No such file or directory
run mount
rootfs / rootfs rw 0 0
tmpfs /dev tmpfs rw,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
/dev/block/mtdblock7 /system yaffs2 rw 0 0
/dev/block/mtdblock10 /data yaffs2 rw,nosuid,nodev 0 0
tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0
/dev/block/mtdblock9 /cache yaffs2 rw,nosuid,nodev 0 0
/dev/block/mtdblock5 /hidden yaffs2 rw,nosuid,nodev 0 0
/dev/block/mtdblock1 /misc yaffs2 rw,nosuid,nodev 0 0
/dev/block/mtdblock8 /misc2 yaffs2 rw,nosuid,nodev 0 0
DxDrmServerIpc /data/DxDrm/fuse fuse.DxDrmServerIpc rw,nosuid,nodev,user_id=0,group_id=0,allow_other 0 0
/dev/block//vold/179:1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8 0 0
run df
/dev: 91564K total, 12K used, 91552K available (block size 4096)
/system: 163840K total, 146352K used, 17488K available (block size 4096)
/data: 175616K total, 88972K used, 86644K available (block size 4096)
/sqlite_stmt_journals: 4096K total, 12K used, 4084K available (block size 4096)
/cache: 90112K total, 1208K used, 88904K available (block size 4096)
/hidden: 26624K total, 11380K used, 15244K available (block size 4096)
/misc: 2048K total, 1176K used, 872K available (block size 4096)
/misc2: 2048K total, 1164K used, 884K available (block size 4096)
/sdcard: 1928992K total, 404064K used, 1524928K available (block size 32768)
/data/DxDrm/fuse: Permission denied
Click to expand...
Click to collapse
This post is just to inform that the procedure in [GUIDE] Downgrade G2 (2.3.3) & DZ (2.3.3) & mT4g (2.3.4) w/ S-ON to Stock Froyo works too for Inspire 4G with S-ON and Android 2.3.
Here's my log:
Code:
[B]C:\Program Files\Android\android-sdk-windows\platform-tools>adb shell cat /dev/msm_rotator[/B]
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
/dev/msm_rotator: invalid length
[B]
C:\Program Files\Android\android-sdk-windows\platform-tools>adb push fre3vo /data/local/tmp[/B]
212 KB/s (9796 bytes in 0.045s)
[B]C:\Program Files\Android\android-sdk-windows\platform-tools>adb shell[/B]
[B]$ chmod 777 /data/local/tmp/fre3vo[/B]
chmod 777 /data/local/tmp/fre3vo
[B]$ /data/local/tmp/fre3vo -debug -start FAA90000 -end FFFFFFFF[/B]
/data/local/tmp/fre3vo -debug -start FAA90000 -end FFFFFFFF
fre3vo by #teamwin
Please wait...
Attempting to modify ro.secure property...
fb_fix_screeninfo:
id: msmfb
smem_start: 802160640
smem_len: 3145728
type: 0
type_aux: 0
visual: 2
xpanstep: 0
ypanstep: 1
line_length: 1920
mmio_start: 0
accel: 0
fb_var_screeninfo:
xres: 480
yres: 800
xres_virtual: 480
yres_virtual: 1600
xoffset: 0
yoffset: 0
bits_per_pixel: 32
activate: 16
height: 106
width: 62
rotate: 0
grayscale: 0
nonstd: 0
accel_flags: 0
pixclock: 0
left_margin: 0
right_margin: 0
upper_margin: 0
lower_margin: 0
hsync_len: 0
vsync_len: 0
sync: 0
vmode: 0
Buffer offset: 00000000
Buffer size: 8192
Scanning region faa90000...
Scanning region fab80000...
Scanning region fac70000...
Scanning region fad60000...
Scanning region fae50000...
Scanning region faf40000...
Scanning region fb030000...
Scanning region fb120000...
Scanning region fb210000...
Scanning region fb300000...
Potential exploit area found at address fb30d200:e00.
Exploiting device...
[B]C:\Program Files\Android\android-sdk-windows\platform-tools>adb shell[/B]
# [B]exit[/B]
exit
----
[B]C:\Program Files\Android\android-sdk-windows\platform-tools>adb push misc_version /data/local/tmp/misc_version[/B]
303 KB/s (15837 bytes in 0.051s)
[B]C:\Program Files\Android\android-sdk-windows\platform-tools>adb shell chmod 777 /data/local/tmp/misc_version[/B]
[B]C:\Program Files\Android\android-sdk-windows\platform-tools>adb shell[/B]
# [B]/data/local/tmp/misc_version -s 1.00.000.0[/B]
/data/local/tmp/misc_version -s 1.00.000.0
--set_version set. VERSION will be changed to: 1.00.000.0
Patching and backing up partition 17...
# [B]sync[/B]
sync
# [B]dd if=/dev/block/mmcblk0p17 bs=1 skip=160 count=10[/B]
dd if=/dev/block/mmcblk0p17 bs=1 skip=160 count=10
1.00.000.010+0 records in
10+0 records out
10 bytes transferred in 0.002 secs (5000 bytes/sec)
# [B]exit[/B]
exit
[B]C:\Program Files\Android\android-sdk-windows\platform-tools>adb push PD98IMG.zip /sdcard/PD98IMG.zip[/B]
[B]1638 KB/s (274812440 bytes in 163.823s)
C:\Program Files\Android\android-sdk-windows\platform-tools>adb reboot bootloader[/B]
[B]C:\Program Files\Android\android-sdk-windows\platform-tools>[/B]
The phone is an HTC Desire HD, Ginger.
I have tried downgrading the A version, following this tutorial:
http://forum.xda-developers.com/showthread.php?t=905003
but I cant get the # sign, meaning that I have root access.
This is what I get in cmd :
C:\FlashHD\Downgrade>adb push
1189 KB/s (15837 bytes in 0.0
C:\FlashHD\Downgrade>adb push
869 KB/s (9796 bytes in 0.011
C:\FlashHD\Downgrade>adb shel
C:\FlashHD\Downgrade>adb shel
C:\FlashHD\Downgrade>adb shel
$ ./data/local/tmp/fre3vo -de
./data/local/tmp/fre3vo -debu
fre3vo by #teamwin
Please wait...
Attempting to modify ro.secur
fb_fix_screeninfo:
id: msmfb
smem_start: 802160640
smem_len: 3145728
type: 0
type_aux: 0
visual: 2
xpanstep: 0
ypanstep: 1
line_length: 1920
mmio_start: 0
accel: 0
fb_var_screeninfo:
xres: 480
yres: 800
xres_virtual: 480
yres_virtual: 1600
xoffset: 0
yoffset: 0
bits_per_pixel: 32
activate: 16
height: 106
width: 62
rotate: 0
grayscale: 0
nonstd: 0
accel_flags: 0
pixclock: 0
left_margin: 0
right_margin: 0
upper_margin: 0
lower_margin: 0
hsync_len: 0
vsync_len: 0
sync: 0
vmode: 0
Buffer offset: 00000000
Buffer size: 8192
Does anyone have any idea why this happens? The phone has been unlocked (I dont know how because I took it to a store for that). I bought it in Japan (Softbank).
Or if you can not help, can you please copy paste this question into that thread? I do not have enough posts to do it and I dont want to post randomly to gather enough posts for that.
Thank you!
I know about the input tap x y shell command, however, I'm trying to understand how to
perform a click using the sendevent command. I have been able to achieve it with the following command:
Code:
sendevent /dev/input/event5 3 53 X &&
sendevent /dev/input/event5 3 54 Y &&
sendevent /dev/input/event5 0 2 0 &&
sendevent /dev/input/event5 0 0 0 &&
sendevent /dev/input/event5 0 2 0 &&
sendevent /dev/input/event5 0 0 0
Where `X` and `Y` is the position that will be clicked, I'm testing it on the android emulator `BlueStacks 5` which the Display Resolution set to `1920x1080`.
The code is working and the click is fired, however, I couldn't understand how to convert the position where I want to be clicked to the sendevent XY position.
If I send using ADB:
Code:
sendevent /dev/input/event5 3 53 2000 &&
sendevent /dev/input/event5 3 54 2000 &&
sendevent /dev/input/event5 0 2 0 &&
sendevent /dev/input/event5 0 0 0 &&
sendevent /dev/input/event5 0 2 0 &&
sendevent /dev/input/event5 0 0 0
It clicks somewhere around x75 y75, how is this calc done? i mean screen xy -> sendevent xy?
--------------------
How to replicate:
--------------------
* First enable BlueStacks 5 adb in the window: Settings -> Advanced -> Android debug bridge
* Open a cmd window and run cd C:\Program Files\BlueStacks_nxt assuming BlueStacks where installed in the default path.
Execute the commands:
* hd-adb.exe connect 127.0.0.1:X where X is the port shown in the window where you enabled the ADB.
* hd-adb.exe -s 127.0.0.1:X shell
Now we are on the shell, execute a new command: getevent -p
and search for:
Code:
... /dev/input/event5
name: "BlueStacks Virtual Touch"
On my emulator the input event for touch is `event5` on yours it can be different, replace it according.
Now you can simulate a click with the code below changing `XY` to the position where you want to be clicked:
Code:
sendevent /dev/input/event5 3 53 X &&
sendevent /dev/input/event5 3 54 Y &&
sendevent /dev/input/event5 0 2 0 &&
sendevent /dev/input/event5 0 0 0 &&
sendevent /dev/input/event5 0 2 0 &&
sendevent /dev/input/event5 0 0 0
I'm trying to figure out how to convert the emulator screen position to the sendevent position.
For example, if you want to perform a click at `x200 y200`, using sendevent what is the value needed?
How to calculate it?
Note: cross-post StackOverflow.
Bump
Hello
I need to get the cpu usage from my device (Lenovo Tab M8, Android os) and send it via http-request to my server.
I test it with my smartphone.
I found the app macrodroid, which can automatically send data via http-reuest. So the first step is done.
After a long searching i found the "adb shell" app. So i can test my shell command. So the second step is done
I want to use the command "top -n 1" because my devices are not rooted and i got alway "permission denied" with other commands.
The top command show a output.
THERE IS THE PROBLEM:
if i use the top command on my smarthpohne, i don't got a correct output. The %idle is always same like %cpu
if i connect my phone to my pc and run it in the windows command, it shows the correct data.
for example:
the output on the phone:
Code:
[s[999C[999B[6n[u[H[J[?25l[H[J[s[999C[999B[6n[uTasks: 2 total, 1 running, 1 sleeping, 0 stopped, 0 zombie Mem: 3.5G total, 3.4G used, 129M free, 39M buffers Swap: 2.0G total, 1.6G used, 396M free, 1.1G cached800%cpu 0%user 0%nice 0%sys 800%idle 0%iow 0%irq 0%sirq 0%host[7m PID USER PR NI VIRT RES SHR S[%CPU] %MEM TIME+ ARGS [0m[1m 7831 u0_a357 10 -10 36M 3.7M 3.0M R 4.0 0.1 0:00.00 top -n 1[m 7717 u0_a357 10 -10 33M 2.9M 2.4M S 0.0 0.0 0:00.01 sh[?25h[0m[1000;1H[K[?25h[?25h[0m[1000;1H[K
output on the pc:
Code:
Mem: 3.5G total, 3.4G used, 93M free, 40M buffers
Swap: 2.0G total, 1.6G used, 380M free, 1.0G cached
800%cpu 82%user 0%nice 124%sys 594%idle 0%iow 0%irq 0%sirq 0%host
←[7m PID USER PR NI VIRT RES SHR S[%CPU] %MEM TIME+ ARGS ←[0m
2305 u0_a357 10 -10 25G 258M 164M S 64.7 7.1 23:29.96 com.arlosoft.ma+
517 system 5 -15 1.7G 20M 14M S 44.1 0.5 207:08.58 surfaceflinger
←[mm 7844 shell 20 0 36M 4.3M 3.3M R 23.5 0.1 0:00.10 top -n 1
983 system 18 -2 12G 273M 130M S 17.6 7.5 595:30.94 system_server
←[mm 276 root RT 0 0 0 0 R 17.6 0.0 53:19.28 [decon0]
7843 root 20 0 0 0 0 S 11.7 0.0 0:00.20 [kworker/0:1]
488 system -3 -15 506M 4.3M 3.6M S 11.7 0.1 45:01.04 android.hardwar+
7385 root 0 -20 0 0 0 S 8.8 0.0 0:02.53 [kworker/u17:3]
7807 root 20 0 0 0 0 S 2.9 0.0 0:00.90 [kworker/3:2]
7542 root 20 0 0 0 0 S 2.9 0.0 0:00.00 [kworker/4:0]
2291 root 20 0 0 0 0 S 2.9 0.0 0:02.05 [kworker/u16:2]
2188 root 20 0 0 0 0 S 2.9 0.0 0:02.93 [kworker/u16:0]
7088 u0_a237 10 -10 7.4G 159M 75M S 2.9 4.3 95:05.07 com.samsung.and+
1365 radio 20 0 5.7G 43M 30M S 2.9 1.2 40:36.23 com.android.pho+
496 wifi 20 0 63M 2.8M 2.6M S 2.9 0.0 6:31.76 android.hardwar+
7757 u0_a239 20 0 4.9G 93M 79M S 0.0 2.5 0:00.32 com.samsung.and+
7745 u0_a62 20 0 4.9G 88M 74M S 0.0 2.4 0:00.17 com.sec.android+
7717 u0_a357 10 -10 33M 2.9M 2.4M S 0.0 0.0 0:00.01 sh
7628 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 [kbase_event]
←[?25h←[0m←[1000;1H←[K←[?25h←[?25h←[0m←[1000;1H←[Kstarlte:/ $ 0
how can i get this output on my device???
is it so difficult or is my question not good?
:-( i think there is no solution....