yashsingh1/xdaforums huggingface dataset:
[Android Software Development] DarthJonathan:
I think is because you didn't compile the Phone.apk right, if u have a samsung do this

"apktool if framework-res.apk" then "apktool if twframework-res.apk"

then try to decompile the Phone.apk again same with ke Settings.apk

---------- Post added at 02:28 PM ---------- Previous post was at 01:46 PM ----------

GUYS!!!! I THINK I HAVE IT!!!!!!!!!!!!!!!!! IF U HAVE ERROR LIKEE :

"Can't find framework resources for package of id: 6. You must install proper framework files, see project website for more info." GO TO MIUI in the micode folder and find the "framework-miui-res.apk" And copy it to ~/bin then run command "apktool if framework-miui-res.apk" then in will create the 6.apk file!!!!! correct me if im wrong :)

EDIT :NVMMM!!!! it just got stuck again Error: No resource found that matches the given name (at 'color' with value '@color/tab_lable_color_p').

/home/jonathan/MiCode/i8150/.build/SystemUI/res/color/tab_lable_color.xml:6: error: Error: No resource found that matches the given name (at 'color' with value '@color/tab_lable_color_n').

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL4185090270339962186.tmp, -I, /home/jonathan/apktool/framework/1.apk, -S, /home/jonathan/MiCode/i8150/.build/SystemUI/res, -M, /home/jonathan/MiCode/i8150/.build/SystemUI/AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)

at brut.androlib.Androlib.buildResources(Androlib.java:248)

at brut.androlib.Androlib.build(Androlib.java:171)

at brut.androlib.Androlib.build(Androlib.java:154)

at brut.apktool.Main.cmdBuild(Main.java:182)

at brut.apktool.Main.main(Main.java:67)

Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL4185090270339962186.tmp, -I, /home/jonathan/apktool/framework/1.apk, -S, /home/jonathan/MiCode/i8150/.build/SystemUI/res, -M, /home/jonathan/MiCode/i8150/.build/SystemUI/AndroidManifest.xml]

at brut.util.OS.exec(OS.java:83)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)

... 6 more

make: *** [.build/MIUISystemUI.apk] Error 1

jonathan@jonathan-VirtualBox:~/MiCode/i8150$

Click Thanks if it helps :D
[Android Software Development] Samiam303:
I had that same error. There's an xml error in the phone.apk xml files. If you post the contents of that file to pastebin or somewhere I'll fix it for you.
[Android Software Development] Racing19969:
I have been able to compile for the SGS4G. Once I install the rom I get 2 errors. The status bar FC's and the Phone FC's. Still trying to figure out where the problem is. Other than that it runs nice.

"GUYS!!!! I THINK I HAVE IT!!!!!!!!!!!!!!!!! IF U HAVE ERROR LIKEE :

"Can't find framework resources for package of id: 6. You must install proper framework files, see project website for more info." GO TO MIUI in the micode folder and find the "framework-miui-res.apk" And copy it to ~/bin then run command "apktool if framework-miui-res.apk" then in will create the 6.apk file!!!!! correct me if im wrong "

The above answer is a good workaround but the correct way is as follows: in order to install all the proper frameworks here are the steps:

source build/envsetup.sh

then cd to your folder with files, example: cd miui-sgs4g

then run from terminal: " make apktool-if "

This will build and install all the miui framework files,

Then run from terminal: " make zipfile " this will build your new rom.

Make sure you edit the make file to your needs

also make sure that any apps that have smali edits in them are included in your build folder & make file. If not the port will have errors when you flash it.

---------- Post added at 10:09 AM ---------- Previous post was at 10:03 AM ----------

If you go to this thread you can see pictures I have posted of it running on my SGS4G

http://xdaforums.com/showthread.php?t=1481263
[Android Software Development] owain94:
you are missing a installed framework make sure you install original framework-res miui framework and if you are on those sucky stock roms there is most likly another framework you will need to install before decompiling and building

well just use your eyes sir look in the i9000 folder at the decopiled systemUI that isn't the whole systemUI you will need to adjust your decompiled SystemUI like they did

no **** sherlock?

