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

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

Related

[TWRP] Screenshot while in recovery..

Is this what I have to do to take a screenshot in the recovery? Using adb:
adb pull /dev/graphics/fb0
ffmpeg -vframes 1 -vcodec rawvideo -f rawvideo -pix_fmt rgba -s 720x1280 -i fb0 -f image2 -vcodec mjpeg fb%d.jpg
EDIT: I tried using ddms.bat while in recovery but it doesn't recognize my phone. I don't know what else to do or why it's not recognizing it. Can someone try with their phone and see if it works?
EDIT 2: ddms.bat works fine to take a screenshot when the device is booted up. Just not in the recovery.
SkizzMcNizz said:
Is this what I have to do to take a screenshot in the recovery? Using adb:
adb pull /dev/graphics/fb0
ffmpeg -vframes 1 -vcodec rawvideo -f rawvideo -pix_fmt rgba -s 720x1280 -i fb0 -f image2 -vcodec mjpeg fb%d.jpg
EDIT: I tried using ddms.bat while in recovery but it doesn't recognize my phone. I don't know what else to do or why it's not recognizing it. Can someone try with their phone and see if it works?
EDIT 2: ddms.bat works fine to take a screenshot when the device is booted up. Just not in the recovery.
Click to expand...
Click to collapse
yes that is correct, however its device specific on the fbX most all are 0, some can be a different number, just try until you find the correct one,
also note that the colors my be off, and if they are simple change the
rgba around,
for instance my red was blue and blue was red,
just changed the order from
rgba to bgra and problem solved
Skizzy034 said:
Is this what I have to do to take a screenshot in the recovery? Using adb:
adb pull /dev/graphics/fb0
ffmpeg -vframes 1 -vcodec rawvideo -f rawvideo -pix_fmt rgba -s 720x1280 -i fb0 -f image2 -vcodec mjpeg fb%d.jpg
EDIT: I tried using ddms.bat while in recovery but it doesn't recognize my phone. I don't know what else to do or why it's not recognizing it. Can someone try with their phone and see if it works?
EDIT 2: ddms.bat works fine to take a screenshot when the device is booted up. Just not in the recovery.
Click to expand...
Click to collapse
That's great, however -vframes belongs to the output.
adb pull /dev/graphics/fb0
ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt rgba -s 720x1280 -i fb0 -f image2 -vcodec mjpeg -vframes 1 fb%d.jpg
If the device is in landscape mode you have to invert the resolution:
adb pull /dev/graphics/fb0
ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt rgba -s 1280x720 -i fb0 -f image2 -vcodec mjpeg -vframes 1 fb%d.jpg
Hi Friends!
Is it possible with the same method to take screenshot on normal (not TWRP) LineageOS mode?
Code:
adb pull /dev/graphics/fb0
failed to copy '/dev/graphics/fb0' to './fb0': open failed: Permission denied
What is the correct video device for standard LineageOS mode?
Many thanks!
Davide

FFMPEG

Is anyone familiar with ffmpeg? Im trying to get a screenshot of my htc one x in recovery and ddms wont work. So I tried to pull the dev/graphic/fb0 file and I have successfully pulled it but i'm unable to get ffmpeg to convert it to a picture format like png or jpeg. I'm running these commands
adb pull /dev/graphics/fb0
ffmpeg -vframes 1 -vcodec rawvideo -f rawvideo -pix_fmt rgba -s 720x1280 -i fb0 -f image2 -vcodec mjpeg fb%d.jpg
When I run it it says option vframes (set the number of video frames to record) cannot be applied to i
nput file fb0 -- you are trying to apply an input option to an output file or vi
ce versa. Move this option before the file it belongs to.
Error parsing options for input file fb0.
Error opening input files: Error number -22 occurred.
What am I doing wrong?

change splash.img for qualcom use android

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?

How to edit boot.img for SM-T585?

I want to edit the boot.img for SM-T585, but I can't edit initrd.img. I'm using abootimg and I tested that it works by unpacking and repacking the boot.img without doing any thing to the initrd.img:
Code:
abootimg -x boot.img
abootimg --create newboot.img -k zImage -r initrd.img -f bootimg.cng
and this image can be flashed and the device boot normally, but when I try to modify the initrd.img:
Code:
mkdir initrd_folder && cd initrd_folder
# extract the [B]initrd.img[/B]
zcat ../initrd.img | cpio -idmv
# pack it again
find . | cpio --create --format='newc' | gzip -9 > ../newinitrd.img
From: How To Modify initrd.img
and then create the new boot.img with the new initrd.img
Code:
abootimg --create newboot.img -k zImage -r newinitrd.img -f bootimg.cfg
This new boot.img doesn't make the device boot and it only shows the Samsung logo and then reboots

How To Guide Guide to flash images in Linux

