[HOW-TO][4.1.2] Proper home button lagfix - Galaxy Note II Android Development

Hello xda'ers,
someone reading the title may say: but we still have no home button lag!
You could link me Oliwe's mod but this is a different thing.
His fix or mod consist to disable mHomeKeyDoubleClickConcept launching directly launchHomeFromHotKey()V method.
Nothing bad until you hate to have double click feature to launch vlingo (or voice commands).
If you want NO LAG and keep the double click feature?
Now there s a real fix to the home button lag, no workaround, no disabling samsung features! :victory:
We need to place a single line into a .smali file inside our android.policy.jar called PhoneWindowManager.smali.
This mod it s really simple to do, there s no :cond_xx to replace, add or remove.
Simply add green part
Code:
.line 3267
.end local v38 #statusbar:Lcom/android/internal/statusbar/IStatusBarService;
:cond_304
:goto_304
const/16 v46, 0x0
move/from16 v0, v46
move-object/from16 v1, p0
iput-boolean v0, v1, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHomePressed:Z
[COLOR="DarkGreen"]invoke-virtual/range {p0 .. p0}, Lcom/android/internal/policy/impl/PhoneWindowManager;->launchHomeFromHotKey()V[/COLOR]
Now we launch home before double click is recognized, but.. we re doing this twice, so we need to delete the second launch.
In fact if we take a look at PhoneWindowManager$HomeKeyDoubleClickConcept.smali we can see, at the end of singleClickJob()V method (red lines)
Code:
[COLOR="Red"]if-eqz v7, :cond_93[/COLOR]
const-string v7, "HomeKeyDoubleClick"
const-string v8, " in singleClickJob(), mSentHomeDownToApp is false. Now call launchHomeFromHotKey()"
invoke-static {v7, v8}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
.line 8201
[COLOR="Red"] :cond_93
iget-object v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager$HomeKeyDoubleClickConcept;->this$0:Lcom/android/internal/policy/impl/PhoneWindowManager;
invoke-virtual {v7}, Lcom/android/internal/policy/impl/PhoneWindowManager;->launchHomeFromHotKey()V
[/COLOR] goto :goto_48
.line 8203
:cond_99
iget-boolean v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager$HomeKeyDoubleClickConcept;->DEBUG:Z
if-eqz v7, :cond_48
const-string v7, "HomeKeyDoubleClick"
const-string v8, " in singleClickJob(), mSentHomeDownToApp is true. now set mSentHomeDownToApp to false and do nothing."
invoke-static {v7, v8}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_48
.end method
that we re launching again "launchhomefromhotkey" method, so we need to delete the red lines.
This will fix home button lag, won t let u return on default homescreen (but u will get the homescreen u were before) and no more problem with apex or other non touchwiz launchers.
it s so easy that maybe samsung someday will implement it this way lol
that s all.
Easy to do
recompile and enjoy your no lag home button with double click feature.
need a zip? Send me your android.policy.jar or request this mod to your rom maker.

download for phoenix v5
HERE
in case of problems restore your old android.policy, u can get it on 3rd post, Androssama's courtesy

Mirko ddd said:
recompile and enjoy your no lag home button with double click feature.
Click to expand...
Click to collapse
I would've loved to be able to do so . Problem is I don't know what to use to edit apk files. Care to share what a begginer should have in his android tool-case?
Mirko ddd said:
need a zip? Send me your android.policy.jar or request this mod to your rom maker.
Click to expand...
Click to collapse
I attached the file from Phoenix v5 (ZSDMA6 base)

Androssama said:
I would've loved to be able to do so . Problem is I don't know what to use to edit apk files. Care to share what a begginer should have in his android tool-case?
I attached the file from Phoenix v5 (ZSDMA6 base)
Click to expand...
Click to collapse
Thanks, i ll zip asap. I m not home now
EDIT: got it on 2nd post, cheers

can tis work on stock rooted?? MA6..

Same for me, I don't know how to compile. Maybe my android.policy.jar is the same than Androssama's. I'm from Android Revolution HD 10.0.
Thanks.
Edit : When we have the zip, we have to flash it or just extract and replace android.policy. jar in /system/framework ?

Could you do this with Xposed framework. ....?
That would be easier...
Sent from my GT-N7100 using Tapatalk HD

Mirko, can I ask what do you use to decompile/recompile smali?
Every time I try (granted it was ages ago) I always get errors

Uvoguine said:
Same for me, I don't know how to compile. Maybe my android.policy.jar is the same than Androssama's. I'm from Android Revolution HD 10.0.
Thanks.
Edit : When we have the zip, we have to flash it or just extract and replace android.policy. jar in /system/framework ?
Click to expand...
Click to collapse
i just needed one to test if worked, source is in OP, tutorial is easy, so every rom maker can include it with proper credits.
amg009 said:
Could you do this with Xposed framework. ....?
That would be easier...
Sent from my GT-N7100 using Tapatalk HD
Click to expand...
Click to collapse
yes i can, but it s not my buisness since i have no roms here. u can ask it to your rom maker, source is in OP
CitizenLee said:
Mirko, can I ask what do you use to decompile/recompile smali?
Every time I try (granted it was ages ago) I always get errors
Click to expand...
Click to collapse
probably because u do it with apktool.best way is to use smali/baksmali directly from the SDK.

Hi Mirko,
Could you modify it for me? I'm using Wanamlite 2.8 MA3 rom, attached is the android.policy.jar
Thanks!!

amg009 said:
Could you do this with Xposed framework. ....?
That would be easier...
Sent from my GT-N7100 using Tapatalk HD
Click to expand...
Click to collapse
Yep, it would be gr8 if someone could implement this through Xposed framework....

Sorry to dig this up but I couldnt find another proper solution.
How can I achieve this on 4.3 (DN3 ROM)?

Related

Move the battery percent over just a tad???

How the heck do you do this? I just need to move the percent of the battery over to the left just a tad bit in the status bar...
Thank you!!
I remember someone did this for the latest cyanogen rom, maybe you can compare two versions of the xml/code.
LOL I just figured it out... lol its the services.jar file and i just took it from the BlackMatteMorph to fix it :-D but I want to thank you for the help :-D
EDIT: yea it worked but it screwed up my rom... back to the boards lol...
jonnydopemsr said:
LOL I just figured it out... lol its the services.jar file and i just took it from the BlackMatteMorph to fix it :-D but I want to thank you for the help :-D
EDIT: yea it worked but it screwed up my rom... back to the boards lol...
Click to expand...
Click to collapse
What do you mean it screwed up your ROM, I am attempting to do the same as well, so any info you can give will help.
EDIT:
Think I may have found it. After baksmali-ing the services.jar/classes.dex and comparing it to the one in that morph you said, I found the following in /com/android/server/status/StatusBarIcon.smali
Code:
.line 99
iget-object v6, p0, Lcom/android/server/status/StatusBarIcon;->mNumberView:Landroid/widget/TextView;
new-instance v7, Landroid/widget/FrameLayout$LayoutParams;
const/16 v8, 0x15
invoke-direct {v7, v9, v9, v8}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V
in the CM 5.0.6 one and
Code:
.line 99
iget-object v6, p0, Lcom/android/server/status/StatusBarIcon;->mNumberView:Landroid/widget/TextView;
new-instance v7, Landroid/widget/FrameLayout$LayoutParams;
invoke-direct {v7, v9, v9, v11}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V
in the BlackMatte one.
After changing the last v8 in 5.0.6 to v11, the text was set far to the left, I am now currently messing around with different values there to find the "sweet spot" for what I need.
nice and thank you! one thing though is once i do the baksmali-ing do i just do a smali to make it back to a services.jar file?
and by screwed up my rom... i have been messing around but when i popped in the classes.dex from the hero bar if you touched the livewallpaper background it did a type of "soft-crash" and yea that wasnt good lol...
after you baksmali the classes.dex, then you will need to smali the output files to make it into a classes.dex that you can reinsert into the services.jar
java -Xmx512M -jar smali.jar location/of/output/files -o classes.dex
Okay that makes sense now and thank you!
jonnydopemsr said:
Okay that makes sense now and thank you!
Click to expand...
Click to collapse
I was only to make it look a little worse by messing with those files
Let me know if you get anything good looking out of it, or if you find out anything else about it.
will do!
i just need to move it like the guy had it in his pic i saw on the metamoph post screen shot here forum, cuz i am using those battery icons as well.
SOLVED! posting new thread!

Baksmali??

Can any one help me out with how to use baksmali so i can edit systemui to get rid of full bat notification.
Sent from my Haxsung Dark Infuse 4G powered by Infusion
Use APK Tool or APK Manager. The APK Manager gives you a menu to choose from.
Also posted in i9000 dev section:
http://forum.xda-developers.com/showthread.php?t=1295748
You may want to clear the battery fully charged notification when phone is on dock, or it doesn't go away even if unplugged. This mod fixes these.
NOTE: I didn't remove the notification, because I think it a better solution to leave the user this option rather than completely removing it.
* baksmali classes.dex in SystemUI.apk
* open com\android\systemui\statusbar\policy\StatusBarPolicy.smali
* search for "iget v3, v2, Landroid/app/Notification;->flags:I" at around line 1824, under
.method private addFullChargeNotification()V
* remove the following 3 lines:
iget v3, v2, Landroid/app/Notification;->flags:I
or-int/lit8 v3, v3, 0x2
iput v3, v2, Landroid/app/Notification;->flags:I
* save, smali, and update apk
Now you know the trick. SystemUI would make the full charge notification as on-going (flags = flags|0x2), and we simply convert it back to default.
Feel free to add in your ROM but please give proper credits.
Sent from my SAMSUNG-SGH-I997 using Tapatalk
Use apktool..much easier...i posted rey on general thread you posted....but very important...you cant just decompile and recompile systemUI.apk..it wont work...you have to install the proper framework files..ie framework-res.apk...systemUI uses it as its base.... In apktool type "apktool if framework-res.apk ", and it will install the framework
Sent from my SAMSUNG-SGH-I997 using xda premium

[How To] Fix Phantom Voicemail For Most ROMs

The main post has several older ROMs that are not likely to change. If you are looking for newer ROMS like Decks ICS, CM9, AOKP, and MIUIv4 look at the end of the thread and work your way back. Most are fixes uploaded as attachments after request are made. Since there are so many updates I am not even going to try to keep the main thread current becuase of time constrants.
Thanks for your understanding,
JusticeAA
***********************************************************************
I know there are several Sprint users that are plagued with the native voicemail notification icon and message "New Voicemail (2) Dial ..." which is commonly referred to as the "phantom voicemail."
There is a "fix" in which you can call Sprint and activate an old phone but for some with government contacts and such that is not an option. I found a fix that should work with almost all ROMs since it changes the android side not the HTC side.
I have attached a flashable zip for several popular rom's to this post. For the DIY I will leave the walk through.
Basic knowledge and tools about decompiling and compiling apk's is required, do a search it will be helpful. For some reason I decompile with apkmultitool and recompile with apktool and have the best luck, your results may vary.
**Standard Disclaimer: Know what you are doing and backup anything before you change things. Google search is your friend.**
Here are the steps:
1. Extract the Phone.apk from your ROM and decompile.
2. Open \smali\com\android\phone\CallNotifier$1.smali if you are using a sense rom, I use Notepad++
3. Other roms you may have to search for it, MIUI has the section needed in CallNotifier$2.smali
3. Near the bottom of the small file you will see something like this:
.method public onMessageWaitingIndicatorChangedEnhanced(I)V
.locals 1
.parameter "count"
.prologue
.line 638
iget-object v0, p0, Lcom/android/phone/CallNotifier$1;->this$0:Lcom/android/phone/CallNotifier;
#calls: Lcom/android/phone/CallNotifier;->onMwiChanged(I)V
invoke-static {v0, p1}, Lcom/android/phone/CallNotifier;->access$000(Lcom/android/phone/CallNotifier;I)V
.line 639
return-void
.end method
Click to expand...
Click to collapse
If you can't find it use Notepad++ and search in multiple files for "onMessageWaitingIndicatorChanged"
In that section (between .method public... and .end method), change the line:
invoke-static {v0, p1}, Lcom/android/phone/CallNotifier;->access$000(Lcom/android/phone/CallNotifier;I)V
Click to expand...
Click to collapse
to:
return-void
Click to expand...
Click to collapse
Now it should look like this:
.method public onMessageWaitingIndicatorChangedEnhanced(I)V
.locals 1
.parameter "count"
.prologue
.line 638
iget-object v0, p0, Lcom/android/phone/CallNotifier$1;->this$0:Lcom/android/phone/CallNotifier;
#calls: Lcom/android/phone/CallNotifier;->onMwiChanged(I)V
return-void
.line 639
return-void
.end method
Click to expand...
Click to collapse
4. Save your smali and recompile, if you did it right there should be no errors (I always get errors in apkmultitool ,that is why I use apktool.)
5. Copy the classes.dex from your new apk build into the original apk to keep the original signature.
5. Push your modified Phone.apk back into /system/app and you should be good to go.
This is a much cleaner method then what I used before. This should reduce battery drain and prevent sudden closing of the Phone.apk.
THEY ARE FLASHABLE ZIPs. Make sure you wipe cache and dalvik first to be on the safe side.
Thanks for passing this on man. Imma have to try this.
I've called my phone, left a message. Dialed vm, erased message and the vm icon is gone after this.
Sent from my PC36100 using Tapatalk
Any chance of getting this fix in a zip file, or apk for us less techknow furtunate ?
Thanks
lionedas said:
Any chance of getting this fix in a zip file, or apk for us less techknow furtunate ?
Thanks
Click to expand...
Click to collapse
I uploaded the two that I have, what rom are you using? I obliviously won't have time to do every request but I can do some.
JusticeAA said:
I uploaded the two that I have, what rom are you using? I obliviously won't have time to do every request but I can do some.
Click to expand...
Click to collapse
Radiance RC4
so I think the rcmix you posted should work right ?
Edit: after looking at them I dont think they are the same, I am post phone.akp from RC4
incase you get time to mod it.
Thanks again
lionedas said:
Radiance RC4
so I think the rcmix you posted should work right ?
Click to expand...
Click to collapse
Its based off the same build so it should, fyi Radiance RC5 is out now.
Make a nandroid first so you can go back if it doesn't work.
sizes are different posted apk above
RC4 and RC5 use the same phone.apk so it should be good for guys needing it for both..
lionedas said:
sizes are different posted apk above
RC4 and RC5 use the same phone.apk so it should be good for guys needing it for both..
Click to expand...
Click to collapse
I just upload the modded Radiance Phone.apk. The archive was giving me trouble in 7zip but I think I got it straightened out.
Please let me know if it works.
Anyone have any how to links, or ? on getting system apk's installed
Thanks
Nice job.Thank you
Any chance you can do CyanogenMod 7.2?
nydriek said:
Any chance you can do CyanogenMod 7.2?
Click to expand...
Click to collapse
There should already be a setting in CM7 for that. If you go into settings, then phone settings, one of the options is something like display voicemail notifications. Make sure that is off and they should be gone.
lionedas said:
Anyone have any how to links, or ? on getting system apk's installed
Thanks
Click to expand...
Click to collapse
Sorry about being so lazy, I am testing out making flashable zips and will upload them as soon as they are done.
Flashable zips are up, the only one I have test is for RCMix3D, so please let me know.
lionedas said:
Radiance RC4
so I think the rcmix you posted should work right ?
Edit: after looking at them I dont think they are the same, I am post phone.akp from RC4
incase you get time to mod it.
Thanks again
Click to expand...
Click to collapse
4 and 5 are up, in case you want to update!
Hey, think you can make one for nrg energy Rom? I was tryin your method but screwed up a few times. A flashable zip would be awesome
Sent from my PC36100 using xda premium
Steven 1 said:
Hey, think you can make one for nrg energy Rom? I was tryin your method but screwed up a few times. A flashable zip would be awesome
Sent from my PC36100 using xda premium
Click to expand...
Click to collapse
Done, please report back on how it works.
AOSP?
ive tried to decompile this using apktool for miui and it keeps telling me that it cant decode attr value like 487536705398 times its crazy any solutions?
dvickers said:
ive tried to decompile this using apktool for miui and it keeps telling me that it cant decode attr value like 487536705398 times its crazy any solutions?
Click to expand...
Click to collapse
MIUI is totally different, I was able to decompile it with apkmultitool by using the framework as a dependency.
The code is in a totally different place too and it already used the (Z) value. I did a small modification and it compiled without errors but that doesn't mean it will work.
(removed)

[Guide] Long press menu button to kill app

This mod will make you able to instantly kill app activity by long press on menu button​
The original mod is done by maskerwsk, who modifies Mirko_ddd method
Click to expand...
Click to collapse
Needed tools:
1) Backsmali/Smali program from here
2) Notepad++ program from here
3) WinRAR or 7-zip archiver
The procedure:
- Backsmali android.policy.jar
- Navigate to classout/com/android/internal/policy/impl/ folder and open PhoneWindowManager.smali file
- Locate the following code by tracking "mMenuLongPress" and do the following changes:
before:
Code:
.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:
Code:
.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;
N.B: $9 might be differ according to ROM, but track "mMenuLongPress" to locate the wanted code portion
Click to expand...
Click to collapse
- Save changes.
- Now add this new file (PhoneWindowManager$KillConcept.smali) to classout/com/android/internal/policy/impl/ folder. You can download it from here.
You should make sure that the id in PhoneWindowManager$KillConcept.smali is linked to "permlab_forceBack" id in framework-res.apk public.xml. See post #15 to know exactly how it is done.
Click to expand...
Click to collapse
- Now recompile (smali) the classout folder and open android.policy.jar by WinRAR or 7-zip and substitute classes.dex inside android.policy.jar with the new classes.dex file.. now push the modified android.policy.jar to your device and fix permissions to chmod 644.
Extra step:
To adjust timeout delay, backsmali framework.jar and navigate to classout/android/view/ folder and open ViewConfiguration.smali and search for this method and change RED text value:
Code:
.method public static getGlobalActionKeyTimeout()J
.registers 2
.prologue
.line 669
const-wide/16 v0, [B][COLOR="Red"]0x1f4[/COLOR][/B]
return-wide v0
.end method
As you can see, this hex value means 500; i.e, 0.5 second.. So we will change it to which delay we want:
0x1f4 = 0.5 second (default value)
0x2ee = 0.75 second
0x3e8 = 1 second
0x4e2 = 1.25 second
0x5dc = 1.5 second
0x6d6 = 1.75 second
0x7d0 = 2 second
N.B: applying this change, will affect the timeout delay across OS!!
Click to expand...
Click to collapse
Now you can open any app and then long press the menu button to exit instantly..
Is it possible to control delay before an app gets killed?
Sent from my GT-N7000 using Tapatalk HD
ocujos said:
Is it possible to control delay before an app gets killed?
Sent from my GT-N7000 using Tapatalk HD
Click to expand...
Click to collapse
No in the meantime,,, but may be in future, since it involves complicated coding and decompiling other system app..
ocujos said:
Is it possible to control delay before an app gets killed?
Sent from my GT-N7000 using Tapatalk HD
Click to expand...
Click to collapse
majdinj said:
No in the meantime,,, but may be in future, since it involves complicated coding and decompiling other system app..
Click to expand...
Click to collapse
I have found a short way to do that,,, I will update OP soon after I come back home
Edit:
Added extra step
majdinj said:
I have found a short way to do that,,, I will update OP soon after I come back home
Edit:
Added extra step
Click to expand...
Click to collapse
hi guys this mod is fantastic...
is there something same for the Galaxy note II?
thank's to all for the ansewers!
mikempower said:
hi guys this mod is fantastic...
is there something same for the Galaxy note II?
thank's to all for the ansewers!
Click to expand...
Click to collapse
nobody?
Inviato dal mio GT-N7100 con Tapatalk 2
mikempower said:
nobody?
Inviato dal mio GT-N7100 con Tapatalk 2
Click to expand...
Click to collapse
I think it is the same buddy
for galaxy note i flashed a zip wich made all in one step.
where a can i find it for note II? (if it exists?)
Inviato dal mio GT-N7100 con Tapatalk 2
mikempower said:
for galaxy note i flashed a zip wich made all in one step.
where a can i find it for note II? (if it exists?)
Inviato dal mio GT-N7100 con Tapatalk 2
Click to expand...
Click to collapse
Google
(But only if it exists)
projeto56 said:
Google
(But only if it exists)
Click to expand...
Click to collapse
very funny!
but if i could find it on google,i would have not asked for it.
mikempower said:
very funny!
but if i could find it on google,i would have not asked for it.
Click to expand...
Click to collapse
Then it's safe to presume it doesn't exist
You could follow the steps on the OP, then make a flashable zip with the modded files, open a new thread and get a million thanks
yes.. the only problem is that i'm not able to do it..
Inviato dal mio GT-N7100 con Tapatalk 2
nice mod!
is it possible to change long press menu to recent apps?
You should make sure that the id in PhoneWindowManager$KillConcept.smali is linked to "permlab_forceBack" id in framework-res.apk public.xml
Click to expand...
Click to collapse
as I can check this? could you specify a bit more please
Javho said:
as I can check this? could you specify a bit more please
Click to expand...
Click to collapse
Yes..
1. decompile framework-res.apk
2. go to decompiled folder res/values folder and open public.xml file
3. search for permlab_forceBack. It will be something like this:
Code:
<public type="string" name="permlab_forceBack" id="[B][COLOR="Blue"]0x01040245[/COLOR][/B]" />
As you see here our targeted id is 0x01040245
4. now open PhoneWindowManager$KillConcept.smali and locate this portion:
Code:
.line 885
move-object/from16 v0, p0
iget-object v14, v0, Lcom/android/internal/policy/impl/PhoneWindowManager$KillConcept;->this$0:Lcom/android/internal/policy/impl/PhoneWindowManager;
iget-object v14, v14, Lcom/android/internal/policy/impl/PhoneWindowManager;->mContext:Landroid/content/Context;
const v15, [B][COLOR="Blue"]0x1040245[/COLOR][/B]
const/16 v16, 0x0
invoke-static/range {v14 .. v16}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;
move-result-object v14
invoke-virtual {v14}, Landroid/widget/Toast;->show()V
As you can see, I just match the id to be exactly the same like the one in public.xml of framework-res.apk (you should omit the first 0 digit; i.e, 0x01040245 will be 0x1040245)
..
majdinj said:
Yes..
1. decompile framework-res.apk
2. go to decompiled folder res/values folder and open public.xml file
3. search for permlab_forceBack. It will be something like this:
Code:
<public type="string" name="permlab_forceBack" id="[B][COLOR="Blue"]0x01040245[/COLOR][/B]" />
As you see here our targeted id is 0x01040245
4. now open PhoneWindowManager$KillConcept.smali and locate this portion:
Code:
.line 885
move-object/from16 v0, p0
iget-object v14, v0, Lcom/android/internal/policy/impl/PhoneWindowManager$KillConcept;->this$0:Lcom/android/internal/policy/impl/PhoneWindowManager;
iget-object v14, v14, Lcom/android/internal/policy/impl/PhoneWindowManager;->mContext:Landroid/content/Context;
const v15, [B][COLOR="Blue"]0x1040245[/COLOR][/B]
const/16 v16, 0x0
invoke-static/range {v14 .. v16}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;
move-result-object v14
invoke-virtual {v14}, Landroid/widget/Toast;->show()V
As you can see, I just match the id to be exactly the same like the one in public.xml of framework-res.apk (you should omit the first 0 digit; i.e, 0x01040245 will be 0x1040245)
..
Click to expand...
Click to collapse
thanks for the reply: D, and the other is whether it is possible that instead of occupying occupy menu button back?
Javho said:
thanks for the reply: D, and the other is whether it is possible that instead of occupying occupy menu button back?
Click to expand...
Click to collapse
I don't know if I understand the question, but menu button will not be affected by the mod,, it will have another function that is long press to kill..
if you mean long press back button to kill, believe me this one is much easier to mod than back to kill since back button has multi-window function as well which you need to deal with during coding as well.
..
Thanks for mod. Do I navigate to PhoneWindowsManager.smali using RootExplorer?
Neutrino22 said:
Thanks for mod. Do I navigate to PhoneWindowsManager.smali using RootExplorer?
Click to expand...
Click to collapse
No.. You need to pull the framework to the pc. Then decompile it using any of the available methods. The navigate to the file you specified. Open it in notepad++ and do the editing.
Sent from my GT-I9500 using xda premium
Neutrino22 said:
Thanks for mod. Do I navigate to PhoneWindowsManager.smali using RootExplorer?
Click to expand...
Click to collapse
No. Use apktool to decompile and then notepad ++ to mod the smalies.