how can you ever build anything without resources this is common sense to install the miui framework right... ?

and also MIUI uses id 6 in their frameworks like they mention a lot so it would be pretty common sense to fix that error

no if you patch a stock rom you will need a stock boot.img

all works fine here make sure you installed miui framework, framework-res from your ROM and any additional frameworks if you are on stock ROM

and also compare the i9000 systemUI folder with yours and adjust your folder so they will almost match

This patch ROM utility is working fine but please guys use your common sense they made is as easy as possible
[Android Software Development] dswaggz:
So does mean itz finally working

sent via rebel rom 2.1
[Android Software Development] QuintenPool:
- Is there any way that I can do this on my Windows PC, or do I really need Linux?

- Would this work on my Samsung Galaxy R I9103? (Similar to LG Optimus 2x)

- Hi, I'm Dutch
[Android Software Development] DarthJonathan:
XD sorry guys i had an error and i figure that id:6 error now im stuck (again) pretty much that everyone stuck here at building miuisystemui.apk why?? Can anyone have make the steps?? Thxx so muchh
[Android Software Development] nikku_hot123:
Thank you so much for your valuable response... i will try again.
[Android Software Development] jimakos29:
new more detailed instructions here: www.miui.com/thread-431923-1-1.html

my chinese doesn't help but if anyone can translate it would be awesome...
[Android Software Development] jasper580:
-Ok, as pashinator said, we're buzy and have fixed a bunch of errors, but we (especially me, not sure about the others :D) can't get past the following error when building (or they are past it but they didn't tell me :p):

Building without error-blablablah

/home/jasper/PatchROM/gt540/.build/SystemUI/res/values/styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Holo.Light.Panel'.

/home/jasper/PatchROM/gt540/.build/SystemUI/res/values/styles.xml:17: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Holo.Light.Panel'.

More java (?) errors-blablablah

Does anyone know how to fix it?

-Hey, I'm Dutch too :p
[Android Software Development] iandr0idos:
Any update on this? I'm thinking of trying this with my Skyrocket.
[Android Software Development] DarthJonathan:
any updates??
[Android Software Development] nikku_hot123:
I have successfly made it but i am getting statusbar fc .as it is treating my phone as i9100. As" please touch andoid logo of i9001 for start" can anybody fix those two smali files of i9100/systemUI for me..please i am so close...
[Android Software Development] DarthJonathan:
i've made the rom AND IT'S WORKING!! but cuz the git forums told me to use the SystemUI from the i9100 folder i used it and it build alright but when i flashed it no bootloop or so BUT!!! the System UI and Settings keeps on crashing ckcck ive change the SystemUI with the original one then i got no status bar XD well maybe yes if someone could give the 2 smali files the "DeviceCustomization.smali" and "ResourceMapper.smali" that would be GREAT! THX

---------- Post added at 01:10 PM ---------- Previous post was at 01:08 PM ----------

i think it wont build cuz micode only have the files and icons for the 2 of smali files and none for our status bar icons :D

---------- Post added at 01:28 PM ---------- Previous post was at 01:10 PM ----------

NO I KNOW WHY!!!! xD better be right this time, the Patcher don't have the res for our SystemUI they only have that in the folder i9100 now what we need to know is how we add the systemui res so they could make the status bar

---------- Post added at 01:52 PM ---------- Previous post was at 01:28 PM ----------

GUYS i got it i dunno yea if im wrong cuz this work for me :D in your systemui folder there should be res folder copy it and paste it on the /SystemUI/smali/com/android/systemui/statusbar (if you have other folder example : inside /SystemUI/smali/com/android/systemui/ there are 2 folder statusbar and usb copy the res unto both folder) thx
[Android Software Development] dswaggz:
Hey dont u have a galaxy w or exhibit ii if so post that rom
[Android Software Development] Rosemberg91:
this guide work for tablet 10 inc????
[Android Software Development] DarthJonathan:
sorry it's still buggy man can't risk it :D
[Android Software Development] KemikalElite:
Then send it my way. I've been getting stuck on the damn framework errors. It looks like you've made great progress and whatever it is I should be able to get it working on the exhibit ii.
[Android Software Development] Mohanshbhr:
i can compile without any error, but after flashing it bootloops:mad::mad::mad::mad::mad::mad::confused::confused:
[Android Software Development] dswaggz:
Please send it to him. I would be so grateful
[Android Software Development] KemikalElite:
it's because you are missing some sort of dependency. Did you include all the apps needed to make the phone work? Are they listed in the make file? did you use the correct framework? Retrace your steps and look for anything incorrect.

Until you can provide more info about what's causing the boot loop we can't really help much. Even if you built with no errors that just means you were able to build a ROM it doesn't automatically imply that it will work right away. Your next step is debugging the ROM to make it function on the device.

Good luck.
[Android Software Development] DarthJonathan:
yea can u too help me with the settings and some miui apps fcs? ill pm u
[Android Software Development] Racing19969:
all works fine here make sure you installed miui framework, framework-res from your ROM and any additional frameworks if you are on stock ROM

and also compare the i9000 systemUI folder with yours and adjust your folder so they will almost match

This patch ROM utility is working fine but please guys use your common sense they made is as easy as possible[/QUOTE]

If it all works fine, Please post a link to a working rom and some pics. Or even a better guide showing how to do it!!!
[Android Software Development] idogx:
good good study day day up!thank you!
[Android Software Development] KemikalElite:
FC's should be much easier to fix considering the standard Android UI is working. If the rom boots there should be a way to fix a few broken applications. PM me explaining whatever doesn't work and I'll see how much I can help. Also can you post your build setup on github because the sgw/exhibit ii has the same system board (Ancora) so it should be easy to port to the exhibit ii from your make setup. It would be great to get this running on both phones instead of just one.
[Android Software Development] dswaggz:
Yes it would so awesome

via my exhibit II GREATEST AWESOMENESS
[Android Software Development] iandr0idos:
like everybody else, I'm stuck at MIUISystemUI.apk

I've tried copying the i9100 SystemUI folder to mine, but that doesn't work...

Anybody have any suggestions?

EDIT: I got it to build. Testing now. I'll tell you how it goes. BTW, this is the i727

EDIT 2: I'm just getting a black screen on boot. Anybody know what's wrong with this?
[Android Software Development] nikku_hot123:
I am getting android.systemui.statusbar force close every time with random reboots. Please help???!
[Android Software Development] DarthJonathan:
i told u guys to copy the res folder , kemika i think kezra doesn't like miui so he can't help so can u? and could you show me the best filehosting to upload the rom? thx
[Android Software Development] nikku_hot123:
Can you upload your whole device folder ???? so that we can see how did u get it working. Specially yours systemUI folder. It will be very helpful to us.
[Android Software Development] dswaggz:
All hail Ancora devices

via my exhibit II GREATEST AWESOMENESS
[Android Software Development] DarthJonathan:
GLADLY!!!

Here is!! :D
[Android Software Development] Racing19969:
Images are too small. can't see layout. Also, we need the layout you used for the SystemUI folder.

---------- Post added at 08:00 AM ---------- Previous post was at 07:54 AM ----------

The android.acore crash is a simple fix. Go into Settings > Apllications > Manage Applications > Contacts and clear Cache & do the same for Contacts Storage. That will fix the acore crashes. Still working on the SystemUI.
[Android Software Development] DarthJonathan:
here's the zip download it hehe
[Android Software Development] KemikalElite:
Awesome! I'll take a look at this when I get home. Thanks again.
[Android Software Development] Racing19969:
Thanks for th efile. I will take a look and see what I can do.

Update: Tried adding the res folders and still will not build...
[Android Software Development] DarthJonathan:
kemika theres my miui rom

link :

http://hotfile.com/dl/146749925/c4fe15f/MIUI_8150.zip.html

and heres my system ui folder
[Android Software Development] Racing19969:
What device is this for? Thanks for uploading the files. I added the res folders in the order you have them and still get build errors for SystemUI.apk. I am going the clean out all my files and setup a new build folder and try. Once done I will post my results.

Update: I followed the above and can build the zip but statusbar still crashes and the apps still crash.
[Android Software Development] DarthJonathan:
The things about system ui is the status bar guys if you use ur phone standard the patchrom doesn't thave the skin for that, they only have the skin for the 2 smali files , but in the MIUI_I9100.zip i found out theres a lot of files in the system ui folder of 9100?? unfortunately i can't read or write OR UNDERSTAND java proggraming :D so i don't know whats inside the smali files :D maybe someone here understand java??

---------- Post added at 12:02 AM ---------- Previous post was at 12:01 AM ----------

its for I8150 (aka samsung galaxy w aka ancora) :D

Oh and kemikal if u could solve the thememanager and settings problem help me thx cuz i've tried decompile the settings provider.apk :)
[Android Software Development] nikku_hot123:
figured out the cause for the boot loop it is the problem with the Phone.apk process. it was force closing causing in a boot loop. i changed it with the origional one and its ok but DarthJonathan SystemUI statusbar is still force closing and no status bar is visible despite using ur tricks. galaxy w and galaxy s plus shares almost same specifications so it should work!!! can you help something more???
[Android Software Development] DarthJonathan:
what res folder d u use?? from mine?? or from ur systemui phone??
[Android Software Development] KemikalElite:
hey I heard that somebody (bpear) from the exhibit made a script or mod or something that converts galaxy W ROMs into Exhibit 2 ROMs. maybe I can use that convert your rom into ROM that's compatible with my phone, and from there I can fix the two force close problems.

-Composed with voice input.
[Android Software Development] dswaggz:
Awesome i am up for testing :)-
[Android Software Development] nikku_hot123:
I used my system res folder...
[Android Software Development] DarthJonathan:
Then i dont know hehe

---------- Post added at 09:48 AM ---------- Previous post was at 09:22 AM ----------

actu;;y now theres 3 of em the phone also doesn't work :(
[Android Software Development] nikku_hot123:
Yeah i figured it out early... I replaced it with origional one and still same problem.. Previously ported phone was causin force close and bootloops... :( plrase any one help us i really want it
[Android Software Development] DarthJonathan:
About FC's don't worry we all have the same issue (again) :D
[Android Software Development] tanjunjie9:
This is awesome my friend, im installing linux just to test it out. ;)
[Android Software Development] lpjunior999:
So I'm hitting a weird error. I've been trying this to hopefully patch the latest OTA for my Droid Charge, Cygwin on a Windows 7 installation, and whenever I get to "Make zipfile," it tells me;

Input file (home/Me/MiCode/miui/system/framework/services.jar) was not found or was not readable.

/home/Me/MiCode/build/porting.mk:133 recipe for target '.build/services_miui' failed

make: *** [.build/services_miui] Error 1

I don't believe it's a problem with my Cygwin installation, as I should have every package installed. I reinstalled Java, checked the .zip I got the services.jar file from for errors (none), even redownloaded the file straight from the github. Anybody got any ideas or seen this before?
[Android Software Development] nikku_hot123:
hey guys here is the fix for theme manager for changing themes

just create a folder /data/system/themes and then install theme but its still having

problem applying statusbar.. you know :confused::confused:
[Android Software Development] Blumdum:
hm your statusbar FC's all the time?

well maybe this is a possible solution:

try to resign all apk's in /system/app/
[Android Software Development] Gerrett:
Building Framework.jar :

cp -r framework.jar.out/ .build/framework
/home/nimrod/MIUI-Vengeance/MiPatcher/tools/add_miui_smail.sh .build/framework_miui .build/framework
/home/nimrod/MIUI-Vengeance/MiPatcher/tools/apktool b .build/framework .build/framework.jar
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" org.jf.dexlib.Util.ExceptionWithContext: method index is too large.
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithContext.java:54)
at org.jf.dexlib.Item.addExceptionContext(Item.java:176)
at org.jf.dexlib.Item.writeTo(Item.java:119)
at org.jf.dexlib.Section.writeTo(Section.java:119)
at org.jf.dexlib.DexFile.writeTo(DexFile.java:716)
at brut.androlib.src.DexFileBuilder.getAsByteArray(DexFileBuilder.java:75)
at brut.androlib.src.DexFileBuilder.writeTo(DexFileBuilder.java:58)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: java.lang.RuntimeException: method index is too large.
at org.jf.dexlib.Code.Format.Instruction35c.writeInstruction(Instruction35c.java:102)
at org.jf.dexlib.Code.Instruction.write(Instruction.java:57)
at org.jf.dexlib.CodeItem.writeItem(CodeItem.java:258)
at org.jf.dexlib.Item.writeTo(Item.java:116)
... 12 more
code_item @0x1caf34 (Landroid/net/NetworkInfo$DetailedState;->values()[Landroid/net/NetworkInfo$DetailedState;)

make: *** [.build/framework.jar] Fehler 1
nimrod@nimrod-Ubuntu:~/MIUI-Vengeance/MiPatcher/p920$

any ideas ?

Gesendet von meinem LG-P920 mit Tapatalk
[Android Software Development] nutterbg:
Hi! I think I already know the answer to my question, but can this be in some way ported to MDPI devices as well? I'm not entirely familiar with the framework and whether it can be scaled HDPI->MDPI, so I thought I'd ask for some competent advice. :) I tried one or two builds, but I'm mostly facing problems with missing resources, errors with building SystemUI, and when I managed to compile two builds from two different CM7 roms(one 7.2, one 7.1) the phone boots to just after CM logo with many fc's(providers, acore, systemui). Any advice or guidelines you could give me would be useful. Thanks.
[Android Software Development] KemikalElite:
http://xdaforums.com/showpost.php?p=22621424&postcount=8

Somebody from the Galaxy Gio translated the official porting docs into English.

Thanks to them and dswaggz for telling me about the post.
[Android Software Development] nutterbg:
Most of the translation is gibberish. This was probably run through Google Translate and nothing more. Any idea about my problem two posts up? :?
[Android Software Development] Blumdum:
i get a strange error

did anyone face this too?

here is the log

build .build/Settings.apk...
--------------------------------------------
cp -r Settings .build
/home/freddie/MiCode/tools/apktool b .build/Settings .build/Settings.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'certificate_view_title' has no default translation in /home/freddie/MiCode/i9001/.build/Settings/res; found: es_US
/home/freddie/MiCode/i9001/.build/Settings/res/layout/choose_lock_password.xml:8: error: Error: No resource found that matches the given name (at 'keyBackground' with value '@android:drawable/btn_check_on_focused_holo_light').
/home/freddie/MiCode/i9001/.build/Settings/res/layout-land/choose_lock_password.xml:9: error: Error: No resource found that matches the given name (at 'keyBackground' with value '@android:drawable/btn_check_on_focused_holo_light').
/home/freddie/MiCode/i9001/.build/Settings/res/layout/preference_bluetooth.xml:6: error: Error: No resource found that matches the given name (at 'textColor' with value '@android:color/lockscreen_owner_info').
/home/freddie/MiCode/i9001/.build/Settings/res/layout/una_setting_list.xml:10: error: Error: No resource found that matches the given name (at 'background' with value '@android:drawable/btn_radio_off_disabled_holo_light').
/home/freddie/MiCode/i9001/.build/Settings/res/layout/una_setting_list.xml:12: error: Error: No resource found that matches the given name (at 'background' with value '@android:drawable/btn_radio_off_disabled_holo_light').
/home/freddie/MiCode/i9001/.build/Settings/res/layout/una_setting_list.xml:14: error: Error: No resource found that matches the given name (at 'background' with value '@android:drawable/btn_radio_off_disabled_holo_light').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL8963800735446039205.tmp, -I, /home/freddie/apktool/framework/1.apk, -I, /home/freddie/apktool/framework/2.apk, -S, /home/freddie/MiCode/i9001/.build/Settings/res, -M, /home/freddie/MiCode/i9001/.build/Settings/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL8963800735446039205.tmp, -I, /home/freddie/apktool/framework/1.apk, -I, /home/freddie/apktool/framework/2.apk, -S, /home/freddie/MiCode/i9001/.build/Settings/res, -M, /home/freddie/MiCode/i9001/.build/Settings/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
make: *** [.build/Settings.apk] Fehler 1

thanks in advance