[Galaxy S Advance I9070 Android Development] Sami Kabir:
Thanks for sharing! I was looking for a way to do this - but I'm glad that you figured it out first!

Unfortunately, I can't recompile my framework.jar after replacing my MediaScanner.smali with yours. This is the error I get:

P:\APKTOOL>apktool b framework framework.jar
I: Checking whether sources has changed...
I: Smaling...
[1148,4] Error for input '.param': Invalid directive
[1300,4] Error for input '.param': Invalid directive
[1301,4] Error for input '.param': Invalid directive
[1302,4] Error for input '.param': Invalid directive
[1303,4] Error for input '.param': Invalid directive
[1304,4] Error for input '.param': Invalid directive
[1782,4] Error for input '.param': Invalid directive
[1795,4] Error for input '.param': Invalid directive
[1796,4] Error for input '.param': Invalid directive
[1797,4] Error for input '.param': Invalid directive
[1798,4] Error for input '.param': Invalid directive
[1809,4] Error for input '.param': Invalid directive
[1810,4] Error for input '.param': Invalid directive
[1825,4] Error for input '.param': Invalid directive
[1826,4] Error for input '.param': Invalid directive
[1841,4] Error for input '.param': Invalid directive
[1852,4] Error for input '.param': Invalid directive
[1873,4] Error for input '.param': Invalid directive
[1884,4] Error for input '.param': Invalid directive
[1885,4] Error for input '.param': Invalid directive
[1900,4] Error for input '.param': Invalid directive
[1911,4] Error for input '.param': Invalid directive
[1922,4] Error for input '.param': Invalid directive
[1935,4] Error for input '.param': Invalid directive
[1946,4] Error for input '.param': Invalid directive
[1957,4] Error for input '.param': Invalid directive
[1968,4] Error for input '.param': Invalid directive
[1979,4] Error for input '.param': Invalid directive
[1980,4] Error for input '.param': Invalid directive
[1991,4] Error for input '.param': Invalid directive
[2002,4] Error for input '.param': Invalid directive
[2013,4] Error for input '.param': Invalid directive
[2014,4] Error for input '.param': Invalid directive
[2025,4] Error for input '.param': Invalid directive
[2036,4] Error for input '.param': Invalid directive
[2047,4] Error for input '.param': Invalid directive
[2048,4] Error for input '.param': Invalid directive
[2059,4] Error for input '.param': Invalid directive
[2070,4] Error for input '.param': Invalid directive
[2081,4] Error for input '.param': Invalid directive
[2098,4] Error for input '.param': Invalid directive
[2099,4] Error for input '.param': Invalid directive
[2114,4] Error for input '.param': Invalid directive
[2115,4] Error for input '.param': Invalid directive
[2130,4] Error for input '.param': Invalid directive
[2147,4] Error for input '.param': Invalid directive
[2158,4] Error for input '.param': Invalid directive
[2169,4] Error for input '.param': Invalid directive
[2170,4] Error for input '.param': Invalid directive
[2181,4] Error for input '.param': Invalid directive
[2182,4] Error for input '.param': Invalid directive
[2183,4] Error for input '.param': Invalid directive
[2194,4] Error for input '.param': Invalid directive
[2205,4] Error for input '.param': Invalid directive
[2216,4] Error for input '.param': Invalid directive
[2233,4] Error for input '.param': Invalid directive
[2250,4] Error for input '.param': Invalid directive
[2261,4] Error for input '.param': Invalid directive
[2272,4] Error for input '.param': Invalid directive
[2273,4] Error for input '.param': Invalid directive
[2411,4] Error for input '.param': Invalid directive
[2555,4] Error for input '.param': Invalid directive
[2556,4] Error for input '.param': Invalid directive
[2607,4] Error for input '.param': Invalid directive
[2704,4] Error for input '.param': Invalid directive
[2870,4] Error for input '.param': Invalid directive
[2981,4] Error for input '.param': Invalid directive
[2982,4] Error for input '.param': Invalid directive
[3080,4] Error for input '.param': Invalid directive
[3081,4] Error for input '.param': Invalid directive
[3264,4] Error for input '.param': Invalid directive
[3318,4] Error for input '.param': Invalid directive
[3319,4] Error for input '.param': Invalid directive
[3887,4] Error for input '.param': Invalid directive
[3888,4] Error for input '.param': Invalid directive
[3937,4] Error for input '.param': Invalid directive
[3938,4] Error for input '.param': Invalid directive
[3939,4] Error for input '.param': Invalid directive
[4090,4] Error for input '.param': Invalid directive
[4091,4] Error for input '.param': Invalid directive
[4092,4] Error for input '.param': Invalid directive
[4093,4] Error for input '.param': Invalid directive
[4094,4] Error for input '.param': Invalid directive
[4327,4] Error for input '.param': Invalid directive
[4328,4] Error for input '.param': Invalid directive
[4742,4] Error for input '.param': Invalid directive
[4743,4] Error for input '.param': Invalid directive
[4744,4] Error for input '.param': Invalid directive
[4745,4] Error for input '.param': Invalid directive
[4746,4] Error for input '.param': Invalid directive
[4989,4] Error for input '.param': Invalid directive
[4990,4] Error for input '.param': Invalid directive
[4991,4] Error for input '.param': Invalid directive
[4992,4] Error for input '.param': Invalid directive
[4993,4] Error for input '.param': Invalid directive
[5525,4] Error for input '.param': Invalid directive
[5612,4] Error for input '.param': Invalid directive
[5731,4] Error for input '.param': Invalid directive
[5986,4] Error for input '.param': Invalid directive
[5987,4] Error for input '.param': Invalid directive
[7025,4] Error for input '.param': Invalid directive
[7026,4] Error for input '.param': Invalid directive
[7027,4] Error for input '.param': Invalid directive
[7028,4] Error for input '.param': Invalid directive
[7403,4] Error for input '.param': Invalid directive
[7404,4] Error for input '.param': Invalid directive
[7405,4] Error for input '.param': Invalid directive
[1148,11] mismatched input 'p1' expecting END_METHOD_DIRECTIVE
[1300,11] mismatched input 'p1' expecting END_METHOD_DIRECTIVE
[1782,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[1795,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[1809,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[1825,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[1841,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[1852,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[1873,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[1884,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[1900,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[1911,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[1922,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[1935,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[1946,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[1957,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[1968,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[1979,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[1991,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2002,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2013,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2025,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2036,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2047,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2059,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2070,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2081,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2098,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2114,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2130,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2147,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2158,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2169,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2181,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2194,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2205,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2216,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2233,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2250,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2261,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2272,11] mismatched input 'p1' expecting END_METHOD_DIRECTIVE
[2411,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2555,11] mismatched input 'p1' expecting END_METHOD_DIRECTIVE
[2607,11] mismatched input 'p1' expecting END_METHOD_DIRECTIVE
[2704,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2870,11] mismatched input 'p0' expecting END_METHOD_DIRECTIVE
[2981,11] mismatched input 'p1' expecting END_METHOD_DIRECTIVE
[3080,11] mismatched input 'p1' expecting END_METHOD_DIRECTIVE
[3264,11] mismatched input 'p1' expecting END_METHOD_DIRECTIVE
[3271,4] missing EOF at '.prologue'
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file
: P:\APKTOOL\framework\smali\android\media\MediaScanner.smali
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:66)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:37)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:257)
at brut.androlib.Androlib.buildSources(Androlib.java:214)
at brut.androlib.Androlib.build(Androlib.java:205)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)

If you don't mind, can you please share your framework.jar with me/us?