Extraction of code lines - Android Q&A, Help & Troubleshooting

Hi folks,
do you know if it is possible to extract all the code lines in an Android phone, including the OS codes itself? I want to do it to make sure whether there is any malicious app in my phone.

Related

[Q] QR Code...source code for a small app

want to create an app to generate a qr code in the phone itself without connecting to internet..it should be having 3 details..name,phone no,email-id...ny source code or nythng to help me out ..this is my first app .
You want to create such an app? Than you have to start coding I guess, if you dont know how to code it, search for information on the web. Starting with:
http://en.wikipedia.org/wiki/QR_Code
http://www.denso-wave.com/qrcode/qrfeature-e.html
A hint: You have to know what you're doing when you want to code something. So if you don't know how to create an QR-Code, than you can't develop an app. Makes sense right?
EDIT
I use these sites to generate my qrcodes:
http://qrcode.kaywa.com/
http://goqr.me/de/

[Q] Modification of API

Hi, thanks for the wonderful resource here.
New to android, so a bit confused on some issues I'm interested in playing around with.
You can modify .apk files etc to customize them, you can modify and re-compile the android source.
However, is it possible to modify parts of the API (like android.location for example) without having to re-compile the entire source?
Where on a rooted system is the actual API libs stored (if accessible)?

[Q] Need help with building CM

Hi all, I am trying to build android from source (Cyanogenmod) for my phone Sony Xpreia Pro (iyokan). I am following the instructions at wiki{DOT}cyanogenmod{DOT}org/w/Build_for_iyokan (I haven't posted a lot so I can't post URLs ). During my build I need to do one additional step. I need to pull the proprietary files from my device. This is where the problem comes in.
I found that there are 4 files which the extract-files.sh script cannot extract. This causes problem in the build process and the build process stops without completion. The files which the script cannot find are:
/system/bin/calibrator
/system/etc/firmware/wl1271-fw-multirole-roc.bin
/system/lib/libc2d2_z180.so
/system/lib/egl/libGLESv2S3D_adreno200.so
I found wl1271-fw-multirole-roc.bin at "/system/etc/firmware/ti-connectivity/" instead of "/system/etc/firmware/". Is it fine to modify the "proprietary-files.txt" to have this path instead of the "/system/etc/firmware/"? I am not sure if the functionality of both the files is same.
Also I found a file called "wlan_calibrator" instead of "calibrator" in the same location. I also found a file called libGLESv2_adreno200.so instead of libGLESv2S3D_adreno200.so
Would it be fine if I change the name in "proprietary-files.txt"? Again, I am not sure if the functionality of the other files is same. I couldn't find the file called "libc2d2_z180.so"
I really don't know what to do and would really appreciate if anyone could help me on what I should be doing.

Need help changing Sync Adapter parameters

Hello,
I need to change sync adapter parameters of an app that works with a server. I just want to lower the time it checks for new data on the server.
Its a 3 rd party apk.
Where should i look in the apk and for what code line?
Thx!
What application and what code? Do you have access to the code? The question shows that you don't know much about programming.
Hello,
The app is a taxi apk that connects with the server to obtain orders.
I have tried to unpack it and I dont know in what file to edit the code regarding changing the refresh sync time.
I tried to edit it with an online Java editor.
Is the dex file responsabile?
I am amateur in editing code, but I have read some tutorials and I think I can repack and sign the app after editing.
If the de file is the key, how can i edit it?
This îs the file
Can you post the code you obtained from the decompilation on github so we can see what can be done?
Anyone else?
Please help! ?
Small bounty offered ?
Up

Using a .so file in an android app? How can I access the hardware depth sensor on my (rooted) phone?

I'm building an application that requires the use of the depth sensor on my Samsung Galaxy A80. However it seems like it's impossible to access it through Camera2 and ARCore. I asked Samsung directly and the tech support guys best guess was that Samsung has locked it from being used by third parties.
I rooted my phone and started digging through the file system and eventually found a file called 'com.samsung.sensor.imx316.so' located in /vendor/lib/camera (imx316 is the depth sensor). There are also some similar files that ends in '.bin', but .so files seems to be runnable code if I understood the google results correctly.
That file has the same name as the sensor I can't seem to access. Can this file be used somehow? Can I run it in my own app to get access to the depth data? And if not, there should be a way of getting that data right? I mean, it obviously exists somewhere in the phone since pre-installed apps are using it, and a rooted phone has access to everything?
Did you check REQUEST_AVAILABLE_CAPABILITIES_DEPTH_OUTPUT? How do you know it's impossible?
Most likely you need to reverse engineer the Camera app from your phone.
Your app can call com.samsung.sensor.imx316.so , it's really "just" a linux elf library.
The problem you face is the exported routines from the library, you won't really know
1) the parameters to the functions inside the library
2) any specific order to call functions inside the library i.e. like an init function first , release memory last...
You need to disassemble / reverse engineer the library to make some sense of it (see ghidra / radare2/ ida pro etc ).
Use strace on the current process/app which uses the library to make some sense of the order of calls into the library.
The depth data will be coming from a kernel level driver, you can likely obtain the Samsung kernel source and the driver source should be there. Then it's up to you whether you can make user space library/code to read what the driver exposes. The kernel driver source code will have an uapi header file to investigate.
idk if it helps but i used for a Huawei P30 Pro this https://github.com/Nufflee/tof-camera

Categories

Resources