[aospX][Mod] Open Recent Apps with Search Button - Desire HD Themes and Apps

This makes your search button open recent apps instead of search.
Note: for aospX only.
Downloads:
mediafire.com/download.php?6wr3ruzo96yqsne
Instructions:
1. Download the modified android.policy.jar from the link above.
2. Copy it to /system/framework/ on your phone and replace the original.
3. Go to /system/usr/keylayout/.
4. Change all instances of SEARCH to APP_SWITCH in the files. (If I'm not wrong only atmel-touchscreen.kl, elan-touchscreen.kl and synaptics-rmi-touchscreen.kl have instances of SEARCH within)
5. Reboot phone.
6. ???
7. Profit!!1!
Credits:
remapping search to app switching:
http://forum.xda-developers.com/showthread.php?t=1090883
http://forum.xda-developers.com/showthread.php?t=1450138
remapping by editing smali tutorial:
http://forum.xda-developers.com/showpost.php?p=24689512&postcount=40
Smali:
http://code.google.com/p/smali/

Ok youre are my idol for point 6 and 7.
Sent from my Desire HD using Tapatalk

I'd love to have this working in IceColdSandich.. Is there any chance this would work there, or definitely only aospX?
Thanks for any help.

Related

[GUIDE]Changing System Icons + MISC MODS

All mods are at the bottom of this post.
Here is a simple way to change system icons on your application drawer. I was looking for a guide to do this but I couldn't find any so I gave it a try and it worked. So I decided to post the method here for like minded people who wanted to change the system icons in their app drawer and not only on the homescreen.
I will show an example of changing the contacts icon. To change the icons of some other app you just have to pull the relevant apk. I know this looks long and tiresome but bear with me and the results will amaze you. After a few times it becomes really easyYou have to be rooted to do this
A couple of things to note
a. You can change icons in framework-res.apk, SystemUI.apk or any other apk this way too.
b. Please note that the icons you replace should be of the same dimensions.
c. The specific icons name inside the drawable_hdpi might change. Sometimes its icon.png. Sometimes its ic_launcher_XYZ. Just use your head and replace the correct png.
d. The files are located either in system/app or data/app depending on whether its a system file or a data file. System files have to be pushed. Data files have to be installed.
Changing Icons works for all ROMS
1. Download android-sdk from here http://developer.android.com/sdk/index.html
2. Install all libraries.
3. Install jdk from here http://www.oracle.com/technetwork/java/javase/downloads/index.html
Make sure you download jdk and not just jre.
4. Download apk manager from here http://forum.xda-developers.com/showthread.php?t=695701
5. extract apk manager inside platform-tools inside android-sdk folder. Should be something like this
C:/Android-sdk/windows/platform-tools/("extract apk manager here")
-----------------------------------------------------------------------------------------------------------------------------------
6. Open cmd
7. Navigate to the platform-tools folder. (Simple DOS commands)
8. Do "adb pull /system/app/HtcContacts.apk" (-Do this without the quotes. If you want to change the icon for, lets say the camera, then instead of HtcContacts.apk, type HTCCamera.apk. To see all the system files just navigate to system/app on your phone using es file explorer or root explorer or any other file explorer you fancy. You can see all the system apks and you can pull anyone you want)
9. Ok so now the HtcContacts.apk should be in the platform-tools folder. Paste it into the folder "place apk here for modding".
10. Start script.bat (apk manager) from the platform-tools folder.
11. Choose option 22 to select a project
12. Choose the number of the project. In this case it would be 1.
13. Choose one again on the next screen. This will extract the apk to the projects folder.
14. Now get to the folder res/drawable-hdpi/ on your windows explorer.
15. Replace people.png with the icon of your choice. Please remember that your new icon has to be of 72x72 dimension and should have the same name. You can also replace other pngs like dialer and stuff.
(Next step is only for system files)
-------------------------------------------------------------------------------------------------------------------------------------
16. Select option 3 on the apk manager cmd
17. Now select 8. This is a system apk and so we have to retain the system signature.
18. Enter the full path of the file ( system/app/HtcContacts.apk)
Follow these steps for data files
-------------------------------------------------------------------------------------------------------------------------------------
19. Select 7.
20. Wait for install.
Here are my mods. Please note that I have not made these icons and tweaks. I have just put them all together in one place. If you want to give any credit then please follow the developers.
These are designed for sense based Roms. Please DO NOT try with any other rom. Just download and push to system/framework/framework-res.apk. Please note : This is for the older sense (sense 2.0) Do not try with newer sense.
To get transparency you have to use this file -- Transparency Hack -- through metamorph. I will make this into a flashable zip once I understand how to do that.
App icons are from Tenuis theme - Images
My framework-res
Screenshot - http://img600.imageshack.us/img600/9167/snap20110125163003.png
Download
System Icons Zip
http://dl.dropbox.com/u/18171691/Mms.apk
Hello,i just use Bettercut.apk available from market .
Marcdu81 said:
Hello,i just use Bettercut.apk available from market .
Click to expand...
Click to collapse
Hi I dont use bettercut but does it let you change the system icons in the app drawer. you know the drawer that comes up when you press the menu on the launcher???
Edit: OK i just tried bettercut. Using this you cannot change system icons in the app drawer. You are only changing icons on the homescreen, basically shortcuts. You could do that with launcherpro, desktop visualizer and 10 other apps.
CREDITS
CREDITS
MultiCulti for giving me the idea to get the services.jar for transparency
Icons from MIUI framework
Icons from Gingerbread aosp ROM
sopL87 for his guide
he_stheone64 for his awesome transparency hack
Ps. tell me if I have forgotten to credit anyone and I will add your name here. Thanks to all of the above for inspiring and helping.
Good work
Check this out too:
http://forum.xda-developers.com/showthread.php?p=10157000
Simple Java app to edit .apk files with a nice GUI
You're Just Awesome THNX man !
Nice guide
Ninjamorph lets you edit and change out images within apk files right on your phone. Its a free app on the market.
Still a very nice guide though!
thanks .. i was just looking to put up something which you could use to edit any apk on your phone .. the thing with ninjamorph is that it wasn't working for me. And plus I prefer to do it this way. Gives me more area.
EDIT: Anyone wants to see an MIUI framework on your sense?? I am thinking about getting the exact MIUI framework over to our sense based ROMs. As you can see in my framework I have already copied some of the elements. I am thinking about getting the power toggles and removing the current apps from the notification pulldown.
hi could u help me to change the battery icon plzzzz
i know about kitchen. any thing else i have some pic of a battery icon but dont know how to make one..... htc desire hd rom runny 3.37
Can't extract file
I tried to put option 22 where project start. Then I enter the project name as 1 and following another option 1 to extract files. However, the CMD just close by itself and I opened the project file and still empty inside. Please help!!

Awake screen using volume rocker

i researched this method because i noticed that i'm constantly using the power button (for screen on and off) and didn't want to wear it down prematurely. cm7/miui has this functionality built in but sense roms do not. for those of you wanting this capability on sense roms, i thought i'd share this.
before you begin, ensure that you have java installed on your pc (i'm sure most of you do). fyi, i used my windows xp pc, wordpad, and 7zip for this. i'm currently using the vu 2.39 rom.
1. Download baksmali and smali (both baksmali-1.2.8 & smali-1.2.8 jars and scripts, total 4 files) to the desktop from here (on the left, you will see the 4 links under "downloads")
2. Copy and transfer android.policy.jar (system\framework folder) from your phone to the desktop. it's also a good idea to backup the file just in case something goes wrong and you need to revert back.
3. Unzip android.policy.jar and extract classes.dex file to the desktop.
4. From the command line, navigate to the desktop and type "java -jar baksmali-1.2.8.jar classes.dex". It will create a directory named "out".
7. Open KeyguardViewMediator.smali (found in out/com/android/internal/policy/impl/) with wordpad.
8. Scroll down and find ".method private isWakeKeyWhenKeyguardShowing(I)Z".
9. Delete cases 0x18 and 0x19 in the switch statement towards the bottom of the method. Save.
10. From the command line, type "java -jar smali-1.2.8.jar -o classes.dex out". You now have a new classes.dex that has your modification.
11. Open android.policy.jar file on your desktop with 7zip and insert the new classes.dex file.
12. Copy the new file to your phone (system\framework folder, ensure that you set proper permissions) and reboot.
please note that i am not responsible if you mess anything up (although, the steps are pretty brick-proof). hack away at your own risk.
ps if you want to turn the screen off without using the power button, download "screen off and lock" from the market. awesome free app. shut down the screen by long pressing the search button.
Thanks SO much. I've been wanting something like this FOREVER. Don't like having to use widgetlocker! Appreciate the guide, I did this on my HTC Sensation and worked great. Thank you!
no problem. glad i can help.
just tried this.. perfrect on my IS
baste07 said:
just tried this.. perfrect on my IS
Click to expand...
Click to collapse
i'm glad it worked out for ya.
syc7090 said:
i researched this method because i noticed that i'm constantly using the power button (for screen on and off) and didn't want to wear it down prematurely. i think the cm7 rom has this functionality built in but i primarily use sense roms. for those of you on the same boat, i thought i'd share this.
before you begin, ensure that you have java installed on your pc (i'm sure most of you do). fyi, i used my windows xp pc, wordpad, and 7zip for this. also, i didn't connect the phone to the pc. i transferred the files manually (via microsd card). i'm currently using the vu 2.39 rom.
1. Download baksmali and smali (both baksmali-1.2.8 & smali-1.2.8 jars and scripts, total 4 files) to the desktop from here (on the left, you will see the 4 links under "downloads")
2. Copy and transfer android.policy.jar (system\framework folder) from your phone to the desktop. it's also a good idea to backup the file just in case something goes wrong and you need to revert back.
3. Unzip android.policy.jar and extract classes.dex file to the desktop.
4. From the command line, navigate to the desktop and type "java -jar baksmali-1.2.8.jar classes.dex". It will create a directory named "out".
7. Open KeyguardViewMediator.smali (found in out/com/android/internal/policy/impl/) with wordpad.
8. Scroll down and find ".method private isWakeKeyWhenKeyguardShowing(I)Z".
9. Delete cases 0x18 and 0x19 in the switch statement towards the bottom of the method. Save.
10. From the command line, type "java -jar smali-1.2.8.jar -o classes.dex out". You now have a new classes.dex that has your modification.
11. Open android.policy.jar file on your desktop with 7zip and insert the new classes.dex file.
12. Copy the new file to your phone (system\framework folder, ensure that you set proper permissions) and reboot.
please note that i am not responsible if you mess anything up (although, the steps are pretty brick-proof). hack away at your own risk.
ps if you want to turn the screen off without using the power button, download "screen off and lock" from the market. awesome free app. shut down the screen by long pressing the search button.
Click to expand...
Click to collapse
So I assume the downside isbyou lose one direction of volume change during screen off or is the missing volume link changed to the power button?
You can do the same with programs No lock, or Ripple lock.
With no lock, volume key gets you directly to launcher, and with ripple lock you have extra step to unlock screen.
I use Ripple lock and Screen off and lock on wildfire s.
Sent from my HTC Wildfire S A510e using XDA App
@nestorkg
this is a way to do it without installing and running an extra app. i guess it's more geared towards those who like to keep running apps to a minimum.
@beertime
yes, you do lose the ability to change volume while the screen is off (i.e. there is no keymap switching involved).
Or you can just go into settings > cyanogenmod settings > input then tick volume rocker.
no apps, no mods, nothing
jakeyo said:
Or you can just go into settings > cyanogenmod settings > input then tick volume rocker.
no apps, no mods, nothing
Click to expand...
Click to collapse
yes, if you are on cm7. sense roms don't have this option.
jakeyo said:
Or you can just go into settings > cyanogenmod settings > input then tick volume rocker.
no apps, no mods, nothing
Click to expand...
Click to collapse
^ lmao
syc7090 said:
yes, if you are on cm7. sense roms don't have this option.
Click to expand...
Click to collapse
You sir, I love you still for your work!
there is an app in market that goes by name no lock which does just d same
mandeep294 said:
there is an app in market that goes by name no lock which does just d same
Click to expand...
Click to collapse
again, some people want this functionality without having to install and run an app. this guide is aimed at those people. we are well aware that there are apps for this. thanks.
mandeep294 said:
there is an app in market that goes by name no lock which does just d same
Click to expand...
Click to collapse
yeah no ****! another member before you posted the exact same thing and it was explained as well, go a page back
nestorkg said:
You can do the same with programs No lock, or Ripple lock.
With no lock, volume key gets you directly to launcher, and with ripple lock you have extra step to unlock screen.
I use Ripple lock and Screen off and lock on wildfire s.
Sent from my HTC Wildfire S A510e using XDA App
Click to expand...
Click to collapse
Awesome guide. Thanks you very much
you're welcome
Thanks for this! I just tried it and it works on my Inspire running Android Revolution. So awesome!
sharksfan7 said:
Thanks for this! I just tried it and it works on my Inspire running Android Revolution. So awesome!
Click to expand...
Click to collapse
np. this method should work on most htc/sense phones.
nice, i didn't know all that stuff
@syc7090 do you know wich lines should i modify to get the volume buttons to change songs feature?
qelavidamelleve said:
nice, i didn't know all that stuff
@syc7090 do you know wich lines should i modify to get the volume buttons to change songs feature?
Click to expand...
Click to collapse
no idea. i tried to figure that out but didn't have any luck.

[GUIDE]Port Jelly Bean transition animations on EVERY ROM & EVERY PHONE

I wrote this tutorial that explains how to port Jelly Bean transition animations on EVERY ROM & especially on EVERY PHONE!!!.
1) First of all, you need to download and install APK MANAGER:
http://apkmultitool.com/?q=node/5
2) Extract with WinRAR, from the ROM you want to modify, the file framework-res.apk, that you can find in the directory \System\framework\.
3) Go to the apk manager folder and place the framework-res.apk file in the folder "place-apk-here-for-modding".
4) In the apk manager folder, double click on the file "Script". A cmd window will open.
5) Where it says "Please make your decision", write "22" (Set current project) and enter. Then enter "1" (to choose the first apk) and enter. Then enter "9" (Decompile apk) and enter.
The script will decompile the framework-res.apk.
6) Now go to your apk manager folder, go to projects\framework-res\res\anim\.
In this folder there are the animations of your rom. They consist in some .xml files decompiled.
7) Download this:
http://www.mediafire.com/download.php?8u5y88ais0awj1r
8) Copy the files from the folder "anim" of the zip downloaded into the anim folder and you are asked to replace the files; choose yes.
9) Now go to your apk manager folder, go to projects\framework-res\res\values\. Edit the file integers.xml.
Modify the values in those lines:
Code:
<integer name="config_shortAnimTime">150</integer>
<integer name="config_mediumAnimTime">300</integer>
<integer name="config_longAnimTime">400</integer>
to:
Code:
<integer name="config_shortAnimTime">200</integer>
<integer name="config_mediumAnimTime">400</integer>
<integer name="config_longAnimTime">500</integer>
and add these just below:
Code:
<integer name="config_activityShortDur">150</integer>
<integer name="config_activityDefaultDur">220</integer>
Save.
10) Return to Script. Enter "11" (Compile apk) and enter.
The script will rebuild the framework-res.apk.
11) You are asked if this is a system application. Enter "n" and enter.
12) Go to the folder "place-apk-here-for-modding" delete the file "unsignedframework-res.apk", click with the right mouse button on "framework-res.apk" and select "7zip > Open file", delete the folder "res" and "resource.arsc", go to the folder "projects\framework-res\build\apk\" select the folder "res" and the "resource.arsc", drag to zip and close.
13) Ready, now just replace.
CONGRATRULATIONS!!! YOU ARE DONE!!!
And if you think this tutorial is useful, CLICK THANKS!!!
P.S.: If you think that this post can help or interest people of other forums (with other devices), please share this post
Credits: Dinhodroid
Thanks nice guide and animations
Sent from my HTC Explorer A310e using xda premium
Thanks a lot
Sent from my GT-S5830 using Tapatalk 2
Good work. This is being used on my custom rom called ICS Redux for the Sidekick 4G! :good:
AW: [GUIDE]Port Jelly Bean transition animations on EVERY ROM & EVERY PHONE
Does that also work for gingerbread ??
I scratch that. I keep getting an error when recompiling.
KageBeast said:
I scratch that. I keep getting an error when recompiling.
Click to expand...
Click to collapse
that has nothing to do with this.
mv_style said:
that has nothing to do with this.
Click to expand...
Click to collapse
So me trying to put the animations on my phone and getting error when recompiling the framework-res has nothing to do with this? I believe you are wrong sir.
KageBeast said:
So me trying to put the animations on my phone and getting error when recompiling the framework-res has nothing to do with this? I believe you are wrong sir.
Click to expand...
Click to collapse
Can u compile and recompile other apps?
hey OP have u taken the original modders permissions to port here ?
mv_style said:
Can u compile and recompile other apps?
Click to expand...
Click to collapse
Yeah I can but i got this work. I had issues compiling the first time because i was also editing another xml but it worked the 2nd time.

