yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] hansip87:
Sorry can't help you more maanz.. I too am confused by your error. Its error is about NameNotFoundException, but i don't know where to solve that. My best tips is only by redo the mod all over but it won't help much i guess if you have redone it too often.
[Android Software/Hacking General [Developers Only]] maanz "L":
thanks sir.. I've not been here for a while. and I've not edited since we PMed. so, I just post it here for others to see and help me...;) should I redo only the systemUI.apk? what is the most common error or lines that causes the error?:confused: anybody? thanks...
[Android Software/Hacking General [Developers Only]] hansip87:
Already solved with maanz. ;)
[Android Software/Hacking General [Developers Only]] Jimboi2008:
Can anybody make one for lg o2x
[Android Software/Hacking General [Developers Only]] maanz "L":
Solved...;)
[Android Software/Hacking General [Developers Only]] shuttleu:
help

i think i have extracted framework.jar with baskali and SystemUI.apk apk multi-tool

but when i go to edit any of the xml files they all show up with a load of null characters

for example, this is my status_bar_latest_event.xml (see attached)

i dont think this is how it is supposed to be, if not can someone help me on extracting the apk please?
[Android Software/Hacking General [Developers Only]] shuttleu:
Thanks!!!

i got it working, after everything compiled fine i had trouble pushing the files to the device, turns out i couldn't replace the system files through recovery using a zip :(

in the end i used adb
[Android Software/Hacking General [Developers Only]] hansip87:
Wow first try and it already works 4 u.. :cool: glad you succeed :)
[Android Software/Hacking General [Developers Only]] samyam2002000:
Thanks

Thanks man it worked for me on first try. woohoo:)
[Android Software/Hacking General [Developers Only]] henrik.dk:
please share the solution here. I got the same problem even without any modification but just extract/zip it.
[Android Software/Hacking General [Developers Only]] comnam90:
Hey guys, firstly i love the idea of this mod!

Now i'm working on an SGS1 with JW4 firmware, but i have hit a wall in StatusBarService.smali in SystemUI.apk

When compiling I get

Can you help?
[Android Software/Hacking General [Developers Only]] pantrif13:
You most probably have missed this part.
[Android Software/Hacking General [Developers Only]] comnam90:
Thanks!!!!

---------- Post added at 10:07 PM ---------- Previous post was at 09:46 PM ----------

Stuck once more :(

Framework.jar this time, IStatusBarService$Stub.smaile

compiling it says
[Android Software/Hacking General [Developers Only]] pantrif13:
From the tutorial the parts you must pay attention (big letters for easy reading :P) :

.line 176
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
[B] [SIZE="6"] :sswitch_124[/SIZE][/B]
const-string v0, "com.android.internal.statusbar.IStatusBarService"

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

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

move-result-object v1

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

move-result-object v2

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

move-result v3

.line 180
.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

.line 181
invoke-virtual {p3}, Landroid/os/Parcel;->writeNoException()V

.line 182
const/4 v0, 0x1

goto/16 :goto_7

.line 39
[B][SIZE="6"] :sswitch_data_13e[/SIZE][/B]
.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_c7
0x9 -> :sswitch_d5
0xa -> :sswitch_ef
0xb -> :sswitch_116
[SIZE="6"][B] 0xc -> :sswitch_124[/B][/SIZE]
0x5f4e5446 -> :sswitch_8
.end sparse-switch
[Android Software/Hacking General [Developers Only]] frescoraja:
so after creating this mod for the SGS2 hercules (tmobile USA), i noticed that after downloading something with the stock browser a notification appears like normal. but if i swipe this notification away, it keeps coming back at random times, until i finally press on it or click "clear". this is the only time i've noticed this happening, it doesn't seem to occur with notifications from other apps. can anyone explain why this might be happening?

thanks

!

frescoraja
[Android Software/Hacking General [Developers Only]] loSconosciuto:
Hi hansip87, thanks for this great tutorial, it's well explained and easy to follow.

I succesfully ported this mod to my phone, but I want to make sure about a little thing and I would like to see the original smali/com/android/internal/statusbar/IStatusBarService$Stub.smali.

Could you please upload it somewhere?

I don't need it :D

Thanks again.

___

EDIT:

Is it normal that while you are swiping, if you go beyond the upper or lower notification border, the notification immediately goes back to its initial position?
[Android Software/Hacking General [Developers Only]] hansip87:
For those who wonder about the unresponsive swipe, it is caused by limitation of the code. To reduce it, you can reduce the anim start drag value from 100% to 50%.
[Android Software/Hacking General [Developers Only]] bigslimoid:
Are you willing to share the two modded xml filed?
[Android Software/Hacking General [Developers Only]] Mirko ddd:
huh I did ;) The codes I wrote are the whole 2 anim file.

