Hello Guys,
I have programed a few apps for android but would like to try and modify something that goes a bit deepter into the system. I have no idea where to even start looking and what to look for.
What I want to do is to change the event what happens when you (long) click the system navigation buttons. Apps only catch them when active. But I globaly want to change it. I guess I dont need to compile the whole kernel but "just" change a part of the system that handles these buttons and events. In SlimRoms its possible to customize these buttons so it must be possible somewhow. Although I want to change it on a phone with three hardware buttons on the bottom and not the onscreen navigation bar.
Can anyone point me in a direction?
Thx a lot!
Regards
Related
I'm looking into creating an app (not requiring a recompile) that can add a button to the navigation bar. Is it possible? Anyone have a link to documentation? I'd ideally like it to auto-load itself into the nav bar but if not, that should be fine.
Sure it's possible. I would start be decompiling your systemui.apk, that's where they were stored last time I checked.
I'm looking for a way that doesn't require the internals of the OS to be edited in any way. I want to write a separate app (installable apk) that can add an extra button that will do <insert custom java code here> when pressed. Or is the only way to do this by changing SystemUI.apk?
That's the only way you will be able to add/edit anything in the status bar. You may however be able to write some sort of overlay that draws your button on top of the screen.
My father has early onset Alzheimers and I need to create a rom that when the device is powered on all he sees is 3 buttons call, end call, and text which brings up the plain texting option. Call shows square photos of people and services..etc.. tap on one it calls that person. I Would also like to do things like change the power button so it cant fully shut down the phone with out a specific combination of buttons or a pattern. Where do I begin to learn how to do this? I would really like to learn to do this on my own.
Hi there. Sorry to hear about your father. I've had a couple members of my family suffer from this and it's difficult, to say the least. As far as what you are looking for, well, I'm not sure you need to go all in and make a custom rom for this. I think many of the things you are trying to do can be done with existing mods.
As far as the power button, you can look into using the Xposed Framework and the Xposed Additions module which allows you to customize the activity of the hardware buttons.
http://forum.xda-developers.com/xposed/framework-xposed-rom-modding-modifying-t1574401
http://forum.xda-developers.com/xposed/modules/mod-xposed-additions-t2294274
For the buttons on screen for Call / End Call - Well, the Call with a link to favorite contacts with pictures is easily done with most launchers or a favorite contact widget. The End Call option though, I'm not so sure about. Reason being is that any time you're going to make a call, it's going to open the dialer app and the end button will be there. I can't really think of a way around that. I looked into adding a shortcut to that activity with Nova Launcher, but it's not an option available (though there are a dozen other shortcuts).
But with a launcher like Nova, you will have the ability to add / delete anything off the main screen besides what you want. You can lock the home screen so he can't inadvertently make changes to it and enable a gesture he wouldn't be likely to use to allow you to access the app drawer (like 2 fingers swipe up, etc). You can also use one of the variety of locking apps that will prevent access to any unwanted apps by requiring a password or PIN.
Ooh. Custom ROMs. A lot of work for such simple need. Maybe use Tasker instead? You can accomplish this with a scene and some profiles/tasks setup on stock ROM. Only disadvantage I see compared to making your own rom is long boot time. You can bypass everything in regards to Android UI just by making the scene fullscreen and disabling keyguard with a on-boot profile. That way, when he turns the screen back on, it goes right to your scene setup with no "slide-to-unlock" crap. I am very experienced in Tasker, so if you need any help, I can help you. I'd be willing to develop this for you, it would be about a half hour on my part
All the best,
Sent from my SCH-I605 using XDA Free mobile app
Thanks for the suggestions, these are great places to start.
Being my first app, I hid most of the functionality behind menu-key menus. I now want those menus to be there all the time.
how do I do so? I probably should have used buttons or tabs in the layout or something, but it would be so easy at this point if I could just inject some code that would allow those menus to stay open no matter what.
Hi
My Nook has only one small area that no longer accepts input, but that area covers exactly the area where the Next button is during installation of a ROM.
Installation screens don't rotate, they start in landscape mode with the N button to the right.
Is there an alternate way to click Next, maybe a way to activate a voice command? Or maybe a way to force the screen to rotate?
Are my only options to either alter the source code to make the Next buttons show up a bit higher on the screen, or to get my screen replaced?
Thanks for all feedback.
WS
whitespiral said:
Hi
My Nook has only one small area that no longer accepts input, but that area covers exactly the area where the Next button is during installation of a ROM.
Installation screens don't rotate, they start in landscape mode with the N button to the right.
Is there an alternate way to click Next, maybe a way to activate a voice command? Or maybe a way to force the screen to rotate?
Are my only options to either alter the source code to make the Next buttons show up a bit higher on the screen, or to get my screen replaced?
Thanks for all feedback.
WS
Click to expand...
Click to collapse
If you feel like messing around, you could try to use ADB on TWRP to pull your /data/data/com.android.providers.settings/databases/settings.db, edit it with SQL, find the value that means rotation and set it to whatever value seems correct (I can't use touch events. ****ty Touchscreen Firmware Flasher app crashed on me and left me with no driver). Sorry if this is very sketchy, but it's all I know off the top of my head. You could also try out other ROMs (I know some do rotate the setup screen) or use MIUI. Cool, but not very useful. I wish someone with the correct knowledge could make a port and us, the ones who only know the hands-on stuff, could beta-test these things... Very nifty.
Hi everybody,
I have been trying to create a small mod for the navigation bar that enables you to swipe left and right over it to adjust the volume. I think this would make it easier to adjust the volume when you're using your phone with just one hand. While swiping the buttons would disappear and a volume icon would show up, like this:
Initially I tried to accomplish this with an app, however this turned out to be impossible because of the limited permissions apps have. Then I tried to do it by modifying the AOSP source code but that was too difficult for me as I don't know a lot about coding.
Now, I am wondering if there's anyone with a bit more coding knowledge that likes this idea and would like to make the mod together with me? Maybe it could also be done by making it into a module for the Xposed framework instead of modifying the source code.