5,594,282 Members 43,072 Now Online
XDA Developers Android and Mobile Development Forum

[MOD][HOW-TO] Back to kill for TW ROMs **updated 25 NOV 2012** LSJ #2post

Tip us?
 
mani1999
Old
#91  
mani1999's Avatar
Senior Member
Thanks Meter 43
Posts: 309
Join Date: Dec 2012

 
DONATE TO ME
Default AW: [MOD][HOW-TO] Back to kill for TW ROMs **updated 25 NOV 2012** LSJ #2post

Does anyone know that?

Sent from my GT-N7000 using xda premium
Device.....Samsung Galaxy Note 3 SM-N9005
ROM........Alexandrs Development Base
Kernel......Stock Kernel for now
 
mani1999
Old
#92  
mani1999's Avatar
Senior Member
Thanks Meter 43
Posts: 309
Join Date: Dec 2012

 
DONATE TO ME
Could PLEASE someone tell me where to find a tutorial of how to make a "hold menu button to kill" or what to change in this tutorial that I have a "hold menu button to kill".
Thanks....
Device.....Samsung Galaxy Note 3 SM-N9005
ROM........Alexandrs Development Base
Kernel......Stock Kernel for now
 
xfahim
Old
#93  
Member
Thanks Meter 9
Posts: 88
Join Date: Aug 2012
Location: Dhaka, Bangladesh
Using Xperia Go ICS .54fw,

Tried to do as you said but no success. Got bootloop twice. maybe because its Sony and your code is for Samsung.

I attached my phones android.policy if you can modify this? Please?
Attached Files
File Type: jar android.policy.jar - [Click for QR Code] (130.5 KB, 5 views)
Duh!
 
mani1999
Old
#94  
mani1999's Avatar
Senior Member
Thanks Meter 43
Posts: 309
Join Date: Dec 2012

 
DONATE TO ME
How do I do this on XWLSD?
Device.....Samsung Galaxy Note 3 SM-N9005
ROM........Alexandrs Development Base
Kernel......Stock Kernel for now
 
Josehg
Old
(Last edited by Josehg; 20th February 2013 at 03:24 PM.) Reason: Messages not sent
#95  
Member
Thanks Meter 58
Posts: 90
Join Date: Jul 2012
Quote:
Originally Posted by mani1999 View Post
Could PLEASE someone tell me where to find a tutorial of how to make a "hold menu button to kill" or what to change in this tutorial that I have a "hold menu button to kill".
Thanks....
Check you pm

Messages are not sent, I tried five times, is your inbox full?
 
mani1999
Old
#96  
mani1999's Avatar
Senior Member
Thanks Meter 43
Posts: 309
Join Date: Dec 2012

 
DONATE TO ME
Quote:
Originally Posted by Josehg View Post
Check you pm

Messages are not sent, I tried five times, is your inbox full?
Thanks very much I got all your messages I'm trying right now....
Device.....Samsung Galaxy Note 3 SM-N9005
ROM........Alexandrs Development Base
Kernel......Stock Kernel for now
 
sirkula
Old
(Last edited by sirkula; 30th March 2013 at 10:50 PM.)
#97  
sirkula's Avatar
Senior Member
Thanks Meter 49
Posts: 569
Join Date: Dec 2008
Location: Sarajevo
I tried reading and understanding what and how to do it but still not sure ...I'm not asking for the easy way out but here is my "android.policy.jar" if you could do it for me, don't wanna f*** something up . I'm on stock odexed LSJ....

Thanks
Attached Files
File Type: jar android.policy.jar - [Click for QR Code] (313 Bytes, 5 views)
 
daveyannihilation
Old
(Last edited by daveyannihilation; 26th May 2013 at 02:18 AM.)
#98  
daveyannihilation's Avatar
Recognized Contributor / Themer
Thanks Meter 3263
Posts: 1,760
Join Date: Apr 2012
Location: Perth

 
DONATE TO ME
Fantastic tutorial as always Mirko. Bravo!

How would I go about changing the toast text that pops up when you kill an app? At the moment it says 'force app to close' but I can't find that string anywhere. I would like something which was implemented in JKay's Deluxe Framework - when you killed an app with the back button, the toast text would pop up and say 'Killed: Messaging' or whatever the name of the app is that you killed.

Would this be implementable? Any advise on how I could do that please?

Thanks again mate.

All the best,

Dave

Edit: I kinda figured out how to do it, but it didn't work properly.

