I posted the original thread over in the Sprint section here: http://forum.xda-developers.com/showthread.php?t=1915508 Please try to keep questions in the Sprint thread, but I wanted to share here also. Hopefully this helps someone!!.
Theming a keyboard may be common knowledge to some of the amazing Devs here. But to a noob like me, it took some research and time to get it working without breaking the original signature (That's the trick!). I searched the forum and it doesn't look like anyone has posted a "How To" on theming a keyboard, so I thought I'd share my experience with you all.
**Some of these steps may seem elementary, but I tried to explain everything in layman's terms so even a beginner can theme a keyboard.
// Before you get started:
You must have a working environment setup. Check out QBKing77's awesome video "How to install the android-sdk" to get that going.http://forum.xda-developers.com/showthread.php?t=1614922
Make sure you also have installed:
Notepad++ (for editing xml) // (www.notepad-plus-plus.org)
7zip (for extracting apks) // (www.7-zip.org)
the image editor of your choice. I use Paint.Net(www.getpaint.net), and Gimp(www.gimp.org). Both FREE!
apktool (http://forum.xda-developers.com/showthread.php?t=1755243)
LatinImeDictionaryPack.apk (drop in the 'system\app' folder on your phone. Only for the LatinIME.apk) Grab it here: http://d-h.st/Ebb
// This method has worked with every keyboard that I have encountered so far. I will use 'LatinIME.apk' for reference, as that is the stock ICS keyboard. //
WARNING.. DO NOT POST DISTRIBUTION LINKS TO ANY MODDED 'Swype.apk'. XDA HAS A STANDING ORDER FROM NUANCE (MAKERS OF SWYPE), THAT DOES NOT ALLOW SUCH LINKS TO BE POSTED.
1) To start make sure you have a working copy of your keyboard apk; grab it out of a ROM, download it, or use a file manager with root access (like Root Explorer) to copy it to your SD card then to your computer.
**I would suggest dropping the keyboard apk into a folder on the desktop, seperate from anything else, and making a backup of the original so that you have a spare copy.
2) Using 7zip extract the 'res\drawable-xhdpi' folder into the folder you created. This folder will contain the pngs that control some of the keys, outlined in red on this pic:
{
"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"
}
Color these pngs to match using your favorite editor and save (bucket fill with Paint.Net is a breeze!)
3) Now that your pngs are themed.. Within the folder that you created containing your apk, hold down shift and right click. Select "Open Command Window Here" to fire up command prompt.
4) Next to decompile the keyboard apk with apktool (again using 'LatinIME.apk' for reference, but the apk may be of a different name; SamsungIME.apk, HTC_IME.apk, etc.).
Type this command:
Code:
apktool d LatinIME.apk
When it's done, you will see a folder with the apk name appear, within the folder you created. Click into it and you should see at minimun a 'res' folder and a 'smali' folder.
5) Navigate to 'res\values' folder. Depending on the keyboard you are working on, the xml controlling the remaining key colors will be contained in the 'colors.xml' or 'styles.xml' file. Open with Notepad++, and change the color codes as needed. Save and close.
6) Go back to the root of the folder containing your apk, and fire up command prompt (if it's not still open). Now it's time to build using this command (again using 'LatinIME.apk' for reference, but the apk may be of a different name; SamsungIME.apk, HTC_IME.apk, etc.)
Code:
apktool b LatinIME
7) When it's done building, you should have 4 folders minimum now (res, smali, build, dist) and it's time for the key to success. Navigate into the 'dist' folder and you will see the "Built" apk. Open it with 7zip, and extract the 'resources.arsc' file to your folder. Close 7zip.
8) Now it's time to pull it all together. Navigate back to the ORIGINAL keyboard apk, and open with 7zip.
Copy (you can drag and drop with 7zip) the 'resources.arsc' that you extracted from your "Built" apk, into the "ORIGINAL" apk overwriting the file. Then with 7zip still open and the apk loaded, navigate (within 7zip) into the 'res\drawable-xhdpi' folder where you should see the list of unthemed pngs. Simply drop your edited pngs into this folder. Close 7zip and you're done here!
9) Finally, take your "ORIGINAL" but themed apk, and push it back the 'system\app' folder on your phone.
Fix permissions to 'rw-r--r--' (only check everything under 'read' and Owner under 'write')
Reboot, and bask in the glory of your new themed keyboard!
**Alternatively, grab my empty zip installer here: http://d-h.st/oKG to flash in recovery. You must drop your themed apk into the system\app folder of the zip and save. Also, the zip already contains the 'LatinImeDictionaryPack.apk'
Please hit THANKS if I helped!! And please keep this thread alive!
Reserved
Related
IF YOU HAVN'T READ MY GUIDE HERE: http://forum.xda-developers.com/showthread.php?p=27059306#post27059306 THEN PLEASE GO READ IT,AS IT WILL BE HELPFUL FOR YOU AND YOU WILL BE ABLE TO LEARN MORE EASILY.THANKYOU.IF YOU HAVE READ IT THEN LETS BEGIN!
Requirements:
A zip/unzip utility like 7-Zip
Image editor of your choice like PhotoShop, GIMP, Paint.NET, heck even MS Paint will do.
A plain text editor of your choice. Using Windows Notepad for editing text files that are to be used in Linux is not always a good idea, so use something like Notepad++ instead.
As much time and creativity as you are willing to put into the task.
You must know the screen resolution of your device if you don’t know it already. You can find the resolution by searching for your device specifications on Google.
Note: A high resolution device will be able to play a boot animation made for a low resolution device but it will not take up the whole screen, while a high resolution boot animation will not display completely on a low resolution screen device.
Procedure:
Go through the entire Inside the bootanimation.zip File section of this guide first, if you haven’t already done so.
Plan how your boot animation will run. This includes how many distinct parts it will have, how long will each part play and what will be the sequence of the parts.
Make a new folder at any convenient location on your computer, and name it bootanimation.
In this folder, create a folder for each part of your boot animation, named part0, part1 and so on.
In the image editor of your choice, make all the image files for each part of your boot animation with the proper dimensions equal to your phone’s screen resolution, and save them in the respective folder for each part, in PNG format. Up to 32 bit PNGs are supported.
Note: In case you are converting an existing boot animation to fit your phone’s screen, simply extract the images from it and resize each of them to your device’s screen resolution.
Make sure the images are named in numerical format and in proper sequence, i.e. the images in the first part should start with let’s say 00000.jpg and go on till 00075.jpg, and the images in the second part should then start off with 00076.jpg and go on till – for instance – 00123.jpg.
Once you have the images for all the parts done and saved with proper names in each folder, create a text file named desc.txt in the main bootanimation folder.
Open the text file in a text editor and edit it in the format described in detail in the desc.txt file section above. Do consider that a frame rate higher than 30 fps can give issues on many devices.
Note: In case you are converting an existing boot animation to fit your phone’s screen, keep everything the same as in the original desc.txt file and change only the resolution.
Now select everything inside the bootanimationfolder and zip them into a new uncompressed zip archive using your favorite compression utility. Here is the method using 7-zip:
Select everything inside the bootanimation folder.
Right-click on any of the selected files/folders and from the 7-zip menu, select ‘Add to archive’.
Use ‘zip’ as the archive format and ‘Store’ as the compression level, and click OK. This will create a file called bootanimation.zip in the same folder.
Apply A Boot Animation
File browser method:
Connect your phone to your computer via USB and mount the storage card for file transfer.
Copy the bootanimation.zip file that you want to install, to your SD card.
Unmount USB storage and launch the file browser of your choice on your phone.
Browse to /system/media, copy the existing bootanimation.zip file from there and paste it somewhere safe on your SD card.
Browse to the location on the SD card where you copied the new bootanimation.zip and copy it.
Browse to /data/local and paste the bootanimation.zip file there to override the default system boot animation without replacing it.
OR
Browse to /system/media and paste the bootanimation.zip file there.
If you are using Super Manager, you will have to enable its root function first from the settings. Furthermore, you may need to mount the /system partition as read-write first too upon entering it.
ENJOY YOUR NEW BOOTANIMATION!
Reserved.
reserved
Here is my attempt:
{
"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"
}
Its the BIOS boot animation from here but has been edited to now show AOKP 4.0.4 (instead of 2.3.6) and some other small alterations to bring up to date.
Please i am new to this so go easy if i have done it wrong.
Jrhoop said:
Here is my attempt:
Its the BIOS boot animation from here but has been edited to now show AOKP 4.0.4 (instead of 2.3.6) and some other small alterations to bring up to date.
Please i am new to this so go easy if i have done it wrong.
Click to expand...
Click to collapse
I just saw it,it works great keep it up!
Sent from my GT-I9100 using xda premium
Awesome
Hey Faseeh thank you bro, this guide is the most simplest and easy to follow I have ever seen, thank you bro it helped me more than you know. Awesome stuff. You should become a lecturer bro.
kicker09 said:
Hey Faseeh thank you bro, this guide is the most simplest and easy to follow I have ever seen, thank you bro it helped me more than you know. Awesome stuff. You should become a lecturer bro.
Click to expand...
Click to collapse
Haha Glad I could thanks alot for the compliment. I am just 15 can't become a lecturer now
Sent from my GT-I9100 using xda premium
awesome tutorial, super simple to understand. cheers!
here is a brief visual tutorial on porting skins from hdpi to mdpi
had a few people ask for my help so i thought i would do a tutorial
firstly you need to decompile the apk you want to theme/resize using Apk Manager
1) Download apkmanager ( http://www.apkmultitool.com/?q=node/5 ) and install it.
2) Put the apk you want to decompile in 'place-apk-here-for-modding' folder.
3)Copy com.htc.resources.apk from /system/framework with Root Explorer to your sd card
copy to pc and put in APK Manager/other folder
4) Double click on 'script'
5) Type 22 i.e. 'set current project' and press enter.
6) Type 1 and press enter
7) Type 9 and press enter to decompile apk.
8) Wait until the decompilation finishes.
9) Minimize command line and go to projects -> filename.apk -> make the required changes (see attached images)
10) Switch back to command-line, type 11 and press enter.
11) After sometime you'll get a message 'is this a system apk?', type n and press enter.
12) Then type 12 to sign apk
13) Go to 'place-apk-here-for-modding' folder, your new file will be signedfilename.apk
14)Copy the file to SD card
15)Copy the file to system/app with Root Explorer
16)Change permissions to RW-R-R
{
"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"
}
this is a side by side comparison of mdpi and hdpi images
the quickest way of resizing is with Faststone Photo Resizer
Remember to add all images from drawable-hdpi and drawable-port-hdpi
most images will come out the right size give or take 1 or 2 pixels
normal PNG's will be ok,it's those pesky .9PNG's that need editing the most
after resizing .9PNG's will either need patching with draw9patch.bat included in Android SDK
or you can copy and paste minus the 1 pixel border in photo editing software aka Photoshop
I prefer to use Photoshop method
after you've finished editing your images goto point 10) type 11 to recompile
use a base skin such as slate
if you want to edit colors.xml for volume bars etc i will upload ColorEdit.exe
most skins only need 60-70 of the images to be edited,mostly the main ones you can see ie. rosie buttons widget headers and footers etc
Time and Patience needed Happy Editing
PS if you're porting somebody else's theme/skin don't forget to seek their permission first
Any Queries PM me
Wow!!! Nice work bro!!!!
opposedtmessia
Hey Bro,
Having a problem. I am unable to post images in my threads as you've done now with Adobe CS GUI Screen Shots.
All those images I upload can only be seen as attached thumbnails not as part of the page
Any help would be appreciated
Thank you
|BIA|Jason said:
Hey Bro,
Having a problem. I am unable to post images in my threads as you've done now with Adobe CS GUI Screen Shots.
All those images I upload can only be seen as attached thumbnails not as part of the page
Any help would be appreciated
Thank you
Click to expand...
Click to collapse
when you post ,in the box that you type in,above that is a button INSERT IMAGE,you have to type in the box the URL of your image,so you need to upload it to an image hosting site
Can i use this method to resize mdpi apps to ldpi?
Sent from my E10i using xda app-developers app
pongnamu said:
Can i use this method to resize mdpi apps to ldpi?
Sent from my E10i using xda app-developers app
Click to expand...
Click to collapse
You can.....but you may have to change the sizes accordingly
hey dude.....thats what i was searching for..........just 1 quest....will this method work for cm7 themes...? basically i want to port some hdpi themes to ldpi/mdpi.......If it works then could you please pm me the details.....thnx
Thanks for good info +1
Sent from my HTC Explorer A310e using xda premium
anishsood said:
hey dude.....thats what i was searching for..........just 1 quest....will this method work for cm7 themes...? basically i want to port some hdpi themes to ldpi/mdpi.......If it works then could you please pm me the details.....thnx
Click to expand...
Click to collapse
should work for cm7 themes,not tried it myself though, will have a look
check out this threadhttp://forum.xda-developers.com/showthread.php?t=964391
Interesting, could be helpful for Project Llama
I posted the original thread over in the Sprint section here: http://forum.xda-developers.com/showthread.php?t=1915508 Please try to keep questions in the Sprint thread, but I wanted to share here also. Hopefully this helps someone!!.
Theming a keyboard may be common knowledge to some of the amazing Devs here. But to a noob like me, it took some research and time to get it working without breaking the original signature (That's the trick!). I searched the forum and it doesn't look like anyone has posted a "How To" on theming a keyboard, so I thought I'd share my experience with you all.
**Some of these steps may seem elementary, but I tried to explain everything in layman's terms so even a beginner can theme a keyboard.
// Before you get started:
You must have a working environment setup. Check out QBKing77's awesome video "How to install the android-sdk" to get that going.http://forum.xda-developers.com/showthread.php?t=1614922
Make sure you also have installed:
Notepad++ (for editing xml) // (www.notepad-plus-plus.org)
7zip (for extracting apks) // (www.7-zip.org)
the image editor of your choice. I use Paint.Net(www.getpaint.net), and Gimp(www.gimp.org). Both FREE!
apktool (http://forum.xda-developers.com/showthread.php?t=1755243)
LatinImeDictionaryPack.apk (drop in the 'system\app' folder on your phone. Only for the LatinIME.apk) Grab it here: http://d-h.st/Ebb
// This method has worked with every keyboard that I have encountered so far. I will use 'LatinIME.apk' for reference, as that is the stock ICS keyboard. //
WARNING.. DO NOT POST DISTRIBUTION LINKS TO ANY MODDED 'Swype.apk'. XDA HAS A STANDING ORDER FROM NUANCE (MAKERS OF SWYPE), THAT DOES NOT ALLOW SUCH LINKS TO BE POSTED.
1) To start make sure you have a working copy of your keyboard apk; grab it out of a ROM, download it, or use a file manager with root access (like Root Explorer) to copy it to your SD card then to your computer.
**I would suggest dropping the keyboard apk into a folder on the desktop, seperate from anything else, and making a backup of the original so that you have a spare copy.
2) Using 7zip extract the 'res\drawable-xhdpi' folder into the folder you created. This folder will contain the pngs that control some of the keys, outlined in red on this pic:
{
"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"
}
Color these pngs to match using your favorite editor and save (bucket fill with Paint.Net is a breeze!)
3) Now that your pngs are themed.. Within the folder that you created containing your apk, hold down shift and right click. Select "Open Command Window Here" to fire up command prompt.
4) Next to decompile the keyboard apk with apktool (again using 'LatinIME.apk' for reference, but the apk may be of a different name; SamsungIME.apk, HTC_IME.apk, etc.).
Type this command:
Code:
apktool d LatinIME.apk
When it's done, you will see a folder with the apk name appear, within the folder you created. Click into it and you should see at minimun a 'res' folder and a 'smali' folder.
5) Navigate to 'res\values' folder. Depending on the keyboard you are working on, the xml controlling the remaining key colors will be contained in the 'colors.xml' or 'styles.xml' file. Open with Notepad++, and change the color codes as needed. Save and close.
6) Go back to the root of the folder containing your apk, and fire up command prompt (if it's not still open). Now it's time to build using this command (again using 'LatinIME.apk' for reference, but the apk may be of a different name; SamsungIME.apk, HTC_IME.apk, etc.)
Code:
apktool b LatinIME
7) When it's done building, you should have 4 folders minimum now (res, smali, build, dist) and it's time for the key to success. Navigate into the 'dist' folder and you will see the "Built" apk. Open it with 7zip, and extract the 'resources.arsc' file to your folder. Close 7zip.
8) Now it's time to pull it all together. Navigate back to the ORIGINAL keyboard apk, and open with 7zip.
Copy (you can drag and drop with 7zip) the 'resources.arsc' that you extracted from your "Built" apk, into the "ORIGINAL" apk overwriting the file. Then with 7zip still open and the apk loaded, navigate (within 7zip) into the 'res\drawable-xhdpi' folder where you should see the list of unthemed pngs. Simply drop your edited pngs into this folder. Close 7zip and you're done here!
9) Finally, take your "ORIGINAL" but themed apk, and push it back the 'system\app' folder on your phone.
Fix permissions to 'rw-r--r--' (only check everything under 'read' and Owner under 'write')
Reboot, and bask in the glory of your new themed keyboard!
**Alternatively, grab my empty zip installer here: http://d-h.st/oKG to flash in recovery. You must drop your themed apk into the system\app folder of the zip and save. Also, the zip already contains the 'LatinImeDictionaryPack.apk'
Please hit THANKS if I helped!! And please keep this thread alive!
Thank you so much dude. This really helps me out!
Easy for us good tut for new themers. Its really not a hard process guys. You just need an idea of what you want and take time on it. If you get exhausted take a break and come back to it some other time.
The end result will be your own creation. That's what makes android so awesome. Open source!
I noticed gapps is rather large (for my taste); being around 190mb, it's twice the size of my rom. So I had an idea, since I only use about 3 or 4 of the Google apps (play store, Gmail, aosp messaging, and probably one more), why don't I just decompress it, remove the bloat, then recompress it into a zip file. Problem is, I get an error when I flash it. I know there's probably something obvious I'm missing, but I wasn't able to find anything on xda to remedy this problem.
So for those of you who don't want to read that or missed the question, can I streamline gapps? (decompress, debloat, recompress)
After rezipping did you sign it, I do believe you need to do that. Zipsigner in the playstore should work.
jethro650 said:
After rezipping did you sign it, I do believe you need to do that. Zipsigner in the playstore should work.
Click to expand...
Click to collapse
Awesome, thanks!
+1
You should be able to use the "open archive" functionality in your zip tool (like 7-zip). Install 7-zip. once installed, right click on the gapps zip file you are wanting to reduce in size... Select 7-Zip >>> Open archive. Then select folder which has the file you want to remove (Gapps are in /system/app folder). Then select the Google apps you want to remove (highlight, then select red X for delete). If will ask for confirmation, respond "yes". After you have deleted what you don't want, hit "File >>> Exit". This will retain all the original zip file signature properties. Do NOT extract files... use the Open Archive functionality.
I do this all the time on ROMs when I want to trim programs I don't plan on using before I flash zip. Takes up less space.
DoctorQMM said:
You should be able to use the "open archive" functionality in your zip tool (like 7-zip). Install 7-zip. once installed, right click on the gapps zip file you are wanting to reduce in size... Select 7-Zip >>> Open archive. Then select folder which has the file you want to remove (Gapps are in /system/app folder). Then select the Google apps you want to remove (highlight, then select red X for delete). If will ask for confirmation, respond "yes". After you have deleted what you don't want, hit "File >>> Exit". This will retain all the original zip file signature properties. Do NOT extract files... use the Open Archive functionality.
I do this all the time on ROMs when I want to trim programs I don't plan on using before I flash zip. Takes up less space.
Click to expand...
Click to collapse
Great! Turns out signing wasn't it but I'll take that approach and posts my results
Bingo! Got it down to 51mb lol
One more question, is there a way to do this on your phone? It'd make this process even easier. I'm using ROM toolbox right now and as far as I know, you can only browse, not delete or modify the contents.
Gfrt94yn said:
One more question, is there a way to do this on your phone? It'd make this process even easier. I'm using ROM toolbox right now and as far as I know, you can only browse, not delete or modify the contents.
Click to expand...
Click to collapse
I use SpeedSoftware on my phone to extract apks (like inverted apps) from other device installable ROM zips. But you have to "extract" the files... then you can "re-zip" the file after you remove/add files; however, I cannot say for certain if the signature integrity remains (i.e., by re-zipping, not sure if you'll retain the valid signatures). The Open Archive functionality does not require "extraction" and "rezipping"... that's why I like it. Hopefully someone else will chime in regarding android programs which have the Windows like "open archive" functions.
{
"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"
}
Here is one that alliws the "open" function. https://play.google.com/store/apps/details?id=ru.zdevs.zarchiver
jethro650 said:
Here is one that alliws the "open" function. https://play.google.com/store/apps/details?id=ru.zdevs.zarchiver
Click to expand...
Click to collapse
Exactly what I was looking for! Says it's not compatible with my device but I can pull a few strings
Thanks again for all your help guys! I hope to start cooking up roms before too long, just gotta learn the very basics first
EXTRA APPLICATION OPTION IN SETTINGS MENU
This is my first thread, so please ignore my errors.
We have seen custom ROMs having some extra options in settings. This is a guide of adding these options.
This guide is for Galaxy y, but also can work for devices with similar settings.apk (like Ace, duos etc.)
Prerequisites:-
1) A rooted phone (I can't strech how important this is )
2) Backup your orginal settings.apk
3) Basic knowledge of decompiling and recompiling.
Procedure:-
1)Decompile settings.apk and apk of the app you want to put. (I am decompiling Proximity Actions)
2) Go to decompiled app folder and open AndroidManifest.xml. Note Package and Target Class. (Marked with red circle Attachment # 1)
{
"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"
}
3) Open decompiled folder of settings. Go to /res/values/strings.xml. Open with Notepad++.
Enter code <string name="prxt_ctrl">Proximity Control</string> in the end before /resources>. You can edit red coloured text to anything which you want to appear in settings. You can also give any string name, but remember it.
4) You need an icon to put in settings(You can get it from that decompiled app). Resize it to 24x24 pixels (FOR GALAXY Y ONLY)
5) Put that icon in settings/res/drawable-Idpi with any name(remember it). I have given name ic_settings_prxt
6) Go to settings/res/xml/settings.xml. Open with Notepad++
7) Add code <com.android.settings.IconPreferenceScreen android:title="@string/prxt_ctrl" settings:icon="@drawable/ic_settings_prxt">
<intent android:targetPackage="novum.inceptum.proximity" android:action="android.intent.action.MAIN" android:targetClass="novum.inceptum.proximity.PA_Activity" />
</com.android.settings.IconPreferenceScreen>
Here string is used from step 3. Use icon from step 4. Package and targetClass from step 2.
8) Save and compile Settings.apk and complete formalities of recompiling.
9) Push Settings.apk to /system/app and set permissions to rw-r--r--.
10) Enjoy
PRESS THANKS IF HELPED. I REALLY NEED IT.
there is a similar thread. plz search before post. mods plz close this thread.
Galaxy Pop Plus'ımdan Tapatalk 2 ile gönderildi.
That guide you are talking about by PinapleOwl is different method. It is just how to add extra ACTIVITY with smali editing. Here you dont have to edit smali. Please note the difference before comment. Also this has detailed screenshots for noobs.
Sent from my GT-S5360 using xda-app
Using CWM........Busybox Commands........No I use my hands
Think the thread being referred to is
http://forum.xda-developers.com/showthread.php?t=2341389
Which has more options such as sub directory
Anyway it's a clear guide for anyone who needs simple directions
marcussmith2626 said:
Think the thread being referred to is
http://forum.xda-developers.com/showthread.php?t=2341389
Which has more options such as sub directory
Anyway it's a clear guide for anyone who needs simple directions
Click to expand...
Click to collapse
No. That guide has different Settings structure. It is for Xperia Arc where menus are classified by category.
In our Galaxy y, we don't have settings_header.xml.
Indeed both guides are similar, but I think a set of simple instructions would be helpful, so I have written this thing.
i cannot find android:targetPackage android:action etc
shadman0 said:
i cannot find android:targetPackage android:action etc
Click to expand...
Click to collapse
its the name of the apk in its manifest - decompile the target apk and look
I have Problem
marcussmith2626 said:
its the name of the apk in its manifest - decompile the target apk and look
Click to expand...
Click to collapse
Marcussmith2626 I have Build The App And Sign App After I have Place System/app and givr it permissions r w r r after reboot The Settings is Not Come in Launcher
shadman0 said:
Marcussmith2626 I have Build The App And Sign App After I have Place System/app and givr it permissions r w r r after reboot The Settings is Not Come in Launcher
Click to expand...
Click to collapse
If you have not edited Manifest of your SETTINGS APP (IMPORTANT), then you don't have to sign that APK. Just open both apks (newly compiled and original) in 7zip 7zip ONLY (Right click on apk ====> 7zip ====> Open archive)
Then drag META-INF of original apk to compiled apk and push to /system/app and change permission to 644 (rw-r--r--)
Same problem
A BIG Thanks for your help
hnkotnis said:
If you have not edited Manifest of your SETTINGS APP (IMPORTANT), then you don't have to sign that APK. Just open both apks (newly compiled and original) in 7zip 7zip ONLY (Right click on apk ====> 7zip ====> Open archive)
Then drag META-INF of original apk to compiled apk and push to /system/app and change permission to 644 (rw-r--r--)
Click to expand...
Click to collapse
OR you can patch service.jar with lucky patcher and see