patchrom icon indicating copy to clipboard operation
patchrom copied to clipboard

Problem(

Open axel2033 opened this issue 13 years ago • 25 comments

/home/ilia/android/miui/tools/remove_redef.py >/dev/null out/framework-res /home/ilia/android/miui/tools/apktool --quiet b out/framework-res out/framework-res.apk /home/ilia/android/miui/tools/apktool --quiet if out/framework-res.apk <<< build out/framework-res.apk completed!

build out/framework-miui-res.apk... /home/ilia/android/miui/tools/apktool --quiet d -f /home/ilia/android/miui/miui/system/framework/framework-miui-res.apk out/framework-miui-res ls: невозможно получить доступ к overlay/framework-miui-res/res/[^v]: Нет такого файла или каталога /home/ilia/android/miui/tools/apktool --quiet b out/framework-miui-res out/framework-miui-res.apk Exception in thread "main" brut.androlib.err.CantFindFrameworkResException at brut.androlib.res.AndrolibResources.getFrameworkApk(AndrolibResources.java:366) at brut.androlib.Androlib.parseUsesFramework(Androlib.java:400) 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) make: ** [out/framework-miui-res.apk] Ошибка 1

In what can be problem?

axel2033 avatar Mar 16 '12 11:03 axel2033

Can you tell me which command you run for make?

MiuiAnderson avatar Mar 16 '12 11:03 MiuiAnderson

make fullota I tried to do it for p990 bases on cm9

axel2033 avatar Mar 16 '12 11:03 axel2033

We required that the base ROM is at least android 4.0 version. Otherwise, the framework-miui-res.apk can't be built.


发件人: Ilia Aksyonov [[email protected]] 发送时间: 2012年3月16日 19:40 到: 汪文俊 主题: Re: [patchrom] Problem( (#2)

make fullota I tried to do it for p990 bases on cm9


Reply to this email directly or view it on GitHub: https://github.com/MiCode/patchrom/issues/2#issuecomment-4538121

MiuiAnderson avatar Mar 16 '12 11:03 MiuiAnderson

sad :-( Will be optimus 2x officialy supported by hiaomi and other miui dev team?(Miuiv4)

axel2033 avatar Mar 16 '12 12:03 axel2033

The pricinple is that the device manufacturer released the stock 4.0 ROM, we will port miui to it. And you can .


发件人: Ilia Aksyonov [[email protected]] 发送时间: 2012年3月16日 20:05 到: 汪文俊 主题: Re: [patchrom] Problem( (#2)

sad :-( Will be optimus 2x officialy supported by hiaomi and other miui dev team?(Miuiv4)


Reply to this email directly or view it on GitHub: https://github.com/MiCode/patchrom/issues/2#issuecomment-4538467

MiuiAnderson avatar Mar 16 '12 12:03 MiuiAnderson

New Miuiv4 bases on stock firmware? In the last year miui bases on cyanogenmod sources. I'm right?

axel2033 avatar Mar 16 '12 12:03 axel2033

Yes, the miui 2.3 is based on cm. But from 4.0, we only based on stock firmware. That's why we create patchrom project.


发件人: Ilia Aksyonov [[email protected]] 发送时间: 2012年3月16日 20:25 到: 汪文俊 主题: Re: [patchrom] Problem( (#2)

New Miuiv4 bases on stock firmware? In the last year miui bases on cyanogenmod sources. I'm right?


Reply to this email directly or view it on GitHub: https://github.com/MiCode/patchrom/issues/2#issuecomment-4538765

MiuiAnderson avatar Mar 16 '12 12:03 MiuiAnderson

Sorry, you can ask a question? Why did you decide to go this route? Cyanogenmod a great project and I think it was good base for miui 2.3. Why you started to change stock roms intead of building firmware from source?

axel2033 avatar Mar 16 '12 12:03 axel2033

Yes, cm is indeed a great project.

But we think the stock firmware is more stable, in miui 2.3, many users complain wifi, power saving and phone call

issues. And we nearly can't have a good way to solve it.


发件人: Ilia Aksyonov [[email protected]] 发送时间: 2012年3月16日 20:43 到: 汪文俊 主题: Re: [patchrom] Problem( (#2)

Sorry, you can ask a question? Why did you decide to go this route? Cyanogenmod a great project and I think it was good base for miui 2.3. Why you started to change stock roms intead of building firmware from source?


Reply to this email directly or view it on GitHub: https://github.com/MiCode/patchrom/issues/2#issuecomment-4539007

MiuiAnderson avatar Mar 17 '12 02:03 MiuiAnderson

I got a similar error Andy.

/adit/android/patchrom/tools/apktool --quiet d -f /adit/android/patchrom/miui/system/framework/framework-miui-res.apk out/framework-miui-res ls: cannot access overlay/framework-miui-res/res/[^v]: No such file or directory ls: cannot access overlay/framework-miui-res/res/values: No such file or directory /adit/android/patchrom/tools/apktool --quiet b out/framework-miui-res out/framework-miui-res.apk Exception in thread "main" brut.androlib.err.CantFindFrameworkResException at brut.androlib.res.AndrolibResources.getFrameworkApk(AndrolibResources.java:366) at brut.androlib.Androlib.parseUsesFramework(Androlib.java:400) 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) make: *** [out/framework-miui-res.apk] Error 1

I'm using 4.0.4 base. Also have the latest android-sdk-linux updated on Ubuntu 64 Bit. Could you help with where I'm going wrong?

adyscorpius avatar Apr 12 '12 17:04 adyscorpius

About the Exception in thread "main" brut.androlib.err.CantFindFrameworkResException -error. Remember to manually install a framework with id 2, like a sense framework. If you run as root it should be in /root/apktool - otherwise /home/(user)/apktool

1982Strand avatar May 08 '12 12:05 1982Strand

Sorry for the noob question, but how would I manually install a framework with id 2? I'm trying to port MIUI to the bionic

jcorrea86 avatar May 19 '12 02:05 jcorrea86

i use com.htc.resources.apk as the no.2 framework. You install it manually with following command: apktool if com.htc.resources.apk

then it automatically installs as 2.apk ;)

1982Strand avatar May 19 '12 11:05 1982Strand

Thanks for the help, but when I run the command above, it saves the framework as id3 instead of 2. If I go to /home/apktool i only see 1.apk and 3.apk

jcorrea86 avatar May 19 '12 23:05 jcorrea86

yes, the framework-res.apk installs as 1.apk, framework-miui-res.apk installs as 3.apk. You need to find a framework that installs as 2. In my case, com.htc.resources.apk installs as 2.apk. Find a sense rom with the com.htc.resources.apk in it, it will install as 2.apk ;)

1982Strand avatar May 19 '12 23:05 1982Strand

got it... Now i just need to find which apk would be the 2.apk for a motorola phone.... Thanks!

jcorrea86 avatar May 19 '12 23:05 jcorrea86

Use this:

http://htcfanboys.com/download/1982Strand/?action=view&file=4490

1982Strand avatar May 20 '12 07:05 1982Strand

I found the framework that gave me id 2, but it still fails and now gives me a lot of errors. If I run apktool (apktool b out/framework-miui-res.apk) manually, it starts with:

W: Could not find sources I: Checking whether resources has changed... I: Building resources...

and then a lot of:

/home/jr/stspatchrom/aosp/out/framework-miui-res/res/values/styles.xml:327: error: Error: No resource found that matches the given name: attr 'background'. /home/jr/stspatchrom/aosp/out/framework-miui-res/res/values/styles.xml:328: error: Error: No resource found that matches the given name: attr 'clickable'. /home/jr/stspatchrom/aosp/out/framework-miui-res/res/values/styles.xml:330: error: Error: No resource found that matches the given name: attr 'cropToPadding'. /home/jr/stspatchrom/aosp/out/framework-miui-res/res/values/styles.xml:329: error: Error: No resource found that matches the given name: attr 'scaleType'. /home/jr/stspatchrom/aosp/out/framework-miui-res/res/values/styles.xml:331: error: Error: No resource found that matches the given name: attr 'src'. /home/jr/stspatchrom/aosp/out/framework-miui-res/res/values/styles.xml:334: error: Error: No resource found that matches the given name: attr 'itemTextAppearance'. /home/jr/stspatchrom/aosp/out/framework-miui-res/res/values/styles.xml:335: error: Error: No resource found that matches the given name: attr 'listViewStyle'. /home/jr/stspatchrom/aosp/out/framework-miui-res/res/values/styles.xml:336: error: Error: No resource found that matches the given name: attr 'windowAnimationStyle'.

jcorrea86 avatar May 20 '12 07:05 jcorrea86

Delete contents of the folder "out", do a repo sync if not already done and re-run the build process :)

1982Strand avatar May 20 '12 11:05 1982Strand

unfortunately I get the same error as above.

jcorrea86 avatar May 20 '12 18:05 jcorrea86

Hmm, not sure what's going on then, can't help you, sorry.

1982Strand avatar May 21 '12 07:05 1982Strand

Run

cd /home/jr/stspatchrom/ apktool if com.htc.resources.apk source build/envsetup.sh cd aosp (or name of folder where your doing it) make reallyclean make fullota

Run those in order from top to bottom. Starting in the root directory of patchrom.

iBotPeaches avatar May 21 '12 12:05 iBotPeaches

THANK YOU THANK YOU THANK YOU THANK YOU!!!!

That worked for me! I am now one step close to building a port for the bionic!

jcorrea86 avatar May 22 '12 08:05 jcorrea86

Hey, i'm using CM9 as base. Which also means there isn't a second stock framework to load. How should I go about this? Which apk should I install as 2.apk? Thanks!!!

adyscorpius avatar Jun 01 '12 14:06 adyscorpius

@Adyscorpius

use this http://uloz.to/x3bEPSt/twframework-res-apk http://uloz.to/xo1kmhS/2-apk

ingbrzy avatar Jun 03 '12 07:06 ingbrzy