Mi 6x splash.img unpack/repack - Xiaomi Mi A2 / 6X Themes, Apps, and Mods

unpack.sh
Code:
dd if=splash.img count=16384 skip=1 > 1.img
dd if=splash.img bs=16384 skip=1 count=6220854 > 2.bmp
dd if=splash.img bs=6237238 skip=1 count=6220854 > 3.bmp
dd if=splash.img bs=12458092 skip=1 count=6220854 > 4.bmp
dd if=splash.img bs=18678946 skip=1 count=6220854 > 5.bmp
repack.sh
Code:
cat 1.img > splash.img
cat 2.bmp >> splash.img
cat 3.bmp >> splash.img
cat 4.bmp >> splash.img
cat 5.bmp >> splash.img

You can find offset values with binwalk command:
{
"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"
}
Then you can split splash.img
1. file is img file and other files are bitmap
You can change bitmap images.

parduscix said:
unpack.sh
Code:
dd if=splash.img count=16384 skip=1 > 1.img
dd if=splash.img bs=16384 skip=1 count=6220854 > 2.bmp
dd if=splash.img bs=6237238 skip=1 count=6220854 > 3.bmp
dd if=splash.img bs=12458092 skip=1 count=6220854 > 4.bmp
dd if=splash.img bs=18678946 skip=1 count=6220854 > 5.bmp
....
Click to expand...
Click to collapse
Are you sure about these commands? I think they're wrong.
Maybe they should be:
Code:
dd if=splash.img bs=1 count=16384 > 1.img
dd if=splash.img bs=1 skip=16384 count=6220854 > 2.bmp
dd if=splash.img bs=1 skip=6237238 count=6220854 > 3.bmp
dd if=splash.img bs=1 skip=12458092 count=6220854 > 4.bmp
dd if=splash.img bs=1 skip=18678946 count=6220854 > 5.bmp

Related

How do I apply a theme?

Hi,
I would like to use the stock (light gray) Android theme with my Hero. Is there a way that I can download it and apply it to my phone?
Thanks!
do you mean the defualt google android theme without Sence UI?
aka...
{
"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"
}
instead of
Where did you get your big clock from?! Can't ifnd one anywheree"
How do you apply a new theme period? I just ordered my hero and I wanted to theme it as soon as I got it.
the big clock is part of Sence UI (htc default interface for the HTC hero)
themes, I believe you need to be rooted or custom ROM then you just apply update.zip of your sd card (don't hold me to this i aint tried it
Stock theme
frandavid100 said:
Hi,
I would like to use the stock (light gray) Android theme with my Hero. Is there a way that I can download it and apply it to my phone?
Thanks!
Click to expand...
Click to collapse
diesel556
Extracted/modified from MoDaCo's Rosie Removal Update.zip found here (http://android.modaco.com/content/h...m/291477/13-08-1-0-modaco-hero-rosie-remover/). A Nandroid backup is recommended beforehand.
NOTE: This only removes the modified homescreen and widgets. The HTC dialer, and other HTC modifications are untouched.
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
rm /system/app/Rosie.apk
rm /system/app/Rosie.odex
rm /system/app/htcbookmarkwidget.apk
rm /system/app/htcbookmarkwidget.odex
rm /system/app/htccalendarwidgets.apk
rm /system/app/htccalendarwidgets.odex
rm /system/app/htccontactwidgets.apk
rm /system/app/htccontactwidgets.odex
rm /system/app/htcmailwidgets.apk
rm /system/app/htcmailwidgets.odex
rm /system/app/htcmsgwidgets.apk
rm /system/app/htcmsgwidgets.odex
rm /system/app/htcsearchwidgets.apk
rm /system/app/htcsearchwidgets.odex
rm /system/app/htcsettingwidgets.apk
rm /system/app/htcsettingwidgets.odex

S5830 boot.img problem, can't find .rle

Hey all, my problem is that I can't find the .rle image in the extracted ramdisk. I can find a bunch of things except that , if anyone knows where's the .rle image, so I can replace it with the one I want
Image of what I find in ramdisk:
{
"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"
}
Thanks in advance.
Originally Posted by alansj
How to create a boot image:
1. put a properly encoded initlogo.rle in root directory
2. insert this line in init.rc in the boot: section (optional, this disables the stock android boot animation)
setprop debug.sf.nobootanimation 1
3. wrap it all up and flash it to mtd2
Attached:
1. A boot image with these changes made. To try it on your phone, first back up your mtd2 image (the boot image). Type the following in a root shell to back it up to your sdcard:
cat /dev/mtd/mtd2 > /sdcard/mtd2.img
Then, unzip boot-rc29-customlogo.img.zip it and stick it on your sdcard and type the following in a root shell:
cat /dev/zero >> /dev/mtd/mtd2
flash_image boot /sdcard/boot-rc29-customlogo.img
(when you do the cat, it will tell you "write: No space left on device," which is fine)
To restore your original boot image, do the cat and then flash_image your mtd2.img backup.
2. Samples of the raw image as well as the rle encoded version.
3. A nifty photo of this working on my phone.
http://forum.xda-developers.com/attachment.php?attachmentid=128380&d=1226173630
Click to expand...
Click to collapse
this should help
badjaguar007 said:
this should help
Click to expand...
Click to collapse
Thanks at home I'll try to do it. D
Sent from my GT-S5830 using xda app-developers app

[GUIDE][UBUNTU/LINUX]How to extract system images and get all cool 'stuffs'

In this small tutorial I'll explain how to extract apps from system images of Nexus devices using simg2img.
Requirements:
1. System.img or TAR file containing system.img. If you downloaded nexus images from Google sources you need to untar it to get .img file. Ubuntu's inbuilt archive extractor is enough for this.
2. simg2img - download it from mediafire (21KB file)
3. Computer running on Ubuntu or any other linux operating system.
Steps:
1. Create new folder in your home directory e.g. Nexus. Now move simg2img and system.img file to that folder.
{
"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"
}
2. Make the simg2img file executable. Right click on file>Go to permissions tab>Check "Allow executing file as program"
3. Create another folder in home directory e.g. nexussystem
4. Now lets make the image mountable.
Code:
CTRL+ALT+T
sudo apt-get install nautilus-open-terminal
Close terminal and browse to nexus folder. Right click and select open in terminal. Execute following commands...
Code:
./simg2img system.img nexussystem.raw
6. Mount the image.
Code:
sudo mount -t ext4 -o loop nexussystem.raw ~/nexussystem/
7. Browse the mounted image just like flash drive and copy all content you need. To unmount just click on eject icon.
Happy decompilation
Nice tutorial. Can you tell me which desktop environment are you using? I like it.
And now the 10$ question : how do you rebuild it with your mofifications ? Unless you can directly edit in the mounted file system ?

how to enable multiwidow in [MRA58M] Marshmallow

boot in recovey and mount system
connect phone to pc (install abd drivers if not installed check your device manager for that in pc)
open adb and type
HTML:
adb pull /system/build.prop
open build prop file and
then change your build type from user to userdebug
save it then follow instruction
HTML:
adb push build.prop /system/
open shell in command prompt now
HTML:
adb shell
then type
HTML:
cd system
chmod 644 build.prop
and reboot device as normal
boot you have multiwindows now
For already rooted devices
downlaod given buildprop editor given in attachment and install it
And change the value of build type to userdubug as shown below in screenshot
{
"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"
}
:good:
Any possible way to use RRO layers without root?
Is there anu way to do this without pc ? I have custom recovery and root access running Android 6.0 Marshmallow on my Karbonn Sparkle V
Dhruv Goswami said:
Is there anu way to do this without pc ? I have custom recovery and root access running Android 6.0 Marshmallow on my Karbonn Sparkle V
Click to expand...
Click to collapse
Well then it's piece of cake
Install or use es file explorer or root file manger and open
Device/system/build.Prop
And edit it as mentioned above save it n just reboot normally
Viola work is done

piKVM mousepoll set to 0 but shows 10

Hey all I am new at this **Raspberry Pi** stuff.
The Raspberry Pi 4 specs:
Code:
Platform:
Base: Raspberry Pi 4 Model B Rev 1.5 (2GB)
Serial: ---------------
Temperature:
CPU: 32.128°C
Throttling:
Freq capped: No; Never
Throttled: No; Never
Undervoltage: No; Never
KVMD: 3.139
Streamer: 5.21 (ustreamer)
HAS_PDEATHSIG: Yes
WITH_GPIO: Yes
WITH_PTHREAD_NP: Yes
WITH_SETPROCTITLE: Yes
WITH_SYSTEMD: Yes
Linux kernel:
Machine: armv7l
Release: 5.15.34-4-rpi-ARCH
Version: #1 SMP Tue Jul 5 12:10:16 MSK 2022
I recently put together the pikvm.org (the Geekworm X630-A2 Auido Hat with the X630 Hdmi Input Bridge TC358743) so that I would be able to control/see my laptop that's in my server room to my office in another room. Everything works fine but the mouse movement still seems a little slow.
I have done the following:
Placed the following command in the cmdline.txt file:
Code:
usbhid.mousepoll=0
{
"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"
}
Placed the following command in the config.txt file:
Bash:
usbhid.mousepoll=0
Prior to doing that the command
Bash:
systool -m usbhid -A mousepoll
gave me this:
After doing the 2 above usbhid command and rebooting I did that same command and now it showed:
However, looking at the dashboard of the πKVM I still see that it has the mouse set to 10. The slider does not seem to go any lower than that.
So me being new at this I am just wondering should this also be showing the 0 instead of the 10 since the output of systool -m usbhid -A mousepoll shows 0?

Categories

Resources