Android :: How To Remove Strings From A Compiled Binary - .so

May 20, 2010

How do I remove strings from / obfuscate a compiled binary? The goal is to avoid having people read the names of the functions/methods inside.

It is a dynamic library (.so) compiled from C++ code for Android with the NDK tools (includes GCC)

I compile with -O3 and already use arm-eabi-strip -g mylib.so to remove debugging symbols, but when I do strings mylib.so all the names of the functions/methods are still readable.

Android :: How to remove strings from a compiled binary - .so


Android :: Strings Generated By Substring Not Treated As Hard Coded Strings

Nov 21, 2010

Dear all, I'm making a simple file decoder for Android 2.2 that needs to find the filename of the encoded file from a header. This filename should then be used as the filename for the decoded file (as you would expect).The filename is identified by the substring name=, so the actual name starts 5 places after that. The line is read by a BufferedReader and temporarily stored in currLine.For some reason I can't understand nor find on the web, Strings do not always seem to be Strings.Gives no output file, nor an IO exception. The string is parsed properly though: from the System.out debugging lines.

View 1 Replies View Related

Android :: Most Speed-efficient Way To Hard Code Map Of Strings To Strings?

Aug 19, 2010

I've got a map of about 500 entries. Strings are all very short (less than 5 chars).Its read-only data I want to read once at app-startup. What's the best way to store this so that loading this data is fast?I've tried storing the data in a CSV in res/raw but this takes about 700ms to parse on my N1, so I'm hoping there's a faster way.

View 8 Replies View Related

Android :: Externalize Strings In Source Files To Strings.xml Automatically?

Sep 20, 2009

Is there a way to externalize all the strings in the source files to strings.xml automatically?

View 2 Replies View Related

Android :: References To Other Strings In Strings.xml?

May 3, 2010

Is it possible to reference other strings inside of strings.xml ?

Something of the form...

(If it did exist, there would of course be problems of circular, infinite definitions, etc. to beware of).

View 1 Replies View Related

Android :: Can One Combine Android Resource Strings Into New Strings?

Aug 31, 2010

by which the resource "bar" becomes an alias for the resource named "foo".What I would for my app is a possibility to combine an existing resource prefix with different suffixes,where the resource "bar" would yield the string "foobar". Its clear that '+' doesn't work here but is there some other option to achieve such a string concatenation, so that one could define a bunch of string resources that have a common prefix?I realize of course that I could do such resource string concatenation at runtime but defining them statically in the resources would seem so much more elegant and simpler.

View 1 Replies View Related

Android :: Loading From Compiled XML File

Jun 30, 2010

I have some xml files with a custom format (based on the scxml specifications) that I want my program to read. I've already written the code to read it, but I'm running into problems actually reading the file itself. I want the file to be compiled with the apk, as it will not be changed at all during run time. So I put the file (test.xml) in the res/xml/ folder, and got the inputstream by using:

getResources().openRawResource(R.xml.test);
But when I read in this inputstream it is complete jibberish, which makes me suspect it is being read in binary, as openRawResource() is often used for binary files like images, if I am correct. What is the correct way to do this?

View 11 Replies View Related

Android :: 1.5 Compiled Image For Emulator?

Apr 2, 2009

Is there any 1.5 image going around for the emulator? I would like to try my apps with onscreen keyboard. Maybe someone is actually making nightly builds but I can't find any.
PS: Not sure if it's appropriate to ask in this list.

View 11 Replies View Related

Android :: Use Jar Libraries In Compiled With Packages

Sep 28, 2010

I need to import a couple of jars that where compiled under the full implementation of java. I know that Android doesn't use all the packages that java has to offer. My question is: Is it possible to import them without creating errors? Is there a tool that can convert jars to android jars? if so, can some examples be provided.

View 1 Replies View Related

Android :: Running A Compiled - Packaged-with - V1.6 Application On V1.5

Nov 3, 2009

I have an application which is based Android 1.5 but for enabling different screen types support I have to compile and package it with v1.6. When I install and run the resulted APK on my 1.5 emulator, everything works fine except that "Preferences" activity crashes every time I launch it!

When I revert back my API dependency to 1.5 and remove a few 1.6 specific config blocks from AndroidManifest.xml and compile/package it with 1.5, everything works just fine!

Below is the exception I get when it crashes:

CODE:.................

View 4 Replies View Related

Android :: Not Found Exception For Compiled Class

Nov 15, 2010

I am writing an application and due to various reasons I had to build it using make (froyo code) and not SDK. When I run my app on emulator it works fine. I have an Android device and code to build image for the device. When I build my app with device code, it builds fine. How ever, when I run the application, I get
java.lang.ClassNotFoundException:
<package.class> in loader dalvik.system.PathClassLoader[.]

A source file in my code is actually doing
sourceClass = classLoader.loadClass(sourceName);
sourceName here is pointing to a class I actually build (I have classname.java file in my code under correct package directory and package name). Note that this app is running fine on emulator, but on a device it is failing.

I verified that the .class file exists in out/target/common/obj/APPS/ xxxApp_intermediates/classes.jar, classes-full-debug.jar, classes-full- names.jar

View 2 Replies View Related

Android :: Removing Some Permissions Of Already Compiled Applications?

Aug 2, 2010

There are so many apps in the market and I don't trust all of them. Is there a way to remove some permissions of the already compiled APK? It doesn't matter if I cannot sign it anymore with the original certificate of the developer. And is there also a way to add an error-handler into the .apk-file, so that the errors of the requested permissions will also be suppressed?

View 3 Replies View Related

Android :: How To Load Compiled Kernel Into Emulator?

Jan 4, 2010

This is basic kind of question, Can we load our own compiled kernel into the emulator? If there is guide or steps for that please give me those links.

View 2 Replies View Related

Android :: How To Add Includes In Native C Code That Will Be Compiled By Ndk

Aug 23, 2010

How I can add headers to my native c file.

So here's the details.

I was able to setup my android project to call a native function from a .so file. And actually I need to add box2d to my project, but I when I include the header files, it won't make. So basically my problem is how do I tell the make file to include a whole folder with header and cpp files.

I tried adding the path directly to the include statement just for the sake of testing it. The error goes away, but new errors come out.

View 2 Replies View Related

Android :: How To Make Sure An App Really Compiled From Said Source Code

Jun 24, 2010

A lot of Android apps are open source, but how can we make sure the person who finally uploads to the Google Market does not include some spyware just before uploading?

Background: Mobile apps security seems to be a growing concern, and I would like to reassure the users of my Open Source Android app. Solutions that require to modify the deployment process or application content are acceptable too.

View 1 Replies View Related

Android :: JavaScript Code After App Is Compiled Using Titanium Mobile

Nov 18, 2010

I installed Titanium from appcelerator and built the "KitchenSink" example application.All works well, I'm just wondering where does the javascript code ends up in a built app.I grep-ed the Xcode project and also the result application as I found it in Library/Application Support/iPhone Simulator/KitchenSink.app, but I can't find any function names from .js files, not even string texts used within the application. Nearest information I found is an answer here : How Does Appcelerator Titanium Mobile Work? but I do not understand clearly how the process works.Is the javascript code being compiled into a binary code (what compiler is used then?), or is it just transformed in some special data-format and interpreted in a running application ?

View 3 Replies View Related

Android :: Update Single Application In Compiled Image

Mar 2, 2010

I have compiled Android source code already (which I downloaded using GIT), and I am being editing the source code of an Application for testing on Emulator, each time I wanna see results I have to re-Compile the source code again using 'make' I am pretty sure that there is a way to partly-compile the image.

View 1 Replies View Related

Android :: SDK Compiled Successfully But With Eclipse It Doesn't Work / Fix It

Oct 11, 2010

I spent a full day to get my Android SDK sources in my setup and compiled it successfully by doing the File System for x86 and also the SDK, everything was fine but when I tried to use it in my environment (Eclipse) and tried to compile my application (which is working fine on Froyo 2.2), I'm seeing some errors, which seems that I did not get the entire SDK with all the base packages included.

Steps to reproduce:

# repo sync to android sources. # make # make sdk # make Eclipse to point to the new SDK, generated at: .../out/host/ linux-x86/sdk/android-sdk_eng.david_linux-x86/ # generate a new AVD # launch it and run the application

If I'm missing something else.

View 5 Replies View Related

Android :: Upload Customer Compiled Linux Kernel - Replace

Jan 13, 2010

i want to add some features to linux kernel to run on my mobile (android based mobile perhaps). but i don't know who let me to upload my custom kernel. i want to buy such mobile phone. some restrictions about uploading custom kernel to phone:

1- replace existing kernel.
2- can use my phones functionalities: it is due to some drivers are closed source and i must use the vendor's kernel to use it's drivers.

View 2 Replies View Related

General :: How To Add Admob Ads In Compiled APK Without Source Code

Jul 2, 2013

How to add Admob ads in a compiled APK without source code.

We loss the source code, we need to create a free version with admod ads and that can manipulate the apk for to include ads.

View 2 Replies View Related

General :: Camera Error In CodefireX Compiled JB Rom

