[Q] android webkit location - Android Software/Hacking General [Developers Only]

where are the majority of the webkit files stored after its compiled is it in one of the firmware jars or is it the libwebcore.so the file im changing is core/java/android/webkit/GeolocationService.java im compileing the entire android system but dont want to replace all of the files i just want to find the file i just edited if that makes any sence what so ever

any takers on this?

solved
i found it its apart of the framework.jar file so if your ever editing one file in the webkit its apart of the framework.jar

Related

[Q] Android OS and App Localizations

I did a search for static strings localization in Android and found the development documents talking about res/values/strings.xml for default values. The documents also talk about res/values-<qualifiers>/strings.xml for localized text. The strange thing is that non of the 2.1 apps I have use these files for text! They do have 'res' folder, but non of them have 'values' or 'values-xx'!
On the other hand, some sources talk about localizing the Android OS itself through classes.dex file in system/framework folder. When I decompiled this file, I only found long list of .smali files with no indication of string values. So, the question is how Android and its apps can be localized?
values*/*.xml files are compiled into binary resources.arsc file. Use apktool or Apk Manager to decompile them.
Thanks Brut.all! I got them
What about the localization of the Android OS itself? Any idea how can it be done?
<html> said:
Thanks Brut.all! I got them
What about the localization of the Android OS itself? Any idea how can it be done?
Click to expand...
Click to collapse
You can change the Android localization under Language & Keyboard Settings.
The localization strings for the Android OS itself reside in framework-res.apk file. I successfully edited the strings there but still having great difficulties pushing the the revised framework-res.apk back to the file system. I rooted the device and tried to replace the old one with a new one from SD card. The device halted and refused to boot again! The same behaviour with adb push command. Any help please?

[Q] Find core/java/android/view/Surface.java

Hello,
I would like to know, how its is possible to find, for example the file core/java/android/view/Surface.java .
Sorry for that noob question, but I am really interested in Android Software Developement and when I look at the github-profiles of others I always find those directories and files, I do not find on my system.
I tried using the baksmali tool and baksmalied my framework.jar . Then I found the file /framework/android/view/surface.smali but there are mostly completely different commands, so I think, there must be another tool that can edit the framework.jar in another way.
I would be very thankful for help.
AFAIK, what your looking for is in source, so once a build is compiled, you will not find that file(or folder structure). When you decompile framework.jar, you will find mostly smali files, which makes looking at the code give me headaches...
What are you trying to do? Is this for ICS or GB? and have you looked into setting up a repo on your computer? If you set one up, you will then find all the java source files you are looking for, but then you must compile the files you edit.
netwokz said:
AFAIK, what your looking for is in source, so once a build is compiled, you will not find that file(or folder structure). When you decompile framework.jar, you will find mostly smali files, which makes looking at the code give me headaches...
What are you trying to do? Is this for ICS or GB? and have you looked into setting up a repo on your computer? If you set one up, you will then find all the java source files you are looking for, but then you must compile the files you edit.
Click to expand...
Click to collapse
what i am trying to do, is to add some features like the rotation animation for motorola milestone 2.1 . what i already have managed, is to add ics animations and 4-way-reboot, by editiong the framework-res and framework.jar .

Can't Load res/raw Files After Modding

Hello xda-developers!
I'm new to Android hacking, but I have a general background in programming...
I've been modding an application recently, unpacked the .apk file, done my changes and repacked it, signed it and everything works well...But when I run the program, and the program wants to play an mp3 file, which was located in res/raw before packing the .apk file, it gives an error: "Can't load audio file."...What is the possible cause of this problem and how to solve it? Are the IDs of the raw resource files changed everytime I unpack and repack the .apk file or what?
Thanks in advance...
Edit: Issue fixed by unpacking and repacking using Apktool instead of WinZip.

[Q] Problem Modding APK

Hello guys,
I am modding an apk to bypass an update check.
I have this outdated APK that functions fine since the URL and query and site address remains same but whenever it checks for and update it crashes. The thing is the developer made it topnotch but since then left and his site was recently taken down so check update query crashes it totally. What I need to do is update just the one function where it brings up the GUI after start. Otherwise it keeps saying download update or crashes randomly at time of starting up.
Now I have been browsing for a day or two for all the tutorials and right now I`m hell lot of confused. I have downloaded many tools and dependencies but I dont know how to proceed. I will tell you guys what I have and what I need.
I have de-compiled the APK using "dex2jar", I had a .JAR file which I decomplied using JD-GUI-Windows now after saving source I have .ZIP file in which I made the necessary editing. Next I downlaoded APKTool.JAR and extracted resource files and XML files that can be read in text editor. Along with some .SMALI files.
Now I am not familier with SMALI language at all and editing in it seems rather complicated and on the other side I have the .JAR file that decomlied all the classes just fine.
MY QUESTION IS:
How do I recompile the files I have ? I have the main coding extraced using dex2jar so in java format and JD-Gui to in .ZIP files, and resources/XML files also decoded using APKTools. What do I do next to recompile the APK ?
In short I have plain text based java source code and plain text XML and other resource file. How do I recompile it ?

Help - deodexing Oreo manufacturer specific APK and framework

Hi,
I'm trying to deodex and decompile some manufacturer specific apps from a Android car head unit (PX5 RockChip).
I've "pulled" the apps as I have ADB root to the device, and there is an APK (for each app), but that only contains the xml files.
With the apk, there is an oat folder, and inside that is arm64, which contains both odex and vdex files.
(I'm not sure why it has both odex and vdex. The vdex files seem to be about 4 times the size of the odex)
Anyway ... ApkEasyTool (which uses Baksmali) has errors when trying to decode the odex files, as it reports invalid opcodes
I've done a search on the various deodexers, but nothing seems that up to date, and most threads seem to end with people asking whether the deodexer supports Marshmallow or Lollipop, without any response from the tool developer.
Can anyone recommend any other tools, (apart from ApkEasyTool) which may be able to deodex a Oreo APK.
Or should I be using a tool to deodex the vdex files instead ?

Categories

Resources