Re: [android-porting] Build Android Source Code On Windows Platform

2012-10-18 Thread David Turner
On Thu, Oct 11, 2012 at 9:18 AM, Shivanagouda Biradar shivanagouda.bira...@asmaitha.com wrote: Hi All, I would like to build Android source code , having linux drivers, on windows platform. Please do suggest . Simply speaking, building directly from Windows is not supported (it's far too

[android-porting] Re: Why packagemanager drops the vendor apps (Nativity Activity)'s so file.

2012-04-22 Thread David Turner
+cc android-porting, +bcc android-ndk That's not an NDK question, I'm redirecting you to android-porting. On Sat, Apr 21, 2012 at 5:33 PM, chinlin@tw-roc chinlin0...@gmail.comwrote: If you put your Native Activity apk in /vendor, the .so file will not be extracted and dropped by package

[android-porting] Re: permissions failing from init on first boot after flashing device

2012-04-18 Thread David Turner
I'm redirecting you to android-porting@, this is not related to the NDK. On Wed, Apr 18, 2012 at 8:30 PM, girlCoder best.car...@gmail.com wrote: I am working on a project that creates custom images for an Android device. We edit the kernel and other os files. Our system init calls

[android-porting] Re: Static lib creation issue

2011-12-19 Thread David Turner
Hello, First of all, this is not a question related to the NDK, so I'm redirecting this to android-porting instead. On Mon, Dec 19, 2011 at 8:39 AM, Meraj Ahmad Ansari meraj.ahmad.ans...@hotmail.com wrote: Hi List, I have 2 questions - Q1- - I am trying to build static lib with

[android-porting] Re: What permissions does AndroidManifest.xml need to access a device driver?

2011-10-17 Thread David Turner
Hello, I think this is not related to the NDK, try android-porting@ instead, where people with similar problems will likely be able to help you Regards On Fri, Oct 14, 2011 at 7:08 PM, Anil anil.phi...@motorolasolutions.comwrote: What permissions does AndroidManifest.xml need to access a

Re: [android-porting] VMGL integration with android emulator

2011-10-11 Thread David Turner
On Tue, Oct 11, 2011 at 6:54 AM, Inder inderjeet.tha...@gmail.com wrote: Hi All, I have build VMGL for host (ubuntu 10.04). Can anybody let me know how I can integrate VMGL in android emulator? or How to build VMGL for Android emulator? I'm afraid this is not possible, nor desirable: -

[android-porting] Re: How to debug Android boot on emulator?

2011-10-06 Thread David Turner
This is not related to the NDK, try android-porting instead. On Wed, Oct 5, 2011 at 2:51 AM, Dmitry divis1...@gmail.com wrote: Hi, I'm trying to run custom Android build on emulator. This build is created for Cortex-a9, so I had selected the -armv7 kernel image (from

[android-porting] Re: CAN interface missing in NDK platforms

2011-09-01 Thread David Turner
that the bitrate is not set. This can be done very smoothly using the ip tool, ... # ip link set can0 type can bitrate 125000 # ip link set can0 up It comes with the linux distribution for my AM3517 nut kind of frustrating that it is not in Android. Regards Palsson On Aug 31, 3:10 pm, David Turner di

Re: [android-porting] muti-threaded native code using JNI

2011-08-25 Thread David Turner
Why are you calling pthread_exit(0) on the main thread, this will terminate your application immediately. You can't block on the main UI thread (which calls your JNI callback). You'll need to find a different synchonization primitive (see AsyncHandlers in the SDK doc) On Wed, Aug 24, 2011 at

Re: [android-porting] Gingerbread linker crash on Linux kernel 3.0

2011-08-24 Thread David Turner
It's the function that calls a shared-library or executable list of constructor functions. It is likely a constructor crashing. Unfortunately, the shared library's mapping is not available to gdb until after the constructors have run It's a know bug, you could try changing the lines in linker.c

Re: [android-porting] why __func__ variable contains the type signature of the function except its bare name?

2011-08-04 Thread David Turner
Use __FUNCTION__ instead of __func__, see http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Function-Names.html On Thu, Aug 4, 2011 at 8:04 AM, Simon Chan simonchan1...@gmail.com wrote: Hi all, Now I add debug info for my overlay hal module. #define LOG_FUNC_NAME LOGD(%s, __func__) the output

Re: [android-porting] Ginger Bread build errors on ubuntu 10.10 64 bit.

2011-07-01 Thread David Turner
This should be fixed now (but you may need to make clean build). Sorry, you were probably caught in the middle of various subtle C library changes, one of them introduced the issue, but another one fixed it. On Thu, May 26, 2011 at 5:27 AM, maliha malihamari...@gmail.com wrote:

Re: [android-porting] Where to send kernel patches?

2011-06-22 Thread David Turner
Hello, On Wed, Jun 22, 2011 at 1:30 AM, Jason killert...@gmail.com wrote: I'm wondering if anyone can point me in the right direction to submitting a kernel patches for Android. I'm working on improving support for the w8001 (see my original mail at

Re: [android-porting] Is there OSAL layer

2011-06-06 Thread David Turner
On Fri, Jun 3, 2011 at 11:01 AM, Vikas KM vikki...@gmail.com wrote: Hi, Is there any OSAL layer in Android Build System..? What do you mean by Android Build System? The OSAL within the platform is called the kernel interface :-) -- Regards Vikas KM -- unsubscribe:

[android-porting] Re: User input, getevent and keydown events

2011-05-25 Thread David Turner
This is not related to the NDK, you should try android-porting instead. Briefly speaking, getevent() returns the events sent from the kernel to the framework. Since everything seems good here, you can forget about a driver/hardware failure. It looks like the framework input handling code is

Re: [android-porting] GL acceleration in Emulator - demo - at Google IO

2011-05-20 Thread David Turner
to use it. usage instructions are going to change a lot in the coming weeks so I prefer not to document these officially. Thanks for your comprehension - David Thanks Suman On 16-May-2011, at 9:09 PM, David Turner wrote: On Fri, May 13, 2011 at 3:58 PM, Suman Saraf sumansa

Re: [android-porting] Whether NeofreeRunner is compatible with android 2.3

2011-05-18 Thread David Turner
On Tue, May 17, 2011 at 2:38 PM, vishnu vardhanraj4...@gmail.com wrote: this is Ravulapati.Iam new to android porting.we r intersted to port android 2.3 version (ginger bread) on Neofree Runner whether it supports or not.If it supports can any body send links to get source code and all stuff

Re: [android-porting] GL acceleration in Emulator - demo - at Google IO

2011-05-16 Thread David Turner
On Fri, May 13, 2011 at 3:58 PM, Suman Saraf sumansa...@gmail.com wrote: Hello, I just saw this demo on youtube. Looks very cool. I have been working independently on the same problem trying to remote GL calls to the host. This basically means mapping EGL and GL calls to GLX/GL on Linux

Re: [android-porting] Info required on Goldfish Kernel

2011-05-16 Thread David Turner
On Fri, May 13, 2011 at 7:56 AM, Srinidhi K V srinidh...@yahoo.co.inwrote: Hi All, I was wondering why there is no Goldfish kernel after 2.6.29 . Is it google stopped forward porting it to the subsequent versions or is there something new in subsequent kernels (2.6.30 onwards) that wont

Re: [android-porting] Upgrading Goldfish Kernel

2011-05-16 Thread David Turner
On Thu, May 12, 2011 at 5:00 PM, Srinidhi K V srinidh...@yahoo.co.inwrote: Hi, I have set of device drivers which works on 2.6.35 kernel. I am developing a module which will integrated with Android. During the development stage I want to test the module on SDK before doing it on real

Re: [android-porting] Running my own libgps.so on emulator

2011-05-16 Thread David Turner
IIRC, the hardware abstraction library will try to load a library named /system/lib/hw/libgps.hardware.so first before any system wide libgps.so Where hardware corresponds to the hardware name, and is goldfish when running under emulation. See development/tools/emulator/system/gps/Android.mk for

Re: [android-porting] Emulator:how are add-on platform images merged ?

2011-05-16 Thread David Turner
They are not merge, they are simply searched in numerical order (so sysdir.1 first, then sysdir.2, etc...) A platform add-on typically provides a full system.img if it provides new system libraries / frameworks. There is no way to provide partial system images that get merged into the main one.

[android-porting] Re: android-ndk,handler usbfs read write

2011-03-18 Thread David Turner
On Fri, Mar 18, 2011 at 3:26 AM, WuZhenda wuzhe...@gmail.com wrote: hi,all I have ported the libusb hidapi to the android, but when I use ndk-build to operate the usb device on java platform,I always return false. I doubt you're using ndk-build to operate anything on the device :-)

Re: [android-porting] Android boot process deadlock

2011-03-11 Thread David Turner
Not NDK-related. Don't cross-post! On Fri, Mar 11, 2011 at 1:40 PM, Amit Pundir pundira...@gmail.com wrote: Hi, I'm trying to create a surface while handling the InputReader. I followed this test given here frameworks/base/services/surfaceflinger/tests/surface/surface.cpp to create a

Re: [android-porting] Re: init.architecture.rc

2011-02-11 Thread David Turner
On Fri, Feb 11, 2011 at 10:19 AM, Stefan sgo...@dh-electronics.de wrote: It's not architecture, but board specific. So, I have to delete the goldfish-init and write my board specific file. You don't have to delete it technically, it will just be ignored. What do I have to write into

Re: [android-porting] Android NDK: x86-4.2.1 libsupc++ support

2011-02-02 Thread David Turner
, 2011 at 3:46 PM, David Turner di...@android.com wrote: On Tue, Feb 1, 2011 at 4:13 PM, Subramani Venkatesh subbu31m...@gmail.com wrote: Hi, I am porting an application to Android x86 platform There is no such thing for now, though we're working on it :-) , while porting I

Re: [android-porting] Android NDK: x86-4.2.1 libsupc++ support

2011-02-01 Thread David Turner
On Tue, Feb 1, 2011 at 4:13 PM, Subramani Venkatesh subbu31m...@gmail.comwrote: Hi, I am porting an application to Android x86 platform There is no such thing for now, though we're working on it :-) , while porting I understood that my application depends on Android libsupc++ support for

[android-porting] Re: using the camera service from android native code

2011-01-21 Thread David Turner
Redirecting to android-porting, this is not NDK-related. On Fri, Jan 21, 2011 at 8:45 PM, ajay mna...@gmail.com wrote: hi, we are trying to modify the android filesystem.we are trying to use the camera service from a c++ code.we are using the cameralistner class present in

Re: [android-porting] SDK v.s. SDK-addon v.s. hardware build.

2011-01-19 Thread David Turner
On Wed, Jan 19, 2011 at 7:06 AM, freakingtux kees.jongenbur...@gmail.comwrote: Hello, I am trying to understand how to deploy and use the different Android platform make targets. I am working with the following cases: Case-1) I will need to make small modifications to the standard Android

[android-porting] Re: Enable and disable ADB Driver initialization dynamically

2011-01-06 Thread David Turner
nto android-ndk related, try android-porting On Thu, Jan 6, 2011 at 3:42 PM, b_hirawat b.hirawa...@gmail.com wrote: HI, I am trying to enable and disable ADB driver initialization dynamically in my android device. I have tried to block the ADB initialization in adb_function_init(void)

Re: [android-porting] How to permanently mount a SD card in android-x86 OS?

2010-12-18 Thread David Turner
Please use the android-x86 forums instead, not the official Android ones, for such questions. On Sat, Dec 18, 2010 at 5:22 PM, 捷超 王 ee07b...@gmail.com wrote: The SDCARD variable methods provided on http://www.android-x86.org/documents/sdcardhowto seems only suitable for temporarily mount a a

Re: [android-porting] Re: Native code segfault on Tegra2

2010-12-16 Thread David Turner
system image. Howe do you run the code exactly? Is it through JNI or calling a standalone executable from the adb shell? If all else fails, I will root it (Viewsonic gTablet) and see if changing the ulimit will produce a core dump. Thanks, Howard On Dec 14, 2:14 am, David Turner di

Re: [android-porting] libgps.so on emulator?

2010-12-01 Thread David Turner
The SDK system images contain /system/lib/hw/libgps.goldfish.so which implements the GPS implementation for the emulated session. Source code is available under sdk/emulator/gps/ On Fri, Nov 26, 2010 at 2:59 PM, Dudero sinfanh...@googlemail.com wrote: Hello, I do not understand why I can not

