[TOOL][SCRIPT]*** Easy ADB solution for screenshots in recovery HTC ONE X ***

EVOuser94

Senior Member
Aug 6, 2012
1,404
665
0
Bloomsdale
Well honestly no idea. Only thing i can come up with is that you are using stuff posted in one x section on your EVO 4G LTE :p

But i think it needs different parameters inside fb2png :(
Jotha is kinda facing the same on HTC One. Scrambled shots.
But i will try to dig into it, problem is there is not much information on who wrote fb2png so can be difficult to gather more settings/parameters etc.

Sent from my HTC One X using xda premium
Oh I see I thought you wrote it my bad :) I know its one x stuff but I wouldn't see why it wouldn't work on this its basically the same phone ..

Sent from my EVO using xda premium
 

Patrics83

Inactive Recognized Developer
Feb 19, 2010
5,620
8,223
0
Gothenburg
Well honestly no idea. Only thing i can come up with is that you are using stuff posted in one x section on your EVO 4G LTE :p

But i think it needs different parameters inside fb2png :(
Jotha is kinda facing the same on HTC One. Scrambled shots.
But i will try to dig into it, problem is there is not much information on who wrote fb2png so can be difficult to gather more settings/parameters etc.

Sent from my HTC One X using xda premium
Maybe this will help... :)

HTC changed color formats (now RGBX 8888 instead of RGB 565).

fb2png-source-img_process.h


Now go and get a few cold beers and forget about what I just said... :D
 

EVOuser94

Senior Member
Aug 6, 2012
1,404
665
0
Bloomsdale
still the same outcome, and the only way i'm getting it to even snapshot a picture is if I also am including
Code:
adb shell mount /system
to the equation...Everything is all in place it's just not getting the correct sequence for a visual capture?

Code:
********************************************
*                                          *
*      ADB-Screenshot Util                 *
*      Boot into Recovery                  *
*      Plug In USB Cable                   *
*      Enjoy ;)                            *
*                                          *
********************************************

Press any key to continue . . .
shell mount /data
Mounting /data Done!
shell mount /system
mount: mounting /dev/block/mmcblk0p35 on /system failed: Device or resource busy

Mounting /system Done!
.
push fb2png /data/local/
3438 KB/s (54924 bytes in 0.015s)
Pushing fb2png to /data/local Done!
.
shell chmod 755 /data/local/fb2png
Setting permissions on fb2png Done!
.
shell /data/local/fb2png /data/local/fbdump.png
         bpp : 32
        size : 3686400
       width : 720
      height : 1280
 ARGB offset : 0 24 16 8
 ARGB length : 8 8 8 8
Framebuffer Pixel Format: 4
Saved image to /data/local/fbdump.png
Taking Screenshot by running fb2png Done!
.
pull /data/local/fbdump.png
2816 KB/s (314978 bytes in 0.109s)
Pulling fbdump.png into adb folder Done!
.
********************************************
*                                          *
* You will find screenshot in adb folder   *
* named as fbdump.png                      *
*                                          *
********************************************

Press any key to continue . . .
 
Last edited:
  • Like
Reactions: Whiskey103

EVOuser94

Senior Member
Aug 6, 2012
1,404
665
0
Bloomsdale
Crap, everybody but me gets an article on the portal nowadays...
Wait, I'm no dev, could it be the reason? ;)

Congrats Mr W., you did great once again.
I am also not a dev and not on the portal :) hmm. Whiskey any conclusion to what I have to do to get this working on the ELTE

Sent from my EVO using xda premium
 

Rishik999

Senior Member
Aug 12, 2012
368
765
133
24
Hello bro..Tried it on Htc Explorer..sadly it doesn't work :/
It creates a png but when i try to open it it says invalid image :(

Any help?
Thanks !
 

Whiskey103

Senior Moderator / Member Advocate Admin / DC / RT
Staff member
Jun 6, 2009
10,009
20,429
263
43
Tell me, I’m lost . . .
www.whiskey103.nl
Hello bro..Tried it on Htc Explorer..sadly it doesn't work :/
It creates a png but when i try to open it it says invalid image :(

Any help?
Thanks !
Yea, as stated above.... Seems not working on all devices yet.
Still looking into it, you tried the alternative version few posts up?
Can you upload the png you got?


Sent from my HTC One X using xda premium
 

Rishik999

Senior Member
Aug 12, 2012
368
765
133
24
Yea, as stated above.... Seems not working on all devices yet.
Still looking into it, you tried the alternative version few posts up?
Can you upload the png you got?


Sent from my HTC One X using xda premium
Ah bro deleted the screenshot ..Ah,It just says invalid image bro ..nothing else :rolleyes:
Ill,try soon to get the image,but i think its of no use!
bdw, @vineethraj49 got the fix too for it !
cheers! :laugh:
 

Rishik999

Senior Member
Aug 12, 2012
368
765
133
24
Err, what do you mean?

Sent from my HTC One X using xda premium
He told me to direct to your screenshot folder on cmd
type these command,voila it works!

Code:
adb shell
mount /data
exit
adb push fb2png /data/local
adb shell
chmod 755 /data/local/fb2png
/data/local/fb2png /data/local/fbdump.png
exit
adb pull /data/local/fbdump.png
 

Whiskey103

Senior Moderator / Member Advocate Admin / DC / RT
Staff member
Jun 6, 2009
10,009
20,429
263
43
Tell me, I’m lost . . .
www.whiskey103.nl
He told me to direct to your screenshot folder on cmd
type these command,voila it works!

Code:
adb shell
mount /data
exit
adb push fb2png /data/local
adb shell
chmod 755 /data/local/fb2png
/data/local/fb2png /data/local/fbdump.png
exit
adb pull /data/local/fbdump.png
Well, I still have no idea what you mean. Sry.
Coz if you download the screenshot.rar and extract it and run the screenshot_run_me.bat it should have the same outcome.
As it does the same as your manual commands actually.

Sent from my HTC One X using xda premium
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone