首页 \ 问答 \ 是否有可能在android studio中更改.so文件代码并进行构建?(Is it possible to change the .so file code in android studio itself and make a build?)

是否有可能在android studio中更改.so文件代码并进行构建?(Is it possible to change the .so file code in android studio itself and make a build?)

我在android studio项目中添加了一个.so文件,我能够看到他们在.so文件中编写的内容,如.cc和.h files.So如果我更改.cc文件,是否直接创建了。所以动态文件。 或者在完成所有更改后,我们可以使用新更改重新加载.so文件。

如何从another.so文件库创建.so文件。使用.so文件的其他方式,如提取那些并添加到android代码。如何使用已生成的.so文件进行make更改。

是否有机会在.so文件.cc文件中进行更改以及编译和运行,如果可能的话,那么如何在android studio中运行我的.cc文件更改.so文件。


I added one .so file in android studio project,I am able to see the code what they have written inside that .so file like .cc and .h files.So if I change that .cc file, is it directly creates an .so file dynamically. or after we have done all changes can we reload the .so file with new changes.

How can I create an .so file from another.so file libraries.any other way to use .so file like extracting those and adding to the android code.How can use already generated .so file with make changes.

Is there any chance like making changes in .so file .cc files and compiling and running, if it is possible then how can run that .so file with my .cc file changes in android studio.


原文:https://stackoverflow.com/questions/40651141
更新时间:2020-02-28 15:55

最满意答案

我在android studio项目中添加了一个.so文件,我能够看到他们在.so文件中编写的内容,如.cc和.h files.So如果我更改.cc文件,是否直接创建了。所以动态文件。 或者在完成所有更改后,我们可以使用新更改重新加载.so文件。

都不是。 .so文件本身不知道它所依赖的头文件和库的路径,因此它无法重新编译。

如何从another.so文件库创建.so文件。

通过逆向工程。

是否有机会在.so文件.cc文件中进行更改以及编译和运行,如果可能的话,那么如何在android studio中运行我的.cc文件更改.so文件。

机会很小。 由于缺少.so文件的依赖性信息,此方法将不会成功。


I added one .so file in android studio project,I am able to see the code what they have written inside that .so file like .cc and .h files.So if I change that .cc file, is it directly creates an .so file dynamically. or after we have done all changes can we reload the .so file with new changes.

Neither. A .so file per se doesn't know the paths to headers and libraries it depends on, so it can't recompile itself.

How can I create an .so file from another.so file libraries.

By reverse engineering.

Is there any chance like making changes in .so file .cc files and compiling and running, if it is possible then how can run that .so file with my .cc file changes in android studio.

The chances are minimal. This approach will not succeed due to the absence of dependency information of the .so file.

2016-11-17

相关文章

更多

最新问答

更多
  • css在元素之前中断列而不破坏包装器(css break column before element without breaking the wrapper)
  • 如何在Xamarin共享项目中使用自定义渲染器(How to use Custom Renderer in Xamarin Shared Project)
  • 如何为特定表中的特定字段设置唯一?(How to set unique for specific field from specific table?)
  • Google SDK iOS - sign()方法完成处理程序(Google SDK iOS - sign() method completion handler)
  • 在具有接口{}值的地图上实现String()(Implement String() on a map with interface{} values)
  • 检查数据库中是否已存在用户名(Check if username already exist in DB)
  • 使用javascript进行ajax调用时阻止用户交互(Block user interaction while doing ajax call using javascript)
  • 什么'if(err)'在Javascript中精确测试?(What does 'if (err)' tests precisely in Javascript?)
  • jQuery mouseleave无法正常工作(jQuery mouseleave not working)
  • 寻求使用的一些说明(Seeking some clarification on use of )
  • 将数组传递给注释的语法(syntax for passing array to annotation)
  • 用于从两个日期范围之间的文件中提取数据的Shell脚本(Shell script to extract data from file between two date ranges)
  • 元素隐藏但父()没有(Element hides but parent() not)
  • 如何使用Google App Engine Java平台开发web ui(How to develop web ui with Google App Engine Java platform)
  • 对于OWL A级;(For an OWL class A; Getting all properties that A is their domain)
  • Excel VBA公式格式问题(Excel VBA Formula Format Issue)
  • ORA - 02287序列号不允许在这里(ORA - 02287 sequence number not allowed here)
  • Github拉忽略特定文件(Github Pull Ignore Specific File)
  • SQL CONVERT函数在SQL Server中工作但不在应用程序中(SQL CONVERT function working in SQL Server but not in application)
  • backbone.js适用于大型应用程序(backbone.js for large applications)
  • 防止程序关闭(Preventing program from closing)
  • 生成不带图像的heightMap(Generating a heightMap without an Image)
  • Bootstrap - 如何将包含文本的div居中?(Bootstrap - How to center div that has text inside it?)
  • Android - 片段findViewById()总是null?(Android - Fragment findViewById() always null?)
  • 确定CSS中的高度(Figuring out heights in CSS)
  • 使用__autoload包含类和使用命名空间(Use __autoload to include class and use namespace)
  • setTimeout()不允许我传递文本值[重复](setTimeout() doesn't allow me to pass text values [duplicate])
  • 在NSUserDefault中恢复值(Restoring value in NSUserDefault)
  • 知道如何将这种下沉的悬停效果添加到图像/链接吗?(Any idea how to add this sinking hover effect to an image/link?)
  • 在XIB中淡入/淡出UISegmentedControl(fade in/fade out UISegmentedControl in XIB)