* Solved * MT65xx Unpack, Repack Boot.img success but cannot boot - Android Q&A, Help & Troubleshooting

Hi Guys,
I have successfully unpack, edit init.rc & repack but it doesn't boot !
The way to unpack MTK series was actually found by the guys at mobileuncle over a year ago ! I've subscribe to their forum but no reply...
Below is the translated version.
PHP:
MTK boot is different from the other android system. To extract, delete the
first 512 bytes of data, using Winhex. Find the location 800 to 9F0, delete it
& save it. Then you can unpack using the command below.
split_bootimg.pl boot.img
split_bootimg.pl boot.img
Page size: 2048 (0x00000800)
Kernel size: 1388548 (0x00153004)
Ramdisk size: 141518 (0x000228ce)
Second size: 0 (0x00000000)
Board the name:
Command line: no_console_suspend = 1
Writing as boot.img, the kernel ... the complete.
Writing as boot.img, ramdisk.gz ... the complete.
Unpack the ramdisk command as follows:
mkdir ramdisk
% cd ramdisk
% gzip -dc ../boot.img-ramdisk.gz | cpio -i
% cd ..
Any help is greatly appreciated !
--------------------------------------
Added on Oct 17, 2012 WARNING : MEDIATEK SMART PHONE FLASH TOOL
i've seen far too many times that fellow xda member make this same mistake over & over again, including myself...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
So pls pls people, don't use SP Flash Tool & download ROM not meant for your phone, it will brick it & there is no way to revive it back ! After you have download wrong PRELOADER, your phone will be completely dead, cannot power on, no charging, no recovery, no USB vcom detection & you can say
to it...
Here is the WARNING again :
NEVER DOWNLOAD ROM NOT MEANT FOR YOUR PHONE. IT WILL BRICK IT !

yuweng said:
Hi Guys,
I have successfully unpack, edit init.rc & repack but it doesn't boot !
The way to unpack MTK series was actually found by the guys at mobileuncle over a year ago ! I've subscribe to their forum but no reply...
Below is the translated version.
PHP:
MTK boot is different from the other android system. To extract, delete the
first 512 bytes of data, using Winhex. Find the location 800 to 9F0, delete it
& save it. Then you can unpack using the command below.
split_bootimg.pl boot.img
split_bootimg.pl boot.img
Page size: 2048 (0x00000800)
Kernel size: 1388548 (0x00153004)
Ramdisk size: 141518 (0x000228ce)
Second size: 0 (0x00000000)
Board the name:
Command line: no_console_suspend = 1
Writing as boot.img, the kernel ... the complete.
Writing as boot.img, ramdisk.gz ... the complete.
Unpack the ramdisk command as follows:
mkdir ramdisk
% cd ramdisk
% gzip -dc ../boot.img-ramdisk.gz | cpio -i
% cd ..
Any help is greatly appreciated !
Click to expand...
Click to collapse
hey yuweng thanks a lot !! you have given me a clue on how to unpack boot.img on MTK65xx.........can you post that mobile uncle website link for extracting boot.img for our phones ?? Thanks in advance !!
I'll be with you all the way it we reach success of flashing the modified boot.img !!!
Please reply !!

Hello balamu96m,
You can download the tools from Dark Tremor's site & refer to the How-to. There is no tools listed at mobileuncle thread there however all tools can be found here at XDA & one of them is this
In fact, there are quite alot of how-to posted here at XDA, all you have to do is search for the correct key word.
Update, been trying for about a month now & it turns out MT65xx doesn't support ext2 partition; thats why my phone went into boot loop ! Bruno Martins has given me some tips, so have to learn how to port ext2.ko
What platform are you using, Windows (Cygwin) / Linux / Mac OS X ? Another great way to start is using this tool
Ciao...

Hey yuweng,
thanks for the reply !! But first of all, what is the size of the 'boot.img' of your MTK mobile and also what is the normal size of a boot.img ?
I'm asking this because my 'boot.img' is 6.00 MB !! I removed the header and also completed splitting the 'no_header' file into kernel and ramdisk.gz. After splitting, the size of ramdisk.gz is around 2.9 MB. When i g-unzip ramdisk.gz, it says that unzip is complete and also says that it removed some bad sectors of that file. The remaining that i get is only 590 K.
So when i complete repacking into boot.img, its size becomes 2.9 MB.
Did i commit any mistake ??
Please help me !!
Did you successfully unpack and repack it ??
I mainly use Cygwin and also have Ubuntu.
Please reply !!

Hi bala,
Opps, i didn't select 'receive email notification of new replies'; sorry for the late response...
As for your question, that is normal. If you open up your Hex Editor, you will notice whole lot of FF after the offset 002937F0; that is what taking up the spaces.
7-zip your boot.img & upload so that i can compare it & see what are the differences with mine !
Rgds,

Same problem here dude!! Didn't use email notifications!
okay......here is link 4 my 'boot.img' : http://www.mediafire.com/?giq9c384eshvhq7
hope get a solution soon !
thanks in advance !!!!!

Hey guys, I have decided to make my MT65xx unpack / repack scripts public. You can find the thread here.
Any question, feel free to ask, but please use that thread.

Dear Bruno,
Thank you so much for sharing your unpack/ repack scripts. You have open up a whole new world of possibility for our MT65xx android smartphone
Particularly for MT6573, with casacristo's ext2.ko, we can now port DT_a2sd, Ad2sdx, Data2ext & much much more...
Once again, thank you, Master ShiFu Bruno & Master ShiFu casacristo ...
As mention by Bruno, please use his newly started thread for questions & answers on how to use it...

Did u try ur hands on other scripts?
Sent from my Android using Tapatalk 2

Hello ckethan,
Can you be more specific ?
Anyway, talking about scripts, i've tried DT_a2sd, its amazing ! i've just push it to the max with over 200 games + apps; on a max of 2GB ext2 partition !
There is another amazing scripts, the Super Charger V6
Go ahead & tried it...
Kudos to the developers...
Ciao...

Wow can u help me set this script ?
And how is the speed of dt_a2sd compared to ad2sdx?
Sent from my Android using Tapatalk 2

i've only tried DT_a2sd so far, it worked the first time upon setup ! As for the others, i'm having trouble with it...so i can't comment on the speed...
However, one thing i can confirm is to use the fastest possible micro sd. i'm using sandisk mobile ultra & its superb compare to my old 16GB Class 2. Can't wait for the new samsung UHS-1 which claim 80MB/s transfer rate...
As for maximum space saving, DT_a2sd is still the best, it moves everything to the sd-ext with the command 'a2sd cachesd' & your internal memory will increase back to default, like no apps has been installed to your phone !
Upload your boot.img & i'll take a look at it, pls make sure it is MT6573 with kernel 2.6.35.7 or else i can't help you much...

I have the boot.img edited for ext2 and all .. what class n card do u recommend?
Sent from my Android using Tapatalk 2

i have attached mine boot.img,recovery.img
mine kernel is 2.6.35.7
and board is mtk6573

hello bindassdost,
Pls check ur pm & reply...

yuweng said:
Upload your boot.img & i'll take a look at it, pls make sure it is MT6573 with kernel 2.6.35.7 or else i can't help you much...
Click to expand...
Click to collapse
Yuweng bro,
For mtk6516 running 2.2, we don't need to make any changes in the boot.img also don't need ext2.ko.....is this true??
I am asking because, only in gingerbread, init.rc must be modded to run init.d scripts at boot (i believe!!).....
Thanks in advance!!

yeoh macha bala bro...,
been busy with field work; AFAIK, DT_a2sd uses ext2,3 or 4 to 'trick' android thinking that the ext partition is internal memory...
branded froyo android phone, most do support ext partition, thats why they can use DT_a2sd...on top of that, they don't need to mod init.rc because its already there...they also have native android apps2sd on later build...
As for MT6516, AFAIK, there is no ext2,3,4.ko exist so DT_a2sd will not work on it and its CPU is slow...but you can always try with casacristo's ext2.ko & see if it works... ( i don't have a MT6516 phone so i can't test it out )
Ciao...

yuweng said:
yeoh macha bala bro...,
been busy with field work; AFAIK, DT_a2sd uses ext2,3 or 4 to 'trick' android thinking that the ext partition is internal memory...
branded froyo android phone, most do support ext partition, thats why they can use DT_a2sd...on top of that, they don't need to mod init.rc because its already there...they also have native android apps2sd on later build...
As for MT6516, AFAIK, there is no ext2,3,4.ko exist so DT_a2sd will not work on it and its CPU is slow...but you can always try with casacristo's ext2.ko & see if it works... ( i don't have a MT6516 phone so i can't test it out )
Ciao...
Click to expand...
Click to collapse
Thanks for the reply bro!! I'll try it and tell you!!!

yuweng said:
Hi Guys,
I have successfully unpack, edit init.rc & repack but it doesn't boot !
The way to unpack MTK series was actually found by the guys at mobileuncle over a year ago ! I've subscribe to their forum but no reply...
Below is the translated version.
PHP:
MTK boot is different from the other android system. To extract, delete the
first 512 bytes of data, using Winhex. Find the location 800 to 9F0, delete it
& save it. Then you can unpack using the command below.
split_bootimg.pl boot.img
split_bootimg.pl boot.img
Page size: 2048 (0x00000800)
Kernel size: 1388548 (0x00153004)
Ramdisk size: 141518 (0x000228ce)
Second size: 0 (0x00000000)
Board the name:
Command line: no_console_suspend = 1
Writing as boot.img, the kernel ... the complete.
Writing as boot.img, ramdisk.gz ... the complete.
Unpack the ramdisk command as follows:
mkdir ramdisk
% cd ramdisk
% gzip -dc ../boot.img-ramdisk.gz | cpio -i
% cd ..
Any help is greatly appreciated !
Click to expand...
Click to collapse
As a newbie,finally I found a place where I can reply.I have been reading your thread but I cannot view the pdf instructions hosted on mediafire,due to GFW or some thing.Can you please send me the material in below thread by email.
http://forum.xda-developers.com/showthread.php?t=1923764
I think it might be the hope for me to root my MTK 6573 based Motorola XT390.
Thank you so much.

mediafire & myself is located outside of the GFW so nothing is block...
i presume its ur browser problem where i purposely use this feature for fellow xda member to 'view' it first & when they find it useful then just remove the view/ from the link & it will bring you to the download page...
That tut i made is specifically for MT6575/ 77 & a few of the steps are totally different so you can't use it...
However, i've updated the tut & attach it here just for you...
it has a mix response so hopefully it does work for you... :fingers-crossed:
And pls read the WARNING at the first post...
In fact, i have updated all my thread with that warning so hopefully nobody make that same mistake ever again...

Related

[HOW-TO] Increase the size of data.img for more "Device" storage