[Q][D6633][Z3 Dual] Help for hide Sim Lable from status bar

Hi
i edited PNG but it takes space in statusbar , i want to disable label icon
Can any body help me to find related layout ?
Thanks
Soheil_rf said:
Hi
i edited PNG but it takes space in statusbar , i want to disable label icon
Can any body help me to find related layout ?
Thanks
Click to expand...
Click to collapse
Goto settings - personalisation - status bar icons
Soheil_rf said:
Hi
i edited PNG but it takes space in statusbar , i want to disable label icon
Can any body help me to find related layout ?
Thanks
Click to expand...
Click to collapse
Any news? I also would like to eliminate the sim 1 and 2 indicators (I deleted also the clock to earn some space)
@serajr
Please help us
Soheil_rf said:
@serajr
Please help us
Click to expand...
Click to collapse
Untested procedure, but...
NotificationPanelView.smali
Inside "draw" method you will find this line (or something like that):
Code:
invoke-virtual {v0, v6, v1, v2, v3}, Landroid/graphics/Canvas;->[B]drawBitmap[/B](Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V
Add # just before that line (you will get):
Code:
[B][COLOR="Red"]#[/COLOR][/B]invoke-virtual {v0, v6, v1, v2, v3}, Landroid/graphics/Canvas;->[B]drawBitmap[/B](Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V
This will probably hide the icons!
For their labels, do the same but with these two lines (at the end of method):
Code:
[B][COLOR="Red"]#[/COLOR][/B]invoke-virtual {v0, v9, v1, v2, v3}, Landroid/graphics/Canvas;->[B]drawText[/B](Ljava/lang/String;FFLandroid/graphics/Paint;)V
.
.
.
[B][COLOR="Red"]#[/COLOR][/B]invoke-virtual {v0, v9, v1, v2, v3}, Landroid/graphics/Canvas;->[B]drawText[/B](Ljava/lang/String;FFLandroid/graphics/Paint;)V
goto :goto_3
.end method
TRY IT AT YOR OWN RISK
serajr said:
Untested procedure, but...
NotificationPanelView.smali
Inside "draw" method you will find this line (or something like that):
Code:
invoke-virtual {v0, v6, v1, v2, v3}, Landroid/graphics/Canvas;->[B]drawBitmap[/B](Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V
Add # just before that line (you will get):
Code:
[B][COLOR="Red"]#[/COLOR][/B]invoke-virtual {v0, v6, v1, v2, v3}, Landroid/graphics/Canvas;->[B]drawBitmap[/B](Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V
This will probably hide the icons!
For their labels, do the same but with these two lines (at the end of method):
Code:
[B][COLOR="Red"]#[/COLOR][/B]invoke-virtual {v0, v9, v1, v2, v3}, Landroid/graphics/Canvas;->[B]drawText[/B](Ljava/lang/String;FFLandroid/graphics/Paint;)V
.
.
.
[B][COLOR="Red"]#[/COLOR][/B]invoke-virtual {v0, v9, v1, v2, v3}, Landroid/graphics/Canvas;->[B]drawText[/B](Ljava/lang/String;FFLandroid/graphics/Paint;)V
goto :goto_3
.end method
TRY IT AT YOR OWN RISK
Click to expand...
Click to collapse
Hi buddy, could you add this feature in your xposed mod?
I can't find this file in my system to edit :/
GoDExtremE said:
I can't find this file in my system to edit :/
Click to expand...
Click to collapse
Can't find it either...
You will have to decompile the home.apk
gregbradley said:
You will have to decompile the home.apk
Click to expand...
Click to collapse
Ah ok...think I'll just leave the icon there
gregbradley said:
You will have to decompile the home.apk
Click to expand...
Click to collapse
slonn said:
Ah ok...think I'll just leave the icon there
Click to expand...
Click to collapse
I hope Sejajr can add this option on his xposed mod
Found a solution: go to Settings | Sound and Notification | Application Notifications, choose "Cell Information" app and enable "Block".
As my X3 is in a different language, I've tried to guess the english options. Sorry for that.
Rgds
hetote said:
Found a solution: go to Settings | Sound and Notification | Application Notifications, choose "Cell Information" app and enable "Block".
As my X3 is in a different language, I've tried to guess the english options. Sorry for that.
Rgds
Click to expand...
Click to collapse
What language do you use? The above is not correct in English. Thanks
slonn said:
What language do you use? The above is not correct in English. Thanks
Click to expand...
Click to collapse
It's brazilian portuguese. But must be something alike, I think
check this out http://forum.xda-developers.com/z3/development/mod-z3dual-overlay-mods-collection-t3084825
monx® said:
check this out http://forum.xda-developers.com/z3/development/mod-z3dual-overlay-mods-collection-t3084825
Click to expand...
Click to collapse
Looks good. Is the hide sim card icons for lollipop only?
slonn said:
Looks good. Is the hide sim card icons for lollipop only?
Click to expand...
Click to collapse
honestly im not sure. only tested on LP.
and i dn hv KK rom left to test. all deleted
monx® said:
honestly im not sure. only tested on LP.
and i dn hv KK rom left to test. all deleted
Click to expand...
Click to collapse
Unfortunately it doesn't work on KK 4.4.4
slonn said:
Unfortunately it doesn't work on KK 4.4.4
Click to expand...
Click to collapse
if u send me KK SystemUI.apk maybe i can try to see which values controlling it.
monx® said:
if u send me KK SystemUI.apk maybe i can try to see which values controlling it.
Click to expand...
Click to collapse
Great. Thanks for taking a look. I've pm'ed you a link for the file.
I plan to jump to LP as soon as xposed is more stable.
monx® said:
if u send me KK SystemUI.apk maybe i can try to see which values controlling it.
Click to expand...
Click to collapse
Flashed the file you sent me but the sim card icons are still on the notification bar, unfortunately

Categories

Resources