MiCode / patchrom

Use disassemble/assemble technology to porting miui to misc android devices
http://micode.net/forum-55-1.html
493 stars 370 forks source link

make full ota failed ->Service.jar > double label #94

Open uzushikakujin opened 9 years ago

uzushikakujin commented 9 years ago

hi.. can you help me with that error this the log error

uzu@None:~/patchrom/ac2$ make fullota

build out/services.jar... /home/uzu/patchrom/tools/overlay_smali.sh >/dev/null out/services /home/uzu/patchrom/android/overlay /home/uzu/patchrom/tools/add_miui_smail.sh >/dev/null out/services_miui out/services /home/uzu/patchrom/tools/apktool --quiet b out/services -o out/services.jar out/services/smali/com/android/server/ConnectivityService$CheckMp.smali[2175,4] There is already a label with that name. Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/server/ConnectivityService$CheckMp.smali at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71) at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55) at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41) at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:354) at brut.androlib.Androlib.buildSources(Androlib.java:294) at brut.androlib.Androlib.build(Androlib.java:280) at brut.androlib.Androlib.build(Androlib.java:255) at brut.apktool.Main.cmdBuild(Main.java:225) at brut.apktool.Main.main(Main.java:84) /home/uzu/patchrom/build/porting.mk:331: recipe for target 'out/services.jar' failed make: *\ [out/services.jar] Error 1

and then i deleted that line and get the another error :(

uzu@None:~/patchrom/ac2$ make fullota

build out/services.jar... /home/uzu/patchrom/tools/overlay_smali.sh >/dev/null out/services /home/uzu/patchrom/android/overlay /home/uzu/patchrom/tools/add_miui_smail.sh >/dev/null out/services_miui out/services /home/uzu/patchrom/tools/apktool --quiet b out/services -o out/services.jar Exception in thread "main" java.lang.IllegalStateException: Cannot get the location of a label that hasn't been placed yet. at org.jf.dexlib2.builder.Label.getLocation(Label.java:54) at org.jf.dexlib2.builder.Label.getCodeAddress(Label.java:48) at org.jf.dexlib2.builder.BuilderTryBlock.getStartCodeAddress(BuilderTryBlock.java:71) at org.jf.dexlib2.writer.util.TryListBuilder.massageTryBlocks(TryListBuilder.java:65) at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:893) at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:769) at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:222) at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:200) at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:57) at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41) at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:354) at brut.androlib.Androlib.buildSources(Androlib.java:294) at brut.androlib.Androlib.build(Androlib.java:280) at brut.androlib.Androlib.build(Androlib.java:255) at brut.apktool.Main.cmdBuild(Main.java:225) at brut.apktool.Main.main(Main.java:84) /home/uzu/patchrom/build/porting.mk:331: recipe for target 'out/services.jar' failed make: *\ [out/services.jar] Error 1

this a smali files https://www.dropbox.com/s/1nksfenq069dt6z/ConnectivityService%24CheckMp.smali?dl=0

how to fix that error ?/ sorry for my bad english :)