Closed aymende7 closed 6 years ago
It is because of wrong patch
how?
do firstpatch and fix all the reject in the same way do the secondpatch and fix all the rejects
i already did the first and second patch but i didn't fix all the rejects can you help me :/
yes i can help send me the reject file and the file which i have to patch
is there any way to clean the patched files i need to start from begging
delete all the files except out,stockrom and metadata :)
ok plz wait Thanks in advance
what about : stockrom.zip makefile patch_bootimg.sh releasetools.py customize_target_files.sh stockrom Folder
yes you are good to go now make workspace
making the first patch this will take some time
ok i made the first patch i have 3 rejects for now making the secondpatch :)
dont make second patch first fix all the rejects of first patch
Ok, sorry I am noob in this stuff
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
OK :D rejects.zip filesTopatch.zip
ok will patch it wait
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
i will fix the second patch rejects tomorrow sorry for delay
thank you very much
ok see you tomorrow :D
i got this after make secondpatch command Reversed (or previously applied) patch detected! Assume -R? [n]
I will fix it wait till tommorow
BTW which phone and rom
ok now should i press y or n to complete the second patch
Galaxy S2 plus Base-Rom Cyanogenmod 13
Port-Rom Miui Marchmellow
Good Night Files2Patch.zip rejectsSecondPatch.zip
yes press y and now i will patch the secondpatch
wow
you are amazing Thank you so much.
Worked?
makaing fullota this will take some time i will tell you once it completed
Ok
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
send me your org.cyanogenmod.platform-res.apk located in stockrom/system/framework you need to decompile it
sorry for the delay org.cyanogenmod.platform-res.apk.zip
put this in your device folder
ok thanks
/home/aymen/bin/patchrom/tools/build_target_files.sh: line 154: ./customize_target_files.sh: Permission denied make: *** [fullota] Error 1 joj
Run "chmod +x customize_target_files.sh" and try again.
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
i think its because you dont have enough space available
2 gb is enough
i have 4.2GB :/ i will try again
tell me how much ram is there in your pc
4gb
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
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)