Related
Ever since I got S-OFF on my G1, I set up a custom splash image. Here's how to do this on the G2.
Info:
The G2 stores the splash image on the /dev/block/mmcblk0p19 partition. By default, this is a white image with green letters spelling 'htc' in the center of the screen.
Prerequisite:
Install and get familiar with the Android SDK see Android SDK | Android Developers also [HOW-TO] ADB for Dummies(How-To Learner's Guide) G1 Android Development
Unlock your T-Mobile G2 / HTC Desire-Z / HTC Vision see [GUIDE] Perma-root and flash ENG HBOOT
Install FFmpeg
Windows:
Extract the ffmpeg.exe file from the bin folder in ffmpeg-r25512.7z
- or Shortcut - get the getsplash.zip from gariak
Install the adb (Android Composite ADB Interface) and fastboot (Android Bootloader Interface) drivers from the android-sdk-windows\usb_driver folder
Mac:
Might find this ffmpeg guide helpful - An easy install of the ffmpeg command line tool - Mac OS X Hints
Backup: (Optional)
To get the current image from the phone, execute this from a root shell:
Code:
dd if=/dev/block/mmcblk0p19 of=/mnt/sdcard/splash.img
On your computer, you can turn this into a PNG using ffmpeg from the command line:
Code:
ffmpeg -f rawvideo -pix_fmt rgb565 -s 480x800 -i splash.img -f image2 splash.png
Flash:
You can set the splash by converting an image you want to a 480x800 resolution PNG file, then use ffmpeg to convert it to raw565 format using the command line:
Code:
ffmpeg -i new_splash.png -f rawvideo -pix_fmt rgb565 new_splash.img
Then with an unlocked (S-OFF) bootloader, flash the new_splash.img file to your phone:
Code:
adb reboot bootloader
fastboot flash splash1 new_splash.img
fastboot reboot
OR you can flash from a terminal window on your phone. Be very careful with this method and triple check that you typed everything correctly so you do not accidentally brick your phone:
Code:
dd if=/mnt/sdcard/splash.img of=/dev/block/mmcblk0p19
References:
Android/HTC/Vision/LinuxAnalysis – TJworld
[Request] MyTouch splash screen?
[TOOL] [Linux / OSX] Splash Screen creator / flasher
gravis86
gariak
An easy install of the ffmpeg command line tool - Mac OS X Hints
wilnotdie
very nice, but what about instead of dd the partition you just use fastboot flash and direct it at the splash partition. but idk, i'm a newb
Using dd is to retrieve the existing boot splash, for those that would like to be able to revert later on, or just for general knowledge.
My cmd sits at "< waiting for device >" - the device is in fastboot and if I reboot the phone I am able to "adb shell" successfully. Any hints? S-OFF and perma-root are done.
EDIT: Nevermind, I got it-needed to install fastboot driver.
Does this replace the HTC logo, T-Mobile G2 logo, or both?
joebobjoe said:
Does this replace the HTC logo, T-Mobile G2 logo, or both?
Click to expand...
Click to collapse
Just the HTC logo.+
How bout replacing the G2 logo?
Any way we can replace the ugly Tmobile G2 splash picture?
If you are using windows, you might have to manually install the fastboot driver the first time you connect it.
Open your device manager without the phone plugged in. Boot to fastboot mode (VOL_D+POWER, then POWER to select fastboot) on your phone. Plug in the phone and watch device manager to see if it finds 'Android Bootloader Interface' or something similar ('HTC Bootloader' is an older driver, but still works). It should show up as USB\VID_0BB4&PID_0FFF if you look at its device id.
If the device is detected as USB\VID_0BB4&PID_0C94, then it's in HBOOT mode, you need to select FASTBOOT from the HBOOT menu (using VOL_U or VOL_D, then POWER to select).
Ive been using a custom bootanimation.zip for weeks. Just push one for another 800x480 device to /data/local/bootanimation.zip
ffff00 said:
Ive been using a custom bootanimation.zip for weeks. Just push one for another 800x480 device to /data/local/bootanimation.zip
Click to expand...
Click to collapse
Is there a howto or anything on how to properly do this?
Greenarcher707 said:
How bout replacing the G2 logo?
Click to expand...
Click to collapse
SRed13 said:
Any way we can replace the ugly Tmobile G2 splash picture?
Click to expand...
Click to collapse
Yes, just push the bootanimation.zip to your sdcard
Code:
adb push bootanimation.zip /mnt/sdcard/bootanimation.zip
then mount the system rw from root terminal on the phone and copy the file
Code:
su
mount -o remount,rw /dev/block/mmcblk0p25 /system
cp /mnt/sdcard/bootanimation.zip /system/media/bootanimation.zip
and then reboot.
If you want to revert to the original bootanimation.zip, you can extract it from the release ROM.
Any way to apply the Nexus One/Cyanogen splash animation on the G2?
TL24 said:
Any way to apply the Nexus One/Cyanogen splash animation on the G2?
Click to expand...
Click to collapse
If someone knows which partition it is stored in, I can dd it. I have CM 6.1 installed on my N1.
TL24 said:
Any way to apply the Nexus One/Cyanogen splash animation on the G2?
Click to expand...
Click to collapse
cparekh said:
If someone knows which partition it is stored in, I can dd it. I have CM 6.1 installed on my N1.
Click to expand...
Click to collapse
The original N1 splash can be found in this post.
The CyanogenMod boot animation can be pulled from the latest nightly. Look in system/media/ for bootanimation.zip and follow the previous post how to apply it to the G2.
tehtide said:
Is there a howto or anything on how to properly do this?
Click to expand...
Click to collapse
Google is your friend.
reukiodo said:
The original N1 splash can be found in this post.
The CyanogenMod boot animation can be pulled from the latest nightly. Look in system/media/ for bootanimation.zip and follow the previous post how to apply it to the G2.
Click to expand...
Click to collapse
Nice, what about the bootanimation for the following??:
Anyone have this one?
TL24 said:
Nice, what about the bootanimation for the following??:
Anyone have this one?
Click to expand...
Click to collapse
That is the CM5 boot animation. You can find it in the Nexus One download section on cyanogenmod.com website.
reukiodo said:
That is the CM5 boot animation. You can find it in the Nexus One download section on cyanogenmod.com website.
Click to expand...
Click to collapse
YOU sir, are THE man! Thanks bro! haha
I was trying to install android market and changed the system to not executable *face palm* now it starts to your kindle has detected a prob. It doesn't fix itself when it trys to wipe. Im on a Mac and know the terminal command to change permissions. But I do not know the directory of the device as it does not show up. Please help. Thanks!
Sent from my LG-P999 using xda premium
Try the [HOW TO] thread at the top of this Kindle Fire General subforum ... [HOW TO] Unbricking/Restoring ...
Zenroy said:
I was trying to install android market and changed the system to not executable *face palm* now it starts to your kindle has detected a prob. It doesn't fix itself when it trys to wipe. Im on a Mac and know the terminal command to change permissions. But I do not know the directory of the device as it does not show up. Please help. Thanks!
Sent from my LG-P999 using xda premium
Click to expand...
Click to collapse
You can use adb to restore the permissions I believe. You should probably just plug in your kindle, launch adb, mount the appropriate filesystems and change the modes. chmod +x should do the trick.
jlocohustler said:
You can use adb to restore the permissions I believe. You should probably just plug in your kindle, launch adb, mount the appropriate filesystems and change the modes. chmod +x should do the trick.
Click to expand...
Click to collapse
I get - exec '/system/bin/sh' failed: No such file or directory (2) - when attempting adb shell inorder to mount.. hmm.. anyway around this (or a fix)? thanks 4 the help
Zenroy said:
I get - exec '/system/bin/sh' failed: No such file or directory (2) - when attempting adb shell inorder to mount.. hmm.. anyway around this (or a fix)? thanks 4 the help
Click to expand...
Click to collapse
This is the exact problem I'm having as well. As far as I've found, (and someone please correct me if I'm wrong), but the only way back now is a factory cable to force fastboot?
WTH? Little help please? I had just got CM7 up and running, went into the file manager and tried to install the gapps from there. A menu came up and said I had to reboot and I've been stuck in Recovery/TWRP mode ever since. What gives? I've searched but not yet found my same problem on here. Please help me, guys.
Please help!!!
Don't panic. You were supposed to install gapps via TWRP. Does it let you into TWRP?
Sent from my Kindle Fire using XDA Premium.
il Stalk3r li said:
Don't panic. You were supposed to install gapps via TWRP. Does it let you into TWRP?
Sent from my Kindle Fire using XDA Premium.
Click to expand...
Click to collapse
Yes, it does. Yeah I figured that one out real quick once I realized I had done so in error. Lol.
Connect to your computer and run:
adb shell
idme bootmode 4000
Then, reboot.
Sent from my Kindle Fire using XDA Premium.
il Stalk3r li said:
Connect to your computer and run:
adb shell
idme bootmode 4000
Sent from my Kindle Fire using XDA Premium.
Click to expand...
Click to collapse
I cant even pull up adb shell. Wtf? I know I have adb...I'm so screwed
Does your computer recognize the device?
Sent from my Kindle Fire using XDA Premium.
il Stalk3r li said:
Does your computer recognize the device?
Sent from my Kindle Fire using XDA Premium.
Click to expand...
Click to collapse
Yep android phone with a composite adb interface
I go to my searchbar and nothing comes up when i type adb shell
Not the searchbar. The command prompt.
Start Menu > Search (Windows 7) > cmd
Sent from my Kindle Fire using XDA Premium.
il Stalk3r li said:
Not the searchbar. The command prompt.
Sent from my Kindle Fire using XDA Premium.
Click to expand...
Click to collapse
gotcha thank you
WTF
il Stalk3r li said:
Not the searchbar. The command prompt.
Sent from my Kindle Fire using XDA Premium.
Click to expand...
Click to collapse
I did and it tells me that:
"adb shell is not recognized as an internal or external command, operable program or batch file"
CD to the directory where you have adb installed.
Example: /AndroidSDK/Platform-Tools
Sent from my Kindle Fire using XDA Premium.
il Stalk3r li said:
CD to the directory where you have adb installed.
Example: /AndroidSDK/Platform-Tools
Sent from my Kindle Fire using XDA Premium.
Click to expand...
Click to collapse
Sorry man, bear with me...I know the folder you speak of but how do I do that? Thank you for your patience
It's fine. Do you have the path to your sdk? If so, in the command prompt...
cd C:\Path-To-Sdk\Etc\Etc
Sent from my Kindle Fire using XDA Premium.
il Stalk3r li said:
It's fine. Do you have the path to your sdk? If so, in the command prompt...
cd C:\Path-To-Sdk\Etc\Etc
Sent from my Kindle Fire using XDA Premium.
Click to expand...
Click to collapse
so on and so forth to the platforms-tools then to the adb?
Yes, adb will be there. Then you can issue the commands I gave to you.
adb shell
idme bootmode 4000
Sent from my Kindle Fire using XDA Premium.
il Stalk3r li said:
Yes, adb will be there. Then you can issue the commands I gave to you.
adb shell
idme bootmode 4000
Sent from my Kindle Fire using XDA Premium.
Click to expand...
Click to collapse
I typed:
C:\android\platform-tools
Which is where the adb is located and I get this
http://i.imgur.com/Hglve.png
Issue the commands now.
Sent from my Kindle Fire using XDA Premium.
il Stalk3r li said:
Issue the commands now.
Sent from my Kindle Fire using XDA Premium.
Click to expand...
Click to collapse
Now I got this:
http://i.imgur.com/ny45G.png
I even tried routing it to the adb file that came in the tools of my kindle fire utility as you see at the top, but nothing.
I've tried every way on the kfu post and no go. anyone have a simple method they r willing to share?
did you have the .android in your home directory?
how windows recognize your kf?
what room do you have installed?
ADB not recognize KF
deathisonlyfreedom said:
I've tried every way on the kfu post and no go. anyone have a simple method they r willing to share?
Click to expand...
Click to collapse
I am having the same problem, tried all methods, tried all different windows OS.
Device manager recognize KF as ADB device/interface, but when check list under ADB command prompt, it's not there. Can't run KFU to root.
Please help, anyone.
.android folder in your home dir and adb_usb.ini with 0x1949 and 0x18d1 entries in it in the folder
b63 said:
.android folder in your home dir and adb_usb.ini with 0x1949 and 0x18d1 entries in it in the folder
Click to expand...
Click to collapse
I don't know, I am at work, when I get home I will check for those. Thanks.
Have you installed the Android SDK and the Android USB Drivers? I was rooting my KF and forgot about this, installed it and it worked perfectly.
mugabuga said:
Have you installed the Android SDK and the Android USB Drivers? I was rooting my KF and forgot about this, installed it and it worked perfectly.
Click to expand...
Click to collapse
I did install USB driver but not Android SDK. I did install Kindle ADB though.
just a hint: if you download the latest kfu there is everything you need - the drivers and all necessary commands in the tools folder (ie with sdk you have to get the fastboot command as it is not included) - you don't need the sdk at all and save a lot of time and space
The newest Krupp does indeed fix the not found issues
Sent from my Kindle Fire using Tapatalk
jgdovin said:
The newest Krupp does indeed fix the not found issues
Sent from my Kindle Fire using Tapatalk
Click to expand...
Click to collapse
Where can I find that "newest Krupp"???
@b63: Attached are the pictures I captured, please look at them and tell me what I did wrong, how to fix it?
Thanks, bro
Alpha Release of Gran PC's Restore Tool
https://peniscorp.com/KindleRoot_dist_windows_0.1.zip
*reserverd*
kyleberry.graphics said:
I have sucessfully unbricked a bootlooped (no adb) kindle KFSOWI. Guide to follow tomorrow
Click to expand...
Click to collapse
lvl 1 - kill the kindle - completed
loading....
lvl 2 - kernel firewall - started
great news
mint-an said:
lvl 1 - kill the kindle - completed
loading....
lvl 2 - kernel firewall - started
great news
Click to expand...
Click to collapse
For the discerning reader, the reason i havent posted a solution yet is that while i managed to get the device to boot, the image resized the partition to the size of the image so the /system cannot hold ANY additional...ANYTHING.
fastboot will not write a sparse image so im trying to figure out how to push the stock 11.3.2.1 .bin and reroot
kyleberry.graphics said:
For the discerning reader, the reason i havent posted a solution yet is that while i managed to get the device to boot, the image resized the partition to the size of the image so the /system cannot hold ANY additional...ANYTHING.
fastboot will not write a sparse image so im trying to figure out how to push the stock 11.3.2.1 .bin and reroot
Click to expand...
Click to collapse
yeah i saw your g+ post about it, posted my thought to but I don't thing they are going to help you
kyleberry.graphics said:
a better guide will follow, but for now, download and unzip this image:
Click to expand...
Click to collapse
I cannot download the tar.gz file from google. It brings up a network error.
j.jacobsen said:
I cannot download the tar.gz file from google. It brings up a network error.
Click to expand...
Click to collapse
Works here.
Thanks to all the devs here for making this possible...
micro17 said:
Works here.
Thanks to all the devs here for making this possible...
Click to expand...
Click to collapse
Working on an automated script now =)
kyleberry.graphics said:
Working on an automated script now =)
Click to expand...
Click to collapse
Restore tool uploading now. see first post..
kyleberry.graphics said:
Restore tool uploading now. see first post..
Click to expand...
Click to collapse
gonna try this now man... fingers crossed
---------- Post added at 10:04 AM ---------- Previous post was at 09:42 AM ----------
PHP:
kyleberry.graphics said:
Restore tool uploading now. see first post..
Click to expand...
Click to collapse
i ran your runme.bat. everything went fine but when i booted it up, it got stuck at the boot logo again but instead of the one with the orange logo i got the grey dull one... please help
davethebrave14 said:
gonna try this now man... fingers crossed
---------- Post added at 10:04 AM ---------- Previous post was at 09:42 AM ----------
PHP:
i ran your runme.bat. everything went fine but when i booted it up, it got stuck at the boot logo again but instead of the one with the orange logo i got the grey dull one... please help
Click to expand...
Click to collapse
The problem is the new.img it worked for me because I dint wipe any data so I kept su. Im trying to get a rooted system.img today
Sent from my SCH-R970 using xda app-developers app
hope you'll get the rooted system.img soon!
So i could try to get my messed up kfsowi back to stock... then root it again.
ikarugaski said:
hope you'll get the rooted system.img soon!
So i could try to get my messed up kfsowi back to stock... then root it again.
Click to expand...
Click to collapse
A new all-in-one program with a user interface is being designed as we speak (but not by myself) =)
Sent from my KFSOWI using xda app-developers app
That sounds gorgeous! So show it to me please. :highfive:
ikarugaski said:
That sounds gorgeous! So show it to me please. :highfive:
Click to expand...
Click to collapse
https://plus.google.com/communities/115612726860884592519
Hello,
by mistake, i flashed the files for KFHD 2012 (Tate).
During my insuccessful operation, i also wiped the cache of the kindle.
I think that's the reason, why the script does not work.
Are there any news about your Factory Restore Tool and a rooted system.img?
Thank you.
Thanks kyleberry for the link! Then i'll have to wait for Gran PC's tool. Hope for a release soon.
kyleberry.graphics said:
https://plus.google.com/communities/115612726860884592519
Click to expand...
Click to collapse
Thanks a bunch for this.
the tool didnt do it, the timing of getting adb to work seems to me very difficult if you are booting with a fastboot cable , and then want to boot to the mini system img.
BUT....
if you let the tool install the minisystem.img
and then can get adb access , the following post on the google group got me back to stock
How to reinstall FireOS
Botched your /system partition beyond recognition? Everything is broken? Dropped your #Kindle in a sea of piss and need to RMA it? Fear not! You can just reinstall FireOS and get it looking just as if we had never touched it!
First of all, you'll have to root your tablet. I'm assuming you know how to do this!
Once that's done, put this file -- https://s3.amazonaws.com/kindle-fire-updates/update-kindle-11.3.1.0_user_310084920.bin -- in /sdcard/ (you can use adb push).
Then run these commands:
adb shell
su
[email protected]:/# cp /sdcard/update-kindle-11.3.1.0_user_310084920.bin /cache/update.zip
[email protected]:/# echo --update_package=/cache/update.zip > /cache/recovery/command
[email protected]:/# exit
[email protected]:/$ exit
adb reboot recovery
If everything went well, you should see the 'installing update' screen -- and once you're booted, we're back to stock! We did it!!!!!!
I did it slightly differently, I just renamed the bin on my pc first, and adb pushed it to /cache
I had to mount rootfs for r/w to do the adb push into /cache
adb shell
su
mount -o rw,remount rootfs /
chmod 777 /cache
mikeataol said:
Thanks a bunch for this.
the tool didnt do it, the timing of getting adb to work seems to me very difficult if you are booting with a fastboot cable , and then want to boot to the mini system img.
BUT....
if you let the tool install the minisystem.img
and then can get adb access , the following post on the google group got me back to stock
How to reinstall FireOS
Botched your /system partition beyond recognition? Everything is broken? Dropped your #Kindle in a sea of piss and need to RMA it? Fear not! You can just reinstall FireOS and get it looking just as if we had never touched it!
First of all, you'll have to root your tablet. I'm assuming you know how to do this!
Once that's done, put this file -- https://s3.amazonaws.com/kindle-fire-updates/update-kindle-11.3.1.0_user_310084920.bin -- in /sdcard/ (you can use adb push).
Then run these commands:
adb shell
su
[email protected]:/# cp /sdcard/update-kindle-11.3.1.0_user_310084920.bin /cache/update.zip
[email protected]:/# echo --update_package=/cache/update.zip > /cache/recovery/command
[email protected]:/# exit
[email protected]:/$ exit
adb reboot recovery
If everything went well, you should see the 'installing update' screen -- and once you're booted, we're back to stock! We did it!!!!!!
I did it slightly differently, I just renamed the bin on my pc first, and adb pushed it to /cache
I had to mount rootfs for r/w to do the adb push into /cache
adb shell
su
mount -o rw,remount rootfs /
chmod 777 /cache
Click to expand...
Click to collapse
Yeah the tool pretty much does just that (the steps on my guide, not your chmod shenanigans.. although that's a nice idea!)
Also, if you're gonna use the tool, please use the latest version (@kyleberry.graphics, update OP please):
https://peniscorp.com/KindleRoot_dist_windows_0.1.1.zip
Gran PC said:
Yeah the tool pretty much does just that (the steps on my guide, not your chmod shenanigans.. although that's a nice idea!)
Also, if you're gonna use the tool, please use the latest version (@kyleberry.graphics, update OP please):
https://peniscorp.com/KindleRoot_dist_windows_0.1.1.zip
Click to expand...
Click to collapse
can you help please I have run the tool everything went fine but when I boot kindle ijust get grey kindle writing still or if I plug fastboot cable in I get fastboot still nothing has chaned kindle still stuck at kindle writing am I ding something wrong what gives can you help me many thanks