change splash.img for qualcom use android - Android General

hi everyone :fingers-crossed:
This is TUTORIAL
and its my first post on xda,
original post with PC @GokulNC https://forum.xda-developers.com/member.php?u=6319272
with android by rivv (especially for xiaomi)
req :
1.android cmd shell (term emu or etc, :good: play store)
2.file https://m.facebook.com/groups/45000...t_reply&notif_id=1503036517686899&ref=m_notif (download all given link there, include busybox for support cmd and the splash maker)
cause the file in Indonesian languange so I'll translate it
instructions :
1.flash the busybox file using recovery like twrp etc
2.open the flash file and extract lib folder, then copy onto lib folder on your system and copy splash folder to data.
Note : in splash folDer just need copy the header file (this still for xiaomi 2/3) for universal u need edit splash file on lib folder and custom header.img.
Like me cause I'm using ZTE a711 so I must edit splash file like that :
if [ -f splash.png ]; then, into if [ -f /data/pics/logo.PNG ]
if [ -f header.img ]; then, into if [ -f 1080x1920_header.img ]
like I'm say different dir and header IMG u need unpack bfore
then delete this line (optional) :
ffmpeg -i splash2.png -f rawvideo -vcodec rawvideo -pix_fmt bgr24 splash2.raw > /dev/null 2>&1
change header with 1080x1920_header.img and del sec header and splash2.raw (opt) :
cat header.img splash.raw header.img splash2.raw > splash.img
3.open cmd and type :
su
splash
the options : 1. for make custom splash
2. install custom splash
3. backup installed splash
4. restore backupped splash
5 exit cmd
Done
Thank for GokulNC for give my splash directory:laugh:

fix post
cause xda disallowed new member to post external link so im edited this one the link still same i given before
msxn said:
hi everyone :fingers-crossed:
and its my first post on xda,
NOTE :
this universal but frist u must know where dir and what header u using on your splash.img DWYOR
original post with PC @GokulNC
with android by rivv (especially for xiaomi)
req :
1.android cmd shell (term emu or etc, :good: play store)
2.file : url on my post and your file (custom header)
3.custom image for replace
cause the file in Indonesian languange so I'll translate it
instructions :
1.flash the busybox file using recovery like twrp etc
2.open the flash file and extract lib folder, then copy onto lib folder on your system and copy splash folder to data.
Note : in splash folDer just need copy the header file (this still for xiaomi 2/3) for universal u need edit splash file on lib folder and download custom header.img.
Like me cause I'm using ZTE a711 so I must edit splash file like that :
Cuz my spash using 1080x1920_header.img and the location of my image using pics/logo.png so
if [ -f splash.png ]; then, into if [ -f /data/pics/logo.PNG ]
if [ -f header.img ]; then, into if [ -f 1080x1920_header.img ]
like I'm say different dir and header IMG u need unpack bfore​
then delete this line (optional) :
ffmpeg -i splash2.png -f rawvideo -vcodec rawvideo -pix_fmt bgr24 splash2.raw > /dev/null 2>&1​
change header with 1080x1920_header.img and del second header and splash2.raw (opt) :
cat header.img splash.raw header.img splash2.raw > splash.img​ to
cat 1080x1920_header.img splash.raw > splash.img​
3.replace image with your custom : default (splash.png) to data/splash this for xiaomi find it self your own dir
4.open cmd and type :
su
splash
the options :1. for make custom splash
2. install custom splash
3. backup installed splash
4. restore backupped splash
5 exit cmd​
Done
Thank for GokulNC for give my splash directory
Click to expand...
Click to collapse
if you see this useful please hit tanks or comment bellow

Ask
Link bahannya pas di buka ga ada apa2 cuman grup redmi note indonesia doang gmna dong?

Related

[TOOL] [Linux / OSX] elegos Splash Screen creator / flasher

I am simply reposting this from the mytouch thread by elegos, who is the creator of this script, I take no credit for this whatsoever.
Hello there!
This is a G1 / Magic tool to easily convert images in splash screen ones.
This tool is based upon ffmpeg and you need it installed on your system before proceeding (it will prompt you about the program missing in any case)
REQUIREMENTS
ffmpeg installed on your system
Code:
$ sudo apt-get install ffmpeg
a 320x480 image
a 320x480 device (i.e. G1 / Magic) with engineering SPL (S-OFF)
USAGE
Code:
./file [--help][-h]
Prints out how to use the script
Code:
./file your_image_file
Converts your image into a flashable splash screen, if you want the script will continue flashing the file directly.
NOTE: if you wish to make this script work with the Nexus One or any other device which doesn't share the same 320x480 resolution, just change these two variables:
Code:
size_check=307200
size_desc="320x480"
size_check is in bytes, size_desc is just a descriptive string.
I ASSUME NO RESPONSABILITY ABOUT THE USAGE OF THIS SCRIPT. USE IT "AS IS", LOOK AT THE OUTPUTS AND YOU'LL AVOID BRICKS!
Please, if you wish to redistribute this script, give the right credits and don't change the prog_header please (maybe link this discussion in a text file)!
Edit: I have added a already to use script for 320x480 devices only! Or you can make your own script using elegos's code. The script should already be marked as executable, if not then make executable:
http://www.mediafire.com/?wz83iff1eg3fv38
Usage for this script:
Code:
$ ./splash_creator fileimagename.whatever
Here the code is, just slap it in a text file, give it the executive permission (chmod +x filename) and use it!
Code:
#!/bin/bash
prog_header() {
echo "###############################"
echo "####### EleGoS's FFMPEG #######"
echo "# G1/Sapphire/MyTouch3G/Magic #"
echo "### Splash Screen converter ###"
echo "###############################"
echo "version 1.0"
echo ""
}
if [ "$1" == "--help" ] || [ "$1" == "-h" ]; then
prog_header
echo "Usage"
echo "$0 your_image_file"
exit 0
fi
warning() {
printf "\e[0;31m$1\e[0m \n"
}
check_ok() {
printf "\e[0;32m$1\e[0m \n"
}
ffmpeg_check=$(which ffmpeg)
size_check=307200
size_desc="320x480"
if [ "$ffmpeg_check" != "" ]; then
OUTPUT=$(echo "$1" | cut -d'.' -f1).raw565
clear
prog_header
ffmpeg -i $1 -f rawvideo -pix_fmt rgb565 $OUTPUT
clear
prog_header
FILESIZE=$(cat $OUTPUT | wc -c)
if [ $FILESIZE -eq $size_check ]; then
check_ok "$OUTPUT is ready to be flashed."
else
rm $OUTPUT
warning "$OUTPUT filesize mismatches! Wrong image size ($size_desc)? Aborted."
exit 0
fi
echo "In order to flash this image you have to plug your phone in fastboot mode."
read -p "Flash it now? (y/n) "
if [ "$REPLY" == "y" ] || [ "$REPLY" == "Y" ]; then
fastboot devices | grep -q "fastboot"
if [ $? -ne 0 ]; then
warning "The USB cable is not plugged, or the device is not in fastboot mode."
echo "To flash the splash screen, manually execute this command once in fastboot mode:"
echo "fastboot flash splash1 $OUTPUT"
exit 0
else
fastboot flash splash1 $OUTPUT
fi
else
echo "To flash the splash screen, execute this command once in fastboot mode:"
echo "fastboot flash splash1 $OUTPUT"
exit 0
fi
else
warning "ffmpeg not found! Please install it before running this script!\ni.e. (DEBIAN) apt-get install ffmpeg / (OSX) sudo port install ffmpeg"
fi
Edit:
elegos said:
- Open the terminal -> nano splash_creator
- copy / paste the code
- [CTRL]+O, then [ENTER]. [CTRL]+X
- chmod +x splash_creator
- Put the image you want as splash screen in a folder where the script is (it is actually in your home)
- Open terminal -> cd your/folder/here
- ./splash_creator your_image_here.whatever
Click to expand...
Click to collapse
Also feel free to post your splash screens here as well
Splash screens
So here's one that mjybarr made, and one I'm using right now, both very nice splash screens
Works like a dream! Thanks for providing this tut.

(TOOL) Haipai X710D MTK6577 Deodex+zipalign Tools + smooth scroll patched framework.j

MY Haipai x710D CUSTOM ROM is released , Worth check
Go to ROM Download Page
Hi all , I have bought haipai x710d for about a month and I found this phone is quite good , much faster than my one v. I have paid quite a lot of time in digging the potential of this phone. I would like to share my Effort with all guys who bought this phone...here is my first Tool for x710d
" The auto deodex and zipalign Tool "
Using this tool is quite simple... Just copy all files in \system\app\ (.apk + .odex files) and \system\framework\ (.jar + .odex files) under the root folder of the tool
like this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
and simply run
start_deodex_zipalign.bat and then wait ....
After that of course you need to copy all the processed files back to your phone... manually...sorry I am kind of lazy man... YOU know what I mean...:laugh:
I have tested the tool so many times and worked perfect However I cant guarantee that it will run perfect on your machine too... depends on your
machine config.
As for the smooth scroll patched framework file , simply copy it into \system\framework and replace the original one ...CAUTION: You must deodex the rom before apply the smooth scroll patched file.
Thanks AndroidON for the good tutorial on patching framework.jar
Thank you for your explanation in the PM. Unfortunately I could not get it to work.
I unzipped your tool to a folder, used root explorer to copy the content of system\app and system\framework into the microSD card, and transferred these files from the microSD card to the tool folder. Then I right-click "start_deodex_zipalign.bat" and chose "run as administrator". Command prompt popped up and the tool seemed to run through.
However, all the files I transferred to the tool folder did not disappear. There were no "deodexed framework" and "deodexed zipaligned apk" folders in the tool folder. However, I found these folders in Windows/system32, but they were empty.
I tried moving the unpacked tool folder to the root of the system drive (C:\\) and even into windows\system32 folder, but the result was the same.
I use the Taiwan101 v.2 ROM (based on 20120713 firmware), and I used root uninstaller to remove some of the system apps. I wonder if this may be the cause of your tool not working?
I think different system environment configuration causing the problem...and it's related to the %cd% variable in the batch file.. So the fix is try open the batch file with notepad then "find and replace %cd% with c:\myfastdeodextool-hoipai like below ..
@echo off
@echo ==================================================
@echo.
@echo Auto deodex + Zipalign Tool by BjDanny @ XDA Forum
@echo.
@echo ==================================================
@mkdir c:\myfastdeodextool-hoipai\deodexed_framework
@mkdir c:\myfastdeodextool-hoipai\deodexed_zipaligned_apk
@set df=c:\myfastdeodextool-hoipai\deodexed_framework\
@set daz=c:\myfastdeodextool-hoipai\deodexed_zipaligned_apk
@set baksmali=c:\myfastdeodextool-hoipai\bin\baksmali-1.3.4.jar
@set smali=c:\myfastdeodextool-hoipai\bin\smali-1.3.4.jar
@set zip=c:\myfastdeodextool-hoipai\bin\zip.exe
@set zipalign=c:\myfastdeodextool-hoipai\bin\zipalign.exe
@set apilevel=15
if exist *res.apk (@move *res.apk %df% >>nul)
:dfw
@echo This error log can be ignored because of the reason "Odex file are not exist">>c:\myfastdeodextool-hoipai\err.txt
@echo. >>c:\myfastdeodextool-hoipai\err.txt
@echo Start deodex Framework >> c:\myfastdeodextool-hoipai\deodex.log
@if exist c:\myfastdeodextool-hoipai\out (rmdir /s /q c:\myfastdeodextool-hoipai\out)
@set filetype=jar
@echo Creating Jar file list ...
@dir c:\myfastdeodextool-hoipai /b | findstr /m .jar >>c:\myfastdeodextool-hoipai\jarfile.txt
@for /F "delims=" %%a in (c:\myfastdeodextool-hoipai\jarfile.txt) do @echo Baksmali %%~na.odex ... && @echo. && java -Xmx512m -jar %baksmali% -a %apilevel% -x %%~na.odex 2>>c:\myfastdeodextool-hoipai\err.txt && @echo Smali ... && @echo. && java -Xmx512m -jar %smali% -a %apilevel% -o classes.dex out && @echo Merge %%~na.%filetype% ... && @echo. && @%zip% -r -q %%~na.%filetype% classes.dex && @echo Delete classes.dex && @echo. && @del /f /q c:\myfastdeodextool-hoipai\classes.dex && @echo Delete out folder ... && @echo. && rmdir /s /q c:\myfastdeodextool-hoipai\out && @echo Deodexed %%~na.%filetype% && @echo. && @echo =========================================================== && @echo ( %%~na.%filetype% ) - was deodexed successfully! >> c:\myfastdeodextool-hoipai\deodex.log
@echo Moving Done framework to deodexed_framework\
@move c:\myfastdeodextool-hoipai\*.%filetype% %df%
@echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> c:\myfastdeodextool-hoipai\deodex.log
@echo Deodexed Framework >> c:\myfastdeodextool-hoipai\deodex.log
@echo. >> c:\myfastdeodextool-hoipai\deodex.log
@del /f /q c:\myfastdeodextool-hoipai\jarfile.txt
@goto da
:da
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> c:\myfastdeodextool-hoipai\deodex.log
@echo Start Deodex and Zipalign APK >> c:\myfastdeodextool-hoipai\deodex.log
@echo. >> c:\myfastdeodextool-hoipai\deodex.log
@set filetype=apk
@echo Creating Apk file list ...
@dir c:\myfastdeodextool-hoipai /b | findstr /m .apk >>c:\myfastdeodextool-hoipai\apkfile.txt
@for /F "delims=" %%a in (c:\myfastdeodextool-hoipai\apkfile.txt) do @echo Baksmali %%~na.odex ... && @echo. && java -Xmx512m -jar %baksmali% -a %apilevel% -x %%~na.odex 2>>c:\myfastdeodextool-hoipai\err.txt && @echo Smali ... && @echo. && java -Xmx512m -jar %smali% -a %apilevel% -o classes.dex out && @echo Merge %%~na.%filetype% ... && @echo. && @%zip% -r -q %%~na.%filetype% classes.dex && @echo Delete classes.dex && @echo. && @del /f /q c:\myfastdeodextool-hoipai\classes.dex && @echo Delete out folder ... && @echo. && rmdir /s /q c:\myfastdeodextool-hoipai\out && @echo Deodexed %%~na.%filetype% && @echo. && @echo ( %%~na.%filetype% ) - was deodexed successfully! >> c:\myfastdeodextool-hoipai\deodex.log && @echo.& @echo.&& @echo Zipalign %%~na.%filetype% ... && @%zipalign% -v 4 c:\myfastdeodextool-hoipai\%%~na.%filetype% c:\myfastdeodextool-hoipai\%%~na.%filetype%.ZIPALIGNED && @echo. && @echo ===========================================================
@echo.
@echo Moving Deodexed APKs into deodexed_zipaligned_apk folder ...
@echo.
@move c:\myfastdeodextool-hoipai\*.apk.ZIPALIGNED c:\myfastdeodextool-hoipai\deodexed_zipaligned_apk\
@echo Renaming files
@for %%a in ("c:\myfastdeodextool-hoipai\deodexed_zipaligned_apk\*") do ren "%%a" "%%~na"
@echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>> c:\myfastdeodextool-hoipai\deodex.log
@echo Deodexed and Zipaligned APK >> c:\myfastdeodextool-hoipai\deodex.log
@del /f /q c:\myfastdeodextool-hoipai\apkfile.txt
@del /f /q c:\myfastdeodextool-hoipai\*.odex
@del /f /q c:\myfastdeodextool-hoipai\*.%filetype%
@echo All Action Completed ! Thanks for using
@pause
@goto exit
:err
@echo error found
@pause
:end
@exit
and this time i am using fix path (c:\myfastdeodextool-hoipai) rather than (%cd%)
so you need to put the tool under c:\
The folder name myfastdeodextool-hoipai is up to you ...you can name it with your own idea but pls do use the same name in the batch file
I tested this amended code on my win 7 32 bit OS , ran perfect ...without any errors...
Try it out ... Thanks for using...
Thanks for sharing.
Can you show us the code changes for framework.jar so we can use it for other ROM as well?
Thanks.
Tested and it works perfect after changing the %cd% to C:/XX and unzip downloaded files and ALL system/app and system/framework to the C:/XX.
Thank you.
Can you work out a odex batch file?
---- oriignal post deleted -----
Thanks jbctiong - after reading what you said, I finally understand what I need to do.
Changing %cd% to a fixed folder name means that I have to move the content of the unzipped tool and the content of the \system\app and \system\framework folders to the folder of that name, in the root of the system drive.
ie. If I rename %cd% to c:\deodex, I have to make a new folder called "deodex" in the system drive "C", and move everything into this folder, before running the .bat file.
I got it all worked out finally, thanks!
Sorry one more noob question.
What is the best way to replace the old files in the system/app and system/framework folders with the new files?
I deleted all the files in the app folder first, then realize all the functions of the phone freeze. This is certainly the stoopid way to do it.
slim_thumb said:
---- oriignal post deleted -----
Thanks jbctiong - after reading what you said, I finally understand what I need to do.
Changing %cd% to a fixed folder name means that I have to move the content of the unzipped tool and the content of the \system\app and \system\framework folders to the folder of that name, in the root of the system drive.
ie. If I rename %cd% to c:\deodex, I have to make a new folder called "deodex" in the system drive "C", and move everything into this folder, before running the .bat file.
I got it all worked out finally, thanks!
Click to expand...
Click to collapse
I will post the changed code on smooth scroll patched framework later because i am currently working on custom rom for x710d based on latest official rom which is version 0902
slim_thumb said:
Sorry one more noob question.
What is the best way to replace the old files in the system/app and system/framework folders with the new files?
I deleted all the files in the app folder first, then realize all the functions of the phone freeze. This is certainly the stoopid way to do it.
Click to expand...
Click to collapse
make a cwm update zip file is the best...
using adb shell command is second choice
Sorry more problem.
I tried to backup with CWM, but when I check the CWM folder, although it has created the folder with the date of the backup, it is empty.
Does anyone have problem with their CWM backup?
---------- Post added at 04:59 PM ---------- Previous post was at 04:50 PM ----------
Another question:
When I look at the content of my Taiwan101 custom ROM, I notice the "system" folder has the same "app" and "framework" folders. I guess I can replace the content of these two folders with the deodexed / zipaligned files, repack and flash it with CWM?
If this work, I presume I can do the same for future versions of CWM flashable custom ROMs?
slim_thumb said:
Sorry more problem.
I tried to backup with CWM, but when I check the CWM folder, although it has created the folder with the date of the backup, it is empty.
Does anyone have problem with their CWM backup?
---------- Post added at 04:59 PM ---------- Previous post was at 04:50 PM ----------
Another question:
When I look at the content of my Taiwan101 custom ROM, I notice the "system" folder has the same "app" and "framework" folders. I guess I can replace the content of these two folders with the deodexed / zipaligned files, repack and flash it with CWM?
If this work, I presume I can do the same for future versions of CWM flashable custom ROMs?
Click to expand...
Click to collapse
problem 1: Never met
problem 2: yes you can do that ...
---- oriignal post deleted ----
Thanks. Looking forward to the custom version of the latest official FW. In the meantime I am going to mess around and learn how to get this deodex / zipalign process working.
bjdanny said:
I will post the changed code on smooth scroll patched framework later because i am currently working on custom rom for x710d based on latest official rom which is version 0902
Click to expand...
Click to collapse
Can you post a link to the latest firmware 09/02/2012, and what the bug fixes and changes are? ie. Front camera, bluetooth, wifi, external sd, etc..
brotherman38 said:
Can you post a link to the latest firmware 09/02/2012, and what the bug fixes and changes are? ie. Front camera, bluetooth, wifi, external sd, etc..
Click to expand...
Click to collapse
This phone is made in china. so the page you request is written in chinese
This is the description page
http://www.jajatong.com/article/show-86.aspx
This is the download link
http://l11.yunpan.cn/lk/59k5uxavll
AS for what have been updated sorry I can't find change log of the firmware..
So , I was just guesssing .
under the download page you can see follow message
20120713_e1809c_v77_lx529_x710d2.zip
225.1MB, jajat***@jajatong.com 发布于2012-09-03
20120713_e1809c_v77_lx529_x710d2.zip is the file name
225.1MB, jajat***@jajatong.com 发布于2012-09-03 means the manufacturer uploaded may be updated rom on 2012-09-03 the package is 225.1.MB

