How to replace Siri with Google Assistant! [GUIDE] - Google Home

So as you may know, Google released their Assistant SDK a couple days back. Naturally, my first instinct was to replace Siri with Google Assistant on my MacBook Pro.
Here we go...
NOTICE: I am not responsible for any loss of data or damage to your computer. I strongly recommend backing up your device before following this tutorial. Proceed at your own risk.
You are installing the Google Assistant SDK on to your device, and there are limitations and differences between it and Google Home.
This is not elegant by any means and doesn't have a fancy GUI like Siri, so be warned. It's a bodge. But hey, it works
1. Firstly, download and extract the zip file attached to the bottom of this post. I chose to do this in the Downloads folder. If you haven't already installed Python 3, go ahead and install it (the pkg file is located in the '1. Python' folder).
2. Go to the Project Page (console.cloud.google.com/project) of Google's Cloud Platform Console, and click 'Create Project'. Name your project "My Google Assistant". After your project has been created, close the page.
3. Enable the Google Assistant API by following this link (console.developers.google.com/apis/api/embeddedassistant.googleapis.com/overview) and clicking 'Enable'. Make sure your project is selected (the project title is displayed at the top of the page). Click "Create Credentials", and select "Other UI (e.g. Windows, CLI tool)" and "User Data" in the following dropdown boxes. Give your OAuth 2.0 Client ID a name, and hit 'Create Client ID'. Call your Product "My Google Assistant". When you are prompted to download credentials, click 'I'll do this later'. You will be brought to a page with a list of OAuth 2.0 Client IDs, and you should see the one you just made. Click the download button to the side, and download it to a folder called "googleassistant" in your Home Directory.
4. Ensure that "Web & App Activity", "Location History", "Device Information" and "Voice & Audio Activity" are all enabled in your Activity Control page (myaccount.google.com/activitycontrols) so that Assistant can be personalised to you.
5. Open a Terminal window (Applications > Utilities > Terminal.app), and install pip if you haven't already installed it, by entering the command:
Code:
sudo easy_install pip
6. Navigate to your googleassistant directory:
Code:
cd ~/googleassistant
7. Install these dependencies:
Code:
python -m pip install google-assistant-sdk[samples]
8. Enter the following command, changing XX to the name of the json file you downloaded earlier:
Code:
python -m googlesamples.assistant.auth_helpers --client-secrets XX.json
9. You will be given a URL. Enter it into your browser and login to your Google Account to authorise the application. You will be given a code. Copy it, and enter it back into the Terminal window - this may take a few minutes.
10. Test that your Google Assistant works with your Mic by entering the following command; it will record 5 seconds of audio and play it back to you.
Code:
python -m googlesamples.assistant.audio_helpers
11. If you can hear yourself, entering the following command to start talking to your new Google Assistant! It can take a couple of minutes to load when you first enter the command, and can take a minute to realise you've finished speaking, so be patient! It does become a lot more responsive after you've ran it for the first time. When you enter the command, wait for it to prompt the command "press Enter to send a new request", and ignore any warnings.
Code:
python -m googlesamples.assistant
Congrats, you just got Google Assistant working on your Mac!
12. Now to replace Siri with Google Assistant, go to the '2. Assistant App' folder from the archive you downloaded and extracted from this post earlier. Copy it, and place it in the ~/googleassistant directory you created earlier.
All this app does is run the Terminal command from step 11 when pressed (if you're worried, all of these apps can be opened in Automator so you can see there's no funny business here).
13. Next, go to System Preferences > Users & Groups > Login Items, and add the Assistant app as a login item, and click the checkbox to Hide the app so it runs in the background.
14. Go to the directory '/System/Library/CoreServices/SystemAppearance.bundle/Contents', and press Cmd-I to bring up the Get Info dialog box. Give yourself Read & Write access by clicking the padlock at the bottom of the window, clicking the '+' Icon, your username, and setting your Privilege to 'Read & Write'.
Next, enter into the 'Resources' folder and do exactly the same thing to the file 'Assets.car', giving yourself Read & Write access.
15. Repeat step 14 at the directory '/System/Library/CoreServices/Siri.bundle/Contents', again with the 'Resources' folder and 'Assets.car' file.
16. IF YOU DO NOT HAVE A TOUCH BAR, SKIP THIS STEP!
Open the '3. Icons' folder from the archive you extracted earlier, and open ThemeEngine.app. Click 'Open Document', go the directory '/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources',
and click on 'Assets.car'. Go to the "TouchBarControlStripSiriContent" element, and backup the original image by dragging the 'normal' image to your Desktop or location of your choice.
Next, go into the Images > TouchBar folder and drag the 'sharedArt...' image into the 'normal' box to replace it. Click File > Save and exit.
17. If you do not have ThemeEngine open from the last step, open the '3. Icons' folder from the archive you extracted earlier, and open ThemeEngine.app.
Click 'Open Document', but this time go the directory '/System/Library/CoreServices/Siri.bundle/Contents/Resources', and click on 'Assets.car'.
Go through each element, and backup the original images by dragging both of the images in 'StatusMenuDark', 'StatusMenuLight', and the two images in 'ZZZZPackedAsset-1.0' and 'ZZZZPackedAsset-2.0' to your Desktop or another safe location.
Next, go into the Images > StatusMenuDark in the archive you extracted earlier, and ensure the 'StatusMenuDark' element is selected in ThemeEngine. In the folder, there will be two images - one that begins with 'siri-menu-icon-darkmode_', and one that begins with '[email protected]_'.
Look at the image that is selected in Theme Engine, and drag the image with the same name into its place.
Repeat this with the 'StatusMenuLight', 'ZZZZPackedAsset-1.0' and 'ZZZZPackedAsset-2.0' elements + folders in the archive (sidenote: the PackedAsset elements only have one image inside each, unlike the StatusMenu elements). After this, click File > Save and exit.
18. At this point, you have replaced the Siri Icons with Google Assistant Icons, and have Google Assistant set to open in the Terminal when you login. But all those Siri apps still just open Siri! Lets fix that.
It turns out that when you click the Siri Icon on your Touch Bar, in your Status bar, or open Siri in the Applications folder, they're actually all just shortcuts for opening Siri.app in the CoreServices folder.
In System Preferences, click on Siri and make sure it is DISABLED - do not close this window!
Next, open Activity Monitor (Applications > Utilities > Activity Monitor.app) and search for Siri. Kill Siri and its related service if running.
Open a new Finder Window, and navigate to '/System/Library/CoreServices'. Copy Siri.app and back it up somewhere safe. Go the archive, open the folder '4. Siri Shortcut', and copy Siri.app into the CoreServices folder, replacing the Siri app that's already there. Go back to your System Preferences window, and enable Siri. Close out of your windows, restart your mac, and hey presto - Siri has been fully replaced by Google Assistant! You're welcome.
That Siri.app is again an AppleScript made in Automator, and it essentially just enters 'Return' into the Terminal window when pressed. In other words, it's the equivalent of clicking 'return' in that Terminal window when you were talking to Google Assistant earlier. As I said, it's a bodge, but it works!
When the Terminal window launches, don't exit it! Instead, press Cmd-H to hide the window.
If you want to go back to Siri just follow this tutorial again (in the correct order), but replace the Assistant files with the Siri files that you backed up.
I hope you found this useful!
If you did, please follow me on twitter (@_lucasys) and help share this guide around
ZIP FILE: drive.google.com/file/d/0B9n0ZPG3Fgh3emJaanRHT2ZMSWc/view?usp=sharing
Screenshots: imgur.com/s88t7hC, imgur.com/qIi5t9W
Thanks to Alexander S. Zielenski and Mishaal Rahman