Anyway if I remember good someone else did the same.

here the xml files
[Android Software/Hacking General [Developers Only]] bigslimoid:
Thanks for the link again.

I have a fully working systemui.apk with the swipe to clear mod. But, prior to applying the mods I had my wallpaper as the background in the pulldown, and as the background in the quick setting. Now after I have the white background. My wallpaper is still in the Res/drawable-hdpi with the same name as b4. Question is does the mod change where the systemui pulls its background. From?
[Android Software/Hacking General [Developers Only]] frescoraja:
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
[Android Software/Hacking General [Developers Only]] hansip87:
It's more because of the incomplete decompilation and recompilation. The only fix is to wait brut.all new version of apktool.jar..
[Android Software/Hacking General [Developers Only]] Ticklefish:
Well, this is very clever. :)

Is there anyway to do this on 2.1?
[Android Software/Hacking General [Developers Only]] frescoraja:
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
[Android Software/Hacking General [Developers Only]] hansip87:
Umm.. What lines did you found? I didn't realize it :o

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.
[Android Software/Hacking General [Developers Only]] frescoraja:
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:

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

goto/16 :goto_7

[B][COLOR="DarkGreen"] .line 233
:cond_19d
const/4 v0, 0x0

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

goto :goto_19a[/COLOR][/B]

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

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

goto/16 :goto_7

[B].end local v1 #_arg0:Ljava/lang/String;
.end local v2 #_arg1:Ljava/lang/String;
.end local v3 #_arg2:I
[COLOR="DarkOrange"]:sswitch_1a2[/COLOR]
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[/B]

.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
[COLOR="DarkOrange"]0x11 -> :sswitch_1a2[/COLOR]
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
[Android Software/Hacking General [Developers Only]] hansip87:
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.
[Android Software/Hacking General [Developers Only]] bigslimoid:
I'm watching this thread close seeing as I have the same issue after applying this mod on my inspire 4g
[Android Software/Hacking General [Developers Only]] frescoraja:
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
[Android Software/Hacking General [Developers Only]] Shaaan:
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 ?

:o
[Android Software/Hacking General [Developers Only]] xDa.Fun:
Seems good, i have tried for Samsung Infuse 4G but not succeeded :rolleyes:
[Android Software/Hacking General [Developers Only]] stuffynet:
Will try for my i9001. THX;)
[Android Software/Hacking General [Developers Only]] Robobob1221:
BOOM!!

Finally got it to work. Man, a lot of reading but it all eventually clicked into place.

