Deodex error - Galaxy S II Q&A, Help & Troubleshooting

any help on this
NOW AT FILE 34 OF 34 IN system/framework: twframework.odex
Disassembling twframework.odex ...
java -Xmx512m -jar baksmali.jar -a 10 -d ../framework -x twframework.odex
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: regCount does not match the number of arguments of the method
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithContext.java:54)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:92)
at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)
at org.jf.dexlib.Item.readFrom(Item.java:76)
at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)
at org.jf.dexlib.Section.readFrom(Section.java:143)
at org.jf.dexlib.DexFile.<init>(DexFile.java:431)
at org.jf.baksmali.main.main(main.java:265)
Caused by: java.lang.RuntimeException: regCount does not match the number of arguments of the method
at org.jf.dexlib.Code.Format.Instruction35c.checkItem(Instruction35c.java:160)
at org.jf.dexlib.Code.Format.Instruction35c.<init>(Instruction35c.java:93)
at org.jf.dexlib.Code.Format.Instruction35c$Factory.makeInstruction(Instruction35c.java:167)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:84)
... 6 more
Error occured at code address 0
code_item @0x1cf58
-> Using brute-force method (ignore above error if successful):
Disassembling twframework.odex ...
java -Xmx512m -jar baksmali.jar -a 10 -d ../framework -c :am.jar:android.policy.jar:android.test.runner.jar:apache-xml.jar:bmgr.jar:bouncycastle.jar:bu.jar:com.android.future.usb.accessory.jar:com.android.location.provider.jar:com.google.android.maps.jar:com.google.android.media.effects.jar:com.google.widevine.software.drm.jar:com.samsung.device.jar:com.yamaha.android.media.jar:core.jar:core-junit.jar:ext.jar:filterfw.jar:framework2.jar:framework.jar:GlobalConfig.jar:ime.jar:input.jar:javax.obex.jar:libvtmanagerjar.jar:minimode.jar:monkey.jarm.jar:seccamera.jar:sec_feature.jar:secframework.jar:sechardware.jar:secmediarecorder.jar:send_bug.jar:services.jar:svc.jar:twframework.jar -x twframework.odex
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: regCount does not match the number of arguments of the method
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithContext.java:54)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:92)
at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)
at org.jf.dexlib.Item.readFrom(Item.java:76)
at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)
at org.jf.dexlib.Section.readFrom(Section.java:143)
at org.jf.dexlib.DexFile.<init>(DexFile.java:431)
at org.jf.baksmali.main.main(main.java:265)
Caused by: java.lang.RuntimeException: regCount does not match the number of arguments of the method
at org.jf.dexlib.Code.Format.Instruction35c.checkItem(Instruction35c.java:160)
at org.jf.dexlib.Code.Format.Instruction35c.<init>(Instruction35c.java:93)
at org.jf.dexlib.Code.Format.Instruction35c$Factory.makeInstruction(Instruction35c.java:167)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:84)
... 6 more
Error occured at code address 0
code_item @0x1cf58
ERROR: Aborting twframework.odex
Finished system/framework
Could not deodex the following (you can try to deodex these files again):
am.odex android.policy.odex android.test.runner.odex apache-xml.odex bmgr.odex bouncycastle.odex bu.odex com.android.future.usb.accessory.odex com.android.location.provider.odex com.google.widevine.software.drm.odex com.yamaha.android.media.odex core-junit.odex core.odex ext.odex filterfw.odex framework2.odex framework.odex GlobalConfig.odex ime.odex input.odex javax.obex.odex libvtmanagerjar.odex minimode.odex monkey.odex pm.odex seccamera.odex sec_feature.odex secframework.odex sechardware.odex secmediarecorder.odex send_bug.odex services.odex svc.odex twframework.odex
Click to expand...
Click to collapse

can anyone help?

API level for ICS apk's need to be set @ 14
Sent from my GT-I9100 using xda premium

UpInTheAir said:
API level for ICS apk's need to be set @ 14
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
how and where to do that

Arjav23 said:
how and where to do that
Click to expand...
Click to collapse
the syntax is java -jar baksmali.jar -a <api_level> -x <odex_file> -d <framework_dir>
so you should use -a 14
hope this helps

HeD_pE said:
the syntax is java -jar baksmali.jar -a -x -d
so you should use -a 14
hope this helps
Click to expand...
Click to collapse
I actually need for froyo which is a 8
But where do I add or modify that part??
Sent from my GT-I5800 using xda premium

Related

Unable to deodex SystemUI.odex

I have not been able to deodex the SystemUI.odex to be able to modify smali, I always get the below error. I've been able to successfully deodex the Settings.odex, but every SystemUI.odex I've tried always gives me the same error. I was originally using baksmali-1.3.0, then tried 1.3.2 and even tried a 1.3.3 jar that m!k3 over in the One S forums compiled, but all give the same result. Anyone know how to get around this error?
C:\Android Stuff\Phones\EVO LTE\working1>baksmali -d framework -x SystemUI.odex
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoun dException: Could not find superclass Lcom/htc/fusion/fx/MessageListener;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loa dSuperclass(ClassPath.java:832)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<in it>(ClassPath.java:685)
at org.jf.dexlib.Code.Analysis.ClassPath.loadClassDef (ClassPath.java:282)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPat h(ClassPath.java:163)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeCl assPathFromOdex(ClassPath.java:110)
at org.jf.baksmali.baksmali.disassembleDexFile(baksma li.java:104)
at org.jf.baksmali.main.main(main.java:293)
Error while loading class Lcom/android/systemui/recent/RecentAppFxActivity$10; from file SystemUI.odex
Error while loading ClassPath class Lcom/android/systemui/recent/RecentAppFxActivity$10;
I suggest to you that you use this pack for deodex...
or use the baksmali.jar inside...is better and works fine for me with my cellular.
first copy the entire folder from your \system\framework to the same path of the baksmali.jar
and use this command to deodex
java -Xmx1024m -jar baksmali.jar -c :framework.jar -x SystemUI.odex
java -Xmx1024m -jar smali.jar out -o classes.dex
http://forum.xda-developers.com/showthread.php?t=1208320
debarron said:
I have not been able to deodex the SystemUI.odex to be able to modify smali, I always get the below error. I've been able to successfully deodex the Settings.odex, but every SystemUI.odex I've tried always gives me the same error. I was originally using baksmali-1.3.0, then tried 1.3.2 and even tried a 1.3.3 jar that m!k3 over in the One S forums compiled, but all give the same result. Anyone know how to get around this error?
C:\Android Stuff\Phones\EVO LTE\working1>baksmali -d framework -x SystemUI.odex
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoun dException: Could not find superclass Lcom/htc/fusion/fx/MessageListener;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loa dSuperclass(ClassPath.java:832)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<in it>(ClassPath.java:685)
at org.jf.dexlib.Code.Analysis.ClassPath.loadClassDef (ClassPath.java:282)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPat h(ClassPath.java:163)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeCl assPathFromOdex(ClassPath.java:110)
at org.jf.baksmali.baksmali.disassembleDexFile(baksma li.java:104)
at org.jf.baksmali.main.main(main.java:293)
Error while loading class Lcom/android/systemui/recent/RecentAppFxActivity$10; from file SystemUI.odex
Error while loading ClassPath class Lcom/android/systemui/recent/RecentAppFxActivity$10;
Click to expand...
Click to collapse

[Q] Camera.apk Camera.odex deodex fail, help!

