Beginner question: /data partition file list - Samsung Galaxy Note 8 Themes, Apps, and Mods

Hello,
I'm a beginner trying to learn reverse engineering.
I'm interested in learning more about the Samsung keyboard. To do so I decoded the APK after having downloaded a "stock rom", converted system.img to ext4 and mounted it. Then I used apktool to decode the app.
I'm all new to this but by reading the .smali files it seems the app tries to load files from /data/data/com.samsung.android.sdk.handwriting and/or /data/data/com.sec.android.inputmethod. It also seems flashing a rom with Odin wouldn't write files to /data but I may be mistaken.
The phone belongs to my brother and I can't root it b/c of warranty.
So could someone who rooted their GN8 be nice enough to dump the file list from /data and upload it?
Code:
greatlte: su
greatlte: find /data -type f > /sdcard/list.txt
Thanks in advance!

Here you go buddy. I'm happy to help if you need anything else
Edit: I had to put it in a zip, because XDA doesn't allow .txt files in a size larger than 512kb, and the txt file is 8 Mb
View attachment List.txt.zip

Ferbee said:
Here you go buddy. I'm happy to help if you need anything else
Edit: I had to put it in a zip, because XDA doesn't allow .txt files in a size larger than 512kb, and the txt file is 8 Mb
View attachment 4419268
Click to expand...
Click to collapse
Hello @Ferbee.
Totally cool. I'll study this list thanks.
I don't know how much the files weight, but if possible I would like to get my hands on the content of /data/data/com.samsung.android.sdk.handwriting/ and /data/data/com.sec.android.inputmethod/.
Thanks again!

Alright I got the content of the stuff you wanted
Feel free to ask me for anything else you need
View attachment 4419832
View attachment 4419833

Related

Delete files from windows folder?

I'm running short of storage space on my Diamond, and while browsing around in File Explorer I noticed that there are copies of all the HTC demo media (album samples, mp3 files) in the Windows folder - there's easily 2-3mb worth and I could do with deleting them. However it won't let me, is there a way to get rid of them?
Kind regards
Dave
maybe this help
http://forum.ppcgeeks.com/showthread.php?t=38008&highlight=touch+diamond+guide
Thanks, that was helpful - but although they talk about deleting files from the Windows folder in the thread, it doesn't exactly detail how :-(
Kind regards
Dave
most files in the win dir are not in storage but in the rom itself
and can only be deleted by cooking ones own rom
also rom space not used is not merged with storage
so i would not really help you
if you want more space
You can do it by replacing them with some 0 KB files that have the exact same file names and extensions. I just posted this thread for 46 useless files in the Windows directory that will free up more than 10 MB. If there are any other files that you want to delete, just create a new text file, rename it to the file that you want to delete, then copy it to the Windows directory to overwrite the original file. Always backup the original ones in your computer just in case you want to restore them.
I was also thinking about this, but didnt test it yet . Very helpful.
vale|46 said:
Always backup the original ones in your computer just in case you want to restore them.
Click to expand...
Click to collapse
No need to! They are on the ROM! All you need to do it delete them and poof the one on the ROM reappears!
defaria said:
No need to! They are on the ROM! All you need to do it delete them and poof the one on the ROM reappears!
Click to expand...
Click to collapse
That's good to know, thanks.
If, as I understand from reading earlier posts, the files are indeed in the ROM and they don't actually take up storage space then I might as well leave them where they are.
Thanks!
Dave

[Q] I want your help.......?

hi
I have original 2.1 (eclair mod ) installed in my milestone
and i want to customize it ( change status bar, add and remove apps.......)
without installing new custom rom.
so can any help me how to do this ?
thanks in advance
i use 7-Zip to open .apk then you can edit/replace file in apk file
to change or edit .9.png file you need other program like 9patch or draw9patch to save in good format.
the main file to edit is framework-res.apk practically all theme is in that file
all system file does not need signing but all other should be sign before you put back in phone and don't forget to zipaling all file that you touch/edit.
many tutorial are available on the net on how to theme android for more in deep detail.
thanks a lot
I'll try
one more thing please
how to extract the current rom that i am using it and put it into update.zip
like cm6 so i can modify it ( like i want in the previous thread )
thanks in advance
hearts king101 said:
thanks a lot
I'll try
one more thing please
how to extract the current rom that i am using it and put it into update.zip
like cm6 so i can modify it ( like i want in the previous thread )
thanks in advance
Click to expand...
Click to collapse
well first do a nandroid backup of your rom then copy to pc, now extract system.img with unyaffs.
then you have all system file of your rom to play with.
after all your change copy file to sdcard/openrecovery/update/test-update-nosign.zip, don't forget to remove babble
i am using OpenRecovery_v1_46
hope it help
HO!NO! said:
well first do a nandroid backup of your rom then copy to pc, now extract system.img with unyaffs.
then you have all system file of your rom to play with.
after all your change copy file to sdcard/openrecovery/update/test-update-nosign.zip, don't forget to remove babble
i am using OpenRecovery_v1_46
hope it help
Click to expand...
Click to collapse
I did not understand the red part
if it's a program please upload it
if it's not can you tell me what is it?
thank you for your reply
unyaffs is a program to extract files from a yaffs file system image
google it you will find it for sure
I'm so sorry
i found it but i have no idea how to use it
sorry again
hearts king101 said:
I'm so sorry
i found it but i have no idea how to use it
sorry again
Click to expand...
Click to collapse
look for unyaffs.exe
then in a cmd windows type: unyaffs system.img
thank you so much
I've done it and i hope it works
but regarding the nandroid backup there are another files like
boot,bpsw,data.img........
are these files important in making custom rom?
thanks again

[Q] How to change default contact picture

Hi,
I need to change default contact pictures. Its for our customer who finds the green droid infinitely iritating . Anyway, I rooted the Desire HD and did s-off, Clockwork recovery is in place. Bud I didnt find any themes or even adress where those pictures are in the phone.
I will be happy for any advice what image to create, how big, format etc...
And ofcouse where to flash it.
Update:
Actually, no one solved it, i found numerous questions about this and no definitive answer. So any pro here who wants to get extra thanks ?
This is my exact wish!
Fullscreencaller works as windows... unusable
I know where the Dancing Android lives
You need 7zip installed and your chosen ROM saved on your PC.
Right click on ROM and choose
7zip>Open Archive (don't just double click to open it)
Now browse to:
\system\app\
Right click on Phone.apk and choose:
Open
Now browse to:
\res\drawable-hdpi\
Extract the folder so you can view them all as thumbnails. Then you will see 4 files called:
phone_default_270.PNG
phone_default_300.PNG
phone_default_incall_270.PNG
phone_default_incall_300.PNG
There are other contact pictures in there too, as it's the dialler so just have a look and see what you want to change.
Now, for the contact picture that appears in your contact list in HTC People, follow the same as above but go to:
\system\app\HtcContacts.apk\res\drawable-hdpi\
Then look for:
people_home_defaultphoto.PNG
It might also be worth a look in:
\system\framework\framework-res.apk\res\drawable-hdpi\
Now for the disclaimer:
This is all at your own risk. I'm not sure what limitations / consequences there are for modifying these files as I have only used this method to swap icons from other ROMs into my own. You might need some kind of special editor for the PNGs, but at least you now know where to look
@sviftcz: If you need help with creating a flashable zip, you could upload your Phone.apk and the pictures you want and I'll make one for you.
sigurd_LU said:
@sviftcz: If you need help with creating a flashable zip, you could upload your Phone.apk and the pictures you want and I'll make one for you.
Click to expand...
Click to collapse
What are the missing steps from my post above? I'm keen to do this myself now we're speaking about it!
Do the pngs have to be saved a specific way or is it simply a case of creating a file with the same dimensions and swapping them over? As I said, I've only ever swapped over files that were from one ROM into another rather than adding in files I've created myself.
Thanks
Your guide is awesome! But it misses the steps how you get it on your phone
You'll have to take your original phone.apk, open it with winrar or 7zip (don't extract, just open it), and drag and drop your edited images from the previously extracted apk in the right folders.
When you're done, exit winrar/7zip and put the phone.apk into system/app of this flashable update zip: http://www.multiupload.com/THCTLMRDBU
And that's it. If you want more details or if I didn't explain it well, just tell me.
Haha, yeah... I forgot to say that I do it before I flash the ROM!
Using your flashable zip is way easier though.
The only other thing is, do you have to save the PNGs with specific settings, other than them being the same size obviously?
Cheers
CitizenLee said:
Haha, yeah... I forgot to say that I do it before I flash the ROM!
Click to expand...
Click to collapse
Okay
The color depth (expressed in bits) doesn't matter as long as the png has the right dimensions, as you said.
btw, I didn't make this zip, it's from he_stheone64.
IS there any temporary rooting available for the new version of Desire HD?
I dont want to update any FW, nor root image. Thanks the help!

