native-code

Could C++.Net assemblies be decompiled easily?

南笙酒味 提交于 2019-12-21 05:32:06
问题 I know that all assemblies can be decompiled somehow, but C# & VB applications are the easiest to be decompiled into source code using tools like ( .Net Reflector ). So my question is, if I programmed an application using .Net assemblies and functions with C++, would it be easy to decompile it as if it was a C# or VB application with .Net reflector and such tools? Ok, if I programmed it without using any function from .Net framework and made UI only what calls .Net assemblies, would be easy

Access violation in native code with hardware accelerated Android MediaCodec decoder

时光总嘲笑我的痴心妄想 提交于 2019-12-21 02:14:06
问题 I aim to use the Android MediaCodec for decoding a video stream, then use the output images for further image processing in native code. Platform: ASUS tf700t android 4.1.1. Test stream: H.264 full HD @ 24 frm/s With the Tegra-3 SoC inside, I am counting on hardware support for the video decoding. Functionally, my application behaves as expected: I indeed can access the decoder images and process them properly. However, I experience a very high decoder cpu load. In following experiments,

Android - Using pipe between native and java apps

↘锁芯ラ 提交于 2019-12-18 13:54:54
问题 I'm developing on SGS2 api v.16 I have two applications: native and Java From the native app I open a Unix pipe with mkfifo() function and write some string to it. And in the java app I'm trying to read the string, but somehow the app blocks and I don't know why, no indication in the logcat for why it blocked. The 2 apps have android:sharedUserId="my.Id" in the manifest, and the share worked for sure. In the logcat I can see the "opening input stream" log, but no log after that.. Is there a

Android : can native code get broadcast intent from android system? [duplicate]

眉间皱痕 提交于 2019-12-17 17:58:10
问题 This question already has answers here : Listen to own application uninstall event on Android (3 answers) Closed 3 years ago . Recently i've seen a funny app - Photo Wonder. When this app is uninstalled, it shows a web survey page asking for the reason of app uninstall. Now, here is the problem. As far as I know, after an app has been removed, the system broadcasts ACTION_PAKAGE_REMOVED intent. But this funny app was able to show my the web page although the official doc says "The package

What does “ [native code] ” mean?

﹥>﹥吖頭↗ 提交于 2019-12-17 15:39:09
问题 I tried to investigate the jQuery code, so I used this: document.write($.constructor); jsfiddle I got this result: function Function() { [native code] } What does [native code] mean? Why can't I see the real code? Tested with Google-Chrome 回答1: When you define functions in an interpreted language (as opposed to a compiled language). You have access to the file / string / text that defines the function. In JavaScript for example you can read the definition body text of a function you have

How to unload library (DLL) from java JVM

扶醉桌前 提交于 2019-12-17 07:26:42
问题 I need to unload a DLL that was loaded with System.loadLibrary(..) , anyone know if this is possible? 回答1: I don't have any experience of this, but a bit of digging shows that the library should be unloaded when the classloader which loaded the library is garbage collected. Links: Invocation API docs (Sun) - look for "Library and Version Management" Java JNI DLL Unloading tutorial 来源: https://stackoverflow.com/questions/453359/how-to-unload-library-dll-from-java-jvm

Accessing root files (/system, /dev) from a native library in Android application

六眼飞鱼酱① 提交于 2019-12-13 15:27:08
问题 I have an NATIVE LIBRARY which will try to create files in the /system, /dev folders in an android device (using open(), fopen() etc). Now i have integrated the library with an android application using JNI & NDK. But the creation of the files in the root folders are failing. I have tried to create a file in the sdcard from the native library and this works fine. Neither I want to move the file opening code to Android code (Java code) nor I want to create the files in the sdcard. I have clear

The crash happened outside the Java Virtual Machine in native code

浪尽此生 提交于 2019-12-13 14:27:58
问题 I am doing web crawling on a Sun server with 32 virtual processors and 32GB memory. I opened 1460 threads to do the job for me. The runtime parameters I set were -Xms2048 and -Xmx2048 . I have run the code twice, but it crashed at different points. > # > # A fatal error has been detected by the Java Runtime Environment: > # > # SIGSEGV (0xb) at pc=0xff390f38, pid=3053, tid=7640 > # > # JRE version: 6.0_15-b03 > # Java VM: Java HotSpot(TM) Server VM (14.1-b02 mixed mode solaris-sparc ) > #

Is there limits with Ionic Framework mobile app?

我只是一个虾纸丫 提交于 2019-12-13 05:47:03
问题 I'm learning how to code a android mobile app with Ionic Framework because I want to create a todo list with a bubble like Facebook Messenger, that is able to send task to workmates, a chronometer and something more but I don't know if with Ionic I will can do it and if is not if I will need programming all of my app again with native or not because if it is then it'd be better programming with native right now. 回答1: Pretty much everything available on a native app is also possible to do with

Retrieving Native Code Architecture from an Android App

青春壹個敷衍的年華 提交于 2019-12-13 04:53:23
问题 I'm working on an app which determines the native code architecture and native libraries used by all the apps installed on the device. It's similar to running the following command. aapt dump badging <file.apk location> The package manager doesn't provide information about the native code like this one or the native shared libraries. I can retrieve the native shared libraries that the target app uses with the following code: try { Set<String> libs = new HashSet<String>(); String mapsFile = "