Git Product home page Git Product logo

Comments (8)

fanoge avatar fanoge commented on August 18, 2024

Should use "source build/envsetup.sh" or ". build/envsetup.sh" instead of "sh .."

from legacy-patchrom.

jsrcodes avatar jsrcodes commented on August 18, 2024

I got it fixed by including the below lines to the makefile.
PORT_BUILD=/home/jayasimha/thepatcher/build

PORT_ROOT=/home/jayasimha/thepatcher

But the making zip process went unsuccesful. I am attaching the output, please help me to fix it.

cp /home/jayasimha/thepatcher/miui/system/framework/framework-miui-res.apk .build/ZIP/system/framework/framework-miui-res.apk

build .build/framework-res.apk...

cp -r framework-res .build
/home/jayasimha/thepatcher/tools/apktool b .build/framework-res .build/framework-res.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'wifi_available' has no default translation in /home/jayasimha/thepatcher/i9100G/.build/framework-res/res; found: ms
aapt: warning: string 'wifi_available_detailed' has no default translation in /home/jayasimha/thepatcher/i9100G/.build/framework-res/res; found: ms
I: Building apk file...
cp apks-unsinged to zip dirs
cp .build/framework-res.apk .build/ZIP/system/framework/framework-res.apk
/home/jayasimha/thepatcher/tools/apktool d -f /home/jayasimha/thepatcher/miui/system/app/MIUISystemUI.apk .build/SystemUI
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: /home/jayasimha/apktool/framework/1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060e006b
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060e0075
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060e0075
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060e0075
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060e0075
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060e0075
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x060e0075
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x060e0007
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x060e0007
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0602037c
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x060e0036
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x060e0036
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x060e0005
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x060e0005
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x060e0005
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0607003a
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x060e0005
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0607003a
I: Decoding values_/_ XMLs...
Can't find framework resources for package of id: 6. You must install proper framework files, see project website for more info.
make: *** [.build/SystemUI] Error 1

from legacy-patchrom.

jsrcodes avatar jsrcodes commented on August 18, 2024

I thought of installing miui framework for apktool and did so.. after that performed the make command, now i got different error

cp /home/jayasimha/thepatcher/miui/system/framework/framework-miui-res.apk .build/ZIP/system/framework/framework-miui-res.apk

build .build/framework-res.apk...

cp -r framework-res .build
/home/jayasimha/thepatcher/tools/apktool b .build/framework-res .build/framework-res.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'wifi_available' has no default translation in /home/jayasimha/thepatcher/i9100G/.build/framework-res/res; found: ms
aapt: warning: string 'wifi_available_detailed' has no default translation in /home/jayasimha/thepatcher/i9100G/.build/framework-res/res; found: ms
I: Building apk file...
cp apks-unsinged to zip dirs
cp .build/framework-res.apk .build/ZIP/system/framework/framework-res.apk

build .build/MIUISystemUI.apk...

cp -r SystemUI .build
/home/jayasimha/thepatcher/tools/apktool b .build/SystemUI .build/MIUISystemUI.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
res/drawable-hdpi/status_bar_background.png:0: error: Resource entry status_bar_background is already defined.
res/drawable-hdpi/status_bar_background.9.png:0: Originally defined here.
/home/jayasimha/thepatcher/i9100G/.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/jayasimha/thepatcher/i9100G/.build/SystemUI/res/values/styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Holo.Light.Panel'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL2651416676899838457.tmp, -I, /home/jayasimha/apktool/framework/1.apk, -S, /home/jayasimha/thepatcher/i9100G/.build/SystemUI/res, -M, /home/jayasimha/thepatcher/i9100G/.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/APKTOOL2651416676899838457.tmp, -I, /home/jayasimha/apktool/framework/1.apk, -S, /home/jayasimha/thepatcher/i9100G/.build/SystemUI/res, -M, /home/jayasimha/thepatcher/i9100G/.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

from legacy-patchrom.

fanoge avatar fanoge commented on August 18, 2024

Strange to find status_bar_background.png exists in your res/drawable-hdpi with status_bar_background.9.png..

from legacy-patchrom.

jsrcodes avatar jsrcodes commented on August 18, 2024

Please help me.. the making of zip for default I9100 folder(given by micode) is fully working .. but i dont know why its not working with my i9100G model

from legacy-patchrom.

fanoge avatar fanoge commented on August 18, 2024

For SystemUI, I think it should be the same with i9100. Try to figure out why status_bar_background.png exists as reported by apktool..

from legacy-patchrom.

rpander93 avatar rpander93 commented on August 18, 2024

I'm also getting a lot of errors during the compilation of SystemUI.apk. All related to resource it can not find blablabla.

from legacy-patchrom.

RomBreaker avatar RomBreaker commented on August 18, 2024

Im Stuck there too

from legacy-patchrom.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.