Skip to content

Problem( #2

Open
Open

Description

@axel2033

/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?

Activity

  1. MiuiAnderson commented on Mar 16, 2012

    @MiuiAnderson

    Can you tell me which command you run for make?

  2. axel2033 commented on Mar 16, 2012

    @axel2033
    Author

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

  3. MiuiAnderson commented on Mar 16, 2012

    @MiuiAnderson

    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 [reply@reply.github.com]
    发送时间: 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:
    #2 (comment)

  4. axel2033 commented on Mar 16, 2012

    @axel2033
    Author

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

  5. MiuiAnderson commented on Mar 16, 2012

    @MiuiAnderson

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


    发件人: Ilia Aksyonov [reply@reply.github.com]
    发送时间: 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:
    #2 (comment)

  6. axel2033 commented on Mar 16, 2012

    @axel2033
    Author

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

  7. MiuiAnderson commented on Mar 16, 2012

    @MiuiAnderson

    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 [reply@reply.github.com]
    发送时间: 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:
    #2 (comment)

  8. axel2033 commented on Mar 16, 2012

    @axel2033
    Author

    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?

  9. MiuiAnderson commented on Mar 17, 2012

    @MiuiAnderson

    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 [reply@reply.github.com]
    发送时间: 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:
    #2 (comment)

  10. adyscorpius commented on Apr 12, 2012

    @adyscorpius

    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?

  11. 1982Strand commented on May 8, 2012

    @1982Strand

    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

  12. jcorrea86 commented on May 19, 2012

    @jcorrea86

    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

  13. 1982Strand commented on May 19, 2012

    @1982Strand

    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 ;)

  14. jcorrea86 commented on May 19, 2012

    @jcorrea86

    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

  15. 1982Strand commented on May 19, 2012

    @1982Strand

    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 ;)

  16. jcorrea86 commented on May 19, 2012

    @jcorrea86

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

  17. jcorrea86 commented on May 20, 2012

    @jcorrea86

    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'.

  18. 1982Strand commented on May 20, 2012

    @1982Strand

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

  19. jcorrea86 commented on May 20, 2012

    @jcorrea86

    unfortunately I get the same error as above.

  20. 1982Strand commented on May 21, 2012

    @1982Strand

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

  21. iBotPeaches commented on May 21, 2012

    @iBotPeaches

    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.

  22. jcorrea86 commented on May 22, 2012

    @jcorrea86

    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!

  23. adyscorpius commented on Jun 1, 2012

    @adyscorpius

    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!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions