(Tool) Compare files. - Vibrant Themes and Apps

First off I have nothing to do with the creation of this tool I'm merely sharing what I've found.
Anyone who has dug into smali files knows that they can be somewhat overwhelming and trying to track down a problem can be a time consuming nightmare. One thing I do to hunt down a problem is compare what I know to be working against what is broken so I was sitting here today thinking that I would write a script or create a tool to batch compare files then I said to myself "EB, you're not the first one that's wanted to do this so there must already be something." I fired up Google and sure enough there are a few. The one that I found that is free and handled my task can be found here http://www.grigsoft.com/download-windiff.htm
Quick tutorial;
1. Download the file.
2. Create a new folder (anywhere you want)
3. Extract the contents to your new folder
4. Place the items you want to compare in that folder (they can be anywhere really but it's simpler to have them in the same directory.)(For my purposes I de-compiled the classes.dex of two framework.jar files and moved the entire output files to this directory in two separate folders.)
5. Run the program
6. Select File
7. Select either Compare Directory (what I did for my purpose) or Compare files. A dialogue box will pop up where you select the 2 sources that you want to compare.
Now this tool will only output what files are changed. There are other tools out there that can do more but I like the ones that are free. At least with this I can scan hundreds of files at once and see where I need to begin

if you want to search for code in multiple files and what not else,
http://notepad-plus-plus.org/
has a great program for that
You can search inside the files of a whole folder if you want to....pretty cool

Related

Data restore problem using Sony PC Companion

I am using Sony xperia S without any major problem.
But facing little problem after reset to factory settings or firmware repaired by P C companion . I back up my contacts,messages, Bookmarks and Settings using P C Companion There was no error or problems during the backup process.
After updating firmware When I tried to restore my data. It always shows that 'data restore failed'.
PC Companion has stored a ".dbk" file on my PC. But PC companion failed to restore my data to my SXS. I used both Windows 7 and XP but failed to get back my data.
Sony also aware this problem see this link-
http://talk.sonymobile.com/thread/35170
If anyone also facing this problem please share your experiences in this thread.
That happened to me too...
I tried everything and there is no solution...can't find any help on internet...sony support is useless in this matter...they don't even know why this happens!
Hope some solution comes out soon cause I lost a lot of important stuff like meeting, SMS, contacts...
1st yellow tint...then yellow white, micro and ear sound issues, now this...thanks a lot Sony...you are really doing it right
PS - I'm using this app now for backing-up and restore:
http://www.elita-clan.com/downloads/...re_v010935.apk
It is very easy to use and it works fine on my XPS
Solution
Hey there!
I had the same problem (just wanted to retrieve my Contacts) and managed to get them. In the following I will explain how. This method probably works with backups from other mobiles made with Sony PC Companion too.
I got the same problem (also only fullbackupdata), after rooting my mobile and not thinking of the problem, that it might not be able to restore the contacts.
Here's what I found out: I couldn't find anything with Google, so I decided to just look at the data of the file. It starts with:
ANDROID BACKUP
1
1
none
I did some Googeling again and found out, that it is the same file like an ICs created adb backup.
I also found a project to retrieve Data from backups: ht tp s: //github.c om/nelenkov/android-backup-extractor
HOW YOU CAN RESTORE YOUR DATA:
Get your Fullbackupdata-Contactfile.
1. First go to your backupfile: (C:\Users\YourUserName\Documents\Sony\Sony PC Companion\SomeNameDependsOnLanguage\
2. Make a Copy of your backup-File (crtl+c, crtl+v)
3. We want to change the file extension, so make sure you see it. If you don't see a .dbk at the end of your file, go in the explorer window in the left upper corner on organise -> Folder and search options. Change to view and then deselect "Hide extensions for known File types"
ht tp://kb.winzip.com/kb_upload/image/folder_options2.png
4. Rename (F2) the file to backup.zip
5. Open the zip with 7zip or something similar.
6. Navigate to Applications\com.sonyericsson.android.contactsimport and get the fullbackupdata file which is lying in this folder.
7. Put this file on your Desktop.
8.Download this jar-File: ht tp: //ge.t t/64TJmne/v/0?c
9. Put the .jarFile also on your desktop.
10. Doubleclick the .jar-File. After a few seconds a new file with the name "restore.tar" should show up (If not check if your fullbackupdata-File really has the name "fullbackupdata" and is on the desktop)
11. Open the .tarfile with 7Zip
12. Navigate to restore.tar\apps\com.sonyericsson.android.contactsimport\f\
13. Copy full_backup_vcard.vcf to the Desktop.
If everything worked you're finished, you can open this .vcf File via Windows-contacts -> import or put it directly on your phone and import it there (open Contacts. Settingsbutton -> impot)
If you don't trust my .jar file, you can also download the github-project follow their orders and compile it yourself.
I hope this helped also other people. It took me quite a while, so I thought I should share my solution.
Greetings Johannski
Ps: Sorry for the spaces in the links, I'm not allowed to post any
..
re johnanski
Johannski
got to step 9
nothing after that??
any suggestions
thanks
not getting the .vcf file
Johannski said:
Hey there!
I had the same problem (just wanted to retrieve my Contacts) and managed to get them. In the following I will explain how. This method probably works with backups from other mobiles made with Sony PC Companion too.
I got the same problem (also only fullbackupdata), after rooting my mobile and not thinking of the problem, that it might not be able to restore the contacts.
Here's what I found out: I couldn't find anything with Google, so I decided to just look at the data of the file. It starts with:
ANDROID BACKUP
1
1
none
I did some Googeling again and found out, that it is the same file like an ICs created adb backup.
I also found a project to retrieve Data from backups: ht tp s: //github.c om/nelenkov/android-backup-extractor
HOW YOU CAN RESTORE YOUR DATA:
Get your Fullbackupdata-Contactfile.
1. First go to your backupfile: (C:\Users\YourUserName\Documents\Sony\Sony PC Companion\SomeNameDependsOnLanguage\
2. Make a Copy of your backup-File (crtl+c, crtl+v)
3. We want to change the file extension, so make sure you see it. If you don't see a .dbk at the end of your file, go in the explorer window in the left upper corner on organise -> Folder and search options. Change to view and then deselect "Hide extensions for known File types"
ht tp://kb.winzip.com/kb_upload/image/folder_options2.png
4. Rename (F2) the file to backup.zip
5. Open the zip with 7zip or something similar.
6. Navigate to Applications\com.sonyericsson.android.contactsimport and get the fullbackupdata file which is lying in this folder.
7. Put this file on your Desktop.
8.Download this jar-File: ht tp: //ge.t t/64TJmne/v/0?c
9. Put the .jarFile also on your desktop.
10. Doubleclick the .jar-File. After a few seconds a new file with the name "restore.tar" should show up (If not check if your fullbackupdata-File really has the name "fullbackupdata" and is on the desktop)
11. Open the .tarfile with 7Zip
12. Navigate to restore.tar\apps\com.sonyericsson.android.contactsimport\f\
13. Copy full_backup_vcard.vcf to the Desktop.
If everything worked you're finished, you can open this .vcf File via Windows-contacts -> import or put it directly on your phone and import it there (open Contacts. Settingsbutton -> impot)
If you don't trust my .jar file, you can also download the github-project follow their orders and compile it yourself.
I hope this helped also other people. It took me quite a while, so I thought I should share my solution.
Greetings Johannski
Ps: Sorry for the spaces in the links, I'm not allowed to post any
Click to expand...
Click to collapse
hey i followed the steps..bt at step 12 i'm not getting the .vcf file..instead i'm getting a "_manifest" file..help please..
Sorry my answer comes just now, I'm not checking this forum very often.
@jain.saheel:
jain.saheel said:
hey i followed the steps..bt at step 12 i'm not getting the .vcf file..instead i'm getting a "_manifest" file..help please..
Click to expand...
Click to collapse
Hm seems like you have an other phone configuration than me...
I tested it with Sony Xperia Go with android Version 4.0.4.
Try googeling in which directory your Contacts are stored, than open with my jar file this file and you should be good to go.
If you don't find anything, you can also write your model and I try to find a solution... best you email me, I'm not sure when I will get o this forum (send (at) johannesdeml.com)
@stricler:
Do you have Java istalled? Are both files in the same directory (my .jar-File and your fullbackupdata file (which also has this name))?
If you can't manage to do it, you could also send me your file if you want to ( send (at) johannesdeml.com).
My jar File should still work, got a lot of positive feedback here: talk.sonymobile .com/thread/51298?start=10&tstart=0
com.sonyericsson.android.socialphonebook folder
jain.saheel said:
hey i followed the steps..bt at step 12 i'm not getting the .vcf file..instead i'm getting a "_manifest" file..help please..
Click to expand...
Click to collapse
=================
I find android "Xperia go" 4.1.2 backup contacts in com.sonyericsson.android.socialphonebook folder :good:, after restoreData.jar unzip and open full_backup_vcard.vcf with excel
jain.saheel said:
hey i followed the steps..bt at step 12 i'm not getting the .vcf file..instead i'm getting a "_manifest" file..help please..
Click to expand...
Click to collapse
I had the same problem, here's the solution:
in step 6 instead of navigating to Applications\com.sonyericsson.android.contactsimport you should go to Application\com.sonyericsson.android.socialphonebook and get the fullbackupdata file from there.
I followed the steps. but on clicking on the jar app, my nokia suite opens up! :/
Johannski You are Awesome.
Thanks brother for all your help. All my contacts restored...!!
Thank You:angel::angel:
i cant get the .tar file. what should i do?
Johannski said:
Hey there!
I had the same problem (just wanted to retrieve my Contacts) and managed to get them. In the following I will explain how. This method probably works with backups from other mobiles made with Sony PC Companion too.
I got the same problem (also only fullbackupdata), after rooting my mobile and not thinking of the problem, that it might not be able to restore the contacts.
Here's what I found out: I couldn't find anything with Google, so I decided to just look at the data of the file. It starts with:
ANDROID BACKUP
1
1
none
I did some Googeling again and found out, that it is the same file like an ICs created adb backup.
I also found a project to retrieve Data from backups: ht tp s: //github.c om/nelenkov/android-backup-extractor
HOW YOU CAN RESTORE YOUR DATA:
Get your Fullbackupdata-Contactfile.
1. First go to your backupfile: (C:\Users\YourUserName\Documents\Sony\Sony PC Companion\SomeNameDependsOnLanguage\
2. Make a Copy of your backup-File (crtl+c, crtl+v)
3. We want to change the file extension, so make sure you see it. If you don't see a .dbk at the end of your file, go in the explorer window in the left upper corner on organise -> Folder and search options. Change to view and then deselect "Hide extensions for known File types"
ht tp://kb.winzip.com/kb_upload/image/folder_options2.png
4. Rename (F2) the file to backup.zip
5. Open the zip with 7zip or something similar.
6. Navigate to Applications\com.sonyericsson.android.contactsimport and get the fullbackupdata file which is lying in this folder.
7. Put this file on your Desktop.
8.Download this jar-File: ht tp: //ge.t t/64TJmne/v/0?c
9. Put the .jarFile also on your desktop.
10. Doubleclick the .jar-File. After a few seconds a new file with the name "restore.tar" should show up (If not check if your fullbackupdata-File really has the name "fullbackupdata" and is on the desktop)
11. Open the .tarfile with 7Zip
12. Navigate to restore.tar\apps\com.sonyericsson.android.contactsimport\f\
13. Copy full_backup_vcard.vcf to the Desktop.
If everything worked you're finished, you can open this .vcf File via Windows-contacts -> import or put it directly on your phone and import it there (open Contacts. Settingsbutton -> impot)
If you don't trust my .jar file, you can also download the github-project follow their orders and compile it yourself.
I hope this helped also other people. It took me quite a while, so I thought I should share my solution.
Greetings Johannski
Ps: Sorry for the spaces in the links, I'm not allowed to post any
Click to expand...
Click to collapse
I cant get the .tar file
injamuljamil said:
I cant get the .tar file
Click to expand...
Click to collapse
Well that is not a lot of information. Probably you have a problem with your java installation. Try to run the program with the commandline to get more information. Therefore run the command "java -jar restoreData.jar" in the folder where the jar lies.

Android System ignores hosts file

Hey guys,
I have a problem with editing the hosts file on Android.
At first, some general information: My Phone is a rooted Samsung Galaxy S6 with Android 7.0 and for editing I use the 'Total Commander for Android' tool by C. Ghisler (Version 2.90).
So here's my problem: I put together a huge hosts file for my Windows PC (some own entries, a lot of entries copied from someonewhocares.org/hosts) and wanted to copy the entries from my PC to my phone. So I duplicated the file, used Notepad++ and did " Edit --> EOL Conversion --> Unix (LF) ". I then sent the file via e-mail, so I could easily download it from my phone. Said and done, I downloaded it and put it into /system/etc , but when I try to visit one of the sites in the hosts file, it works although it should'nt work.
When I open the hosts file on my phone via total commander and add an entry manually, it works (site is unavailable after doing so).
But if copied into the file (even in Unix format) the system will just ignore the entry.
I have a list with a little less than 10,000 entries, I can't type them all on my phone. What can I do now, so that the Android system will use the hosts file as it should?
Thank you very much
Sieefi
Sieefi said:
Hey guys,
I have a problem with editing the hosts file on Android.
At first, some general information: My Phone is a rooted Samsung Galaxy S6 with Android 7.0 and for editing I use the 'Total Commander for Android' tool by C. Ghisler (Version 2.90).
So here's my problem: I put together a huge hosts file for my Windows PC (some own entries, a lot of entries copied from someonewhocares.org/hosts) and wanted to copy the entries from my PC to my phone. So I duplicated the file, used Notepad++ and did " Edit --> EOL Conversion --> Unix (LF) ". I then sent the file via e-mail, so I could easily download it from my phone. Said and done, I downloaded it and put it into /system/etc , but when I try to visit one of the sites in the hosts file, it works although it should'nt work.
When I open the hosts file on my phone via total commander and add an entry manually, it works (site is unavailable after doing so).
But if copied into the file (even in Unix format) the system will just ignore the entry.
I have a list with a little less than 10,000 entries, I can't type them all on my phone. What can I do now, so that the Android system will use the hosts file as it should?
Thank you very much
Sieefi
Click to expand...
Click to collapse
Nevermind. Problem solved.
Sieefi said:
Nevermind. Problem solved.
Click to expand...
Click to collapse
Please explain how you solved it, that may help others with the same issue(seek help and provide help ). Thanks!
strongst said:
Please explain how you solved it, that may help others with the same issue(seek help and provide help ). Thanks!
Click to expand...
Click to collapse
Oh, that is, in fact, pretty simple. It was pretty late when I did this yesterday and I was tired but wanted to get this done before going to sleep. So I made some stupid mistake. I don't know what it was, might have been that I reopened the file in windows editor, might be that I copied the wrong file, I really don't know.
Did it again today (this time without making a stupid mistake) and it works like a charm.
So for everyone who wants to do this, here's a step-by-step instruction (works with Total Commander or with ES File Explorer and should also work with every other root file explorer)
1. Edit your hosts file on your Windows (or Apple) PC as you wish
2. Copy the hosts file and put the duplicate into any other folder on your PC (just not the one with the original hosts file )
3. Open the duplicate with Notepad++ and change the format into Unix (Edit --> EOL Conversion --> Unix (LF))
To control whether everything is changed as necessary you can show the format of the line breaks by clicking View --> Show Symbol --> Show End of Line
4. Move the file to your Dropbox or OneDrive or send it to yourself via mail or, or, or...
5. On your Smartphone copy or move (as you wish) the file from your selected file exchange system into /system/etc
6. Done.
Of course this is only possible, if your Smartphone is rooted and your file explorer has root access.
If your using a Linux system and want to copy the hosts file from your PC to your smartphone you can leave out the third step because the file will already be written in Unix format

How do I replace files in a mobile game?

Hello, I am wondering if anyone knows how to replace files for a mobile game? Game in question is game called "Crossing Void", and I want to change some art (pictures ingame). I managed to take out the apk but it sadly didn't have the pictures I wanted. (Turns out its the asset folder, no .obb or not in the .apk itself, if I'm correct).
I spent some time and found more of its data in Android > Data > Gamefolder_CompanyName [1]. I copied and moved it to the pictures folder (PC Shared Folder) [2], took it out and placed it on my desktop (then extracted the files as they were in ZIP format) [3]. Afterwards I used a program to extract all the assets (the files had no extensions, including audio and textures, just a plain file name so I unfortunately couldn't view them) [4]. But I didn't want to give up so I spent some hours researching and found out I have to extract the assets, luckily I found a program called AssetStudio GUI [5], and used that.
After I extracted all the assets I can finally open and view the files, be it music or pictures! (they got extensions now, .ogg, .png, etc). So I replaced some pictures, I made sure they retained same file name and everything even after replacement. But this is where I am stuck. I don't know how to turn these pictures back to their original "structure" (so that they have no extension like they originally had, just plain name). Maybe if I can figure this out, I can put the newly modified zip (which has my added pictures that I replaced) and replace the original zip (which has the old pictures).
I tried by just renaming my picture, example xdadev.png to xdadev, zipped the folder and replaced. But I still had original picture ingame when I logged back on. I made sure to delete old folder too and paste the modified one in here. [6]
P.S/ ((I placed the new zip in the pictures folder (PC Shared Folder), went on my emulator, opened ES file explorer, copied the folder and placed it in the Android > Data folder). I did delete the original one first, but no success as aforementioned).
Sorry for the long message, I just wanted to make sure to include all the information!
[1] i.imgur.com/FQEd9f1.png
[2] i.imgur.com/gujZrWW.png
[3] i.imgur.com/ 7SkaqIP.png
files were located here: com.actgames.fcigl --> files --> PatchCache) / or (com.actgames.fcigl/files/PatchCache)
[4] i.imgur.com/qMjQlLW.png (fil means file).
[5] AppVeyor
[6] i.imgur.com/4XAO5OZ.png
you can try https://github.com/DerPopo/UABE if the game is Unity

Help Decompiling/Recompiling Stock/System App with APK+ODEX

I've got a specialized Android box running 8.1. I also have a full system image for the machine.
Within the image is a custom app that I'd like to modify. I'm able to pull the APK and ODEX/VDEX files from the priv-app folder. I'm also able to deodex to get all of the smali files, and recreate the classes.dex.
This is about as far as I've gotten. I should also say I've never done this, so may not have all the necessary tools. At this point, I'm simply trying to create a new and functional full APK that can be installed on another machine.
For anyone following....
Once you've got your dex files, add it/them to the apk package. Install Visual Studio Code (the free general use version of Visual Studio). Then install the APKLab extension. With VS open, CTRL-Shift-P to bring up the command menu, where APKLab: Open an APK should be at the top. Select it, then choose the APK to open, along with the desired options. These are what I generally choose:
-decompile_java (much easier to read the java than smali code, although it cannot be edited)
-force-manifest
-no-debug-info
-deobf
-show-bad-code
*unselect only-main-classes
Make any edits within the smali. In the left side Explorer menu, right click apktool.yml and select APKLab: Prepare for HTTPS Inspection. When complete, right click apktool.yml and select APKLab: Rebuild the APK. Your newly compiled APK will be placed in the "dist" folder.

Question one+-latest do it all tool

i found this on a gsm forum thought id share it here
32.33 MB file on MEGA
mega.nz
I have this... its not worked for me so far
This is a windows .bat file that is "protected" and is written to work with Android 11 and half the functions are not the same with the Android 12 ColorOS base version. If the author would have shared it with the .bat file in plain text, someone might have updated it and left his credit and not just stole his work and renamed it.
Not everyone embraces open source ideals.
Yes this work with os11 not for os12
All you have to do is run the exe, then browse to where it extracts the contents to. IE:
c:\Users\<username>\appdata\local\temp
....
the.real.p3y0t3 said:
All you have to do is run the exe, then browse to where it extracts the contents to. IE:
c:\Users\<username>\appdata\local\temp
....
Click to expand...
Click to collapse
You have not dealt with well written .bat file obfuscation. I have the .bat file, but it has been run through a tool that converts the editable ASCII into expressions and different encoded base (x) that are more work to resolve than to re-write the batch file.
Challenge: Make this working executable .bat file plain ascii again.
Your story, tell it like you believe it ;-)
Honestly though, why not look for your self? Ive already done it with this "tool". Not obfuscated at all. If yer having problems finding the files, run the EXE, choose one menu option, go to yer temp DIR and sort the contents by date modified, and with the FILES listed first, scroll down to where it starts listing directories. It will be the first one listed. Have fun!
\\'eird dunno why it didnt attach the file to the previous post. I should have made clear that the file you seek was located in the tmp directory thats created under the parent directory... You seemed to know what you were talking about, so I assumed little to no hand-holding would be needed...
Its worth mentioning that all of these bat2exe tools use the same (or nearly the same..) method for urm ehhh "obfuscation"; IE: upon running the app, it inflates the files to your appdata\local\temp directory. Sometimes the "app" will be password protected, and wont unpack the exe until the correct password is entered. For myself its force of habit to go check my temp dir after running any of these style tool things... And you should too!

Categories

Resources