Hello,
Recently i lost all my phone data and i had to recover it via a software. i recovered few files but i have few more files ending up as file names
.thumbdata5-1763508120_0
.thumbdata5-1763508120_1
.thumbdata5-1763508120_2
is there any data under those files as i see they are almost around more then 50mb each
how can i open those files and copy the pics under them ?
Hello,
can anyone reply ??
rinku2012 said:
Hello,
Recently i lost all my phone data and i had to recover it via a software. i recovered few files but i have few more files ending up as file names
.thumbdata5-1763508120_0
.thumbdata5-1763508120_1
.thumbdata5-1763508120_2
is there any data under those files as i see they are almost around more then 50mb each
how can i open those files and copy the pics under them ?
Click to expand...
Click to collapse
can someone help me here
Thumbdata Answer
Yes there is a way... You need a Hex Editor. Open your thumbdata file with this Hex editor. A jpg file starts ff d8, ends ff d9. find and copy ff d8 to ff d9 and save it as a new file in Hex editor. Find that saved file on your pc and make it '.jpg' and have fun. If your thumbdata is not corrupted, it works well.
Hi,
thanks for the answer. When i search for ff d8 its giving as no pattern found. but when i search for ff or d8 it comes up and d9 doesnt come up.
what should i do now ?
Hex Editor Neo
Try Hex Editor Neo. Open file and go Edit/Find/Type -> Select 'HEX' then search ff d8. There must be hundreds of ff d8/ff d9, no way. If you cant find again, let me see one of that file if it has no very special content.
Will iy work in my Android phone
I tried the above steps and saved the files but I ain't able to open it. Is there any problem or I need to do it in my pc.
5
down vote
accepted
It contains 96x96 pixel versions of your photos. The file is simply a concatenation of JPEG files. You can split it into individual JPG files by searching for the signatures indicating the start and end of a JPG file, i.e. the two bytes FF D8 for the start and FF D9 as the end. If you can transfer the file to your computer and you can access Python, the following Python code will extract the files (name the file thumbdata3.dat):
#!/usr/bin/python
"""extract files from Android thumbdata3 file"""
f=open('thumbdata3.dat','rb')
tdata = f.read()
f.close()
ss = '\xff\xd8'
se = '\xff\xd9'
count = 0
start = 0
while True:
x1 = tdata.find(ss,start)
if x1 < 0:
break
x2 = tdata.find(se,x1)
jpg = tdata[x1:x2+1]
count += 1
fname = 'extracted%d03.jpg' % (count)
fw = open(fname,'wb')
fw.write(jpg)
fw.close()
start = x2+2
The program will save the files with the names extractednnn.jpg, where nnn is a number.
Related
Could someone point me to where the reg keys are stored for:
1) hardware buttons program assignments (example if I push message button it opens shortcut for \Windows\Start Menu\Programs\Messaging.lnk, etc).
2) Desktop background (i found an entry in HKCU\ControlPanel\Desktop\Wallpaper but it was for a file that isn't there ... \Windows\Default.2bp). I formatted the file I use by going into pictures and settings and setting transparency to zero. I could photoshop to the right size and copy or use xml to replace but I need some guidance on this one.
For anyone that is interested in helping me proof my xml I attached it here. I am stuck on setting HTC Home contacts.
Could someone point me to where the reg keys are stored for:
1) hardware buttons program assignments (example if I push message button it opens shortcut for \Windows\Start Menu\Programs\Messaging.lnk, etc).
2) Desktop background (i found an entry in HKCU\ControlPanel\Desktop\Wallpaper but it was for a file that isn't there ... \Windows\Default.2bp). I formatted the file I use by going into pictures and settings and setting transparency to zero. I could photoshop to the right size and copy or use xml to replace but I need some guidance on this one.
For anyone that is interested in helping me proof my xml I attached it here. I am stuck on setting HTC Home contacts.
Click to expand...
Click to collapse
1. Defined here [HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Keys.
2. Don't think this can be done via registry. I still have to manually change theme after flash in Today settings.
3. The following is from your _setup.xml file.
Code:
<characteristic type="HKLM\Software\HTC\Contacts\0">
<parm name="LastUpdate" datatype="string" value="D8 07 07 00 01 00 15 00 0D 00 1B 00 03 00 00 00"/>
<parm name="OID" datatype="string" value="2147483768"/>
<parm name="PHONE" datatype="string" value="(805)588-84XX"/>
<parm name="PHONETYPE" datatype="string" value="9830431"/>
It's not working because you have some of the datatypes wrong. The LastUpdate parm datatype is binary not string. OID is integer not string. PHONE is string, so you have that one right. PHONETYPE is integer not string.
I think that button location will help, but I just realized that pocket plus adds long hold application launching to the existing buttons so I will look in that folder for those, not sure if that is going to be easy.
Anyone have a way to auto load a jpg with zero transparency as background.
Thanks for the help on the contacts, I got that one to work ok.
Lost this somewhere took awhile to find.
Now open up the framework-res.apk. (In windows 7-zip will open this without having to change the extension to .zip) (Do not extract)
Now go into the res/layout folder and extract the following three files to the folder you made on the desktop
status_bar_expanded.xml
status_bar.xml
status_bar_latest_event_content.xml
Here is what these files control
status_bar_expanded.xml
Controls the text color for:
1) Clear Button
status_bar.xml
Controls the text color for:
1) USB Connected and Preparing SDcard
2) USB Debugging and Status Bar Notifications
status_bar_latest_event_content.xml
Controls the text color for:
1) Title text in pull down bar for Ongoing and Notifications
2) Description text in the pull down bar under Ongoing and Notifications
3) Text notifications time stamp in the pull down bar under notifications
Open status_bar_expaned.xml with your Hex Editor
Do a search for 08 00 00 1C
The next four 2 digit segments control color and alpha (Transparency) in this order BGRA (Blue, Green, Red, Alpha) (Sorry I had this reversed earlier)
In Hex FF would be the darkest and 00 would be the lightest, so if you set the next four 2 digit segments like this -> FF 00 00 FF then your USB Connected and Preparing SDcard text would be red. I suggest not messing with the alpha, just leave it FF
you will find two areas in this file where 08 00 00 1C appear and in the section above I show the order in which you find 08 00 00 1C and what they control. REMEMBER TO EDIT THE FOUR 2 DIGIT SEGMENTS FOLLOWING 08 00 00 1C
Save the file and edit the other two files (status_bar_expanded.xml has one instance of 08 00 00 1C, and status_bar_latest_event_content.xml has three instances of 08 00 00 1C)
All instances of 08 00 00 1C are in the order that I have outlined above
When you are done open up the framework-res.apk and go into the layout folder
Drag your newly edited files into the res/layout folder, wait for it to update then exit
I use FF FF FF FF for white text on black background.
http://forum.xda-developers.com/showthread.php?t=674157
thanks to the hoffster...
Date
1. Date and notification ticker
Files that have to be edited:
/system/framework/framework-res.apk
DECOMPILED_DIR/res/layout/status_bar.xml
What you have to do:
Extract the framework-res.apk from your phone/rom zip file
Decompile your framework-res.apk using apkmanager
Edit the file DECOMPILED_DIR/res/layout/status_bar.xml
Search for <com.android.server.status.TickerView
As child nodes you will see TWO <TextView> tags. If not present, you must add android:textColor="#ffffffff" to the attributes. It will set your color. the four bytes mean: transparency, Red, Green, Blue (where transparency means: FF no transparency and 00 fully transparent). You have to set the color for both <TextView>s as Android will alternate between them when the notification ticker should show more than one line.
The color for the date will be in the <com.android.server.status.DateView>
Save the file
IN APKManager choose the option to compile your framework
Answer yes when you get asked if it is a system apk and if you want to copy files from the original framework. After the original framework has been extracted, change to your "keep"-Directory and delete the files resources.arsc and res/layout/status_bar.xml.
Let apkmanager continue its work.
now you have a new apk file in your place-here-for-modding directory, which you can push on your phone (DO IT IN RECOVERY): adb push unsignedframework.apk-filename /system/framework/framework-res.apk
Krad said:
Lost this somewhere took awhile to find.
Now open up the framework-res.apk. (In windows 7-zip will open this without having to change the extension to .zip) (Do not extract)
Now go into the res/layout folder and extract the following three files to the folder you made on the desktop
status_bar_expanded.xml
status_bar.xml
status_bar_latest_event_content.xml
Here is what these files control
status_bar_expanded.xml
Controls the text color for:
1) Clear Button
status_bar.xml
Controls the text color for:
1) USB Connected and Preparing SDcard
2) USB Debugging and Status Bar Notifications
status_bar_latest_event_content.xml
Controls the text color for:
1) Title text in pull down bar for Ongoing and Notifications
2) Description text in the pull down bar under Ongoing and Notifications
3) Text notifications time stamp in the pull down bar under notifications
Open status_bar_expaned.xml with your Hex Editor
Do a search for 08 00 00 1C
The next four 2 digit segments control color and alpha (Transparency) in this order BGRA (Blue, Green, Red, Alpha) (Sorry I had this reversed earlier)
In Hex FF would be the darkest and 00 would be the lightest, so if you set the next four 2 digit segments like this -> FF 00 00 FF then your USB Connected and Preparing SDcard text would be red. I suggest not messing with the alpha, just leave it FF
you will find two areas in this file where 08 00 00 1C appear and in the section above I show the order in which you find 08 00 00 1C and what they control. REMEMBER TO EDIT THE FOUR 2 DIGIT SEGMENTS FOLLOWING 08 00 00 1C
Save the file and edit the other two files (status_bar_expanded.xml has one instance of 08 00 00 1C, and status_bar_latest_event_content.xml has three instances of 08 00 00 1C)
All instances of 08 00 00 1C are in the order that I have outlined above
When you are done open up the framework-res.apk and go into the layout folder
Drag your newly edited files into the res/layout folder, wait for it to update then exit
I use FF FF FF FF for white text on black background.
http://forum.xda-developers.com/showthread.php?t=674157
Click to expand...
Click to collapse
You are aware these files are compiled and you cannot simply extract them and begin to work on them. They need to be decompiled and compiled to work.
I will keep working with this to see where it gets me.
alperin1 said:
You are aware these files are compiled and you cannot simply extract them and begin to work on them. They need to be decompiled and compiled to work.
I will keep working with this to see where it gets me.
Click to expand...
Click to collapse
these are more of reference for me later one when I have to cook a new framework-res.apk and services.odex
with the above directions you can hexedit to change colors...
I now know it is easier using apk manager.
Krad said:
thanks to the hoffster...
Date
1. Date and notification ticker
Files that have to be edited:
/system/framework/framework-res.apk
DECOMPILED_DIR/res/layout/status_bar.xml
Click to expand...
Click to collapse
If you don't have /res/layout/status_bar.xml
It is located in system-ui.apk instead
rachelm920 said:
If you don't have /res/layout/status_bar.xml
It is located in system-ui.apk instead
Click to expand...
Click to collapse
system-ui only exists on GB based roms, the streak has no GB stable roms.
Streakdroid 2.0 isnt exactly stable
Krad said:
thanks to the hoffster...
Date
1. Date and notification ticker
Files that have to be edited:
/system/framework/framework-res.apk
DECOMPILED_DIR/res/layout/status_bar.xml
What you have to do:
Extract the framework-res.apk from your phone/rom zip file
Decompile your framework-res.apk using apkmanager
Edit the file DECOMPILED_DIR/res/layout/status_bar.xml
Search for <com.android.server.status.TickerView
As child nodes you will see TWO <TextView> tags. If not present, you must add android:textColor="#ffffffff" to the attributes. It will set your color. the four bytes mean: transparency, Red, Green, Blue (where transparency means: FF no transparency and 00 fully transparent). You have to set the color for both <TextView>s as Android will alternate between them when the notification ticker should show more than one line.
The color for the date will be in the <com.android.server.status.DateView>
Save the file
IN APKManager choose the option to compile your framework
Answer yes when you get asked if it is a system apk and if you want to copy files from the original framework. After the original framework has been extracted, change to your "keep"-Directory and delete the files resources.arsc and res/layout/status_bar.xml.
Let apkmanager continue its work.
now you have a new apk file in your place-here-for-modding directory, which you can push on your phone (DO IT IN RECOVERY): adb push unsignedframework.apk-filename /system/framework/framework-res.apk
Click to expand...
Click to collapse
Ok, Im confused. I tried doing all of the following and everything seemed to work, except that my modified XMLs are not in the new compiled apk. Where do you put them in to get compiled with everything else? When I rebooted my phone, the text is back to white (the color is was before).
did you recompile it?
Half the xmls end up being compressed into resources.arsc only a handful become binary xmls inside res\<various dirs>
Yes, I get an unsignedframework-res.apk. There is no resources.arsc file and the status_bar.xml, status_bar_extneded.xml, and status_bar_latest_event_content.xml are missing from the layout folder.
You might be decompling/recompiling it wrong then
I got it taken care of in another thread. Some of the PNGs in the drawable-hdmi folder were incompatable. I fixed them and it it compiled just. Now I just gotta put it on the phone and see if it works.
i made this video for a friend, and think it helpful with some one , so i made a thread for it
(in 1:42 just delete resources.arsc)
If anyone want other video, just request for it, i'll do if i can :cyclops:
in this video, i used this tool: https://docs.google.com/file/d/0B1jXm_WqN2CaRWMybk42NXJSRDg/edit?usp=sharing
Ok, this is all steps:
1, Decompile SystemUI
Copy your Sony-based SystemUI.apk from system/app in phone to Apkmanager/place_here_to_modding folder
Open cmd file in APK manager, choose 9 to decompile
2, edit XML
Open file projects/SystemUI.apk/res/values/styles.xml by notepad++
Find a line have statusbar.clock (if you want change clock in status bar color, for other items, just find it's style code in this xml file)
Change color from ffffff (white opaque) in a line below to color you want ( for example : if i have a color code 00123456 (hex) means: 2 first hex number 00 is full transparent, ff is no transparent; 2 next hex numbers is green values, then 34 is green value, 56 is blue value. For each color value, 00 is zero and ff full of that color). After all changes, save the file
3, Recompile your apk:
Reopen cmd window and chosse 11, enter then y ,enter then y,enter. After that go to keep folder and delete resources.arsc. go back cmd windows and press enter. DONE, YOUR FILE IS unsignedsystemui.apk in place-apk-here-for-modding folder
i dont understand a SH#T...sorry but u can make a new video with more explanation? or something :S
leloiboi said:
i made this video for a friend, and think it helpful with some one , so i made a thread for it
(in 1:42 just delete resources.arsc)
If anyone want other video, just request for it, i'll do if i can :cyclops:
in this video, i used this tool: https://docs.google.com/file/d/0B1jXm_WqN2CaRWMybk42NXJSRDg/edit?usp=sharing
Click to expand...
Click to collapse
What This?
Sent from my ST15i using xda premium
Updated step by step
Hey developer/tech enthusiasts i need Your help!
I am a small developer from Bangladesh and i want to learn many things!
I have very small knowledge about .dex file, i can work with it very Limited.
Main point is, i want to hack .so (Shared library file) of Android so that i will do better in future!
Patching dex is impossible for me now, but i know patching .so is easy than it!
So, how to work with it???
I have a windows pc running Core i5 1.9 Ghz Ram 4GB Hard drive 1TB windows version 10.
Please share your though/tutorial of how to hack .so/unity dll file!
Of course, provide me link of tools that i will need to patch them!
I will be greatly thankful to you.
Just help me out!
Regards
Nurujjaman Pollob
:*:Tools Required :*:
(*) Il2cpp Dumper GUI
https://www.andnixsh.com/2018/07/il2cppdumper-gui-104-with-apk-extension.html?m=1
Note :: There Is An Non-GUI Version Available On Github. I Prefer GUI Its Easy To Use.
(*) Dns Spy
https://github.com/0xd4d/dnSpy/releases
(*) Hxd Hex Editor
https://mh-nexus.de/en/hxd
** You Can Use Any Hex Editor You Want To.
(*) 7zip Or Winrar
https://www.7-zip.org/
(*) Notepad ++
https://notepad-plus-plus.org/downloads
(*) Apk Easy Tool
https://forum.xda-developers.com/an...tool-apk-easy-tool-v1-02-windows-gui-t3333960
### Lets Start Modding ###
Step 1: First Download Any Game Apk.
( Im Using Subway Surfers Which Is The Easiest Game To Mod )
These Are Some Sites To Download Apk
apkpure.com
apkmonk.com
apkmirror.com
Step 2: ( We Need Three Files ) Open The Apk File With 7zip/winrar Goto And Extract
1. /lib/armeabi-v7a/libil2cpp.so
2. /assets/bin/Data/Managed/Metadata/global-metadata.dat
3. /assets/bin/Data/Resources/unity_builtin_extra
Create a new folder copy these three files.( Make a additional copy of libil2cpp.so )
Step 3: Open Il2cpp Dumper
-> In The Executable File Select the libil2cpp.so and In global-metadata.dat Select global-metadata.dat
-> Open the unity_builtin_extra file with Notepad++
You Will See Something like this in first line 2018.2.21f1 that's the unity version. Just Enter 2018.2 ( it's version no ) In The "Input unity version" Leave Everything As It Is.
+++ And Start Dumping.
( It Will Create a Dummy dll folder ( Which contains C# code in dll Files ) , Dump.cs [ You Can Open And Search For Functions Using Notepad ++ But Dns Spy is Recommended ]
Script.py for IDA. )
Note :: The Assembly-CSharp.dll Does not contain the Actual C# source code It Has only the function name and offset.
Step 4: We Need One dll File named Assembly-CSharp.dll
-> Open That File With Dns Spy.
-> Search For Functions Like get_coins, get_keys ( Every Game Has Different function so take time to search for it )
and double click on it.
-> You Will See Something Similar [ offset = "0*10C70B8" ] Just copy the offset ( 10C70B8 ) It Has 7bytes.
-> Open The libil2cpp.so file in HXD Hex editor
-> Then Press ctrl+g And Paste The Offset You Have Copied.
Note :: Dont Add Extra Or Remove Anything 1char = 1byte
Note :: For Modifying If it has 8 bytes replace with 8bytes.If not then it will start at different end or start positions and causes the library to break.
MVN R0, #0xB0000000
BX LR - Arm Assembly Code
Note :: You Can Use - armconvertor.com -
to convert from arm opcodes to hex code
( if you have some knowledge in assembly language ).
-> It will give the Hex code - 0B 02 E0 E3 1E FF 2F E1
{** MVN - Move Not
bx - branch and exchange instruction set
lr - holds the return address
#0*B00000000 -> This is the value for
(coins,money,gems,keys)
if we convert it to decimal the value is 2952790016 this is the amount of coins for our game. ** }
-> Then Paste The Hex Code From Where Your Pointer Is.
If it has 16bytes replace with 16bytes.
-> Then Save It.
Step 5: Copy the modified - libil2cpp.so - to the original apk using winrar/7zip
-> Sign The Apk Using Apk Easy Tool.
( Signing is not required for Devices patched by lucky patcher ).
Note :: If there is arm8 or x86 folder inside lib/ folder in apk, delete these folders it is not required.
That's It Done...
Hope This Helps.
Have fun Modding. ??
app does not have libil2cpp
it has
libadcolony.so
libjs.so
libmain.so
libmono.so
libunity.so
which file to dump here
hlp
Arnold_9981 said:
app does not have libil2cpp
it has
libadcolony.so
libjs.so
libmain.so
libmono.so
libunity.so
which file to dump here
hlp
Click to expand...
Click to collapse
then, go for libunity.so
Many thanks for your tutorial Jsonkat
I'm trying to follow your steps but the offsets have 6 bits and not 7.
Following your step is possible to change anything into the game, right?
Could you please be so nice to explain better how to edit "libil2cpp.so"?
so I trying to assets ripping/mod the game; I already locate most if not all the assets for the game
the problem is that its use weird extension, so I can't modify them
change it to
.zip
.rar
.7z
nothing
TrID. no avail
magic number
It shows something but its kinda nothing
file signature says
6E 73 69 66 ( nsif ) .nsi
6E 73 08 00 ( ns ) .ns
6E 73 08 00 ( ns ) .nsj
can't really find anything with that
with a simple deduction
those extensions came from the game name (the ns part) and looking at the size
.nsi so like i for Image(?)
most likely image/texture pack files like
.png
.pvr.ccz
.nsj j for js as in javascript or JSON(?)
the other most likely script to run the assets like
.toml
.plist
.xml
or something like that
for these files, judging by the size, maybe it's a sliced-up version of the original file
so it's like an original or made-up file extension
and I don't know how to access them
other things I could do probably debug the .apk and see how it treats those assets
there is also .exe version so I could try the same
but my android studio/visual studio is not in a good mood for some weird reasons, too much weird errors
so is there a thing I could do with the file to make it accessible?
I attach some files if anyone interested