Softkey Switcher advice - Nexus 5 Q&A, Help & Troubleshooting

What would it take to make an app that allows you to switch the softkey layout (like the G2)? Image at the site below:
http://www.androidcentral.com/lg-g2-multitude-screen-buttons-just-not-multitasking

Bump:good:

i use softkeyZ
https://play.google.com/store/apps/details?id=com.janis605.softkeyz&hl=en
for custom layout.. i'm waiting for more custumized roms.

theslugone said:
i use softkeyZ
https://play.google.com/store/apps/details?id=com.janis605.softkeyz&hl=en
for custom layout.. i'm waiting for more custumized roms.
Click to expand...
Click to collapse
Looks good! I'm looking for a mod i can flash (Cwm/twrp) without root

Let me rephrase the question. What would it take to build my own application similar to this? I don't want to pay money to move some buttons around. Would it be possible to pull the code out of the G2 rom and make a generic apk for other roms?
It looks like you just decompile SystemUI.apk, edit the navigation_bar.xml to change the button order, recompile SystemUI.apk and flash it. I am curious though how the G2 is able to change these values on the fly without root and without rebooting.
I found this regarding changing the button order:
http://rootzwiki.com/topic/29153-mo...-key-mods-with-menu-and-search-stockbb/page-1

Related

[MOD] Remove Recent Apps from Notification Bar

I haven't seen this around, so I went ahead and made this for myself, and I decided to share it with anyone who wants it...
I hate the Recent Apps section of the Notification Bar Dropdown... so I removed it.
I wanted the Recent Apps to be removed without having to flash a complete ROM or use some theme.
1. Flash the attached file in CW Recovery
2. Clear Cache and Dalvik Cache
3. Reboot
4. Profit (It will remove the recent apps section)
There are no side-effects that I have noticed.
It was made from the SystemUI.apk from the stock US 2.3.4 Build, and should work on any 2.3.4 build for the Sensation.
There are no other changes in this from stock 2.3.4 besides removing the Recent Apps.
It will work alongside the Battery Mods I made with no issues... One mod does not affect the other.
Let me know if you have any issues.
As always, I'm not responsible if your phone breaks beyond repair and you lose all your data.
Thanks to j4n87 for the smali change required.
Work for me on EagleBlood rom.
It would be helpful.
NoRecents - installed with tiwili - take it, work it, leave it
Hi,
thanks for this mod. As always all actual modifications in existing SystemUI.apk are changed by this installation.
I took both of your modified files in my tiwili-installation method. So all other existing files in SystemUI.apk will rest in peace.
I publish it here because it´s your work, your files; It took 5 minutes for me, that´s nothing to be proud of...
Greets
idephili
So pretty much this needs root?
Sent from my HTC Sensation 4G using XDA App
thevietmonk said:
So pretty much this needs root?
Sent from my HTC Sensation 4G using XDA App
Click to expand...
Click to collapse
Absolutely. You can't push SystemUI.apk to the apps directory without root.
Thanks for this...finally I can remove it...just a small issue...where I am, there is no 4g network yet...however it is now showing 4g icon on the notification bar, anyway I can change it to 3g icon?
Sent from my HTC Sensation Z710e using xda premium
This will also remove the extended quick settings I had installed, flashed the EQS again though, no prob just thought I'd let ya know
Edit: Flashing EQS again, makes the recent apps come back..
ARHD 3.1.1
bigg8k said:
This will also remove the extended quick settings I had installed, flashed the EQS again though, no prob just thought I'd let ya know
Edit: Flashing EQS again, makes the recent apps come back..
ARHD 3.1.1
Click to expand...
Click to collapse
That's because both mods modify the same system file. You can only choose one or the other unless the EQS Dec decides to put this in his mod.
sorry.
No worries, thanks for the effort anyways
This does not work on 3.5 SENSE but thank you for your work
EQS-Mod + Recent App
Hey
What do i do if i want the Recent App, with EQS-Mod ?
thanks...... I'll try this app
If any of you want to do it youself.....
1.Pull Systemui.apk from system/app
2.Decompile SystemUI.apk
3.navigate to com/android/systemui/statusbar
3.open up StatusBarFlag.smali using notepad or notepad++ (recommended)
4.Around line 89 (using notepad++) you should see this:
Code:
sput-boolean v0, Lcom/android/systemui/statusbar/StatusBarFlag;->HTC_RECENT_APP:Z
5. Change v0 to v2.
6. Recompile Systemui.apk and push via adb to system/app or copy to system/app using root explorer.
**NOTE**If using root explorer make sure to set permissions as Owner = Read/Write Group = Read Others = Read. A reboot will be required after pasting SystemUI.apk before you can change persmissions.
7. Reboot and your done!
same outcome for me with p3d had to reflash to get extended settings
I tried this but it appears to remove the entire header bar. That is, there was no pull down bar at all pushing it and rebooting. Any suggestions?
mfrost66 said:
I tried this but it appears to remove the entire header bar. That is, there was no pull down bar at all pushing it and rebooting. Any suggestions?
Click to expand...
Click to collapse
Sounds like you have decompiled SystemUI.apk incorrectly and then not signed it before pushing it. What method did you use for decompiling the APK?
I'm having some trouble with decompiling the SystemUI.apk. I get a bunch of "Invalid config flags detected" error when I try to load the com.htc.resources.apk framework; when I try to recompile I get a handful of other errors (related I'd imagine) and it doesn't recompile. Googled around a bit, found similar problems but no answers - any advice?
jimhart3000 said:
I'm having some trouble with decompiling the SystemUI.apk. I get a bunch of "Invalid config flags detected" error when I try to load the com.htc.resources.apk framework; when I try to recompile I get a handful of other errors (related I'd imagine) and it doesn't recompile. Googled around a bit, found similar problems but no answers - any advice?
Click to expand...
Click to collapse
How are you decompiling the apk...??
Didn't work. Edited what was suppose to be edited and the recent apps still show up....