Can anyone tell how to deodex it ?
PHP:
Disassembling ./system/app/Camera.odex ...
java -Xmx512m -jar baksmali.jar -a 15 -d system/framework -x ./system/app/Camera.odex
Error while disassembling method Lcom/scalado/camera/hdr/HDR$JpegCallbackHandler$1;->run()V. Continuing.
org.jf.dexlib.Code.Analysis.ValidationException: class Lcom/scalado/caps/hdrimage/HDRImage$Options; cannot be resolved.
at org.jf.dexlib.Code.Analysis.ClassPath$UnresolvedClassDef.unresolvedValidationException(ClassPath.java:535)
at org.jf.dexlib.Code.Analysis.ClassPath$UnresolvedClassDef.getClassDepth(ClassPath.java:543)
at org.jf.dexlib.Code.Analysis.ClassPath.getCommonSuperclass(ClassPath.java:384)
at org.jf.dexlib.Code.Analysis.RegisterType.merge(RegisterType.java:275)
at org.jf.dexlib.Code.Analysis.AnalyzedInstruction.mergeRegister(AnalyzedInstruction.java:185)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.propagateRegisterToSuccessors(MethodAnalyzer.java:451)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.setPostRegisterTypeAndPropagateChanges(MethodAnalyzer.java:416)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.setDestinationRegisterTypeAndPropagateChanges(MethodAnalyzer.java:403)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeMoveResult(MethodAnalyzer.java:1714)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodAnalyzer.java:654)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:213)
at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMethodItems(MethodDefinition.java:379)
at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefinition.java:301)
at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:132)
at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition.java:338)
at org.jf.baksmali.Adaptors.ClassDefinition.writeVirtualMethods(ClassDefinition.java:323)
at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:152)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:205)
at org.jf.baksmali.main.main(main.java:293)
opcode: move-result-object
CodeAddress: 395
Method: Lcom/scalado/camera/hdr/HDR$JpegCallbackHandler$1;->run()V
in you bootclasspath use the jar from the attachment
enjoy
midnightfly said:
Can anyone tell how to deodex it ?
PHP:
Disassembling ./system/app/Camera.odex ...
java -Xmx512m -jar baksmali.jar -a 15 -d system/framework -x ./system/app/Camera.odex
Error while disassembling method Lcom/scalado/camera/hdr/HDR$JpegCallbackHandler$1;->run()V. Continuing.
org.jf.dexlib.Code.Analysis.ValidationException: class Lcom/scalado/caps/hdrimage/HDRImage$Options; cannot be resolved.
at org.jf.dexlib.Code.Analysis.ClassPath$UnresolvedClassDef.unresolvedValidationException(ClassPath.java:535)
at org.jf.dexlib.Code.Analysis.ClassPath$UnresolvedClassDef.getClassDepth(ClassPath.java:543)
at org.jf.dexlib.Code.Analysis.ClassPath.getCommonSuperclass(ClassPath.java:384)
at org.jf.dexlib.Code.Analysis.RegisterType.merge(RegisterType.java:275)
at org.jf.dexlib.Code.Analysis.AnalyzedInstruction.mergeRegister(AnalyzedInstruction.java:185)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.propagateRegisterToSuccessors(MethodAnalyzer.java:451)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.setPostRegisterTypeAndPropagateChanges(MethodAnalyzer.java:416)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.setDestinationRegisterTypeAndPropagateChanges(MethodAnalyzer.java:403)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeMoveResult(MethodAnalyzer.java:1714)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodAnalyzer.java:654)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:213)
at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMethodItems(MethodDefinition.java:379)
at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefinition.java:301)
at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:132)
at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition.java:338)
at org.jf.baksmali.Adaptors.ClassDefinition.writeVirtualMethods(ClassDefinition.java:323)
at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:152)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:205)
at org.jf.baksmali.main.main(main.java:293)
opcode: move-result-object
CodeAddress: 395
Method: Lcom/scalado/camera/hdr/HDR$JpegCallbackHandler$1;->run()V
Click to expand...
Click to collapse

[Q] Unable to deodex SystemUI.odex

Hi Guys..
I have not been able to deodex the SystemUI.odex to be able to modify smali, I always get the below error.
Code:
C:\I9300>java -Xmx1024m -jar baksmali-1.3.3.jar -d framework -x systemui.od
ex
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find int
erface Lcom/sec/android/app/minimode/manager/MiniModeAppCallback$OnFocusChangedC
allback;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadAllImplementedInte
rfaces(ClassPath.java:867)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:
692)
at org.jf.dexlib.Code.Analysis.ClassPath.loadClassDef(ClassPath.java:282
)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:16
3)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPathFromOdex(Cla
ssPath.java:110)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:104)
at org.jf.baksmali.main.main(main.java:297)
Error while loading class Lcom/android/systemui/statusbar/tablet/MiniModeAppsPan
el$1; from file systemui.odex
Error while loading ClassPath class Lcom/android/systemui/statusbar/tablet/MiniM
odeAppsPanel$1;
I've been able to successfully deodex the SecSettings.odex, but every SystemUI.odex I've tried always gives me the same error.
Anyone know how to get around this error?
I was trying to deodex SecContacts.odex. I received same error. I put only SecContacts.apk and SecContacts.odex in the dir. is that the problem? what file else do I need to put?
Error occured while loading boot class path files
~~
a bug of the baksmali, that it won't load certain classes when using -x option
so you should add the code "-c :what-you-need.odex"
ie. : java -Xmx1024m -jar baksmali-1.3.3.jar -d framework -c :minimode.odex -x systemui.odex
make sure you have copy the needed odex file to the folder within systemui.odex...
and sorry for my bad english...

[Q] Error when attempting to sign APK

