[Q] Could anyone implement a mod just to 'Long Press back button to kill app?' - Android Software/Hacking General [Developers Only]

I know there are some ROMs and MODs that incorporate this as a part of a feature but the ROMs/MODs I currently use it for stability don't have this feature and I really miss this coming from CM9...
Could anyone kindly make this feature available as a stand-alone feature...?
I have Nexus S 4.0.4 ROM... Thanks!

Xeleth said:
Did a quick search and was unable to find any corresponding feature for non-cm ROMs. Just in case you want to try out editing it yourself, or someone with enough knowledge some day spots this thread: you might like to have a look at files at /system/usr/keylayout and /system/usr/keychars, I think they are used for the phone's key setup.
Click to expand...
Click to collapse
Thanks but I'm not that expert to modify files... haha
Wish someone could come up with this mod

I haven't looked through my ROM but this is a feature in Cyanogenmod 7.2 (Gingerbread 2.3.5) i am running this there is a settings panel you can tell the back button what to do upon long press! Maybe it is possible to extract this setting? Im not sure about that as i have never extracted or attempted to extract settings from any roms! But just an idea i figure

could need it, too !!!

Related

Looking for a specific build of JVB

I'm looking for a deodexed JVB, extended menu and 5 locks screen. Without all the other theme mods.
Maybe check docs rom kitchen in i9000 forum
Sent from my SGH-I897 using XDA Premium App
I have that rom.. I just don't have a way to do the 5 locks for JVB or the extended power menu...
There are topics in the I9000 section that cover what your looking for.
Sent using my 2.3.3 Captivate running Debis from some tall metal thing in a field.
X10D3 said:
I'm looking for a deodexed JVB, extended menu and 5 locks screen. Without all the other theme mods.
Click to expand...
Click to collapse
Cezar has a ROM, Continuum v5 (here). maybe you could download it and extract what you are looking for. Or, just use the ROM
Because most themes IMO are ugly. I personally like the stock samsung with some small modifications. No one does that. I haven't found one rom from the developers that don't screw with the theme. Not everyone likes what you like. The best I can do is download something from the romkitchen with the stock theme and get smart little remarks when I try to ask for help.
http://www.dystopia-zero.net/xxjvb-stock.zip
There you go, dude. Completely stock except for xcal's kernel, 5 lock screen mod, built in ad blocking, overscroll effect and crt off. Also has launcher2, but it seems the icons in the app drawer are fuzzy, so if that bothers you, you might want to set touchjizz as the default launcher.
It also won't flash bootloaders, so you'll need to find the new 2.3 ones somewhere else. I recommend just flashing the stock jvb from samfirmware.com with xcal's kernel, then flashing this over it with CWM.
Maybe wait it out for Perception II? DG ROMs usually have a pretty stock feel to them.
MM do you know where I can find a tut on adding the extended menu and such. I'm interested in the dev part. Just hard finding anyone willing to help you get started.
X10D3 said:
MM do you know where I can find a tut on adding the extended menu and such. I'm interested in the dev part. Just hard finding anyone willing to help you get started.
Click to expand...
Click to collapse
The one I linked you to has the extended power menu. Doing it yourself is a bit involved.. you have to decompile the .dex/.odex executable with baksmali.jar and edit the code (.smali files), then recompile it with smali.jar and repackage the apk. I don't know if there are any actual tutorials that go in depth on the topic; at least I haven't seen any. It's really kind of a dive-in-and-do-it thing.
If you want to try adding common features like that to a bare rom though, there are a lot of precompiled versions floating around on xda where you just have to replace the .jar file in the proper directory. Just search for the feature you want and chances are pretty high that someone already made a standalone cwm flashable zip of it. Either that or you can try pulling it out of existing roms and popping it in to your own, provided they're based off of the same build of android.
You should check out MikeyMike's rom building tut. It's one of the stickied threads at the top of the general section. It goes over the basics pretty well.
thanks man. I'm going to have to give it a shot. This zip won't work with CWM 3
My Gingerbread ROM will have a very stock theme.
Sent from my GT-I9000 using XDA Premium App
X10D3 said:
thanks man. I'm going to have to give it a shot. This zip won't work with CWM 3
Click to expand...
Click to collapse
Oh, wacky.. thanks for telling me, I don't normally build roms for other people and I stick to CWM 2.5.
You might also find this interesting: http://androidcracking.blogspot.com/2010/09/examplesmali.html
IDoMy0wnRacing said:
Cezar has a ROM, Continuum v5 (here). maybe you could download it and extract what you are looking for. Or, just use the ROM
Click to expand...
Click to collapse
That's the best option. Continuum v5 also have 4 themes to choose from.
Sent from my GT-I9000 using XDA Premium App

[Q] NFC and Network Switching from I727R to I727

Hello,
I am working on a little 2.3.6 UCLA3 ROM here and I want to try to bring the NFC and Network Switching settings from the Rogers Base roms over to my AT&T base.
I was able to install the necessary pieces for NFC (I think, the tags app works but asks for it to be enabled) but I don't know how to install the menu entry. I am also completely in the dark for Network Switching. I have done a diff on decompiled SystemUI, SystemInfo, and framework-res between I727R and I727 roms and have not found the right differences.
Any direction would be great, thanks.
promiseofcake said:
Hello,
I am working on a little 2.3.6 UCLA3 ROM here and I want to try to bring the NFC and Network Switching settings from the Rogers Base roms over to my AT&T base.
I was able to install the necessary pieces for NFC (I think, the tags app works but asks for it to be enabled) but I don't know how to install the menu entry. I am also completely in the dark for Network Switching. I have done a diff on decompiled SystemUI, SystemInfo, and framework-res between I727R and I727 roms and have not found the right differences.
Any direction would be great, thanks.
Click to expand...
Click to collapse
Good luck. I asked about the menu entry locations a while back and never got an answer. I hope you can find the answer though, because it would mean being able to use NFC on a stock ROM.
I'm beginning to believe the key is in the framework jar files. A diff between all relevant decompiled APKs between ATT 2.3.6 and boneStock (ROGERS) yielded no significant differences. The key will be in extracting classes.dex, converting to jar, decompiling and then sorting through the 1000s of .class files, oof.
Sent from my SAMSUNG-SGH-I727 using Tapatalk
promiseofcake said:
I'm beginning to believe the key is in the framework jar files. A diff between all relevant decompiled APKs between ATT 2.3.6 and boneStock (ROGERS) yielded no significant differences. The key will be in extracting classes.dex, converting to jar, decompiling and then sorting through the 1000s of .class files, oof.
Sent from my SAMSUNG-SGH-I727 using Tapatalk
Click to expand...
Click to collapse
You may be onto something. My theory is that everything is alesdy in place for the skyrocket to use NFC exceft for the menu options. I think once the menu options are installed and linked correctly, NFC will work. The question is, how to get the menu otions set up and in the place they need to be,
Phone.apk controls network switching as far as i know
M0D1441 said:
Phone.apk controls network switching as far as i know
Click to expand...
Click to collapse
Thanks man.
I just got NFC ported (well un-disabled) and APM Ported from the I9100 done and working in 2.3.6 UCLA. After I get the trifecta I will release instructions / info / git repos and vanilla cake (maybe on the vanilla cake).
promiseofcake said:
Thanks man.
I just got NFC ported (well un-disabled) and APM Ported from the I9100 done and working in 2.3.6 UCLA. After I get the trifecta I will release instructions / info / git repos and vanilla cake (maybe on the vanilla cake).
Click to expand...
Click to collapse
It will be interesting to see how you got NFC enabled. And if it can be done on the stock ROM or not. I'm looking forward to you posting the info. Thanks.
scott14719 said:
It will be interesting to see how you got NFC enabled. And if it can be done on the stock ROM or not. I'm looking forward to you posting the info. Thanks.
Click to expand...
Click to collapse
I have it done on my, for all intents and purposes, "Stock" 2.3.6 AT&T rom. Just need to edit some smali code to bring the menu option back and push the Tags.apk to /system/app. I don't have the diff on me at the moment but I will post it up in a new Dev thread.
promiseofcake said:
I have it done on my, for all intents and purposes, "Stock" 2.3.6 AT&T rom. Just need to edit some smali code to bring the menu option back and push the Tags.apk to /system/app. I don't have the diff on me at the moment but I will post it up in a new Dev thread.
Click to expand...
Click to collapse
Wow, sounds great. I assume your stock ROm is Deodexed in order to get to the smali files? This mod will help fill many requests from people on this forum.
And, by Tags.apk do you mean nfc.apk? The reason I ask is that I am running Alien 6 ROM that has NFC, however, I have not been able to test it out yet (others say it is working). When I use root explorer to check System / App, I only see the nfc.apk and not Tags.apk? I was wondering if an additional file is needed? Thanks for everything you are doing.

[Q] Building custom ROM could use a couple pointers...

