I just copied and pasted the code to allow for the app to save to an SD card using: android:installLocation="preferExternal"... and it says theres an error in my manifest now. It keeps saying "error: No resource identifier found for attribute 'installLocation' in package 'android'". It's worked fine on every other app I've tried it on, whats wrong?
Probably wrong sdk. You need at least v8 (2.2). If you still want to be compatible with older platforms then just set in manifest <uses-sdk android:minSdkVersion="7" />. Be careful with that.
I'm trying to port firefox os(B2G) to my device (HTC Desire HD). While building it stops because of error at libgui in SurfaceTextureClient.cpp
last few lines of build log
Code:
target thumb C++: libgui <= frameworks/base/libs/gui/SurfaceTextureClient.cpp
frameworks/base/libs/gui/SurfaceTextureClient.cpp: In member function 'virtual int android::SurfaceTextureClient::setUsage(uint32_t)':
frameworks/base/libs/gui/SurfaceTextureClient.cpp:500: error: 'GRALLOC_USAGE_EXTERNAL_ONLY' was not declared in this scope
frameworks/base/libs/gui/SurfaceTextureClient.cpp:505: error: 'GRALLOC_USAGE_EXTERNAL_BLOCK' was not declared in this scope
make: *** [out/target/product/ace/obj/SHARED_LIBRARIES/libgui_intermediates/SurfaceTextureClient.o] Error 1
and the full build log is here
I think this happens because of the build system doesn't build
Code:
hardware/qcom/display/libgralloc/
before building
Code:
frameworks/base/libs/gui/
How can I tell the B2G build system to do that? Or is there any other way to get around this without breaking(like can't see anything) the build?
Here is my B2G manifest file.
I know this belongs in the developer forum but I still can't post in it
In your device blobs you are telling it to make hardware/com/display or display_legacy or the like correct? One way to at least get past this error and possibly get either further clues or have it compile would be to just add the header to this file or reference it as a dependency in your frameworks/base makefiles. These are just some ideas. Its hard without knowing where you are pulling these from (cm repo, Google, linaro, b2g, or whatever) so I can look at the code and makefiles. But normally this sort of thing will be an adjustment needed to your makefiles. Its just finding which, or if its simply a missing statement like this in your device makefiles TARGET_QCOM_DISPLAY_VARIANT := legacy
Pacman for the 3vo CDMA
Trying to learn how to do all this stuff, current just been cherry picking various user submitted stuff such as expanded volume controls, multi window, clear all to the recents menu.
Today I wanted to see if I could get PIE controls working just for my own pleasure since i hate how bulky the stock UI is. Any way I thought I was going well but now I'm stuck.
Trying to cherry pick:
Pie Controls part 1 of 2 http://review.cyanogenmod.org/#/c/34026/
Pie Controls part 2 of 2 http://review.cyanogenmod.org/#/c/34681/
Any way, I got an error then I manually added the unmerged files to the various folders and did 'git commit' and now I'm stuck in this terminal and I can't seem to do anything from here:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Not sure what I'm supposed to do from here, whether I write out or exit or whatever.
(forgot to tick: "Yes, this thread is a question")
You need to write a commit message, then hit Ctrl-O, Enter and Ctrl-X.
Thanks I'll give it a go.
Damn, couldn't get it to work: http://pastebin.com/DmQUCD6p
Code:
packages/apps/Settings/res/xml/testing_settings.xml:42: error: Error: No resource found that matches the given name (at 'title' with value '@string/testing_wifi_info').
packages/apps/Settings/res/xml/testing_wifi_settings.xml:16: error: Error: No resource found that matches the given name (at 'title' with value '@string/testing_wifi_info').
packages/apps/Settings/res/xml/testing_wifi_settings.xml:21: error: Error: No resource found that matches the given name (at 'title' with value '@string/wifi_api_test').
packages/apps/Settings/res/xml/testing_wifi_settings.xml:29: error: Error: No resource found that matches the given name (at 'title' with value '@string/wifi_config_info').
packages/apps/Settings/res/xml/testing_wifi_settings.xml:37: error: Error: No resource found that matches the given name (at 'title' with value '@string/wifi_status_test').
make: *** [/home/parker/android/omni/out/target/common/obj/APPS/Settings_intermediates/src/R.stamp] Error 1
make: *** Waiting for unfinished jobs....
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
#
# configuration written to .config
#
make[1]: Leaving directory `/home/parker/android/omni/kernel/lge/mako'
frameworks/base/core/java/android/provider/Settings.java:2861: QS_QUICK_PULLDOWN is already defined in android.provider.Settings.System
public static final String QS_QUICK_PULLDOWN = "qs_quick_pulldown";
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
make: *** [/home/parker/android/omni/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-full-debug.jar] Error 41
real 2m49.709s
user 1m2.552s
sys 0m6.616s
[email protected]:~/android/omni$
parker09 said:
Damn, couldn't get it to work: http://pastebin.com/DmQUCD6p
Code:
packages/apps/Settings/res/xml/testing_settings.xml:42: error: Error: No resource found that matches the given name (at 'title' with value '@string/testing_wifi_info').
packages/apps/Settings/res/xml/testing_wifi_settings.xml:16: error: Error: No resource found that matches the given name (at 'title' with value '@string/testing_wifi_info').
packages/apps/Settings/res/xml/testing_wifi_settings.xml:21: error: Error: No resource found that matches the given name (at 'title' with value '@string/wifi_api_test').
packages/apps/Settings/res/xml/testing_wifi_settings.xml:29: error: Error: No resource found that matches the given name (at 'title' with value '@string/wifi_config_info').
packages/apps/Settings/res/xml/testing_wifi_settings.xml:37: error: Error: No resource found that matches the given name (at 'title' with value '@string/wifi_status_test').
make: *** [/home/parker/android/omni/out/target/common/obj/APPS/Settings_intermediates/src/R.stamp] Error 1
make: *** Waiting for unfinished jobs....
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
#
# configuration written to .config
#
make[1]: Leaving directory `/home/parker/android/omni/kernel/lge/mako'
frameworks/base/core/java/android/provider/Settings.java:2861: QS_QUICK_PULLDOWN is already defined in android.provider.Settings.System
public static final String QS_QUICK_PULLDOWN = "qs_quick_pulldown";
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
make: *** [/home/parker/android/omni/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-full-debug.jar] Error 41
real 2m49.709s
user 1m2.552s
sys 0m6.616s
[email protected]:~/android/omni$
Click to expand...
Click to collapse
Try removing line 2861 of frameworks/base/core/java/android/provider/Settings.java
BTW I prefer PA PIE over CM. I tried to port it but I got stuck as its too hard for my small brain
mithun46 said:
Try removing line 2861 of frameworks/base/core/java/android/provider/Settings.java
BTW I prefer PA PIE over CM. I tried to port it but I got stuck as its too hard for my small brain
Click to expand...
Click to collapse
Damn didn't work
I'll look into PA's PIE.
chasmodo said:
You need to write a commit message, then hit Ctrl-O, Enter and Ctrl-X.
Click to expand...
Click to collapse
Hey man, I want to get into building from source. I understand mostly everything about it, just got some questions:
1.What is the minimum size hard drive that can be used? (including space for java,python,all the other build tools)
2.Is 3GB of ram enough? I can upgrade to 8GB
parker09 said:
Damn didn't work
I'll look into PA's PIE.
Click to expand...
Click to collapse
Do this on root of android repo and pastebin the output
cat frameworks/base/core/java/android/provider/Settings.java
arDroid.99 said:
1.What is the minimum size hard drive that can be used? (including space for java,python,all the other build tools)
Click to expand...
Click to collapse
I'd say 80Gbs would be a minimum because you'll want to use ccache to speed up your builds, otherwise they'll take forever to complete.
arDroid.99 said:
2.Is 3GB of ram enough? I can upgrade to 8GB
Click to expand...
Click to collapse
You should upgrade if you can afford to. Small memory means that the compiler will have to use swap a lot, and that will slow you down considerably.
arDroid.99 said:
Hey man, I want to get into building from source. I understand mostly everything about it, just got some questions:
1.What is the minimum size hard drive that can be used? (including space for java,python,all the other build tools)
2.Is 3GB of ram enough? I can upgrade to 8GB
Click to expand...
Click to collapse
SSD Recommended
BTW I think I know the issue OP is facing, What I would do is Change the name of the qs thing in Settings.java and the other file that calls for it - NO IDEA WHERE IT IS WITHOUT SEEING THE PATCH
Okay thanks for the replies. I'll try again shortly.
Your issue is that the comit 2/2 is setting PIE settings to packages/apps/Settings/ but OMNI do not edit this package but have their own.
packages/apps/omni/gears this is where you must implement comit 2/2,
sevenup30 said:
Your issue is that the comit 2/2 is setting PIE settings to packages/apps/Settings/ but OMNI do not edit this package but have their own.
packages/apps/omni/gears this is where you must implement comit 2/2,
Click to expand...
Click to collapse
Any luck? I added the commit to packages/apps/omnigears but threw out errors so mind didn't build.
parker09 said:
Any luck? I added the commit to packages/apps/omnigears but threw out errors so mind didn't build.
Click to expand...
Click to collapse
Tried my commits for settings and fw base for PIE in gerrit. I used PA PIE though . I can't test it now. If you can it Will be great help
I'll just restart my laptop & will try in 2 minutes.
@mithun46 couldn't get it to work, maybe someone else would have better luck with it.
parker09 said:
I'll just restart my laptop & will try in 2 minutes.
@mithun46 couldn't get it to work, maybe someone else would have better luck with it.
Click to expand...
Click to collapse
I know am uploading the fix. Be sure to repo sync before applying
Fixed . Also if there are errors please pastebin them
https://gerrit.omnirom.org/1685
https://gerrit.omnirom.org/1686
https://gerrit.omnirom.org/1690
mithun46 said:
I know am uploading the fix. Be sure to repo sync before applying
Fixed . Also if there are errors please pastebin them
https://gerrit.omnirom.org/1685
https://gerrit.omnirom.org/1686
https://gerrit.omnirom.org/1690
Click to expand...
Click to collapse
Hey thanks for the replies. Still not getting it to compile - probably a error on my end (I'm still a noob at this building thing).
Pastebin: http://pastebin.com/0bkdStnF
parker09 said:
Hey thanks for the replies. Still not getting it to compile - probably a error on my end (I'm still a noob at this building thing).
Pastebin: http://pastebin.com/0bkdStnF
Click to expand...
Click to collapse
Thanks I will fix in 3 hours
mithun46 said:
Thanks I will fix in 3 hours
Click to expand...
Click to collapse
saw the new commits, trying now.
parker09 said:
saw the new commits, trying now.
Click to expand...
Click to collapse
Same here. Am also building. Seems the error is fixed
hi all
we have included this device in open devices project
you can check news about project on
http://developer.sonymobile.com/know.../open-devices/
feel free to fork, build, fix and push back
Br
J
Wohooo! Finally! [emoji106] [emoji2] [emoji3]
Excellent! An AOSP ROM is the only thing I can think is missing from an otherwise perfect device.
GCC here we come..
Andoroid L (5.0) code, binaries and guides are published
No working camera or modem, looks like we've still got awhile guys...
great news,thankss
nice
I'm syncing it now. I'm going to do a blind build (not changing anything just going with what's already there) because I have yet to unlock my bootloader and won't until they can figure out a way so at least the camera and noise cancellation don't get messed up when unlocking (if I go back to a sony stock rom I know it won't matter on AOSP)
graffixnyc said:
I'm syncing it now.
Click to expand...
Click to collapse
Preparing to build as well. Like you, I haven't BL unlocked and won't until the DRM issues are resolved.
jerpelea said:
Andoroid L (5.0) code, binaries and guides are published
Click to expand...
Click to collapse
Your work is really appreciated. FYI, I convinced a friend to buy a Z3C in large part due to your AOSP commitment. [emoji106]
Guessing we'll need to reverse engineer the camera and modem binaries? Is that right?
illogic6 said:
Guessing we'll need to reverse engineer the camera and modem binaries? Is that right?
Click to expand...
Click to collapse
no
Reverse Engeneering
In other words - SONY will deliver the required drivers or better all required driver will be there in a while...
I get compile error:
Code:
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c: In function 'bta_av_audio_sink_getconfig':
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: error: 'p_sink' undeclared (first use in this function)
if (bta_av_co_audio_sink_has_scmst(p_sink))
^
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: note: each undeclared identifier is reported only once for each function it appears in
make: *** [out/target/product/aries/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/co/bta_av_co.o] Error 1
make: *** Waiting for unfinished jobs....
help appreciated
m0d said:
I get compile error:
Code:
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c: In function 'bta_av_audio_sink_getconfig':
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: error: 'p_sink' undeclared (first use in this function)
if (bta_av_co_audio_sink_has_scmst(p_sink))
^
external/bluetooth/bluedroid/main/../btif/co/bta_av_co.c:557:52: note: each undeclared identifier is reported only once for each function it appears in
make: *** [out/target/product/aries/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/co/bta_av_co.o] Error 1
make: *** Waiting for unfinished jobs....
help appreciated
Click to expand...
Click to collapse
just re sync your tree and fix is there
That inform you in: <insert the cpu thread number of your computer> ??? Please
I got a build to finish. I'll post the boot and system img for someone to try.. I'm not going to go through the trouble yet to make a flashable zip until we at least know it boots. I'll upload the images now
Posted the images: http://forum.xda-developers.com/z3-compact/development/img-aosp-5-0-boot-imgs-t2940499
So @NisseGurra flashed the build I made yesterday here is what he found to be broken:
no wifi, no network, some reboots, no usb storage, no external sd, no sound or camera
But its very snappy, looking forward to a functional aosp
Thank you for the guides,
I was able to compile AOSP for D5803 successfully.
A couple of issues,
First,
Has the Cherry-Pick for external/libnfc-nci/ that is provided in the guide been merged?
As I get the following error,
Code:
/external/libnfc-nci $ git cherry-pick 83cf98d0a5018e023eb9cc8b4e394957f9a6989f
fatal: bad object 83cf98d0a5018e023eb9cc8b4e394957f9a6989f
(Updated on blog to correspond with Shinano Issue.)
Second,
I get the following error when I try to output zipped package,
Code:
[B]No private recovery resources for TARGET_DEVICE aries
No recovery.fstab for TARGET_DEVICE aries[/B]
make: *** no rule to make target `otapackage'. stop.
Does this have anything to do with: TARGET_BOOTLOADER_BOARD_NAME := D5803
or that it is called aosp_d5803 (aosp_d5803.mk)
UPDATE: otatools seems to work, [" . build/envsetup.sh && time lunch aosp_d5803-userdebug && make otatools "].
But I can not find the output / output directory for package
Oh,
Is there supposed to be a userdata.img too?
Looking around a different sources mention it, however there is no userdata.img when I compiled it.
Thank you for your time
Hi i am buildng omni rom for manguro and when its finnish it is incomplete the apps are only 4 or 6 and no frameworks i am under 5.1.1
Why this happens?¿
Any error it finnished well and it give my the package but there is no compile apps only a few
i have run it another time and:
hardware/ti/omap4xxx/test/CameraHal/camera_test_menu.cpp: In function 'int startPreview()':
hardware/ti/omap4xxx/test/CameraHal/camera_test_menu.cpp:1089:17: error: 'class android::Camera' has no member named 'setPreviewTexture'
camera->setPreviewTexture(previewSurface->getIGraphicBufferProducer());
^