New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
frescoraja
Old
(Last edited by frescoraja; 27th April 2012 at 07:36 AM.)
#281  
frescoraja's Avatar
Senior Member
Thanks Meter 316
Posts: 530
Join Date: May 2011
Location: Portland, OR

 
DONATE TO ME
anyone else have the problem with the bluetooth icon? after installing this mod, the bluetooth connected icon doesn't come on, it just keeps showing the regular 'bluetooth on' icon. anyone have any ideas?
again i'm running samsung galaxy s2 hercules (tmobile usa) 2.3.6 based rom, with touchwiz.
thanks
frescoraja
 
hansip87
Old
#282  
Senior Member - OP
Thanks Meter 1478
Posts: 2,089
Join Date: Jan 2011
Location: Jakarta

 
DONATE TO ME
Quote:
Originally Posted by frescoraja View Post
anyone else have the problem with the bluetooth icon? after installing this mod, the bluetooth connected icon doesn't come on, it just keeps showing the regular 'bluetooth on' icon. anyone have any ideas?
again i'm running samsung galaxy s2 hercules (tmobile usa) 2.3.6 based rom, with touchwiz.
thanks
frescoraja
It's more because of the incomplete decompilation and recompilation. The only fix is to wait brut.all new version of apktool.jar..
Moving to razr maxx, ray is still around though

Before you ask something about Ray, please READ MY TUTORIAL FIRST!

10in1 Framework Mod for Ray (+ Xperia S theme)

10in1 Framework + SystemUI Mod for ICS

[MOD][ICS&GB][XPERIA 2011]Camera 720p@10Mbps (+100% JPEG in GB)


Freely Given, Freely Give.
May The Most Highest be with you.
 
Ticklefish
Old
#283  
Ticklefish's Avatar
Recognized Themer
Thanks Meter 1450
Posts: 1,982
Join Date: Oct 2011
Well, this is very clever.

Is there anyway to do this on 2.1?

