yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] sirkula:
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 :D. I'm on stock odexed LSJ....

Thanks :good:
[Galaxy S II Android Development] davidwilson83:
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. :confused:

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.
[Galaxy S II Android Development] majdinj:
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:

.line 1674
new-instance v0, Lcom/android/internal/policy/impl/PhoneWindowManager$[B][COLOR="Red"]9[/COLOR][/B];

invoke-direct {v0, p0}, Lcom/android/internal/policy/impl/PhoneWindowManager$[B][COLOR="Red"]9[/COLOR][/B];-><init>(Lcom/android/internal/policy/impl/PhoneWindowManager;)V

iput-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mMenuLongPress:Ljava/lang/Runnable;

after:

.line 1674
new-instance v0, Lcom/android/internal/policy/impl/PhoneWindowManager$[B][COLOR="Blue"]KillConcept[/COLOR][/B];

invoke-direct {v0, p0}, Lcom/android/internal/policy/impl/PhoneWindowManager$[B][COLOR="Blue"]KillConcept[/COLOR][/B];-><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..
[Galaxy S II Android Development] Devil_1210:
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
[Galaxy S II Android Development] savergiggio:
guys i have a xperia s i changed only $9 with $killconcept , and copyed the other file to impl.. but when mobile reboots , and i press back button the mod doesn't do nothing it doesn't kill apps.. who can help me?
[Galaxy S II Android Development] bullonwheels:
BUMp!!!
[Galaxy S II Android Development] iXanza:
Hey Mirko, I was wondering if you could tell me how to mod it where long press back is home button and long press menu is recents.

Thanks in advance.
[Galaxy S II Android Development] majdinj:
Yeah sure,, this is how to add toggle checkbox listener in android.policy.jar for long press menu to kill:

In PhoneWindowManager.smali after you did this patch:

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;

You need to follow "mMenuLongPress" field and locate this part:

:cond_49d
const/16 v3, 0x52

move/from16 v0, v32

if-ne v0, v3, :cond_543

const/4 v13, 0x1

if-eqz v15, :cond_4db

if-nez v41, :cond_4db

if-eqz v28, :cond_4b9

move-object/from16 v0, p0

iget-object v3, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHandler:Landroid/os/Handler;

move-object/from16 v0, p0

iget-object v4, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mMenuLongPress:Ljava/lang/Runnable;

invoke-static {}, Landroid/view/ViewConfiguration;->getGlobalActionKeyTimeout()J

move-result-wide v5

invoke-virtual {v3, v4, v5, v6}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

Apply the following changes, add the blue lines, delete the red and pay attention to its condition value:

:cond_49d
const/16 v3, 0x52

move/from16 v0, v32

[B][COLOR="RoyalBlue"]move-object/from16 v0, p0

iget-object v12, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mContext:Landroid/content/Context;

invoke-virtual {v12}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v12

const-string v13, "long_press_menu_kill"

const/4 v14, 0x1

invoke-static {v12, v13, v14}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v12

if-eqz v12, :cond_543[/COLOR][/B]

[B][COLOR="Red"]if-ne v0, v3, :cond_543[/COLOR] [COLOR="Green"]<!--- Put the same cond value in the new if-eqz v12, :cond above[/COLOR][/B]

const/4 v13, 0x1

if-eqz v15, :cond_4db

if-nez v41, :cond_4db

if-eqz v28, :cond_4b9

move-object/from16 v0, p0

iget-object v3, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHandler:Landroid/os/Handler;

move-object/from16 v0, p0

iget-object v4, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mMenuLongPress:Ljava/lang/Runnable;

invoke-static {}, Landroid/view/ViewConfiguration;->getGlobalActionKeyTimeout()J

move-result-wide v5

invoke-virtual {v3, v4, v5, v6}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

Now set the toggle in SecSettings.apk