Thanks for this tut, and the addendums to make it work on the og evo!
[Android Software/Hacking General [Developers Only]] xIC-MACIx:
EDIT: Got it working actually; only problem is when the notification is swiped, it freezes on the edge(doesn't fully swipe away). Oh and for some weird ass reason, the status bar glows green sometimes and persists until a reboot?? Lol

A few questions for anyone that can help me out; I have a Sammy phone and it's loaded w/ extra code so these smali mods are never copy/paste for me lol...

The whole ".line xxx" thing throws me off a bit; how important are the line #s? And how do I know what number to put when inserting new code? (Such as when they are not in order)

My Transaction switch stmnt has 17 fields, the last one being ".field static final TRANSACTION_showCallView:I = 0x7" Now, this means that the NotificationError field is not the last field, do I use 0x7 or the Notif Error when editing the proxy smali file in frame?

One last thing, LeoMar's Samsung SysUI xml uses v7 variable; the framework edits in OP uses lots of v2 variables, how many (if any) need to be changed to v7 in framework.jar?

Thanks for any help you guys can provide, I'm just trying to fill in some blanks in my Smali know-how :D
[Android Software/Hacking General [Developers Only]] Robobob1221:
Is there's anyone out there who can answer? So I've got the swipe to clear working however it seems to have caused ongoing notifications to be cleared when selected. They can't be swiped but if for example power amp is running and I select it, it gets cleared until I choose a new track in app. What needs to be changed to stop this?

Sent from my PC36100
[Android Software/Hacking General [Developers Only]] GeekSpin:
can some one plzz help me i am fed up by editing it time and time again

plzz can someone help

here is my fileshttps://www.dropbox.com/s/kbdpmeppy2njqm1/coder_swype.zip

thanx
[Android Software/Hacking General [Developers Only]] Robobob1221:
what device is it for? I thought ICS already had this?

Sent you a PM
[Android Software/Hacking General [Developers Only]] M_J_Nazari:
not works......
[Android Software/Hacking General [Developers Only]] Robobob1221:
What is your phone?

Did you check the addendum posts for htc and samsung phones?

私はローボーボブ。 Haro！！
[Android Software/Hacking General [Developers Only]] MatZ69:
This really works but i have a small problem.

I have a transparent statusbar but with this mod it simple goes back to black and some times the date is behind my clock and and icons are all overlapped, what i'm doing wrong and what i cold do to fix it?

Thansk in advance
[Android Software/Hacking General [Developers Only]] comnam90:
Running into a problem when compiling systemui.apk. I'm working on i9000 JW4 firmware.

I: Checking whether sources has changed...

I: Smaling...

Exception in thread "main" java.lang.NullPointerException

at org.jf.util.PathUtil.getRelativeFile(PathUtil.java:44)

at org.jf.smali.smaliFlexLexer.getSourceName(smaliFlexLexer.java:2569)

at org.antlr.runtime.CommonTokenStream.getSourceName(CommonTokenStream.java:345)

at org.antlr.runtime.Parser.getSourceName(Parser.java:88)

at org.jf.smali.smaliParser.getErrorHeader(smaliParser.java:324)

at org.antlr.runtime.BaseRecognizer.displayRecognitionError(BaseRecognizer.java:192)

at org.antlr.runtime.BaseRecognizer.reportError(BaseRecognizer.java:186)

at org.jf.smali.smaliParser.method_name(smaliParser.java:3670)

at org.jf.smali.smaliParser.fully_qualified_method(smaliParser.java:6454)

at org.jf.smali.smaliParser.instruction(smaliParser.java:10735)

at org.jf.smali.smaliParser.statements_and_directives(smaliParser.java:1790)

at org.jf.smali.smaliParser.method(smaliParser.java:1572)

at org.jf.smali.smaliParser.smali_file(smaliParser.java:561)

at brut.androlib.mod.SmaliMod.assembleSmaliFile(SmaliMod.java:71)

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:43)

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)

at brut.androlib.Androlib.buildSources(Androlib.java:179)

at brut.androlib.Androlib.build(Androlib.java:170)

at brut.androlib.Androlib.build(Androlib.java:154)

at brut.apktool.Main.cmdBuild(Main.java:174)

at brut.apktool.Main.main(Main.java:59)
[Android Software/Hacking General [Developers Only]] comnam90:
sorry this is the apktool error:

I: Checking whether sources has changed...

I: Smaling...

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: java.io.FileInputStream@46c837cd

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)

at brut.androlib.Androlib.buildSources(Androlib.java:179)

at brut.androlib.Androlib.build(Androlib.java:170)