Like the title says I'm working on building a ROM of my own. I am new to this but am not stupid. I've looked around the forums and have bookmarked quite a few threads that will help me. My question is, how would I go about putting a custom CWM flashing screen in? Like on Eman..and ZTR where it says Collective, and flashing modem, etc. etc. And if anyone can point me to a better "ROMS for dummies thread that would be great Thanks for any help
Edit: Scratch that question, just found it lol. But any pointers will still be appreciated
So you are set?
Sent from an Emancipated Infuse bleeding Orange
Are you on linux? If you are, then i sugest installing android utility, its probably the simplest way of getting everything installed and organize it all together. It installs dsixda rom kitchen, apktool, simpla adb interface-im out of town at the moment but when i get back (friday night) i can upload some pics of the android utility
http://forum.xda-developers.com/showthread.php?t=1167623
Sent from my SAMSUNG-SGH-I997 using XDA
^ Alright man thanks. I'll have to install a linux partition on my HDD but that's easy enough. I do have one question that's confusing me...How do I add things to my rom? For example the camera mod where you can take pics with the power button? I have the apk but when I replace it at system/app it Fc's. Do I need to put the other files that come with it in my rom? Same problem with EPM. I have the settings apk but it doesn't work..
FauxAffliction said:
^ Alright man thanks. I'll have to install a linux partition on my HDD but that's easy enough. I do have one question that's confusing me...How do I add things to my rom? For example the camera mod where you can take pics with the power button? I have the apk but when I replace it at system/app it Fc's. Do I need to put the other files that come with it in my rom? Same problem with EPM. I have the settings apk but it doesn't work..
Click to expand...
Click to collapse
For camera I believe you will also need to pull the camera firmware apk too-so you need to put the modded camera.apk and camera firmware.apk in your from (both can be obtained from any of bigfaus roms
For epm you need more than just the settings apk, you also need to replace the frameworks that come with epm (policy.jar, framework-res.apk, and framework-res.jar) I believe that's all you need
As always, if you choose to upload your rom for others be sure to give credit-bigfau for camera, and I'm assuming you got epm from dman so dman for epm
Sent from my SGH-I997 using XDA
Also for battery mods (and other stuff too) a great place to go is a website called UOT kitchen-just choose your battery mod then upload your frameworks and it will place the modded battery in there for you, then replace your old frameworks with the new ones from uot kitchen
*do this after you have epm set up and running...unless you plan on doing it manually using dmans how to guide*
Sent from my SGH-I997 using XDA

New rom idea, help dev needed.

Hi guys i have idea for new rom based on cyanogenmod 9 with lg optimus ui 3.0 but not have skills for make my own rom.
http://forum.xda-developers.com/showthread.php?t=1685484
for lockscreen use this
http://forum.xda-developers.com/showthread.php?t=1585684
http://forum.xda-developers.com/showthread.php?t=1597928
for cm9 theme use this
http://forum.xda-developers.com/showthread.php?t=1688250
other resources
http://forum.xda-developers.com/showthread.php?t=1635301 icon, wallpaper etc
http://forum.xda-developers.com/showthread.php?t=1692222 bootanimation
http://forum.xda-developers.com/showthread.php?t=1515983 richnote apk
Thanks for any dev or peoples help me.
great idea
i wish i could help ..but im a noob too with regards to rom development
i can give suggestions though
try PM'ing any AOSP/cm9/MIUI/AOKP devs ..they might reply you
Also T-Macgnolia he got some great understanding with regards to rom development too
ok waiting for any help with this rom
I mean YOU know you can just get the latest OPENSENSATION BUILD, then change the CM9 theme to that, install LG HOME and be on your way. Devs have already provided us with BRILLIANT CM9 and we dont need them to waste time on things like this. If you want it, you can easily install a couple of apks yourself. this is all it is.
Anyhow no hate intended, just download the theme apk install it, follow direction in lg forum and install it and be on your merry way. This is way to simple for any devs to waste time on. Be glad you have CM9 and will have CM10 while HTC is figuring out how to beat Samsung.
akbisw said:
I mean YOU know you can just get the latest OPENSENSATION BUILD, then change the CM9 theme to that, install LG HOME and be on your way. Devs have already provided us with BRILLIANT CM9 and we dont need them to waste time on things like this. If you want it, you can easily install a couple of apks yourself. this is all it is.
Anyhow no hate intended, just download the theme apk install it, follow direction in lg forum and install it and be on your merry way. This is way to simple for any devs to waste time on. Be glad you have CM9 and will have CM10 while HTC is figuring out how to beat Samsung.
Click to expand...
Click to collapse
i already try but example for lockscreen i not have linux and cant use diff/patch. I want the theme is default, cant edit framework apk for make this for default theme. And i not have idea for remove a voice from menu of lg launcher (force close). And for all this reason i need dev
bump a pmed a dev and this say help me with this but if other person want make the personally version is accepted.
In that case can't wait to try myself
Sent from my HTC Sensation using Tapatalk 2
The launcher can be added to system/app. For the lockscreen, there must be a way to merge the updater.script and the binary to the existing ones, i think it should be done with META-INF also. And there would be a possibility to replace system theme with the theme you requested.
Wait for the first release

[mod] [request] multi window / wake on voice

still sorta new to this rom building thing so i am not that advanced yet. i have built my own rom from android kitchen and it works! yay! but i am trying to figure out how to get a few simple (or what i think should be simple but i cant figure it out ) things to ad to my rom. i would really like to have multi window on my nexus 5 and i would also to have the wake on voice like the samsung phones but i want it to work with google now. i have seen these done on other aosp roms but i dont like all the other mods done to them. maybe there is a flashable zip out there? someone please help.
Jgm3590 said:
still sorta new to this rom building thing so i am not that advanced yet. i have built my own rom from android kitchen and it works! yay! but i am trying to figure out how to get a few simple (or what i think should be simple but i cant figure it out ) things to ad to my rom. i would really like to have multi window on my nexus 5 and i would also to have the wake on voice like the samsung phones but i want it to work with google now. i have seen these done on other aosp roms but i dont like all the other mods done to them. maybe there is a flashable zip out there? someone please help.
Click to expand...
Click to collapse
Not the correct place to ask, the N5 is a new device and there isn't even a working xposed module yet.
Should be moved to Q&A
Sent from my Nexus 5 using XDA Premium 4 mobile app

Categories

Resources