[Android Software Development] fedevd:
I started all again and now this is the only issue I faced with "PatchROM". After running "make fullota" happens this:

Issue #1

root@fede-ubuntu:/home/fede/patchrom/adv# make fullota
>>> Install framework resources for apktool...
install framework-miui-res.apk
/home/fede/patchrom/tools/apktool --quiet if /home/fede/patchrom/miui/XHDPI/system/framework/framework-miui-res.apk
/home/fede/patchrom/tools/apktool --quiet if /home/fede/patchrom/miui/XHDPI/system/framework/framework-res.apk miui
unzip >/dev/null stockrom.zip "system/framework/*.apk" -d out
install out/system/framework/framework-res.apk
<<< install framework resources completed!
>>> build out/framework-res.apk...
add miui overlay resources
WARING[CHECK]: out/framework-res/res/values-largeui-xhdpi : no such directory
WARING[CHECK]: out/framework-res/res/values-mcc460-mnc01 : no such directory
WARING[CHECK]: out/framework-res/res/values-mcc460-mnc01-zh-rCN : no such directory
WARING[CHECK]: out/framework-res/res/values-mcc460-mnc01-zh-rTW : no such directory
WARING[CHECK]: out/framework-res/res/values-mcc460-mnc03 : no such directory
WARING[CHECK]: out/framework-res/res/values-mcc460-mnc03-zh-rCN : no such directory
WARING[CHECK]: out/framework-res/res/values-mcc460-mnc03-zh-rTW : no such directory
/home/fede/patchrom/tools/remove_redef.py >/dev/null out/framework-res
/home/fede/patchrom/tools/apktool --quiet b out/framework-res out/framework-res.apk
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/values-w600dp
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/values-sw600dp-land
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/values-sw600dp
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/values-w360dp
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/anim-sw720dp
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/drawable-sw720dp-nodpi
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/values-w500dp
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/values-h720dp
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/drawable-sw600dp-hdpi
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/values-sw600dp-w960dp
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/values-sw720dp-land
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/layout-w600dp
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/values-w720dp
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/layout-sw600dp
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/values-sw720dp-w1280dp
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/values-sw720dp
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/values-w480dp
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/drawable-sw600dp-nodpi
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/layout-sw720dp
invalid resource directory name: /home/fede/patchrom/adv/out/framework-res/res/values-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, /tmp/APKTOOL9176494830240805711.tmp, -x, -0, arsc, -S, /home/fede/patchrom/adv/out/framework-res/res, -M, /home/fede/patchrom/adv/out/framework-res/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, /tmp/APKTOOL9176494830240805711.tmp, -x, -0, arsc, -S, /home/fede/patchrom/adv/out/framework-res/res, -M, /home/fede/patchrom/adv/out/framework-res/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, /tmp/APKTOOL9176494830240805711.tmp, -x, -0, arsc, -S, /home/fede/patchrom/adv/out/framework-res/res, -M, /home/fede/patchrom/adv/out/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
make: *** [out/framework-res.apk] Error 1
root@fede-ubuntu:/home/fede/patchrom/adv#

FIXED: Replaced "aapt", "apktool" and "apktool.jar" of "/patchrom/tools" in "/usr/local/bin" and removed SDK PATH of "/home/user/.bashrc". Why? 'cus MIUI uses modded aapt and apktool..

Issue #2

root@fede-ubuntu:/home/fede/patchrom/adv# make fullota
>>> build out/framework-res.apk...
add miui overlay resources
WARING[CHECK]: out/framework-res/res/values-largeui-xhdpi : no such directory
WARING[CHECK]: out/framework-res/res/values-mcc460-mnc01 : no such directory
WARING[CHECK]: out/framework-res/res/values-mcc460-mnc01-zh-rCN : no such directory
WARING[CHECK]: out/framework-res/res/values-mcc460-mnc01-zh-rTW : no such directory
WARING[CHECK]: out/framework-res/res/values-mcc460-mnc03 : no such directory
WARING[CHECK]: out/framework-res/res/values-mcc460-mnc03-zh-rCN : no such directory
WARING[CHECK]: out/framework-res/res/values-mcc460-mnc03-zh-rTW : no such directory
/home/fede/patchrom/tools/remove_redef.py >/dev/null out/framework-res
/home/fede/patchrom/tools/apktool --quiet b out/framework-res out/framework-res.apk
9Patch png fix out/framework-res.apk...
/home/fede/patchrom/tools/fix_9patch_png.sh >/dev/null framework-res stockrom/system/framework out /home/fede/patchrom/miui/src/frameworks/miui/overlay/frameworks/base/core/res/res overlay/framework-res/res
cp: no se puede efectuar `stat' sobre «stockrom/system/framework/framework-res.apk»: No existe el archivo o el directorio
unzip: cannot find or open out/framework-res-original.apk, out/framework-res-original.apk.zip or out/framework-res-original.apk.ZIP.
find: «out/framework-res-original»: No existe el archivo o el directorio
fix out/framework-res.apk completed!
/home/fede/patchrom/tools/apktool --quiet if out/framework-res.apk
<<< build out/framework-res.apk completed!
>>> build out/framework-miui-res.apk...
/home/fede/patchrom/tools/apktool --quiet d -f /home/fede/patchrom/miui/XHDPI/system/framework/framework-miui-res.apk out/framework-miui-res
ls: no se puede acceder a overlay/framework-miui-res/res/[^v]*: No existe el archivo o el directorio
ls: no se puede acceder a overlay/framework-miui-res/res/values*: No existe el archivo o el directorio
/home/fede/patchrom/tools/apktool --quiet b out/framework-miui-res out/framework-miui-res.apk
Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
at brut.androlib.Androlib.build(Androlib.java:186)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
make: *** [out/framework-miui-res.apk] Error 1
root@fede-ubuntu:/home/fede/patchrom/adv#