[TOOL][WINDOWS][RECOVERY][SYSTEM][SNAPS][VIDEO][GUI]android-shot! (version 2.1)

#android-shot
#your one stop screenshot solution!
#screenshot recovery for windows!
#screenshot system for windows!
#video_record recovery for windows!
#video_record system for windows!
Looking for a Linux Version???
Go Here: http://forum.xda-developers.com/showthread.php?t=2260704
This solely uses the SD Card, which, by default is always kept mounted by
a partition. So, you wouldn't run into any trouble except when you try to
partition or format the SD Card.
I repeat, no need to mount any partition... By default, the SD Card is always mounted, so, I thought using it will be way better than using the /data partition
To take a screenshot:
Code:
Run "shot.bat"
Your screenshot will be saved in a folder named screenshots automatically.
To capture video:
Code:
Run "record.bat"
Press "Ctrl+C" when you have finished recording.
This will basically start recording your screen frame by frame, and automatically
save it in your SD card. Note that recording the video alone is not enough.
Do the following to pull those frames from the SD card, and make a video out of them.
Code:
Run "mkvideo.bat"
Enter the Name that you want to name your video. DON'T ADD AN EXTENSION!
The files will be collected from the SD Card, and a video will be made out
of them. Then, the temporary files will be cleaned automatically, from both
your SD card, and your system.
Downloads:
Version 2.1 (GUI) (Android-Andi): http://forum.xda-developers.com/showpost.php?p=45891403&postcount=59
Version 2.1.3 (Android-Andi): http://forum.xda-developers.com/showpost.php?p=44447366&postcount=40
Version 2.1.2 (Android-Andi): http://forum.xda-developers.com/showpost.php?p=44288806&postcount=36
Version 2.0.1 (Android-Andi): http://forum.xda-developers.com/showpost.php?p=44011267&postcount=17
Version 2.0 (Thanks to Android-Andi): http://forum.xda-developers.com/showpost.php?p=43982996&postcount=12
Version 1.0: http://www.mediafire.com/download/26gi88xdd5c6rly/android-shot_windows.zip
Note: A GUI version can be found here: http://forum.xda-developers.com/showpost.php?p=45891403&postcount=59
Not personally tested by me, as I don't have the appropriate tools (i.e. windows) no more...
Credits:
Kyan He (https://plus.google.com/116857119889961125943) and his wonderful tool "fb2png" (https://code.google.com/p/android-fb2png/)
Whiskey103 (http://forum.xda-developers.com/member.php?u=2632943) and his guide (http://forum.xda-developers.com/showthread.php?p=40260716) on taking screenshot in windows.
Android-Andi (http://forum.xda-developers.com/member.php?u=5153662) for version 2.0 and some cool ideas
Sample:
Recovery!
Recovery & System Video Sample! [With instructions ]
not working and said
"ECHO off 'and' is not recognized as an internal or external command, operable program or batch file.
'C:\Doccuments' is not recognized as an internal or external command, operable program or batch file.
will try your linux version, when get home
Strange....
antutu said:
not working and said
"ECHO off 'and' is not recognized as an internal or external command, operable program or batch file.
'C:\Doccuments' is not recognized as an internal or external command, operable program or batch file.
will try your linux version, when get home
Click to expand...
Click to collapse
Anyways, thanks for your report
I will look into it, as soon as possible
P.S. Only problem is... I don't have Windows :silly: So, it would be a beta :angel:
vineethraj49 said:
Anyways, thanks for your report
I will look into it, as soon as possible
P.S. Only problem is... I don't have Windows :silly: So, it would be a beta :angel:
Click to expand...
Click to collapse
Take your time mate:thumbup:
Sorry bro i just found out how this can work out
I've to put it in root folder
It's working great now:thumbup::thumbup:
Thanks al lot! That´s what i was looking for.
I tried to get better Video-Quality (libx264 as *.mp4).
I modified the .bat
Code:
ECHO off
REM snaps mode
REM fb2png credits go to respective developers
REM thanks to whiskey103 for his screenshot.bat for windows
REM thanks to vineethraj49 for his mkvideo.bat (video as *.avi)
REM thanks to me and my computer
IF EXIST %~dp0tmp ECHO tmp directory found! :)
IF NOT EXIST %~dp0tmp ECHO tmp directory not found! :( && MKDIR tmp && ECHO initialised new tmp directory! :)
IF EXIST %~dp0output_video ECHO output_video directory found! :)
IF NOT EXIST %~dp0output_video ECHO output_video directory not found! :( && MKDIR output_video && ECHO initialised new output_video directory! :)
%~dp0tools\adb pull /sdcard/fb2png/screens/ tmp
SET /P name=Enter the name for your video:
%~dp0tools\ffmpeg.exe -f image2 -r 2 -i tmp/1%%09d.png -c:v libx264 -r 30 output_video/%name%.mp4
%~dp0tools\adb shell rm /sdcard/fb2png/screens/*
rm tmp/*
REM hit enter to exit
pause
Someone knows how to make the quality better then with my modified bat?
Me again:
To use your shot.bat i had to download 2 *.dll´s to get "date.exe" working (libiconv2.dll and libintl3.dll). Without these .dll screenshot not possible.
Maybe you can add these two *.dll into your tool directory (don´t know if it´s allowed, check it here).
Download (GnuWin) Libintl.exe(?) from here and install it.
You´ll find the 2 needed *.dll at "C:\Program Files (x86)\GnuWin32\bin".
I´m, running Windows 8 Pro.
Maybe you can add (after changeing directory path) my modified "record.bat" for taking screenshots from running androidsystem
Code:
@ECHO off
REM Record_running_Android
IF EXIST %~dp0new ECHO new directory found! :)
IF NOT EXIST %~dp0new ECHO new directory not found! :(
mkdir new
ECHO initialised new directory! :)
:loop
%~dp0tools\adb shell screencap -p /extSdCard/screen.png
%~dp0tools\adb pull /extSdCard/screen.png %~dp0new
%~dp0tools\adb shell rm /extSdCard/screen.png
FOR /F "tokens=*" %%i in ('%~dp0tools\date.bat') do SET DATE=%%i
MOVE %~dp0new\screen.png %~dp0new\%DATE%.png
goto loop
pause
I´m using extSdCard as directory, because my Micro-SD-Card is mounted there.
Maybe change it like this:
Code:
@ECHO off
REM Record_running_Android
IF EXIST %~dp0new ECHO new directory found! :)
IF NOT EXIST %~dp0new ECHO new directory not found! :(
mkdir new
ECHO initialised new directory! :)
:loop
%~dp0tools\adb shell screencap -p /sdcard/screen.png
%~dp0tools\adb pull /sdcard/screen.png %~dp0new
%~dp0tools\adb shell rm /sdcard/screen.png
FOR /F "tokens=*" %%i in ('%~dp0tools\date.bat') do SET DATE=%%i
MOVE %~dp0new\screen.png %~dp0new\%DATE%.png
goto loop
pause
Whoa! Someone actually cares
Android-Andi said:
Thanks al lot! That´s what i was looking for.
I tried to get better Video-Quality (libx264 as *.mp4).
I modified the .bat
Code:
ECHO off
REM snaps mode
REM fb2png credits go to respective developers
REM thanks to whiskey103 for his screenshot.bat for windows
REM thanks to vineethraj49 for his mkvideo.bat (video as *.avi)
REM thanks to me and my computer
IF EXIST %~dp0tmp ECHO tmp directory found! :)
IF NOT EXIST %~dp0tmp ECHO tmp directory not found! :( && MKDIR tmp && ECHO initialised new tmp directory! :)
IF EXIST %~dp0output_video ECHO output_video directory found! :)
IF NOT EXIST %~dp0output_video ECHO output_video directory not found! :( && MKDIR output_video && ECHO initialised new output_video directory! :)
%~dp0tools\adb pull /sdcard/fb2png/screens/ tmp
SET /P name=Enter the name for your video:
%~dp0tools\ffmpeg.exe -f image2 -r 2 -i tmp/1%%09d.png -c:v libx264 -r 30 output_video/%name%.mp4
%~dp0tools\adb shell rm /sdcard/fb2png/screens/*
rm tmp/*
REM hit enter to exit
pause
Someone knows how to make the quality better then with my modified bat?
Click to expand...
Click to collapse
Remember that the *quality* is always the same. It pulls the images (frames) in the same resolution as of your phone. If you are talking about the FPS, you should modify this line...
Code:
ffmpeg -r 4
The -r switch controls the FPS.
Again, the FPS depends upon how many screens are actually captured by your device. If you have a fast SD-Card, and a fast processor, it is indeed likely that the frames captured would be more. You can try increasing the -r 4 by 2/3 frames and see if the video is suitable to your needs. (eg. -r 5/ -r 6, etc...)
Android-Andi said:
Me again:
To use your shot.bat i had to download 2 *.dll´s to get "date.exe" working (libiconv2.dll and libintl3.dll). Without these .dll screenshot not possible.
Maybe you can add these two *.dll into your tool directory (don´t know if it´s allowed, check it here).
Download (GnuWin) Libintl.exe(?) from here and install it.
You´ll find the 2 needed *.dll at "C:\Program Files (x86)\GnuWin32\bin".
I´m, running Windows 8 Pro.
Click to expand...
Click to collapse
Didn't know about that... It worked for me without those two DLLs. Anyways, I will just add it for safety.
Android-Andi said:
Maybe you can add (after changeing directory path) my modified "record.bat" for taking screenshots from running androidsystem
Code:
@ECHO off
REM Record_running_Android
IF EXIST %~dp0new ECHO new directory found! :)
IF NOT EXIST %~dp0new ECHO new directory not found! :(
mkdir new
ECHO initialised new directory! :)
:loop
%~dp0tools\adb shell screencap -p /extSdCard/screen.png
%~dp0tools\adb pull /extSdCard/screen.png %~dp0new
%~dp0tools\adb shell rm /extSdCard/screen.png
FOR /F "tokens=*" %%i in ('%~dp0tools\date.bat') do SET DATE=%%i
MOVE %~dp0new\screen.png %~dp0new\%DATE%.png
goto loop
pause
I´m using extSdCard as directory, because my Micro-SD-Card is mounted there.
Maybe change it like this:
Code:
@ECHO off
REM Record_running_Android
IF EXIST %~dp0new ECHO new directory found! :)
IF NOT EXIST %~dp0new ECHO new directory not found! :(
mkdir new
ECHO initialised new directory! :)
:loop
%~dp0tools\adb shell screencap -p /sdcard/screen.png
%~dp0tools\adb pull /sdcard/screen.png %~dp0new
%~dp0tools\adb shell rm /sdcard/screen.png
FOR /F "tokens=*" %%i in ('%~dp0tools\date.bat') do SET DATE=%%i
MOVE %~dp0new\screen.png %~dp0new\%DATE%.png
goto loop
pause
Click to expand...
Click to collapse
You could change it yourself... Reason why I wouldn't change it? Because different devices have different mount points. If it is extSDcard, you can change accordingly. (If that wasn't the point, please clarify the last post. I understood it as: my mountpoint for sdcard is different :silly
p.s. thanks.. i was thinking no one cared
vineethraj49 said:
Remember that the *quality* is always the same. It pulls the images (frames) in the same resolution as of your phone. If you are talking about the FPS, you should modify this line...
Code:
ffmpeg -r 4
The -r switch controls the FPS.
Again, the FPS depends upon how many screens are actually captured by your device. If you have a fast SD-Card, and a fast processor, it is indeed likely that the frames captured would be more. You can try increasing the -r 4 by 2/3 frames and see if the video is suitable to your needs. (eg. -r 5/ -r 6, etc...)
Click to expand...
Click to collapse
This will change how long the picture stays (i set it down to 2, beacause in my case it was to fast).
MP4 and libx264 codec will give you better quality. I tested it yesterday the whole evening Trust me. Screenshot added (mp4 more clearly).
Try that one (video looks better):
Code:
ECHO off
REM snaps mode
REM fb2png credits go to respective developers
REM thanks to whiskey103 for his screenshot.bat for windows
REM thanks to vineethraj49 for his mkvideo.bat (video as *.avi)
REM thanks to me and my computer
IF EXIST %~dp0tmp ECHO tmp directory found! :)
IF NOT EXIST %~dp0tmp ECHO tmp directory not found! :( && MKDIR tmp && ECHO initialised new tmp directory! :)
IF EXIST %~dp0output_video ECHO output_video directory found! :)
IF NOT EXIST %~dp0output_video ECHO output_video directory not found! :( && MKDIR output_video && ECHO initialised new output_video directory! :)
%~dp0tools\adb pull /sdcard/fb2png/screens/ tmp
SET /P name=Enter the name for your video:
%~dp0tools\ffmpeg.exe -f image2 -r 2 -i tmp/1%%09d.png -c:v libx264 -r 30 output_video/%name%.mp4
%~dp0tools\adb shell rm /sdcard/fb2png/screens/*
rm tmp/*
REM hit enter to exit
pause
vineethraj49 said:
Didn't know about that... It worked for me without those two DLLs. Anyways, I will just add it for safety.
Click to expand...
Click to collapse
Adding will take you on the safe side Thanks I think they are under GPLv2, but i´m not shure.
You can also download libiconv-1.9.2-1-bin.zip and libintl-0.14.4-bin.zip. DLL´s are in the "bin" directory after extracting.
vineethraj49 said:
You could change it yourself... Reason why I wouldn't change it? Because different devices have different mount points. If it is extSDcard, you can change accordingly. (If that wasn't the point, please clarify the last post. I understood it as: my mountpoint for sdcard is different :silly
Click to expand...
Click to collapse
Code:
[user=279333]@ECHO[/user] off
REM Record_running_Android
IF EXIST %~dp0new ECHO new directory found! :)
IF NOT EXIST %~dp0new ECHO new directory not found! :(
mkdir new
ECHO initialised new directory! :)
:loop
%~dp0tools\adb shell screencap -p /sdcard/screen.png
%~dp0tools\adb pull /sdcard/screen.png %~dp0new
%~dp0tools\adb shell rm /sdcard/screen.png
FOR /F "tokens=*" %%i in ('%~dp0tools\date.bat') do SET DATE=%%i
MOVE %~dp0new\screen.png %~dp0new\%DATE%.png
goto loop
pause
Internal SD? Same path you use in your batch-scripts. Should work for everyone.
[The Script i posted before was for use on micro-sd (working for my device) - i have changed it later ( ) to use on internal-sd for everyone]
Only one problem: the name of the files... can´t use the mkvideo.bat to make a video... i had to rename them after captureing using Ant Renamer2.
But you can add the 2 .bat from me as a "Bonus" into your zip if you want.
Sure!
Android-Andi said:
This will change how long the picture stays (i set it down to 2, beacause in my case it was to fast).
MP4 and libx264 codec will give you better quality. I tested it yesterday the whole evening Trust me. Screenshot added (mp4 more clearly).
Try that one (video looks better):
Code:
ECHO off
REM snaps mode
REM fb2png credits go to respective developers
REM thanks to whiskey103 for his screenshot.bat for windows
REM thanks to vineethraj49 for his mkvideo.bat (video as *.avi)
REM thanks to me and my computer
IF EXIST %~dp0tmp ECHO tmp directory found! :)
IF NOT EXIST %~dp0tmp ECHO tmp directory not found! :( && MKDIR tmp && ECHO initialised new tmp directory! :)
IF EXIST %~dp0output_video ECHO output_video directory found! :)
IF NOT EXIST %~dp0output_video ECHO output_video directory not found! :( && MKDIR output_video && ECHO initialised new output_video directory! :)
%~dp0tools\adb pull /sdcard/fb2png/screens/ tmp
SET /P name=Enter the name for your video:
%~dp0tools\ffmpeg.exe -f image2 -r 2 -i tmp/1%%09d.png -c:v libx264 -r 30 output_video/%name%.mp4
%~dp0tools\adb shell rm /sdcard/fb2png/screens/*
rm tmp/*
REM hit enter to exit
pause
Adding will take you on the safe side Thanks I think they are under GPLv2, but i´m not shure.
You can also download libiconv-1.9.2-1-bin.zip and libintl-0.14.4-bin.zip. DLL´s are in the "bin" directory after extracting.
Code:
[user=279333]@ECHO[/user] off
REM Record_running_Android
IF EXIST %~dp0new ECHO new directory found! :)
IF NOT EXIST %~dp0new ECHO new directory not found! :(
mkdir new
ECHO initialised new directory! :)
:loop
%~dp0tools\adb shell screencap -p /sdcard/screen.png
%~dp0tools\adb pull /sdcard/screen.png %~dp0new
%~dp0tools\adb shell rm /sdcard/screen.png
FOR /F "tokens=*" %%i in ('%~dp0tools\date.bat') do SET DATE=%%i
MOVE %~dp0new\screen.png %~dp0new\%DATE%.png
goto loop
pause
Internal SD? Same path you use in your batch-scripts. Should work for everyone.
[The Script i posted before was for use on micro-sd (working for my device) - i have changed it later ( ) to use on internal-sd for everyone]
Only one problem: the name of the files... can´t use the mkvideo.bat to make a video... i had to rename them after captureing using Ant Renamer2.
But you can add the 2 .bat from me as a "Bonus" into your zip if you want.
Click to expand...
Click to collapse
cool! i have no objection. as of mp4 encoding too, you could add it as a feature, but do release it in this thread only. I sure would give you credits for a version 2.0 :angel: i don't want xda to be weeded by one more thread. there are already many (by a gazillion n00bs )
I did some cool batch-scripts (modified scripts from yours). You can download from here. Extract and copy the *.bat into the android-shot folder.
What have i done?
E.g. you can set a different path for storing the *.png on your device untill they get pulled. You can also change the destination-folder (on your local computer).
(All codes only from line 7 to ~ line 15 in batch-script)
1. batch: screenshot_recovery-universal.bat
Click to expand...
Click to collapse
Code:
REM Please enter the path where your internalstorage or micro-SD is mounted in recovery
[COLOR="Red"]set extpath=/sdcard[/COLOR]
REM
REM E.g. set "extpath=/extSdCard" if your micro-sd is mounted at /extSdCard.
REM (default-path: /sdcard for internal storage)
REM
REM
REM Please enter the name of your destinationfolder on your computer:
[COLOR="Red"]set pngpath=screenshots[/COLOR]
REM (default-path:screenshots)
Mountpoint of micro SD is different on any devices, you can change it to your´s.
You can change also the destination folder - but leave it as it is If you do: you have to change it in the converting-video batch-script too.
2. batch: record_recovery-universal.bat
Click to expand...
Click to collapse
Code:
REM Please enter the path where your internalstorage or micro-SD is mounted in recovery:
[COLOR="Red"]set extpath=/sdcard[/COLOR]
REM e.g. set "extpath=/external_sd" if your micro-sd is mounted IN RECOVERY at /external_sd
REM (default-path: /sdcard for internal storage)
Mountpoint of micro SD is different on any devices, you can change it to your´s.
3. batch: record_running_android-universal.bat
Click to expand...
Click to collapse
Code:
REM Please enter the path where your internalstorage or micro-SD is mounted:
[COLOR="Red"]set extpath=/sdcard[/COLOR]
REM E.g. set "extpath=/extSdCard" if your micro-sd is mounted at /extSdCard
REM (default-path: /sdcard for internal storage)
REM
REM
REM
REM Please enter the name of your destinationfolder on your computer:
[COLOR="Red"]set destpath=tmpandroid[/COLOR]
REM (default-path: tmpandroid)
Mountpoint of micro SD is different on any devices, you can change it to your´s.
You can change also the destination folder - but leave it as it is If you do: You have to change it in the converting-video batch-script too.
4. batch: mkvideo_mp4_recovery-universal.bat
Click to expand...
Click to collapse
Code:
REM Please enter the path where your internalstorage or micro-SD is mounted in recovery
[COLOR="Red"]set extpath=/sdcard[/COLOR]
REM e.g. set "extpath=/external_sd" if your micro-sd is mounted IN RECOVERY at /external_sd
REM (default-path: /sdcard for internal storage)
REM
REM
REM Please enter the name of your png-folder on your computer
REM (same as "destpath" in record_recovery-universal.bat)
[COLOR="Red"]set pngpath=tmp[/COLOR]
REM (default-path:tmp - if you have modified the path do the same here)
Mountpoint of micro SD is different on any devices, you can change it to your´s. If you have changed it in the record_recover-batch-script - you have to do it too.
You can change also the destination folder - but leave it as it is If you have changed it in the record_recovery-batch-script - you have to do it too.
5. batch: mkvideo_mp4_running_android-universal.bat
Click to expand...
Click to collapse
Code:
REM Please enter the name of your png-folder on your computer
REM (same as "destpath" in record_runnning_android-universal.bat)
[COLOR="Red"]set pngpath=tmpandroid[/COLOR]
REM (default-path:tmpandroid - if you have modified the path do the same here)
You can change also the png folder - but leave it as it is If you have changed it in the record_running_android-batch-script - you have to do it too.
Please use Notepad++ if you want to change something in the batch-script.
For watching the .mp4 you can use Media Player Home Cinema.
Cool, but, one small change that I would like to say...
Android-Andi said:
I did some cool batch-scripts (modified scripts from yours). You can download from here. Extract and copy the *.bat into the android-shot folder.
What have i done?
E.g. you can set a different path for storing the *.png on your device untill they get pulled. You can also change the destination-folder (on your local computer).
(All codes only from line 7 to ~ line 15 in batch-script)
Code:
REM Please enter the path where your internalstorage or micro-SD is mounted in recovery
[COLOR="Red"]set extpath=/sdcard[/COLOR]
REM
REM E.g. set "extpath=/extSdCard" if your micro-sd is mounted at /extSdCard.
REM (default-path: /sdcard for internal storage)
REM
REM
REM Please enter the name of your destinationfolder on your computer:
[COLOR="Red"]set pngpath=screenshots[/COLOR]
REM (default-path:screenshots)
Mountpoint of micro SD is different on any devices, you can change it to your´s.
You can change also the destination folder - but leave it as it is If you do: you have to change it in the converting-video batch-script too.
Code:
REM Please enter the path where your internalstorage or micro-SD is mounted in recovery:
[COLOR="Red"]set extpath=/sdcard[/COLOR]
REM e.g. set "extpath=/external_sd" if your micro-sd is mounted IN RECOVERY at /external_sd
REM (default-path: /sdcard for internal storage)
Mountpoint of micro SD is different on any devices, you can change it to your´s.
Code:
REM Please enter the path where your internalstorage or micro-SD is mounted:
[COLOR="Red"]set extpath=/sdcard[/COLOR]
REM E.g. set "extpath=/extSdCard" if your micro-sd is mounted at /extSdCard
REM (default-path: /sdcard for internal storage)
REM
REM
REM
REM Please enter the name of your destinationfolder on your computer:
[COLOR="Red"]set destpath=tmpandroid[/COLOR]
REM (default-path: tmpandroid)
Mountpoint of micro SD is different on any devices, you can change it to your´s.
You can change also the destination folder - but leave it as it is If you do: You have to change it in the converting-video batch-script too.
Code:
REM Please enter the path where your internalstorage or micro-SD is mounted in recovery
[COLOR="Red"]set extpath=/sdcard[/COLOR]
REM e.g. set "extpath=/external_sd" if your micro-sd is mounted IN RECOVERY at /external_sd
REM (default-path: /sdcard for internal storage)
REM
REM
REM Please enter the name of your png-folder on your computer
REM (same as "destpath" in record_recovery-universal.bat)
[COLOR="Red"]set pngpath=tmp[/COLOR]
REM (default-path:tmp - if you have modified the path do the same here)
Mountpoint of micro SD is different on any devices, you can change it to your´s. If you have changed it in the record_recover-batch-script - you have to do it too.
You can change also the destination folder - but leave it as it is If you have changed it in the record_recovery-batch-script - you have to do it too.
Code:
REM Please enter the name of your png-folder on your computer
REM (same as "destpath" in record_runnning_android-universal.bat)
[COLOR="Red"]set pngpath=tmpandroid[/COLOR]
REM (default-path:tmpandroid - if you have modified the path do the same here)
You can change also the png folder - but leave it as it is If you have changed it in the record_running_android-batch-script - you have to do it too.
Please use Notepad++ if you want to change something in the batch-script.
For watching the .mp4 you can use Media Player Home Cinema.
Click to expand...
Click to collapse
drawbacks of your method :fingers-crossed: :
not all devices are fast enough to process the "capture>pull>remove" loop which you have implemented.
except that, awesomeness quotient is great. you have added support for capturing the screen while android is running in normal mode :victory:
It can be just downloaded and extracted into the folder where you already have the files... releasing it as version 2.0
p.s. Guess its time for me to update the linux version
vineethraj49 said:
drawbacks of your method :fingers-crossed: :
not all devices are fast enough to process the "capture>pull>remove" loop which you have implemented.
Click to expand...
Click to collapse
Maybe i can make 2 batch files (pulling as a second step). Maybe add the pull line into the "mkvideo_mp4_running_android-universal.bat".
I can test it after sleeping :silly:
And you´re right: its not so fast like in recovery (on my Galaxy Tab 2 7.0 P3110)
vineethraj49 said:
except that, awesomeness quotient is great. you have added support for capturing the screen while android is running in normal mode :victory:
Click to expand...
Click to collapse
Thank you Thanks for your great work before my modification - my modification wouldn´t be possible without you :good:
vineethraj49 said:
It can be just downloaded and extracted into the folder where you already have the files... releasing it as version 2.0
p.s. Guess its time for me to update the linux version
Click to expand...
Click to collapse
Do it
Because i´m not running a linux i couldn´t make it (and i´m not that good at linux).
Maybe i can make 2 batch files (pulling as a second step). Maybe add the pull line into the "mkvideo_mp4_running_android-universal.bat".
I can test it after sleeping :silly:
And you´re right: its not so fast like in recovery (on my Galaxy Tab 2 7.0 P3110)
Click to expand...
Click to collapse
Yeah, recovery... too slow
Thank you Thanks for your great work before my modification - my modification wouldn´t be possible without you :good:
Click to expand...
Click to collapse
Thank Kyan He and Whiskey103 too
Do it
Because i´m not running a linux i couldn´t make it (and i´m not that good at linux).
Click to expand...
Click to collapse
https://github.com/vineethraj49/android-shot
If you are interested, you can send in pull requests to https://github.com/vineethraj49/android-shot/tree/windows. PM me if interested to maintain the git,I will add you as a collaborator.
vineethraj49 said:
Yeah, recovery... too slow
Thank Kyan He and Whiskey103 too
https://github.com/vineethraj49/android-shot
If you are interested, you can send in pull requests to https://github.com/vineethraj49/android-shot/tree/windows. PM me if interested to maintain the git,I will add you as a collaborator.
Click to expand...
Click to collapse
sure, big thank @ Kyan He and Whiskey103 too!
i'll release update 2.0.1 later. i'm working on it. PM to you later.
pull won't work on windows. i tryed over vbs but didn't got it work.
Version 2.0.1 (extra batch-files)​
Download 2.0.1 from here
Installation:
Download and extract V 1.0 from op.
Extract "universal-bat2.0.1.zip" and copy all *.bat to "android-shot" directory.
Changes:
Code:
[LIST][*]not pulling data from your device (slowed down the recording process) @ record_running_android-universal.bat
[*]pulling before converting (better for recording process) @ mkvideo_mp4_running_android-universal.bat[/LIST]
How-To make a video in recovery:
1. start "record_recovery-universal.bat" (press CTRL + C if you are finished)
2. start "mkvideo_mp4_recovery-universal.bat" and follow the instructions.
How-To make a video in running android:
1. start "record_running_android-universal.bat" (press CTRL + C if you are finished)
2. start "mkvideo_mp4_running_android-universal.bat" and follow the instructions.
You can change the path from sdcard (default) to your micro-SD like before (different devices = different mountpoints) (instructions)
Thanks
@vineethraj49
Kyan He (https://plus.google.com/116857119889961125943) and his wonderful tool "fb2png" (https://code.google.com/p/android-fb2png/)
Whiskey103 (http://forum.xda-developers.com/member.php?u=2632943) and his guide (http://forum.xda-developers.com/showthread.php?p=40260716) on taking screenshot in windows.
Edit 30.07.2013:
Changed Download-Link, still 2.0.1 (some UI changes of the running batch)
time to update thread title I guess!
@Android-Andi, could you post a video for android_running_system for video recording as a sample?
vineethraj49 said:
@Android-Andi, could you post a video for android_running_system for video recording as a sample?
Click to expand...
Click to collapse
Shure,can do it next days,maybe today.
for rooted devices
is there anyby some gesture

[SCRIPT] Make ODIN Flashable tars

Easy peasy. Download the script attached and run as follows to create an Odin flashable tar
Code:
$ odintar image_1 image_2 image_3 ... image_X package.tar
You can also run the script with no arguments to get the usage information.
The output will be a package.tar.md5 which will contain all the image_XXX files you specified, and will also be Odin flashable.
Flash at your own risk, but I have tested this and it works. Just helps to automate tar flashable making
Instructions for use:
Download and remove .txt extension
Move/Copy to somewhere in your path (~/bin, /usr/local/bin, [for cygwin move it to C:/path/to/cygwinDirectory/bin] anywhere in your PATH)
Run to make tars
Profit.
Contents of script file:
Code:
#!/bin/bash
if [ "[email protected]"="" ]
then
echo "Usage: $0 image_1 image_2 ... image_X package.tar"
exit 0
fi
O=${#@}
((NUM = ${#@} - 1))
tar -H ustar -c ${@:1:$NUM} > ${@:$O}
md5sum -t ${@:$O} >> ${@:$O}
mv ${@:$O} ${@:$O}.md5

[Lenovo Tab10.1 TB-X103F][GUIDE] How to Change Splash Screen (Boot Logo)

Note:
This is not bootanimation, this is the splash screen (the 'Lenovo' boot logo which is displayed when device is switched ON)
This is for Lenovo Tab10.1 TB-X103F Only..
(For other devices, please send me your splash.img so that I can create a tool for you too.)
Requirements:
1. Rooted Lenovo Tab10.1 TB-X103F (any ROM)
2. Optional: Terminal Emulator app or Custom Recovery or atleast working fastboot in computer
3. You're proceeding at your own risk.
STEPS to create splash.img:
Before proceeding, make sure fastboot is setup properly in your computer (just incase something goes wrong)..
1. Download & Extract this in computer: Lenovo_Tab_10_X103F_Splash_Maker.zip
2. Make sure you have a 1280x800 resolution picture. (landscape)
3. Now rename your picture as logo.png or logo.jpg (according to its format) & replace it inside "pics" folder of the extracted folder.
4. Finally, run the 'Create_Logo.bat' to create splash.img , which you can find inside the "output" folder.
STEPS to flash splash.img:
Optional: To backup your original splash.img:
Code:
dd if=/dev/block/bootdevice/by-name/splash of=/sdcard/splash.img
(Not necessary though.. You may get it from the stock firmware itself.)
Now, Choose any one easy method:
a. To flash from recovery:
Transfer the flashable_splash.zip to your device and flash from TWRP or CWM or Philz or any other custom recovery.
b. To flash from Terminal Emulator:
Transfer the splash.img to your device's Internal Storage, Open Terminal Emulator & enter the following to flash it:
Code:
su
dd if=/sdcard/splash.img of=/dev/block/bootdevice/by-name/splash
c. To flash from Fastboot mode:
Code:
fastboot flash splash splash.img
Note:
Incase something goes wrong or device doesn't bootup, flash the stock splash.img from custom recovery or fastboot.
Credits:
1. @racereed who provided the stock splash.img of Lenovo 10.1 tablet TB-X103F
2. @bornagainpenguin and all others who have contributed for the device which has made this possible.
Hit the Thanks :good: button if it worked for you
You're welcome to post the splash images that you created..
Thanks a lot @GokulNC for the original windows guide
Linux guide
You want to install SimpleSSHD and do all steps except the first and last on a local machine.
# Backup the current splash image and use it for reference
dd if=/dev/block/bootdevice/by-name/splash of=splash-bak.img
# Convert the logo raw image to png
ffmpeg -hide_banner -f rawvideo -vcodec rawvideo -pix_fmt bgr24 -s 800x1280 -i splash-bak.img -vframes 1 -y logo.png
# Convert the battery raw image to png
ffmpeg -hide_banner -f rawvideo -vcodec rawvideo -pix_fmt bgr24 -skip_initial_bytes 3072000 -s 800x1280 -i splash-bak.img -vframes 1 -y battery.png
# Make your own images in Krita/Gimp
# Convert them to raw and join them to a splash image
ffmpeg -hide_banner -i logo.png -f rawvideo -vcodec rawvideo -pix_fmt bgr24 -s 800x1280 -y splash1.raw
ffmpeg -hide_banner -i battery.png -f rawvideo -vcodec rawvideo -pix_fmt bgr24 -s 800x1280 -y splash2.raw
cat splash1.raw splash2.raw > splash-new.img
# Apply the new splash image
dd if=splash-new.img of=/dev/block/bootdevice/by-name/splash

Categories

Resources