FORUMS

New Xposed for Lollipop 5.0 Update Fixes Major Bugs

Senior Recognized Developer rovo89 has patched Xposed for Lollipop 5.0 to … more

Download Sony’s new AOSP-like concept for Xperia Z3

Over in our forums, Recognized Contributor Jozinek has posted a very … more

OnePlus 2 vs Moto X Style: Which is The Better Flagship?

Two big industry names have announced their newest flagship phones within the … more

Making Your Own Xposed Modules Is Easier Than You Think

Close to the heart of XDA is the Xposed Framework by Rovo89. Most of … more

Recompile and overwrite applications in system/app

88 posts
Thanks Meter: 119
 
By UndeadCretin, Member on 14th January 2009, 10:04 AM
Post Reply Subscribe to Thread Email Thread
16th January 2009, 09:37 AM |#11  
worry's Avatar
Senior Member
Flag Seattle
Thanks Meter: 2
 
More
Ok, I managed to compile it without any editing of xml.
Just added stdlib, string, vector headers to dozen of cpp/h.
 
 
16th January 2009, 09:46 AM |#12  
OP Member
Flag Kent
Thanks Meter: 119
 
More
Quote:
Originally Posted by worry

>Managed to fix the java issue by modifying public_api.xml. Then hit several more C++ problems which I fixed and finally I can build the lot!

Can you write, what did you fix?

To fix the java issue, I modified frameworks/base/core/java/android/hardware/SensorManager to change the LIGHT_NO_MOON value to 0.0010f (from 0.001f) and in out/target/common/obj/PACKAGING I modified the <field name="LIGHT_NO_MOON" to have value-"0.0010f">

After this there were several other c++ files which were missing relevant includes. I'm afraid I didn't keep a note of these so cannot provide much detail but mostly they were missing one of the following

#include "stdlib.h"
#include "string.h"
#include "stdio.h"

I think one file needed the following include

#include <string>

and there were a couple of other files that needed other includes. The best way to find these is to google for the function name that isn't building and you should be able to find the appropriate include (that's how I did it).

Hope that helps a bit!
16th January 2009, 12:12 PM |#13  
Member
Thanks Meter: 19
 
More
were you able to repo sync after adding the local_manifest.xml?
16th January 2009, 03:17 PM |#14  
OP Member
Flag Kent
Thanks Meter: 119
 
More
Quote:
Originally Posted by ximonx

were you able to repo sync after adding the local_manifest.xml?

I did try that previously but it didn't work. I don't think the relevant files for the dream build are available in the release-1.0 branch. This wasn't a problem for me since I'm only interested in building the applications which work fine with the generic build.
17th January 2009, 10:54 AM |#15  
Senior Member
Thanks Meter: 0
 
More
I would like to do the same for the mms application. Could you give me the steps or a link how to do it? I mean do I need the whole sources from android platform to do it? How can I just compile one application?
19th January 2009, 09:10 AM |#16  
OP Member
Flag Kent
Thanks Meter: 119
 
More
Quote:
Originally Posted by Phlogiston

I would like to do the same for the mms application. Could you give me the steps or a link how to do it? I mean do I need the whole sources from android platform to do it? How can I just compile one application?

I downloaded the whole Android source (the release-1.0 branch) and compiled the lot. It may be possible to just build the individual application but I do not know how. It is not vital to build for the dream platform if you only care about the applications since they will work fine with the generic build.

So the basic steps to start are:

Get yourself a Linux or Mac OS platform (I use Ubuntu running in VMWare on my XP box).

Follow the instructions here: http://source.android.com/download but when you come to repo init add the flag -b release-1.0

Fix various build problems
26th July 2009, 10:29 PM |#17  
Member
Thanks Meter: 19
 
More
When recompiling individual apps to replace system apps is there a way of just building a single application or does the entire thing need making?
27th July 2009, 12:00 AM |#18  
Senior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by ximonx

When recompiling individual apps to replace system apps is there a way of just building a single application or does the entire thing need making?

My experience is that you have to do the whole thing if you are building from source. There is one way I know of to get around this, which is to use baksmali and smali.
27th July 2009, 10:58 AM |#19  
Member
Thanks Meter: 19
 
More
Just to be clear, making the entire thing = build from source root?
27th July 2009, 03:56 PM |#20  
Senior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by ximonx

Just to be clear, making the entire thing = build from source root?

If you are asking me--yes, that's what I mean. Make sure to build for dream-open as the target (it's generic by default).
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes