what can I use to profile C++ module code for android - android

Can anyone suggest some good performance profiling tool for C/C++ code
that does not require recompiling/linking. I need for android platform.
Thanks.

After searching for a while i was not able to find descent one, so i solved this issue i.e. by taking timestamp as i enter a function and as i leave a function use them to find out time spent in function, it took little effort but i was able to find out the portion which is casuing bottleneck, you can give it a try. Not as good as something already cooked but it may help you identify problems!

I have found one: ARM DS-5 Community Edition (http://ds.arm.com/ds-5-community-edition/). It seems that this tool meets my requirement.

Related

How to find memory leaks for native code in post Android 18?

I am trying to find a way to find memory leaks in native code on Android apps. I have found others answers like How to Find memory leaks from native code in android, but these solutions aren't applicable post Android 18 as the DDMS no longer supports the "Native Heap" tab.
So if anyone can suggest a solution, it will be great help!
https://github.com/android/ndk/issues/431 tracks LSan support for the NDK, which will be the best option when that's done. It's not currently being worked on, but will probably be picked up once TSan is done.
https://android-arsenal.com/details/1/1775
here you go. I use this. Installation is already inside the link.
Sometimes it is freezing when dumping information but still good I think.

Mobile project based on CMake

I'm currently working on a project aimed to be ported both on Android and iOS.
Actually, it is a library written in C++, and we have a build system for the target platforms that is almost ready.
Despite the fact that it already works, it's quite complex and I was looking for something that can help in simplifying it.
I found the projects ios-cmake and android-cmake and thought that I could give them a try, but they look a bit abandoned and I'm not sure if it's worth it or there exists an alternative nowadays.
Did someone use them recently and can give me his feedback? It would be really appreciated.
Thank you.

Customizing Android

I want to use Android for a system I have in order to use it as an embedded system that would run a specific application (which runs in chrome browser). However, this will not use Android in ordinary way, but rather hack around it so that libraries like OpenCV and packages like Chromium can be installed on the Android's Linux kernel. In addition, I would also need to figure out a way that would allow a USB camera to be supported.
I have done some research on this, but I am getting nowhere. Would somebody recommend resources that are relevant to this issue, or suggestions on how to approach it? Your feedback would be much appreciated.
Edit1: I am not intending for this question to be too broad. I only want to get more ideas on how you add libraries like OpenCV to Android, and whether there is a way to install the chrome browser as well.
Edit2: the Android system is on the Snapdragon platform.
Both Chromium and OpenCV can be built on Linux, have you tried compiling them from source on Android and failed? What error did you get? Here's a link for cross-compiling Chrome for ARM processors:
http://code.google.com/p/chromium/wiki/LinuxChromiumArm
I would use http://www.android-x86.org/ first and see if it works there before trying to run it on ARM so that you can fail faster if it doesn't work.
You might want to spend some time with ROM hackers to get more insight. Ideally, you want to find some people who are doing something similar so you can work with them. Take a look at:
http://forum.cyanogenmod.com/
http://forum.xda-developers.com/
A lot of what those guys are doing does not apply to what you are looking for, but they do get much deeper into the OS than most programmers. You might get lucky, and not have to modify the Android source code yourself as thinksteep mentions.

About compiler and decompilation

I want to prevent anyone from apk reverse compilation. We need to do something. I browsed on the internet, but I still don't know the operational steps clearly.
Who can tell me how to do it?
Anyone's help is so welcome!! Thanks!!
You need an obfuscator. If you are running .NET or Java, these should be easy to find.
There is nothing to prevent people from decompiling your code. All you can do is make it as nasty to read as possible. Don't do this in source (as you will not be able to modify your code yourself), use an obfuscator to do it as a post build step.
Google recommends ProGuard. See this link in the Android docs for more information.
It won't prevent people from disassembling your code (you won't be able to stop that - after all, the operating system needs to disassemble your code to execute it!), but it will make it very hard to see what's going on.

clamav for android

Has anyone tried porting clamav to android??
Still no clamdroid yet, but I hope someone (I'm looking at you Sourcefire) is working on it.
Though I think that a Spybot-SD type application is probably more useful and more important.
Remember: clamav is opensource, so you can port it to andoid yourself.
We have to plans at this time to develop an Android solution for ClamAV. We have a commercial solution for Android, but it is not open source, and not ClamAV based.

Categories

Resources