Re: [android-porting] Android build issue

2010-10-26 Thread David Turner
That's right, the emulator is built as a 32-bit binary, so you need 32-bit development libraries for it to work. On Tue, Oct 26, 2010 at 9:38 AM, Przemyslaw Wegrzyn pwegr...@codepainters.com wrote: On 10/26/10 4:37 PM, Butchi Peddi wrote: I am trying to build android source on Ubuntu(9.10)

Re: [android-porting] CANNOT LINK EXECUTABLE

2010-10-26 Thread David Turner
Probably a problem in the dynamic linker. You should try to enable debug traces to get more information. See bionic/linker/linker_debug.h and the end of bionic/linker/linker.c for more details. On Tue, Oct 26, 2010 at 12:38 PM, jakiee janghwa...@gmail.com wrote: I ran the Eclair code on superH

Re: [android-porting] Is it or will it be possible to install a driver through an app?

2010-10-17 Thread David Turner
Installing a kernel driver requires root access (for good reasons), applications are not allowed to do that. On Thu, Oct 7, 2010 at 7:29 PM, Andres Buritica and...@thelinuxkid.comwrote: Hi, I saw the release of the Netflix video out adapter for the iPhone and it made me wonder if something

[android-porting] Re: [Error ] annot find symbol symbol : method log(java.lang.String)

2010-09-22 Thread David Turner
Please avoid cross-posting !! this should go into android-developers only. On Wed, Sep 22, 2010 at 6:57 PM, Atul Raut atul.dr...@gmail.com wrote: Hi I have imported import android.os.Message; still giving error. On Wed, Sep 22, 2010 at 10:24 PM, Atul Raut atul.dr...@gmail.com wrote: Hi am

Re: [android-porting] Error when build Froyo for Emulator

2010-08-29 Thread David Turner
You should select 1 (Device); the simulator is something different than the emulator, and I'm not sure it's supported anymore anyway. hope this helps On Sat, Aug 28, 2010 at 4:13 PM, Tung Dang tung...@gmail.com wrote: Hi all , I build the Android system image (Froyo) for emulator mode and

Re: [android-porting] libc in dynamic linker

2010-07-18 Thread David Turner
The dynamic linker uses a special version of the static c library. The shared c library is used by other shared libraries and dynamic executables. Prelinking is only an optimization used to speed up shared library loading and reducing their sizes. It is not required. Regards. On Friday, July

Re: [android-porting] Android Kernel Vs Linux Kernel.

2010-07-07 Thread David Turner
On Wed, Jul 7, 2010 at 5:57 AM, sanjeev sharma sanjeevsharmae...@gmail.comwrote: Hi, Let me tell you that to run Android on Linux kernel you need Android specific driver to Linux kernel like. Belows is feature of an Android based kernel. 01). GoldFish : Qemutrace , FB

Re: [android-porting] boot speed -- scan package, IO buffering, and prefetch

2010-06-24 Thread David Turner
The problem is that you didn't count the time to do the cat in your overall benchmark. Hence, the savings you present are purely hyptohetical, even if you implement prefetching. On Sun, Jun 20, 2010 at 4:31 PM, Tomei tomei.ninge...@gmail.com wrote: Hello, It seems package scanning speed is

Re: [android-porting] Android Openssl library - libcrypto.so and libssl.so

2010-06-22 Thread David Turner
Remove libdl from your LOCAL_SHARED_LIBRARIES, and add LOCAL_LDLIBS += -ldl instead in your Android.mk The Android.mk is for a full system/firmware build, and assumes that libdl is going to be built at the same time than libssl. For the NDK, you need to tell your libcrypto/libssl to rely on the

Re: [android-porting] Building android without debug symbols

2010-06-14 Thread David Turner
I'm not sure to understand what you want, but the debug symbols are removed from the system images by default by the build. On Mon, Jun 14, 2010 at 4:21 AM, yogesh embedded.yog...@gmail.com wrote: Hi, I am trying to build android eclair without debug symbols for hawkboard, so that its

Re: [android-porting] How to make the emulator work with the Custom Android IMage

2010-05-28 Thread David Turner
use -show-kernel to get kernel messages, and -logcat '*:v' to get logcat traces, that should tell you a lot about what's going wrong. On Thu, May 27, 2010 at 11:32 PM, gopu gopuraj...@gmail.com wrote: Hi , Created a custom Android Image Its working in real hardware.But in emulator its not

Re: [android-porting] Regarding Toolchain

2010-05-21 Thread David Turner
The toolchain sources live at kernel.org, to get them try: repo init -u android.git.kernel.org/toolchain/manifest.git -b master repo sync Alternatively, NDK r4 comes with several scripts that can help your download / build / install them. See ndk/build/tools/rebuild-all-prebuilt.sh On Fri, May

Re: [android-porting] Re: Emulator's /dev/ttyS0

2010-05-02 Thread David Turner
the configuration? Justin On Jan 22, 1:51 pm, David Turner di...@android.com wrote: if you're using the -qemu -serial device option when starting the emulator, it will probably be mapped to /dev/ttyS2 or ttyS3 within the emulator. that's because the emulator uses a couple of serial

Re: [android-porting] Downloading android source through git

2010-04-16 Thread David Turner
android-x86.org has nothing to do with the official Android open-source tree. I recommend you ask on their forums instead, we won't be able to help you there. On Thu, Apr 15, 2010 at 11:21 PM, suhas suvisu...@gmail.com wrote: Hi, I want to download the android source for x86. I tried git and

Re: [android-porting] Re: Question on building modified framework code + windows emulator

2010-04-14 Thread David Turner
The problem is that the Cygwin gcc doesn't support the -mno-cygwin flag anymore. Try downgrading gcc to an earlier version instead, this should fix it. On Wed, Mar 24, 2010 at 11:48 AM, MBethDev mbeth...@gmail.com wrote: Hi Jett, thanks for replying. Tried following your suggestion but ran

Re: [android-porting] Re: Why Android 2.1 works so slow

2010-04-10 Thread David Turner
/SurfaceFlinger( 1731): extensions: GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_textu On 10 апр, 16:23, David Turner di...@android.com wrote: 2010/4/9 supermaximus79 andruschenk...@mail.ru I have built in chip s3c6410 2d and 3d

Re: [android-porting] Why Android 2.1 works so slow

2010-04-09 Thread David Turner
do you have hardware graphics acceleration or are you relying solely on software rendering ? 2010/4/9 Максим Андрущенко andruschenk...@mail.ru Hi! On my target platform, based on s3c6410 (armv6) Android works very slow! I use 16 bpp with resolution 800x480. Screen updates slow, seldom i see

Re: [android-porting] Running emulator from SDK built on android source

2010-03-16 Thread David Turner
emulator -verbose -show-kernel -logcat '*:v' -avd avd1 that might help you understand what's happening here On Thu, Mar 11, 2010 at 11:12 PM, Anandi heyan...@gmail.com wrote: HI all, I have built the android source and SDK on my Ubuntu machine successfully. I am now trying to run the

Re: [android-porting] Re: Set system time from radio

2010-03-06 Thread David Turner
with it of course, but if you don't know if it has already been applied, I would think it difficult to determine in the code. Is there a standard for this? Mike On Mar 3, 5:22 pm, David Turner di...@android.com wrote: Yes, you can use a NITZ unsolicited message. See hardware/ril/reference-ril/reference

Re: [android-porting] cupcake emulator crash on Windows

2010-03-03 Thread David Turner
From the error message, it looks like the latest versions of Cygwin have removed support for the -mno-cygwin flag. I believe we're working on a fix, in the meantime, try to install an older Cygwin version (if that is possible, I sincerely don't know yet) On Wed, Mar 3, 2010 at 1:27 AM, Santosh

Re: [android-porting] executable directories under /system partition

2010-03-03 Thread David Turner
Yes, it's an Android-specific security feature. Look at system/core/include/private/android_filesystem_config.h On Sun, Jan 24, 2010 at 8:46 PM, Jun Sun monkey.j...@gmail.com wrote: This might be a dumb question, but I can't seem to figure it out. In my donut build tree, I added some

Re: [android-porting] Re: running emulator build on actual platform

2010-03-03 Thread David Turner
, that's what I'm saying :-) ajay On Feb 26, 12:55 am, David Turner di...@android.com wrote: As far ar I know, the system images that are provided with the SDK are built in the same way than the ones that run on retail Dream/G1 and Magic/MyTouch devices. In other words, they are not tuned

Re: [android-porting] Set system time from radio

2010-03-03 Thread David Turner
Yes, you can use a NITZ unsolicited message. See hardware/ril/reference-ril/reference-ril.c:onUnsolicited() On Wed, Mar 3, 2010 at 2:25 PM, ms12 mstic...@gmail.com wrote: Is there a way to set the system time from the cell phone? I've searched ril.h and ril_commands.h and there seems to be no

Re: [android-porting] running emulator build on actual platform

2010-02-25 Thread David Turner
As far ar I know, the system images that are provided with the SDK are built in the same way than the ones that run on retail Dream/G1 and Magic/MyTouch devices. In other words, they are not tuned specifically for the emulator (but they contain emulator-specific code that is not part of the system

Re: [android-porting] Re: gdbserver - illegal instruction

2010-02-09 Thread David Turner
Please start here: http://android.git.kernel.org/?p=toolchain/gdb.git;a=summary On Tue, Feb 9, 2010 at 7:30 AM, Jim Ancona scarh...@gmail.com wrote: On Feb 9, 6:34 am, Mobile Enthusiast mobenthusi...@gmail.com wrote: Hi, I'm trying to run gdbserver on the Neo Freerunner, but I keep

Re: [android-porting] Accessing the NFS server from Android : RPC: Unknown protocol issue

2010-01-28 Thread David Turner
at 5:34 AM, David Turner di...@android.com wrote: And /etc/protocols is not supported either. See bionic/libc/bionic/stubs.c for the getprotobyname() implementation. On Tue, Jan 19, 2010 at 4:03 PM, David Turner di...@android.com wrote: /etc/services is not supported in Android. Instead

Re: [android-porting] Accessing the NFS server from Android : RPC: Unknown protocol issue

2010-01-19 Thread David Turner
/etc/services is not supported in Android. Instead the C library provides a hard-coded list. See bionic/libc/netbsd/net/services.h for the current list, and bionic/libc/tools/genserv.py for a Python script to update it. Hope this helps. On Tue, Jan 19, 2010 at 7:34 AM, krish24

Re: [android-porting] Accessing the NFS server from Android : RPC: Unknown protocol issue

2010-01-19 Thread David Turner
And /etc/protocols is not supported either. See bionic/libc/bionic/stubs.c for the getprotobyname() implementation. On Tue, Jan 19, 2010 at 4:03 PM, David Turner di...@android.com wrote: /etc/services is not supported in Android. Instead the C library provides a hard-coded list. See bionic

Re: [android-porting] Simulating accelerometer events natively?

2010-01-13 Thread David Turner
Hello, It would be easier to modify the emulator source code instead to read data directly from the OpenIntents simulator (as an example). See external/qemu/android/hw-sensors.c for the current sensor hardware emulation code, which is limited to rotating the virtual device at the moment. Hope

Re: [android-porting] ADBD not binding to port 5555

2009-12-20 Thread David Turner
Port is only used for local transports to emulator instances, not real devices. Iirc, the adbd daemon running on a device is listening on local port 5037. On Fri, Dec 18, 2009 at 4:26 AM, Hamilton Vera hamilton.lis...@gmail.comwrote: Greetings everyone. I am trying to deploy android 1.6

Re: [android-porting] Negative if else condition in Android.mk

2009-11-24 Thread David Turner
if*n*eq ($(TARGET_BUILD_VARIANT),user) ... endif On Tue, Nov 24, 2009 at 8:40 AM, vj vjvdixit.l...@gmail.com wrote: Hi, is there a way to implement a negative if/else statement within Android.mk. Example: I do not want the build to be of type user: So I would like something like this:

Re: [android-porting] Re: sigsuspend() hang-up

2009-11-10 Thread David Turner
Probably because Linux essentially delivers signals to random threads. So the signal handler is called but not in the thread that is doing the sigsuspend. You probably need to mask SIGIO in all other threads of your process, which sucks. A better alternative is to try something different. For

[android-porting] Re: How to build Android emulator for special platform?

2009-10-27 Thread David Turner
goldfish has nothing to do with HTC. It's the name of the Linux kernel architecture/machine configuration used to build the ARM-based kernel image specifically used by the emulator. The goldfish hardware is very unlike the one of a real device. the goldfish specific bits live in a branch on

[android-porting] Re: Closing TCP socket problem

2009-10-15 Thread David Turner
try using SO_REUSEADDR. Also using shutdown() before closing the socket might help. On Wed, Oct 14, 2009 at 2:52 AM, Yogi yogesh.agrawal2...@gmail.com wrote: Hi All, I have a server-client pogram on android where server will be listening on 3000 port and client will send request on the same

[android-porting] Re: Run Android directly on Qemu

2009-10-13 Thread David Turner
On Tue, Oct 13, 2009 at 10:32 AM, Xuan Zhang allsy1...@gmail.com wrote: Hi, Recently, I plan to do some experiment about virtual machine running mobile os. So I intend to run Android on Qemu rather than the android emulator. I have seen android has four images: kernel-qemu,system.img,

[android-porting] Re: Memory overcommit

2009-09-14 Thread David Turner
On Mon, Sep 14, 2009 at 3:53 PM, David Given d...@cowlark.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dianne Hackborn wrote: [...] If you turn off over-commit, I believe Android won't even boot on a G1, because Linux would need to assume that RAM is needed for every

[android-porting] Re: Memory overcommit

2009-09-13 Thread David Turner
On Sun, Sep 13, 2009 at 4:34 AM, David Given d...@cowlark.com wrote: Hello, I was rather startled recently to notice that the standard Android kernel appears to have the memory overcommit setting set to 1. This is --- as far as I can tell, the numbering got changed not long ago and not all

[android-porting] Re: Memory overcommit

2009-09-13 Thread David Turner
On Sun, Sep 13, 2009 at 4:34 AM, David Given d...@cowlark.com wrote: Hello, I was rather startled recently to notice that the standard Android kernel appears to have the memory overcommit setting set to 1. This is --- as far as I can tell, the numbering got changed not long ago and not all

[android-porting] Re: porting OpenMP : problem with using TLS keys from constructor routines

2009-09-08 Thread David Turner
I believe this bug has been fixed in the donut dynamic linker / C library. Yes, the first commit was not ok, was reverted, and another fix was submitted. Can you reproduce the problem with the current sources? On Mon, Sep 7, 2009 at 3:10 AM, Surinder srpl...@gmail.com wrote: Hi, I would

[android-porting] Re: Accessing my host devices on Android- Emulator

2009-08-27 Thread David Turner
no, it's not possible directly. Even if the emulator supported this, the Android kernel that runs under emulation doesn't support USB Host mode anyway. 2009/8/27 தங்கமணி அருண் thangam.ar...@gmail.com Hi All, I want to know, is it possible to access my USB pen drive on Android Emulator ?? I

[android-porting] Re: Emulator does not show up when using self-build kernel

2009-08-27 Thread David Turner
Please follows the instructions here to rebuild an emulator-specific kernel: http://android.git.kernel.org/?p=platform/external/qemu.git;a=blob;f=docs/KERNEL.TXT;h=7387e55d5362be8e2dc00e634277a9fdbdd66db6;hb=ceb00f8c44e26d948e28b7a3ccef8fd2068589d9 Anything else is likely to fail. 2009/8/26

[android-porting] Re: Failed to run cupcake on emulator

2009-08-22 Thread David Turner
The cupcake is not very indicative of what you're doing. You should at least try to explain exactly which branch/repository you're usingand how you configured your build. Also, using both a custom kernel and custom system image is fraught with peril. Couldn't you try one without the other first

[android-porting] Re: [mips] Fail at build bionic

2009-08-19 Thread David Turner
Unfortunately, the people at mipsandroid.org have not sent any patches to the upstream repository, so we can't really comment on this.Try on their support forums instead. On Wed, Aug 19, 2009 at 3:22 AM, Dennis.Yxun dennis.y...@gmail.com wrote: HI folks: I'm trying to build mips-cupcake,

[android-porting] Re: ping DNS issue! ping returns unknown host www.yahoo.com but ping to IP works fine

2009-08-13 Thread David Turner
The Android C library contains a DNS resolver that doesn't use /etc/resolv.conf or /etc/nsswitch.conf Instead, to it uses a list of system properties instead: net.dns1 - IP address of first DNS server net.dns2 - IP address of second DNS server ... Additionally, the Donut platform (not Cupcake)

[android-porting] Re: tessereact compile in android ndk

2009-08-11 Thread David Turner
You probably didn't setup your include paths properly. Did you read the section about that in $NDK/docs/HOWTO.TXT ? On Tue, Aug 11, 2009 at 2:03 AM, gatza gat...@gmail.com wrote: Hello! me and my friend trying to port tesseract to android. Tesseract is an open source optical character

[android-porting] Re: where is the arm implemention of tls

2009-08-04 Thread David Turner
pthread.c.arm in Android.mk means compile pthread.c in ARM mode so you're really looking for pthread.c the TLS stuff is implemented in arch-arm/bionic/__get_tls.S On Tue, Aug 4, 2009 at 5:17 AM, Ouyang Jiannan jallen@gmail.com wrote: hi, everyone, In bionic/libc/Android.mk we can see that

[android-porting] Re: where is the arm implemention of tls

2009-08-04 Thread David Turner
On Tue, Aug 4, 2009 at 12:24 PM, Neo zingafri...@yahoo.com wrote: On Aug 4, 8:17 am, Ouyang Jiannan jallen@gmail.com wrote: hi, everyone, In bionic/libc/Android.mk we can see that x86 uses files pthread.c, pthread-timers.c ptrace.c and __get_tls.c in arm, it uses pthread.c.arm ,

[android-porting] Re: where is the arm implemention of tls

2009-08-04 Thread David Turner
are built for ARMv5TE. On Wed, Aug 5, 2009 at 3:06 AM, David Turner di...@android.com wrote: On Tue, Aug 4, 2009 at 12:24 PM, Neo zingafri...@yahoo.com wrote: On Aug 4, 8:17 am, Ouyang Jiannan jallen@gmail.com wrote: hi, everyone, In bionic/libc/Android.mk we can see that x86 uses

[android-porting] Re: Android on solaris

2009-08-03 Thread David Turner
At the very minimum, you will need to write Solaris kernel drivers for Android-specific features like Binder or ashmem. No small feat indeed. After that, you will need to change *any* code that touches the hardware and kernel (e.g. anything in /dev or /proc on Linux), probably make *huge* changes

[android-porting] Re: pthread lib problem

2009-07-30 Thread David Turner
They are not available at the moment. You should be able to implement them through the use of several mutexes and condition variables though. There are several implementations available on the web (search for implement read write lock for example). Feel free to submit a patch to the platform once

[android-porting] Re: [bionic c header] dirent64 is missing in bionic/libc/kernel/common/linux/dirent.h

2009-07-30 Thread David Turner
that's because the struct dirent defined in Bionic is the kernel's stuct dirent64. (look at the comment in sys/dirent.h that comes with Bionic). This is done intentionally. dirent64 is not portable, if your code depends on it, use something like: #define dirent64 dirent and it should work.

[android-porting] Re: Is arm-eabi-gcc support iwmmxt?

2009-07-25 Thread David Turner
the -mabi option might generate code that is not compatible with the rest of the system, I would definitely not recommend using this. also info gcc might refer to a different version than the arm-eabi-gcc binaries themselves so this gives no guarantee about the result. On Fri, Jul 24, 2009 at

[android-porting] Re: undefined reference to __stack_chk_fail error

2009-07-24 Thread David Turner
These __stack_chk_ references are created by the compiler when you the -fstack-protector option is enabled. It is likely enabled by the build system, but sometimes even prebuilt compiler binaries have it enabled by default. The corresponding functions are normally in libgcc.a, provided with your

[android-porting] Re: [Help] Failed to launch the android under the emul

2009-07-17 Thread David Turner
How did you configure your build exactly, which branch are you running ? Also did you use lunch of choosecombo to setup the build. If so, you simply need to type emulator to start the emulator. On Thu, Jul 16, 2009 at 2:21 PM, Tiger Yu tigerflying...@gmail.com wrote: Hi all, I have built

[android-porting] Re: [android-developers] error: cloning the kernel from git

2009-07-17 Thread David Turner
Use git://android.git.kernel.org instead of git://git.android.kernel.org On Fri, Jul 17, 2009 at 9:06 PM, krishna devarapalli krishna.andr...@gmail.com wrote: git clone git://git.android.kernel.org/kernel/common.git kernel-common Initialized empty Git repository in

[android-porting] Re: where is bionic/libc/kernel/original??

2009-06-25 Thread David Turner
the headers are not available yet. We're working on putting them in the open-source repository. (for the record, it's a mix of old and new headers, for various historical reasons). On Fri, Jun 19, 2009 at 4:54 PM, Jimmy-Creupagu jamai5...@gmail.com wrote: Hi Android guys, i'm trying to

[android-porting] Re: Add gprof support to bionic

2009-06-25 Thread David Turner
? It appears I can't attach anything to a message. On Jun 25, 2:30 am, David Turner di...@android.com wrote: no, but do you have patches to share so we can look at them? On Wed, Jun 24, 2009 at 3:36 PM, Leix xie.xiao...@gmail.com wrote: Hello group, I ported the gprof files found

[android-porting] Re: Add gprof support to bionic

2009-06-24 Thread David Turner
no, but do you have patches to share so we can look at them? On Wed, Jun 24, 2009 at 3:36 PM, Leix xie.xiao...@gmail.com wrote: Hello group, I ported the gprof files found in glic-2.9 to android and made the system build, but when I flashed it onto a phone, which had an ARM CPU and ran on

[android-porting] Re: Something goes wrong on vold randomly or due to wifi

2009-06-15 Thread David Turner
do you have details on how to reproduce this. What hardware platform are you using, which system image are you building, etc... On Mon, Jun 15, 2009 at 12:30 PM, Luca Belluccini lucabellucc...@gmail.comwrote: Vold crashes and/or starts notifying phone storage space low randomly or seems that

[android-porting] Re: pre compiler macro for andriod

2009-06-15 Thread David Turner
file, it will be declared?? On Jun 15, 12:50 am, David Turner di...@android.com wrote: Use ANDROID:-) On Sat, Jun 13, 2009 at 6:28 AM, shiva dudeofin...@gmail.com wrote: Hi all... I have a C++ code, which i am porting on Android. This code actually made for Windows system. So

[android-porting] Re: pre compiler macro for andriod

2009-06-14 Thread David Turner
Use ANDROID:-) On Sat, Jun 13, 2009 at 6:28 AM, shiva dudeofin...@gmail.com wrote: Hi all... I have a C++ code, which i am porting on Android. This code actually made for Windows system. So, there are many Windows specific header files are used. So, i want to build same code on Android

[android-porting] Re: telnetd problem on android

2009-06-11 Thread David Turner
See http://developer.android.com/guide/developing/tools/emulator.html#emulatornetworking especially the section titled Setting up Redirections through the Emulator Console On Thu, Jun 11, 2009 at 2:03 PM, nearfuture yaoming@gmail.com wrote: I want to open the telnet port on android, so I

[android-porting] Re: Can't adjust backlight in our built emulator from source?

2009-06-11 Thread David Turner
backlight emulation works as follows in 1.5 (this may change in future system images though): 1/ hardware/qemu/liblights/lights.c is compiled into /system/lib/hw/ liblights.goldfish.so 2/ libhardware recognize at runtime that it is running in the emulator (goldfish) system, then loads it 3/ the

[android-porting] Re: How to use external modem in emulator

2009-06-03 Thread David Turner
On Wed, Jun 3, 2009 at 11:24 AM, sram sayiram.koth...@gmail.com wrote: Hi i am trying to connect USB external modem(my Motorola Phone) on to Android emulator. i have tried the following command emulator -radio ttyACM0 -verbose -debug all and from the ADB shell tried echo ATD1234 ttyS1

[android-porting] Re: How to package other data files with JNI library?

2009-06-02 Thread David Turner
There is no other way at the moment, however you can simply put the file into res/raw and copy them to /data/data/appname when your app starts for the first time. On Fri, May 29, 2009 at 11:18 PM, efu ericf...@gmail.com wrote: I am building an app using JNI library. The JNI library needs to

[android-porting] Re: sd card not working :(

2009-06-02 Thread David Turner
you probably need a custom /system/etc/vold.conf file that tells the mound daemon (vold) which device/partition to mount at boot time On Wed, Jun 3, 2009 at 12:21 AM, hairypothead...@googlemail.com hairypothead...@googlemail.com wrote: hey! iv got android running in virtualbox on my advent

[android-porting] Re: Everyone in google IO gets a free phone --Ha ha ha ha..... -eom

2009-05-28 Thread David Turner
it's short for end of message, which really means that everything is in the title, and nothing in the message body. I find it confusing myself, but hey... On Thu, May 28, 2009 at 5:24 AM, liuhy liuhuaiy...@gmail.com wrote: eom? what is it? On Thu, May 28, 2009 at 1:49 AM, Yi Sun

  1   2   >