[HOWTO] [DIY] Making your own Holo Theme for ICS

Hey people, I've just found it at O3D forums and I think I should share the information, as I don't have time for creating a good tutorial myself.
This way you can change colors for your own likes and make a lot kind of themes.
Before starting you should have your Apktool environment set up.
1. (only if you never saw APKTOOL in your life, otherwise, just jump it)
1· Download and install latest version of Java JDK
2· Download latest version of APK Multi-Tool as we'll be using it for un/packing APKs and push/pull them from/to our device.
3· Extract it anywhere you may like. If posible, in C:/ to avoid any kind of problems. Be sure to read README file before asking something about it.
4· Run Setup.bat, type 3 and press Enter. Close it.
5· Run Script.bat, type 0 and press Enter. Now let's type our framework's path.
6· /system/framework/framework-res.apk for basic framework file. This will be pulling it out from our phones.
7· Repeating Number 5, type /system/framework/lge-res.apk for LG's framework file.
8· Now move to X:\...\APK-Multi-Tool\place-apk-here-for-modding\ and copy both apks (framework-res + lge-res) and paste it at X:\...\APK-Multi-Tool\other\
9· Run Setup.bat again, type 2 and press Enter. Now both frameworks should be installed and we are ready to un/pack APKs from the version we're actually using (v30A/B/C/D...). Close it.
10· Back in Script.bat, type 0 again followed by Enter, then type the path of your desired APK. (/system/framework/xxxxxx.apk for frameworks & /system/app/xxxxxx.apk for apps). After pushing it, select it as your actual project.
11· Now type 9 followed by Enter. This will unpack our APK.
12· Now is the time for tunning anything you want to. Go to X:\...|APK-Multi-Tool\projects\xxxxxx.apk\ and you'll find there everything.
13· When it's done, let's re-pack it typing the option 11 followed by Enter. When repacking gets done, it will ask if you want to use any files from your original APK. Tell it Yes, otherwise your apk won't get signed.
14· When the extracting is done, move to X:\...|APK-Multi-Tool\keep\ and erase everything there BUT META-INF folder + AndroidManifest.xml. Now press anything at APK Multi-tool window and you'll get your APK ready to go.
15· Now type 8 to push it back to your phone and type the desired path. If it cames from /system/app/xxxxx.apk or /system/framework/xxxxx.apk.
If you get any error recompiling it, you should take a look at the log, typing 23 and fix it at the projects folder.
Click to expand...
Click to collapse
2.
potaturrias said:
When i maked this theme (my first theme) y used trial and error procedure.
The first step is replace or edit 9.png. pictures in drawable-hdpi folder located in framework-res.apk and lge-res.apk, you can do this quickly using this tools:
http://jgilfelt.github.com/android-actionbarstylegenerator (Check that the names of new pictures match with the old pictures)
http://android-holo-colors.com/
Many images have to edit them by hand
If you put more files than originally,for example switches in lge-res drawable-hdpi, you will get an error when try to compile.
The second step is replace xml files in drawable folder using xml files from zip file that you downloaded in the previous step.
If you don't get the desire result you have to edit styles.xml or drawable folder files or layout files to change backgrounds colors, text color,etc.
Remember there applications with lines in XML files that reference to framework or lge-res, for example:
android:textColor="@*android:color/transparent makes reference to transparent color defined in framework-res and
android:textColor="@com.lge.internal:color/transparent makes reference to transparent color defined in lge-res.
I hope that this mini guide help you, remember that you can make your theme based on this theme, will be easier i think.
Click to expand...
Click to collapse
Thanks to @potaturrias!

