Custom PhaseBeam Live Wallpaper! ;) - Android Themes

This is very simple&funny MOD to make our personal PhaseBeam livewallpaper with our preferred logos, 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"
}
We need:
- apktool (Dev-Host - [Window XP_7_8][GB_ICS_JB] Apktool and baksmaling + Signer v2 by ibanez7.zip - The Ultimate Free File Hosting / File Sharing Service)
- PhaseBeam.apk and framework-res.apk from Your ROM
(check my other guide for more info and links about apktool: http://forum.xda-developers.com/showthread.php?p=44997467#post44997467)
Let's start:
1) Copy the PhaseBeam.apk & Framework-res.apk to apktool folder and open cmd on this folder:
Simply hold down the Shift key and right-click a folder. The context menu will contain an entry, "Open command window here”
Once the command window has opened; you need to install the framework-res.apk… simply and easily type the following command:
Code:
[COLOR="#FF0000"]apktool if[/COLOR] framework-res.apk
You will see something like THIS:
Code:
I: Framework installed to: C:\Users\username\apktool\framework\1.apk
We will now decompile the PhaseBeam.apk file. To do this, type the following command:
Code:
[COLOR="#FF0000"]apktool d[/COLOR] PhaseBeam.apk
We will see something like this:
Code:
I: Loading resource table…
I: Loaded
I: Decoding file-resources…
I: Decoding values*/* XMLs…
I: Done
I: Copying assets and libs…
After you see that, you should notice that a new file has been added to the apktool folder, which should be named “PhaseBeam”. Inside that folder, you will observe the following folders/files; assets; build; dist; res; AndroidManifest.xml; apktool.yml. The files that we are worried about are in the “res” folder.
Navigate to drawable-nodpi and you'll find 3 files.
We need to modify dot.png
Here is, for example, how I modify this Dot:
You can add Your preferred logo inside the Dot... using Gimp, Paint.net... Just make sure to save new Dot mantaining .png format and bit-depth autodetection
Once done just compile back:
Code:
[COLOR="#FF0000"]apktool b[/COLOR] PhaseBeam
Now follow those important steps:
Once this is complete, navigate back to the apktool folder and to the PhaseBeam folder.
Now we need to navigate to
build/apk and look for the following files:
AndroidManifest.xml.
Now this is important, we need to replace this file with the AndroidManifest.xml file from the original unzipped PhaseBeam.apk located in apktool folder.
So open the original PhaseBeam.apk with 7-zip, and copy “META-INF” and “AndroidManifest.xml”.
Once you have those copied from the original unzipped PhaseBeam.apk, relocate back to the apktool folder/PhaseBeam/build/apk and paste both of them. If asked to replace, CLICK YES OR REPLACE ON ALL WARNINGS THAT POP UP!!!!
Now we need to back out to the PhaseBeam folder in apktool and click on the folder that is named “dist” where the freshly compiled PhaseBeam.apk is located once we type build command in the command prompt). Once inside the “dist” folder, you will see a PhaseBeam.apk file. DELETE IT…
We never use the first PhaseBeam.apk that we compile, because we needed to added the META-INF and AndroidManifest.xml files for signing purposes. Once you have the 1st compiled PhaseBeam.apk deleted, return to the command prompt and enter the compile command again and compile a 2nd PhaseBeam.apk.
Code:
[COLOR="#FF0000"]apktool b[/COLOR] PhaseBeam
The 2nd PhaseBeam.apk will appear in the “dist” folder and is the usable PhaseBeam.apk.
(thanks to APatte111 for this important part of the guide)
• Now just copy your personal PhaseBeam it under /system/App giving proper permissions rw rr... •​

Related

Signing .zip files

As the titel says i want to try to add a sign key for my own boot image, just to mix something together, but everytime i try, it moves everything into a folder called the same as the folder name... it even creates a META-INF... but if i sign one exsisting rom, it does the same!
what do i do wrong?
I can only tell you how I do it:
I first extract the ROM i want to modify into a separate folder (let's call it ROM). So the folder structure in ROM looks like this:
Code:
2.041.856 boot.img
<DIR> data
<DIR> META-INF
<DIR> system
Now I modify what I have to modify and then I delete the following files:
Code:
META-INF\CERT.RSA
META-INF\CERT.SF
META-INF\MANIFEST.MF
Now I go into the folder ROM again, select every file and folder and zip it into an archive file. I assume u have already the signapk.jar (which can be used also to sign update.zip files). The syntax is:
Code:
[B]java -jar .\signapk.jar .\testkey.x509.pem .\testkey.pk8 .\update.zip .\signed-update.zip[/B]
Then wait a little bit and it should become a fully flashable signed zip archive...hope this helps...
TheSSJ said:
I can only tell you how I do it:
I first extract the ROM i want to modify into a separate folder (let's call it ROM). So the folder structure in ROM looks like this:
Code:
2.041.856 boot.img
<DIR> data
<DIR> META-INF
<DIR> system
Now I modify what I have to modify and then I delete the following files:
Code:
META-INF\CERT.RSA
META-INF\CERT.SF
META-INF\MANIFEST.MF
Now I go into the folder ROM again, select every file and folder and zip it into an archive file. I assume u have already the signapk.jar (which can be used also to sign update.zip files). The syntax is:
Code:
[B]java -jar .\signapk.jar .\testkey.x509.pem .\testkey.pk8 .\update.zip .\signed-update.zip[/B]
Then wait a little bit and it should become a fully flashable signed zip archive...hope this helps...
Click to expand...
Click to collapse
thats where i dont get it xD what do i zip, and how? all folders clustered into one?
or how do i do it? xD
i really want to know how! >.<
I think I expressed myself very clearly but here are screenies (have a look at the current directory):
Step1
{
"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"
}
Step2
Step3
Step4
Step5
If you don't get this, noone can help you
worked! weeee! xD now i just need to learn to add/remove apps and i'm flying!
Test Sign also works... Where the frig did my copy go?!

[BOOT ANIMATION / SHUT DOWN ANIMATION] Nexus S Alternate Colors

I replaced the Google RGBY colors with alternate hues.
NOTE: you need to extract this file.
Inside you'll find your bootanimation.zip and the "shutdown" folder:
Copy the "shutdown" folder into your /system/media/video folder.(Delete or backup the original shutdown folder)
Copy the bootanimation.zip into your system/media 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"
}
everytime i try to place a boot animation in system/media i get an error, i was told to mount in r/w so i used sgs tools script but that didnt work.
ksimilie said:
everytime i try to place a boot animation in system/media i get an error, i was told to mount in r/w so i used sgs tools script but that didnt work.
Click to expand...
Click to collapse
use root explorer, makes things way easier
I keep getting an error that there isn't enough room
Sorry if the instructions were unclear.
You will have to make the /system/ folder Read/Write before you can make any changes, then change it back to Read Only again when you are finished.
In Root Explorer, look at the upper right-hand corner and you will see a grey button with "Mount R/W", click the button and it will change to "Mount R/O". Now it will allow you to make changes...
Using Root Explorer, navigate to your system/media/ folder and copy bootanimation.zip there. Then move to system/media/video/. Backup or delete the current shutdown folder, then copy the new shutdown folder there...
When you are done copying the files into the /system/ folder, click the "Mount R/O" button and you're done.
AtariBorn said:
Sorry if the instructions were unclear.
You will have to make the /system/ folder Read/Write before you can make any changes, then change it back to Read Only again when you are finished.
In Root Explorer, look at the upper right-hand corner and you will see a grey button with "Mount R/W", click the button and it will change to "Mount R/O". Now it will allow you to make changes...
Using Root Explorer, navigate to your system/media/ folder and copy bootanimation.zip there. Then move to system/media/video/. Backup or delete the current shutdown folder, then copy the new shutdown folder there...
When you are done copying the files into the /system/ folder, click the "Mount R/O" button and you're done.
Click to expand...
Click to collapse
it says:
Paste Failure
There was not enough free disk space to complete the past operation.
Please note that the free space displayed by Root Explorer (as reported by linux) is not always 100% accurate.
*Edit: In my settings, I have 12.1gb available on my internal
AtariBorn said:
I replaced the Google RGBY colors with alternate hues.
NOTE: you need to extract this file.
Inside you'll find your bootanimation.zip and the "shutdown" folder:
Copy the "shutdown" folder into your /system/media/video folder.(Delete or backup the original shutdown folder)
Copy the bootanimation.zip into your system/media folder
Click to expand...
Click to collapse
is there a Nexus Boot animation that is bigger??

[GUIDE] File format/location changes w/ MIUI v4 photoframe widget (and other themes)

So after searching the intarwebz for considerably longer than should have been necessary, I decided to write this up, hoping it might save someone else some time with this.
First of all, I really liked this one photoframe mod called StickyTape. After a while of searching (and a dozen or two dead download links later), I finally found a working link, only to see the MIUI theme manager not recognize it. Long story shot, it came down to two issues.
1) the mtz was in the wrong folder. For previous releases, I found somewhat conflicting info. One source said the photoframe should go in /sdcard/MIUI/gadget/. Another said it should go in /sdcard/MIUI/gadget/photo_frame. I also read sources that said the archive should be extracted into that folder, and others that said not to extract it. Both are wrong.
2) format of the files in the mtz was incorrect.
Here's how it works now.
1) For many of the current photoframe mods you might come across, the file structure will be pretty much the same. If you download an .mtz file, rename it to a .zip file. Then extract the contents of that zip file. (If you use 7zip, you should be able to right-click it and extract it using the 7zip options in the context menu without renaming the file extension.)
The files in this archive are always the same.
image.png
frame.png
filter.png
description.xml
a folder named "preview" with an image preview for the mod. for the photoframe, it will be one or both of these:
preview_photo_frame_big_0.png
preview_photo_frame_small_0.png
The problem is that many of the mods you currently may come across, will not have the files compressed. It will look 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"
}
2)What's different now is that the preview folder and xml file are not compressed, but the 3 images must be bundled into a zip file called "photoframe_2x2", where the 2x2 part changes, depending on whether it's a 2x2, 2x4, or 4x4 photoframe. Regardless of what frame it is, that is always the file name. The mtz that it's in, will tell you which one it is. This is true of other theme mtz files now as well. The content must be compressed in a zip file (with the .zip extension removed).
3) after you have extracted the images and made the changes you want to make, select the 3 images, right-click and select "Add to Archive." I'll continue with the StickyTape as my example:
For Archive Format, select zip. For compression method, I don't know if it matters, but I chose "Store." The default option is "Normal."
4) Once you have created the zip file, rename it by removing the ".zip" from the end of the file name. If it's not already names "photoframe_2x2" or whatever size it is, then do that as well. When you get a warning about changing the extension possibly making the file unusable, just tell Windows to shut up.
5) Now you should have 3 items. The preview folder, the description.xml file, and the photoframe zip archive that does not have a .zip file extension. For the description.xml file, it contains the following:
Code:
<?xml version="1.0" encoding="utf-8"?>
<photo_frame>
<!-- t: hxw 1: 1x2 2: 2x2 8: 4x4 -->
<type>2</type>
<title>StickyTape2x2</title>
<version>0</version>
<platformVersion>0</platformVersion>
</photo_frame>
The only thing you will need to change is the "type" option and the title. As indicated by the line above it, enter type "1" if it's a 1x2, "2" for a 2x2, etc.
Also, give the mod a name on the title line.
6) Now you'll do the same thing as you did in step 4 with these 3 items. Highlight all 3, right-click and "add to archive" and select zip.:
7) rename the zip file by changing the file extension from ".zip" to ".mtz"
8) Copy the mtz to /sdcard/MIUI/theme. the /MIUI/gadget folder is not used. On some builds (like the unofficial port for my Skyrocket) the location is /emmc/MIUI/theme as /emmc is the internal sdcard while /sdcard or /mnt/sdcard is the external sdcard. Now, just add a widget and select the frame you added and enjoy.
link for the StickyTape2x2 mtz:
https://www.dropbox.com/s/mhbfu390alhzb4d/StickyTape2x2.mtz

[GUIDE] Resizing/Editing ADW icons for Widgetsoid

Hello everyone, let me start off by saying I am new to the forum so any input, advice, or corrections are more than welcome and much appreciated. This thread is a step by step guide on how to edit icons primarily for Widgetsoid but also any other applications that use an ADW theme. The donate version of Widgetsoid has a feature for using ADW theme icons, however a standard 96x96 pixel icon will not fit right and won’t allow room for text below, they also appear to be sized for elderly people. So after a couple hours of reading online and tinkering with both windows and android I have found a way to edit the source PNG/Image files, replace the originals, and reinstall the apk file. So here are the programs and applications required…
-----Windows Programs Required-----
1. 7zip or alternative program (http://www.7-zip.org/)
2. Icon Set-Builder (http://iconsetbuilder.echtzeitig.de/download.html) Download the MSI file and install
-----Android Applications Required-----
3. ES File Explorer or alternative application (https://play.google.com/store/apps/details?id=com.estrongs.android.pop&hl=en)
4. ZipSigner 2 (https://play.google.com/store/apps/details?id=kellinwood.zipsigner2&hl=en)
Ok so once you have installed all of the above you are ready to begin editing the images inside your apk file. Here are the steps…
------------------------------------------------------------
1. Place the apk file on your desktop and make a copy
2. Right click the copy of the apk and select open archive with 7zip.
3. Find the source image files you wish to edit and drag the files/folder to your desktop. (if editing all files in a folder move the entire folder to your desktop, empty zip folders will be deleted automatically)
4. Open Icon Set-Builder and go to tools, then click “open file with explorer” a menu will then drop, select “assets”. Then open the “IconSets” folder and then the “My App Icons” folder.
5. Delete or move the icons from here and replace with the Image files you wish to resize/edit, then go to “Icon set” at the top of the program and select “My App Icons” (you should see the first image in the folder appear in the program)
6. Make any changes you desire, I believe Icon Set-Builder has additional plugins from their website for further customization. (Widgetsoid users, 64x64 pixels is 2/3 the size of regular adw icons and fits very well compared to standard 96x96 pixel adw icon)
7. Now simply click generate and it generates the images in a batch sequence, all in a matter of seconds.
8. Now it should open a folder with the edited files, if not go to tools, open w/explorer, and exports. Drag and drop the folder to your desktop.
9. Now open the apk again with 7zip and replace files/folder (do not extract, select "open archive")
10. Now create a folder on your desktop called META-INF, delete the META-INF folder from the apk and replace with the empty META-INF folder you just created (if there is an error close the archive and re-open, it should accept the empty META-INF folder now). Now replace the original images or original folder inside the application and replace them with your edited files/folder. Close 7zip and place the apk on your sd card.
11. Now using ZipSigner 2 type in the path to the edited apk file and rename the output file. Auto test key is the default setting and doesn’t need to be changed, now sign the file.
12. Open your file manager and install the apk file.
------------------------------------------------------------
Now the reason for signing the apk is because the file was edited and in most cases the signature will be broken and the apk will not install.
Here is a screenshot comparing my resized icons (left side) to a similar adw icon with original 96x96 pixel dimensions. (left icon is 64x64, right is 96x96).
{
"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"
}

[Guide][noobs][theming basic and background]

first dont blame me if anything goes wrong with you just search before ask
this guide is for noobs those who want to have a background basic on theming
second sorry for my bad en
iam introducing my self my name is mohammed khalid from egypt my nickname here is apk5656
ok so lets start
keep in your mind iam using win8 so it may have diiferent settings if you have a win7
---------------------------------------------------------------------------------------------------------------------------
Installing tools
Setting up the Java SE Runtime Environment
step one install those files
STEP 1: Install these two files:
- JRE8 (This is what I use):http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
- JDK8 (Install just in case):http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
STEP 2: Setting up JDK JAVA_HOME environment variable:
After installing the two files above, locate your JDK location, in my case, mine is C:\Program Files\Java\jdk1.8.0_20.
Then open up your Control Panel and click into System (Control Panel\All Control Panel Items\System)
then in side bar click advanced system settings
A popup will appear, click on the Advanced tab, then click on "Environment Variables..."
Another smaller popup, Environment Variables, will open up. Click on "New..."
According to the screenshot, click type in the Variable name (JAVA_HOME) and Variable value (Location of your JDK set up).
After everything is done, click OK on all popups, then reboot your computer.
You are now ready for apps like eclipse/ Studio, future proofing yourself for now.:victory::victory::victory::highfive::highfive::highfive:
-----------------------------------------------------------------------------------------------------------------------------------
now we will set up your tools which will help you theming
apk tool
download tool from here http://www.mediafire.com/download/s7y2bja7pjuxqru/APK-Multi-Tool-Stable-RELEASE.zip
after downloading it continue with me to setting up it
setting up apktool
First Make sure you have "framework-res.apk" of your device whose apk you are going to edit.
If you dont have "framework-res.apk". Click Here (Micromax A35 Stock framework)
Steps:
Extract the downloaded zip and open extracted 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. Open Setup.bat and press "3" (Without Quotes)
3. It will make automatically some folders and you will be again moved to the above screen.
4. Now put your framework-res.apk to "other" folder (Have a look there).
5. Now in the menu, Press 2.
6. Now press 1. (a cmd window will popup).
type there- "apktool if framework-res.apk" (without quotes)
and press ENTER.
Now Quit the menu.
Congratulations, You have set up APK MULTITOOL successfully
------------------------------------------------------------------------------------------
decompiling/recompiling your first app
PART 1: How To Decompile Apk:
1. If You All Done Right, You Will See Like This,
2. Let Us Decompile Settings.apk (Get Your Settings.apk From Your Device /system/app)
3. Place Your Settings.apk inside "place-apk-here-for-modding"
4. Open "Script.bat", Press Enter, Then You Will See Like This.
5. As You Know, Settings.apk is a system app, so Press Option "9", Then Press ENTER
6. Wait For Decompilation process(It will be automatically done.)
7. Your Decompiled Apk Will Be In "projects" folder.
PART 2: How To Recompile Apk:
1. The Basic Editing, You Must Know How To Do This, I Wont Teach You This One, In This Tutorial, After Editing, Open "script.bat".
2. Press "11" and ENTER, To Compile System Apps.
3. After Buliding Apk, You Will See Like This
4. Press "y" and ENTER, Now You Will See Like This.
6. Now The Most Important Part Comes, MINIMISE Your script.bat Screen, Find "keep"
Open this folder, You Will Get These,
Be Carefull:
Delete "resources.arsc", "res" file/folder, If You Edited any ".xml", "png".
Delete "classes.dex" if you have edited any "smali file".
Delete "AndroidManifest.xml", if you editied This File (If You Not Edited "AndroidManifest.xml", Dont Delete It.)
7. Open The MINIMISED "script.bat", Press ENTER.
8. You Will Find Your Modded Apk In "modified-system-apk-files-here" folder.
9. Rename "systemSettings.apk" to "Settings.apk".
10. Paste This "Settings.apk" to Your /system/app.
NOTE:
If You Edit Your "AndroidManifest.xml", You Need to Sign Your Apk.
For Signing, Place the Modded App in "place-apk-here-for-signing" folder.
In "script.bat", The Option Number is "20".
The "script.bat" Automatically Termainates After Signing.
The Signed Apk is in "place-apk-here-for-signing" folder.
Also, stock ROM dont accept custom signed system apk(s), for using custom signed system apk(s), you need to disable "signature verification" from "services.jar". google it
Dont worry about signatures, if you didnt edited your "AndroidManifest.xml".
--------------------------------------------------------------------------------------------------------------------------------
some basics to help you theming
.9 png images you cant edit them just by photoshop they have a custom edit bcuz the are patched
this thread will help you
http://.xda-.com/showthread.php?t=605662
ok now about the normal png you can edit it simply with photoshop but if you resized any png do not try to make it much bigger if you did this you will get bugs
ok now about editing xmls
look any xml file has connected with other
i mean if you open any layout xml you may found something like string/-
thats mean this layou xml has string in string.xml file in values folder that is what i mean with xmls are connected
so until now thats it this post will be updated soon with more basics bcuz the basics which i wrote is too small and i wanna to learn you a lot of basics
but thats just for my short time and i have alot of exams
ok untill now hope to see you around.......

Categories

Resources