Hi!
I've been getting an unholy amount of PM's asking for help. I would kindly like to redirect all of you Windows users to Viper Matrix Wireless' useful little tool: http://forum.xda-developers.com/showthread.php?t=824154
For those of us that love installing apps and tinkering around with Android on our HD2's, 256MB of "Device" memory simply isn't enough! This fix will increase the size of the data.img file so that there will be more free space available when it's mounted. This is especially beneficial for users running on Android 2.1! See the attached picture!
Download the data.img file corresponding to your build or resize your own by using the instructions at the bottom of this post.
1GB userdata.img for shubCRAFT CM6/Froyo/Themed RC1.1!
http://cid-1dff7e1df294438f.office....ta.img for shubCRAFT CM6FroyoThemed RC1.1.rar
http://dl.dropbox.com/u/7684410/xda...ta.img for shubCRAFT CM6FroyoThemed RC1.1.rar (mirror)
http://www.vbnfiles.com/xda/birkoffsjunk/1GB userdata.img for shubCRAFT CM6FroyoThemed RC1.1.rar Thanks to birkoffsjunk for the high speed mirror!
1GB data.img for mattc Leo + Froyo w/Sense RC1.2!
http://cid-1dff7e1df294438f.office....ers/1GB data.img for mattcFroyoWSenseRC1.2.7z
http://dl.dropbox.com/u/7684410/xda-developers/1GB data.img for mattcFroyoWSenseRC1.2.7z (mirror)
http://www.vbnfiles.com/xda/birkoffsjunk/1GB data.img for mattcFroyoWSenseRC1.2.7z Thanks to birkoffsjunk for the high speed mirror!
512MB data.img v1.1 for DarkStone's Desire v5!
http://cid-1dff7e1df294438f.office....B data.img^_v1.1 for darkstone^_desire^_v5.7z
http://dl.dropbox.com/u/7684410/xda-developers/512MB data.img_v1.1 for darkstone_desire_v5.7z (mirror)
http://www.vbnfiles.com/xda/birkoffsjunk/512MB data.img_v1.1 for darkstone_desire_v5.7z Thanks to birkoffsjunk for the high speed mirror!
512MB data.img for dan1j3l's Froyo v1 (w/o Sense)!
http://cid-1dff7e1df294438f.office....s/512MB data.img for dan1j3l-LeoFroyo-1.0.rar
http://dl.dropbox.com/u/7684410/xda-developers/512MB data.img for dan1j3l-LeoFroyo-1.0.rar (mirror)
http://www.vbnfiles.com/xda/birkoffsjunk/512MB data.img for dan1j3l-LeoFroyo-1.0.7z Thanks to birkoffsjunk for the high speed mirror!
1GB data.img v1.1 for DarkStone's Froyo v1!
http://cid-1dff7e1df294438f.office....ata.img^_v1.1 for darkstone^_HD2Froyo^_v1.rar
http://dl.dropbox.com/u/7684410/xda-developers/1GB data.img_v1.1 for darkstone_HD2Froyo_v1.rar (mirror)
http://www.vbnfiles.com/xda/birkoffsjunk/1GB data.img_v1.1 for darkstone_HD2Froyo_v1.rar Thanks to birkoffsjunk for the high speed mirror!
1GB data.img v1 for DarkStone's Froyo v1!
http://cid-1dff7e1df294438f.office..../1GB data.img for darkstone^_HD2Froyo^_v1.rar
http://dl.dropbox.com/u/7684410/xda-developers/1GB data.img for darkstone_HD2Froyo_v1.rar (mirror)
http://www.vbnfiles.com/xda/birkoffsjunk/1GB data.img for darkstone_HD2Froyo_v1.7z Thanks to birkoffsjunk for the high speed mirror!
1GB data.img v1 for DarkStone's Desire v5!
http://cid-1dff7e1df294438f.office....rs/1GB data.img for darkstone^_desire^_v5.rar
http://dl.dropbox.com/u/7684410/xda-developers/1GB data.img for darkstone_desire_v5.rar (mirror)
http://www.vbnfiles.com/xda/birkoffsjunk/1GB data.img for darkstone_desire_v5.7z Thanks to birkoffsjunk for the high speed mirror!
NOTE: It's best to reformat (or delete ALL your Android files) from your card before replacing the file. Alternatively, manually modify your data.img file using the instructions below.
Changelog
02/08/2010 - Added 1GB userdata.img for shubCRAFT CM6/Froyo/Themed RC1.1
02/08/2010 - mirrors added
29/07/2010 - Added 1GB data.img for mattc Froyo w/Sense RC1.2
29/07/2010 - v1.1 for Desire v5 fixes looping boot animation, screenshot: IMG_4331.jpg
29/07/2010 - Added 512MB data.img for dan1j3l-LeoFroyo-1.0
28/07/2010 - v1.1 fixes carrier issues for Froyo v1, Desire v5 unaffected
28/07/2010 - Added 1GB data.img v1 mods for DarkStone's Desire v5 and Froyo v1, screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
-----------------------------------------------OR-------------------------------------------------
Manually edit data.img if you want a different size or use a different build!
I wrote this tutorial using a European HD2, 8GB microSD card, DarkStone's Froyo_v1 and a laptop running Ubuntu 10.04, your experience may vary.
Requirements:
Desktop/Laptop running some form of Linux.
IMPORTANT NOTE: Both, a PC and a Mac, can resize the .img file but not modify (specifically - run resize2fs) the ext2 file system that Android uses. I was in a hurry to post the resizing instructions and didn't fully test the procedure on a PC. Currently, this procedure is only possible on a Linux based operating system. I apologize if your time was wasted.
data.img file
HD2, microSD card, microUSB cable etc, etc (you might be better off using a card reader)
--------------------------------------------(Running Linux)----------------------------------------------
Procedure:
1. UnZip Android or your present data.img file to your Home Folder. Or a folder of your liking (or even on your memory card!), just remember to cd before you do the following:
2. Open Terminal and Copy&Paste (Ctrl+C, Ctrl+Shift+V) this:
Code:
dd if=/dev/zero bs=1M count=XXX >> data.img
where XXX is the amount, in MB, by which data.img should be increased by.
My filesize started out as 256MB and I wanted a total of 512MB. That would mean I needed a extra 256MB, so I executed this:
Code:
dd if=/dev/zero bs=1M count=256 >> data.img
3. Run a file system check and file system resizer
Code:
e2fsck -f data.img
resize2fs data.img
e2fsck -f data.img
if prompted, press "y" for "yes"
4. Copy all of the Android files onto your SD card, put it into your phone, and run CLRCAD.exe and HARET.exe!
-----------------------------------------------TIPS!-------------------------------------------------
Don't know how to cd?
If you're running a modern build of Linux you can just mount your SD card (phone or cardreader), open File Browser and paste "dd if=/dev/zero bs=1M count=XXX >> " into your open Terminal. This way you can just drag and drop the file into Terminal rather than typing out the file location!
Mounting:
If you're switching between builds and need to copy more than just your apps (apps are easily backed up by ASTRO File Manager - found on the Android Market), mount your data.img file and copy/backup the relevant data before moving on!
Linux:
Code:
mount -o loop data.img /mnt/data
you can put your apps into the AndroidApps folder before booting for them to be auto-installed
---------------------------------------------------------------------------------------------------------------------
EDIT:
added screenshot
added modded data.img for non-Linux users
added modded data.img for non-Linux users for desire v5 too!
put files at the top of the post
added changelog
added mirrors
added instructions for PC
Noice! I was exactly thinking about this since I started trying out Android on HD2 couple of days ago.
Might backup my data.img and give this method a go.
This is awesome!
Please can chefs cook this into their builds....
My biggest problem (other than no USB and no bluetooth) is this space limitation.
Well done you!
GG
info moved to first post...
works beautifully!!!
Thank you
How would you fancy doing each version as testers for us, as some people on here dont use Linux?? and is there a way you can provide a screen shot showing the phone running android with more storage?
any changes to extend a used img. file?!
also sofar my linux knowing is this command:
dd if=/dev/zero bs=1M count=256 >> data.img
just writes zeros to the end of the data.img...
shouldn't this work with a used file too?
another idea (can't try because mac osx didn know the resize2fs commands..)
dd if=/blabla/data.img bs=1M count=512 > data_new.img ?!
so it just copies the hole data.img in a new file ...
holy COW great work you clever little bunny lol, maybe you should message the devs see if they wanna add this to there work
futureshock said:
dd if=/dev/zero bs=1M count=256 >> data.img
just writes zeros to the end of the data.img...
shouldn't this work with a used file too?
Click to expand...
Click to collapse
I was thinking that too...
I tried it at least 3 times, but Android still displayed 0.00 MB free memory (heh heh, i know )
Maybe because the system registers the size of the mount after the initial boot and never bothers checking it?!?
any change to extend the img inside android?!
maybe there are also the commands built in the linux kernel?
futureshock said:
any change to extend the img inside android?!
maybe there are also the commands built in the linux kernel?
Click to expand...
Click to collapse
I doubt it since the file is mounted and no longer appears as a .img file to the system
But a good idea nonetheless. If it were possible, I would be kicking myself for missing this!
was just thinking will it still work for us that dont use an 8gig card??? because thats what you have will it be looking for 8gig or is it just gonna use a gig from any card??
Demon_man said:
was just thinking will it still work for us that dont use an 8gig card??? because thats what you have will it be looking for 8gig or is it just gonna use a gig from any card??
Click to expand...
Click to collapse
I don't think so.
You will need at least a 2GB card if you want to use the .img file I posted (since the file itself takes up 1GB)
If you want, I could also make a 512MB one!
Kev007 said:
I doubt it since the file is mounted and no longer appears as a .img file to the system
But a good idea nonetheless. If it were possible, I would be kicking myself for missing this!
Click to expand...
Click to collapse
ok... no resize2fs in linux kernel... tried it ...
maybe it could be built in while running.. .but this is far beyond my knowledge...
i tried all now todo this on mac... but no changes to extend the ext2(3) FS... no tool found.. got it to mount but no way to resize...
for now i'm looking at a virt. linux machine... but didn't found something usable with vmtools installed to get directory sharing ...
futureshock said:
for now i'm looking at a virt. linux machine... but didn't found something usable with vmtools installed to get directory sharing ...
Click to expand...
Click to collapse
You could use a Ubuntu Live CD, it boots Linux and lets you use it without installing anything
but why the had work when I've just uploaded the file you've been trying to create?
still on desire v5
and i want to keep my files!
futureshock said:
still on desire v5
and i want to keep my files!
Click to expand...
Click to collapse
since you said you could mount it, why not copy and paste your files into the data.img for desire v5
I can't guarantee that it'll work...but it's worth the try. amirite?
Kev007 said:
since you said you could mount it, why not copy and paste your files into the data.img for desire v5 (which i'm about to upload)
I can't guarantee that it'll work...but it's worth the try. amirite?
Click to expand...
Click to collapse
uhm ;D good question at all...
will try this...
also just strugeling around with the ubuntu live cd ...
This is awesome, thanks!
I had a problem everytime I have used Android it has known I was on Virgin UK but when I use this updated image it thinks im on T-mobile
and if you want it here is a torrent for the update you made

[DEV] BACKTRACK 5 on Xperia X10 chroot

==================== WIFI / WEP / WPA2 CRACKING Questions will not be answered ========
============== Already Stated many times monitor mode and packet injection is not working. ========
==================== POST 3 updated with some FAQ ===============================
==================== DETAILED INSTRUCTIONS UPDATED ===========================
==================== DOWNLOAD LINK UPDATED : Alternate Download Links ===============
========== PROJECT PAGE CREATE : http://hackomania.com/BT5/ ====================
Hi all,
Based on my work here DEVELOPMENT : Ubuntu Lucid CHROOT: updated script
I have been successful on Making Backtrack run on Xperia X10i.
Wanted to be the first one to report it so the thread here.
will start uploading the files once i get get all pieces together.
posting some screenshots for non believers.
Stay tuned for complete instructions on how to set up on X10i complete with custom scripts and all codes will be open sourced for your reference.
and this time it will be completely from gscript if you don't want to type commands.
Teaser screenshots for you.
Now will need support from the fellow developers in establishing what all tools are running fine and what not.
once i upload the image i will also post this on all social network so that we can gather as much support as possible.
File size : under 500 MB
======== FILE DOWNLOAD LINK================
DROPBOX links Bitlied for download count track
Alternate link from personal server.
Please do not create mirror : just want to keep a count on download's
PART 1 : Download Link : http://bit.ly/p1BT5
PART 2 : Download Link : http://bit.ly/BT5p2
PART 3 : Download Link : http://bit.ly/BT5p3
bt7z.001: http://www.mediafire.com/?x9cgxzdx84vc6uj
bt7z.002: http://www.mediafire.com/?xaoidipkg1o7vgo
bt7z.003: http://www.mediafire.com/?po3nznbxgvdipur
MD5 Sum : Thanks to DooMLorD
558ecb1f0e5feb1da86526df8761e6cc bt.7z.001
247842fd0d3ebb39454f76f4704d1537 bt.7z.002
f74d2f744434a7182b13287d9f8165e7 bt.7z.003
Bundle Link : http://bit.ly/iNHTS0 <- contains list of all 3 files in one bundle.
Note : uploading in one alternate location : mediafire will give its link soon.
======== Instructions =============
*********** ESSENTIALS ******************
Rooted Android. tested on 2.2 however should work on 2.1 and 1.6 also. (if you use custom rom's you meet the criteria)
Busybox configured (although it gets automatically configured @ rooting)
Android terminal application. (I use android terminal emulator)
Android VNC Viewer
********************************************
********** STEP's *************************
download all 3 parts of image and place them in single folder.
extract using first file and you will get following files
bt
bt.img
startbt
stopbt
installbt.sh
Copy these files on your phone under /sdcard/bt
using terminal emulator run following commands
Code:
su
cd /sdcard/bt
sh installbt.sh
Now your BT should be configured automatically.
to use your BackTrack you can use following commands.
startbt <- mounts and prepares the system for usage.
stopbt <- unmounts and free up all resources.
bt <- a command line version of BT chroot.
Inside bt shell.
ui <- will start vncserver (default password is 12345678, you can change it using vncpasswd command on bt shell)
killui <- stops the running vncserver.
Any Available VNC client can be used to connect to the BT GUI.
Nick : BackTrack (bt for short)
address : localhost
port : 5901
password : 12345678
inside vnc window select input mode (following works best for me)
Touch Mouse; D-Pad Pan
Mouse pointer control mode
TouchPad (here your screen works like a big touchpad use it to navigate mouse.)
*********** DO CHECK POST 3 after tonight ******************
Post 3 will be updated to be used as a catalogue of tips and tricks for all things related to this distro..
========= TIPS and TRICKS ==================
this section is for those who want to make simmilar image from base image on backtrack.
ohk so the basic challenge is
1) BacckTrack image is for Xoom and have following limitation w.r.t. Xperia X10.
a) File is 4.9 GB (vfat has limitation of 4 GB max)
b) vncserver resolution is 1280x800 per xoom.
2) installation script and setup script doesn't allow you to move in and out of BT.
3) it used loop2 for image mounting which conflicts with APP2SD.
so I have made following changes.
1) resized image to 3.3 GB (if space get filled we can extend image to upto 700 mb more.)
2) inserted my custom ui and killui code i use @ ubuntu.
3) provided startbt stopbt bt and installbt.sh scripts for all work.
4) changed loop no to 254 and hence this code is compatible with my ubuntu image effectively you can keep both in same sdcard...
I am attaching a log file for part 1 of the image work as this is very tricky.
The trick is if you create a new file of 3.3 GB you get limited set of inodes which get filled easily. so the command mke2fs must be supplied with inode numbers that you want to be build.
check attached txt for details.
============ SCREEN SHOTS =================
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
========= FAQ plus TIPS and TRICKS =====================
Q : Installbt.sh script not working properly i am recieving errors?
A: please cross check all steps if you have missed any.. otherwise post the output of error's in thread.
Q : sh installbt.sh works fine now i am getting errors in startbt or bt command.
A : please check following steps.
Try rebooting the device and see if startbt and then bt works. if still error post the error output on thread.
post output of following command
mount
echo $PATH
busybox
which busybox
Q: what is the use of all the files besides bt.img
A : Listed is the description of all files.
1) sh installbt.sh is to be only used once in liftime. till you flash a new rom.
2) startbt is to be used once after every reboot.
3) bt is command to be used everytime after first use of startbt to get command prompt.
4) stopbt is to be used when you want to stop the bt service which is running in the background.
4) and inside the [email protected] prompt you can use ui and killui command to start and stop the vncserver.
anantshri said:
Hi all,
Based on my work here DEVELOPMENT : Ubuntu Lucid CHROOT: updated script
I have been succefull on Making Backtrack run on Xperia X10i.
Wanted to be the first one to report it so the thread here.
will start uploading the files once i get get all pieces together.
posting some screenshots for non believers.
Stay tuned for complete instructions on how to set up on X10i complete with custom scripts and all codes will be open sourced for your reference.
and this time it will be completely from gscript if you don't want to type commands.
Teaser screenshots for you.
Now will need support from the fellow developers in establishing what all tools are running fine and what not.
once i upload the image i will also post this on all social network so that we can gather as much support as possible.
=========RESERVED for instructions =============
Click to expand...
Click to collapse
Nice work keep going.
Sent from my X10 TripNMiUI
Is it for real ?! Wow! Can't wait!!!
hoho it will be great
Brilliant work my friend!!!
Does it still require VNC server/client?
Does pen-testing work? What about arp poisoning and promiscus mode to gather data packets?
sent from FreeX10_beta4+CM6 settings
DooMLoRD said:
Brilliant work my friend!!!
Does it still require VNC server/client?
Does pen-testing work? What about arp poisoning and promiscus mode to gather data packets?
sent from FreeX10_beta4+CM6 settings
Click to expand...
Click to collapse
slow down buddy.... just got the image up and running tools still need to be tested.....
and ya it still needs vnc that's why still chroot.
OMG MAN! I remember asking backtrack in your thread long time back for WEP cracking!
You are the best man! I love your work!
Thank you for listening!
WOOOOOOOOOO.
Awesome work!
That is frigging awesome....
Sent from my X10project using XDA App
anantshri said:
============ SCREEN SHOTS =================
Click to expand...
Click to collapse
A true Hero to the open world!
Wow, nice work
Sent from my X10 TripNMiUI using XDA Premium App
What does that mean though. Like what will we need to do
Sent from my X10a using XDA Premium App
Sorry, but what is backtrack? Some sort of UI?
Mister J said:
Sorry, but what is backtrack? Some sort of UI?
Click to expand...
Click to collapse
"BackTrack is a GNU/Linux distribution distributed as a Live DVD aimed at digital forensics use and penetration testing."
Ref.: http://en.wikipedia.org/wiki/BackTrack
so its not a UI....
its a Debian based linux OS
Lion3494 said:
What does that mean though. Like what will we need to do
Sent from my X10a using XDA Premium App
Click to expand...
Click to collapse
I am just finished optimizing files and installation script ....
uploading soon...
file size : under shades on 700 MB....
P.S. : Backtrack has given a 1.1 GB file to download this is same with few simple tweaks.
tweaks and tips uploaded on first post...
How is the performance? Just two weeks left and then I'm done with my final exams, so after that I am going to learn more about all this chrooting and dualbooting stuff!
Well done mate!
Meikrekel said:
How is the performance? Just two weeks left and then I'm done with my final exams, so after that I am going to learn more about all this chrooting and dualbooting stuff!
Well done mate!
Click to expand...
Click to collapse
I need testers badly.... to my my baby will always run faster...
also one more tweak found that tmp folder contained framework.bz2 and msf3 decompressed folder deleted both freedup lots of inodes and now image size going down....
from 700mb of initial size i am down to < 500 MB
testing
ill test it for you what exactly is works /not?
wi-fi?