Reserved
Reserved Post

Wow keep it up man!

Any tweaks like this for jailbroken iPhones?

Python
Valiante said:
Any tweaks like this for jailbroken iPhones?
Click to expand...
Click to collapse
I don't know if iPhone have the required version of python if yes then there is a way.

hi, nice hack! one of the best!
does this support local commands for the mac?

Would this work with an M1 Macbook Air and that thise post is like 6 years old?

Related

contacts hardcopy

How can i take a printout of the contacts? i wanted to keep a hardcopy of all my contacts..
thanks.
I don't want to look too much into it, but I would sync my phone in outlook and google the question print contacts list in outlook. I am sure you will come up with something.
Here's a mechanism that is sure to work.
Requirements
1. You will need "pimbackup" for your Windows Mobile device.
2. You will need M$ Excel for your desktop/laptop (assuming it is running Windows).
Steps
1. Use pimbackup to back up all your contacts to a file on your storage card. Remember to TURN OFF "Binary Backup" as you go through the wizard.
2. Once the operation completes, copy the ".PIB" file that it generates in the location that you chose to your desktop/laptop.
3. On your desktop/laptop, rename the file to ".ZIP". Extract the file using WinZip or WinRAR or whatever have you.
4. Inside the ZIP, you will find a file named something like contacts_*.CSC. Rename this file to ".CSV".
5. Now start Excel (DO NOT double click the ".CSV" file to start Excel). In Excel, choose File->Open and point it to the ".CSV" file you got from Step 4.
6. A Wizard will start. Tell the Wizard that the file you are opening is "Delimited", and the Delimiter is a ";" (Semicolon). You can play with the other options but the ones I have mentioned are necessary.
7. RESULT: You will now have an excel sheet that contains rows (one for each contact) spread across columns (a column for Name, another for Number, and so on). Choose the rows/columns you want to print and you're done!
Enjoy!
Thanks a lot. I tried it and it works like a charm.
Thanks Ascii for your detailed procedure.
Keep up the good work.