[TOOL]LG Bin Firmware Extractor

LG BIN/TOT Extractor
This is a tool for extracting LG Bin/Tot Firmware files.
I update the git a lot more than what I update the thread so check there for latest news.
Features
Split Bin file into relevant partitions
Split Tot file into relevant blocks and merge blocks into partitions
Display AP Header
Display GPT Header
Extract Header from Bin/Tot File
Features I like to implement (and probably won't get around to)
Extracting boot img (The tools currently available don't work in all cases and it's very easy to read the header since it's open source.)
Extracting ext4 partitions. So that it's easy to access the file. Theres already other tools that can do this so this isn't essential.
Mergeing tot partitions based on data from partitions itself and not GPT
Inject Alternate Data into partitions. I'll block access to X-loader,U-boot and GPT so that You can't kill your phone.
Source
https://github.com/Xonar/LGBinExtractor
Confirmed to work with
Quite a few phones.
I lost track of which ones work.
To check just run with -daph. You'll get file information if it works and either garbled data or an error message if it doesn't.
If your phones not supported follow the steps on git readme.
Thanks
SnowLeopardJB - for lots and lots of testing
navossoc - his tool that extracts kdz and wdb files
vim1 - D821 support
scotty755 - LGL22 support
tkawajir - L-04E and LG G Flex F340K support
If you feel I forgot to thank you, msg me and I'll add you.
If it can extract BIN files then yes. We believe the nandroid V30* of KU5900 that was supplied was incomplete. So If KDZ is converted to BIN and FLS (which we can), then extract contents of BIN, then you can have complete files without looking for Koreans and Chinese to relay that the nandroid was incomplete and can have untampered files.
xonar_ said:
Question to other Devs
Will you use a tool like this or am I wasting my time?
Is a tool like this allowed or would it be considered reverse engineering? (If its not allowed I'm going to stop IMMEDIATELY)
Click to expand...
Click to collapse
Yes I will. If I myself can build a program to extract this EFI partition..
It is reverse engineering, but I don't know if it's legal or not (in this case), but for me it's legal as I'm considered this to educational purpose
Many others tool was created to have purpose like this, for example http://psas.revskills.de/?q=node/5
-CMIIW-
I've attached an image of the system partition of the V20E_00 for you guys to see.
I am going to download the v30H_00.kdz today. So I'll keep you posted about how the extracting goes. I probably won't have time to check it out until the weekend so please don't hold your breath.
I've only recently managed to find the necessary information about the ext4 file system to integrate the functionality into my tool. For now Ext2Read can extract the ext4 file system just fine. I'll add that somewhere over the weekend (Provided something doesn't come up).
Could you as soon, as you are able to unpack it fully maybe upload a complete backup of the system partition and also system2, cause we think, that in the nandroid there are some files missing and we need those, to probably be able to boot that system. Great job btw
Thanks for the positive feedback.
I am getting the v30h_00.kdz in a few hours (I got a friend to download it for me, I don't have that much cap ).
There is no way I will be able to upload the file since it will be big but if it works I'll post the tool and how to do it.
GitHub is giving me an error : "Page did not respond in a timely fashion". I am going to try again tonight to post the source.
I already tried to extract the bin files, but I didn't see any pattern to know where start or ends a partition.
Some partitions you can identify by it's header and try to extract the file size from there (i did that with recovery.exe).
If you know for sure the partition name and the address, I can improve the recovery.exe to patch always the right partition.
So, what is the trick?
[]'s
navossoc said:
I already tried to extract the bin files, but I didn't see any pattern to know where start or ends a partition.
Some partitions you can identify by it's header and try to extract the file size from there (i did that with recovery.exe).
If you know for sure the partition name and the address, I can improve the recovery.exe to patch always the right partition.
So, what is the trick?
[]'s
Click to expand...
Click to collapse
The first meg of the file contains the names of the data blocks size on file,size on disk and where they start on file. I'll post exactly how it is set out later.
The data blocks aren't only partitions though for example the first one is the GPT header with it's corresponding entries and also some blocks are empty.
I recognized the start the two partitions from your tool.
Sent from my LG Optimus Black
xonar_ said:
The first meg of the file contains the names of the data blocks size on file,size on disk and where they start on file. I'll post exactly how it is set out later.
The data blocks aren't only partitions though for example the first one is the GPT header with it's corresponding entries and also some blocks are empty.
I recognized the start the two partitions from your tool.
Sent from my LG Optimus Black
Click to expand...
Click to collapse
You are talking about the first 1MB from BIN? right?
They are using little endian or big endian to represent the numbers?
The name of the sections I already knew, but never found the initial offset.
I will try to take a look later.
[]'s
navossoc said:
You are talking about the first 1MB from BIN? right?
They are using little endian or big endian to represent the numbers?
The name of the sections I already knew, but never found the initial offset.
I will try to take a look later.
[]'s
Click to expand...
Click to collapse
Yes the BIN. They are using little endian. All the offsets and sizes are in LBA's (512 bytes in this case) with LBA 0 starting at 0x100000.
Sent from my LG Optimus Black
Source of Bin Fls Extractor (So far)
GitHub isn't working out as planned. The client stopped downloading in the middle and I don't want to waste more cap so here is the source as an attachment.
This is still a work in progress and is only confirmed to work with v20E_00 South Africa.
Linux users can just mount the *.img file of system to access it. Windows users have to use a tool like Ext2Read. Mac users I'm not sure : Google it.
EDIT : I wont be able to get the v30 kdz for another day unfortunately. Feel free to try and change my tool to work with it.
EDIT2: These sources are old. I'll upload my fixed ones later. Reads in chunks and works on P970 and KU5900 ( I don't have any other files to test it with but it should work with almost all BIN files extracted from kdz files )
xonar_ said:
GitHub isn't working out as planned. The client stopped downloading in the middle and I don't want to waste more cap so here is the source as an attachment.
This is still a work in progress and is only confirmed to work with v20E_00 South Africa.
Linux users can just mount the *.img file of system to access it. Windows users have to use a tool like Ext2Read. Mac users I'm not sure : Google it.
EDIT : I wont be able to get the v30 kdz for another day unfortunately. Feel free to try and change my tool to work with it.
Click to expand...
Click to collapse
Nah! The damn trick was the 512 bytes + 0x100000 base.
I never thinked about it...
I take a look at your code, I understand the whole concept now.
I have successfully extracted the system.img and system2.img from the V30H_00.kdz
Nice, maybe later I can do some modifications on recovery.exe, so they can find always the correct partition for recovery.img. (without the user choose one)
[]'s
navossoc said:
Nah! The damn trick was the 512 bytes + 0x100000 base.
I never thinked about it...
I take a look at your code, I understand the whole concept now.
I have successfully extracted the system.img and system2.img from the V30H_00.kdz
Nice, maybe later I can do some modifications on recovery.exe, so they can find always the correct partition for recovery.img. (without the user choose one)
[]'s
Click to expand...
Click to collapse
Nice! Great job you guys. :good:
navossoc said:
Nah! The damn trick was the 512 bytes + 0x100000 base.
I never thinked about it...
I take a look at your code, I understand the whole concept now.
I have successfully extracted the system.img and system2.img from the V30H_00.kdz
Nice, maybe later I can do some modifications on recovery.exe, so they can find always the correct partition for recovery.img. (without the user choose one)
[]'s
Click to expand...
Click to collapse
can you upload system files asap?
George Jetson said:
can you upload system files asap?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=31443301&postcount=270
Thanks to navossoc there
navossoc said:
Nah! The damn trick was the 512 bytes + 0x100000 base.
I never thinked about it...
I take a look at your code, I understand the whole concept now.
I have successfully extracted the system.img and system2.img from the V30H_00.kdz
Nice, maybe later I can do some modifications on recovery.exe, so they can find always the correct partition for recovery.img. (without the user choose one)
[]'s
Click to expand...
Click to collapse
That's good news.
I won't be able to work on the program during the rest of this week. With the system files extracted there's nothing that needs to be urgently done.
Next Step is to to try and build the BIN from other files. I think I can improve on your recovery.exe to add su binary and apk aswel (Might take a bit longer since I need to extract the ext4 partition, add su then put it back together )
Well, it's just a beta, because it use too much ram to write the files.
I need to read the file in chunks, but, for now it's a good prototype, we can using it.
extract.7z
Code:
CRC32: 2199d10f
MD5: 5b8d8031ff5d66ec2832d182e98505be
SHA-1: b6d729a20d4370e25ebc4eddfc27e25673b1d2f2
To use the tool is just run...
Code:
extract.exe filename_AP.bin
It should work on any bin file, tested on P920, P970 and KU5900.
Please report any error.
[]'s
Thanks navossoc its working well on ginger p970 bin file.
Great stuff thanks alot! You to make a great team.
Sent from my LG-P920 using xda app-developers app
Now how can we make a new bin file with that img files?

Razr I XT890 bloat apps safe to remove from JB?

Hi,
Just wondering if anyone has tried and tested the removal of bloatware apps from their Razr I XT890 running 4.12?
I'd be interested in cleaning the phone up a bit just to make it less crowded, I like to use real calc instead of stock calculator, go sms instead of stock messaging, zeam launcher instead of stock launcher etc etc.
I'm quite a novice when it comes to the technical side of things so would be too afraid to start deleting system apps incase they messed something up.
If anyone has seen a list compiled and could share, that would be great. Also, would it be Razr I specific, or would a general 4.12 safe removal list be safe to follow?
Any feedback appreciated
Here you can find answers.: http://forum.xda-developers.com/showthread.php?t=2223482
Read the forum.
Sent from my XT890.
Thanks a lot, have you any idea what to do with them zip files and how can I keep some of the google apps in the list? I'm not sure where to put the #?
cormie said:
Thanks a lot, have you any idea what to do with them zip files and how can I keep some of the google apps in the list? I'm not sure where to put the #?
Click to expand...
Click to collapse
I think that for you would be easier use Titanium Backup or SystemAppRemover (need root acces) to remove apps.
If you want use the zip file you have to unlock bootloader and flash CWM. In CWM you can install zip files. # you must put in front of the line where is written desired app. Updater-script you can fing in the zip file /META-INF/com/google/android/
Thanks again, I actually have my phone rooted and was able to apply the debloater, however I don't want to remove everything so will restore the backup I took before trying it, I tried install the zip file with the edited script (with the # in front of the ones I wanted to keep) but it failed to install via recovery so I must be doing it wrong
I extracted the script file, opened with wordpad, edited, closed and saved, put it uncompressed back into the zip and tried it.
that failed, so I tried open directly from the zip, edit, close and save and flash that too but that failed too the original unedited one doesn't fail.
The error I get is something referring to error in zip file.
cormie said:
I extracted the script file, opened with wordpad, edited
Click to expand...
Click to collapse
Do not use WordPad. Edify scripts require line endings to be linux style (LF only). Wordpad converts them to windows style (CR LF). Use another editor; I recommend notepad2-mod (set syntax highlighting, F12, to shell script)
See I edited and saved in wordpad and wasn't prompted to save in any other format, do you think it still saved in CR LF?
In the same script and another edit, I think I pasted something from somewhere else and went to save, but then it prompted me to save in the wordpad format itself (rtf I think it was) which I didn't, when I simply added a # or two, it just prompted to save without asking for format so it appeared to save as it was and not change anything? So you reckon it still changed it to the non-readable CRLF?
Would basic windows notepad be ok to edit it instead of having to download notepad 2?
Thanks for tyour help so far!
Maybe I'd be better just doing this via root explorer, of which I have some experience of. Is it just a case of locating each of the files listed in the script and deleting them or is there other hidden crap elsewhere that the script gets rid of which a simple root explorer delete won't?
cormie said:
See I edited and saved in wordpad and wasn't prompted to save in any other format, do you think it still saved in CR LF?
In the same script and another edit, I think I pasted something from somewhere else and went to save, but then it prompted me to save in the wordpad format itself (rtf I think it was) which I didn't, when I simply added a # or two, it just prompted to save without asking for format so it appeared to save as it was and not change anything? So you reckon it still changed it to the non-readable CRLF?
Would basic windows notepad be ok to edit it instead of having to download notepad 2?
Thanks for tyour help so far!
Click to expand...
Click to collapse
Try notepad++

Categories

Resources