help in decompiling and recompiling lib.so - Android Q&A, Help & Troubleshooting

i know that lib.so is an elf file, and all i can open it is via ida pro. so here is my doubt, how it is build, and how can i get its source code? i like to modify some lib.so, and is little bit used with elfs( used them to do things with old sony ericsson java phones). some dev pls help me.
HYPERDROID EXTREEM EDITION-THE NEW BENCHMARK ROM FOR HD2.

You need to find the source in GitHub
Herpderp Defy.

Related

[Q] Decompile, Edit Code and Re-compile to APK for android

Hello everyone
I have a question, first look at what I did.
I want to edit code of apk.
First, I use dex2jar. I can convert from APK to JAR file.
Second, I use JD. I can convert from JAR to Java source code.
Then I am trying to import these code into eclipse (or other editors) but it is not working.
Is there any possible way to edit the code?
I know we can edit smali but I think it is so much difficult.
I would be easier if I can edit in java source code and compile again to APK.
Thanks
Please use the Q&A Forum for questions Thanks
Moving to Q&A
It's not that easy. You can decompile (dex2jar & jd) the code to read it, do some research, etc. but this is a one way trip. If you want to modify something you will have to learn smali.
so, you mean the only way to modify code is smali?

VM env. for Stock ROM and Mod

Hi,
I'm currently woring on creating a complete VM and a document with instraction of getting from compile to flahsing from begining.
The complete enviroment will be set and ready with the Stock ROM (currently targeting 4.0.2.A.0.58) and the Android OS.
This will allow users to be able to take this VM and start right a away to change the Stock ROM and integrate changes for that from other modes.
will update this thread when it's done. and links for download (unless someone will be faster the me )
18/12 Update:
Just now finish creating an working and compiling enviroment with 2.3.4_r1 of Android
now working on making it to work with the Sony Ericson source code...
Regards,
LaBBa.
Hi,
I need a little help here... i have followed the steps in Google:
http://source.android.com/source/initializing.html
and also the Journal:
http://journal.tianhao.info/2010/12/compile-android-gingerbread-on-ubuntu-10-10/
i have compiled the code and got it up and running and also in emulator with the command line that was written in the Journal and the Android is working..
now i try to understand the Sony Ericson guide:
http://developer.sonyericsson.com/wp/2011/05/06/how-to-build-a-linux-kernel/
I have downloaded the ARM cross-compiler and installed it, was really bad instructions on how to install it. but just need to run: sh ./the_downloaded.bin
and installed it correctly
after installing the ARM cross-compiler successfully done a make to the kernel but only after fixing the symbolic link that from some reason was attach to 0x86 arch and not arm.
the paths where different since i used the default installer path and match the same version that they used: 2010q1
so first done this for the .config :
ARCH=arm CROSS_COMPILE=~/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi- make semc_zeus_defconfig
Click to expand...
Click to collapse
then run the make:
ARCH=arm CROSS_COMPILE=~/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi- make
Click to expand...
Click to collapse
now i got kernel compiled!
the question is:
i know that with the Android compiling i got 3 files in the /source_android/out/target/product/generic:
1. ramdisk.img
2. system.img
3. userdata.img
do i need to use the ramdisk from the Android for the next steps of SE guide ?
1. Getting a RAM disk and extract it
2. Re-package it with all of the kernel of SE that we just compiled
3. Assembling the boot.img using the mkbootimg
moreover, after i assemble the files i want to make a really clean installation and cleaning all the flash and installing all in a vanilla mod.
what should be the next steps ?
Regards,
LaBBa.
I thought that the community here will help in this small matter so we will have more pepole that could join the efforts of making brtter and cooller roms... I guess I was wrong. All I wanted to do is help the dev community and create the full step by step guide to starting developers in the android world....
Sadly I'm forced to end this thread due to lake of knowledge...
Sent from my R800i using XDA App
labbala said:
I thought that the community here will help in this small matter so we will have more pepole that could join the efforts of making brtter and cooller roms... I guess I was wrong. All I wanted to do is help the dev community and create the full step by step guide to starting developers in the android world....
Sadly I'm forced to end this thread due to lake of knowledge...
Sent from my R800i using XDA App
Click to expand...
Click to collapse
im sorry i would help but i dont know much lol srry no one that knew could or would help
hi,
I hope that you are able to get this working.
i will use it when it is finished
Edit: what have you exactly done?
Maybe i can help
all i wanted to do is to download all the source codes and compile it and then creat the same version (for this case the .58) manually and get to the same images that need to be flahed.
i wanted to create from this a complete tut that others that have allot of knowladge in development could start working without the stragling of setting up an eviroment or all the issues about how to get from compiling to acctuall creating an .img to flash it on your device.
just a simple "out of the box" solution so pepole could get and work right a way without wasting time in assembling the source codes and setting then env.
ok, and where are you?
I mean what have you done for now??
please see the second post.. it's all there..
yes you need that ramdisk for the kernel.
but you need to edit the ramdisk to work with the xperia play.
i can do that, can you upload it??
what i'm going to do now is, i'm going to upload all the VM to the web and write the complete tutrial for all the steps i have done so far and then we could continue. thank you for trying to help!
ok,
if you need some help PM me!

[Q] Files which should exist in the java code

Hey guys,
recently i was trying to look in the code of ingress and i noticed that some files in some directories are not available in the java code (jdgui) but they exist after decompiling in .smali. How does this work? How can i see the java of this smali? Has anyone got an idea?
Directory:
Ingress_1_20_0-disasm\smali\com\nianticproject\ingress\shared\f\t.smali
ProHex said:
Hey guys,
recently i was trying to look in the code of ingress and i noticed that some files in some directories are not available in the java code (jdgui) but they exist after decompiling in .smali. How does this work? How can i see the java of this smali? Has anyone got an idea?
Directory:
Ingress_1_20_0-disasm\smali\com\nianticproject\ingress\shared\f\t.smali
Click to expand...
Click to collapse
You would need to see the pre-compiled source code. Most likely not going to happen unless the app is open source
Wayne Tech S-III
You can try Broodplank's 'Apk to Java'. It will decompile the apk into Eclipse project like tree with Java codes. But as a downside the source codes gives errors and it most probably won't compile too.
Sent via Phone

how can get the exact source code from an apk

please help me there is an apk i need to add a feature to but i don't have the source code.. i tried different compilers but they are giving me something different .
There is no source code in apk file. Such file contains only compiled files, which you may try to decompile using decompiler. You will never get exact code because some information is lost during compilation process (eg. code comments).
thanks for that brother
Apart from cracking, what can be the real use ?

Anyone Well Versed In Decompiling / Modifying APKS?

Hello,
I Have a Problem!
I would like to take this apk, EFIDroid and reverse engineer it so that it includes binaries for the MDARCY CPU.
EFIDroid
EFIDroid has 39 repositories available. Follow their code on GitHub.
github.com
Can anyone help me? I have barely begun, I extracted the apk and made it into the busybox file.
I am able to edit the files in notepad ++ but I don't know what language they are in...
Perhaps someone could help point me in the Right direction, or teach me an Easier way.. Thank You.
The reason being... Is dual boot on our Shields BABY

Categories

Resources