as we known, there's a famous tool called Tiny Script Tool to flash our custom systems. but i hate windows, is there a way to flash images in linux? at lease in linux there's no driver needs to all adb devices, thats perfect!
this guid will led you to do it in linux.
as Moto edge s is a dynamic partition device, these options suite to all devices with super block.
maybe YOU HAVE TO USE ROOT OR SUDO TO ACCESS YOUR DEVICE. change to root user if you can't access your device in linux.
# automatic tool:
i've wrote it as a script tool, see https://github.com/superiums/TrinyFlashScript
# manually steps:
## 刷机步骤
1. 备份app
Bash:
#!/bin/bash
backdirs='/dev/shm/app_backup/'
if [ ! -d "$backdirs" ]; then
mkdir $backdirs
fi
# user 0
backdir='/dev/shm/app_backup/0/'
if [ ! -d "$backdir" ]; then
mkdir $backdir
fi
adb shell pm list packages --user 0 -3 -f |awk '{ORS="\n";sub(/package:/,"adb pull ");sub(/apk=/,"apk '$backdir'");print($0".apk;");print("")}' >$backdir'dolist.sh'
sh $backdir'dolist.sh'
# ----------back app for user 10, if you have insular installed in your phone, this is needed!!! ********otherwise, skip.*******
backdir='/dev/shm/app_backup/10/'
if [ ! -d "$backdir" ]; then
mkdir $backdir
fi
adb shell pm list packages --user 10 -3 -f |awk '{ORS="\n";sub(/package:/,"adb pull ");sub(/apk=/,"apk '$backdir'");print($0".apk;");print("")}' >$backdir'dolist.sh'
sh $backdir'dolist.sh'
# ---------------------------------------------------------------------------------------------------------------------
2. 备份数据
Bash:
adb pull /sdcard/Downlad .
3. 重启到fastboot模式,刷写非动态分区
> **非动态分区包括**:
>
> - vbmeta
> - vbmeta_system
> - boot
> - vendor_boot
> - dtbo
Bash:
adb reboot bootloader
# 或 volumne- & power 开机
# 验证是否fastbootd模式
fastboot getvar is-userspace
# 应返回 no
fastboot flash [partition][_slot] [image]
# clear userdata and meta
fastboot -w
4. 重启到fastbootd模式,刷新动态分区
> **super分区包括**:
>
> - system
> - system_ext
> - vendor
> - product
Bash:
fastboot reboot fastboot
# 验证是否fastbootd模式
fastboot getvar is-userspace
# 应返回 yes
fastboot flash [partition][_slot] [image]
6. 双清
Bash:
fastboot erase userdata
#或
fastboot -w
#完成,重启到新系统
fastboot reboot
7. 设置系统
Bash:
#-------------for chinese users only, because they are blocked by the GFW and not able to connect to google.--------------
#Android 7及之后的版本输入如下两个命令,设置网络检测地址:
adb shell settings put global captive_portal_http_url http://www.google.cn/generate_204
adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204
#可以输入如下命令, 禁止检测网络连接状态.
adb shell settings put global captive_portal_detection_enabled 0
#---------------------------------
#---------- if you are concern to your private data, this is usefull.
#强制开启分区存储
adb shell sm set-isolated-storage on
9. 恢复软件及数据
Bash:
cd 0
ls -1 *.apk | xargs -ti -n 1 adb install --user 0 {}
#------------- after install insular--------------------
cd 10
ls -1 *.apk | xargs -ti -n 1 adb install --user 10 {}
adb push ./Downloads/* /sdcard/Downloads/
hopes this help.
the insular mentioned above is this package: com.oasisfeng.island.fdroid.apk
which will create sperate user space for your storage , called "work profile".
if you bricked your device, try these options:
(Every flash lover should backup a stock image for future!)
RSA solution, flash back to stock firmware. follow Skip to content for windows, follow these commands for Linux:
Bash:
command
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash vbmeta_system vbmeta_system.img
fastboot flash vbmeta vbmeta.img
fastboot flash radio radio.img
fastboot flash bluetooth BTFM.bin
fastboot flash dsp dspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash vendor_boot vendor_boot.img
fastboot flash dtbo dtbo.img
fastboot flash super super.img_sparsechunk.0
fastboot flash super super.img_sparsechunk.1
fastboot flash super super.img_sparsechunk.2
fastboot flash super super.img_sparsechunk.3
fastboot flash super super.img_sparsechunk.4
fastboot flash super super.img_sparsechunk.5
fastboot flash super super.img_sparsechunk.6
fastboot flash super super.img_sparsechunk.7
fastboot flash super super.img_sparsechunk.8
fastboot flash super super.img_sparsechunk.9
fastboot erase userdata
fastboot erase ddr
fastboot oem fb_mode_clear
fastboot reboot
Blank Flash, both windows and linux tools and image contained.
download stock firmware for motorola edge s (nio, XT2125) here: https://mirrors.lolinet.com/firmwar...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
download blankFlash tool here:
https://mirrors.lolinet.com/firmware/motorola/nio/blankflash/blankflash_nio_RRTS31.Q1-84-24-3-6.zip
MSM Xextend is very powerfull, so many custom settings, love and great appreciate !
I've wrote a automatic script tool for this, see
https://github.com/superiums/TrinyFlashScript

Categories

Resources