Mar 2, 2013

I am trying, together with Lexmazter and Zasuk to compile codefireX, android 4.2.2 for Runnymede also known as Htc sensation xl.

Now i am so close on having everything working but for the last week i have used so much time to fix one error i keep having, when starting up the camera.

The repo i am using is this :
codefireX source
Runnymede device tree
Runnymede vendor files
Runnymede msm7x30-common files

Booting up looks fine in logcat, and it does load the camera.default.so from stock runnymede ICS rom and if i install a Tourch app or flashlight app, i can use the Flashlight from camera without errors. But if i starts the camera app, it camera stops working in same sec as i start it. No picture or anything.

The same kernel/boot.img is used in evervolv for runnymede, and it has working camera So the error should be somewhere in the rom.

Here is a part of a logcat with the camera error :

Code:
3718: E/memalloc( 107): /dev/pmem: Failed to map buffer size:4300800 offset:3072000 fd:53 Error: Invalid argument
3719: E/gralloc ( 107): Could not mmap handle 0x2a0c1d30, fd=53 (Invalid argument)
3720: E/gralloc ( 107): gralloc_register_buffer: gralloc_map failed
3721: W/GraphicBufferMapper( 107): registerBuffer(0x2a0c1d30) failed -22 (Invalid argument)
3722: E/GraphicBuffer( 107): unflatten: registerBuffer failed: Invalid argument (-22)
[Code] .....

The full log can be found here : Full logcat

I have also made a last_kmsg but it looks fine to me :last_kmsg

View 3 Replies View Related

Android :: External Strings.xml

Feb 8, 2010

Is it possible to have an external strings.xml or something like that?I'd like to translate my application into several different languages, but the apk would become to large if I include all languages.I would instead like to be able to load languages on demand (from an external URL) and store them on the SD card.Is that possible in any way? How could I in that case use the new language?

View 5 Replies View Related

Android :: XML Syntax For Strings?

Oct 8, 2010

In my XML values strings code, I have a string with some text that I want to have only a few of the words in color. I also want to have a new line for some of the text.

I can do things like: < b> my bold text < /b> and that works (leading space added for this post).

I try to tag the text with color but no color shows up and there are no errors.

CODE:.............

I also try adding a new line - I've tried things like:
< LF> some text, space at beginning only for this post < /LF>
< CR> this didn't work either < /CR>
< p> some text, space at beginning only for this post < p>

But, no new paragraph / new line, carriage rtn happens.

View 1 Replies View Related

Android :: Loop Through Strings.xml?

Jul 2, 2009

Is there a way to loop through the values of strings.xml?

View 2 Replies View Related

Motorola Droid :: Need File Site As Gridlocks Rom Where All Roms Compiled

Jul 14, 2010

Is there a file site similar to gridlocks rom site where all the roms are compiled? On the eris section everyone posts a screenshots so they know what they are getting before downloading. I don't see that much here unless I'm missing something?

View 3 Replies View Related

Android :: Modify Strings.xml Dynamically

Apr 21, 2010

I want to implement a "Settings" section in my application, and I want that when the user selects whatever, one of the strings from string.xml will change its value according to the user selection. Is this possible at all? any ideas on how to implement it?

View 4 Replies View Related

Android :: Creating Strings And Arrays

Sep 29, 2010

I am trying to create a information based application, I have 92 subjects, for these subjects I have 92 map locations and maybe as much as 400 url links. Currently I have created a class for each map location and a class for each url link, but this would mean I would have in excess of 500 classes, so what I want to do is split the subjects in four catergories ie. listview of about 23 in four tabs which I have done and create a class that gets the url based on the selection the use makes and do the same for the map locations.Do I need to put these in a xml using the id method and how do you call individual entries, i.e. would I need 500 Android:id is there an easier way?

View 2 Replies View Related

Android :: Java101 Strings And Ints

Oct 29, 2010

Im new to android and java but moving along at full speed. My lack of experience is making some elementary tasks too repetitive.For example I want to be able to loop through the following snipit of code the problem is I want "i" replace the number "1" in g1m0+=1; so through each iteration g1m0 would become g2mo.I know this is a simple to the novices out there can you please give me some insight to shorten up my code here..

View 9 Replies View Related

Android :: Comparing Two Strings Get False

Jun 29, 2010

I have a strange error that I can't understand. I have this code: if (VersionsKoll == Ver) { }

View 5 Replies View Related

Android :: Few Strings Which Need To Translate And Display

Aug 21, 2010

I have a few strings which I need to translate and display.Those strings are in variables. I have the translation in the strings.xml file.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved