[GUIDE][WIN]Modify kernel splash! - Xperia Z1 General

Hello everyone!,
Here you'll find a guide on how to modify the kernel splash screen (the image that shows up before the bootanimation) of you Xperia Z1 on almost any kernel!
Requirements:
Download and extract these files into any directory you want: link
A photo editing program like gimp, photoshop, ...
Important info:
For the bootimg.zip file i will use the directory
Code:
c:\boot
And for the convert png to rle file I will use
Code:
c:\RLE
Code:
I am not responsible for any damage done to your phone!! Even though a broken kernel will not hard brick your device, be carefull!
Steps:
1: Copy the kernel you want to modify to
Code:
c:\boot
2: Press shift and right click, then press open command window here.
3: Type this in cmd:
Code:
bootimg.exe --unpack-bootimg bootname.img
4: You do not need the extracted files yet.
5: Open your image editor and create a splash screen to your liking BUT the size has to be exactly 1080x1920 And make sure to save it as a .png!!
6: After creating your splash screen, copy the .png file over to
Code:
c:\RLE\PNG-images
7: Now shift right click and press open command window here, then type:
Code:
PNG-2-RLE splashscreenname
8: Go to the
Code:
RLE-Images
folder and copy your .rle file over to
Code:
c:\boot\initrd
(there are already 2 rle files in the RLE-Images directory, you can ignore them!)
9: Remove the original
Code:
logo.rle
file and rename your custom file to
Code:
logo.rle
.
10: Now you should have your modded
Code:
logo.rle
file in the initrd directory!
11: Go back to
Code:
c:\boot
and shift right click and open command prompt, then type
Code:
bootimg.exe --repack-bootimg
.
12: Now you have 2 files in the
Code:
c:\boot
directory:
Code:
boot-new.img, boot-old.img
.
13: Now flash the boot-new.img file using fastboot!
14: Enjoy your new splash screen
Here are some images I already made:
1:
{
"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:
3:
Enjoy,
noahvt

Mayby off question. Would it be possible to make a script instead of showing a splash screen, turning on the phone when you plug in power?.
Sent from my C6903 using XDA Free mobile app

Related

[Guide] Noobs To Change The Clock & Notification Colour in StatusBar

While I was searching for how to change the clock & notification colour in statusbar
there i got so many guide with lot of way....
I tried them tooo...
But soory to say that very few of them works for mee...actualy
those guide support few devices not for all...
Then one of my friend(Abhishek Kumar Singh) gave me a guide which is a perfect one..
but there also few changes to be done......as the guide is totally messed..
so Here I am going to make a guide for all those who want to change there clock & notification colour.
Requirements:-
1)ColorChange.jarv3.1 [Download]
2)Rootes Android Phone
3)Sdk Installed
4)Little knowedge on Messing with Cmd
Processsss/Working:-
1)Plug in your phone( make sure that usb debugging is ticked on)(Dont't mount the sdcard)
2) open command prompt from Pc..(To open=> click start->run->type cmd->ok)
3) Navigate to the android sdk platform tools folder..
4) Type this commands:
adb remount
adb pull /system/framework/services.jar services.jar
adb pull /system/framework/framework-res.apk framework-res.apk
5)Now extract the colorChangev3.7z & paste the extracted file colorChangev3.jar in platform tools folder
6)Now make a folder called 'framework' inside Platform tools folder & move the services.jar into that folder
7)Create a zip file of the framework folder and name it theme.zip
(steps 7 & 8 shuld be done correctly or u will get errors)
8)Type this commands....
java -Xmx512M -jar colorChangev3.jar theme.zip clock=FFb4ff00 date=FFffffff
(definetly 'FFb4ff00' denotes the clock colour & 'ffffffff' denotes the date colour)
9) When its done it will leave a theme-new.zip in platform tools folder,take the new service.jar file out
& put that in platform tools folder.
10) Its almost done....Now you can take the new services.jar make flashable zip & flash...If you don't know how to make flashable zip then do this.
11) Type this command in already opened cmd
Commands:
adb remount
adb push services.jar /system/framework/
adb push framework-res.apk /system/framework/framework-res.apk
adb shell reboot
That's all you are done now.......:good:
One think you should note that you shouldn't get any error while following this whole process otherwise it will not wrk....
Basically this above process doesn't harm your mobile...But if anything wrong happend with you..Then you can't blame me..
Credits
milrtime83 for his guide​
Please Dont forget to Hit The Thanks Button.......... :good::good::good:
Reserve
{
"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"
}
Resreve

[HOW TO] Decompile + Recompile SecPhone Jellybean 4.1.1 + 4.1.2

This will show you how to Decompile and Recompile SecPhone.apk (Deodexed) for Jellybean 4.1.1 and 4.1.2
Tools Needed:
This zip file: http://www.mediafire.com/?0b2ad2ow254ou3a
Java jdk and environment variables set correctly (if you don't know how, Google it)
Notepad++
7Zip
Decompile:
1. Download attached files and unzip folder to Desktop.
2. Place SecPhone.apk in Tools folder you just downloaded.
3. Hold Shift and right click inside of folder then click "Open command window here". Make sure no files are selected or it will not show.
5. Type apktool d SecPhone.apk and hit enter. This will create a folder called SecPhone.
6. You’re done you have decompiled the apk.
Recompile:
1. Hold Shift and right click inside of folder then click "Open command window here".
2. Type apktool b SecPhone nSecPhone.apk and hit enter. This will error and look something 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"
}
3. Now look at the code. If you look you will see there are 3 errors like this: Desktop\Tools\SecPhone\res\values-es\strings.xml:195: error: (they might look slightly different with your apk).
4. The things you need to fix this are right here (values-es) refers to a folder in the apk Desktop\Tools\SecPhone\res\ and strings.xml refers to an xml file inside that folder. Also if you read the whole line you will see it is some sort of format error. So go to Desktop\Tools\SecPhone\res\values-es\strings.xml and open it with Notepad++.
5. Now refer back to the error log and you will see values-es\strings.xml:195 the 195 refers to the line in the file that is causing the error. Scroll to that line, it says something like "%1$d% del ciclotranscurrido. So what’s the error? Let’s find out. Copy the code between the "" in this case its throttle_time_frame_subtext.
6.Now go to Desktop\Tools\SecPhone\res\values\strings.xml and open that with Notepad++ and search for code you just copied throttle_time_frame_subtext and compare the two files. You can see the difference error code has this %1$d% and the correct code has %1$d٪ so correct the code and save the file. Now do this for all 3 errors.
7. Now with all errors fixed we can Recompile so type apktool b SecPhone nSecPhone.apk and press Enter. This time it will complete without errors.
8. Open original SecPhone.apk with 7zip and open new nSecPhone.apk with 7zip and copy META-INF and AndroidManifest.xml from originalapk to new apk. Rename new apk to SecPhone.apk and its ready to be flashed. Don't forget to Zipalign. DONE!
If this helps you please don't forget the thanks button
Reserved
Thanks for this mate.. I was wondering for a long time on this error
sent from here, there, somewhere!!
Thanks for your work!

[How To] enable CRT Animation for [2.3.x]

CRT Animation On/Off running any GB rom (2.3.x)
Here is the screen Off/On animations mod. An awesome tweak which makes your phone's sleeping animations like old tv's shutting down.
Lets Begin.
[NOTE: Im not responsible for any bricked devices.]
Things needed
1. JAVA - Click Here
2. APK MANAGER - Click Here
3. Notepad++ - Click Here
Procedure
1. Download all the above applications.
2. Open APKMANAGER folder and place your roms "framework-res.apk" in "place-apk-here-for-modding" folder.
(framework-res.apk is placed in "/system/framework/here")
{
"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"
}
3. Open APKMANAGER folder and open "Script.bat".
4. Open "script.bat" and press "9" and hit enter. (this decompiles your framework-res.apk)
5. If sucessful, close this script and go to "APKMANAGER"/"projects"/"framework-res.apk"/"res"/"values" folder. Open "bools.xml"
6. Change
"<bool name="config_animateScreenLights">true</bool>"
to
"<bool name="config_animateScreenLights">false</bool>"
7. Again open script.bat and click on "11". (It will compile the application)
8. It will ask whether it is a system application or not, type "y" and hit enter.
9. It will show
"Aside from the signatures, would you like to copy over any additional files that you didn't modify
from the original apk in order to ensure least # of errors (y/n)
Press "y" and hit enter!
10. It will do the extracting. DO NOT PRESS ANY KEY NOW.
11. Open "APKMANAGER" folder, there will be a new folder "keep". Delete "resources.arsc" file from there.
12. Now open script and hit enter.
And the most IMPORTANT part.
After flashing framework go to settings>Display>Animations, select "All Animations".
AND if you dont want the animation simply change
"<bool name="config_animateScreenLights">false</bool>"
to
"<bool name="config_animateScreenLights">true</bool>"
CREDITS
Daneshm90 for the APKMANAGER
me for the guide
worked on micromax a87
:thunbup:

[TUTORIAL] How to integrate a custom recovery into your custom ROM

XDA PORTAL
Click to expand...
Click to collapse
Hello everyone
In this tutorial i will show you how to integrate the recovery into a custom rom.
This way users will not have to install it separately
{
"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"
}
​
REQUIREMENTS:
You must know how to build a custom rom using Android Kitchen.
You must know how to edit an updater-script using Notepad++.
The WORKING folder of your rom (the one you get from the android kitchen when you extract system.img or zip folder or system.tar).
The recovery's flashable zip.
For this tutorial i am gonna use the PhilZ Touch CWM as example but this method is universal for all recoveries.
So, let's start:
1. Create in the kitchen's WORKING folder, a new folder and name it system2 (in your case working folder's name is gonna be different).
2. Extact the recovery's system folder contents into the system2 folder (the one previously created).
3. From the recovery's META-INF folder open, using Notepad++, the updater-script.
In my case looks like this:
4. Before proceeding, let me explain what is going on with the following lines:
package_extract_file("system/bin/recovery.tar", "/system/bin/recovery.tar");
package_extract_file("system/bin/taimport", "/system/bin/taimport");
package_extract_file("system/bin/taimportx", "/system/bin/taimportx");
package_extract_dir("system/btmgr", "/system/btmgr");
----- package_extract_dir(” “, “/”) – This command extracts all the files from the folder mentioned inside first quotation to the directory inside second quotation. -----
So since you created a new folder named system2, the above lines should be edited and look like this:
package_extract_file("system2/bin/recovery.tar", "/system/bin/recovery.tar");
package_extract_file("system2/bin/taimport", "/system/bin/taimport");
package_extract_file("system2/bin/taimportx", "/system/bin/taimportx");
package_extract_dir("system2/btmgr", "/system/btmgr");
5. Now open, using Notepad++, the updater-script for your rom.
6. Now copy the edited lines from the recovery's updater-script into the updater-script of your rom (add them at the bottom). Remove the show_progress lines. Now save the file.
7. Now you can build your rom and enjoy the integrated recovery!
8. Happy rom building
reserved
Too good
So you are back with your pc i guess
Awesome! Definitely looks much, much better than the "ms-dos" clone I see in my device
Bro @DaRk-L0rD
Very nice and very clear explained, specially for new ones :good:
Very clever tutorial my friend!! :good:
keep rocking...
Nice guide..
U are featured on portal. Congrats
Sent from my C5303 using XDA Premium 4 mobile app
Congratz bro.your post is on portal.nice job
Great, its work for me! :highfive:

General Seeking Help for fixing vmware tools in Android x86_64 images

Hello Friends~!
I decided to play with some forks of android and chrome os in vmware this week, it was a lot of fun!
A problem I would like to create a solution for, is the inability for vmware tools to install natively.
Here is a toolset I prepared called "droidvmtools" DOWNLOAD
I was able to create this toolset based off of the prelGlibc25 Linux iso that came with VMWare, that is stored in Windows in this directory:
{
"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"
}
If you care about the extra steps added to "droidvmtools" I tried to document that process HERE
This exercise is performed using this Prebuilt copy of PrimeOS for VMWare DOWNLOAD
In theory, this method should work on other android images with root access, then likely fail as this example does at the end.
INSTALLATION:
Obtaining the perl binaries:
In termux run the command
Code:
pkg install perl
Then in Root Explorer, go to
Code:
/data/data/com.termux/files/usr/bin
and copy the perl binaries.
Now paste the binaries to:
Code:
/system/bin
To install the Toolset:
Extract droidvmtools and paste it to the root file system. The video goes over this step at 2:34 if you need reference. ( I also used my yt channel to easily dl the tools youtube.com/@jennn/about the tools are there if no usb)
Open a terminal emulator and type:
Code:
su
chmod 777 -R /droidvmtools
Then in Root Explorer, open droidvmtools, select all, copy, and then paste the contents to the root file system
You will be prompted with this message, select these options:
Now when you type:
Code:
perl run.pl
The tools are able to start installation but they crash at this part:
This is the part I am stuck on. I had never heard of recursion until this happened..
Here is a PASTEBIN dump of the code, maybe someone is able to look and see why this would be happening?
This thread is in preparation for a megathread I want to make. If you want to preview some of the images early see HERE
PLEASE NOTE:
I Understand that "Vmware Tools is not supported" in Linux let alone Android, blah blah. Let's try!
I also already know about and have tried every emulator in existence... So Please! Let's refrain from "just use x emulator", this is about problem solving.

Categories

Resources