i want to keep it simple.
i just followed this tutorial and edited my system UI and then when it comes to recompile it refuses to do so.
there occur some errors screenshots are here http://imgur.com/rWmq8Ds
it says that that no id named widget.timepicker was there but when i searched for his in the res\values\styles.xml there total 5 of them but error occurred in only 2. this only happened with styles.xml
also the recompilation process stopped at this point
http://imgur.com/1ULqtY5
i was following this tutorial http://chromloop.com/2016/11/guide-how-to-port-pixel-navigation-bar-animation-to-your-phone/
my device is Galaxy Grand 2 running Ressurection Remix Nougat v5.8.0 Android 7.1.1
please help.
i am noob please explain with patience
apktool v2.2.2
Had you installed framework-res.apk as stated in Step 1 (java -jar apktool.jar if framework-res.apk) before later operations? I got similar errors at first, but they never occurred after I installed the apk. Hope I can help you
Related
Hi,
I'm having issues compiling a new apk to use with the tmobile theme chooser and could really use some help.
I started by creating a new project in eclipse using the information from the Cyanbread theme to get the right androidManifest.xml, package format, and xml files. The problem I've run into is that, when I try to apply the theme (through CM7 emulator or my own phone), I get an error saying the package is improperly compiled and cannot be applied.
I looked into the source code for the theme chooser and found that "DIALOG_MISSING_THEME_PACKAGE_SCOPE" is what generates that text string. I found tmobile's theme wiki at hxxp://code.google.com/p/tmobile-themes/wiki/NewGlobalThemeEngineDesign (sorry, I cannot post links yet). On that page, I found this:
Resources are generated in the 0x0a package scope. This is designed to separate them in the AssetManager's ResTable. The framework currently uses 0x01 while application packages normally use 0x7f. The aapt tool was modified to support assigning arbitrary package scopes and so you must use the aapt tool found in the themes tree for building your own themes.
Click to expand...
Click to collapse
I installed the repository on my system and found the aapt at ~/prebuilt/sdk/tools/linux/aapt. I tried renaming my "standard" aapt to aapt.old in my android sdk platform-tools folder and putting the modified aapt in its place. I deleted my gen folder in eclipse and made it rebuild it using the modified aapt.
Having done all that, I still get the same error saying the package is improperly compiled. This is all pretty new, and I haven't been able to find any info here on xda or elsewhere that helps. Any help that anyone can give would be really appreciated. Thanks!
UPDATE:
A guide was just posted at forum.xda-developers.com/showthread.php?t=942203 that gave me all the other info I needed to make this happy. If your searching and found this thread, hopefully the guide can help you.
UpwardSpiral said:
UPDATE:
A guide was just posted at forum.xda-developers.com/showthread.php?t=942203 that gave me all the other info I needed to make this happy. If your searching and found this thread, hopefully the guide can help you.
Click to expand...
Click to collapse
Thanks a lot! I've been having the same problem
I've searched the forum and found other ppl having problems editing this apk, but I've found no solutions...
Here is my problem: I'm trying to edit a framework-res.apk from a cyanogenmod 7 build for the huawei u8500, more precisely some xmls
I've tried with several methods, including:
1 decompile-edit-recompile-sign -> bootloop
2 decompile-edit-open with 7zip/winrar-merge files -> bootloop
I've tried this at first boot and also after the first, the result it's always the same, bootloop
I'm not doing big changes to xmls, just some height adjustment...
I've heard that in gingerbread I also need to modify systemUI.apk also, is this correct? If so, why apk manager is giving me error while decompiling it?
all the tries were done using apk manager 4.9 and with no errors in log except from when decompiling systemUI...
HELP T_T
No one will help us
C'mon Guys any Tip ?
Thank in Advance!!
how are you pushing the edited files?
I know that the one safe way is via an update.zip , try that.
TuoNonno said:
I've searched the forum and found other ppl having problems editing this apk, but I've found no solutions...
Here is my problem: I'm trying to edit a framework-res.apk from a cyanogenmod 7 build for the huawei u8500, more precisely some xmls
I've tried with several methods, including:
1 decompile-edit-recompile-sign -> bootloop
2 decompile-edit-open with 7zip/winrar-merge files -> bootloop
I've tried this at first boot and also after the first, the result it's always the same, bootloop
I'm not doing big changes to xmls, just some height adjustment...
I've heard that in gingerbread I also need to modify systemUI.apk also, is this correct? If so, why apk manager is giving me error while decompiling it?
all the tries were done using apk manager 4.9 and with no errors in log except from when decompiling systemUI...
HELP T_T
Click to expand...
Click to collapse
can you give more info?
i mean, are you have any error on compiling the framework?
can you post the log file of apk manager?
TuoNonno said:
I've searched the forum and found other ppl having problems editing this apk, but I've found no solutions...
Here is my problem: I'm trying to edit a framework-res.apk from a cyanogenmod 7 build for the huawei u8500, more precisely some xmls
I've tried with several methods, including:
1 decompile-edit-recompile-sign -> bootloop
2 decompile-edit-open with 7zip/winrar-merge files -> bootloop
I've tried this at first boot and also after the first, the result it's always the same, bootloop
I'm not doing big changes to xmls, just some height adjustment...
I've heard that in gingerbread I also need to modify systemUI.apk also, is this correct? If so, why apk manager is giving me error while decompiling it?
all the tries were done using apk manager 4.9 and with no errors in log except from when decompiling systemUI...
HELP T_T
Click to expand...
Click to collapse
I have run into some issues with framework-res.apks, the issue ended up being corrupt images, the dot 9 files. I replaced them with clean images and overwrote them after compile using 7-zip. Hope this helps a little.
Sent from my Inspire 4G using XDA Premium App.
britoso said:
how are you pushing the edited files?
I know that the one safe way is via an update.zip , try that.
Click to expand...
Click to collapse
I tried both with an update.zip and also changing it on the original rom...
tj_style said:
can you give more info?
i mean, are you have any error on compiling the framework?
can you post the log file of apk manager?
Click to expand...
Click to collapse
No errors...
Code:
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
"adb" non Š riconosciuto come comando interno o esterno,
un programma eseguibile o un file batch.
Impossibile trovare C:\Users\Nonno\Desktop\New8300\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Impossibile trovare C:\Users\Nonno\Desktop\New8300\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
Yes, "W" is a "warning" - it may be a potential problem or may be not. Most of apks have some code, so its lack may be a sign of an problem. framework-res.apk doesn't have it, so this warning is ok for that file.
Hello dear devs
I'm trying for 2 weeks now, without luck, to find a way to decompile, add resources and recompile Erikmm's MIUI v4 :
settings.apk
framework-miui-res.apk
as part of my HebMIUI project.
I downloaded an ICS aimed APKtool and used the original as well.
the original fails to even decompile, the other one fails to recompile, giving public.xml drawable symbol declared but not defined error:
For example for settings.apk I get this
I managed to recompile all the system and framework apps besides settings and framework-miui-res so it's really frustrating to not being able to finish this work.
If someone here has a working environment or some issue pointing I missed, I'd greatly appreciate it if you share it with me.
Thanks.
I fixed the 9.png error at the start of the pastebin, it's not related to this issue. Still getting all those declared but not defined errors.
I get them even if I decompile recompile without changing anything...
I'll try to decompile with dependencies. If that won't work I'll try to remove the declared objects from xml.
sent from me
WARNING: The pastebin link totally had a virus waiting. Sorry itskit2sh.
Not much help at the moment, but apktool is going to receive updates (supposedly)
https://www.xda-developers.com/android/apktool-to-receive-updates-once-again/
For settings try and use the apktool from developer.android. As for how you are recompiling miui uses framework-res and framework-miui-res as dependencies. Lastly the miui_logo thing might be because I added my Darth Vader one for when booting shutting down lol. Ill upload my update today to dropbox and have u try with the newest one
----------------------------------------------
If helped don't be afraid to hit the thanks button it doesn't bite lol
Thanks for your replies guys, unfortunately no luck yet.
I copied aapt ver 1.4.3 to both old apktool and ics apktool.
still I get "bad magic value" on old apktool decompilation
and like gazilion rows "declared but not defined" for public.xml objects on ics apktool compilation.
Also decompilation with dependencies did not quite work as it did not get my depended apk suggestions (framework-miui-res/framework-res/settings).
are there any alternatives to this method ? thanks.
Resolved (!) using these files of the newest WIP apktool files (ver. 1.4.9)
once again thanks for all your help guys !!!
I was compiling kernel for fit following zcop's guide and everything was done perfectly gave the command to recompile the boot.img....it started compiling for abt 10 mins or so and after 10 mins it gave an error saying missing vmlinux.o file in libs folder of the kernel....i tried google but couldnt find a good solution can anyone provide me with link to vmlinux.o file download or even the file will be appreciated....i tried the process again but still got the same error
Mail me bro
I'm actually tweaking /system/framework/framework-res.apk to change some Lollipop's new features. There's a bunch of XML files in that package for that purpose.
The issue is: I decompile and recompile the mentioned apk with apktool on my pc, without editing anything, just to try. Then I move the apk to my Samsung S5's /sdcard directory, tap it, and get the following error "Analysis error. Couldn't perform this package's analysis (translation from spanish)".
When compiling, I get several warnings, mostly "translation not found" typed. The same process with a phonegap self made app works perfectly.
I'm using:
apktool_2.0.0rc3.jar
jdk 1.7
Windows 7 ultimate
Android 5.0 on Samsung Galaxy S5 (SM-G900F)
I have deleted C:\Users\myuser\apktool\framework\1.apk file.
Could the problem be a signature issue?
Thanks.