[DEV] BACKTRACK 5 on SGS2 (chroot) [UPDATED: 12/July/2011]

\\----[ Announcement ]----//
[12/July/2011] Updated with new package (bt5_sgs2_shell_scripts_v2.zip) containing shell scripts & busybox
//----[ Announcement ]----\\
hi guys DooMLoRD & anantshri present to u:
BACKTRACK 5 on SGS2
all the work was done by anantshri, i mostly assisted by testing it on my SGS2 and modding it slightly so that it will work properly for SGS2... dont forget to thank him!
i will try n keep it short and simple...
for more details u can read the original thread at X10 sub-forums...
[DEV] BACKTRACK 5 on Xperia X10 chroot
[ Screenshots ]
on startup (shell):
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
in GUI:
phone + BT5 GUI:
[ Requirements ]
rooted device with busybox installed, if u are using CF-root kernel then u already have busybox installed
Some apps from Android Market:
Android Terminal Emulator
androidVNC
[optional] highly recomended keyboard: Hacker's Keyboard
7zip (for PC), for extracting the files
around 3.3 GB free on internal sdcard (/sdcard/)
[ How To : File Setup ]
u need to do this only once
download the files from the links provided in this thread
extract the files using 7zip to a temporary folder (needs 3.3GB free on that drive)
connect ur SGS2 to PC and mount USB storage
create a folder named 'bt' (without quotes) in the root of ur sdcard and copy the bt.img in that folder
also place the file bt5_sgs2_shell_scripts_v2.zip in root of sdcard, this file has to be flashed via recovery
once u verify that the above is correct then un-mount usb storage
reboot into recovery and flash the file bt5_sgs2_shell_scripts_v2.zip stored in root of sdcard (or if u are using CWM app then just select the file for flashing and the app will do the rest )
once ur phone reboots into OS just check the /sdcard/bt folder
final directory structure should look like this:
/sdcard/bt/bt
/sdcard/bt/bt.img
/sdcard/bt/installbt.sh
/sdcard/bt/startbt
/sdcard/bt/stopbt
once u verify that the above is correct then u can proceed
[ How To : Launch BT ]
start Terminal Emulator app on ur SGS2 and enter the following commands step by step (accept/allow any SuperUser request/popup that u may receive)
su
cd /sdcard/bt
sh installbt.sh
startbt
bt
now u are in BackTrack5 shell
to launch GUI (vncserver) enter the following command
ui
now note the number N shown localhost:N
e.g. as u can see from the above image that "New 'X' desktop is localhost:1", so N=1
the vncserver is running at (5900 + N, N=1 ; so server port is 5901)
now launch androidVNC app on phone and fill in the detials as follows
Nick : bt
Address : 127.0.0.1
Port : 5901
Password : 12345678
Username : <leave it blank>
Color Format : 24-bit color (4 bpp)
inside vnc window select input mode (i personally recommend the following)
TouchPad (here your screen works like a big touchpad use it to navigate mouse.)
and then press connect... now u are in BackTrack GUI!
if u want to exit/close BT5 then u need to follow these steps:
close the androidVNC app (Menu -> Disconnect)
go back into Terminal Emulator app and enter the following commands
u should be at this shell [email protected]:~#
killui
exit
now u will get back to this shell> #
now enter the following commands to stop bt and exit
stopbt
exit
exit
u can now exit the Terminal Emulator app
i would also recommend that u reboot ur phone
[ Important Info ]
root password is 12345678
[ Download Links ]
update.zip package containing shell scripts, busybox (which gets installed to temporary location) [to be flashed via recovery]
this will not disturb/conflict with busybox of ur ROM/CF-Root kernel
bt5_sgs2_shell_scripts_v2.zip (~800KB)
main bt.img
these links are 7zip archives split into 50mb files, u will need to download the following:
total size: 486MB
bt.7z.001 (50 MB)
bt.7z.002 (50 MB)
bt.7z.003 (50 MB)
bt.7z.004 (50 MB)
bt.7z.005 (50 MB)
bt.7z.006 (50 MB)
bt.7z.007 (50 MB)
bt.7z.008 (50 MB)
bt.7z.009 (50 MB)
bt.7z.010 (36 MB)
also uploading to mediafire for mirroring...
Mediafire Folder: http://www.mediafire.com/?f9gk3p3t9wip5
md5 hashes:
Code:
bt.7z.001 f19e769bf42b44867c8bb1d9bb9c5d44
bt.7z.002 a4dd26a98d2c6925d871fb108fb5fadb
bt.7z.003 ecca5a5d72c449117b1d3dbc23aeb1a2
bt.7z.004 8ad487a01e4d149f0247ad9288201f32
bt.7z.005 adab9cb3778cd8ac89ccc0e21997c3d7
bt.7z.006 ba6a28de70a1115dc316f45cea508215
bt.7z.007 f59757e891631607e1a35abadb231b3b
bt.7z.008 cdb8c28a1fbd03657bb42e8d69f0600b
bt.7z.009 426d892f872679e3d53d0ebb0376e138
bt.7z.010 c7d2957bc65340d967b9dd3646d7cb39
ENJOY!
[ Tips n Tricks! ]
if u have ur device (SGS2) connected over wifi u can connect to the BT5 vncserver running on ur phone!! u will just need to connect to
<ip_address_of_phone>:<portno>
most of the startup/launching commands can be executed even through adb shell
==== Reserved ===
few pointers as this has been asked many times
1) Monitor Mode will not work till someone tried to compile a custom wifi drivers with monitor mode enables, in that case also firmware should allow it.
2) Those using android-vnc-viewer and facing difficulty in navigation check various input modes.
These 3 works the best for me.
Touch Mouse; D-Pad Pan
Mouse pointer control mode
TouchPad (here your screen works like a big touchpad use it to navigate mouse.)
Excellent. I've been wanting to do this.
Back Track is running smoothly on my SGS2 with Lite'ning ROM.
files uploaded to personal direct download server!
links updated
also uploading to mediafire for mirroring...
http://www.mediafire.com/?f9gk3p3t9wip5
will post these links in few hours!
ENJOY BT5 on ur SGS2
Great!! Thank you. Will test and post soon.
i get an error:
here is a problem ith the configuration server (/usr/lib/libgconf2-4/gconf-sanity-check-2 exited with status 256)
any solution?
piffpaff said:
i get an error:
here is a problem ith the configuration server (/usr/lib/libgconf2-4/gconf-sanity-check-2 exited with status 256)
any solution?
Click to expand...
Click to collapse
which files did u try? i have changed anantshri's original images and uploaded working one for SGS2... please download the files from the first post!
if u are still getting that error do let me know...
Very nice
Thanks alot
ok i load the wrong files from other thread.
thx
piffpaff said:
ok i load the wrong files from other thread.
thx
Click to expand...
Click to collapse
please test these ones and post ur feedback!
thank u for testing!
Archive
When I extract the archive, I only end up with bt5.img, and none of the other files
I downloaded the files from the first post. Any insight as to what the problem might be?
034 said:
When I extract the archive, I only end up with bt5.img, and none of the other files
I downloaded the files from the first post. Any insight as to what the problem might be?
Click to expand...
Click to collapse
sorry had forgotten the shell scripts:
here they are:
bt5_sgs2_shell_scripts.zip (2 KB)
i have also updated the 1st post with details...
[ How To : File Setup ]
u need to do this only once
download the files from the links provided in this thread
extract the files using 7zip to a temporary folder (needs 3.3GB free on that drive)
connect ur SGS2 to PC and mount USB storage
create a folder named 'bt' (without quotes) in the root of ur sdcard
final directory structure should look like this:
/sdcard/bt/bt
/sdcard/bt/bt.img
/sdcard/bt/installbt.sh
/sdcard/bt/startbt
/sdcard/bt/stopbt
once u verify that the above is correct then un-mount usb storage
blimey so how much of backtrack actually works? Struggling to see the wep/wpa stuff working..Anyone?
Bloody hindering awkward to use as well. Good job but hmm, little tough to use.
Bed...
mrdegriz said:
blimey so how much of backtrack actually works? Struggling to see the wep/wpa stuff working..Anyone?
Bloody hindering awkward to use as well. Good job but hmm, little tough to use.
Bed...
Click to expand...
Click to collapse
1) wep/wpa crack will not work till we get monitor mode in wifi drivers.
2) if it feels awkward do check the various input methods you have for vncviewer.
(following works best for me)
Touch Mouse; D-Pad Pan
Mouse pointer control mode
TouchPad (here your screen works like a big touchpad use it to navigate mouse.)
it works fine.
thx for your work
nice work man..... I've been looking to work on gs2.thanks man
Nice work once again Doom! Glad to see a familiar poster from the X10 days.
Willing to try this but not at the expense of normal roms. Hopefully one day we get to dual-boot this and a rom/fw of our choice.
admartian said:
Nice work once again Doom! Glad to see a familiar poster from the X10 days.
Willing to try this but not at the expense of normal roms. Hopefully one day we get to dual-boot this and a rom/fw of our choice.
Click to expand...
Click to collapse
well this doesnt change anything in ur rom...
it runs from within /sdcard/bt (actually it runs from the bt.img file)
so its completely safe to try...
dualbooting is really tempting... would be possible... will see wht can be done...
Any advice on setting screen resolution in such way so it doesn't scroll a bit to the left or right?
Swyped from my Galaxy S II using Tapatalk

