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,
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.