Swap Overview and Back button - Xiaomi Mi A1 Questions & Answers

I was thinking of buying this phone but the swapped back and overview buttons would likely drive me crazy. Does the ROM bring an option to swap them to their expected positions? If not is there any tweak that can be done to achieve the same result?

https://play.google.com/store/apps/details?id=flar2.homebutton

dafzor said:
I was thinking of buying this phone but the swapped back and overview buttons would likely drive me crazy. Does the ROM bring an option to swap them to their expected positions? If not is there any tweak that can be done to achieve the same result?
Click to expand...
Click to collapse
You don't need an app, it is an easy mod.

Tulsadiver said:
You don't need an app, it is an easy mod.
Click to expand...
Click to collapse
Can you elaborate "mod"?
The phone can't do it out of the box it seems and all non root guides I could find relied on "Button Mapper" or "Buttons remapper".

tacc said:
Can you elaborate "mod"?
The phone can't do it out of the box it seems and all non root guides I could find relied on "Button Mapper" or "Buttons remapper".
Click to expand...
Click to collapse
Try this first. Copy off and unzip your SystemUI.apk. Go to your layout folder and locate recent_apps.xml and back.xml. Switch the names and replace. Zip it back up, change from .zip back to .apk and replace your SystemUi.apk.
Some phones are more complicated than that but I'd try that first. I normally would decompile and do those changes and recompile back.

Related

[Q] can you change the size of the on screen buttons

