Index Anroid Phone Developer Forums Archive android-discuss

Use of Static Analysis on Android Code

I was wondering if Google runs automated static analysis tools and or
vulnerability scanners on native (C/C++) code?

I assume FindBugs is run against Java code.

Does anyone know if Coverity is still scanning open source (
 http://www.coverity.com/html/press_story54_01_08_08.html )?  A few of the
projects were also external projects for Android, but I don't have a feel
for how many might have benefited the system on target devices directly.


Thanks,
Dan

--
 

Re: Use of Static Analysis on Android Code

I just learned about static code analysis in school and am interested
to hear if anyone has any details on how it is being used with the
Android OS, and how it is being used with apps before, or after, they
go to market.

Thx,

D



>

Re: Use of Static Analysis on Android Code

Good question. I would love to have access to a Findbugs configuration
that is suitable for scanning Android app code.



>

Re: Use of Static Analysis on Android Code

If you look inside the build configuration, you will see make targets
for findbugs.  All you have to do is put findbugs in the correct
directory, then do a 'make findbugs'

I was more interested in scanning tools for C and C++ as there does
not seem to be a FOSS alternative.




>>

Re: Use of Static Analysis on Android Code

Hi!


  ^-- Findbugs is an excellent tool for Java bytecode static analysis.
However, Java source code analysers are great addition, too. We
successfully combine findbugs and checkstyle (checkstyle.sf.net); the
JChord seems to be promissing - read "distinctive enough" - but it
seems to be far from useful deployment yet.

Btw, how findbugs is used, when Android does not have java bytecode,
only sourcecode? :-)


  ^-- Well, the root cause is that it is _much_ easier to analyse Java
code than C code - only macros and preproprocesor options [working on
textual level] make any semantic analysis impossible. Anyhow, we find
'flawfinder' tool to be useful for C code.

Please, share your experience with similar tools.

J.

--

Other Threads

1. Android supports audio bookmarking

In the android-platform group, the topic of audio bookmarking came up
- 

2. problems building android dev environment?

When I download the source and build it according to
http://source.android.com/download, then try to build the eclipse dev
evironment
as described on http://source.android.com/using-eclipse, I get 100s of
Java Errors when
trying to build the project.

Linux is 2.6.28-15-generic #49-Ubuntu
Eclipse is eclipse-java-galileo-linux-gtk.tar.gz

18# java -version
java version "1.5.0_18"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_18-b02)
Java HotSpot(TM) Client VM (build 1.5.0_18-b02, mixed mode, sharing)
19#

The instructions seem rather straight forward. Has anyone tried/
encountered this?

Thanks,

Dave


--~--~---------~--~----~------------~-------~--~----~

3. problems building an eclipse dev environment as described on http://source.android.com/using-eclips

4. problems building android dev environment?

5. horizontal center a linear layout....

6. Location/GPS and SqlLite help needed

7. apk install error