[Tutorial] How to change kernel logo (1st boot srceen) [COMPLETED]

We have 3 major works here... So I gonna to make it seperated
-1st post is HOW TO EXTRACT kernel.img (boot.img)
-2nd post is HOW TO CONVERT PICTURE FILE to BOOT.RLE
-3rd post is HOW TO REPACK THE KERNEL PAKAGE into boot.img
Requiredment
-Window machine
-installed cygwin
-the full boot.img/kernel (some kernel won't work because there is no full pakage/ i mean we can't)
-bootimg.zip (tool for UNPACK and REPACK kernel)
-boot_screen_logo_creation_package.rar
Thank and Credit
i- Credit to DooMLoRD Recognized Developer over most of XPERIA devices for his own tool and tutor that I learned before
ii- Credit to jimbo77 Senior Member for his tutorial that I used and learned and tool for unpack and repack
ii- Don't forget to give them a thanks meter
=============================================================================
Here we go
1-This section I will show u how to unpack and repack the boot.img
just see from original thread by jimbo77 from here and download the UNPACK and REPACK tool by him HERE
this is a fast guide from me:-
1-extract the bootimg-tools.zip into new folder (name it 'boot' folder)
2-move it into cygwin directory (cygwin/boot)
3- move your fav kernel into same directory
4-run cygwin.bat
cd /boot
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
5-Now, unpack your boot.img by running the following command:
./extractboot boot.img
Click to expand...
Click to collapse
If your output looks like this, then the extraction has worked correctly! Note that the Command Line string has also been read from the source file, this will be used later when you go to re-pack your file.
Your script folder should now look like this:
boot.img-kernel is the compiled kernel blob that was inside the source boot.img, if you want to replace the kernel with another compiled kernel image, you can replace this file with another one (but leave the file name the same)
boot.img-ramdisk.gz is the gzipped ramdisk image which has been split from the boot.img, you should leave this file alone.
The “out” folder contains the EXTRACTED ramdisk, and this is where you should make your changes to the ramdisk.
Important Note!
Remember, when editing files in the ramdisk through Windows, such as init.rc, Windows notepad will not format the files correctly, making them almost impossible to read, wheras Wordpad will LOOK like it is formatting the files correctly, if you save one of these files from the Wordpad application it will BREAK the file and it will no longer be able to be read correctly by Android. To edit these files you MUST use an editor such as Notepad++ which you can download for free.
AGAIN...
Special thanks/credit to jimbo77 for his excellent guide
So.. NEXT step to change a kernel logo is here
Requiredment
1-a picture what are u like to look into the 1st boot screen (kernel logo) (make sure it size/resolution same your device resolution)
2-boot_screen_logo_creation_package.rar
3-some infos and knowledges here
4-window machine like i explained on 1st post
My quick guide
-extract the tool.rar
-move extracted files into new folder (name it 'rle' folder without quote)
-move into cygwin folder (to make it easy to follow my simple guide)
-copy your own logo.png (a picture u want to use on a kernel) into same rle folder
(for 4 steps above it shold look like tis)
-now launch cygwin.bat
cd /rle
Click to expand...
Click to collapse
./convert_image_to_rle.bat logo.png
Click to expand...
Click to collapse
Ah...my mistake..don't forget to move/copy/replace new logo.rle into
C/cygwin/boot/out/ramdisk/here
if you done good...follow next step on next post (to repack your moded kernel)
Last step before you flash a new look kernel (boot.img) is
Repack your moded kernel
./packboot
Click to expand...
Click to collapse
One thing to note that people may mention in other guides, is that when packing boot.img files, you will usually have to declare a base address, and a command line to the packaging tool. This set of scripts reads the existing command line and base address from the boot.img file you originally provided at the time of repacking, so always make sure you leave your original source boot.img file in the folder and do not re-name it after extraction, your newly created boot.img file will be named boot_new.img and will NOT overwrite the original.
Done! If your screen looks like the image above, then you should now have a freshly created boot_new.img file, ready to be flashed to Android for testing, you can now go ahead and flash it through FASTBOOT one thing I'll recommend though is to first do
I need this for an extra (extra thanks maybe)
(may U?)
great work man
:laugh:
i got this eror what to do?
Theliakos said:
i got this eror what to do?
Click to expand...
Click to collapse
run as administrator
Thanks for this tutorial. But how about when the ramdisk is lzma? I tried changing commands from extractboot and packboot (from "gzip.... " to "lzma........." ) everything works well, the phone boots, but I don't have recovery mode anymore. In rest the kernel is perfect. But I need recovery mode, for installing things. I guess changing the command "gzip - or gunzip, whatever" to "lzma" is not all I have to modify. Any chance for a help?:crying:
LaShto34 said:
Thanks for this tutorial. But how about when the ramdisk is lzma? I tried changing commands from extractboot and packboot (from "gzip.... " to "lzma........." ) everything works well, the phone boots, but I don't have recovery mode anymore. In rest the kernel is perfect. But I need recovery mode, for installing things. I guess changing the command "gzip - or gunzip, whatever" to "lzma" is not all I have to modify. Any chance for a help?:crying:
Click to expand...
Click to collapse
same problem
Nice and awesome tutorial brother! :good::fingers-crossed::highfive:
Deleted
yamin8000 said:
same problem
Click to expand...
Click to collapse
Finally. I made it. For lzma ramdisks use this http://forum.xda-developers.com/showthread.php?t=1659584&highlight=lzma but I modified it to something like this (see attachment). All credits must go to the original developer, I only changed some "gzip -c" word to "lzma -dc". And I managed to modify any kernel with lzma compressed ramdisk. :good:
LaShto34 said:
Finally. I made it. For lzma ramdisks use this http://forum.xda-developers.com/showthread.php?t=1659584&highlight=lzma but I modified it to something like this (see attachment). All credits must go to the original developer, I only changed some "gzip -c" word to "lzma -dc". And I managed to modify any kernel with lzma compressed ramdisk. :good:
Click to expand...
Click to collapse
So all the step is the same with the one on the OP except we need to change gzip -c into lzma -dc?
Sent from my ST15i using xda premium
Singgih4050 said:
So all the step is the same with the one on the OP except we need to change gzip -c into lzma -dc?
Click to expand...
Click to collapse
Yes, but unfortunately it doesn't work with this tutorial (at least for me, because I lost recovery - In rest the kernel behaves normal, but we all need cwm recovery). It only fully works (again, for me) with that modified version of android kernel kitchen 0.3.1.
Will this method work with LOCKED bootloader?
mine can't be unlocked
No it will not working because this is tutorial about to change a kerenl bootlogo (Sony Ericsson) word on startup phone..
Your phone cant be unlocked and no chance to change/flash custom kernel with custom bootlogo.
GSUKeitarou said:
Will this method work with LOCKED bootloader?
mine can't be unlocked
Click to expand...
Click to collapse
---------- Post added at 03:46 AM ---------- Previous post was at 03:45 AM ----------
Good job mate :good:
works for me after i edit bootlogo for Xperia play kernel by doomlord and i managed to enter cwm
LaShto34 said:
Finally. I made it. For lzma ramdisks use this http://forum.xda-developers.com/showthread.php?t=1659584&highlight=lzma but I modified it to something like this (see attachment). All credits must go to the original developer, I only changed some "gzip -c" word to "lzma -dc". And I managed to modify any kernel with lzma compressed ramdisk. :good:
Click to expand...
Click to collapse
thanks for the guide:fingers-crossed:
Al ok but phone not booting after bootlogo changed!!!!
Code:
[email protected] /boot
$ ./extractboot boot.img
Page size: 2048 (0x00000800)
Kernel size: 5920144 (0x005a5590)
Ramdisk size: 4617107 (0x00467393)
Second size: 0 (0x00000000)
Board name:
Command line: androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x3F ehci-h
cd.park=3 vmalloc=400M androidboot.emmc=true
Writing boot.img-kernel ... complete.
Writing boot.img-ramdisk.gz ... complete.
13874 blocks
[email protected] /boot
$ ./packboot
Using base address 0x80200000
Using command line 'androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x3F
ehci-hcd.park=3 vmalloc=400M androidboot.emmc=true'
[email protected] /boot
$
Whas is my erros?? My phone can't booting after flash boot.img (new), i don't change bootlogo, only unpack and repack .Thank for help
But now WORK when i change with android kitchen =))
I've been getting this error. I'm already run as administrator. What's the problem?