[GUIDE]MAKE APK'S ON YOUR PHONE-for kustom live w'paper app ONLY- inc playstore ready

This tutorial is for lollipop & marshmallow rom users only !​​
Works with or without Root !​​For making apk's for kustom live wallpaper app only !​​​
The apk's should run on any ROM 4.4 upwards​
Newbie Friendly !​​​
DISCLAIMER ​
I, in no way take responsibility for any damage you may cause to your phone by following this tutorial as ApKTOOL app is capable of accessing your system folders and thereby you changing or deleting something you shouldn't,
That said the instructions I give do not use any system locations, so if you follow them properly you will be OK!​
Welcome to my tutorial for making apk's for kustom live wallpaper ( klwp ) on your PHONE.
Please don't be put off by the length of the tutorial, its IMHO very easy to follow and I have tried to write it in such a way that anybody can follow and understand it and have an end result without too much head scratching.:fingers-crossed:
No major knowledge needed, just the skill of being able to navigate around your phone files and being able to follow instructions as is, and finally, the ability to revel in your own glory for making your first pc-less apk. :victory:​
Top tip, (as if you didn't know this already)
Have this tutorial up on your PC whilst following it, no keep swapping between recents on your phone then.:good:
I would like to thank @plegdroid AKA Pete Nolan for introducing me too and walking me through the stages needed to use ApkTOOL :good:
If your making apk's for personal use to share from a cloud I.e. dropbox etc, you do not need to use zipsigner as the ApKTOOL app can sign for this kind of sharing.​
Apps and stuff you will need to download for this 'magic' to take place are...
ApkTOOL, download here (github link here).
Klwp sample apk, download here
Komp sample apk, download here
Android asset studio (launcher icon generator) link here (bookmark this !)
Droid edit, play store link here
Zipsigner (only if you want to publish to play store), play store link here
Photo Editor (if you don't already have one), play store link here
!!Do not install ApKTOOL or klwp/komp sample apk's yet, please wait for instruction to tell you to do so!!​​​​
Sounds like a lot to do, right?....
Setting up everything up the first time takes a bit of time, But once you've done it, and got used to the fairly simple instructions, you'll be making apk's in MINUTES on your phone....
FYI.
I deleted and uninstalled all associated with this tutorial so that I could write the instructions as a person following this tutorial I.e. installing the apps first then writing the instructions step by step as I went through each stage, thereby hopefully getting them as clear and succinct as possible :good:
There is a thread for ApkTOOL here for kitkat, although it is a general thread as ApKTOOL can do much more than just make apk's for kustom, but please don't post on this thread about it as I don't use it on kitkat and only use it for kustom, so if this interest's you please post your queries there.:good:
Also as this is my first "proper" tutorial, I would really appreciate any feedback...
How easy it was to follow.
Any problems you had.
Conformation that it worked for you
Suggestions
Etc.​
CREDITS
@plegdroid - for all your help(and contiued help):good:
@rkucheran - for also helping out (and continued help):good:
@Brut.all - original creator of ApkTOOL
@iBotPeaches - current maintainer of ApkTOOL
@frankmonza - for klwp app and sample apk's
Roman Nurik - for android asset studio
André Restivo - for droid edit
Ken Ellinwood - for zipsigner
Dev.macgyver - for photo editor
@browcantor - for confirming, working without root .:victory::good:
@TheKrates - for confirming working on marshmallow ROM :good:
If you find this tutorial helpful then please take the time out to subscribe and rate thread, oh and press thanks if you feel like it :good:​
Let's get started, move on to post 2.​
Installing ApKTOOL
And getting things ready​
Using your file explorer for steps 1, 2 and 3..
1, Make a folder on your sd card (internal memory, not on micro SD) and call it [highlight]Apktool[/highlight].
2, Move [highlight]ApKTOOL.apk[/highlight] to the folder you just created and install [highlight]ApKTOOL.apk[/highlight], (If you can't install the ApKTOOL.apk, then goto your phone settings select security then check allow unknown sources, then install ApKTOOL.apk again.) when its finished installing press open, it will then ask you to install an update, install the update and when its finished press done.
3, Also move [highlight]klwp.sample.apk[/highlight] and [highlight]komp.sample.apk[/highlight] to the Apktool folder you created in step 1, [highlight]BUT DO NOT INSTALL THEM[/highlight].
4, Go into your app drawer and open [highlight]ApKTOOL[/highlight] app.
(If you are rooted open the three dot menu top right of the screen, press settings, scroll to the bottom and check the root option, there's no need to really do this, I do just because I can :laugh
5, Navigate to [highlight]sdcard[/highlight] then the [highlight]Apktool[/highlight] folder you made earlier,select it, now your screen should now 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"
}
6, Click on the [highlight]klwp.sample.apk[/highlight] and pick [highlight]decompile resources[/highlight], leave it to do its thing for some moments (sometimes up to 40 seconds), once complete you should get this on your screen...
Press OK.
7, Your Apktool folder should now have the decompiled apk called [highlight]klwp.sample_src[/highlight] in it and should look like this...
Now thats all set up, lets move onto next post​
Making your asset (launcher) icons
These are the small pictures that show on people's phone's when they use klwp app.​
You can skip this post if you want to use Andi as your asset launcher icon..
he comes as default.​
Note..
Also if you already have a ic_launcher.zip from previous apk's you have made then you can skip straight to step 5.
1, Firstly using a photo editor, make, crop or resize a picture to a size of [highlight]256x256[/highlight], it can be whatever you like a photo, an image you've made or just text on a background, remember it will end up small though so too much detail may be hard to see and if making an app for playsore be considerate of copyright laws etc..then save it.
2, Goto Android asset studio (that I asked you to bookmark in post 1) In your browser, and click the word 'image' near the top of the page, this will then give you the option of choosing an action . Navigate to the image you made in step 1 and pick it..
3, The Android asset studio page should now look like this, but obviously with your picture .
You can play about with the settings on the page if you like, but I just leave them the way they are.
4, Press the download zip button, this will then put the zip in your downloads folder, it will be called [highlight]ic_launcher.zip[/highlight].
For steps 5, 6, 7, 8 and 9, use your file explorer.
5, Go into your download folder and extract the [highlight]ic_launcher.zip[/highlight], once extracted open the folder which will be called [highlight]ic_launcher[/highlight] and then open the res folder and delete the [highlight]mipmap-xxxhdpi[/highlight] folder as this is not needed. Copy the other 4 '[highlight]mipmap[/highlight]' folders.
6, Navigate to your [highlight]sdcard[/highlight] then open your [highlight]Apktool[/highlight] folder, click on the [highlight]klwp.sample_SRC[/highlight] folder, select [highlight]res[/highlight] folder and paste the 4 '[highlight]mipmap[/highlight]' folders you copied, in there.
7, click on [highlight]mipmap-hdpi[/highlight] and copy [highlight]ic.launcher.png[/highlight], then go back into the [highlight]res[/highlight] folder and click on [highlight]drawable-hdpi[/highlight] folder then paste the image you just copied, you should get a prompt with options , choose overwrite.
8, Copy step 7 for the remaining 3 [highlight]mipmap[/highlight] folders, taking care to make sure you copy and paste/overwrite from and into the correct folders
9, Now delete the four [highlight]mipmap[/highlight] folders (not the drawable folders, which I did once and had to do the whole procedure over again ) and exit your file explorer..
Suggestion.
If you are planning to make ultra fast apk's as detailed in post#7, then use a default ic_launcher pic I.e.your avatar that way you can use the same launcher pics for all your apk's and can skip this post
Right, that's the boring bit over, Let's get to the cool geeky bit and start building ..​
Building your APK​
[highlight] Due to changes in the way that klwp saves your wallpapers or komponent you now need to rename your klwp/komp file with a .zip at the end either before or when you place them in the assets folder [/highlight]
Use your file explorer for step 1
1, Decide which [highlight]klwp zip/s[/highlight] (yes you can add more than one) you want to make into an apk, you can find these in your kustom/wallpaper folder, copy the one/s you want and navigate back to your [highlight]Apktool[/highlight] folder and select it, then click on [highlight]klwp.sample_src[/highlight] and then select the [highlight]assets[/highlight] folder, then select [highlight]wallpapers[/highlight] folder , paste the [highlight]klwp zip/s[/highlight] you copied here, (you will see a [highlight]read me[/highlight] file here also, it just tells you to put your wallpaper zips in this folder, [highlight]delete[/highlight] it), exit your file explorer.
2, Open [highlight]ApKTOOL[/highlight] app from your app drawer and navigate to [highlight]Apktool[/highlight] folder and click on it then click on [highlight]klwp.sample_src[/highlight] folder select [highlight]browse[/highlight]
your screen should now look like this.
3, Just to check you zip is in there click on [highlight] assets[/highlight], then click on [highlight]wallpapers[/highlight]
And your screen should look like this, with one or more zips (obviously your zip name will be different)
4, Navigate back to your [highlight]klwp.sample_src[/highlight] folder, then select [highlight]res[/highlight] folder then click on [highlight]values[/highlight] folder then click [highlight]strings.xml[/highlight], you will then be prompted to open with, pick the [highlight]droid edit[/highlight] app you downloaded from post#1.
Your screen should now look like this.
On this screen only edit (with your app name and description )what is written in WHITE, Using only text and numbers you may also use capital letters and spaces...like so..
If you delete anything else by accident, unless you know what your doing I suggest you exit droid editor and start from step 4 again.
Once edited press the little icon I've arrowed on the left of the option ribbon.
And press [highlight]save[/highlight]
5, Navigate back to your [highlight]klwp.sample_src[/highlight] folder, then click on [highlight]AndroidManifest.XML[/highlight], again you will receive a promt and again open with [highlight]droid edit[/highlight] and edit (with your app name ) ONLY what I've highlighted in next pic.Use lowercase text only and no spaces.
So it looks like this
Click on the little icon I arrowed earlier and press [highlight]save[/highlight]
6, Navigate back to your [highlight]Apktool[/highlight] folder and click on [highlight]klwp.sample_src[/highlight] folder, select [highlight]recompile[/highlight] if you have done everything correctly you should get a pop up that looks like this..:fingers-crossed:
Click OK.
7, you should now have an extra apk in your [highlight]Apktool[/highlight] folder called [highlight]klwp.sample_src.apk[/highlight] with ( if you have made one) your own launcher icon..
Click on your new [highlight]klwp.sample_src.apk[/highlight] and pick [highlight]sign[/highlight] you should then get a pop up like this..
Press OK
Then you will notice another apk in your [highlight]Apktool[/highlight] folder called [highlight]klwp.sample_src_sign.apk[/highlight] if you long press on this apk and select [highlight]rename[/highlight] you can then name it the name of your app but don't forget to leave the [highlight].apk[/highlight] on the end..(if you are using the apk for the play store, don't rename it yet this will happen in following posts). Like so..
if you want to go onto the next stage and make the apk play store ready, then keep the [highlight]klwp.sample_src.apk[/highlight] otherwise you can delete it.
8, you can now test your newly built apk by installing it, either by clicking on it now and selecting [highlight] install[/highlight] or installing it the usual way you install apk's, its also ready for you to share via your favorite cloud etc..
Note....
To make a komponent/s apk follow the same instructions from post#2 step 6 but instead use the [highlight]komp.sample.apk[/highlight]. (But obviously copy your komponent zip/s into the komponent folder in post#4 'building your apk, step 1.
Suggestions...
Do not delete the decompiled [highlight] klwp.sample_src[/highlight] folder as this can be used for making ultra fast apk's as detailed in post#7.
If you are planning to update your app then leave the finished apk in the [highlight]Apktool[/highlight] folder for ease of update (copy it somewhere else for backup if you want, though).
Making your apk play store ready.​
1, Using [highlight]ApKTOOL[/highlight] app, navigate to your [highlight]Apktool[/highlight] folder, click on it then select [highlight]klwp.sample_src.apk[/highlight] then from the menu list select [highlight]zipalign[/highlight]. You should get a pop up like this.
Click OK.
You should now have a [highlight]klwp.sample_src_zipalign.apk[/highlight] in your [highlight] Apktool[/highlight] folder, as below..
Exit [highlight]ApKTOOL[/highlight] app.
2, Open [highlight]zipsigner[/highlight] app from your app drawer, press the 3dot menu on top right of screen, select [highlight]my keys[/highlight] from the menu list then press the 3dot menu again and select [highlight]new keystore[/highlight] scroll to the bottom of the new page and click [highlight]continue[/highlight] and fill in the form like so..
Note.You can change the directory if you want but I use my internal storage (sdcard0) then after I have finished all the steps to register my keystore I find the keystore file on my sdcard0 and copy it to my sdcard1 (external storage/micro sd card) as a backup.
Click [highlight]continue[/highlight] then fill out the next page like so..
Obviously I have blacked out my key name/alias, it is 'cert' by default but you can change it if you like and for the key/verify passwords make sure you use the same one that you entered on the previous page, don't change anything else on this page unless you understand what it means. Press [highlight]continue[/highlight].
On the next page leave the defaults as they are (unless you know what your doing) and fill out the form as per the instructions (I just put my name and country code I.e.GB (GreatBritain). Close [highlight]zipsigner[/highlight] app.
3, Now we can sign your new apk...
Open [highlight]zipsigner[/highlight] app again, and press underneath the [highlight]key/mode[/highlight] option which will bring up a menu and amongst the options will be either [highlight]cert[/highlight] (if you didn't change your key name/alias) or your new key [highlight]name/alias[/highlight] (you may have to scroll the menu to find it. Then select it.
Next click [highlight]choose in/out[/highlight] this will bring up a page of folders select [highlight]Apktool/[/highlight] then select [highlight]klwp.sample_src_zipalign.apk[/highlight], your screen should now look something like this..
(I have blacked out the key/mode as its my alias and you may not have the word 'emulated' in your file names that's just a quirk of my old galaxy s3 i9300 I think )
Click [highlight]sign the file[/highlight], you will then get a pop up screen asking you to enter your keystore password, enter it and press OK. You should then get a toast message saying [highlight]file signing operation succeeded![/highlight]
Note...
For future apk's that you make you now have you keystore and can skip steps 1 and 2. :good:
4, last bit ......
Open [highlight]ApKTOOL[/highlight] app from your app drawer and navigate to your [highlight]Apktool[/highlight] folder and open it, you should now have an apk called [highlight]klwp.sample_src_zipalign_signed.apk[/highlight], like so...
Long press on the [highlight]klwp.sample_src_zipalign_signed.apk[/highlight] and select rename from the menu, then rename it the name of your apk remembering to leave the [highlight].apk[/highlight] on the end (and you can delete the other stage apk's now if you want, just long press on them and select [highlight]delete[/highlight])
like so...
[highlight] Your APK is now ready to publish to the Play Store.[/highlight]
[highlight]Voilà [/highlight]
Suggestion...
If you are planning to update your play store app then leave the finished apk in the [highlight]Apktool[/highlight] folder for ease of update (copy it somewhere else for backup if you want, though).
Important notice
If you are publishing to the play store and you are using other people's klwp or komponent ,as is or altered,
Please ask for thier consent first ....
Especially if you are publishing it as a PAID app.​
How to update app version for Play store.​
1, Using [highlight]ApKTOOL[/highlight] app, navigate to your [highlight]Apktool[/highlight] folder, click on it then select the 'play store'.apk you wish to update, mines called taxi (obviously yours will be different so from now on certain folders I reference I will write 'your app name') click on it and select [highlight]decompile resources[/highlight] and wait for it to do its thing...you then should get a pop up like this...
Click OK.
You should now have a new folder called [highlight]'your app name'_src[/highlight] like so...
Use your file explorer for step 2.
2, Depending on what you are updating....
If you're adding a [highlight]klwp.Zip/s[/highlight] to a collection then copy the extra [highlight]klwp.Zip/s[/highlight] you want to add from [highlight]kustom/wallpaper folder[/highlight] then goto [highlight]Apktool[/highlight] folder then click on [highlight]'your app name'_src[/highlight] then [highlight]assets[/highlight] select [highlight]wallpapers[/highlight] and paste the [highlight]klwp.zip/s[/highlight] here.
If you are updating an existing [highlight]klwp.zip[/highlight], then firstly goto [highlight]Apktool[/highlight] folder then click on [highlight]'your app name'_src[/highlight] then [highlight]assets[/highlight] select [highlight]wallpapers[/highlight] and delete the [highlight]klwp.zip[/highlight] already there, then copy your updated zip from [highlight]kustom/wallpaper folder[/highlight], navigate back to [highlight]Apktool[/highlight] folder then click on [highlight]'your app name'_src[/highlight] then [highlight]assets[/highlight] select [highlight]wallpapers[/highlight] and paste the updated [highlight]klwp.zip[/highlight] here.
Exit file explorer.
3, Open [highlight]ApKTOOL[/highlight] app again from your app drawer and navigate to [highlight]Apktool[/highlight] folder and click on it, then select [highlight]'your app name'_src[/highlight] folder and from the pop up select [highlight]browse [/highlight].
(You can check if your zips are in the assets/wallpapers folder if you want)
Click on [highlight]apktool.yml[/highlight] file. Open with [highlight]droid edit[/highlight] app, then this should be on your screen.
4, Edit the [highlight]version code[/highlight] to [highlight]2[/highlight] and edit the [highlight]version name[/highlight] to [highlight]1.1[/highlight] as highlighted below.
Any further versions will be increments of 1 also I.e. 3 & 1.2 etc
Now press the little icon arrowed in post#4 and press [highlight]save[/highlight]. Exit [highlight]droid edit[/highlight] app.
5, Open [highlight]ApKTOOL[/highlight] app again from your app drawer and navigate to [highlight]Apktool[/highlight] folder then click on [highlight]'your app name'_src[/highlight] then click [highlight]recompile[/highlight]. You will now have a folder called [highlight]'your app name_src.apk[/highlight], click on this folder and select [highlight]zipalign[/highlight], you will now have a folder called [highlight]'your app name'_src_zipalign.apk[/highlight]
6, now open [highlight]zipsigner[/highlight] app and press the [highlight]choose in/out [/highlight] button and select the [highlight]'your app name'_src_zipalign.apk[/highlight] then press [highlight]sign the file[/highlight] (your key mode should still be the same as previously used I.e cert or your own alias) and enter your keystore password.
Exit [highlight]zipsigner [/highlight] app.
7, Open [highlight]ApKTOOL[/highlight] app again from your app drawer and navigate to [highlight]Apktool[/highlight] folder then click on it.
You should now have a [highlight]'your app name'_src_zipalign-signed.apk[/highlight], like so.
Now you can delete [highlight]'your app name'_src.apk[/highlight] and [highlight]'your app name'_src_zipalign.apk[/highlight], and also the [highlight]'your app name'_src[/highlight] folder, by long pressing on them and selecting delete.
Lastly long press on the [highlight]'your app name'_src_zipalign-signed.apk[/highlight] select [highlight]rename[/highlight] and rename it [highlight]'your app name' V1.1.apk[/highlight]
[highlight] Your updated APK is now ready to publish to the Play Store.[/highlight]
And Hey-presto..
Make personal apk's ultra fast!​
Now everthings set up we can make personal apk's I.e to share via cloud (not play store) by just changing zips and XML's.
Using your file explorer for step 1.
1, You should already have a decompiled [highlight]klwp.sample_src[/highlight] folder in your Apktool folder as per suggestion at the end of post#4.
Copy which kustom wallpaper you wish to apk next, from kustom/wallpaper folder. Navigate to [highlight]Apktool[/highlight] folder,open it then click on [highlight]klwp.sample_src[/highlight] folder, then [highlight]assets[/highlight], then click on [highlight]wallpapers [/highlight] and paste your copied wallpaper here, then [highlight]delete[/highlight] the previous wall (unless you wish to keep it in the apk)
Exit file explorer.
2, Open [highlight]ApkTOOL[/highlight] app and navigate to [highlight]Apktool[/highlight] folder, open it and click on [highlight]klwp.sample_src[/highlight] folder and select [highlight]browse[/highlight], then click on [highlight]res[/highlight] then [highlight]values[/highlight] then click on [highlight]strings.xml[/highlight] and open with [highlight]droid edit[/highlight].
3, Edit the names you have previously used to your new name, only using upper/lower case letters and also spaces (as per highlighted pic)
Now press the little icon arrowed in post#4 and press [highlight]save[/highlight]. Exit [highlight]droid edit[/highlight] app.
4, Navigate back to [highlight]klwp.sample_src[/highlight] and select [highlight]AndroidManifest.xml[/highlight] and open with [highlight]droid edit[/highlight] app and edit to your new app name, only using lower case letters with no spaces (as per highlighted pic)
Again press the little icon arrowed in post#4 and press [highlight]save[/highlight]. Exit [highlight]droid edit[/highlight] app.
5, Open [highlight]ApkTOOL[/highlight] app and navigate to [highlight]Apktool[/highlight] folder and click on it. Then click on the [highlight]klwp.sample_src[/highlight] folder and select [highlight]recompile[/highlight] from the pop up list, and wait for a few seconds for it to recompile, and if you've done everything correctly you should get a pop up like this..
Press OK.
6, Now you should have an extra apk in your [highlight]Apktool[/highlight] folder called [highlight]klwp.sample_src.apk[/highlight], click on this and select [highlight]sign[/highlight] from the pop up list and click OK on the next pop up .
7, Now you will have another apk in your [highlight]Apktool[/highlight] folder called [highlight]klwp.sample_src_sign.apk[/highlight], long press on it and select [highlight]rename[/highlight], then rename it to your new app name.
You now have your new apk ready for sharing via your favorite cloud etc.
Delete the [highlight]klwp.sample_src.apk[/highlight] now as its no longer needed.
So to summarize your ultra fast apk build
Transfer new klwp zip/s
Edit strings.xml
Edit AndroidManifest.xml
Sign
Rename
Done :victory:
Reserved
Reserved one more
Might as well reserve this one also :laugh:
First! Ha, moved here and if any more assistance is needed, just ping JJD. Thanks and great job here.
Judge Joseph Dredd said:
First! Ha, moved here and if any more assistance is needed, just ping JJD. Thanks and great job here.
Click to expand...
Click to collapse
:laugh: Thank you JJD , and be sure I'll take you up on your offer if needed :good:
Awesome! That's some impressive detailed job.. Well done and thanks for sharing it with us.
Sent from my Nexus 7 using Tapatalk
BRKotucs said:
Awesome! That's some impressive detailed job.. Well done and thanks for sharing it with us.
Sent from my Nexus 7 using Tapatalk
Click to expand...
Click to collapse
Thank you , for you great response:highfive: and your very welcome.:good:
And when you've created your first apk using this method please don't forget to report on your success on the thread. :good:
Awesome tut for noobs and pro's. Subscribed to this thread... ?
Gesendet von meinem LG-D802 mit Tapatalk
Awesome!
What a great source for reference this is, as well as one of the best tutorials I have come across! Great job buddy.
Steve, corkin Matey, love your writing style, and thank you for the Playstore signing guide. And yes I will continue to help if needed ?
ⓐⓝⓓⓡⓞⓒⓛⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ
Matze060906 said:
Awesome tut for noobs and pro's. Subscribed to this thread... ?
Gesendet von meinem LG-D802 mit Tapatalk
Click to expand...
Click to collapse
phonefixguy said:
What a great source for reference this is, as well as one of the best tutorials I have come across! Great job buddy.
Click to expand...
Click to collapse
Thank you both for your great comments , its appreciated :good:
plegdroid said:
Steve, corkin Matey, love your writing style, and thank you for the Playstore signing guide. And yes I will continue to help if needed ?
ⓐⓝⓓⓡⓞⓒⓛⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ
Click to expand...
Click to collapse
Cheers Pete, your comments mean a lot..
Your welcome (play store signing)
And I suspect yours and @rkucheran 's tech help is gonna come in useful as you've both been using this method far longer than me.
Thanks again mate :good:
Right, so ive spotted my first (and hopefully only) mistake. I've updated post#4 'building your apk', instruction number 1, where I ask you to paste your copied wallpaper zips into your asset folder , there is an extra step and very important copy the zips into the wallpaper folder within the assets folder....
Sorry about that....

Categories

Resources