[Q] Edit The ***.so files?! - Android Q&A, Help & Troubleshooting

Hi
how can I edit the ***.so files in system/bin and lib and others like that...I tried The notepad++ but it was not good , any better ideas?, ofcourse I don't want to edite theme just show for comparisons
sorry my bad En

The .so files in /system/lib are not directly editable. They are binary files (they are compiled from source code into a library) that can't be easily read or written. There are methods of editing them and it involves a good knowledge of reverse engineering and decompiling for the ARM architecture which isn't a task to take on lightly. As for the files in /system/bin, they are applications that can be run from adb shell or a terminal emulator on your device. Just as you can't edit notepad (the application as a whole) on your computer, you can't edit any of the files in /system/bin.
Hope this helps!

mbobino said:
The .so files in /system/lib are not directly editable. They are binary files (they are compiled from source code into a library) that can't be easily read or written. There are methods of editing them and it involves a good knowledge of reverse engineering and decompiling for the ARM architecture which isn't a task to take on lightly. As for the files in /system/bin, they are applications that can be run from adb shell or a terminal emulator on your device. Just as you can't edit notepad (the application as a whole) on your computer, you can't edit any of the files in /system/bin.
Hope this helps!
Click to expand...
Click to collapse
I wanna edit the ones in /system/lib. I need some help. Can you give me any sources on how could I reverse engineer them or at least, any method I could read them?

Get hex-rays ida pro. You'll need the full version as the demo doesn't support the ARM architecture. From there you're on your own lol. I don't know much beyond that point.
Sent from my PC36100 using Tapatalk

There is a easy way to edit lib***.so files in android. Watch this video

Related

[Q/Help] How do I mod sms handling?

I got a problem with the way sms's are handled by HTC Sense(Its the HTC Desire).
I receive a sms from work on a daily basis, and thy contain a "/" (Slash as in "WorkPlaceName A/S") in the "from/sender" field instead of a phone number.
The problem is that the phone receives it, but discards it again because of the slash.
All sense based ROM's I've tried have all had this problem, but the non-sense froyo(2.2) ROM's are fine.
Now I want to change the behavior my self, but I don't know where to look.
I was thinking the kernel or somewhere in the ROM?
But I'm not sure.
I'll appreciate any help.
Anyone can help on this?
Does anyone know how would know?
Have you tried using Handcent instead of the HTC app? Since HTC's apps are not open source, it might not be easy to modify them although you could try 'APK Manager'.
Also, I recommend reading this if you want to understand how apps interact with the OS in Android - http://developer.android.com/guide/topics/fundamentals.html
gnarlyc said:
Have you tried using Handcent instead of the HTC app? Since HTC's apps are not open source, it might not be easy to modify them although you could try 'APK Manager'.
Also, I recommend reading this if you want to understand how apps interact with the OS in Android - http://developer.android.com/guide/topics/fundamentals.html
Click to expand...
Click to collapse
Yes i did try Handcent, but as far as I can see the problem runs deeper then that.
I tried almost all sms apps on the marked, and the sms's keeps getting deleted.
if there is any way to change it, you could most probably find it by decompiling the apks associated with the sms system.. Unfortunately I have no idea what file it would be, however you can convert the Android compiled XMLs with AXMLPrinter2.jar file, and edit the settings to get it to do what you want (though there is a better and more efficient way to do this.. I cant remember what the program is called to do it..)
You can get AXMLPrinter2.jar from here: Download
You have to have the java jre (java runtime environment), and here is the syntax:
1. rename the apk to a .zip file
2. extract the files to a folder
3. 1 by 1 go to the files you want and type (for example)
java -jar AXMLPrinter2.jar Rosie.xml > Rosie.txt
Like I said there is a better way. There is a program out there that will do the hard work on multiple files for you, however I can't remember the program name.
hexskrew said:
if there is any way to change it, you could most probably find it by decompiling the apks associated with the sms system.. Unfortunately I have no idea what file it would be, however you can convert the Android compiled XMLs with AXMLPrinter2.jar file, and edit the settings to get it to do what you want (though there is a better and more efficient way to do this.. I cant remember what the program is called to do it..)
You can get AXMLPrinter2.jar from here: Download
You have to have the java jre (java runtime environment), and here is the syntax:
1. rename the apk to a .zip file
2. extract the files to a folder
3. 1 by 1 go to the files you want and type (for example)
java -jar AXMLPrinter2.jar Rosie.xml > Rosie.txt
Like I said there is a better way. There is a program out there that will do the hard work on multiple files for you, however I can't remember the program name.
Click to expand...
Click to collapse
APK Manager?
hexskrew said:
if there is any way to change it, you could most probably find it by decompiling the apks associated with the sms system.. Unfortunately I have no idea what file it would be, however you can convert the Android compiled XMLs with AXMLPrinter2.jar file, and edit the settings to get it to do what you want (though there is a better and more efficient way to do this.. I cant remember what the program is called to do it..)
You can get AXMLPrinter2.jar from here: Download
You have to have the java jre (java runtime environment), and here is the syntax:
1. rename the apk to a .zip file
2. extract the files to a folder
3. 1 by 1 go to the files you want and type (for example)
java -jar AXMLPrinter2.jar Rosie.xml > Rosie.txt
Like I said there is a better way. There is a program out there that will do the hard work on multiple files for you, however I can't remember the program name.
Click to expand...
Click to collapse
Thanks I'll try that.
But do you know the name of the HTC SMS apk?
I can only find MMS and mail.
Anyway I'll have a look at the MMS apk.

[Q] Beginner question on simple apk decoding/editing with smali

How do you change where config files and libraries are stored for a particular apk? I want to move some config files to /system but I don't know how to get the app to recognize them once I move them. I already decoded the thing and have access to all the smali files, but don't know what to do with them. If anyone could just point me in the right direction so I could learn more about this, about what file tells the install where to look, that would be fantastic. Like, why does a library work if it is in /system/lib/ OR if it is in /data/data/apkname/lib/?

Installing pre-compiled binaries with android apk

I am trying to install some pre-compiled binary files along with my app but I am having a hard time finding documentation or code samples that I can use.
I have successfully pushed the files to the device using adb and I have been executing the files from the filesystem, but I would like to package them right in my app(apk file).
I am not sure if it is better to store them from assets folder or res/raw.
I also have two seperate directories with scripts in them that will need to be used by calling options from the executable binary.
I would like to have the binaries installed to the /data/data/com.<company_name>/<app_name>/bin directory, and the script folders installed to the /data/data/com/<company_name>/app_name/bin/scripts1 and scripts2 directories.
Are there any good tutorials or docs that can get me going?
i'm looking for something similar, too
is there a way to create an apk that only unzips a file to sdcard on install and deletes it on uninstall? (to prevent unfair use of 15min moneyback in market)
Was this ever solved? I am working towards a similar goal and cannot find information on this process.

[Q] nuub question, can an .apk be lightly modified like this?

I am sure this would be a WTF for some people thats why I'm asking in the Q&A section.
I've noticed that .apk files can be renamed to .rar and, once decompressed, we can find files in a normal-structure in their real format (images, sounds, xmls, etc).
So I wonder, let's say, we want to modify one of the images inside the .apk. We would change it for another with the same name/size so no probs with that.
Could we decompress the .apk as a .rar, change the file, recompress it to a .rar and rename it to .apk, or we would **** permissions or something in the way?
Otherwise it needs some compiler or something I guess right? But then I wouldn't understand why it can be plainly decompressed as a .rar..
This should get you started;
To unpack/repack etc .apk use Apk Manager 4.9 - Makes Modifying Ur Apk A Breeze (Windows/Linux)
To modify .xml files, use Notepad++
UpInTheAir said:
This should get you started;
To unpack/repack etc .apk use Apk Manager 4.9 - Makes Modifying Ur Apk A Breeze (Windows/Linux)
To modify .xml files, use Notepad++
Click to expand...
Click to collapse
Thanks a lot mate! Very appreciated

Modify apk

Is theres a way to modify and run this apks without unlocking secrecy or auth token? i pulled it from my oppo and when i run the app it'll update the existing app
norimee said:
Is theres a way to modify and run this apks without unlocking secrecy or auth token? i pulled it from my oppo and when i run the app it'll update the existing app
Click to expand...
Click to collapse
You can't modify an APK, as it's in binary. You could remove it though - Let me know if you need help.
An APK ( read: Android Application Package ) file by nature is a ZIP file - not a binray - what can get extracted with any zip utility (e.g. 7zip), you can view all resources correctly but all java files are not correctly decompiled.
Content of an APK file looks like
You can also see the contents of an APK file within the Android device itself, which helps a lot in debugging, using
https://play.google.com/store/apps/details?id=com.dasmic.android.apkpeek
All files including the manifest of an app can be viewed and also shared using email, cloud etc., no rooting required.

Categories

Resources