[Q] Android source code files' location - General Questions and Answers

I'm working on a project which main goal is to log when different features of android are being accessed.
For this I need to find the main source files of the different features.
I found the network file that I find helpful: /Android_Working_Directory/system/netd/client/NetdClient.cpp
I want to find something like that but for the gps.
Any thoughts?

You can try to find in system/lib/hw or files contains gps/location word.
Sent from my A1 using XDA Free mobile app

what did you mean?
T3RM|NATOR said:
You can try to find in system/lib/hw or files contains gps/location word.
Sent from my A1 using XDA Free mobile app
Click to expand...
Click to collapse
What do you mean by system/lib/hw? to search in each of this folders?
Because that path doesn't exists..

jdorfsman said:
What do you mean by system/lib/hw? to search in each of this folders?
Because that path doesn't exists..
Click to expand...
Click to collapse
I am sorry I didnt read your post correctly. I was talking about files in phone root, but about source find it with gps word. " You will find name something like gps.default

Related

[Q] how can i rename apk?

I want to rename an apk .But i want to see the new name when i install the apk for every android devices
Dylan Bay said:
I want to rename an apk .But i want to see the new name when i install the apk for every android devices
Click to expand...
Click to collapse
I guess that could be only changed in strings.xml page of app source. I'm not sure whether you get that file when you decompile an apk, you do get the Manifest.xml file, but that just points to location in strings.xml
Correct me if I'm wrong.
Is this something where you change any app's name to your's and say others that it is made by you...
If not then I will help...
Sent from my GT-S7500 using xda premium
lokeshsaini94 said:
Is this something where you change any app's name to your's and say others that it is made by you...
If not then I will help...
Sent from my GT-S7500 using xda premium
Click to expand...
Click to collapse
Bro .I'm not need it to say it's by me .

change stock rom apps

can i make a rom which has almost all the properties of a stock rom... bt a change in apps like messaging app and contacts app??? coz i really liked those from remICS v1.7
Yep. Just delete them and replace them in system/app
Sent from my GT-I9003 using xda app-developers app
Please don't open threads like this in the dev forums. Moved to General.
Thank you,
mf2112
XDA Moderator
BassBlaster said:
Yep. Just delete them and replace them in system/app
Sent from my GT-I9003 using xda app-developers app
Click to expand...
Click to collapse
Hi,
I'm not an android developement expert but have a question about your advice.
If we delete only the app from /system/app folder (and nothing more. via root explorer), won't it cause trouble?
I would like to give an example for clearing this issue in my mind. In windows, if we just delete the exe file from the Program Files, it doesn't mean we uninstalled the program. It still lefts dll files etc. Is it like this in android?
I asked this because I wanna uninstall the apk's in my custom rom like Google Player or DSP Manager. The developer installed them inside the custom rom, so they look like system apps and as a result I can't uninstall them...
replace them via root explorer and check the permission for new file then restart your device and it will work
rupid said:
Hi,
I'm not an android developement expert but have a question about your advice.
If we delete only the app from /system/app folder (and nothing more. via root explorer), won't it cause trouble?
I would like to give an example for clearing this issue in my mind. In windows, if we just delete the exe file from the Program Files, it doesn't mean we uninstalled the program. It still lefts dll files etc. Is it like this in android?
I asked this because I wanna uninstall the apk's in my custom rom like Google Player or DSP Manager. The developer installed them inside the custom rom, so they look like system apps and as a result I can't uninstall them...
Click to expand...
Click to collapse
adroid system are module style, a apk consist of every thing needed to run the apps. but some app need extra lib file, if you can find the lib file used by a apk to run, than you can delete it form system/lib too.
Exactly what the post above said. Some system apps have .lib files (like windows dll) but i would leave them if i were you because your replacement apps might have dependancies on those lib files. Im not entirely sure.
Also, the libs are stored in system/lib
Sent from my GT-I9003 using xda app-developers app
chongns and BassBlaster both really helped me to clarify some details in my head. Thank you so much...
so?
BassBlaster said:
Exactly what the post above said. Some system apps have .lib files (like windows dll) but i would leave them if i were you because your replacement apps might have dependancies on those lib files. Im not entirely sure.
Also, the libs are stored in system/lib
Sent from my GT-I9003 using xda app-developers app
Click to expand...
Click to collapse
is it safe for me to remove the messaging app from stock rom?? and also the contacts app?? does it have lib files like you said?? i am really confused
shows parse error!! any way to saolve this?
You cant replace it with apps meant for only ics.
Sent from my GT-I9003 using xda app-developers app
nandujanuary02 said:
shows parse error!! any way to saolve this?
Click to expand...
Click to collapse
You got this error after deleting what? I'm just curious..
rupid said:
You got this error after deleting what? I'm just curious..
Click to expand...
Click to collapse
nono ...i copied the apk files from an ics rom tried to put in gingerbread rom...and whie installing i got this error!!
Apps specially for ICS won't work in gb roms. These 2 version of roms are quite different.
Pls don't simply mess up with the roms version.
Sent from my GT-I9003 using xda app-developers app
Btw, if you back up your original rom's apk files, there is a chance to use them on your custom roms. It has a higher chance if your custom is based on your original rom.
For example, I backed up samsung's music player and photo editor apk on original DDLF2 and installed them on my custom Frankestain rom. Now I'm using them with no problems. I must mention, the original fm radio apk didn't work on custom rom, as it needen some special libraries/frameworks.

Two versions of the same application

i have an app installed (from apk file, not google play).
recently i got an updated version of the application (another apk file).
is there ANY way of installing the new version next to old one without overwritting it?
i need to use both versions at the same time.
Why use 2 versions? If its the same app, it will do the same thing as the old one.
???
Sent from my GT-N8020 using xda app-developers app
Are you trying to have simultaneous porn pix slideshows or films running concurrently?LOL
JK sounds like youre doing a comparison of versions....but of what?
You aint special.
i have an app that i am using for watching tv from my satellite platform provider.
they released an updated version of they software with new functionality but they took away others. i would like to use new things but also still have an access to old functions.
but excluding the duscussion if is it reasonable or not...
can it be done? and how?
.
Hi,
Backup it with titaniumbackup first, then install new version.
If updated app is not working, just restore the old one.
Bye
Sent from my GT-N8000 using Tapatalk HD
drei666 said:
Hi,
Backup it with titaniumbackup first, then install new version.
If updated app is not working, just restore the old one.
Bye
Sent from my GT-N8000 using Tapatalk HD
Click to expand...
Click to collapse
Thats an answer to a totally different question.
is there ANY way of installing the new version next to old one without overwritting it?
OP i would try renaming the apk .
jje
the files have different name.
Probably they have the same signature or ID or whatever identifies it in Google Play.
Is there any way of changing the parameter identifying the app?
kayteck1 said:
the files have different name.
Probably they have the same signature or ID or whatever identifies it in Google Play.
Is there any way of changing the parameter identifying the app?
Click to expand...
Click to collapse
yes u can change the main activity name in smali form....apktools will help you
..decompile apk
..change activity folder's name
..change activity paths in all smali files
..rebuild apk
..sign
.. install
good luck
Galaxyer said:
yes u can change the main activity name in smali form....apktools will help you
..decompile apk
..change activity folder's name
..change activity paths in all smali files
..rebuild apk
..sign
.. install
good luck
Click to expand...
Click to collapse
Thank you.
So, I got as far as..... decompiling the app
I am not completely across with programming but I have no clue what I should do next Well... I've never played in programming for android and haven't played in modding or any stuff like that.
SO, Can you guide me what I should do next?
What is activity folder name and where is it stored?
Which entries in smali files are activity paths?
I'll understand if you won't help anymore as it may be too much to go through... honestly, no worries...
This is a link to the app
https://www.dropbox.com/s/gtcazc58aqz8j7y/com.adb.android.app.iti-1.apk
It is a free app. The only thing is that it can be downloaded from Polish Google Play only, hope I haven't broke any xda rulez now
Any help is appreciated...
Here you go...just install this alongside the original
https://www.dropbox.com/s/r07l6u06q4dow1d/iti.apk
bjbinc said:
Here you go...just install this alongside the original
https://www.dropbox.com/s/r07l6u06q4dow1d/iti.apk
Click to expand...
Click to collapse
link is not working, sorry...
.
kayteck1 said:
link is not working, sorry...
.
Click to expand...
Click to collapse
Weird... Try this
http://db.tt/SIpwOgs8
Sent from my GT-N8013 using Tapatalk HD
kayteck1 said:
link is not working, sorry...
.
Click to expand...
Click to collapse
Sorry for my late...
thanks to bjbinc for supporting you with the mod...
Good luck
I'm trying to do the same thing. With real racing 3. I have an older version that I like a lot for its particular features, plus the latest Ferrari updated version.
I want to have both on my phone. Any way? Also, they have the same exact com.r3 folders, can the modified apk use different data folders?
Thank you for all your help