[Q] (Q) OTA Battery Full notification

Has anyone found a way to remove the battery full notification from the 2.3.3 OTA Rom? I know this has been asked before, but I can't tell if the answer is still no, or I simply haven't found the correct thread.
Vorkosiganm said:
Has anyone found a way to remove the battery full notification from the 2.3.3 OTA Rom? I know this has been asked before, but I can't tell if the answer is still no, or I simply haven't found the correct thread.
Click to expand...
Click to collapse
It has been removed in most custom OTA ROMs
Assuming that I don't want to switch to another ROM, is it possible for me to remove the notification from the stock ROM (by modifying framework-res.apk or such), or can the removal only be done when compiling from LG's source?
Vorkosiganm said:
Assuming that I don't want to switch to another ROM, is it possible for me to remove the notification from the stock ROM (by modifying framework-res.apk or such), or can the removal only be done when compiling from LG's source?
Click to expand...
Click to collapse
It can removed from the stock rom, but you need to know exactly what you're doing, as far as modding smali in apks.
Can you give me any help to point me in the right direction for what I need to do? I think I know how to edit the apk's, and I am guessing that I would need to edit one of the xml files, but the naming conventions are not always logical. For example, config_animateScreenLights is related to the crt screen off animation for some reason.
Vorkosiganm said:
Can you give me any help to point me in the right direction for what I need to do? I think I know how to edit the apk's, and I am guessing that I would need to edit one of the xml files, but the naming conventions are not always logical. For example, config_animateScreenLights is related to the crt screen off animation for some reason.
Click to expand...
Click to collapse
This is not an xml edit, its a small smali edit, but here goes:
adb pull SystemUI.apk from /system/app and decompile SystemUI.apk, navigate to
\smali\com\android\systemui\statusbar\policy\StatusBarPolicy.smali
Find & remove the ENTIRE "showChargingComplete" method
then find and remove this line
Code:
invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->showChargingComplete()V
Recompile SystemUI.apk and push to /system/app, then reboot.
If this sounds too hard or tricky, let me know.
Thanks! That worked perfectly.
I don't suppose you could post a link to that modified SystemUI.apk file? I'd love to get rid of the battery full popup, but I've never compiled/decompiled an .apk, so it sure would be a time saver.
Thanks in advance!
I certainly can. A couple of things first. I found that using the OTA, you cannot just push the SystemUI.apk to your phone using adb (it has to do with the permissions baked into the ROM), I had to make a flashable zip. This means that you will need clockworkMOD to flash the zip. Also, the SystemUI.apk that I have includes xboarder56's green signal fix (from this thread: http://forum.xda-developers.com/showthread.php?t=1179748&highlight=ota+gingerbread). I can apply the battery popup fix to a stock SystemUI.apk if you want, just let me know. In any case, I have to recreate the flashable zip, so it will take a few days.
I'm rooted, running the rooted but stock ROM "P999_2.3.3_Stock_OTA" by xboarder.
The only mod I've added is the battery icon mod from this thread installed: http://forum.xda-developers.com/showthread.php?t=1190283&highlight=battery+mod
So I assume you can't just pull the SystemUI.apk and post, then copy in place using ES Explorer? If you can post a flashable .zip that works for me, whatever is easiest. Many, many thanks....

modifying roms

Hi, newbie here. I have this Rom but I would like to transfer the notification bar, off menu and keyboard from another rom into it. How do I do it?
HotKillerZzz said:
Hi, newbie here. I have this Rom but I would like to transfer the notification bar, off menu and keyboard from another rom into it. How do I do it?
Click to expand...
Click to collapse
Unfortunately you can't just simply transfer the notification bar, and by "off menu" I assume you mean the power menu. The keyboard on the other hand should be pretty easy to transfer. To transfer the keyboard look in the ROM you want for latinime.apk or a similar named file, then take that apk and install on the other ROM you want to use it on. Now on to the harder stuff. Transferring the status bar requires de-compiling frame-work.res and making a variety of smali edits as does the power menu. You can check out these guides for a basic idea of how to accomplish this:
[MOD] 4-Way Reboot - How to (GB) (ICS)
[COMPLETE GUIDE] decompiling, theming, and recompiling JB SystemUI.apk [Jelly Bean]
If you need any more help let me know

[Q] Change top toggle switch button icon in android

I am in the mid of Making my own ROM and it's almost done. I want to change the icon of the toggle switch button just below the status bar. I also like to change the pop up message when I press shutdown and reboot. How can I do that ? Pls reply fast. I know decompile using APK but I don't know which file to decompile and where can I find the file to edit . Can anyone please tell me and don't ignore my post ?
leezhijiang said:
I am in the mid of Making my own ROM and it's almost done. I want to change the icon of the toggle switch button just below the status bar. I also like to change the pop up message when I press shutdown and reboot. How can I do that ? Pls reply fast. I know decompile using APK but I don't know which file to decompile and where can I find the file to edit . Can anyone please tell me and don't ignore my post ?
Click to expand...
Click to collapse
If you are making your own rom (and not being a winzip wizard) them you should know that it is controled by the framework files.
zelendel said:
If you are making your own rom (and not being a winzip wizard) them you should know that it is controled by the framework files.
Click to expand...
Click to collapse
What do you mean ? I am a newbie actually. I made my rom based on a custom rom and follow the guide on this forum.
See the attachment.
How can I change the MindCr ROM to my own text ? I really don't know where to find it. What I know is how to edit those png files
leezhijiang said:
What do you mean ? I am a newbie actually. I made my rom based on a custom rom and follow the guide on this forum.
See the attachment.
How can I change the MindCr ROM to my own text ? I really don't know where to find it. What I know is how to edit those png files
Click to expand...
Click to collapse
You will have to decompile the jar files and edit the java code. As I stated in your other thread take some time and learn to make a rom properly. Mainly when you will be required to follow all the same rules that the devs are. New to this or not. Take some time and learn linux and then learn to build a rom the proper way.
I already have the basic knowledge. How am going to learn if I don't know. Asking is a way of learning too! I already good in decompiling and compiling and script editing. The problem is don't know which xml file should I edit. I can do basic programming. I did found out the directory of those icons but I don't know how to change the title text of the pop up menu that appear after I press the "restart" and "shutdown" button.
I almost finish my ROM already just left theming and that part only. For your information, I actually modified quite a number of apk files successfully based on Nero Young tutorial.
leezhijiang said:
I already have the basic knowledge. How am going to learn if I don't know. Asking is a way of learning too! I already good in decompiling and compiling and script editing. The problem is don't know which xml file should I edit. I can do basic programming. I did found out the directory of those icons but I don't know how to change the title text of the pop up menu that appear after I press the "restart" and "shutdown" button.
I almost finish my ROM already just left theming and that part only. For your information, I actually modified quite a number of apk files successfully based on Nero Young tutorial.
Click to expand...
Click to collapse
You learn by spending a few days searching. Trust me your not the first to ask this question. There are tons of TUT all over the site to help you learn how to make a rom. What you are missing to understand is that you have not really given any info like what style rom, for what device? These things matter as depending on device and rom then it is in different places. So I could tell you were it is in my rom (which i did) but it may not be there in your rom.

[Q] How to change freaky default contacts icons

Does anyone know how to change freaky smiling default contacts icons on 4.2 official rom? I know that i can change one by one with photos, but i want to change the default ones.
athankar75 said:
Does anyone know how to change freaky smiling default contacts icons on 4.2 official rom? I know that i can change one by one with photos, but i want to change the default ones.
Click to expand...
Click to collapse
I think it needs a modified Contacts.apk.
Raven_Yen said:
I think it needs a modified Contacts.apk.
Click to expand...
Click to collapse
So this can be only with root acces, right?
athankar75 said:
So this can be only with root acces, right?
Click to expand...
Click to collapse
No you don't, but you need to get CWM and flashable deodexed files for your firmware.
Get the correct flashable deodexed files and flash in CWM to deodex your system apps. Then you can bring out and edit the Contacts.apk (or whatever apk name, I forgot) using apktool. There should be image files of the icon you don't like. You need to extract and recompile framework-res while doing this too.
Find the guide somewhere in this forum or other forum (similar things). At least these are what I did to modify SystemUI.apk previously, the process is similar.

Categories

Resources