I added a new string into framework-res/res/values/strings which was 'Killed: %1$s' which I thought would display the name of the app after looking at some other strings. Then I recompiled framework-res and decopiled it again. Then I looked in /red/values/public and searched for the id of the new string I created.
Then in PhoneWindowManager$KillConcept.smali I just changed the old value to the new one and voila - it worked... kind of.

After pushing the new mods to my phone, I opened an app and held down the back button and the toast message displayed as 'Killed: %1$s' haha dammit. So I need to know what to replace the '%1$s' in the string with. If someone knows what to put there, I can get it to work.

Thanks in advance.

DOMINATION WEBSITE
www.vertumus.com
 
majdinj
Old
#99  
majdinj's Avatar
Recognized Contributor / Themer
Thanks Meter 2821
Posts: 980
Join Date: Nov 2006
Location: AlAhsa
Hi Mirko,
why you don't just attach KillConcept to menu button instead of back button??

here is what I mean:
In PhoneWindowManager.smali, trace "mMenuLongPress"
before:
Code:
    .line 1674
    new-instance v0, Lcom/android/internal/policy/impl/PhoneWindowManager$9;

    invoke-direct {v0, p0}, Lcom/android/internal/policy/impl/PhoneWindowManager$9;-><init>(Lcom/android/internal/policy/impl/PhoneWindowManager;)V

    iput-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mMenuLongPress:Ljava/lang/Runnable;
after:
Code:
    .line 1674
    new-instance v0, Lcom/android/internal/policy/impl/PhoneWindowManager$KillConcept;

    invoke-direct {v0, p0}, Lcom/android/internal/policy/impl/PhoneWindowManager$KillConcept;-><init>(Lcom/android/internal/policy/impl/PhoneWindowManager;)V

    iput-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mMenuLongPress:Ljava/lang/Runnable;
Now just add PhoneWindowManager$KillConcept.smali file to /com/android/internal/policy/impl/ folder
and that's it..
No need to play with conditions

Now by long pressing Menu button, you will have kill app activity..
The Following User Says Thank You to majdinj For This Useful Post: [ Click to Expand ]
 
Devil_1210
Old
#100  
Devil_1210's Avatar
Senior Member
Thanks Meter 354
Posts: 146
Join Date: Jan 2013
Location: La Chocota

 
DONATE TO ME
Quote:
Originally Posted by majdinj View Post
Hi Mirko,
why you don't just attach KillConcept to menu button instead of back button??

here is what I mean:
In PhoneWindowManager.smali, trace "mMenuLongPress"
before:
Code:
    .line 1674
    new-instance v0, Lcom/android/internal/policy/impl/PhoneWindowManager$9;

    invoke-direct {v0, p0}, Lcom/android/internal/policy/impl/PhoneWindowManager$9;-><init>(Lcom/android/internal/policy/impl/PhoneWindowManager;)V

    iput-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mMenuLongPress:Ljava/lang/Runnable;
after:
Code:
    .line 1674
    new-instance v0, Lcom/android/internal/policy/impl/PhoneWindowManager$KillConcept;

    invoke-direct {v0, p0}, Lcom/android/internal/policy/impl/PhoneWindowManager$KillConcept;-><init>(Lcom/android/internal/policy/impl/PhoneWindowManager;)V

    iput-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mMenuLongPress:Ljava/lang/Runnable;
Now just add PhoneWindowManager$KillConcept.smali file to /com/android/internal/policy/impl/ folder
and that's it..
No need to play with conditions

Now by long pressing Menu button, you will have kill app activity..
This is exactly what I did. I think it better. But I have a doubt, you may make a toggle for the menutokill?. Since if is used method of mirko can be left the toggle of multiwindows for that, but I want to maintain the multiventana and leave the menutokill. I could edit the Secsettings. apk to work correctly, but I do not have a lot of idea that things should edit in the android. policy. jar to work as I want. If anyone know it would appreciate a lot. Sorry my English.

Enviado desde mi GT-I9100 usando Tapatalk 2
Phone: Samsung Galaxy S4 I9505 (32 GB) Black Mist
Rom: A&D Mach1
Kernel: Baltazar Kernel
Modem: VJUFNB2
Theme: Domination Dark v1.9.1
Recovery: PhilZ Touch v6.20.7

Installation guide for 3minit and JKAY in Domination Theme + some setup instructions
http://forum.xda-developers.com/show...postcount=2749

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes