MiCode / patchrom

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

Bootloop plz help #130

Closed aymende7 closed 6 years ago

aymende7 commented 7 years ago

i got this after fullota command plz help me Ubuntu 14.04 64bit java version "9-ea" Java(TM) SE Runtime Environment (build 9-ea+162) Java HotSpot(TM) 64-Bit Server VM (build 9-ea+162, mixed mode)

/home/aymen/bin/patchrom/tools/apktool --quiet b out/framework -o out/framework.jar Exception in thread "main" brut.androlib.AndrolibException: java.util.concurrent.ExecutionException: java.lang.NullPointerException at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:129) at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:69) at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:376) at brut.androlib.Androlib.buildSources(Androlib.java:335) at brut.androlib.Androlib.build(Androlib.java:292) at brut.androlib.Androlib.build(Androlib.java:268) at brut.apktool.Main.cmdBuild(Main.java:224) at brut.apktool.Main.main(Main.java:84) Caused by: java.util.concurrent.ExecutionException: java.lang.NullPointerException at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:124) ... 7 more Caused by: java.lang.NullPointerException at org.jf.dexlib2.writer.pool.PoolClassDef.(PoolClassDef.java:59) at org.jf.dexlib2.writer.pool.ClassPool.intern(ClassPool.java:88) at brut.androlib.src.SmaliBuilder$1.call(SmaliBuilder.java:116) at brut.androlib.src.SmaliBuilder$1.call(SmaliBuilder.java:94) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1161) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:844)

WarrenLobo commented 7 years ago

It is because of wrong patch

aymende7 commented 7 years ago

how?

WarrenLobo commented 7 years ago

do firstpatch and fix all the reject in the same way do the secondpatch and fix all the rejects

aymende7 commented 7 years ago

i already did the first and second patch but i didn't fix all the rejects can you help me :/

WarrenLobo commented 7 years ago

yes i can help send me the reject file and the file which i have to patch

aymende7 commented 7 years ago

is there any way to clean the patched files i need to start from begging

WarrenLobo commented 7 years ago

delete all the files except out,stockrom and metadata :)

aymende7 commented 7 years ago

ok plz wait Thanks in advance

aymende7 commented 7 years ago

what about : stockrom.zip makefile patch_bootimg.sh releasetools.py customize_target_files.sh stockrom Folder

WarrenLobo commented 7 years ago

yes you are good to go now make workspace

aymende7 commented 7 years ago

making the first patch this will take some time

aymende7 commented 7 years ago

ok i made the first patch i have 3 rejects for now making the secondpatch :)

WarrenLobo commented 7 years ago

dont make second patch first fix all the rejects of first patch

aymende7 commented 7 years ago

Ok, sorry I am noob in this stuff

WarrenLobo commented 7 years ago

no problem now clean it and make first patch and upload the rejects and the file that i have to patch i will fix it tommorow morning now its too late night

aymende7 commented 7 years ago

OK :D rejects.zip filesTopatch.zip

WarrenLobo commented 7 years ago

ok will patch it wait

WarrenLobo commented 7 years ago

patchgithub.zip i fixed all the firstpatch rejects now run second patch and upoad here the rejects now i its too late now here in india

WarrenLobo commented 7 years ago

i will fix the second patch rejects tomorrow sorry for delay

aymende7 commented 7 years ago

thank you very much

aymende7 commented 7 years ago

ok see you tomorrow :D

aymende7 commented 7 years ago

i got this after make secondpatch command Reversed (or previously applied) patch detected! Assume -R? [n]

WarrenLobo commented 7 years ago

I will fix it wait till tommorow

WarrenLobo commented 7 years ago

BTW which phone and rom

aymende7 commented 7 years ago

ok now should i press y or n to complete the second patch

aymende7 commented 7 years ago

Galaxy S2 plus Base-Rom Cyanogenmod 13

aymende7 commented 7 years ago

Port-Rom Miui Marchmellow

aymende7 commented 7 years ago

Good Night Files2Patch.zip rejectsSecondPatch.zip

WarrenLobo commented 7 years ago

yes press y and now i will patch the secondpatch

WarrenLobo commented 7 years ago

secondpatchfixed.zip

aymende7 commented 7 years ago

wow

aymende7 commented 7 years ago

you are amazing Thank you so much.

WarrenLobo commented 7 years ago

Worked?

aymende7 commented 7 years ago

makaing fullota this will take some time i will tell you once it completed

WarrenLobo commented 7 years ago

Ok

aymende7 commented 7 years ago

build out/org.cyanogenmod.platform.jar...

@ rm -rf out/org.cyanogenmod.platform.jar.out

cp: cannot stat ‘org.cyanogenmod.platform.jar.out’: No such file or directory make: *** [out/org.cyanogenmod.platform.jar] Error 1

WarrenLobo commented 7 years ago

send me your org.cyanogenmod.platform-res.apk located in stockrom/system/framework you need to decompile it

aymende7 commented 7 years ago

sorry for the delay org.cyanogenmod.platform-res.apk.zip

WarrenLobo commented 7 years ago

org.cyanogenmod.platform.jar.out.zip

WarrenLobo commented 7 years ago

put this in your device folder

aymende7 commented 7 years ago

ok thanks

aymende7 commented 7 years ago

/home/aymen/bin/patchrom/tools/build_target_files.sh: line 154: ./customize_target_files.sh: Permission denied make: *** [fullota] Error 1 joj

WarrenLobo commented 7 years ago
Run "chmod +x customize_target_files.sh" and try again. 
aymende7 commented 7 years ago

done. Build full ota package: /home/aymen/bin/patchrom/device/out/fullota.zip unzipping target target-files... loaded device-specific extensions from /home/aymen/bin/patchrom/device using prebuilt boot.img from BOOTABLE_IMAGES... [MIUI CUST] OTA: copy data files [MIUI CUST] OTA: SetPermissions org.bouncycastle.cms.CMSException: data processing exception: java.io.IOException: No space left on device at org.bouncycastle.cms.CMSSignedDataGenerator.generate(CMSSignedDataGenerator.java:165) at com.android.signapk.SignApk.writeSignatureBlock(SignApk.java:451) at com.android.signapk.SignApk.access$500(SignApk.java:105) at com.android.signapk.SignApk$CMSSigner.writeSignatureBlock(SignApk.java:669) at com.android.signapk.SignApk.signWholeFile(SignApk.java:693) at com.android.signapk.SignApk.main(SignApk.java:921) Caused by: java.io.IOException: java.io.IOException: No space left on device at com.android.signapk.SignApk$CMSSigner.write(SignApk.java:660) at org.bouncycastle.cms.CMSSignedDataGenerator.generate(CMSSignedDataGenerator.java:159) ... 5 more Caused by: java.io.IOException: No space left on device at java.base/java.io.FileOutputStream.writeBytes(Native Method) at java.base/java.io.FileOutputStream.write(FileOutputStream.java:328) at com.android.signapk.SignApk$WholeFileSignerOutputStream.write(SignApk.java:585) at java.base/java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:253) at java.base/java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:211) at java.base/java.util.zip.ZipOutputStream.write(ZipOutputStream.java:330) at com.android.signapk.SignApk.copyFiles(SignApk.java:538) at com.android.signapk.SignApk.access$200(SignApk.java:105) at com.android.signapk.SignApk$CMSSigner.write(SignApk.java:647) ... 6 more

ERROR: signapk.jar failed: return code 1

make: *** [fullota] Error 1

WarrenLobo commented 7 years ago

i think its because you dont have enough space available

WarrenLobo commented 7 years ago

2 gb is enough

aymende7 commented 7 years ago

i have 4.2GB :/ i will try again

WarrenLobo commented 7 years ago

tell me how much ram is there in your pc

aymende7 commented 7 years ago

4gb

aymende7 commented 7 years ago

done. Build full ota package: /home/aymen/bin/patchrom/device/out/fullota.zip unzipping target target-files... loaded device-specific extensions from /home/aymen/bin/patchrom/device using prebuilt boot.img from BOOTABLE_IMAGES... [MIUI CUST] OTA: copy data files [MIUI CUST] OTA: SetPermissions done. <<< build target file completed! :D