Skip to content

Instantly share code, notes, and snippets.

/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@Tungstwenty
Tungstwenty / DumpXperiaTA.java
Created May 4, 2013 12:53
Parser for the contents of Xperia Z's TA partition, in line with the discussion at http://forum.xda-developers.com/showthread.php?t=2234627 Run with "java -cp . DumpXperiaTA <path_to_dump_file>"
import java.io.EOFException;
/**
* Parser for the tokens found in Xperia Z's TA partition.
* <p>
*
* Dump the partition by storing the contents of /dev/block/mmcblk0p1,
* and pass that file as input parameter to this class.
*
* @author Tungstwenty