I'm trying to create an update.zip that will install a Koodo radio on my SGH-i757m since I have switched from Bell. I took DSIXDA's original Bell Modem update for the i757m and replaced the MDM/AMSS files from the stock SGH-T989D rom from Koodo. I see that the manifest's contain SHA-1 keys relating to the files. Is that another step to create those or is that what happens during APK signing?
Judging by the output of the SignApk.jar it looks like I'm missing something from the JDK but I can't figure out what.
I followed these instructions :
1. You need to download the SignApk.jar - This is the tool that signs the file download from here - a mediafire link I found on xda. Unzip the file to a convenient location, you only need the SignApk.jar that you'll find inside.
2. You will also be using OpenSSL, so head over here and download the zip on the side for your iteration of windows (32 or 64 bit).
2. Place the zip on your desktop and unzip it.
3. You have to execute these commands in command prompt:
Code:
cd location_of_openssl_folder\bin
openssl genrsa -out key.pem 1024
openssl req -new -key key.pem -config location_of_openssl_folder\openssl.cnf -out request.pem
openssl x509 -req -days 9999 -in request.pem -signkey key.pem -out certificate.pem
openssl pkcs8 -topk8 -outform DER -in key.pem -inform PEM -out key.pk8 -nocrypt
That will work. Your certificate.pem and key.pk8 will be located in the \bin folder.
4. Now, take the key.pk8 file found in the \bin folder and the certificate.pem file found also in the \bin folder and place then in the folder containing your SignApk.jar (it will overwrite the other files found in the folder, its ok).
Click to expand...
Click to collapse
After trying to sign the zip using the command:
Code:
$ java -jar SignApk.jar key.pem key.pk8 KoodoRadio.zip Update.zip
I get:
Code:
java.security.cert.CertificateParsingException: signed overrun, bytes = 463
at sun.security.x509.X509CertImpl.parse(Unknown Source)
at sun.security.x509.X509CertImpl.<init>(Unknown Source)
at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
at java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
at com.android.signapk.SignApk.readPublicKey(SignApk.java:75)
at com.android.signapk.SignApk.main(SignApk.java:318)

[discussion/help] building miui 8 for oneplus x (patchrom project)

HI OnePlus X users, I know there are some thread about the same..but they are almost dead and the OP of that threads are busy in some other project like AOSP N (7.0),CM 14 ect..so i took an initiative to work on MIUI 8 (6.0.1).and working on it from last few days.
there is a build from a chinese dev shumxin which is out a day before.you can find that thread here
http://forum.xda-developers.com/oneplus-x/general/rom-miui-8-oneplus-x-ported-shumxin-t3479012
So come to the point I started working on MIUI patchrom project and took a oxygenOS 3.1.3 as base so started here
first command for building and results
HTML:
PATCHROM_BRANCH = marshmallow
ANDROID_PLATFORM = 23
PORT_ROOT = /home/faa/patchrom
ANDROID_TOP =
ANDROID_OUT =
PORT_PRODUCT = Unknown
USE_ANDROID_OUT =
ANDROID_BRANCH =
HOST_OS = linux
After that command for patching OxygenOS 3.1.3 framework to work with MIUI 8
HTML:
[email protected] ~/patchrom/onyx $ make firstpatch
/home/faa/patchrom/tools/patch_miui_framework.sh /home/faa/patchrom/android/base-framework /home/faa/patchrom/android `pwd`
<<< create temp directory to store the old, new source and destination smali code with .line removed
<<< compute the difference between /home/faa/patchrom/onyx/temp/old_smali/framework.jar.out and /home/faa/patchrom/onyx/temp/new_smali/framework.jar.out
<<< apply the patch into the /home/faa/patchrom/onyx/framework.jar.out
patching file /home/faa/patchrom/onyx/framework.jar.out/./smali/android/content/pm/PackageParser.smali
Hunk #1 succeeded at 9781 (offset 121 lines).
Hunk #2 succeeded at 9793 (offset 121 lines).
patching file /home/faa/patchrom/onyx/framework.jar.out/./smali/android/content/res/Resources.smali
Hunk #3 succeeded at 4580 (offset 53 lines).
patching file /home/faa/patchrom/onyx/framework.jar.out/./smali/android/app/ResourcesManager.smali
Hunk #1 FAILED at 213.
Hunk #2 succeeded at 1908 (offset 922 lines).
1 out of 2 hunks FAILED -- saving rejects to file /home/faa/patchrom/onyx/temp/reject/framework.jar.out/./smali/android/app/ResourcesManager.smali.rej
patching file /home/faa/patchrom/onyx/framework.jar.out/./smali/android/app/SystemServiceRegistry.smali
patching file /home/faa/patchrom/onyx/framework.jar.out/./smali/android/graphics/Bitmap.smali
patching file /home/faa/patchrom/onyx/framework.jar.out/./smali/com/android/internal/os/ZygoteInit.smali
Hunk #1 FAILED at 347.
patch: **** Can't reopen file /home/faa/patchrom/onyx/framework.jar.out/./smali/com/android/internal/os/ZygoteInit.smali : No such file or directory
<<< compute the difference between /home/faa/patchrom/onyx/temp/old_smali/services.jar.out and /home/faa/patchrom/onyx/temp/new_smali/services.jar.out
<<< apply the patch into the /home/faa/patchrom/onyx/services.jar.out
patching file /home/faa/patchrom/onyx/services.jar.out/./smali/com/android/server/wm/WindowManagerService.smali
Hunk #1 FAILED at 708.
1 out of 1 hunk FAILED -- saving rejects to file /home/faa/patchrom/onyx/temp/reject/services.jar.out/./smali/com/android/server/wm/WindowManagerService.smali.rej
patching file /home/faa/patchrom/onyx/services.jar.out/./smali/com/android/server/am/ActivityStack.smali
Hunk #1 FAILED at 6636.
1 out of 1 hunk FAILED -- saving rejects to file /home/faa/patchrom/onyx/temp/reject/services.jar.out/./smali/com/android/server/am/ActivityStack.smali.rej
patching file /home/faa/patchrom/onyx/services.jar.out/./smali/com/android/server/am/ActivityManagerService.smali
Hunk #1 succeeded at 94288 with fuzz 1 (offset 11309 lines).
patching file /home/faa/patchrom/onyx/services.jar.out/./smali/com/android/server/SystemServer.smali
Hunk #1 succeeded at 197 (offset 55 lines).
patching file /home/faa/patchrom/onyx/services.jar.out/./smali/com/android/server/policy/PhoneWindowManager.smali
Hunk #1 succeeded at 484 (offset 21 lines).
<<< compute the difference between /home/faa/patchrom/onyx/temp/old_smali/telephony-common.jar.out and /home/faa/patchrom/onyx/temp/new_smali/telephony-common.jar.out
<<< apply the patch into the /home/faa/patchrom/onyx/telephony-common.jar.out
<<< compute the difference between /home/faa/patchrom/onyx/temp/old_smali/wifi-service.jar.out and /home/faa/patchrom/onyx/temp/new_smali/wifi-service.jar.out
mv: cannot stat '/home/faa/patchrom/onyx/wifi-service.jar.out': No such file or directory
cp: cannot stat '/home/faa/patchrom/onyx/temp/dst_smali_orig/wifi-service.jar.out': No such file or directory
<<< apply the patch into the /home/faa/patchrom/onyx/wifi-service.jar.out
cp: cannot stat '/home/faa/patchrom/onyx/wifi-service.jar.out': No such file or directory
/home/faa/patchrom/tools/patch_miui_framework.sh: line 69: cd: /home/faa/patchrom/onyx/temp/dst_smali_orig/wifi-service.jar.out: No such file or directory
>>> patch miui into target framework is done. Please look at /home/faa/patchrom/onyx/temp/reject to resolve any conflicts!
After that got very few rejects(about 3-5) in temp/reject folder which I fixed(may be not) by following this thread
http://forum.xda-developers.com/chef-central/android/guide-patchrom-rejects-fixing-tutorial-t3203287
AFTER APPLYING PATCH GAVE A COMMAND TO MAKE FLASHABLE ZIP and MIpatchtool started to copy resources in Base rom i.e OxygenOS.zip
HTML:
make fullota
and got this
HTML:
[email protected] ~/patchrom/onyx $ make fullota
unzip >/dev/null -n oxygenOS.zip -d oxygenOS
unzip >/dev/null oxygenOS.zip -d out/ZIP
To add prebuilt files
cp: cannot stat 'oxygenOS/system/bin/app_process64': No such file or directory
/home/faa/patchrom/build/prebuilt.mk:6: recipe for target 'add-prebuilt-files' failed
make: [add-prebuilt-files] Error 1 (ignored)
mv: cannot stat 'out/ZIP/system/bin/app_process64_miui': No such file or directory
/home/faa/patchrom/build/prebuilt.mk:6: recipe for target 'add-prebuilt-files' failed
make: [add-prebuilt-files] Error 1 (ignored)
To add preintall files
Add miui prebuilt completed!
/home/faa/patchrom/tools/apktool --quiet d -f oxygenOS/system/framework/framework-res.apk -o out/framework-res
/home/faa/patchrom/tools/linux-x86/aapt p -f -x --auto-add-overlay --wlan-replace Wi-Fi --wlan-replace WiFi \
--min-sdk-version 23 --target-sdk-version 23 \
-S /home/faa/patchrom/miui/src/config-overlay/v6/platform/v23/frameworks/base/core/res/res -S /home/faa/patchrom/miui/src/config-overlay/v6/platform/v21/frameworks/base/core/res/res -S /home/faa/patchrom/miui/src/config-overlay/v6/common/frameworks/base/core/res/res -S /home/faa/patchrom/miui/src/I18N_res/v6/common/frameworks/base/core/res/res \
-S out/framework-res/res -A out/framework-res/assets \
-M out/framework-res/AndroidManifest.xml -F out/framework-res.apk
GOT WARNINGS AS FOLLOWS (SHORTEN)
warning: string 'transient_navigation_confirmation_long' has no default translation.
warning: string 'usb_choose_notification_title' has no default translation.
warning: string 'use_physical_keyboard' has no default translation.
warning: string 'wifi_display_notification_connected_message' has no default translation.
warning: string 'wifi_display_notification_connected_title' has no default translation.
warning: string 'wifi_display_notification_connecting_message' has no default translation.
warning: string 'wifi_display_notification_connecting_title' has no default translation.
warning: string 'wifi_display_notification_disconnect' has no default translation.
warning: string 'year_picker_description' has no default translation.
#@echo "9Patch png fix out/framework-res.apk..."
#/home/faa/patchrom/tools/fix_9patch_png.sh >/dev/null framework-res oxygenOS/system/framework out
/home/faa/patchrom/tools/apktool --quiet if -p out/apktool out/framework-res.apk
<<< build out/framework-res.apk completed!
Copy: out/framework-res.apk to out/ZIP/system/framework/framework-res.apk
>>> Install framework resources for apktool...
/home/faa/patchrom/tools/apktool --quiet if -p out/apktool /home/faa/patchrom/miui/system/framework-res/XXHDPI/framework-res.apk -t miui
install /home/faa/patchrom/miui/system/app/XXHDPI/miui/miui.apk
install /home/faa/patchrom/miui/system/framework-res/XXHDPI/framework-ext-res/framework-ext-res.apk
install /home/faa/patchrom/miui/system/app/XXHDPI/miuisystem/miuisystem.apk
/home/faa/patchrom/tools/linux-x86/aapt p -f -u --package-id 0x11 --rename-manifest-package com.miui.rom --auto-add-overlay -z --wlan-replace Wi-Fi --wlan-replace WiFi \
REMAINING CODES (HORTEN)
HTML:
--min-sdk-version 23 --target-sdk-version 23 \
-S /home/faa/patchrom/miui/src/I18N_res/v6/common/miui/frameworks/base/core/res/res -S /home/faa/patchrom/miui/src/frameworks/base/core/res/res -S /home/faa/patchrom/miui/src/frameworks/opt/ToggleManager/res -M /home/faa/patchrom/miui/src/frameworks/base/core/res/AndroidManifest.xml \
-I out/apktool/1.apk -I out/apktool/16.apk -I /home/faa/patchrom/build/empty-res/17.apk -F out/framework-ext-res.apk
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-xhdpi/auto_disable_screenbuttons_float_bg_p.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-hdpi/boot_logo.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-xhdpi/boot_logo.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-xxhdpi/boot_logo.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-hdpi/boot_progress.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-hdpi/float_notification_button_bg_n.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AND FINALLY
HTML:
/home/faa/patchrom/tools/apktool --quiet b out/framework -o out/framework.jar
out/framework/smali/android/view/Window.smali[101,0] The file must contain a .class directive
out/framework/smali/android/view/ThreadedRenderer.smali[3,0] The file must contain a .class directive
Exception in thread "main" brut.androlib.AndrolibException: java.util.concurrent.ExecutionException: brut.androlib.AndrolibException: Could not smali file: android/view/Window.smali
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: brut.androlib.AndrolibException: Could not smali file: android/view/Window.smali
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:124)
... 7 more
Caused by: brut.androlib.AndrolibException: Could not smali file: android/view/Window.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:142)
at brut.androlib.src.SmaliBuilder.access$000(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder$1.call(SmaliBuilder.java:98)
at brut.androlib.src.SmaliBuilder$1.call(SmaliBuilder.java:94)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
out/framework/smali/android/view/View.smali[2,0] The file must contain a .class directive
out/framework/smali/android/view/WindowManagerPolicy.smali[3,0] The file must contain a .class directive
out/framework/smali/android/view/MotionEvent.smali[24,0] The file must contain a .class directive
out/framework/smali/android/view/Surface.smali[14,0] The file must contain a .class directive
out/framework/smali/android/view/WindowManager$LayoutParams.smali[2,0] The file must contain a .class directive
out/framework/smali/android/view/SurfaceControl.smali[31,0] The file must contain a .class directive
out/framework/smali/com/android/internal/os/RuntimeInit.smali[576,0] The file must contain a .class directive
out/framework/smali/com/android/internal/os/Zygote.smali[3,0] The file must contain a .class directive
farooque7508 said:
REMAINING CODES (HORTEN)
--min-sdk-version 23 --target-sdk-version 23 \ -S /home/faa/patchrom/miui/src/I18N_res/v6/common/miui/frameworks/base/core/res/res -S /home/faa/patchrom/miui/src/frameworks/base/core/res/res -S /home/faa/patchrom/miui/src/frameworks/opt/ToggleManager/res -M /home/faa/patchrom/miui/src/frameworks/base/core/res/AndroidManifest.xml \ -I out/apktool/1.apk -I out/apktool/16.apk -I /home/faa/patchrom/build/empty-res/17.apk -F out/framework-ext-res.apk/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-xhdpi/auto_disable_screenbuttons_float_bg_p.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-hdpi/boot_logo.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-xhdpi/boot_logo.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-xxhdpi/boot_logo.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-hdpi/boot_progress.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-hdpi/float_notification_button_bg_n.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AND FINALLY
/home/faa/patchrom/tools/apktool --quiet b out/framework -o out/framework.jarout/framework/smali/android/view/Window.smali[101,0] The file must contain a .class directiveout/framework/smali/android/view/ThreadedRenderer.smali[3,0] The file must contain a .class directiveException in thread "main" brut.androlib.AndrolibException: java.util.concurrent.ExecutionException: brut.androlib.AndrolibException: Could not smali file: android/view/Window.smali 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: brut.androlib.AndrolibException: Could not smali file: android/view/Window.smali at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:124) ... 7 moreCaused by: brut.androlib.AndrolibException: Could not smali file: android/view/Window.smali at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:142) at brut.androlib.src.SmaliBuilder.access$000(SmaliBuilder.java:64) at brut.androlib.src.SmaliBuilder$1.call(SmaliBuilder.java:98) at brut.androlib.src.SmaliBuilder$1.call(SmaliBuilder.java:94) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)out/framework/smali/android/view/View.smali[2,0] The file must contain a .class directiveout/framework/smali/android/view/WindowManagerPolicy.smali[3,0] The file must contain a .class directiveout/framework/smali/android/view/MotionEvent.smali[24,0] The file must contain a .class directiveout/framework/smali/android/view/Surface.smali[14,0] The file must contain a .class directiveout/framework/smali/android/view/WindowManager$LayoutParams.smali[2,0] The file must contain a .class directiveout/framework/smali/android/view/SurfaceControl.smali[31,0] The file must contain a .class directiveout/framework/smali/com/android/internal/os/RuntimeInit.smali[576,0] The file must contain a .class directiveout/framework/smali/com/android/internal/os/Zygote.smali[3,0] The file must contain a .class directive
Click to expand...
Click to collapse
Hi. I'm too trying to build... And stuck exactly at:
Zygote.smali[3,0] The file must contain a .class directive
Could you get past it?
@SalarX as you can see no replies in this thread...means no developers are interested in miui nor they are helping another people to do it..I am not an expert I need some help from experience developers is so important I think but unfortunately they are not helping..so I decided to quite this project.
farooque7508 said:
@SalarX as you can see no replies in this thread...means no developers are interested in miui nor they are helping another people to do it..I am not an expert I need some help from experience developers is so important I think but unfortunately they are not helping..so I decided to quite this project.
Click to expand...
Click to collapse
Okay...
But if something works I'll for sure tell you
Yeah thank you.
SalarX said:
Okay...
But if something works I'll for sure tell you
Click to expand...
Click to collapse
farooque7508 said:
Yeah thank you.
Click to expand...
Click to collapse
Hi, I am sorry to see the state of this thread.
Any chance the both of you are active on Telegram ?
We have super-active OnePlus X groups with all our developers, who are sometimes not as active on the forums due to personal reasons.
If you could PM me, I'd be too happy so share the Invite Links of our support chats.
i also getting same error .. anyone please help
Fap4k said:
REMAINING CODES (HORTEN)
HTML:
--min-sdk-version 23 --target-sdk-version 23 \
-S /home/faa/patchrom/miui/src/I18N_res/v6/common/miui/frameworks/base/core/res/res -S /home/faa/patchrom/miui/src/frameworks/base/core/res/res -S /home/faa/patchrom/miui/src/frameworks/opt/ToggleManager/res -M /home/faa/patchrom/miui/src/frameworks/base/core/res/AndroidManifest.xml \
-I out/apktool/1.apk -I out/apktool/16.apk -I /home/faa/patchrom/build/empty-res/17.apk -F out/framework-ext-res.apk
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-xhdpi/auto_disable_screenbuttons_float_bg_p.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-hdpi/boot_logo.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-xhdpi/boot_logo.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-xxhdpi/boot_logo.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-hdpi/boot_progress.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-hdpi/float_notification_button_bg_n.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AND FINALLY
HTML:
/home/faa/patchrom/tools/apktool --quiet b out/framework -o out/framework.jar
out/framework/smali/android/view/Window.smali[101,0] The file must contain a .class directive
out/framework/smali/android/view/ThreadedRenderer.smali[3,0] The file must contain a .class directive
Exception in thread "main" brut.androlib.AndrolibException: java.util.concurrent.ExecutionException: brut.androlib.AndrolibException: Could not smali file: android/view/Window.smali
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: brut.androlib.AndrolibException: Could not smali file: android/view/Window.smali
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:124)
... 7 more
Caused by: brut.androlib.AndrolibException: Could not smali file: android/view/Window.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:142)
at brut.androlib.src.SmaliBuilder.access$000(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder$1.call(SmaliBuilder.java:98)
at brut.androlib.src.SmaliBuilder$1.call(SmaliBuilder.java:94)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
out/framework/smali/android/view/View.smali[2,0] The file must contain a .class directive
out/framework/smali/android/view/WindowManagerPolicy.smali[3,0] The file must contain a .class directive
out/framework/smali/android/view/MotionEvent.smali[24,0] The file must contain a .class directive
out/framework/smali/android/view/Surface.smali[14,0] The file must contain a .class directive
out/framework/smali/android/view/WindowManager$LayoutParams.smali[2,0] The file must contain a .class directive
out/framework/smali/android/view/SurfaceControl.smali[31,0] The file must contain a .class directive
out/framework/smali/com/android/internal/os/RuntimeInit.smali[576,0] The file must contain a .class directive
out/framework/smali/com/android/internal/os/Zygote.smali[3,0] The file must contain a .class directive
Click to expand...
Click to collapse
getting same error
himavanth.reddy925 said:
getting same error
Click to expand...
Click to collapse
It is due to wrong patch.
Fap4k said:
It is due to wrong patch.
Click to expand...
Click to collapse
how to correct the patch.. sir
himavanth.reddy925 said:
how to correct the patch.. sir
Click to expand...
Click to collapse
I am not sir bro..m still learning.
Refer to this video may you find a solution
First you need to know smali.
shumxin said:
First you need to know smali.
Click to expand...
Click to collapse
At last the guy is here. Please help the XDA devs trying to make MIUI. It's almost finished. (I think).
Anyways Good luck to the developers making MIUI. I'm totally here for testing the ROM. Thanks in advance for the ROM and Never Give UP!!
Fap4k said:
I am not sir bro..m still learning.
Refer to this video may you find a solution
Click to expand...
Click to collapse
thank u for providing video link
all rejects re patched.. but fullota has stoped with ana error
Code:
Recovery link files success
/home/hima/patchrom/tools/build_target_files.sh: line 154: ./customize_target_files.sh: Permission denied
/home/hima/patchrom/build/porting.mk:314: recipe for target 'fullota' failed
make: *** [fullota] Error 1
thanks in advance
himavanth.reddy925 said:
thank u for providing video link
all rejects re patched.. but fullota has stoped with ana error
thanks in advance
Click to expand...
Click to collapse
Looks like customize_target_file.sh denied permission..go to device folder and give execute permission to that particular file.
Thanks
I like this project and would donate for it

Categories

Resources