Squashfs Utils for Xperia ROMs - Xperia Z2 Tablet General

I have been looking to free up space in the ROM by reducing the size of the squashfs files in the System partition. These files contain ODEX files for some of the ROM packages. When pruning out some of these packages, the squashfs files are usually untouched, leading to wasted space. I have compiled the squashfs tools (a regular linux package) with the correct compression method for the xperia ROMs ('xz') in cygwin, together with a couple of cmd files with the correct parameters included for ease of use and the relevant cygwin support DLLs. These are latest versions as of 5th October 2016 and uses v4.3 of squashfs tools. This will allow you to:
1. Unpack the odex.app.sqsh, odex.priv-app.sqsh and odex.framework.sqsh files
- e.g. type: "unsq odex.app" to unpack odex.app.sqsh to a subdirectory called odex.app
2. Prune or add files to the folders (ensure you don't disturb the directory structure)
3. Repack the sqsh files
- e.g. type: "mksq odex.app" to pack file odex.app.sqsh from a subdirectory called odex.app
Download and extract the files from the following archive: https://drive.google.com/open?id=0B1H2QbfukxKxQmt1Umd3ZDc1elU

hey bro,im using Z3C stock rom based android 6.0.
i repacked and replaced sqsh file(changed own 644) ,when i make factory reset,it cant boot up again(after boot animation,show a black screen,after a while,it restart automaticly...finally,i got any FC stopped...) ......canyou help me to solove this ?(im sorry for my poor english)

Related

CrunchIT Method

A Type of COMPRESS EXTENDED ROM that uses the SelF eXtracting Archive (SFX), done thru a Zip Program(Pocket Rar, Winzip, or Winrar), Zip it then Make a SFX with Nsctech CrunchIT 5.0, then add the XdA2JoJo.v3.0.1t.CAB in config.txt to automatically execute the ExtROM.exe and extract the files to TEMP folder, the files will be executed by autorun and needed to specify the \TEMP\ as the path, after installing all program files, it will remove the cab files in the TEMP folder with wei's Fast Cleanup 1.3
.. for more details about the CrunchIT Method Click Here

Extract fat image from flashrom/filesystem

Hi,
I'm wondering if exists a method to extract the FileSystem image from the internal memory of a PDA/Smartphone.
I need it because I'm developing a forensic tool to extract all user's files and to try to recover deleted files as well.
All tools I tried till now (grab_it, dumprom, etc), seems to extract only operating system files (.dll, XIP and so on...).
Any help?
thanks a lot.
f.

buildos+packagetools for many devices...

Hi all, I'm completing new buildos+packagetools for many devices, multidevices, it works by executing differents bats, and user can choice what bat execute to:
1) dump os.nb (or other rom os...) from differents devices...
2) extract xip from more devices by executing a bat (one of more that it found)
3) build os.nb or other rom file (ever by executing a bat)
then you have to choice what bat execute, a form appear and shows all bat found into \tools folder for that operation....
example:
to build xip the form search for all bats into \tools folder that start with: EXTRACT_XIP (example: Extract_xip_from_kaiser, or Extract_xip_from_trinity)
and list all into the form that can contains max 16 different bats, and a radiobutton help to you to choice the bat to execute....
same for dump os.nb or build os.nb.....
if want to partecipate this project, follow this 3d....
I think tomorrow (today!) I'll post the verison 4.0b1 that contains 2 bat examples for xip extract, os dump and os build into \tools folder, and I think working around (in software and makeing other bats) it can became universal way to dump/build HTC Devices roms.....
the 3d...
http://forum.xda-developers.com/showthread.php?p=2074523#post2074523
bye!!!

MSCEInf version 2.1 (Update)

MSCEINf update is only for those who want to use the program in Command Mode for making batch tasks.
Contributions of version 2.1
· MSCEInf Version 2.1 adds ability to extract in command mode CAB files in a folder preserving subfolders names.
Syntax is a bit rigid with a keyword extract (separed by a space) after CAB name. This keyword allows creation of INF file and files extraction (with correct names) while preserving subfolders names.
A second parameter optional is folder name where to extract files. If omitted, folder name will be :
"c:\ExtractDir".
Program creates the folder if it does not exist.
For example write like here (do not forget to separe each parameters by a space and put path in double quotes) :
msceinf "C:\Users\Benoit\Documents\a.cab" extract​and files are extracted in folder "c:\ExtractDir".
or give folder name where to extract :
msceinf "C:\Users\Benoit\Documents\a.cab" extract "C:\Users\Benoit\Documents\My extracted files"​and files are extracted in folder "C:\Users\Benoit\Documents\My extracted files".
Link to the 6 localized versions (include english) : http://www.codeppc.com/telechargements/msceinf/msceinf.htm
.
WOW...great work benthon..it will become handy in making OEMS while cooking

Unyaffs / Makeyaffs utility (Windows / Linux)

Some older version of unyaffs utility don't open recent new format of YAFFS file image.
There are some new structure for YAFFS file iamge (ex. 8192 bytes /segment and 448 bytes /spare)
The new utility (unyaffs) can support it, but if you want to recompile it should be encessary also makeyaffs (and it should be run under Linux - not under Windows)
Some link about other utils
Unyaffs /ehlers) - source: https://github.com/ehlers/unyaffs
To compile under Windows it's quite simple.
Install Cygwinwin (downlaod http://cygwin.com/setup.exe and run it).
As modules select: "gcc", "gdb" and "make".
Create a folder under "/Cygwin/home/@username" and put here the program source.
Run Cygwin. Go to the source directory. Run "make". You will have the .exe file compiled.
Copy the compiled .exe file plus CYGWIN.DLL (available in \CYGWIN) and in other folder and you can run utility.
Other usefull tools: http://code.google.com/p/yaffs2utils/

Categories

Resources