Cheers,,
[Galaxy S II Android Development] ch3mistry2222:
Where do i add the attached subclass in????
[Galaxy S II Android Development] majdinj:
In android.policy.jar/smali/com/android/internal/policy/impl/ folder
[Galaxy S III Q&A, Help & Troubleshooting] GR0S:
Is it glued with screen or replacent (cheap) is possible ?
[Galaxy S III Q&A, Help & Troubleshooting] cosmy:
it's apart from the screen and you can find it cheap like couple of pounds on e-bay
[Galaxy Note II Q&A, Help & Troubleshooting] asad510:
Okay guys im rooted but I want to go back to stock shall I just flash the samsung firmware through odin?
[Galaxy Note II Q&A, Help & Troubleshooting] sahilarora2003:
Yes. Just flash it through PCOdin and you will be unrooted :D
[Galaxy Note II Q&A, Help & Troubleshooting] asad510:
Do I have to wipe
[Galaxy Note II Q&A, Help & Troubleshooting] eng.rego:
If u have any flash counter counts, u should use triangle away first to reset it, then flash the stock rom then wipe all data and cash, it will be brand new official then :)

↖(^▽^)↗ Sent From Rego Galaxy Note!! ↖(^▽^)↗
[HTC Wildfire S] maron11:
Which filei(com.htc.resources.apk, framework-res.apk, SystemUI.apk) have to change, to chnage status bar style(the letters color etc.) in sense 3.5 I've decompiled them but i can't find these settings (i'm using this rom:http://xdaforums.com/showthread.php?t=1797588)
[Nexus 4 Q&A, Help & Troubleshooting] 91franz:
Hi guys, i m one of the poor citiziens of Italy where the nexus 4 will cost 549€ O_o anyway i want it so i was thinking about having a little holiday in London and buy it there.. So if someone of you londoners can tell me which would be the price there ( not using play store) for example in the chrome zone shop i can take the flight tickets , thanks :)
[Nexus 4 Q&A, Help & Troubleshooting] weppa83:
i'm interested too :D
[Nexus 4 Q&A, Help & Troubleshooting] Venekor:
Can't you just get someone to order it from the store for you and then ship it over? Be a lot easier than going on holiday. Either that or I'm sure they'll be on ebay...
[Nexus 4 Q&A, Help & Troubleshooting] 91franz:
Yes it would be easier but i have a direct flight from my city so without luggage i ve a very cheap ticket .. So.. Thank you in advance for who will tell me the price :)
[Streak 5 General] Adi Shakthi:
dear all,

my ds5 is not responding......................:crying:

when i push power button to start it wont starts....................

when i push 2 volume button & power button to enter recovery mod it wonts show any thing........:crying:..

when i push power & cam button to enter fastboot mode it wont show anything.............:crying:

when i connect charger to wont charge........................:crying:

totally no light or any thing................:crying:

like tottaly dead.....

when i checked battery with multimeter it shows 3826mvolts.............

what should i do .................how to make my ds5 working back...............:crying:

last action performed before this state; stucked @ dell logo while flashing miui2.4.....so as usual i pulled my battery & relaced again.........then pushed power button..............then ..........no light........no dell logo...........no response to above mentioned activity...........like it is tottaly dead..........:crying:

plz healp me .....

Adi........:crying:
[Streak 5 General] msprakashmmc:
LAST TIME WHICH ROM U WERE USING..? just continuously press power,camera button alone while connected to pc.. Sometime it may turn up fastboot mode..
[Streak 5 General] Strephon Alkhalikoi:
A better question is to find out what he was doing prior to the Streak dying, in precise detail.

In any event, this Streak needs to be JTAGged to revive it, but then the Streak cannot be used for calls.
[Streak 5 General] _n0p_:
I don't see an attempt to enter QDL mode.

Remove battery, hold volume up. Connect Streak to PC not releasing volume up.

If new device appears, there's a chance to restore Streak with StreakFlash.
[Streak 5 General] Adi Shakthi:
am sorry new device doesn't appears.............:crying:

i think its complete dead............no hop..............

any way thank you so much nop master....................
[Streak 5 General] Nikhil_android:
Remove sim card SD card then try to switch on ...charge battery with these two removed...it may work out
[Android Q&A, Help & Troubleshooting] Omessy7:
! i was trying to install a new custom ROM ( C.A.M.P ) i had Cyanogenmod 10... i came to where i flash the new rom on my computer then when i wanted to fastboot reboot to install zip on phone, my computer shuts off, now when i turn my phone on it lights up black and stays like this and i cant do anything(no CWM no nothing) so i remove battery to turn off....

Phone:Xperia Arc S LTI8i
[Android Q&A, Help & Troubleshooting] chepoz:
Still can go to flashmode?

If yes, flash stock Rom using flashtool.

If no, bring to service center
[Android Q&A, Help & Troubleshooting] Omessy7:
Flashmode as in power button+pressing volume down ? then no i cant get there....
[Android Q&A, Help & Troubleshooting] chepoz:
Soo...service center is the answer.
[Android Q&A, Help & Troubleshooting] Omessy7:
No, i fixed it using flashtool, now it's running stock ics...
[LG Optimus Black] Robertodipuccio:
Hi, dont call me a lazy person for not searching, because i did and didnt find, but can anybody tell me a hotkey combination to enter recovery, the latest-non touch version? I have currently no ROM installed i wanted to install a nightly upgrade but after a wipe an error occured and the phone rebooted into bootlooping. Thanks in advance.
[LG Optimus Black] N00BY0815:
So you had cm10 installed? If yes push power + volume down and hold it. Otherwise use smartflash to unbrick. Only kernel 3.0.8 includes this reboot to recovery option. Older ones dont have it...
[LG Optimus Black] Robertodipuccio:
thats the problem i had CM10 installed but does it have anybody to do with it since i wiped my phone? im trying the power+volume down method but doesnt seem to work...downloading smartflash

just for sure do I press them simultaneously or one by one?

thanks for the quick answer by the way :good:
[LG Optimus Black] RomWiz:
Plug in your charger and when you come to the charging screen hold vol- and power. (or maby on lg logo works to)

If you can't come to the charging screen use smartflashtool.
[LG Optimus Black] Robertodipuccio:
ok i seem to have a problem here. i use smartflashtool and everything works ok i enter recovery and install supeuser but my phone keeps looping, any idea?
[LG Optimus Black] N00BY0815:
Make all wipes (data, cache & dalwik), wipe system as well, install a rom, wipe data, cache & dalwik again and try to boot again
[Sprint Samsung Galaxy Note II] dutchman71:
Did this app come with our phones? Mine keeps crashing when trying to open it...
[Sprint Samsung Galaxy Note II] glynnad:
Same problem

I had the same problem. Does anyone have a solution?
[Sprint Samsung Galaxy Note II] hayabusa1300cc:
There has been an update for it in Samsung Apps application

.:Sent from my Sprint Galaxy Note II:.
[AT&T, Rogers HTC One X, Telstra One XL] cugwuh:
Hi,

I'm new to xda forums so pardon me if I'm not as elaborate as most people. I flashed the cm-10-20121030-NIGHTLY-endeavoru and its been great. Had been using the AOKP ROM which was giving me issues with poor battery life, constantly switching between 2g & 3g, and getting worryingly hot during normal use. I do have one issue right now. The mobile data does work but it doesn't use the APN i enter into the settings and is constantly billing directly for data instead of going through my data plan. I've tried everything possible and it still doesn't work.

What could it be?

PS: I've also used getril to check for matching baseband radio & ril and its reporting a good match.

Thanks
[AT&T, Rogers HTC One X, Telstra One XL] asefzaman:
You'll get a quicker solution if you post this in the CM10 Thread under Original development.But have you tried restting the APN?

Sent from my HTC One X
[AT&T, Rogers HTC One X, Telstra One XL] cugwuh:
Yea I've tried resetting the APN but no luck. I've also gone to my carrier to get the actual APN settings correctly but to no avail. I really don't want to reflash the ROM and clear all the cache etc. It takes time set the phone back all up the way I want it so I'm hoping its maybe a radio issue I can just flash easily. Will move the post as u suggested. Thanks for responding.
[AT&T, Rogers HTC One X, Telstra One XL] Crappyvate:
You'll get a quicker answer if you go to the right forums, you have an endeavor, international version of the htc one x, please post there:

