[UTILITY][TOOL] Draw9PatchCompiler [Mac OS X ] - EVO 4G Android Development

Hello Again!
This time here to present the 9patchCompiler Utility! Easy to use. Handy. Simple.
Similar Tool can be found as a part of Android-Utility
What does this do?
Some of you are aware of this: xUltimate Decompiler ... But it's only for windows!!!
So I wrote the 9patchCompiler/Decompiler for the Mac. Let's say you only want to edit one or two 9.png to finish your theme, but you don't want to decompile the entire apk with apktool, just run this simple script and follow directions to decompile the 9.png. In less than two seconds your patches disappear and will be compiled!
Here are examples of decompiled/SOURCE 9.png typically seen before the apk is finished:
{
"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"
}
Notice how in the source 9.png there are lines or "patches". This guides Android as to how the icon or button should behave.
Click to expand...
Click to collapse
Here are examples of compiled 9.png typically found in a finished apk:
Android can better utilize these without strain on the RAM in order to change the shapes and size of various UI elements.
Click to expand...
Click to collapse
For more information on draw9patch Images:
1. here
2. here
3. here
Instructions:
1. Download the zip (9patchCompiler.zip)
2. Inside the zip should be a folder called "9patchCompiler".
3. Place that folder onto DESKTOP (crucial step).
4. Inside the folder is the tool "9patch", a "tools.zip", and a folder called SOURCE (leave them all alone).
5. Place 9.png in the SOURCE folder.
5a. Double click on the file "9patch".
6. The tool should begin in Terminal.
7. Follow directions
I've included sample 9.png in the SOURCE Folder for your testing.
The Goods
Screenshots
DOWNLOAD HERE
Props and Credits
Brut.all of course!!! For the decode 9patch jar file and also for the idea behind the compile method! Brut.all everyone!!

Main Screen:
Compile Screen:
Decompile Screen:

Should note that if you have suggestions or ideas feel free take my script and change it up. Just let me know so I can add it onto this one
Sent from my PC36100 using Tapatalk

Good deal, always nice to see some non-Windows tools being released.
If this script follows basic bash scripting, it should be usable on Linux or at least easily ported.

github said:
Good deal, always nice to see some non-Windows tools being released.
If this script follows basic bash scripting, it should be usable on Linux or at least easily ported.
Click to expand...
Click to collapse
Yeah I've got android-utility for Linux also. This script is identicalbi do believe just need to swap out the draw9patch from Linux sdk
Sent from my PC36100 using Tapatalk

Het tommy just took a look at it nice made some things I was doing a bit easier ps I managed to run of in Linux just had to run my mac terminal eum worked fine with a sence rosie apk
Sent from my PC36100 using XDA App

Omgadroid said:
Het tommy just took a look at it nice made some things I was doing a bit easier ps I managed to run of in Linux just had to run my mac terminal eum worked fine with a sence rosie apk
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Everything should work I think except option 4 in Linux
Sent from my PC36100 using Tapatalk

I didn't leave source alone lol
Sent from my PC36100 using XDA App

Omgadroid said:
I didn't leave source alone lol
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Its all goods. What did you change?
Sent from my PC36100 using Tapatalk

Finally a tool like this for Mac, I was beginning to think that there wasn't any tools available for Mac only PC.....Thanks Tommy!!!

Neat So this basically puts the patches into the png file itself so they are still there but not showing?

mazdarider23 said:
Finally a tool like this for Mac, I was beginning to think that there wasn't any tools available for Mac only PC.....Thanks Tommy!!!
Click to expand...
Click to collapse
If you click on the android-utility link there is an entire tool set
Thanks!
mpitcher225 said:
Neat So this basically puts the patches into the png file itself so they are still there but not showing?
Click to expand...
Click to collapse
Yes sir like it should be. It is faster for Android to read a compiled 9.png.
Sent from my PC36100 using Tapatalk

