{
"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"
}
Default lockscreen themes can be found here
I figured since there is a Widgetlocker theme thread, us MIUI users should also have one for the new MIUI lockscreens.
HOW TO INSTALL THEME
The theme will always be a .mtz file. Some might put the .mtz file in a .rar file or a .zip file.
if it's a .mtz file, do this:
1. copy it to this folder: /sdcard/MIUI/Themes
2. (on the phone) open Theme Manager
3. go to Edit theme
4. then Lockscreen Style
5. choose the lockscreen theme you want
if it's a .rar file or .zip file, do this:
1. extract with 7zip or winrar
2. then there should be a .mtz file that's been extracted
3. follow the above instructions for .mtz file
HOW TO FIND A CLASS FOR THE APP YOU WANT (This is a how-to that I found somewhere , I'm not sure who wrote it anymore. So CREDITS go to who ever wrote this
1. go on the market and download launcher pro
2. Launch it (either using the home button or with home switcher, also available on the market)
3. add a shortcut to your home screen (either by long pressing the screen or with the menu key)
4. in the dropdown menu select activity
5. let it load up the list of your android activity (may take a while if, like me, you have like 150 apps =P)
6. search through the list for the app you wanna load with the lockscreen
7. select it and after you'll see another list that will pop out from under the name of the app, those are the activity
8. scroll through that second list for the action you want (in case of playerpro or other music app the right on is usually the first one
9. under the name of the action you'll see a thing that kinda looks like a very weird and inverted url, thats what you want.
10. (optional) you may click on it to create an actual shortcut on the launcherpro homescreen to test if you got the right path (if it opens the stuff you want
Here is a link to the manifest reference thread created by pomenx
http://forum.xda-developers.com/showthread.php?t=1146200
Video tutorial on how to make a simple lockscreen theme
Video Tutorial
========================================================================================
TO DOWNLOAD THE LOCKSCREEN THEMES, PLEASE GO TO: [MIUI LS THEMES] New Official MIUI Lockscreen Thread
POSTED BY TheSwaggeR
Thought I'd share my instructions for those wanting to know or don't know how to change simple stuff like Celsius to Fahrenheit, or toggle true/false for status bar stuff, or anything else.
If you have Root Explorer that will be the choice of app to do this work. My other recommended app is Dual File Manager but I'm not sure if it supports the many features that Root Explorer helps us gain access to. I haven't used this app yet but really liked the feature that allows you to open up 2 different folders and drag and drop files and such between the both of them without having to go to one folder, back out, go to another, back out... so on and so forth.
Steps:
1. Open up Root Explorer (my app of choice to do changes)
2. Go to SD Card
3. Scroll down and find MIUI folder and click on that
Reminder: Some of you may not even have the lockscreen added to your collection yet. You may be like me and download stuff, drop them in your Dropbox on your PC, and then use your Dropbox app on your phone to download the content and it will be in the dropbox folder. Whichever way works. Just make sure you keep the original untouched version as a backup in case you mess up editing it.
4. Scroll down to theme folder
5. Look for the lockscreen you are wanting to edit
When you find the lockscreenname.mtz file you should rename it to preserve the originality if you mess up or want to go back to the original state of what it was in. So, all you need to do is long-press it, click Rename, change lockscreenname.mtz to lockscreenname.mtz.bak. This will render the file useless and keeps it from operating. It is useful for preserving for later use. If you should use it again just rename lockscreenname.mtz.bak to lockscreenname.mtz.
6. Long-press on lockscreenname file
7. Click on Copy
Next step I recommend is making a folder on the root of your SD Card. I use an empty folder to put files or whatever in that I'm currently doing work on so they don't get all cluttered, lost, separated with all the other stuff on the root of the SD Card
8. Make a folder on root of SD Card (example work-in-folder)
9. Click on that folder
10. Click on Paste to paste the copied version of your lockscreenname file
11. Long-press lockscreenname file and click on Rename
12. Rename lockscreenname.mtz.bak to lockscreenname.zip
13. Hit ok
14. Long-press lockscreenname.zip and scroll down to Extract All
15. Click yes to go to Extracted folder
16. Long-press the extracted folder and click on Move
17. Hit back button to go back to your work-in-folder
18. Click on Paste
You should now have a lockscreenname folder and a lockscreenname.zip in your folder. Do not delete lockscreenname.zip yet because you may need to start over again if you mess something up.
19. Click on lockscreenname folder
You will now see a series of folders, usually wallpaper, preview, lockscreen file, and description.xml
20. Long-press lockscreen file
21. Click on Rename
22. Rename lockscreen to lockscreen.zip and hit Ok
You should now have a lockscreen.zip there.
23. Long-press lockscreen.zip
24. Scroll down to Extract All
25. Go to Extracted folder
26. Long-press lockscreen folder
27. Click on Move
28. Hit back button to go to previous folder
29. Click on Paste
You should now have lockscreen.zip and a lockscreen folder. Please do not delete either one just yet.
30. Click on lockscreen folder
You should now see advance folder and theme_values.xml. I have noticed before that some lockscreens do not have a theme_values.xml so I will provide the code so you can insert a theme_values.xml
Code:
Code:
<MIUI_Theme_Values>
<bool name="config_show_status_bar_battery_for_keyguard">false</bool>
<bool name="config_show_status_bar_carrier_for_keyguard">false</bool>
<bool name="config_show_status_bar_date_for_keyguard">false</bool>
<bool name="config_show_status_bar_notification_for_keyguard">false</bool>
<bool name="config_show_status_bar_status_for_keyguard">false</bool>
<bool name="config_show_status_bar_time_for_keyguard">false</bool>
<bool name="config_lock_screen_battery_animation_horizontal">false</bool>
</MIUI_Theme_Values>
Each line will show what will be displaying on the status bar of your lockscreen. Some people like all of it showing, some prefer just signal and battery, others like nothing on it.
What each line means:
Code:
Code:
<bool name="config_show_status_bar_battery_for_keyguard">false</bool>
Shows battery
Code:
Code:
<bool name="config_show_status_bar_carrier_for_keyguard">false</bool>
Shows carrier such as VZW, Google, or a custom made carrier logo
Code:
Code:
<bool name="config_show_status_bar_date_for_keyguard">false</bool>
Shows today's date
Code:
Code:
<bool name="config_show_status_bar_notification_for_keyguard">false</bool>
Shows all the notifications, which are usually your app icons that you normally see on the left side of your status bar.
Code:
Code:
<bool name="config_show_status_bar_status_for_keyguard">false</bool>
Shows your signal strength 1x/2G/3G/4G etc, Wifi, Bluetooth, Music, etc.
Code:
Code:
<bool name="config_show_status_bar_time_for_keyguard">false</bool>
This will obviously show the current time
Code:
Code:
<bool name="config_lock_screen_battery_animation_horizontal">false</bool>
This one may confuse people, but, this basically reverts the regular battery icon into a top bar battery life. You will notice a full line or a shorter line, depending on battery life, at the very top of your screen.
Last part for the introduction on the meaning of each line is the true/false part. You can keep all lines there and change true/false to display or not display a specific line. Or, you can just take pieces of the line (example carrier and status) and delete the rest of the line. Either way works.
There are 3 ways to create the theme_value.xml
1. Notepad++ http://notepad-plus-plus.org/
2. Copy+Paste a previous theme_values.xml from a different lockscreen (make sure that the lines match the codes shown above
3. Make a theme_values.xml using Root Explorer
Notepad++
Download and install this program. I use it all the time for XML editing and such. It's a beautiful tool and extremely helpful.
You can copy and paste the codes I provided above into Notepad++ and click on File and Save as theme_values.xml
Transfer it by Dropbox or phone hooked up to the PC.
Put it in the lockscreen folder under advance folder. Do not put theme_values.xml IN the advance folder.
Copy+Paste
If you have seen a theme_values.xml in a previous lockscreen, just copy that and paste it into the lockscreen folder under the advance folder.
Use Root Explorer to Make theme_values.xml
While you are in the lockscreen folder (with the advance folder showing) click on Menu soft-key and then click on More.
You will see a list of other options. Click on New File. A dialogue box will open up and name the file theme_values.xml.
You will now see what looks like a notepad with the name theme_values.xml. Long-press theme_values.xml and scroll down to Open in Text Editor and click that. You will then need to type in the exact code structure provided above or copy and paste the entire code and edit what you need or don't need as you go. Click Menu-soft key and click on Save and Exit.
You now have a theme_values.xml file to control your status bar for your lock screen!
Back to the Steps:
31. Click on theme_values.xml to edit what will or will not show on your status bar
32. Hit Menu-soft key and click Save and Exit
33. Click on advance folder
Advance folder has a series of files. You will mostly see png's that make up the entire appearance and detail of your lockscreen. If you are editing png's or redoing stuff, this is where you will find it.
Also in this folder you will find the manifest.xml file. This is the file that makes up the entire structure of the working mechanism of your lockscreen. Without this file, the lockscreen is rendered useless.
34. Scroll down to find the manifest.xml
35. Long-press manifest.xml
36. Scroll down to Open in Text Editor and click that
37. Make changes in the lines that you want to change
38. Hit Menu-soft key and click on Save and Exit
You will probably see a manifest.xml.bak after making changes to this file. Do not delete this file because if something should go wrong, this will be the original working file. If you should decide to go back to the original settings, delete the new manifest.xml and then change the manifest.xml.bak to manifest.xml. If you make changes to that again, it will go back to manifest.xml.bak.
Now we're done with editing manifest.xml, possible changes to png's, making or editing theme_values.xml.
39. Go back to the folder showing lockscreen folder, lockscreen.zip. wallpaper, preview, and description.xml
40. Delete lockscreen.zip
41. Long-press lockscreen folder
42. Scroll down to Zip this folder
You will then be taken to the Zipped folder's folder.
43. Long-press lockscreen.zip
44. Click on Move
45. Go back to previous folder
46. Click on Paste
47. Long-press lockscreen.zip
48. Click on Rename
Careful what you do here... we will be just deleting the extension to make it a deliberate file.
A dialogue box will come up to Rename this file. You need to delete .zip so it will go from lockscreen.zip to lockscreen.
49. Hit ok
50. Hit back to go to work-in-folder
51. Delete lockscreenname.zip
You will then just see lockscreenname folder
52. Long-press lockscreenname folder
53. Scroll down and click on Zip this Folder
Again, this will take you to the Zipped folder's folder.
54. Long-press lockscreenname.zip
55. Click on Move
56. Go back to previous folder
57. Click on Paste
58. Long-press lockscreenname.zip
59. Click on Rename
60. Rename lockscreenname.zip to lockscreenname.mtz
Make sure you rename this file to mtz or it will not work in the Theme editor.
Voila! You're done. Just go to the Theme app, click on Edit Theme, hit Menu-soft key, click on Import, scroll down to the folder that has the newly edited lockscreenname.mtz and click that file.
Enjoy your newly edited lockscreen! Keep in mind, you can do many more things with Root Explorer. Even for an entire theme. Although, there is limits, it is still useful when you need to make changes and cannot or don't feel like going to your PC to do all that work and transferring everything back and forth.
I dedicate this to people who look for shorter and quicker ways to do things or help people understand how to change easy stuff. Hopefully this will help new people or people who are baffled at how others change things so quickly.
to download the lockscreen themes, please go to: [MIUI LS THEMES] New Official MIUI Lockscreen Thread[/color][/b]
IF YOU DON'T SEE YOUR THEME IN THE [MIUI LS THEMES] New Official MIUI Lockscreen Thread, PLEASE FEEL FREE TO POST IT IN THE NEW THREAD.
Great mod! How did you manage to center the clock with the ikun numbers?
Thanks, DL & subbed!!
I hope someone can put a Twitter shortcut, instead of a browser or music shortcut.
bustadroid said:
Great mod! How did you manage to center the clock with the ikun numbers?
Click to expand...
Click to collapse
In the XML file search for time.png and you will have to change the "x" coordinate from 148 to 130
Or change it to your liking
wow dude awesome job... one of the reasons i'm gonna flash miui just to try these sick themes
Thank you.. Looks amazing.
Edit: Need Help!! I cant see it in the theme list after copying it to my themes folder. I tried to import it too, but no go. Please help!!
Looks dope, keep up the good work.
wow, amazing!
Cool~~ Thanks for share
killmastern3 said:
Thank you.. Looks amazing.what phone are using
Edit: Need Help!! I cant see it in the theme list after copying it to my themes folder. I tried to import it too, but no go. Please help!!
Click to expand...
Click to collapse
What phone are you using?
h_zee13 said:
What phone are you using?
Click to expand...
Click to collapse
Motorola Defy running MIUI 1.6.17.
killmastern3 said:
Motorola Defy running MIUI 1.6.17.
Click to expand...
Click to collapse
Well it should be under: theme manager - edit theme - lockscreen style
h_zee13 said:
Well it should be under: theme manager - edit theme - lockscreen style
Click to expand...
Click to collapse
Can't find it. Can't import it either.
Sent from my MB525 using XDA App
Is the bug fixed? You know, the PIN bug.
killmastern3 said:
Can't find it. Can't import it either.
Sent from my MB525 using XDA App
Click to expand...
Click to collapse
that's weird...are you on the latest version of MIUI?
@BazookaAce
I'm not sure since I don't use the lock PIN
i updated op with new version that has a slightly different status bar
h_zee13 said:
that's weird...are you on the latest version of MIUI?
@BazookaAce
I'm not sure since I don't use the lock PIN
Click to expand...
Click to collapse
Damn you hippie!
Sent from my HTC Desire HD using XDA Premium App
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....