[Miscellaneous Android Development] uri.livnat:
Error when trying to compile the modified code

Hi,

Thanks for helping bringing the Hebrew to more android phones.

I followed your instruction (the phone model is p05-i9070) my code is odex. when trying to compile the framework.odex file i get errors when using the smali.

The errors are on the files I either edited (canvas.smali) or the new files I placed in the text/util folder.

Any help is welcome

below is some examples of the errors I get:

..\..\uri\android\graphics\Canvas.smali[1786,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[1904,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[1905,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[1904,15] mismatched input '"text"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\graphics\Canvas.smali[1906,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[1907,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[1908,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[1909,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[1964,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[1965,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[1964,15] mismatched input '"text"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\graphics\Canvas.smali[1966,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[1967,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[1968,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[1969,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[2026,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[2027,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[2026,15] mismatched input '"text"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\graphics\Canvas.smali[2028,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[2029,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[2030,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[2069,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[2070,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[2069,15] mismatched input '"text"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\graphics\Canvas.smali[2071,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[2072,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[2073,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[2074,4] Error for input '.parameter': Invalid directive

..\..\uri\android\graphics\Canvas.smali[2075,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\ArabicShaper.smali[32,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\ArabicShaper.smali[33,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\ArabicShaper.smali[32,15] mismatched input '"chs"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\text\util\ArabicShaper.smali[34,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\ArabicShaper.smali[35,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\ArabicShaper.smali[85,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\ArabicShaper.smali[86,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\ArabicShaper.smali[85,15] mismatched input '"chs"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\text\util\ArabicShaper.smali[87,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\ArabicShaper.smali[88,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[19,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[20,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[19,15] mismatched input '"text"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\text\util\RTLTextUtils.smali[21,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[74,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[75,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[74,15] mismatched input '"text"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\text\util\RTLTextUtils.smali[76,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[127,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[128,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[127,15] mismatched input '"text"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\text\util\RTLTextUtils.smali[129,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[182,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[183,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[182,15] mismatched input '"text"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\text\util\RTLTextUtils.smali[184,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[235,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[235,15] mismatched input '"c"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\text\util\RTLTextUtils.smali[288,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[288,15] mismatched input '"c"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\text\util\RTLTextUtils.smali[350,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[350,15] mismatched input '"src"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\text\util\RTLTextUtils.smali[377,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[378,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[377,15] mismatched input '"src"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\text\util\RTLTextUtils.smali[379,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[414,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[414,15] mismatched input '"src"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\text\util\RTLTextUtils.smali[439,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[440,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[439,15] mismatched input '"src"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\text\util\RTLTextUtils.smali[441,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[468,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[469,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[468,15] mismatched input '"src"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\text\util\RTLTextUtils.smali[470,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[548,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[548,15] mismatched input '"src"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\text\util\RTLTextUtils.smali[575,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[576,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[575,15] mismatched input '"src"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\text\util\RTLTextUtils.smali[577,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[612,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[612,15] mismatched input '"src"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\text\util\RTLTextUtils.smali[637,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[638,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[637,15] mismatched input '"src"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\text\util\RTLTextUtils.smali[639,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[666,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[667,4] Error for input '.parameter': Invalid directive

..\..\uri\android\text\util\RTLTextUtils.smali[666,15] mismatched input '"src"' expecting END_METHOD_DIRECTIVE

..\..\uri\android\text\util\RTLTextUtils.smali[668,4] Error for input '.parameter': Invalid directive