You know what. I found an error and I apologize. The script uses 7z...but I did not include 7z!!! Arg! My bad. I will update when I get a chance. Sorry for any inconvenience.
Until I update... Here is how you can fix it:
Download android-utility.
Extract 7z and 7z.so from the resources directory (you'll see after you download it)
Place into the Users/username/bin directory.
That's it! Thanks again and sorry.
Sent from my PC36100 using Tapatalk

Wicked mod man. I soo want to use this but don't have a MAC

myn said:
Wicked mod man. I soo want to use this but don't have a MAC
Click to expand...
Click to collapse
VirutalBox/VMWare + Ubuntu install? or some other form of Linux setup.

Updated Version! Now no 7z dependencies.
Download count back to Zero

A Linux version will be out shortly.
Sent from my PC36100 using Tapatalk

I decided that the linux peeps probably already know how to these things. lol.
If you want, Android-Utility Linux edition has this built it. Use it.

Thanks for the faith of Linux nerds ^.^
Sent from my PC36100 using XDA Premium App

Omgadroid said:
Thanks for the faith of Linux nerds ^.^
Sent from my PC36100 using XDA Premium App
Click to expand...
Click to collapse
Certainly man!
Sent from my PC36100 using Tapatalk

Related

[Mod][How-To] Change Sense 1.0 Lockscreen Sprint Banner

Hey gang. I know a lot of people know of JsChiSurf. You should. That man is one of the main reasons I do what I do today. Buy him some beers or fund his retirement
Anyways. He came up with a mod that can change the Sprint Banner in the Sense Lockscreen. The hack is pretty straightforward yet awesome. I based this mod off of his. Check it out here
His goal was to use a hex editor to modify the text, but I am taking a different approach. We have so many tools available now. Apktool, apk manager, and of course, Android Utility. This is for Sense 1.0 ota 4.54 Evo 4g.
This mod is easy to do.
Tools: Android-Utility, or apktool, Java
Download the attached files below: HtcLockScreen.apk and Testsign.jar
1. Have com.htc.resources.apk and framework-res.apk from your rom ready
2. Decode the apk like this if using apktool, run in command prompt or terminal:
Code:
apktool if framework-res.apk
apktool if com.htc.resources.apk
apktool d HtcLockScreen.apk out
3. Now, you should have a folder called "out"
4. Open the folder and look for res/layout/lock_screen_bar.xml
5. Open the xml in Notepad ++ or Gedit
6. Search for where it says "EVO Classic"
7. Change it to your desired text
8. Save and exit
9. Now, we compile the apk
Code:
apktool b out HtcLockScreen-new.apk
10. Now, we resign the apk.
Code:
Method A:
Open the original apk with 7-zip.
Take out the entire "META-INF" folder.
Open new apk with 7-zip.
Put in META-INF folder.
Method B: (only works on Evo Classic and other roms with signature verification off)
type in this command:
java -jar testsign.jar HtcLockScreen-new.apk HtcLockScreen-signed.apk
11. Download the sample Update.zip Found here, attached at bottom
12. Put the apk (renamed to HtcLockScreen.apk) inside the zip under system/app/
13. Flash and enjoy!
Sorry if this isn't noob-friendly enough. I tried to come up with a different way but this is all I got. The details are all there.
Please try it first.
But if you really can't get it, feel free to request a specific word or banner. I can upload them for you.
{
"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"
}
Once again, thanks to JsChiSurf for original mod. I took and modified for the latest 4.54
Sincerely,
Tommy Nguyen
Requests
Only changes the Banner Text. Lockbar will not be included.
All to be applied with ZipThemer
-EViL-KoNCEPTz- Banner
Sprint Banner
I'm guessing we can still use sprint apps, because this only changes the banner. Would I be correct?
bcarter2000 said:
I'm guessing we can still use sprint apps, because this only changes the banner. Would I be correct?
Click to expand...
Click to collapse
You sir are correct
Sent from my PC36100 using Tapatalk
The command:
apktool HtcLockScreen.apk out
Doesn't seem to work. I am using the most recent version of apktool on a Windows machine.
Whoops.
apktool d HtcLockScreen.apk out
Typo corrected.
all you need is a lovely signature.
Tommy you are a beast! You write these guides like you wrote the code or something. Do you know of a guide somewhere that breaks down smali code? That's where I need to be lol
Swyped from my Red Hot Razr phone running Tapatalk
i got it all working except building the new .apk
it builds but instead of an .apk its a folder...
edit: i think i might have found it.
mpitcher225 said:
Tommy you are a beast! You write these guides like you wrote the code or something. Do you know of a guide somewhere that breaks down smali code? That's where I need to be lol
Swyped from my Red Hot Razr phone running Tapatalk
Click to expand...
Click to collapse
Being that smali is a hack language there arent any guides...but you can read on java. It will help.
life_420 said:
i got it all working except building the new .apk
it builds but instead of an .apk its a folder...
edit: i think i might have found it.
Click to expand...
Click to collapse
Hope you find it!
Sent from my PC36100 using Tapatalk
just flashed and lockscreen came up with my personal banner, it worked...
screenshot in a minute
nice thanks button is hit.
That was way to easy... LOL
life_420 said:
just flashed and lockscreen came up with my personal banner, it worked...
screenshot in a minute
nice thanks button is hit.
That was way to easy... LOL
Click to expand...
Click to collapse
I thought so too when I posted the guide
Glad you got it! Looking good robert
Sent from my PC36100 using Tapatalk
tommytomatoe said:
Being that smali is a hack language there arent any guides...but you can read on java. It will help.
Hope you find it!
Sent from my PC36100 using Tapatalk
Click to expand...
Click to collapse
Wow I didn't know that lol. Thanks man
Swyped from my Red Hot Razr phone running Tapatalk

[How to Guide] Theme your Infuse with Ninjamorph directly on phone without PC.

{
"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"
}
​
Hi All......
In this short youtube video I will guide you how to change the color of
full signal barindicator directly on your phone. After getting the idea
you can use your imagination & creativity through this super tool
"Ninjamorph". ​
​
Features:
1. No PC or programming required. Change the theme directly on phone with easy steps.
2. Inbuilt APK archiver and image editor.
3. Ability to replace files from external sources/pc.
4. Free and small size.
Watch Video Tutorial on Youtube
Quick review of steps taken in above Video:
1. Open Ninjamorph after installing from Android Market.
2. Click on New Project and open System\App\SystemUI.apk (It will extract the SystemUI.Apk automatically).
3. Then open res\drawable-hdpi\stat_sys_signal_5.png (long press on image file then select Edit Image).
4. Edit the image and select Save by pressing menu softkey.
5. Do the same with image file stat_sys_signal_5_fully.png
6. Click on back button and hit the Finish Button.
7. Select SystemUIapk to apply the project. (This will create the package automatically)
8. Hit the Yes on popup menu (3 times)
9. At last "All Done" will appear.
10. Reboot your phone ("Force Close" popup menu will appear, all will settle after reboot).
Another Good tutorial I got on Youtube (Credits:GFURR1)
Download ICON Sets (Credits : DIABLO009)
http://forum.xda-developers.com/showthread.php?t=1325118
http://forum.xda-developers.com/showpost.php?p=24412315&postcount=12
​
Download:
Download free version from Android Market (same was used in video).
You can also support the developer by purchasing this Pro Version.
Important Notes
1. Editing system files involves risk. If you are not sure what are you doing please don't do anything then.
2. Always create backup of Apk file before editing. Use Root explorer to replace the same if changes are not upto mark.
3. This App seems incompatible with framework-res.apk.
DISCLAIMER
If something wrong happen please don't blame me or developer for the same. Use this tool at your own responsibility.
Please Share your creative work with screenshots/file source in this thread
Congratulations on your one-hundredth post. Thank you for sharing this. I will definitely give it a try.
Do you have any screen shots you can share with us?
Thanks, you can watch my entire phone screen in Youtube video.
ndhanta said:
Thanks, you can watch my entire phone screen in Youtube video.
Click to expand...
Click to collapse
Oh! I didn't realize that this was your video! Lol
Sent from my Zeus v6 powered Infuse.. Can has build 7?
looks easy enough thanx this will come in handy.
This was cake!!! I've also messed with mms.apk and others to theme them the color i want ^-^
Thnx!!!
Only problem Im having is finding the battery :/
Other than that it worked like a charm
Sent from my SGH-I997 using XDA
Where would the clock be?
Sent from my SAMSUNG-SGH-I997 using xda premium
Bubonic78 said:
Where would the clock be?
Sent from my SAMSUNG-SGH-I997 using xda premium
Click to expand...
Click to collapse
Sarcastic question to me or a serious question??
Lol
Sent from my SGH-I997 using XDA
jayRokk said:
Sarcastic question to me or a serious question??
Lol
Sent from my SGH-I997 using XDA
Click to expand...
Click to collapse
No sarcasm where is the clock in the notification bar. What files do I go to
Sent from my SAMSUNG-SGH-I997 using xda premium
Bubonic78 said:
No sarcasm where is the clock in the notification bar. What files do I go to
Sent from my SAMSUNG-SGH-I997 using xda premium
Click to expand...
Click to collapse
Id love to help out but Im stuck in the same hole... Im still looking thru the apk files ....ima do some reading up and searching maybe even visit the kitchen ...but trial and error my good friend
Sent from my SGH-I997 using XDA
jayRokk said:
Id love to help out but Im stuck in the same hole... Im still looking thru the apk files ....ima do some reading up and searching maybe even visit the kitchen ...but trial and error my good friend
Sent from my SGH-I997 using XDA
Click to expand...
Click to collapse
In my Phone, Clock is located in System\app\ClockPackage.apk
Theme Lidroid 14 Menu from Lidroid
Next Adventure is to theme Lidroid 14 menu
(New Users please go through OP first)
themed the toggles already ^_^
ndhanta said:
In my Phone, Clock is located in System\app\ClockPackage.apk
Click to expand...
Click to collapse
The clock in notification bar is not located here. This is for the alarm clock.
Sent from my SAMSUNG-SGH-I997 using xda premium
If it's froyo then you can change clock font colors in services.jar file..
/system/framework/services.jar
FOR Gingerbread,
Files that have to be edited:
1) /system/app/SystemUI.apk
2) DECOMPILED_DIR/res/layout/status_bar.xml
For Clock
Search for a line that begins with "<com.android.systemui.statusbar.Clock". You now have two ways for changing the font-style and color:
Adding android:textColor="TEXTCOLOR" and/or android:textStyle="TEXTSTYLE", where TEXTCOLOR can be a HTML color (#TTRRGGBB - TT means transparency) and TEXTSTYLE can be "bold", "bold|italic", "italic" or ""
Changing the style of android:textAppearance. This can be easier but keep in mind that this style could be used somewhere else.
Bubonic78 said:
The clock in notification bar is not located here. This is for the alarm clock.
Sent from my SAMSUNG-SGH-I997 using xda premium
Click to expand...
Click to collapse
The clock is still in the smali code bubonic, its represented by a hexidecimal number.
This wouldnt work unless it can edit decompiled smali code. But the clock is not an image, which is what this looks like it edits.
X,
free through EVERGREEN EMANCIPATION.
Settings.apk for Nitin
Nits,
Here is something for you.
I know you have been asking about it.
Flash it in cwm.
reboot.
check out the settings menu.
qkster said:
Nits,
Here is something for you.
I know you have been asking about it.
Flash it in cwm.
reboot.
check out the settings menu.
Click to expand...
Click to collapse
Welcome QK
Yes I got it, Hats Off to you.
Other users pls. don't flash, it belongs to me
ndhanta said:
Welcome QK
Yes I got it, Hats Off to you.
Other users pls. don't flash, it belongs to me
Click to expand...
Click to collapse
You like, yes?
Yes, I Liked it....

THEME | PORT | 2.1.0 | 6/5/12 | Matted Blues for CM_Merged [RC1.3a]

EDIT: At a huge problem on this project... Cant edit XML files because APK Manager wont work... it can decompile but it wont recompile anything, even if i do NOTHING to the project. So until the program decides to work, this is pretty much all i can do.
Im proud to present to you: Matted Blues for CM_Merged! And for our Sidekick 4Gs
First things first: ALL Credit goes to jabbawalkee, ReActiveDisorder, and whoever else I missed!
Original Thread and Whatnot (For Wallpapers, etc): http://forum.xda-developers.com/showthread.php?t=768848
{
"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"
}
OUTDATED
[RC1] - http://www.mediafire.com/?9v63m3jj43z0usu
[RC1.1] - http://www.mediafire.com/?qkf3jswjck3plgb
[RC1.2] - http://www.mediafire.com/?29cwann45l2zofb
[RC1.3] - http://www.mediafire.com/?vrilocv5l3l7g54
[RC1.3a] - http://www.mediafire.com/?y7z5393p91u55as
Instructions:
1) Download the right version
2) Flash via CWM Recovery
3) Reboot & Enjoy!
Changelog:
[RC1] - First Release
[RC1.1] - Fixed Contacts.apk
[RC1.2] - Redid the Framework for compatibility with CM_Merged v1.1.2.
[RC1.3] - Redid the Framework for compatibility with CM_Merged v2.1.0.
[RC1.3a] - Used with CM_Merged v2.1.0, changed the signal reception bars (check screenshot)
Bugs/Incomplete Things:
[RC1.2]
- In the "USB Connected" screen, the background is off, need to relocate that as well.
- Power Menu text is unreadable (White on White). You can see the icons though... that should be obvious enough. Will be fixed when i can edit XMLs.
[RC1.3]
- Same Bugs Apply from RC1.2.
[RC1.3a]
- Same Bugs Apply from RC1.2.
Can you link us to the theme you want ported? ...
Reviewers said:
Can you link us to the theme you want ported? ...
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=768848
Thats the CM7 Theme Chooser one.
Your going to port the CM7 Theme Chooser one?
If worse comes to worse im gonna have to, but seeing as RubiX is gonna be based off of CM6 (If im not mistaken?), i probably wont even need to use that.
The theme looks sexy as hell.
once the status bar mads are done, if at all possible im all in i hate the tw status bar
I love the theme!Looks pretty cool to me..
john9 said:
I love the theme!Looks pretty cool to me..
Click to expand...
Click to collapse
Hahah, same here man.
On another note, i got my Thrill that has the CM7 Theme Engine. More icons to port over and whatever. New RC coming out soon.
Hmm... when i edit XML files, when i recompile them they revert back to whatever was on them before... i cant edit anything put the PNGs then. If APK Tool keeps doing this and magically changing files that shouldnt exist, then theres not much i can do.
Have you tried compiling them directly from the command prompt? Apktool used to give me s**t when I would recompile the themed works and I just did it from the cmd prompt ad it would work... other then that I have no other ideas
Sent from my SGH-T839 using XDA
Roundtableprez said:
Have you tried compiling them directly from the command prompt? Apktool used to give me s**t when I would recompile the themed works and I just did it from the cmd prompt ad it would work... other then that I have no other ideas
Sent from my SGH-T839 using XDA
Click to expand...
Click to collapse
Naaah, not yet hahah. Gonna try doing that tonight, will post back with results. If it works, i can add the Accurate Battery and fix everything that needs to be doneeeee.
EDIT: No avail, tried everything. When i get off my laptop to my tower ill try everything again. If not, im stumped and this is just about as far as this port goes.
Hoping you can figure it out. Love what you've done so far
I'd love this fixed up too, I use it on CM Merged and it's quite nice, though I'd like a battery mod with better accuracy and a few little tweaks here and there, but overall I like Blue and white much more then Green and black
Sakuryu said:
I'd love this fixed up too, I use it on CM Merged and it's quite nice, though I'd like a battery mod with better accuracy and a few little tweaks here and there, but overall I like Blue and white much more then Green and black
Click to expand...
Click to collapse
I'm looking for ways to get around having to decompile the apk, maybe finding already-compiled XMLs from another ROM and replacing those. Hopefully. I find it odd that recompiling gives me errors even if I do nothing to the APK. Do you need the Android SDK installed to use apktool or whatever?
Sent from my SGH-T839 using xda premium
kideskimo said:
I'm looking for ways to get around having to decompile the apk, maybe finding already-compiled XMLs from another ROM and replacing those. Hopefully. I find it odd that recompiling gives me errors even if I do nothing to the APK. Do you need the Android SDK installed to use apktool or whatever?
Sent from my SGH-T839 using xda premium
Click to expand...
Click to collapse
Might need the framework files to decompile and recompile properly. I'm stumped myself honestly
Sent from my SGH-T839 using XDA
What is the issue? It could be the zip format im using causing compatibilty issues
Sent from my SPH-D710 using xda premium
ReActiveDisorder said:
What is the issue? It could be the zip format im using causing compatibilty issues
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
i ran into that i believe
Making progress, it actually compiles an APK now. But for some reason, dosent create a "keep" folder, so when it recompiles i dont even think it does anything to the framework. Still blank battery icons, but I guess im getting somewhere if the APK is actually making itself.
EDIT: Ran into another problem. Now whenever i try to start the APK Multi-Tool script, i get "Please wait while we CHECK FOR UPDATES", then the program closes itself. ....