(Signature Picture & Avatar By Yorzua's Design Factory)

- Tickle My Android 5.4 -

Decompile Files, Change Icons, Change Fonts,
Change Boot Animations, Create Flashable Zips, Deodex Roms
..And More!

http://forum.xda-developers.com/showthread.php?t=1633333
 
frescoraja
Old
#284  
frescoraja's Avatar
Senior Member
Thanks Meter 316
Posts: 530
Join Date: May 2011
Location: Portland, OR

 
DONATE TO ME
Quote:
Originally Posted by hansip87 View Post
It's more because of the incomplete decompilation and recompilation. The only fix is to wait brut.all new version of apktool.jar..
actually i fixed the bluetooth icon problem. it was in framework.jar, the IStatusBarService$Stub.smali class. there are some lines at the end of the original code that don't appear in your tutorial, so i didn't know exactly what to do with them.. but now i figured it out!

now the only problem i have is with the browser notifications.. if i download something, i get the notification "Download complete" like normal, but if i swipe it away, it will keep coming back at random times until i press "clear" button or tap to remove it. ... .not a big deal, just some people have noticed it and want me to fix it. any ideas on what might be causing it, i'm all ears!
thanks
frescoraja
 
hansip87
Old
#285  
Senior Member - OP
Thanks Meter 1478
Posts: 2,089
Join Date: Jan 2011
Location: Jakarta

 
DONATE TO ME
Quote:
Originally Posted by frescoraja View Post
actually i fixed the bluetooth icon problem. it was in framework.jar, the IStatusBarService$Stub.smali class. there are some lines at the end of the original code that don't appear in your tutorial, so i didn't know exactly what to do with them.. but now i figured it out!

now the only problem i have is with the browser notifications.. if i download something, i get the notification "Download complete" like normal, but if i swipe it away, it will keep coming back at random times until i press "clear" button or tap to remove it. ... .not a big deal, just some people have noticed it and want me to fix it. any ideas on what might be causing it, i'm all ears!
thanks
frescoraja
Umm.. What lines did you found? I didn't realize it

Well.. Seems like it's fixable if you fix the services object. The stub class is the placeholder of the true services class inside services.jar but I don't have the code for that. Maybe someone can go in and take a look at the code to make it similar with notificationclearall function.

sent from my white ray using XDA App
Moving to razr maxx, ray is still around though

Before you ask something about Ray, please READ MY TUTORIAL FIRST!

10in1 Framework Mod for Ray (+ Xperia S theme)

10in1 Framework + SystemUI Mod for ICS

[MOD][ICS&GB][XPERIA 2011]Camera 720p@10Mbps (+100% JPEG in GB)


Freely Given, Freely Give.
May The Most Highest be with you.
 
frescoraja
Old
#286  
frescoraja's Avatar
Senior Member
Thanks Meter 316
Posts: 530
Join Date: May 2011
Location: Portland, OR

 
DONATE TO ME
Quote:
Originally Posted by hansip87 View Post
Umm.. What lines did you found? I didn't realize it

Well.. Seems like it's fixable if you fix the services object. The stub class is the placeholder of the true services class inside services.jar but I don't have the code for that. Maybe someone can go in and take a look at the code to make it similar with notificationclearall function.

sent from my white ray using XDA App
so here is what the original framework.jar IStatusBarService$Stub.smali class looked like (at the end of the file, like in step 2.1 step 4 in your tutorial)

the bold green parts are the lines that don't appear in your tutorial:

Code:
    .line 235
    :goto_19a
    const/4 v0, 0x1

    goto/16 :goto_7

    .line 233
    :cond_19d
    const/4 v0, 0x0

    invoke-virtual {p3, v0}, Landroid/os/Parcel;->writeInt(I)V

    goto :goto_19a

    .line 40
    :sswitch_data_1a2
    .sparse-switch
        0x1 -> :sswitch_f
        0x2 -> :sswitch_1c
        0x3 -> :sswitch_29
        0x4 -> :sswitch_42
        0x5 -> :sswitch_5f
        0x6 -> :sswitch_7b
        0x7 -> :sswitch_8d
        0x8 -> :sswitch_9b
        0x9 -> :sswitch_a9
        0xa -> :sswitch_b7
        0xb -> :sswitch_e1
        0xc -> :sswitch_11b
        0xd -> :sswitch_129
        0xe -> :sswitch_143
        0xf -> :sswitch_16a
        0x10 -> :sswitch_178
        0x5f4e5446 -> :sswitch_8
    .end sparse-switch
.end method
Originally, I took the bold lines from your tutorial that you're supposed to add and put them AFTER the green bold part. that is when i got the bluetooth icon error. Now, I put your code BEFORE the green bold part, and it fixed the bluetooth connected icon error. but, as i said, there is still a problem with the browser notifications disappearing permanently. the orange part is showing another small difference in the code from yours, the switch id was 1a2 in my original code, not 124 like yours, but i don't think this is causing any problems.

so this is how it looks now:

Code:
    .line 235
    :goto_19a
    const/4 v0, 0x1

    goto/16 :goto_7
	
    .end local v1           #_arg0:Ljava/lang/String;
    .end local v2           #_arg1:Ljava/lang/String;
    .end local v3           #_arg2:I
    :sswitch_1a2
    const-string v0, "com.android.internal.statusbar.IStatusBarService"

    invoke-virtual {p2, v0}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    invoke-virtual {p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v1

    .restart local v1       #_arg0:Ljava/lang/String;
    invoke-virtual {p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v2

    .restart local v2       #_arg1:Ljava/lang/String;
    invoke-virtual {p2}, Landroid/os/Parcel;->readInt()I

    move-result v3

    .restart local v3       #_arg2:I
    invoke-virtual {p0, v1, v2, v3}, Lcom/android/internal/statusbar/IStatusBarService$Stub;->onNotificationClear(Ljava/lang/String;Ljava/lang/String;I)V

    invoke-virtual {p3}, Landroid/os/Parcel;->writeNoException()V
	
    const/4 v0, 0x1

    goto/16 :goto_7

    .line 233
    :cond_19d
    const/4 v0, 0x0

    invoke-virtual {p3, v0}, Landroid/os/Parcel;->writeInt(I)V

    goto :goto_19a

    .line 40
    :sswitch_data_13e
    .sparse-switch
        0x1 -> :sswitch_f
        0x2 -> :sswitch_1c
        0x3 -> :sswitch_29
        0x4 -> :sswitch_42
        0x5 -> :sswitch_5f
        0x6 -> :sswitch_7b
        0x7 -> :sswitch_8d
        0x8 -> :sswitch_9b
        0x9 -> :sswitch_a9
        0xa -> :sswitch_b7
        0xb -> :sswitch_e1
        0xc -> :sswitch_11b
        0xd -> :sswitch_129
        0xe -> :sswitch_143
        0xf -> :sswitch_16a
        0x10 -> :sswitch_178
        0x11 -> :sswitch_1a2
        0x5f4e5446 -> :sswitch_8
    .end sparse-switch
.end method
again sorry for cluttering your thread. i can remove it if you want. just curious if anything pops out at you as questionable.

thanks for looking

frescoraja
The Following User Says Thank You to frescoraja For This Useful Post: [ Click to Expand ]
 
hansip87
Old
#287  
Senior Member - OP
Thanks Meter 1478
Posts: 2,089
Join Date: Jan 2011
Location: Jakarta

 
DONATE TO ME
Quote:
Originally Posted by frescoraja View Post
so here is what the original framework.jar IStatusBarService$Stub.smali class looked like (at the end of the file, like in step 2.1 step 4 in your tutorial)

the bold green parts are the lines that don't appear in your tutorial:

Code:
    .line 235
    :goto_19a
    const/4 v0, 0x1

    goto/16 :goto_7

    .line 233
    :cond_19d
    const/4 v0, 0x0

    invoke-virtual {p3, v0}, Landroid/os/Parcel;->writeInt(I)V

    goto :goto_19a

    .line 40
    :sswitch_data_1a2
    .sparse-switch
        0x1 -> :sswitch_f
        0x2 -> :sswitch_1c
        0x3 -> :sswitch_29
        0x4 -> :sswitch_42
        0x5 -> :sswitch_5f
        0x6 -> :sswitch_7b
        0x7 -> :sswitch_8d
        0x8 -> :sswitch_9b
        0x9 -> :sswitch_a9
        0xa -> :sswitch_b7
        0xb -> :sswitch_e1
        0xc -> :sswitch_11b
        0xd -> :sswitch_129
        0xe -> :sswitch_143
        0xf -> :sswitch_16a
        0x10 -> :sswitch_178
        0x5f4e5446 -> :sswitch_8
    .end sparse-switch
.end method
Originally, I took the bold lines from your tutorial that you're supposed to add and put them AFTER the green bold part. that is when i got the bluetooth icon error. Now, I put your code BEFORE the green bold part, and it fixed the bluetooth connected icon error. but, as i said, there is still a problem with the browser notifications disappearing permanently. the orange part is showing another small difference in the code from yours, the switch id was 1a2 in my original code, not 124 like yours, but i don't think this is causing any problems.

so this is how it looks now:

Code:
    .line 235
    :goto_19a
    const/4 v0, 0x1

    goto/16 :goto_7
	
    .end local v1           #_arg0:Ljava/lang/String;
    .end local v2           #_arg1:Ljava/lang/String;
    .end local v3           #_arg2:I
    :sswitch_1a2
    const-string v0, "com.android.internal.statusbar.IStatusBarService"

    invoke-virtual {p2, v0}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    invoke-virtual {p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v1

    .restart local v1       #_arg0:Ljava/lang/String;
    invoke-virtual {p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v2

    .restart local v2       #_arg1:Ljava/lang/String;
    invoke-virtual {p2}, Landroid/os/Parcel;->readInt()I

    move-result v3

    .restart local v3       #_arg2:I
    invoke-virtual {p0, v1, v2, v3}, Lcom/android/internal/statusbar/IStatusBarService$Stub;->onNotificationClear(Ljava/lang/String;Ljava/lang/String;I)V

    invoke-virtual {p3}, Landroid/os/Parcel;->writeNoException()V
	
    const/4 v0, 0x1

    goto/16 :goto_7

    .line 233
    :cond_19d
    const/4 v0, 0x0

    invoke-virtual {p3, v0}, Landroid/os/Parcel;->writeInt(I)V

    goto :goto_19a

    .line 40
    :sswitch_data_13e
    .sparse-switch
        0x1 -> :sswitch_f
        0x2 -> :sswitch_1c
        0x3 -> :sswitch_29
        0x4 -> :sswitch_42
        0x5 -> :sswitch_5f
        0x6 -> :sswitch_7b
        0x7 -> :sswitch_8d
        0x8 -> :sswitch_9b
        0x9 -> :sswitch_a9
        0xa -> :sswitch_b7
        0xb -> :sswitch_e1
        0xc -> :sswitch_11b
        0xd -> :sswitch_129
        0xe -> :sswitch_143
        0xf -> :sswitch_16a
        0x10 -> :sswitch_178
        0x11 -> :sswitch_1a2
        0x5f4e5446 -> :sswitch_8
    .end sparse-switch
.end method
again sorry for cluttering your thread. i can remove it if you want. just curious if anything pops out at you as questionable.

thanks for looking

frescoraja
Thanks for the info Well then again, it's vendor specific coding i suppose.. and if you look at the code, before the :cond_xxx there's always a goto before it so either you puti it before or after shouldn't affect the end result because in both cases, both will go to somewhere else, not following what's the next line after that.
Moving to razr maxx, ray is still around though

Before you ask something about Ray, please READ MY TUTORIAL FIRST!

10in1 Framework Mod for Ray (+ Xperia S theme)

10in1 Framework + SystemUI Mod for ICS

[MOD][ICS&GB][XPERIA 2011]Camera 720p@10Mbps (+100% JPEG in GB)


Freely Given, Freely Give.
May The Most Highest be with you.
 
bigslimoid
Old
#288  
Senior Member
Thanks Meter 9
Posts: 151
Join Date: Jan 2012
I'm watching this thread close seeing as I have the same issue after applying this mod on my inspire 4g
 
frescoraja
Old
#289  
frescoraja's Avatar
Senior Member
Thanks Meter 316
Posts: 530
Join Date: May 2011
Location: Portland, OR

 
DONATE TO ME
Quote:
Originally Posted by hansip87 View Post
Thanks for the info Well then again, it's vendor specific coding i suppose.. and if you look at the code, before the :cond_xxx there's always a goto before it so either you puti it before or after shouldn't affect the end result because in both cases, both will go to somewhere else, not following what's the next line after that.
i know, i don't get why it made a difference either. i can't think of anything else to try now though. i do know so far, that the bug exists for notifications from the stock web browser and dolphin web browser , but it doesn't happen when opera browser is used.

oh well, an ICS rom from a trusted developer just dropped so i probably won't be spending much more time on this.

thanks for all the help and this tutorial
 
Shaaan
Old
#290  
Shaaan's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 3526
Posts: 2,198
Join Date: May 2011
Location: Mumbai

 
DONATE TO ME
Default Help

Well i have been trying this on for a month. I can get the framework to compile but not the systemui. I get errors in the statusbarservice.smali file.

I have attached the edited files. Can someone please help me ?
Attached Files
File Type: zip nSystemUI.apk.zip - [Click for QR Code] (344.6 KB, 1 views)



STARTER'S GUIDE
Like my work ? Press the donate button.!


Tags
notification, remove, statusbar, swipe