How To Downgrade form 2.3 to 2.2 - HTC Inspire 4G

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]

Related

Desire HD issues

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!

[Q] MYtouch 4G need help downgrading

I have been trying to downgrade my android 2.3.4 Mytouch 4g
using the following guide:\
http://forum.xda-developers.com/showthread.php?t=1178912
but i get an message sayin misc version permission denied.
Here is my command prompt:
C:\android-sdk\platform-tools>adb shell cat /dev/msm_rotator
/dev/msm_rotator: invalid length
C:\android-sdk\platform-tools>adb push fre3vo /data/local/tmp
push: fre3vo/__MACOSX/._fre3vo -> /data/local/tmp/__MACOSX/._fre3vo
push: fre3vo/fre3vo -> /data/local/tmp/fre3vo
2 files pushed. 0 files skipped.
305 KB/s (10025 bytes in 0.032s)
C:\android-sdk\platform-tools>adb shell
$ chmod 777 /data/local/tmp/fre3vo
chmod 777 /data/local/tmp/fre3vo
$ /data/local/tmp/fre3vo -debug -start FAA90000 -end FFFFFFFF
/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: 800
bits_per_pixel: 32
activate: 16
height: 80
width: 48
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...
Scanning region fb3f0000...
Scanning region fb4e0000...
Scanning region fb5d0000...
Scanning region fb6c0000...
Scanning region fb7b0000...
Scanning region fb8a0000...
Scanning region fb990000...
Scanning region fba80000...
Scanning region fbb70000...
Potential exploit area found at address fbb80e00:200.
Exploiting device...
C:\android-sdk\platform-tools>adb shell
# exit
exit
C:\android-sdk\platform-tools>adb push misc_version /data/local/tmp/misc_version
push: misc_version/misc_version_01/misc_version.c -> /data/local/tmp/misc_versio
n/misc_version_01/misc_version.c
push: misc_version/misc_version_01/misc_version -> /data/local/tmp/misc_version/
misc_version_01/misc_version
push: misc_version/misc_version_01/gopt.h -> /data/local/tmp/misc_version/misc_v
ersion_01/gopt.h
push: misc_version/misc_version_01/gopt.c -> /data/local/tmp/misc_version/misc_v
ersion_01/gopt.c
push: misc_version/misc_version.c -> /data/local/tmp/misc_version/misc_version.c
push: misc_version/misc_version -> /data/local/tmp/misc_version/misc_version
push: misc_version/gopt.h -> /data/local/tmp/misc_version/gopt.h
push: misc_version/gopt.c -> /data/local/tmp/misc_version/gopt.c
8 files pushed. 0 files skipped.
420 KB/s (62798 bytes in 0.146s)
C:\android-sdk\platform-tools>adb push flashgc /data/local/tmp/flashgc
push: flashgc/flashgc -> /data/local/tmp/flashgc/flashgc
1 file pushed. 0 files skipped.
1965 KB/s (712688 bytes in 0.354s)
C:\android-sdk\platform-tools>adb shell chmod 777 /data/local/tmp/*
C:\android-sdk\platform-tools>adb shell
# cd /data/local/tmp
cd /data/local/tmp
# ./misc_version -s 1.00.000.0
./misc_version -s 1.00.000.0
./misc_version: permission denied
#
please help i have followed all the steps but i get the same message, i even tried resetting the phone and trying again.

ADB shell - how to make output wider?

Hello, I decided that I will analyse running processes and figure out why is my battery not lasting more then half a day usually. For that I figured maybe running
adb shell top
will work. I could send this to a file and later make some analysis of the results. The problem is that it looks like this
Code:
800%cpu 10%user 0%nice 17%sys 772%idle 1%iow 0%irq 0%sirq 0%host
←[7m PID USER PR NI VIRT RES SHR S[%CPU] %MEM TIME+ ARGS ←[0m
28364 system 20 0 2.2G 83M 61M S 15.3 2.4 1:08.09 com.samsung.and+
31155 u0_a193 20 0 2.1G 69M 40M S 4.6 2.0 6:00.62 com.facebook.or+
30834 shell 20 0 11M 4.3M 3.3M R 2.3 0.1 0:00.85 top
3246 system 12 -8 1.6G 14M 11M S 2.3 0.4 249:18.01 surfaceflinger
26367 system 10 -10 2.7G 106M 89M S 1.3 3.0 1:14.78 com.samsung.and+
22515 root 20 0 0 0 0 S 1.3 0.0 0:03.16 [kworker/u16:4]
3825 system 10 -10 3.4G 182M 81M S 1.0 5.2 572:07.02 system_server
971 root 20 0 0 0 0 S 1.0 0.0 151:39.30 [kswapd0]
29785 u0_a209 20 0 1.7G 67M 52M S 0.3 1.9 0:03.20 com.microsoft.o+
21383 root 0 -20 0 0 0 S 0.3 0.0 0:00.84 [kworker/1:0H]
20039 u0_a213 20 0 2.9G 56M 47M S 0.3 1.6 9:15.59 com.digibites.a+
3132 logd 30 10 31M 13M 836K S 0.3 0.3 25:29.47 logd
679 root 20 0 0 0 0 S 0.3 0.0 5:34.54 [kcompactd0]
13 root RT 0 0 0 0 S 0.3 0.0 2:00.01 [migration/1]
30749 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 [kworker/u17:2]
30699 u0_a379 20 0 2.2G 98M 82M S 0.0 2.8 0:00.95 org.androworks.+
30670 advmodem 20 0 2.2G 74M 65M S 0.0 2.1 0:00.33 com.samsung.and+
30661 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 [kworker/0:0H]
30652 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 [kworker/7:2H]
30651 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 [kworker/5:0H]
the process names are cut. Is there a way to make top command write wider columns? Linux top knows -w but adb top does not.
Seems like running -b makes it wide enough but it shows all processes and not just the top few which would be enough.
I can see that it's also formatted wrong and the column headers don't match the values below. Jeez...

How to translate device screen position to sendevent position?

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

Use adb shell on device, top command not work

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....

Categories

Resources