at brut.androlib.Androlib.build(Androlib.java:154)

at brut.apktool.Main.cmdBuild(Main.java:174)

at brut.apktool.Main.main(Main.java:59)
[Android Software/Hacking General [Developers Only]] Shaaan:
Can you use apk multitool and post contents of its log file?

That will be way better.
[Android Software/Hacking General [Developers Only]] comnam90:
--------------------------------------------------------------------------

|Mon 11/06/2012 -- 13:28:48.83|

--------------------------------------------------------------------------

java version "1.6.0_20"

Java(TM) SE Runtime Environment (build 1.6.0_20-b02)

Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)

'adb' is not recognized as an internal or external command,

operable program or batch file.

Could Not Find E:\apk manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedunsignedSystemUI(2).apk

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Loading resource table from file: C:\Users\Ben\apktool\framework\1.apk

I: Loaded.

I: Decoding file-resources...

I: Decoding values*/* XMLs...

I: Done.

I: Copying assets and libs...

I: Checking whether sources has changed...

I: Smaling...

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: java.io.FileInputStream@716c9867

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)

at brut.androlib.Androlib.buildSources(Androlib.java:179)

at brut.androlib.Androlib.build(Androlib.java:170)

at brut.androlib.Androlib.build(Androlib.java:154)

at brut.apktool.Main.cmdBuild(Main.java:174)

at brut.apktool.Main.main(Main.java:59)
[Android Software/Hacking General [Developers Only]] DocHoliday77:
Have you tried compiling after each individual smali edit? This way you will at least know which file is causing the problem. IF I am remembering right, I got the same/similar error on LatestItemContainer$1. See my post a few above.
[Android Software/Hacking General [Developers Only]] comnam90:
solved systemui issues. Now have one error on framework.jar

When compiling I get

Which refers to this
[Android Software/Hacking General [Developers Only]] comnam90:
Ok so now phone boots, no systemui FC, that is until I swipe something away, and then I get FC

Log: https://dl.dropbox.com/u/23356668/swipe to clear/dumpstate_app_error.txt

framework: https://dl.dropbox.com/u/23356668/swipe to clear/framework.jar

systemui: https://dl.dropbox.com/u/23356668/swipe to clear/SystemUI.apk
[Android Software/Hacking General [Developers Only]] MatZ69:
Can someone help me? :$
[Android Software/Hacking General [Developers Only]] Robobob1221:
You might have done something wrong in your status bar layout.xml
[Android Software/Hacking General [Developers Only]] Shaaan:
He said statusbarlayout.xml not statusbar.xml
[Android Software/Hacking General [Developers Only]] Robobob1221:
You got a screenshot of the date behind the clock? when does it happen?

Comparing you're xml to mine

<LinearLayout [COLOR="Red"]android:gravity="center"[/COLOR] android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">

After the clock linear layout this line, maybe try removing the android:gravity=centre. It might fix the overlapping icons
[Android Software/Hacking General [Developers Only]] MatZ69:
Where it is?

Yh, it is what want to know... what im doing wrong...

Without this modification, it would be like this screenshots:
[Android Software/Hacking General [Developers Only]] Robobob1221:
Sorry I meant the statusbar latest event you edited.
[Android Software/Hacking General [Developers Only]] MatZ69:
It doest work, now i'm with no statusbar x)

the last event is like this:

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.LatestItemContainer android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="70.0sp"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.systemui.statusbar.LatestItemView android:textColor="#ffffffff" android:id="@id/content" android:background="@android:drawable/status_bar_item_background" android:paddingRight="6.0sp" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="70.0sp" />
</com.android.systemui.statusbar.LatestItemContainer>

can be this wrong?

android:background="@android:drawable/status_bar_item_background
[Android Software/Hacking General [Developers Only]] Shaaan:
That line defines the position of the clock. If it it removed you will get a fc
[Android Software/Hacking General [Developers Only]] MatZ69:
But i didn't removed it from the clock... I removed from the following code line... Where are the android:id="@id/icons"