Giter Club home page Giter Club logo

yuanxinos_usb's Introduction

syber_usb - 0.3
===============
Yuan Xin mobile phone  tool
by Duo Jia, [email protected]
Test on x86_64(Ubuntu14.04 & 15.04) , YUANXIN S1

NOTE:
========
1.Run as root!
  Do not run in the virtual box linux (virtual machine,noly usb1.0), will lose data!
  If you read the '/data' directory, please ensure that the 'data' partition has been formatted.
  (ensure that the phone properly initialized).
2.sometimes phone down!!!,press volum down & power,a moment,press volum up,waiting.
  or
  sudo ./syber_usb reset
  or 
  sudo ./syber_usb shutdown

SPEED(self-test):
========
  read partition:2MBytes/s,Depending on the CPU speed and program.
  read image files:0.5MBytes/s.(because  _MAX_SS must be 512 bytes)
  download partition:20MBytes/s

INSTALL:
========
  install 'libusb-1.0-0' 'libusb-1.0-0-dev'
  make 
  sudo make install

USAGE:
========
  [sudo] ./syber_usb [ready|reset|shutdown|camera|read|write|ext4fs] [args]
  [sudo] ./syber_usb read {partition name} {size} {file}
  [sudo] ./syber_usb write {partition name} {file}
  [sudo] ./syber_usb ext4fs {ls|get} {dir|file}
    ready|reset|shutdown|camera|read|write|ext4fs
                         - Connect device(ready)
                           Reset device(reset)
                           shutdown device(shutdown)
                           Read image file to directory "syberos_camera"(camera)
                           Read partition(read)
			   Write partition(write)
                           Browse ext4fs directory or get ext4fs files(ext4fs)
    partition name       - The name of the partition to read&write
    size                 - The size of the partition to read
                           Support 'm/M' 'k/K' -  1k/K=1024Bytes
    file                 - The name of the file to read&write
    ls|get               - Browse directory or get file
    dir                  - Directory to browse
  
  Example:
  sudo ./syber_usb 
    	  read camera to "syberos_camera"(full)
          upload "internalsd" 200m(part)
          upload "data" 200m(part)
          upload "boot" 16m(full)
  sudo ./syber_usb ready
  sudo ./syber_usb read internalsd 200m internalsd200m.bin
  sudo ./syber_usb read boot 4096k boot4m.bin
  sudo ./syber_usb read boot 4096 boot4096bytes.bin
  sudo ./syber_usb write ubootlogo ubootlogo.img
  sudo ./syber_usb ext4fs ls /
  sudo ./syber_usb ext4fs get /etc/passwd
  sudo ./syber_usb reset
  sudo ./syber_usb shutdown

	
HISTORY:
========
V0.3	-2016-12-07
	add Read the '/' and get ext4 files(except '/home/user/'('internalsd' partition)).
	add read ext4 file. 
	fix some bugs.

V0.2	-2016-11-29
	add read image file using 'fatfs'(/home/user/DCIM/).
	fix some bugs.
	add 'shutdown' function.
	add 'camera' function.
	add 'make install' function.

V0.1	-2016-11-25
	add basic function.
	add usb dirver.
	add read flash.
	

yuanxinos_usb's People

Contributors

jiaduo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.