Keyboard remaping need help

Can someone help me out with changing the keyboards "-" to "~"
I just can't seem to figure it out
Sent from my SGH-T839 using xda app-developers app
This should hold you in good stead:
http://forum.xda-developers.com/showthread.php?t=1242993&highlight=keyboard+hex
I added to that thread toward the end with some of my own hacks. It can be tricky, but there are downloadable files that you could modify to serve your own needs.
Jake
jakfish said:
This should hold you in good stead:
http://forum.xda-developers.com/showthread.php?t=1242993&highlight=keyboard+hex
I added to that thread toward the end with some of my own hacks. It can be tricky, but there are downloadable files that you could modify to serve your own needs.
Jake
Click to expand...
Click to collapse
I no longer have a computer to do this an I have no clue what this charater is called "~"
Is there a way I can do it with out have to use computer?
Sent from my SGH-T839 using xda app-developers app
immorality said:
Is there a way I can do it with out have to use computer?
Sent from my SGH-T839 using xda app-developers app
Click to expand...
Click to collapse
If you want your own hack, I don't believe so--unless there's a hex editor for Android available someplace. You can sometimes plain-text edit the actual keys to call other actual keys. For instance, I hacked one key file to replace the voice call button with a TAB, and that procedure did not need hex editing
I do believe the character you want is called a "tilde." If so, then chaostic_2k1's hacked bin has [email protected] producing a tilde--I can confirm that on my own SK4G.
IF that fits your needs, you could download his files from here, then copy over to specific sys directory without a computer (I assume you're rooted, etc).
EDIT: if that's the character you want, my own hacked file on that thread will also produce it via [email protected]
Jake
jakfish said:
If you want your own hack, I don't believe so--unless there's a hex editor for Android available someplace. You can sometimes plain-text edit the actual keys to call other actual keys. For instance, I hacked one key file to replace the voice call button with a TAB, and that procedure did not need hex editing
I do believe the character you want is called a "tilde." If so, then chaostic_2k1's hacked bin has [email protected] producing a tilde--I can confirm that on my own SK4G.
IF that fits your needs, you could download his files from here, then copy over to specific sys directory without a computer (I assume you're rooted, etc).
EDIT: if that's the character you want, my own hacked file on that thread will also produce it via [email protected]
Jake
Click to expand...
Click to collapse
Alright thanks ahah ill still try to me it cuz I'm use to hittin - but ill use yours for now
An yours is a flashable ? sorry I say this cuz I see its .zip
Sent from my SGH-T839 using xda app-developers app
immorality said:
An yours is a flashable ?
Click to expand...
Click to collapse
Nah, it's just .bin files, no need for cwm, etc. Go to the listed directory in /sys, rename the original files and copy over the new ones. Reboot.
Jake

[COMPRESSED][SOURCES]All compressed Android sources

ALL COMPRESSED ANDROID SOURCES ARE HERE​
Hello devs, I have seen that many of you are having trouble downloading sources of various ROMs due to low internet speeds, so i decided to compress all the sources in small size and share them with you.
I've compressed sources and .repo folder separately in ".tar.xz" format at max compression level, so just extract the SINGLE archive and enjoy..!!
I will be uploading sources of:
AICP
Android x86
AOKP
AOSP
BlissRoms
Carbon
CyanogenMod
Gummy
Mahdi
MIUI Patchrom
Omni
Pac-Man
Paranoid Android
Resurrection Remix
RootBox
SlimRoms
VentureROM
ALL SOURCES NOW RESIDES IN A SINGLE FOLDER AT AFH, HEAD OVER TO THIS THREAD BY @regalstreak FOR MORE INFO AND LINK TO THE FOLDER.​
**REQUESTS ARE NOW ALWAYS OPEN PLEASE READ THIS POST BY @MSF Jarvis ON HOW TO REQUEST NEW SOURCES**​
Just saying, you could have only uploaded the .repo compressed. That would have a better purpose than this.
MasterAwesome said:
Just saying, you could have only uploaded the .repo compressed. That would have a better purpose than this.
Click to expand...
Click to collapse
What if someone wants full source?
EDIT- well i have uploaded only .repo now
MasterAwesome said:
Just saying, you could have only uploaded the .repo compressed. That would have a better purpose than this.
Click to expand...
Click to collapse
Exactly !
Xeers
Well, only .repo is also getting uploaded
Any other hosting site
And if you know a better hosting site or anything please suggest, i got 1 month to upload the sources
Lol .repo is the source with individual git repositories which is managed by the repo tool. Just host the .repo folder compressed. Add main sources like
. AOSP
. CM-12
Maybe throw in a miui patch rom
When extracting after joining it's says first header blabla with the lrzuntar command. Please lead me.
Sent from my Mi438S using XDA Free mobile app
aaaaaaziskurnia said:
When extracting after joining it's says first header blabla with the lrzuntar command. Please lead me.
Sent from my Mi438S using XDA Free mobile app
Click to expand...
Click to collapse
have you installed lrzip in your system?
The Prezident said:
have you installed lrzip in your system?
Click to expand...
Click to collapse
It also included. Before the header blablabla thing appears, the process showing extracting size. But nothing coming in my disk
Sent from my Mi438S using XDA Free mobile app
aaaaaaziskurnia said:
It also included. Before the header blablabla thing appears, the process showing extracting size. But nothing coming in my disk
Sent from my Mi438S using XDA Free mobile app
Click to expand...
Click to collapse
how are you extracting the source? and can you please show me the screenshot of the error?
The Prezident said:
how are you extracting the source? and can you please show me the screenshot of the error?
Click to expand...
Click to collapse
If you're uploading .repo files use the max compression and upload it as a single file or use dd to split it. Use tar.xz format. export XZ_OPT=-9. And then tar -Jvcf repo.tar.xz .repo
Include a binary or a script to automatically merge the parts. Never leave it to end user
Sent from my Moto G using XDA Free mobile app
MasterAwesome said:
If you're uploading .repo files use the max compression and upload it as a single file or use dd to split it. Use tar.xz format. export XZ_OPT=-9. And then tar -Jvcf repo.tar.xz .repo
Include a binary or a script to automatically merge the parts. Never leave it to end user
Sent from my Moto G using XDA Free mobile app
Click to expand...
Click to collapse
Yea i am willing to upload it as a single file, but i cant find any hosting website which provides these kinds of services. Please suggest any if you have in mind.
The Prezident said:
Yea i am willing to upload it as a single file, but i cant find any hosting website which provides these kinds of services. Please suggest any if you have in mind.
Click to expand...
Click to collapse
After compression using XZ_OPT=-9 and compressing into tar.xz, tell me the file size. Where ever you're hosting now, that'll do. just use dd to split into parts and include a script/c program to combine it and uncompress it and remove the temporary stuff.
MasterAwesome said:
After compression using XZ_OPT=-9 and compressing into tar.xz, tell me the file size. Where ever you're hosting now, that'll do. just use dd to split into parts and include a script/c program to combine it and uncompress it and remove the temporary stuff.
Click to expand...
Click to collapse
Okay, downloading CM 11.0 again now.
UPDATE: downloading done, now compressing to tar.xz at level 9.
The Prezident said:
how are you extracting the source? and can you please show me the screenshot of the error?
Click to expand...
Click to collapse
I attach the screenshot.
Sent from my Mi438S using XDA Free mobile app
aaaaaaziskurnia said:
I attach the screenshot.
Sent from my Mi438S using XDA Free mobile app
Click to expand...
Click to collapse
first decompress using "lrunzip" then untar the extracted file.
The Prezident said:
first decompress using "lrunzip" then untar the extracted file.
Click to expand...
Click to collapse
After decompress using lrunzip, still got that error. What should I do?
I suggest You to using tar.xz format. It's easy and don't split it with hjsplit.
Too many process, more chance to get error.
Sent from my Mi438S using XDA Free mobile app
aaaaaaziskurnia said:
After decompress using lrunzip, still got that error. What should I do?
I suggest You to using tar.xz format. It's easy and don't split it with hjsplit.
Too many process, more chance to get error.
Sent from my Mi438S using XDA Free mobile app
Click to expand...
Click to collapse
Yes, it seems that my tar version was lower than yours, well compressing the sources again and uploading on other file host.
The Prezident said:
Yes, it seems that my tar version was lower than yours, well compressing the sources again and uploading on other file host.
Click to expand...
Click to collapse
Don't directly upload it. Pack it with extraction scripts.
Sent from my Moto G using XDA Free mobile app

Categories

Resources