[Q] AOSP: modify build.prop before compiling - Android Q&A, Help & Troubleshooting

Hi, I'm working on an AOSP rom, I want to add a key to my build,prop before compiling it into a zip.
How can it be done?
Please help.

rosenpin said:
Hi, I'm working on an AOSP rom, I want to add a key to my build,prop before compiling it into a zip.
How can it be done?
Please help.
Click to expand...
Click to collapse
I would recommend taking a look at this guide here for how to add your own property to build.prop before compiling.

shimp208 said:
I would recommend taking a look at this guide here for how to add your own property to build.prop before compiling.
Click to expand...
Click to collapse
Works great, Thank you!

If you wish to modify existing property from ADDITIONAL_BUILD_PROPERTIES section, you need to modify $ANDROID_BUILD_TOP/device/$TARGET_PRODUCT/$TARGET_PRODUCT.mk
For properties in section PRODUCT_PROPERTY_OVERRIDES check device.mk and customer.mk in the same folder.

Related

Converting updater scipt to update scirpt Android Kitchen

I am trying to modify a aosp compile build in the Android Ktichen but when I get to the step where i have to convert from updater-script to update-script, it gets stuck at "assert". I have allowed it to run for almost an hour now. how do i resolve this issue?
bump for help..
nexxusdev said:
I am trying to modify a aosp compile build in the Android Ktichen but when I get to the step where i have to convert from updater-script to update-script, it gets stuck at "assert". I have allowed it to run for almost an hour now. how do i resolve this issue?
Click to expand...
Click to collapse
use notepad++ to modify updater script
ICS_XD said:
use notepad++ to modify updater script
Click to expand...
Click to collapse
manually convert? thats gonna take long... anyway, is the update binary still needed after converting?
nexxusdev said:
manually convert? thats gonna take long... anyway, is the update binary still needed after converting?
Click to expand...
Click to collapse
yep
Script. It's spelled "script"!!! j/k
Look up the kitchen on here. It does that as one of the features and does it very well. I believe it was called just "kitchen". I may have the name a little off but hopefully this get you going. Also, it's main purpose is building roms, etc, but it does do the feature you need!
Sent from my Super Galaxy'd SPH-D710

[Q] Instructions

Hi.
I don't understand these instructions from anybody on xda. Can someone help me? Exactly how to compile wpa_supplicant?
Instructions from developer
I had a quick look on this..
In order to make the wifi load you need to compile wpa_supplicant.
To give you a hint on this take a look at this commit from stockwell http://is.gd/Q4VaMi and you'll also have to edit libhardware_legacy just like this http://is.gd/CNVDrz so it loads wlan.ko.
Click to expand...
Click to collapse
Thanks for help.
No one can't help me?
Why don't use compiled wpa_supplicant?
Anyway, you can compile it with CM sources

[HELP] Porting CM9 to my Device

Hello everyone. So I am trying to port CM9 to my device htc Desire C. The build compiles correctly but when I flash it, it results in a bootloop.
I have attached the logcat. If some one could help me with this , it would be great
Heres the paste bin link http://pastebin.com/5u6ymXgk
Add this line to build.prop and reflash it;
dalvik.vm.dexopt-data-only=1
forumber2 said:
Add this line to build.prop and reflash it;
dalvik.vm.dexopt-data-only=1
Click to expand...
Click to collapse
Thank you so much bro
Those lines fixed the error.

Help needed with decompiling and recompiling

Dear community ,I wanted to edit my framework-res.apk and enable in it navigation bar on my Xperia S.
I did everything. Decompiled ,changed in bools.xml show navigation bar to true ,changed the dpi on dimens.xml but after I try to recompile the apk and rebuild it I get errors and the edited framework-res.apk provides me bootloops.
Can someone please do me a favour and decompile + recompile my framework-res.apk?
Change in bools.xml show navigation bar to true
Change in dimens.xml the DPI of the height=30
height_landscape=30
width=28
I will be very thankful for you! Please help me
Here is my framework-res.apk and SemcGenericUxpRes.apk
http://www51.zippyshare.com/v/42097932/file.html
davidbar93 said:
but after I try to recompile the apk and rebuild it I get errors and the edited framework-res.apk provides me bootloops.
Click to expand...
Click to collapse
Try this - http://forum.xda-developers.com/showthread.php?t=2321207
XperienceD said:
Try this - http://forum.xda-developers.com/showthread.php?t=2321207
Click to expand...
Click to collapse
"In the drawable folder of your framework-res you need to find and change a number of xmls and the easiest way to do this is with Notepad++. Download and open it first, then in the drawable folder highlight all 150 xmls prefixed with semc_, and drop them into Notepad++ (You may want to do so many at a time depending on your Computers specs). Using the search and replace feature, replace..."
I have more than 400 files and not all of them have this line:
"somc:colorizable"
davidbar93 said:
I have more than 400 files and not all of them have this line:
"somc:colorizable"
Click to expand...
Click to collapse
Change the ones that do.
XperienceD said:
Change the ones that do.
Click to expand...
Click to collapse
It is too complicated to search them
Can you please mod it for me?
davidbar93 said:
It is too complicated to search them
Click to expand...
Click to collapse
Then re-read the guide, which as it is was re-written by me and as I explain how to search for them you've either not read the guide properly or just being lazy. So read every last word, then re-read it then re-read it as you follow each step.
XperienceD said:
Then re-read the guide, which as it is was re-written by me and as I explain how to search for them you've either not read the guide properly or just being lazy. So read every last word, then re-read it then re-read it as you follow each step.
Click to expand...
Click to collapse
Thank you very much ,it worked. Appreciate it a lot :good:

recompile apk

can you help me to recompile phone.apk with one change.
garik345 said:
can you help me to recompile phone.apk with one change.
Click to expand...
Click to collapse
Not really re-compiling, but have you tried xposed framework yet?
chicguy said:
Not really re-compiling, but have you tried xposed framework yet?
Click to expand...
Click to collapse
No, xposed framework bad to use with miui based rom.
garik345 said:
No, xposed framework bad to use with miui based rom.
Click to expand...
Click to collapse
So what do you want to do? de-compile Phone.apk, edit some files, then re-compile it? With apktool, right?
artit said:
So what do you want to do? de-compile Phone.apk, edit some files, then re-compile it? With apktool, right?
Click to expand...
Click to collapse
right, but when i want to do re-compile i get error.
i also take error when re-compile without changes.
garik345 said:
right, but when i want to do re-compile i get error.
i also take error when re-compile without changes.
Click to expand...
Click to collapse
Yes, I got that error when I try to pack Setting.apk. It's because MIUI apk use some directory notation that not standard to apktool.
Ex. values-hugeui
I solve this by changing values-hugeui to values-xxhdpi (or maybe values-xhdpi, don't know that hugeui means exactly). If values-xxhdpi exists, you can try to merge all files and config in it.
garik345 said:
right, but when i want to do re-compile i get error.
i also take error when re-compile without changes.
Click to expand...
Click to collapse
May I correct my wrong answer, MIUI use its own apktool & aapt. So to rebuild MIUI apk you should add ~/path/to//miui/tools to your $PATH environment and it should be at the start of $PATH to override other apktool & aapt.

Categories

Resources