http://xdaforums.com/forumdisplay.php?f=1548
[AT&T, Rogers HTC One X, Telstra One XL] iElvis:
Be thankful for small favors, I was sure this was another brick thread.
[Nokia Lumia 920] 1337Noob:
I've seen the reviews about how sensitive the touch screen is, but considering that capacitive screens go nuts when some vapour/water/sweat go on them; will this be more of a fault than a feature ?
[Nokia Lumia 920] zolgi:
You can turn it off if you dont like it.
[General Questions and Answers] Wambua:
I own ideos x5 the plain one and it runs on froyo 2.2 for sometime I have considered rooting it so that I could enjoy the privilege of a super user. but huawei says for you to upgrade to gingerbread you must be on original rom!

Now can you please tell me where to get the official gingerbread for plain ideos x5 because I have looked at the huaweis official page and the page is never available, please help if you can!
[General Questions and Answers] Daniel120201:
Hi

You should get this:http://androidforums.com/ideos-x5-all-things-root/459812-ideos-x5-gingerbread-2-3-7-oxygen-rom.html
[Sony Xperia P, U, Sola, Go] aymnahmd:
hello guys i am going to buy xperia sola but i have just a few questions about it .. so i need your opinions please ....

first is there any TICK sound when you unlock the phone of the slider bar .... and is there any sluggishness of the touch screen while connecting the phone to the charger or to USB i have read so many people saying that it becomes unresponsive,,, and the cracking sound when we play a song or something on the phone ...... so pleaaaase tell me beacuse i am very hesitating about this phone ,,,,

THANKS
[Sony Xperia P, U, Sola, Go] aymnahmd:
please tell me i am going to buy it soon please any answers
[Sony Xperia P, U, Sola, Go] macamsialjek:
Dont listen other ppl , i have sola..work perfect for me...:)
[Sony Xperia P, U, Sola, Go] aymnahmd:
OKAY but

i have send this also on private message but just to make sure that u c the replay << Are you sure that there is no crackling sound or Ticks with any music or ringtone of the phone on the (loudspeaker) or the earphone ???? and the music is played Pure with good clarity ?? :) also is there any Ticks when you slide the unlock bar to unlock the phone ???? sorry for longing the message but final question BRO can we use the phone while it is on the charger or USB connection i have seen some friends saying that the touch screen become unresponsive while the phone is charging !!!!

THANK YOU SO , SO MUCH BRO :)
[Sony Xperia P, U, Sola, Go] aymnahmd:
any answers ????????/
[Sony Xperia P, U, Sola, Go] rehan512:
Buy only if u r going to root and install hybrid rom from neectron otherwise it will waste of money u will surely regret.

Mark my words stock firmware is poorly built go instead samsung galaxy
[Sony Xperia P, U, Sola, Go] macamsialjek:
Yes , sola become perfect when u rooting...my sola working perfect after root...my sola still using stock kernel n stock rom...till now my sola dun have any prob....
[Sony Xperia P, U, Sola, Go] Charlus97:
Xperia Sola (Locked bootloader) + root + CWM + ICS = The perfect phone.

I'm using the stock ICS and that's just GREAT :)
[Sony Xperia P, U, Sola, Go] visser:
Splash out a little and get the S if you want a stock phone, it'll get more dev love from Sony.
[HTC Sensation] davemazo:
I am using T Mobiles standard email app on my Sensation with a POP account. The phone is unlocked by T Mobile but never been rooted and is stock with all T Mobile updates.

I can download my emails no problem and as far as I`m aware it leaves them on the server. There are some I like to keep indefinately on the phone, for example, travel insurance details or weekend away vouchers. For some reason after a period of time, say about 3 or 4 days, these emails have vanished and are not in the deleted items folder. Where have they gone. Is there a setting somewhere that will let me keep them. I`ve searched all over the phone and I can`t find one. I`ve also searched the forum and can`t find this specific problem.
[HTC Sensation] realsis:
Hi there. Why don't you use the straight gmail application from the play store? I can promise nothing gets deleted. My guess is T-Mobile has a time limit or

Something to keep the emails and they delete them after. I also am T-Mobile user but I've always used gmail instead. I never lose an email. In fact some important emails I've kept for over a year now. Just download the app from the play store, set up the account, and you will have a more reliable email. Just don't use the email icon, use the gmail. Somehow it's different. It keeps all the emails until you delete them. Hope this helps. I've always used gmail and never ever had a problem like that. Best wishes to you.
[HTC Sensation] davemazo:
Thanks for that I`ll give it a go, although I have a Gmail account but don`t use it very much. Can I add my POP accounts to the Gmail app so they all open in Gmail, if you know what I mean

****EDIT**** Managed to sort it by going to the Gmail settings on my PC and then lo and behold it was all synced to my phone, sorted
[HTC One X] AndyBrine:
Full screen called Id was a welcome update to JellyBean, I used it with some of the original JellyBean roms for HTC One X. For those of you who have been able to update to the latest sense JellyBean roms, you will already know that Full Screen Caler Id is missing. This is a huge dissapointment, along with the notification panel and expanded notifications. Often it makes me think, what have HTC actually done to improve the latest Sense+. It is much smoother and faster I must admit and the maximus roms have been fantastic. The question is, will HTC ever be including these additions to sense?

I know this is not a problem with the roms and it lays with HTC itself, its just a huge dissapointment. When Android first introduced JellyBean, these were some of the feature that made the upgrade worthwhile. Does anyone know if Full Screen Caller Id or Expanded Notifications will ever be released?
[HTC One X] BenPope:
I was under the impression expanded notifications worked.

The trick is to expand them by placing two fingers in the middle and drag apart horizontally, like a "zoom in" motion.
[HTC One X] AndyBrine:
Thanks for your reply, I will test that out. I was ot aware they worked at all to be honest. Only just realised someoe replied to this thead. Hoping to see the full screen call id will come soo.
[Sony Ericsson XPERIA X10 Mini] kindek007:
hello

in my xperia x10 mini pro have a problem with the default keyboard called the introduction

of characters. When writing sms we have 3 arrays, the first of the letters, the seconf of

numbers, and third special characters and emoticons, my problem is just the third array with

special characters and emoticons: stuck and can not use it,I using android 2.3.7 modified mini CM7Pro v21, the standard kernel. Please help me, and sorry for my english :)

Best regards
[Sony Ericsson XPERIA X10 Mini] steiff:
It's a known bug. You can use the characters again after rotating to landscape und back to normal
[Sony Ericsson XPERIA X10 Mini] kindek007:
I know, but do can't somehow repair this bug?
[Galaxy S II Q&A, Help & Troubleshooting] jebuchanan:
Is there a Gingerbread port of the SMS smileys to ICS? I didn't find any searching, and the Gingerbread smileys are much better than ICS.

Thank you in advance.
[Nexus 4 Q&A, Help & Troubleshooting] Rusl1TA:
Guys,

I read in countries those can't buy nexus 4 from play store (Italy, Austria, Sweden, Netherlands and others) it will cost about 550 euro for the 16gb version! It's a theft!

Any information about this? I can't believe Google does this!
[Nexus 4 Q&A, Help & Troubleshooting] Slap-Yourself :):
Sure they weren't meaning the listings on ebay? I was seeing an insane price on them. I think I saw $599.99[USD] or $699.99[USD] for the 8GB one :/
[Nexus 4 Q&A, Help & Troubleshooting] Rusl1TA:
Sure.. They were meaning the official price in shops and important site as amazon and others.. It should costs 350 euro for the the 16GB, instead it costs more than 500 euro also on German amazon.. I'm confused.. I hope these will be stupid rumors
[Nexus 4 Q&A, Help & Troubleshooting] domi525:
Actually, it isn't Google's fault.

LG is responsible for that price...
[Nexus 4 Q&A, Help & Troubleshooting] ucubz:
same discussion there http://xdaforums.com/showthread.php?t=1966783
[Nexus 4 Q&A, Help & Troubleshooting] Zenzic:
Why is it 550 euro? Such a massive jump from uk price
[HTC One X] elpad:
Hi. I know this thread is placed wrongly. I have bought i android mini pc (ug802) and I'm using a bluetooth keyboard. Have instaled the NULLkeyboard so I dont have any onscreen keyboard. I am from norway and sometimes I'll ned my "æøå" letters, this is not on my keyboard, when i push at that place i got " ' ; \ ". Is there anyway posible to allways convert this symbols to "æøå"

As i said, this is the only android forum I'm member of. So hope the not will be deleted