[App] Wallpaper Chooser - Free to the public, artists, and themers

Hey gang!
This is a super simple app that I threw together. First, source code for the app provided by AOSP, modified by Code Aurora Forums, and adapted by yours truly, tommytomatoe.
Code:
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Adapted to Classic Control Panel by tommytomatoe
* from Code Aurora
* https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=6&ved=0CEUQFjAF&url=https%3A%2F%2Fwww.codeaurora.org%2Fgit%2Fprojects%2Fqrd-gb-dsds-7225%2Frepository%2Frevisions%2Fb97d35a9fe38c93178837dcea5d88d0fb28e9ba7%2Fraw%2Fpackages%2Fapps%2FLauncher2%2Fsrc%2Fcom%2Fandroid%2Flauncher2%2FWallpaperChooser.java&ei=zyGPT_ujHo662gW9-NWBDA&usg=AFQjCNE8Mk3411GNzJvxz-6-KEARVE615A&sig2=gCTKczUvK-saiNImMBSAKQ&cad=rja
*/
Now to the goodies.
The purpose of this app is for the themers and artists that come up with awesome wallpapers or include wallpapers in their themes. Now they can simply and professionally package the wallpaper within an apk!
Instructions to use are super simple.
1. Download apk
2. Use apktool to decode the apk (ie, apktool d WallpaperChooser.apk)
3. Add your wallpaper to res/drawable-hdpi (or -xhdpi, depending on your target device)
4. Make a smaller copy of your wallpaper, 170x142 works nicely
5. If your wallpaper is called "sample_13.jpg", then the small wallpaper should be named "sample_13_small.jpg"
6. Navigate to res/values/arrays.xml. It looks like this:
Code:
wallpaper_1
wallpaper_2
wallpaper_3
7. For each wallpaper you want to add, just add an "item". Leave out the extension, and also, the app will automatically account for the "small" wallpaper. I included three wallpapers just for example purposes. They don't need to be named "wallpaper_#". It can be ANYTHING you want, but in arrays.xml the name must be reflected.
8. Build the apk (ie, apktool b WallpaperChooser WallpaperChooser-new.apk)
9. Sign the apk!
10. Include in ROM, theme, or post a thread so people can install!
Optionally, you can change the app name. Just go to res/values/strings.xml.
That's it!
Download WallpaperChooser.apk 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"
}
Thanks tt
Sent from my SPH-D710 using Tapatalk 2
Thanks Tommy.. Will make good use of this.
Im excited to see what you two do with it!
Sent from my EVO using Tapatalk 2
Sweet. I just got a whole new set of wallpapers for conflagration. This is going to make my life so much easier
Sent from my A500 using Tapatalk 2
Oh, this is definitely going to get put to good use! Especially since AlterROM has no solid consistency in wallpaper selection between alternative launcher options...
Thanks, Tommy! I was looking for something exactly like this!
Psichi said:
Sweet. I just got a whole new set of wallpapers for conflagration. This is going to make my life so much easier
Sent from my A500 using Tapatalk 2
Click to expand...
Click to collapse
If you want I can make you one that has a different package name so that it doesnt overwrite the one that comes with classic. I did the same for x_n and defuse
grayn0de said:
Oh, this is definitely going to get put to good use! Especially since AlterROM has no solid consistency in wallpaper selection between alternative launcher options...
Thanks, Tommy! I was looking for something exactly like this!
Click to expand...
Click to collapse
Not a problem. I hope it can be useful for you
Sent from my EVO using Tapatalk 2
I did this a while back with Derp3D, great job posting for others!
Sent from my PC36100 using xda premium
tommytomatoe said:
If you want I can make you one that has a different package name so that it doesnt overwrite the one that comes with classic. I did the same for x_n and defuse
Click to expand...
Click to collapse
That would be great, thanks
Sent from my tomatoe filled evo
Great!
Wow Yet another great contribution to the Android community by Mr tommytomatoe
I have messed around with this and have added a few of my favorite desktop/Android wallpapers.
Thanks
Psichi said:
That would be great, thanks
Sent from my tomatoe filled evo
Click to expand...
Click to collapse
you got it. check your email in a few.
Tommy 1st one.
http://forum.xda-developers.com/showpost.php?p=21044631&postcount=4
Tommy correct me if I am wrong but if I want to be able to have more then one apk then I need to change the classic name on all the smalis. I remember when I 1st came to Android I was Modding front apks for the cappy and that is what I had to do to.
Sent from my SPH-D710 using Tapatalk 2
dfuse06 said:
Tommy correct me if I am wrong but if I want to be able to have more then one apk then I need to change the classic name on all the smalis. I remember when I 1st came to Android I was Modding front apks for the cappy and that is what I had to do to.
Sent from my SPH-D710 using Tapatalk 2
Click to expand...
Click to collapse
Yeah it is all about the package name.
First you need to modify the name in the android manifest. The one I sent you is net.classic.wallpaper.dfuse
Just change any part of it to make it a different app. Then, go to the smali folder and change the folder to the name that you changed. Then in the smali file itself, change the reference from net.classic.wallpaper.dfuse to whatever you changed it to in android manifest.
Sent from my EVO using Tapatalk 2
tommytomatoe said:
you got it. check your email in a few.
Click to expand...
Click to collapse
hey nice guide but when i recompile my apk i dont get that values folder in that recompiled apk what causes this not be compiled can you please help me in this issue thanks in advance
Values gets compressed to resources.arsc
Sent from my EVO using Tapatalk 2
Hello,
I followed the instructions, I only changed the wallpapers, I left the same names, I wanted to see if it would work.
I got no errors on decode and got no errors in build.
Copied the apk on my phone and tried to install.... "APP WAS NOT INSTALLED"
What seems to be the problem?
Thanks!
aadiflesher said:
Hello,
I followed the instructions, I only changed the wallpapers, I left the same names, I wanted to see if it would work.
I got no errors on decode and got no errors in build.
Copied the apk on my phone and tried to install.... "APP WAS NOT INSTALLED"
What seems to be the problem?
Thanks!
Click to expand...
Click to collapse
You need to sign the apk.
Sent from my HTC One XL using Tapatalk 2
dfuse06 said:
You need to sign the apk.
Sent from my HTC One XL using Tapatalk 2
Click to expand...
Click to collapse
Hey, thanks a lot man!
I signed it before using one method and it did not work and now I used a different method and it works!
The first method was fine, no errors and made a copy named with signed.apk of the app, and I thought it worked... but apparently it not.
Thanks again, I appreciate the help!
aadiflesher said:
Hey, thanks a lot man!
I signed it before using one method and it did not work and now I used a different method and it works!
The first method was fine, no errors and made a copy named with signed.apk of the app, and I thought it worked... but apparently it not.
Thanks again, I appreciate the help!
Click to expand...
Click to collapse
No problem man.
Sent from my HTC One XL using Tapatalk 2

[Q] How to modified SystemUI.apk

Dear all master in here,
I wanna ask something, I wanted to make small modification to my systemui.apk.. I saw my friend running his phone (thunderbolt) changing the signal icon from 1x into 4G.. I wanted to do it on my shift, so I can bragged around even I didn't have a 4G access.. just for fun you know..
I tried to only rename the icon name but it seems too much to rename and I can't pick it up one by one..
If the only way is to rename it one by one, can somebody tell me which file I need to change..?
I wanted my wifi signal symbol became 4G signal symbol..
Sent from my PG06100 using Tapatalk 2
Try this if you use 7zip. copy your apk into an empty folder. right click it and chose "extract here". When it opens up go into res/drawable-hdpi. In here you can change the icons but don't change the names. Give the one you want to use the name of the one in use and delete the old one. You might have to do this in the framework-res apk too. And the com.htc.resources apk if on sense. To zip it back up, highlight the parts of the apk you want to zip and right click. Using 7zip, left click "add to archive..." then rename it systemUI.apk instead of systemUI.zip and click ok.
Ok, then the only way is to change it manually,
Could you tell me sir which file i should replace inside the systemui.apk..? I wanted to use newRunny for this, as I found out it quiet stable for me, beside the calendar widget and 4G..
Sent from my PG06100 using Tapatalk 2
ega972 said:
Ok, then the only way is to change it manually,
Could you tell me sir which file i should replace inside the systemui.apk..? I wanted to use newRunny for this, as I found out it quiet stable for me, beside the calendar widget and 4G..
Sent from my PG06100 using Tapatalk 2
Click to expand...
Click to collapse
There are so many ways to do this. Here is another
Basically all you have to do is open the apk with 7zip and drag the res folder to desktop, look for what the image name of the wifi indicators are. already have all your 4G images on the desktop and rename them to what the wifi images are, drag them back into the res folder you pulled from the apk. Overwrite the wifi images and drag it back into the apk.
Or another
Decompile the apk. Find images you would like to replace and name the new images the same as the ones you want to replac, put the new images in the decompiled apk. Then recompile and resign if needed.
Ok then.. I thought there is another way to do it. My friends told me some site that can manipulate systemui.apk,, but there is no choice to edit systemui.apk for evo shift.. only for some newer device like thunderbolt, sensation, evo lte..
BTW I'll try your way sir.. I'll posted the result.. thanks
Sent from my PG06100 using Tapatalk 2
Thanks to all master here..
As I said earlier, this is screenshot after I do the tricks.. thanks all.. :thumbup:
{
"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"
}
Sent from my PG06100 using Tapatalk 2
Glad you got it the way you wanted. :thumbup:
Chad The Pathfinder said:
Glad you got it the way you wanted. :thumbup:
Click to expand...
Click to collapse
Can the 7zip trick be applied to a framework-res.apk file?
I tried once...through apkmulti tool..it ruined the framework...after pushing device didnt boot...
Just renaming .zip to .apk makes it installable ?
Sent from my MK16i using Tapatalk 2
Madaditya said:
Can the 7zip trick be applied to a framework-res.apk file?
I tried once...through apkmulti tool..it ruined the framework...after pushing device didnt boot...
Just renaming .zip to .apk makes it installable ?
Sent from my MK16i using Tapatalk 2
Click to expand...
Click to collapse
Apk is just an extension that android recognizes....you could name it .docx and not actually change the file in any way
Sent from my PG06100
CNexus said:
Apk is just an extension that android recognizes....you could name it .docx and not actually change the file in any way
Sent from my PG06100
Click to expand...
Click to collapse
Exactly
Just asked coz things didnt work for me they way they apper...so had a doubt
Thanx
Sent from my MK16i using Tapatalk 2
System apk's & jar's need to preserve the signatures they have on them(or have signatures that match the rest of the system), that is more then likely why you had trouble before with framework-res.
Some of the methods mentioned above are ways to add the files you changed back into the original apks/jars, which keeps the signatures in tact.
BigSplit said:
System apk's & jar's need to preserve the signatures they have on them(or have signatures that match the rest of the system), that is more then likely why you had trouble before with framework-res.
Some of the methods mentioned above are ways to add the files you changed back into the original apks/jars, which keeps the signatures in tact.
Click to expand...
Click to collapse
So simple opening(not exrtacting) framework-res.apk through 7zip...replacing images and flashing is quite valid and expected to work?
Sent from my MK16i using Tapatalk 2
Madaditya said:
So simple opening(not exrtacting) framework-res.apk through 7zip...replacing images and flashing is quite valid and expected to work?
Sent from my MK16i using Tapatalk 2
Click to expand...
Click to collapse
Yes sir that should work for images only
Yup, because essentially its just a zip file, and like was said when you extract it you lose the "signature" that was placed on the original signed one
Sent from my PG06100
CNexus said:
Yup, because essentially its just a zip file, and like was said when you extract it you lose the "signature" that was placed on the original signed one
Sent from my PG06100
Click to expand...
Click to collapse
Can you also help me with making update-scripts for flashables?
Coz after editing the problem i faced was,flashable was not proper..installation would abort...i tried searching but we have apps for making flashables of those apps already present on your system..
Do we also have other tools?
Updater-binary also needs to be updated along with update-script?
How?
Sorry too many questions..
Sent from my MK16i using Tapatalk 2
No problem, read through the guide right here
Sent from my PG06100

Categories

Resources