[GUIDE][TWEAK] Switch back OK / Cancel buttons in ICS ROM (including HTC)
It's here:
framework-res.apk\res\layout\alert_dialog_holo.xml
{
"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"
}
Find button2 and button1 and switch them
For HTC ROM repeat operation additionally for:
framework-res.apk\res\layout\zzhtc_alert_dialog_holo.xml
com.htc.resources\res\layout\alert_dialog.xml
Also you might want to change buttons order in PackageInstaller.apk
To do that you have to switch "left" and "right" attributes for the following tags:
in install_confirm.xml
in op_progress.xml
in uninstall_confirm.xml
And please don't ask, "why do we need this? it is good as it is".
Who needs this, knows why.
Would this work for a Galaxy Note on ics to swap the function of the capicitive buttons round?
AMoosa said:
Would this work for a Galaxy Note on ics to swap the function of the capicitive buttons round?
Click to expand...
Click to collapse
No, I don't think so. It's for on-screen buttons, not for hardware ones.
There are some key mappings in \system\usr\keylayout folder. Maybe you should dig in there.
Wish that i found this thread sooner... Already got used to it unfortunately. Nevertheless thanks for the tip!
sent from my white ray using XDA App
Thanks for the info
Sent from my Nexus S4G using Tapatalk 2
for htc phones, similar edit required for:
\res\layout\alert_dialog.xml in com.htc.resources.apk
edit
can you tell me what edit program you use to edit this mod ?
Thank you for posting this mod! The flipped OK/Cancel buttons were driving me absolutely crazy. Just wanted to post an FYI for others in my boat. I have an EVO 3D and just upgraded to ICS and the XML files are all compiled. I've never hacked binary XML before, so while this is small fry stuff for many, for me it took a while to figure out what to do. I ended up using APKTool to decompile the framework-res, hand edited the XML in Notepad++, used APKTool to recompile it, then copied the META-INF folder back into the apk...
One gotcha. When recompiling, there's a resource file that is apparently malformed according to APKTool so I had to dig for a while to figure out how to resolve that, then I found this post. Thankfully, only the anims.xml file was messed up for me, so I only had to do the first step to get it to recompile.
Hope this helps somebody else out there.
Sorry to kick an old thread, but does anyone know if this fix will also fix the call answer buttons on ICS/Sense 4? Or if not, how to do that? I could honestly get used to the dialogs, but the call answer buttons are going to keep driving me crazy because they go against the ingrained behavior from practically every single phone ever. Thanks!
Could anyone advice on how to recompile the famework-res. apk? Try to do using apk manager, but it seems to be a bit complicated. Apk manager says it has created some "keep" folder in which I must delete the edited apk as well as one more file, but after that the original apk size reduces a lot, and one folder within it disappears. Kind of strange. Wonder if there anything about decompiling system apks using apk manager?
Anyone would help me on that matter?
Could fix the framework but stuck with packageinstaller.
Guys, in description for packageinstaller, does "To do that you have to switch "left" and "right" attributes for the following tags" mean you have to switch words "left" and "right", or "id/ok button" and "id/cancel button"? Which fields are to be changed?..
Is Google kidding us?
They change it in every android update >_<
I just success switch in framework-res.apk; I have mod PackageInstaller.apk but not thing change? Install/Cancel button still at there.
Plz, U can mod it for me? I have change left<->right but nothing change Install/Cancel button.
heyjoe66 said:
No, I don't think so. It's for on-screen buttons, not for hardware ones.
There are some key mappings in \system\usr\keylayout folder. Maybe you should dig in there.
Click to expand...
Click to collapse
Why u no reply for mem in ur thread?
I could change framework-res ok, too. But fail to change packageinstaller - get a system error on my android device no matter what I change in xml file. Either the decompilation goes wrong or the apk installation on the device goes wrong.
Anyone has a hint on how to make packageinstaller work as advertised?
Related
Hello,
I'm trying to get 2 or 3 lines in welcome screen to get the next task or appointment.
I tried with Advanced config but it's not working so far.
Any idea ?
Regards
UP this subject is very interesting
Yeaar...
I would like this very much too. i would love if I where abel to remove the icons and show some more appointment instead
got it working with mixing in some manila 2.1 files. got some bugs however, like not being able to change the wallpaper through standard menu (only hdwalls works) ...
{
"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"
}
Please, let me know how you did .. It may help to find the right reg key or mix in manilla
Likewise
I would like to know too please? Many thanks in advance.
Did a little more finetuning and attached the files you need to customize the home-tab like on the screenshot. Install "cmE Home Tab Appointments.cab" and restart sense afterwards to get the new homescreen. "home_tab.zip" contains the same files, in case you want to edit or copy them yourself.
note: this is NOT bugfree, since I couldn't decompile the original lua script without errors, and couldn't find any help on this. BACKUP ORIGINAL FILES BEFORE REPLACING.
known bugs:
can't change wallpaper anymore. use http://forum.xda-developers.com/showthread.php?t=503511 HDWalls to work around this.
let me know if it worked for you.
Thank you, it may not be "bug free" but it helps ;-)
This is a good way too start.
Thanks again
Another solution has been given in this thread :
http://forum.xda-developers.com/showthread.php?t=591199
RSchris said:
With Max Manila Ultimate theme (you will find it on Blackstone theme subforum), you can choose 0, 1 or 2 appointments on homescreen.
Click to expand...
Click to collapse
Not bad but you have to configure everything using the new manilla file.
Max is 2 appointments .
You can check this thread on HTC HD :
http://forum.xda-developers.com/showthread.php?t=551489
Think about getting the Max Manila 2.519202525 Ultimate - v2.5.cab post N°5
This is excactly what I was looking for as well, great, hope there will be a bug free solution soon. It's really important for me to see multiple appointments.
The solution in the post directly above this seems not favourable...
of course people will have to report bugs they encounter, since everything is running right for my needs
Hi,
I'd like to use your files to get more than one appointment, but i have a few questions before :
- You posted two captures, one with weather on the right top, and another one without weather. Which one would we get if we install your files ?
- Is it necessary to edit your files to customize the language ? I'd like to get this interface fully in french.
- Is it possible to add a few shortcuts to applications on the today screen ?
Thank you.
1. It's the second screen.
2. No need to edit any language files. All the files (except 1 XML file for the date - but you don't need it) are language independent.
3. No. I've used Manila 2.1 scripts to show more appointments. I wasn't able to fully decompile the original manila 2.5 files and didn't get any answers to my pm's. As the shortcuts-part was one of the crippled ones, when decompiling, there is no possibiliy to use shortcuts.
Thanks for the feedback
Works great on HTC Leo
Thank you so much for this!!! Its the ONLY way how to get back "device 4 work" again without any music/weather/ whatever crap. Thank you very very much.
Maybe- only one improvement, how to redefine the calendar app back to MS Calendar again instead off HTC Manila Calendar...
It would be a fully "device for work" if it also showed information about tasks somehow...
LEDJSTYLE said:
Hello,
I'm trying to get 2 or 3 lines in welcome screen to get the next task or appointment.
I tried with Advanced config but it's not working so far.
Any idea ?
Regards
Click to expand...
Click to collapse
have a look at the MaxManila Ultimate v 2.6 beta theme: http://forum.xda-developers.com/showthread.php?t=551489. Look for post numner 4, there is the cab file.
Hey guys
I need some help. Does anyone know where the files for the stock lock screen are located? I guess i can spend a week digging around but I figured i post here maybe someone knows already.
Thanks
What are you looking for? I think the graphics are located in the Launcher2.apk somewhere I don't know if the framework and all that stuff is there, but I believe it should be.
well, im looking for the stock lock screen not the custom launcher2. I need to find out the position of the unlock button and the mute button. I am not sure if it is a xml file or somewhere in the jar files.
deanesn said:
well, im looking for the stock lock screen not the custom launcher2. I need to find out the position of the unlock button and the mute button. I am not sure if it is a xml file or somewhere in the jar files.
Click to expand...
Click to collapse
they are in framework-res.apk
layout folder? which files are related to the lock screen do you know? I am not interested in the images I just need to figured how to reposition the buttons. Make a different layout i guess.
deanesn said:
layout folder? which files are related to the lock screen do you know? I am not interested in the images I just need to figured how to reposition the buttons. Make a different layout i guess.
Click to expand...
Click to collapse
probably in the XMLs in framework-res
Thanks, I was just hoping for more specific location like which file and which values. I guess I am asking for too much.
I think i found something.
http://stackoverflow.com/questions/2140964/android-lock-screen-source-code
So the next question is where is "frameworks/policies/base/phone/com/android/internal/policy/impl" on rom lets say like cyanogen? I need to find the lockscreen.java file.
Ahh i found it. The lockscreen.java is odexed in android.policy.jar which resides in the system/framework folder. I feel dumb now for creating the thread now.
Ok so ive spend the whole afternoon trying to figure out all the code in the lockscreen.smali and I have to admit im lost.
What im trying to do here is to fix the wack stock lock screen on the sense ui when you delete the htc lock screen. I wont give up until I get it or someone else working. I just need to know where to look for positioning code of the unlock and mute buttons.
Coming from The HTC Hero cdma. Flipz got it working for us, maybe the fix works for you guys also?
Linkhttp://geekfor.me/fixes/vanilla-lockscreen/
Without text with wallpaper: xml mods, classes.dex
{
"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"
}
With centered text and black background: xml mods
brian m said:
Coming from The HTC Hero cdma. Flipz got it working for us, maybe the fix works for you guys also?
Linkhttp://geekfor.me/fixes/vanilla-lockscreen/
Without text with wallpaper: xml mods, classes.dex
With centered text and black background: xml mods
Click to expand...
Click to collapse
You are my hero. It workssssssss. I think im going to poop myself. lol I can believe its working. It's funny because I've been trying to figure out where the bug is in the lockscreen.smali for the last 2 days and finally tonight I gave up on it. And now you came to the rescue. thanks
I guess now I can at least maybe figure out how to get rid of the transparency but even with this is awesome.
deanesn said:
I guess now I can at least maybe figure out how to get rid of the transparency but even with this is awesome.
Click to expand...
Click to collapse
keyguard_screen_tab_unlock.xml
hex edit to: android:background="#EF000000" (almost opaque black)
Haha thanks brian would you know what to change to make show just the wallpaper? I know I know im asking got too much im happy as it is. The transparency us starting to grow on me
deanesn said:
Haha thanks brian would you know what to change to make show just the wallpaper? I know I know im asking got too much im happy as it is. The transparency us starting to grow on me
Click to expand...
Click to collapse
Over on the DarkSide
brian m said:
Over on the DarkSide
Click to expand...
Click to collapse
Is there anything you don't know? lol you are awesome. I am officially moving to the the Hero section of the forums now since all the answers to my questions reside there. woot
Next on my hunt list is percent for the battery in the taskbar.
Ha should have given the transparent lock screen some time before I asked for a wallpapered version. it has grown on me big time now And im def keeping it. I can see my battery widget though the lock screen without unlocking.
The keyboard on the Droid X has been released and modded to work on an EVO, and some other 2.1 devices.
I think it is a great KB, and will use it over the HTC KB, I like the space between each keys, the speed, and the multi-touch.
The KB looks simple and is very easy to type on, in fact it finally has the biggest feature I want on an android KB, it corrects commonly misspelled words, but does not display them, or suggest them. This feature is cool but IMO, adds clutter to typing. For example, when typing "heklo" on the the keyboard, it auto corrects it to "hello" without displaying words or suggesting them like on the HTC and Stock Android KB.
Now, the purpose of the post. The only thing that Would make this KB perfect for me is to change the background color behind the keys to a grey color, I provided an image with something that I would like using Paint.
I have never developed for android and have no idea how to do it, but if someone who knows how to do it, could simply open up the code of the app, and just change the background from white to a grey, that would be awesome.
Many people would prefer it IMO, and it is a better typing experience because the colors are different and the keys are more noticeable, making it easier to type more accurately.
I provided a screen shot to show what I was talking about, and the original .APK of the Droid X KB.
Any help is appreciated.
If someone could point me in the right direction in finding it, I would be more than happy too. I'm looking through it now, if i figure it out......... I will make a black one
Like I said I have no idea how to develop, but tried something out, maybe it can help you.
I use Astro (file explorer) and when I open it I click browse file.
click 5th option=res>drawable-land-hdpi>then down to keyboard_background.9
I copied that to my computer, edited the pic which was originally white, and then changed it to the grey I wanted, I then deleted the original file to the .APK and then copied the version I edited on their and tried to install it.
But when I went to install it, it says application can not be installed.
If someone could explain it to me, I know because I edited a key file in the app, It probobly won't work or install properly, but does the whole .apk have to be refinalized and ready to install with the change I made to install right?
mjz147 said:
Like I said I have no idea how to develop, but tried something out, maybe it can help you.
I use Astro (file explorer) and when I open it I click browse file.
click 5th option=res>drawable-land-hdpi>then down to keyboard_background.9
I copied that to my computer, edited the pic which was originally white, and then changed it to the grey I wanted, I then deleted the original file to the .APK and then copied the version I edited on their and tried to install it.
But when I went to install it, it says application can not be installed.
If someone could explain it to me, I know because I edited a key file in the app, It probobly won't work or install properly, but does the whole .apk have to be refinalized and ready to install with the change I made to install right?
Click to expand...
Click to collapse
You might just need to resign the .apk.. not 100% sure though, never did it.
How do you do that?
mjz147 said:
How do you do that?
Click to expand...
Click to collapse
Like I said I've never done it, but if I had to I would try this..
http://forum.ppcgeeks.com/showthread.php?p=1838214#post1838214
deleted post
REMOVED: See next post for progress!
deleted pictures
{
"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"
}
Black will be done, going to bed.
I NEED SOME ONE TO HELP WITH THE XML FILES!! Please..... any help would be appreciated. What I need- learn the xml documetns coding, and when that happens... I believe I will have the letters white
froyo support?
will this have froyo support?
saywhat4118 said:
will this have froyo support?
Click to expand...
Click to collapse
If I'm not mistaken, this keyboard FC on Froyo
I'll just post the apk. It's weird how the space button is having the shadow stretching thing going on...... maybe someone can lend a hand.
If you already have the multi touch keyboard installed- uninstall-then install this one-go to settings-then uncheck then recheck multi touch keyboard- change input method in text field
Thanks so much, its people like you that make this website what it is.
It's nothing. I realized, while texting someone, that the weird shadow is on the orginal keyboard too
Sent from my Evo 4g using XDA App
I have made an amazing theme. One minor problem is that I can't recompile framework-res.apk, I tried multiple computers. Also I decompiled it to change a text color in values. Any help would be appreciated.
Thanks
Sorry I can't post in development, I have less than 10 posts
airfluip1 said:
I have made an amazing theme. One minor problem is that I can't recompile framework-res.apk, I tried multiple computers. Also I decompiled it to change a text color in values. Any help would be appreciated.
Thanks
Sorry I can't post in development, I have less than 10 posts
Click to expand...
Click to collapse
I am currently trying to figure out NinjaMorph, it will do the same thing but on your phone. It will also recompile the framework for you and apply it. Check it out.
I am trying it now
Now this is an interesting thread. Please keep us up to speed.
Sent from my SGH-T959V using XDA App
I'm so excited, and I just can't hide it.
I'm about to stalk this thread, and I think I like it.
I tried ninjamorph and it doesn't decompile or recompile the resources.arsc file, which is what holds the res/values folder which has styles.xml; the one that I'm editing.
Apktool decompiles framework-res just fine, it never recompiles it though. I think it may have something to do with my themed pictures already or the samsung weird pictures in the res/drawable-hdpi folder that start with zzz_...
If anyone can recompile, I may upload the folder I want to have recompiled tomorrow.
IF anyone can, please let me know.
Thanks. Also, I anyone wants the theme's beta version with the original white popup menu, let me know.
airfluip1 said:
I tried ninjamorph and it doesn't decompile or recompile the resources.arsc file, which is what holds the res/values folder which has styles.xml; the one that I'm editing.
Apktool decompiles framework-res just fine, it never recompiles it though. I think it may have something to do with my themed pictures already or the samsung weird pictures in the res/drawable-hdpi folder that start with zzz_...
If anyone can recompile, I may upload the folder I want to have recompiled tomorrow.
IF anyone can, please let me know.
Thanks. Also, I anyone wants the theme's beta version with the original white popup menu, let me know.
Click to expand...
Click to collapse
it was worth a shot, ive been working on my status bar for some time now. crossing fingers when im done.
suscribed........
I am uploading the files and maybe a flashable zip shortly for my theme so far. It only works on KD1 and if it is liked, I will make a KC1 and KB5 version of it. Also, as of now, 4g is known as H. It will probably change because I am making some edits.
airfluip1 said:
I am uploading the files and maybe a flashable zip shortly for my theme so far. It only works on KD1 and if it is liked, I will make a KC1 and KB5 version of it. Also, as of now, 4g is known as H. It will probably change because I am making some edits.
Click to expand...
Click to collapse
If you provide the pngs for it I can make the 4g icon. I did it lastnight for my framework, check the home screen thread for pic
Sent from my SGH-T959V using XDA Premium App
The green gingerbread ones?
Also which pngs?
airfluip1 said:
The green gingerbread ones?
Also which pngs?
Click to expand...
Click to collapse
If that is going to be your theme then yes. I would need all of the files below
stat_sys_data_connected_xx.png's
stat_sys_data_in_xx.png's
stat_sys_data_inandout_xx.png's
stat_sys_data_out_xx.png's
xx = either 1x, 3g, 4g, e, g, h, & hp
I used icons from UOT Kitchen and modified it for the 4G icon.
{
"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"
}
Thats the one that I don't have, I think I may have found some though
They may be from an epic theme
ok, i was just saying that if you provided me the ones i mentioned above I could use those to make the 4G instead of having H or H+.
ill be here if you need them made.
OH sure, here you go
here you go
I know that there are many articles about the battery mod, could someone help me? With android xml to regular xml and vice versa?
For those of you who are interested in Cornerstone I took the liberty of putting a little theme together. Keep in mind this is a work in progress and i would appreciate any suggestions or tips.
Before you do anything back up your CSPanel.apk file
Rename to CSPanel.apk
Close Cornerstone
Go to system /app
delete CSPanel.apk (or copy elsewhere and rename)
Copy Modded file to /system/app
Install app
restart Cornerstone
Oh ya this is totally unauthorized so none of the brilliant developers (cyanogen(mod) or Team Eos) should be held responsible if your tab blows up or takes over the world. I as well will take no responsibility if anything happens to your device.
Just incase i'm putting the original CSPanel up as well.
Both Versions have simmilar changes.
Cornerstone Logo replaced
Ugly blue window active bar replaced.
Screens
Team Eos-Cornerstone:
{
"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"
}
ricardopvz CM9- Cornerstone :
Plans for the future:
In order
1. Effects when button presses (this weekend probably)
2. Change the fonts on the window app name thing (this weekend probably)
3. all the icons
4. Make the divider bar between the windows smaller or transparent (as soon as i figure out how)
5. Make the whole thing blend a little better into the system and not just a giant black box with apps in it (as soon as i figure out how)
(pretty much everything else)
Started checking this out on Saturday so i'm still learning. First theme so please be gentle.
Dreamboxuser said:
For those of you who are interested in Cornerstone I took the liberty of putting a little theme together. Keep in mind thiis is a work in progress and i would appreciate any suggestions or tips.
This one is obviously Team Eos and i am currently working on one for the CM9 version.
Essentially all that has been done for now is changed the logo and the horrible blue bar that shows when a window is active.
Rename to CSPanel.apk
Close Cornerstone
Go to system /app
delete CSPanel.apk (or copy elsewhere and rename)
Copy Modded file to /system/app
restart Cornerstone
Oh ya this was totally unauthorized and Team Eos nor myself take any responsibility if your tab blows up or takes over the world.
Click to expand...
Click to collapse
Followed the instructions and even took the extra step of updating the permissions and it told me the app wasn't installed. So, I installed it and everything is running fine.
Nice job. Looks great. Just wanted to share my experience in case others run into the same thing.
good to see another themer here. Just a hint it might be easier to just use villan theme installer rather than replacing apk's as then you do not have the issue of apk corruption or people complaining about loosing the app when they have done something wrong
crashdau said:
Followed the instructions and even took the extra step of updating the permissions and it told me the app wasn't installed. So, I installed it and everything is running fine.
Nice job. Looks great. Just wanted to share my experience in case others run into the same thing.
Click to expand...
Click to collapse
Thanks updated the OP
mrevankyle said:
good to see another themer here. Just a hint it might be easier to just use villan theme installer rather than replacing apk's as then you do not have the issue of apk corruption or people complaining about loosing the app when they have done something wrong
Click to expand...
Click to collapse
K cool i will check it out.. Thanks (That is gonna take some time to wrap my head around i'll give it a try this weekend)
Updated to include CM9 version and original just in case.
Any ideas on how to make this really cool?
Plus I did check out Villain themer... seems from what I read if you flash the from the changes go away. This may be good for the future but since for each release of the Team EOS and CM9 you have to reflash the rom so it may not work.
Sent from my Transformer TF101 using Tapatalk
anyway to make this work on the NOTE gingerbread 2.3.6?
jager13 said:
anyway to make this work on the NOTE gingerbread 2.3.6?
Click to expand...
Click to collapse
check out this link
http://forum.xda-developers.com/showthread.php?t=1425631&page=161
.
Sent from my Transformer TF101 using Tapatalk