i was wondering if there was a way to change the size of the soft buttons for home, back, ect. I was hoping to make them smaller as to not interfere with games and other apps. as well as making the home screen larger and better looking. please if any one has any info on this i would appreciate it. i am not a developer but do have lots of android experience so any info may be useful. Thanks
EDIT: with new firmware out if you have updated the frameworks posted here so far wont work. i am trying to get someone to post a new framework from the new firmware. Hopefully someone will. Thanks
The icons you're interested in are located in the drawable folder of the framework-res.apk (buttonbar_sys_*), along with the relevant xml files. I tried resizing the existing icons, but all you get is smaller icons! The buttonbar remains the same size. I'm currently looking at which xml file to edit to resize the bar itself.
cool looks like a start at least. keep me updated. thanks
You can remove side panel alltogether. Buttons will then placed in the top status panel. Root is needed.
From Archos Gen8 FAQ on 4pda.ru (can't posting outside links, sorry):
In the /data/local.prop file add string
Code:
ro.board.has_buttonbar=no
reboot
to change buttons size, install app LCD Density
add to local.prop sting
Code:
ro.sf.lcd_density=120
reboot
PS. Perhaps with modified buttons from reply #2 we don't need the last step, as it change font size too.
you can also use the app 'lcd density' to change the resolution of the screen, which makes the buttons smaller.
tashtego said:
You can remove side panel alltogether. Buttons will then placed in the top status panel. Root is needed.
From Archos Gen8 FAQ on 4pda.ru (can't posting outside links, sorry):
In the /data/local.prop file add string
Code:
ro.board.has_buttonbar=no
reboot
Click to expand...
Click to collapse
This (and other system settings) can also be found here at XDA
to change buttons size, install app LCD Density
add to local.prop sting
Code:
ro.sf.lcd_density=120
reboot
Click to expand...
Click to collapse
Just to clarify, you either need to add that string to local.prop or install LCD Density, no need for both. The only problem with this is that it changes the size of the entire UI, and makes the icons in the status bar really tiny. That really bugs me!
PS. Perhaps with modified buttons from reply #2 we don't need the last step, as it change font size too.
Click to expand...
Click to collapse
There are different images for the icons in the notification bar. They are also in the drawable folder, but are called stat_sys_*. Also, simply resizing those doesn't work either. Tried it, but the icon area stays the same, so the smaller icons are just stretched out to fill the space - doesn't look good!
Why all the guys want to kill the softbuttons?
Without them, it don´t work
The only thing is bad on the buttons is the fact that they still there by playing games
But on my Archos 5 IT , theres an fullscreen mode with that you can disable the bar/buttons by playing games.. maybe a dev can look at it
Lennb said:
Why all the guys want to kill the softbuttons?
Without them, it don´t work
The only thing is bad on the buttons is the fact that they still there by playing games
But on my Archos 5 IT , theres an fullscreen mode with that you can disable the bar/buttons by playing games.. maybe a dev can look at it
Click to expand...
Click to collapse
no, kill them than install softkeys, it works for me, no any problem^^
Reading through gen8 thread on 4pda.ru i have found another method:
For example, for 32px notification bar height, unpack framework_res.apk and change file \res\values-long-mdpi\dimens.xml as follows:
Code:
<dimen name="full_statusbar_height">32.0px</dimen>
<dimen name="compact_statusbar_height">32.0px</dimen>
<dimen name="statusbar_button_width">40.0px</dimen>
<dimen name="statusbar_button_height">32.0px</dimen>
And don't forget string "ro.board.has_buttonbar=no" in the \data\local.prop
No need to resize images. They will be scaled down automatically.
See attached screens.
ahh looks like progress , im guessing im going to need root if i want to change the framework_res.apk? which one is best for this archangle, uruk or churlis method?
tashtego said:
Reading through gen8 thread on 4pda.ru i have found another method:
For example, for 32px notification bar height, unpack framework_res.apk and change file \res\values-long-mdpi\dimens.xml as follows:
Code:
<dimen name="full_statusbar_height">32.0px</dimen>
<dimen name="compact_statusbar_height">32.0px</dimen>
<dimen name="statusbar_button_width">40.0px</dimen>
<dimen name="statusbar_button_height">32.0px</dimen>
And don't forget string "ro.board.has_buttonbar=no" in the \data\local.prop
No need to resize images. They will be scaled down automatically.
See attached screens.
Click to expand...
Click to collapse
Can you attach your moded framework-res.apk? I have an A70S if that matters. I don't knw how to mod the xml myself so please help out
tashtego said:
Reading through gen8 thread on 4pda.ru i have found another method:
For example, for 32px notification bar height, unpack framework_res.apk and change file \res\values-long-mdpi\dimens.xml as follows:
Click to expand...
Click to collapse
Nice find, thank you so much for sharing. Was still looking at xml files in the drawable folder.
Bickmista said:
ahh looks like progress , im guessing im going to need root if i want to change the framework_res.apk? which one is best for this archangle, uruk or churlis method?
Click to expand...
Click to collapse
Won't work with Archangel root, as that doesn't allow you to make changes to system files.
saprano614 said:
Can you attach your moded framework-res.apk?
Click to expand...
Click to collapse
Will be making some changes to my custom framework, so check out my thread over the next few days.
i need A framework for an 70it. I don't think that the one for a 101 will work on mine. But I don't know.
fisha21 said:
Won't work with Archangel root, as that doesn't allow you to make changes to system files.
Click to expand...
Click to collapse
cheers just one more question, would this work on the A43?
Attaching zipped framework apks, 32px and 24px versions fo 70IT, courtesy by bokorez from 4pda.ru. He used rooting method from here: http://forum.xda-developers.com/showthread.php?t=930197 (permanent r/w). I myself now only waiting for tablet, so i can't check files yet. Use it for your own risk please
It would be fine if somebody much knowledgeable than me would explain here, how to upload these files on the device.
Thanks alot. that helped out a great deal.
EDIT: I think that both are the same. i used them both and they worked but both changed the size to the same. i think that they are both 32px.
tashtego said:
Reading through gen8 thread on 4pda.ru i have found another method:
For example, for 32px notification bar height, unpack framework_res.apk and change file \res\values-long-mdpi\dimens.xml as follows:
Code:
<dimen name="full_statusbar_height">32.0px</dimen>
<dimen name="compact_statusbar_height">32.0px</dimen>
<dimen name="statusbar_button_width">40.0px</dimen>
<dimen name="statusbar_button_height">32.0px</dimen>
And don't forget string "ro.board.has_buttonbar=no" in the \data\local.prop
No need to resize images. They will be scaled down automatically.
See attached screens.
Click to expand...
Click to collapse
Ok I can't find that file in the framework-res.apk. there is no values-long-mdpi folder. A little help
saprano614 said:
Ok I can't find that file in the framework-res.apk. there is no values-long-mdpi folder. A little help
Click to expand...
Click to collapse
I don't know why, but if you open apk with archiver program, there is really no such folder, but if use
Code:
apktool -v d -s framework-res.apk
you get:
Code:
$ ls framework-res/res/values-long-ldpi/
dimens.xml
I think that both are the same. i used them both and they worked but both changed the size to the same. i think that they are both 32px.
Click to expand...
Click to collapse
No, they are different. File framework-res/res/values-long-ldpi/dimens.xml are the same in both versions and contain "24.0px" value (this is error, i suppose). Files framework-res/res/values-long-mdpi/dimens.xml are different and contain "24.0px" and "32.0px" values in 24- and 32-version respectively.
It seems i need to sort it out with the author on 4pda.ru, as i don't have device yet. Or you can try to change file dimens.xml in the folders values-long-* by yourself.
tashtego said:
Attaching zipped framework apks, 32px and 24px versions fo 70IT, courtesy by bokorez from 4pda.ru. He used rooting method from here: http://forum.xda-developers.com/showthread.php?t=930197 (permanent r/w). I myself now only waiting for tablet, so i can't check files yet. Use it for your own risk please
It would be fine if somebody much knowledgeable than me would explain here, how to upload these files on the device.
Click to expand...
Click to collapse
Very happy with the 32px framework!
Next step is to get button savior working properly (return and menu and search get disable themselves after a while , only home keeps working... ) and get completely rid of those buttons on the side AND in the bar
sibere said:
Next step is to get button savior working properly
Click to expand...
Click to collapse
Not sure if you saw the following posts on the enable system settings thread?
yepayepa said:
Mates,
I've investigated why Button Savior won't work, and I've found the solution.
In Uruk (since I'm using it), /system/bin/input shell script miss execute attributes.
So, as root just do this:
chmod +x /system/bin/input
That's all.
Cheers.
Click to expand...
Click to collapse
aznmode said:
Ok so here's exactly what I have to do to get all button on Button Savior to work.
Again I'm rooted via SDE so I'm not sure if this works for Archangel root.
1. With Root explorer, go to System> Bin and look for "input" file.
2. Press and hold for option to pop up and select "Permissions" and check all read, write, etc.
3. Reboot the device
4. Then press the regular Menu button (NOT on Button Savior yet) and go to Settings> Applications> Development then uncheck and recheck USB Debugging and hit OK.
5. Now on Button Savior press the either back or menu button.
6. The Superuser permission will pop up and select yes. If superuser is already set previously then a dialog box will shortly appear stating superuser permission applied.
7. Wait till the dialog box goes away, then press the back button. It should now back up one screen. If you press menu nothing will happen since you are in the Development screen which doesn't have a menu option so don't panic if that happens.
From here you can go back to home and test each button and they should all work now.
Each time you reset the buttons might not work again so what you need to do is go back and uncheck/recheck debugging first before pressing any of the Button Savior buttons. If you press any of Button Savior before recheck/unchecking debugging then it wont work. You'll need to reboot. To be safe uncheck/recheck it every reboot prior to using Button Savior.
The permissions should not be affected on reboot. The only time the permission gets unchecked is if you do the 10 second reset (holding power button for 10 seconds). In this case you have go back to step 1.
Click to expand...
Click to collapse

[Q] How to change Software Buttons

Hi all,
I have:
Nexus 7 4.2.1, Paranoid Android, Franco kernel.
I have been trying for some time now to change the appearance of the software buttons.
I have gone through the settings and i have also checked the Nova settings but i cant seem to find the options anywhere on the tab or in the forums.
I have tried the MIUi but no joy!
If you have any suggestions it would be much appreciated.
Thanks in advance
Here's a thread that might help http://forum.xda-developers.com/showthread.php?t=1880686
Sent from my Nexus 7 using xda premium
I have tried metamorph but for some reason i cannot seem to apply PNG files as my soft buttons that i have for my Evangelion Theme.
Do the files need to be in a different format?
The only file i see in metamorph is MuiuBlue which i don't want to use and even when i click on it i get an error message.
Do i need to download a theme to use with metamorph?
Does metamorph work with Paranoid Android?
Is pa odex or deodexed? Does it matter?
Cheers
Delete.
Sent from my Nexus 7 using xda app-developers app
Where do you change the soft keys??
I cannot find that option anywhere
I haven't seen any way to do it besides manually. I used this guide:
1. Make a backup.. you never know
2. Pull "SystemUI.apk" from "/system/app/"
3. Download flashable version of zenyth keys
4. Open "Zenyth - ICS Blue - Flashable - v3.zip" (Or w/e version)
5. Go to "vrtheme\system\app\SystemUI.apk\res\drawable-xhdpi" and extract all images from there to some folder
6. Open the folder where the image files are put
7. Open "SystemUI.apk" with some file extractor (i used winrar)
8. Navigate to "\res". you will find three "drawable"-folders ending with "xhdpi"
--> sw600dp: phablet
--> sw720dp: tablet
--> just drawable: phone
9. Put the extracted images in the corresponding folders
10. I hope you made a backup! i am not to blame for any fail
10. Close, push "SystemUI.apk" back to "/system/app/"
11. Pray and Reboot
http://forum.xda-developers.com/showthread.php?t=1669169
Click to expand...
Click to collapse
davisac said:
I haven't seen any way to do it besides manually. I used this guide:
Click to expand...
Click to collapse
Just a quick question, will zenyth allow me to apply my own soft keys? Or are they themes for soft keys?
The soft keys i have on my sdcard are PNG format.
Thanks for that, i will give it a go shortly.
I was lost looking in settings to change the appearance of the soft keys, and metamorph was no different.
Cheers
skalicioustimes said:
Just a quick question, will zenyth allow me to apply my own soft keys? Or are they themes for soft keys?
The soft keys i have on my sdcard are PNG format.
Thanks for that, i will give it a go shortly.
I was lost looking in settings to change the appearance of the soft keys, and metamorph was no different.
Cheers
Click to expand...
Click to collapse
Yeah I actually tried a couple different keys to see what I liked. I ended up going back to stock as they seem to work better with tablet UI.

Trying to change menu button to app switcher (Hyperdrive)q

I'm running the hyperdrive rom and would like to change the menu button to the recent apps button, and the longpress home to google now like S5. I found an xposed module that does this but only for the note 3. Anyone have a solution for this?
Jaydawgx7 said:
I'm running the hyperdrive rom and would like to change the menu button to the recent apps button, and the longpress home to google now like S5. I found an xposed module that does this but only for the note 3. Anyone have a solution for this?
Click to expand...
Click to collapse
I can change the menu key to recent apps but not sure about longpress home.
Using a root File Explorer open generic.kl in system/user/keylayout with a text editor.
Go to key 139 and replace 'MENU' with 'APP_SWITCH'. Reboot and you're done.
For google now it should just be a matter of finding the appropriate key.
marxses said:
I can change the menu key to recent apps but not sure about longpress home.
Using a root File Explorer open generic.kl in system/user/keylayout with a text editor.
Go to key 139 and replace 'MENU' with 'APP_SWITCH'. Reboot and you're done.
For google now it should just be a matter of finding the appropriate key.
Click to expand...
Click to collapse
Thanks for getting me in the right direction here. However, when I alter the generic.kl file at all, both capacitive buttons quit working after a reboot. I tried replacing the altered file with a backup i made, rebooted, and they still don't work. The only way to restore function of the buttons is to reflash the rom. Any idea as to why? This seemed like an easy change.... (also tried editing the file via notepad++ on the pc with the same result)
Jaydawgx7 said:
Thanks for getting me in the right direction here. However, when I alter the generic.kl file at all, both capacitive buttons quit working after a reboot. I tried replacing the altered file with a backup i made, rebooted, and they still don't work. The only way to restore function of the buttons is to reflash the rom. Any idea as to why? This seemed like an easy change.... (also tried editing the file via notepad++ on the pc with the same result)
Click to expand...
Click to collapse
What file explorer are you using? ES explorer?
After editing and especially if you're pasting in a back up you need to make sure the files permissions are set to rw-r--r--
I personally used the text editor from Rom Tool Box Lite . Make sure there aren't any extra spaces and there should be no # in front of the key.
I just remapped and put them back to normal a few times and I'm not having any problems.
Let me know how you get on.
marxses said:
What file explorer are you using? ES explorer?
After editing and especially if you're pasting in a back up you need to make sure the files permissions are set to rw-r--r--
I personally used the text editor from Rom Tool Box Lite . Make sure there aren't any extra spaces and there should be no # in front of the key.
I just remapped and put them back to normal a few times and I'm not having any problems.
Let me know how you get on.
Click to expand...
Click to collapse
Thanks! I was using ES file Explorer... I don't know what happened amongst text editors, but the rom tool box text editor did the trick... I appreciate your time and patience. Now it's time to figure out how to change long press home to Google now... Thanks again
Jaydawgx7 said:
Thanks! I was using ES file Explorer... I don't know what happened amongst text editors, but the rom tool box text editor did the trick... I appreciate your time and patience. Now it's time to figure out how to change long press home to Google now... Thanks again
Click to expand...
Click to collapse
All good, glad you got it sorted.
Another option is home2shortcut it uses double tap instead of long press, just tried it for kicks and it works really well, quite snappy

[HOWTO] Enable Auto Rotation for Lock Screen & Launcher

This is a quick walk through for editing the build.prop to allow lock screen and launcher rotation.​
I got tired of looking at my phone sideways while it was propped up landscape wise, in my case.
1. Locate "build.prop" in /system using your favorite file explore
2. Open it up and at the bottom add the lines
Code:
log.tag.launcher_force_rotate=VERBOSE
lockscreen.rot_override=true
3. Save your edit and reboot.
Lockscreen rotation still not working for you???
A few users have reported that adding a blank line between the two, fixes this issue.
Once the phone reboots your lockscreen and Google Now launcher will rotate with the orientation of the device just like other apps do.
To undo this, simply remove the lines we added
:good:
Update: 11/10/2015
enigma9o7 Has figured out how to get this to stick even after an update! Head over to his post for the walkthrough and install guide!! Remember to give them a "thanks" for sharing the work!
Awesome I been wondering how to get this done.
Nice tip. I've always just used an app called Ultimate Rotation Control. Seems to work just fine on the Nexus 6. A quick build.prop tweak removes the need for a separate app for it, though. I might get around to trying this...eventually
can someone make a flash able zip for this please ?
thanks in advance
Anybody know how one would do this with adb?
N6
I used an app for quite some time but i disliked it running in the background.
Im not able to make a flashable zip. Maybe in time I will see if i can.
For adb, youd have to pull the build.prop, edit on computer then push it back. The instructions to do that are unclear to me
mrfuzzie23 said:
can someone make a flash able zip for this please ?
thanks in advance
Click to expand...
Click to collapse
You can install Nova Launcher and toggle the setting in there, or use the ultimate rotation app someone else mentioned.
Thx
If you set the DPI to 384 or less, this happens by default.
pavankp said:
If you set the DPI to 384 or less, this happens by default.
Click to expand...
Click to collapse
Thats good to know! Not surprising, the device is most likely changed to "tablet size" to the system. And they have full rotation.
Works great, thanks! (AT&T Nexus 6)
Would not work for me I get error saving
techrider6262 said:
Would not work for me I get error saving
Click to expand...
Click to collapse
Thats not good. What error are you getting?
eqbirvin said:
Thats not good. What error are you getting?
Click to expand...
Click to collapse
It just said error can't save and I tried a couple different time
techrider6262 said:
It just said error can't save and I tried a couple different time
Click to expand...
Click to collapse
gotcha. You are rooted, correct? and if so what file manager are you using to locate the build.prop?
es file explorer and i'm rooted.
in ES file explorer when you grant it root permissions, click on root, then mount R/W, make sure "/system" is RW instead of RO. (sorry if you already know this, im just trying to save time and figure your error out haha)
Thanks I got it working.:good:
Glad to hear it!
to each their own, I like being able to get OTAs so I'll stick with Ultimate Rotation Control

Swap back and recent hard keys?

Greets. A friend with an S7 Edge (935FD running 935F fw) wants these two keys swapped, to match all other phones she's ever used. Is there any good way to do that? If so and if root or coding are required, I can do both.
Btw, she likes the hard keys over adding soft keys onscreen, but would go with soft keys if absolutely necessary.
TIA!
PS: Apologies if this has been asked & answered. I did try searching but it's kinda hard to figure the right search terms, so I might've missed it.
An easy way to do it with root is to copy off the back.xml and recent_apps.xmls from SystemUI.apk res/layout folder (just unzip the SystemUI.apk, no need to decompile/recompile). switch the names and copy back (then zip SystemUI back up and replace).
Tulsadiver said:
An easy way to do it with root is to copy off the back.xml and recent_apps.xmls from SystemUI.apk res/layout folder (just unzip the SystemUI.apk, no need to decompile/recompile). switch the names and copy back (then zip SystemUI back up and replace).
Click to expand...
Click to collapse
Working on it, thanks a bunch!

Categories

Resources