Extract system.new.dat of Nougat and Marshmallow (easily)

IMP NOTE : Use " python-2.7.xx" ,latest version otherwise extractor will led to undesired output like this one https://forum.xda-developers.com/showpost.php?p=72165633&postcount=295 and extractor supports android 7.1.2(updated on 18-May-2017)
Extractor of system.new.dat of Marshmallow and Lollipop ROM's
​
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
DOWNLOAD
OLD
Extractor 1.0
or
Mirror
Extractor 2.0
Extractor 3.0
UPDATED
Extractor 4.8 (Updated on 18-May)
SOURCE
$GIT-HUB Contribute!
Changelog -> https://github.com/matriex/System_Extractor-WIN/commit/4b94cde74f63f6f1ff21b8c745b306326b15cb5a
Alternative of repack, if the repack script doesn't works with your system folder then try this script SCRIPT / GUIDE
How to
Extract ext4-Image files
Download Imgextractor.exe binary from the link
https://github.com/matriex/System_Extractor-WIN/blob/master/bin/Imgextractor.exe
1. Create a folder named ext and copy the binary to ext folder
2. Copy your image file ,say "system_1.img" to ext folder
3. Select the ext folder , hold the shift (right) click RMB
4. Select "Open command window here"
5. Then type this command on CMD
Code:
Imgextractor.exe system_1.img -i
6. The files will be in "system_" named folder.
NOTE:You should rename IMG file to system_1.img before doing anything
Extract *.DAT files
Users, The extractor works with nought 7.0.0 and 7.1.1 perfectly (tested with CM14.1-2016-12-12 & aosp_7.0_2016-09-19), If you encounter errors then please install python and then try extracting again
Method I
Download and run the extractor .
METHOD II (command line)
Use python 2.7.xx
1. Download zip and extract sdat2img.py binary from the link
https://github.com/xpirt/sdat2img/archive/master.zip
2. Create a folder "ext"
3. copy "sdat2img.py", "system.transfer.list" and "system.new.dat" to ext folder
4. Open cmd on "ext", (by selecting and holding shift , you will find "Open command window here")
5.Type this on command window
Code:
python sdat2img.py system.transfer.list system.new.dat system.img
6. After that you'll find system.img on that folder, that image file is ext4 image file and can be extracted by this guide
http://forum.xda-developers.com/showthread.php?t=2285831
END OF SUPPORT I DON'T HAVE ANY METHODS LEFT AND PLESE ASK PROBLEMS RELEATED TO ANDROID 6.0 ONLY
Repack *.DAT
/*Repack will or will not work, Don't panic if it not worked, You can still use folder =) */
For flashing xyz_ROM.zip with dat files , you need to modify updater-script
Script, "of some roms" , b'coz some roms contains a link b/w updateR-script
and system.transfer.list. The link includes following : There is a line in
updateR-script script called
Code:
if range_sha1("/dev/block/platform/msm_sdcc.1/by-name/system", "36,0,32770,......,307199") == "0b20303394271424267e36a0ce7573f1b62ddc0d" then
if you found this in
updateR-script then from here follow the guide Repack_INFO.txt otherwise
directly copy system.new.dat and system.transfer.list to ROM folder and
repack/zip it and flash it.
Repack ,select from script, then choose manually (option 1)
Copy all your ROM files/subfolders(bin ,app ,build.prop etc) to system folder
Everything is expalined in extractor, read it carefully
If you found "range_sah1()" on your updateR-script then continue below, else only you have to replace system.new.dat and system.transfer.list of "xyz_ROM"
CONTINUE ONLY IF YOU FOUND RANGE RANGE_SHA1
After repack a SHA1_VALUE of system.new.dat is generated and file is created as "SHA1_VALUE.txt" with "system.new.dat" & "system.transfer.list"
And follow this guide Repack_INFO.txt (attached end of this POST)
OR GIT ATTACHEDhttps://github.com/matriex/System_Extractor/blob/master/Repack_INFO.md
That's all if you need help feel free to comment
Thanks for using this method I can't say it will work , but what's wrong in trying , I tried 10 to 20 times to make it work
A LITTLE ADVICE
1. If the script failed to work ,please take a look at this post again I'm sure I've posted enough resource which will help you out in extracting and repacking .DAT files .
2. Please keep this thread clean.
3. Please don't quote whole thread(use tags).
4. I take no responsibility of repacking system.img!
5. For Linux users :https://github.com/matriex/System_Extractor-Linux/blob/master/README.md
6. Use Python 2.7.x or otherwise extractor will not work Do not use python 3.0 or update sdat2img.py binary!
Thanks to @xpirt for sdt2img
Repack_INFO.txt (GIT-HUB, clear view)
Any possible way to put it back?
? if possible Or why don't you flash it directly by folder
matrixex said:
Wait comming soon if possible
Or why don't you flash it directly by making some changes in updater-script
Click to expand...
Click to collapse
I am in no dire need of it right away, I am just asking for any future need.
nicesoni_ash said:
I am in no dire need of it right away, I am just asking for any future need.
Click to expand...
Click to collapse
Hi
I have successfully created repack script for system to dat , download it and reply worked or not
Deleted
Deleted
Works well on new Nutella OTA images. Thx
tweakradje said:
Works well on new Nutella OTA images. Thx
Click to expand...
Click to collapse
Cool please give me the link to android N OTA
Sure. Here you go http://developer.android.com/preview/download-ota.html
Cheers
tools not working broo
Source
Tools not working bro
Thanks. Tested and it worked.
v3ndul said:
Tools not working bro
Click to expand...
Click to collapse
Impossible i have tried it with marshmallow and Lollipop system.new.dat files several times(truly 4-5 ROMS more than 10times) it worked without any issues please be sure that you have copied your files as stated and also match the names as stated in extractor.
Don't copy whole post just use HIDE
v3 doesnt work. when I open it (with admin rights) I see the copyright and warnings then it closes and opens a new windows. it does that again and again sort of like a loop
Abaddon said:
v3 doesnt work. when I open it (with admin rights) I see the copyright and warnings then it closes and opens a new windows. it does that again and again sort of like a loop
Click to expand...
Click to collapse
same here
edit: solved using this version
View attachment 3692066
kenzolo said:
same here
edit: solved using this version
View attachment 3692066
Click to expand...
Click to collapse
Abaddon said:
v3 doesnt work. when I open it (with admin rights) I see the copyright and warnings then it closes and opens a new windows. it does that again and again sort of like a loop
Click to expand...
Click to collapse
I am really sorry this is because i converted bat file to exe file
Just uploaded a new version of v3.0 just download it
And you will get two things
1 bin
2 system_extractor.bat
Just run system_Extractor and enjoy
v3ndul said:
Tools not working bro
Click to expand...
Click to collapse
Don't quote the op.
Hi,
I've managed to extract, but repacking is giving the following error:
Found System FOLDER
Creating filesystem with parameters:
Size: 2147483648
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 8192
Label:
Blocks: 524288
Block groups: 16
Reserved block group size: 127
error: ext4_allocate_best_fit_partial: failed to allocate 584 blocks, out of space?
Click to expand...
Click to collapse
I double checked, and I haven't ran out of disk nor RAM.
Can you help me?
Thanks
pacacc said:
Hi,
I've managed to extract, but repacking is giving the following error:
I double checked, and I haven't ran out of disk nor RAM.
Can you help me?
Thanks
Click to expand...
Click to collapse
No bro you haven't ran out of disk or RAM :silly:
This problem persist due to size of your system folder i.e it must be greater than 2GB
Right?
Don't worry jusy edit my batch file code using notepad ++
Here which line you have to edit
Search this line
bin\make_ext4fs.exe -s -l 2048M system.img system
Now replace 2048M with 4096M
After that the line will look like
bin\make_ext4fs.exe -s -l 4096M system.img system
And after that save it.
Done
Reply it worked or not
EDIT ON 30/5/2016
Use new version 4.0 IT CAN CALCULATE SIZE AUTOMATICALLY NO NEED TO EDIT SCRIPT
thanks for sharing this
i'm done the following
1. unpack
2. editing system file content(replace & delete)
3. repack (without error)
4. copy 2 file (system.new.dat & sistem.transfer.list) through 7zip
is that the correct steps? i mean, after that i can flash it like other rom zip

Categories

Resources