*GOIN CRAZY!* Creating ADW theme but getting errors

so this is my first attempt on creating adw theme from the directions given here but here is the problem:
ok so to start off i have downloaded the tools in the android-sdk
set up eclipse and have all the resources the need.
i start a new android project and choose to start from existing source and choose the adw template, but then in the window on the top it says : '! The API level for the selected SDK target does not match the min SDK version'
Ignoring that caution and go ahead starting the project choosing Android 2.2 Build target.
Now the problem starts here, when i go in file explorer and navigate to src/x.x.x to rename the package to what i want it in the anroid manifest, it gives me errors in the main.java (the file inside src/x/x/x)
When i open the java file it has 'x' on some strings in the right area and has errors in Mains/Icon Adapter on 4 strings.
I try to rename the folders the readme tells me to, i right click on x.x.x and refractor>rename, write the name i want it to be but errors errors errors and thats only step 2 of the process! ive been trying for 2 hours now and cant get it to work, ill go insane, im new to developing so help will be appreciated a lot
Here's what I normally do:
1. Import the package from existing source (Ignore the caution, it's not important).
2. Open the Android Manifest.xml and change the package name )In my case I rename it com.jaguirre.blah).
3. Now click the 'src' folder. Right-click > Refractor > Rename > Name it the same thing that you put in the manifest.
4. Now open the main.java. At the top it should say something like:
Code:
package com.jaguirre.blah;
If it doesn't say that, make it say "package <package you put in manifest>;"
And then mine is normally fine after that.
Thanks I'll try that, and I love your sense launcher, using it right now
Might make a theme based on it
EDIT: ok i looked into the strings and all of them had 1 thing in common is that they all had @overide before it started while other strings didnt, so i removed the @overide and voila, no errors!
JAguirre1231 said:
Here's what I normally do:
1. Import the package from existing source (Ignore the caution, it's not important).
2. Open the Android Manifest.xml and change the package name )In my case I rename it com.jaguirre.blah).
3. Now click the 'src' folder. Right-click > Refractor > Rename > Name it the same thing that you put in the manifest.
4. Now open the main.java. At the top it should say something like:
Code:
import package com.jaguirre.blah;
If it doesn't say that, make it say "package <package you put in manifest>;"
And then mine is normally fine after that.
Click to expand...
Click to collapse
ok just tried, everything is there as it says but is main.java theres a cross by icon adapter under main and has a cross all on the get strings, whats wrong with this crap!
bump. im in the same boat, trying to get any theme example to work, and having same issues.
webstar1 said:
ok just tried, everything is there as it says but is main.java theres a cross by icon adapter under main and has a cross all on the get strings, whats wrong with this crap!
Click to expand...
Click to collapse
Having the same problems . Can someone please help us, I spent much effort drawing my custom icons, and I'm not going to just give up yet.

Easy way to install bootanimations

###OK I haven't really written a tutorial before so if you catch a mistake please let me know so I can make the changes###
In my method we will be using Android Commander on a PC
Note: This does work on Win7
Android Commander is a free program that allows you to see the root and sd locations of your phone without having to type codes through adb. With this you can drag and drop anything anywhere onto or off of your phone.
Lets begin!
1: Ensure your phone drivers are installed and updated. Also that your phone is plugged in
2: Ensure you have the latest sdk downloaded and installed. You need this for adb. You'll see why in a minute
3. Download and install the attached file at the bottom. This is the Android Commander program.
4. On the first run of Android Commander if you don't know what the options that are shown meen then select the I don't know/ autodetect option.
5. When AC finally opens you will see two windows. On mine the left is Windows Files and the right is Android Files
Personally I don't use the Windows Files side for anything. Its all about your preferance because AC allows you to drag directly from your desktop to the Android Files window.
You should notice on the Android files side all your android "system" folders. locate your original bootanimation like this: Double click "data" then double click "local" Once inside the local folder you will actually be able to see the original bootanimation.zip file. From here select the check box next to it and hit the copy button. By default AC will "copy" the selected file to whatever window is open on the Windows side but you can choose to copy it to your choice. If you don't want to copy it AC allows you to right click it and simply delete it. Your choice. I won't be held responsible if you do delete it and later you decide you want it back!!!
Moving on, once you've done what you want to the original bootanimation.zip you need to locate the new bootanimation of your choice and simply click and drag it to the AC window. When you drop it a window will pop up asking where to put it. Obviously you will want to push it to the android side so if android is on the right then select right window and select ok. Another window will pop up showing the push in progress. I have mine set to close on finish so that window goes away once the file is moved.
Done!
After this you can restart your phone to watch the animation on start up or you can cmd into your phone and actually play the bootanimation to see it working on your phone without restarting!
To use adb to see it without restarting your phone open cmd by winkey+r then type cmd and then hit enter. in cmd navigate to your adb tools like this:
NOTE: I'll use mine as an example.
Code:
C:\Users\Name>cd C:\Android\platform-tools
NOTE: I typed "cd" then my tools location. Important.
Press Enter
Code:
adb remount
Press Enter
Code:
adb shell
Press Enter
Code:
bootanimation
Press Enter. Once you press enter this time the animation will play instantlly on your phone if all has went well. Also if it plays then the install has worked obviously...
To stop the animation press ctrl+c
I know this tut may seem a bit long, but once you do it a couple times I believe you will see this is the easiest and quickest way to change your bootanimation.
If your still confused, watch my Instruction Video file at youtube:
http://www.youtube.com/watch?v=LIeia2HAXXk
Will this work with the Samsung Fascinate? Thank you
i found bootanimation in data\media folder not data\local

[tutorial] creating terminal command shortcut on home screen

to create terminal command shortcut you will need these apps
1.script manager
2.sm widget
3.es file explorer
now creating shortcut:-
1. open es file explorer
2. create a folder naming "scripts"
3. open scripts folder
4. create a simple .txt file and write only one command in it like 'reboot' without writing su after that rename the extension of the file to .sh (for e.g reboot.sh)
5. open script manager app
6. go to scripts folder
7. tap on .sh file a dialog box will appear
8. tap on fav and su icon and press save button(if dont have root dont press su icon)
9. go to the home screen and just create a widget or shortcut there now pressing the reboot shortcut or widget it will reboot the device
have fun and don't forget to press thanks button it helps me alot
if you are reading please reply to the post if it's working or not
Since you asked, it works when creating a widget, but not for a shortcut. Did you test both widget and shortcut, or did you just test widget and assume that shortcut would also work?
I have checked both Shortcut and widget and both of them are working
Thanks for checking. I will investigate further to find out why it's not working for me.
Regards,
Jacko
If you have sm widgets installed it will surely work
OK. I see what has happened.
The name of the add-on to be installed is neither "sm widget" (your first post) nor "sm widgets" (your most recent post). Because "sm widget" did not appear when I did a Play Store search, I assumed it was something which would be downloaded and installed by the main SManager app if I tried to create a script shortcut on the home screen. The name of the add-on is in fact "SMWidgets". I have now installed it and both the widget and the shortcut are working.
Thanks again for your help. It is very useful being able to run scripts from the home screen, like I do with command scripts on my Windows desktop.
Regards,
Jacko
It is crude: you can't define shortcut icons for one thing.
I can run your commands as SU if you have SU installed.
Overall, tasker is a much bette option IF YOUR DEVICE SUPPORTS tasker.

[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