yashsingh1/xdaforums huggingface dataset:
[HD2 Android Q&A, Help & Troubleshooting and Genera] michyprima:
linux x64.

btw no I didn't, because I want to make a rom (I'm not new to android development but that makes me think that I'm probably stupid :D)

Everything I do doesn't work.

Already tried something like:

- opened a premade working rom, exchanged just app and framework: no way

- exchanged everything but not bin/xbin/lib: no way

- exchanged just what was different between a stock and a premade leo rom: still no way

mmmh...
[HD2 Android Q&A, Help & Troubleshooting and Genera] a.key:
yaffs2

There is actually a way to modify files in a yaffs2 image but I've not done it my self yet. I'm 100% sure it's possible cuz everything is possible.... under Linux of course.

You need:

Linux, compiling skills, mounting skills, etc.

Basically for any other filesystems you can mount them as loop devices but not yaffs2. For yaffs2 you actually need a virtual mtd block device. once you have the mtd device you can mount the yaffs image on it.

For details google for: mounting yaffs image

and focus on virtual mtd block device.
[HD2 Android Q&A, Help & Troubleshooting and Genera] KillaHurtz:
http://www.miui-dev.com/forums/showthread.php?481-Howto-Make-your-own-Android-Build-for-the-HD2

This has a list of files to be pulled. Hope this helps. BTW michy I need help with a kernel, know anyone?
[HD2 Android Q&A, Help & Troubleshooting and Genera] frankinstine:
I'm Having a problem using on Linix, when i use the unyaffs trough the terminal it extracts the rom but not the squashed contents, which in the main apps and frame work are at on thoughs roms. I do get a file that says squashed but empty. I tried on cyanogens 6.1 rom and everything extracted fine.but that rom does not have a squashed folder, am i doing something wrong?
[HD2 Android Q&A, Help & Troubleshooting and Genera] FileFixer:
1. If i unyaffs System.img and manually remove some programs/aplications then create System.img with yaffs, does it programs will appear in apps and does my rom will be caused a more memory for other programs for installation?

2. Is it possible to unyaffs Boot.img then replace zimage with newest kernel like MDJ or hastarin then yaffs to new Boot.img, After that i suppose then this Android OS will be on new kernel???

3. And... If i remove zimage and initrd.gz from Boot.img, create new Boot.img without these two files and these two files copy to SD card and define that two files in flash.cfg for find on SD. Does it works?

Sorry for bad English. :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] af974:
Wow, this thread is very interesting, i was searching for it, lol.

Thanks guys for sharing your knowledge about a kinda of Nand cooking :)

Ok, now that we know how to decompile and compile a system.img, the next question is, how can i have ( for example) a default Wallpaper, ringtone and other stuffs?

I mean, in old WM 6.5 build we were used to mod some regs and provxml files, what Android use for this standard?
[HD2 Android Q&A, Help & Troubleshooting and Genera] ikkon:
thanks man, countless of hours reading about unyaffs, makkyatch,,yacks,,moutain goats and yatch, you just made it simple hehe

will try this...thanks again
[HD2 Android Q&A, Help & Troubleshooting and Genera] FileFixer:
About yaffs: Read this, it is very helpful.

http://elinux.org/images/e/e3/Yaffs.pdf
[HD2 Android Q&A, Help & Troubleshooting and Genera] seadersn:
the easiest way (for me):

- install a ROM of your choice

- take a file manager which is capable of root rights

- delete / change / modify anything you want to in the /system directory (i've deleted, for example, the cm wallpapers, live wp, live wp picker, email, filemanager and more) and evtl. put in sth you want to be installed at first boot

- you can put a custom framework-res.apk or bootanimation inside the corresponding folders, too, of course; or delete ringtones, which are crappy btw...

- quit the file manager and open terminal emulator

- type "su", followed by enter, followed by "mkyaffs2image /system/ /sdcard/system.img"

- done :) now you can flash this image, it will work, as here it is :D

now i'm left (after reflashing this selfmade image) with roundabout 290mb free (it's a cyanogenmod build), which should be enough, or not? :) nice...
[HD2 Android Q&A, Help & Troubleshooting and Genera] yesucan:
Thanks man for the tutorial :) can it all been done with window i now using window 7 . Or must using Linux. Thanks.
[HD2 Android Q&A, Help & Troubleshooting and Genera] ikkon:
ok i tried it and having some problems

windows:

system.img and unyaff.exe same folder, different directory

dragged system.img to unyaff.exe, cmd opens up

but no unpacked files?
[HD2 Android Q&A, Help & Troubleshooting and Genera] KillaHurtz:
The files will be placed where ever that target image is. If you look at the pictures from my post I show the before and after.
[HD2 Android Q&A, Help & Troubleshooting and Genera] ikkon:
yah...saw that..

i dont know..it must be my comp

thanks again
[HD2 Android Q&A, Help & Troubleshooting and Genera] dharvey4651:
Using this command with "NAMEofFOLDERuCHOSE" - "IMG"

Just sits there, does nothing and no System.img is ever generated. I'm using Better Terminal Emulator Pro.
[HD2 Android Q&A, Help & Troubleshooting and Genera] KillaHurtz:
Try 'mkyaffs2image /system/ /sdcard/system.img' without the quotes.
[HD2 Android Q&A, Help & Troubleshooting and Genera] FileFixer:
I use Ubuntu linux and when type unyaffs /home/filefixer/Desktop/newrom/boot.img, terminal take me a massage bash: /sbin/unyaffs: Permission denied.

unyaffs and mkfs.yaffs2 is in /usr/sbin/ folder.

Any sugestions?
[HD2 Android Q&A, Help & Troubleshooting and Genera] DavidX_07:
I put mkfs.yaffs2 into /usr/sbin/ but when I type mkfs.yaffs2 xxx linux shows me "command not found" :( ? any ideas ?

EDIT:

chmod +x ;) works...
[HD2 Android Q&A, Help & Troubleshooting and Genera] DavidX_07:
type:

sudo unyaffs /home/filefixer/Desktop/newrom/boot.img
[HD2 Android Q&A, Help & Troubleshooting and Genera] FileFixer:
sudo: unyaffs: command not found

On Root terminal same is happend...?!

When i`m in Root terminal, SUDO is not required just root password when i started it, otherwise is required and must type root password when type sudo command.
[HD2 Android Q&A, Help & Troubleshooting and Genera] DavidX_07:
sudo chmod +x /usr/sbin/mkfs.yaffs2
[HD2 Android Q&A, Help & Troubleshooting and Genera] wolfpack612:
i had unyaffs2 and system.img in the same folder. i dragged system.img to unyaffs2.exe and i didn't see any files either. then i remembered when i open command prompt my path is set to c:\document and settings\USERNAME, so i checked the folder and all of the files where there.
[HD2 Android Q&A, Help & Troubleshooting and Genera] dharvey4651:
Did this, successfully created a system.img file but now I'm facing a new problem. The system.img file seems to be completely locked and I cannot move it from my desktop in Ubuntu. :confused:

Any pointers?
[HD2 Android Q&A, Help & Troubleshooting and Genera] FileFixer:
login as root then unlock file.
[HD2 Android Q&A, Help & Troubleshooting and Genera] DavidX_07:
sudo chmod 755 home/your_user_name/Desktop/system.img
[HD2 Android Q&A, Help & Troubleshooting and Genera] FileFixer:
open image file failed

???

HINT: Sorry, my mistake... :) I`m failed to type one caracter in terminal, but now i can get this massage...

end of image

Where is stored dirs and files from images?
[HD2 Android Q&A, Help & Troubleshooting and Genera] DavidX_07:
In directory when U actually are.
[HD2 Android Q&A, Help & Troubleshooting and Genera] FileFixer:
Nothing is here except boot.img and system.img.

filefixer@nx9420:~$ unyaffs /home/filefixer/Desktop/newrom/boot.img

end of image

filefixer@nx9420:~$

I see that extracted images directories and files must be in my newrom directory but none is here except img files.
[HD2 Android Q&A, Help & Troubleshooting and Genera] FileFixer:
I found it where is it misterious dirs and files...

It is in /home/filefixer/ and it is everywhere. :( It is not stored in my /newrom directory.
[HD2 Android Q&A, Help & Troubleshooting and Genera] DavidX_07:
type:

cd /home/your_name/Desktop/newrom/ (for example)

<enter>

unyaffs /home/filefixer/Desktop/newrom/boot.img

<enter>

--

then it will unpack You img to /newrom on desktop

"filefixer@nx9420:~$" <-- means U are in /home/filefixer and that's why unpack there
[HD2 Android Q&A, Help & Troubleshooting and Genera] FileFixer:
Hahaha.. I`m smile yourself how am i stupid...

I see where i am a big mistake. unyaffs is executable from everywher but folders and files has been unpacked where i am been point in terminal.

If i type cd /home/filefixer/temp there can find all files... in /filefixer/temp folder.

Thank you DavidX and best Regards.

FileFixer.
[HD2 Android Q&A, Help & Troubleshooting and Genera] :
hi

for me the problem is all my created system.img are not good :confused:

i arrived to extract / create my system.img but he not boot (i have the HTC screen but no bootanimation, my screen is full black)

i have test to take a good rom on the forum and i have extract...i don't modify and i have repack with mkfs.yaffs2 or mkyaffs2image.

same problem, the rom not boot? :eek:

i see the size is not exactly the same before extract and after recompil on a good rom take on the forum :cool: have you an idea?

the original file 396mo (405851 ko)

the same extract and recompil with no mod file 396mo (405744 ko)

i use Windows7 and VMware + ubuntu 10.4

i have use the tools of this topic for extract (on windows with unyaffs.exe) and rebuild with mkfs.yaffs2 or mkyaffs2image on ubuntu.
[HD2 Android Q&A, Help & Troubleshooting and Genera] DavidX_07:
It will not work this way (windows + linux)... Just unyaffs and mkfs.yaffs2 on linux and will work
[HD2 Android Q&A, Help & Troubleshooting and Genera] ikkon:
you need a boot image or windows just took a dump with the files permissions

why not do everything in Linux, the unpacking and packing

anyways, can anyone can tell me how to get the unpacked system.img in the folder with unyaff.exe

it always goes to default c:\documents and settings\owner

took me a while to find the unpacked files, but alas..i found it

hmm user variables?
[HD2 Android Q&A, Help & Troubleshooting and Genera] :
hum...i test it now..;) [edit] all is good....:D thanks davidX ;)

now i can create my rom...:cool:

i don't all understand...but i think you want to extract the system.img...

for this take the files from the page 2 of the topic (not use windows...use linux or you don't arrived because windows make error (see my post)

put the files on your "system" / "sbin folder" (mkfs.yaffs2, mksquashfs, mkyaffs2image (not oblig), unsquashfs, unyaffs)

create a folder with name you want (ex: "extract") on your desktop

put your system.img you want extract in this new folder

open terminal

put this on your terminal

sudo su

<enter>

**your password**

<enter>

cd /home/**your name**/Desktop/extract/ (for example)

<enter>

unyaffs /home/ikkon(or your name session)/Desktop/newrom/system.img(or boot.img)

<enter>

your system.img (or boot.img) is extract.

if you want mod files you can take the root user (sudo nautilus or sudo chmod 755)

mod what you want, delete the system.img (or boot.img) from your "extract" folder and create your new img in another folder

ex:

create a new folder on your desktop ("newimg")

open terminal

sudo su

<enter>

**your password**

<enter>

cd /home/**your name**/Desktop/newimg/ (for example)

<enter>

mkfs.yaffs2 /home/ikkon(or your name session)/Desktop/newrom/system.img(or boot.img)

<enter>

and your new .img is created in your "newimg" folder

if you want move files to your pc or usb device you can take the root user (sudo nautilus or sudo chmod 755)
[HD2 Android Q&A, Help & Troubleshooting and Genera] ikkon:
@Bich0n

sorry didn't explain that i am using windows, no Linux for me

sorry if i made you type all that
[HD2 Android Q&A, Help & Troubleshooting and Genera] :
if you want just extract system.img in windows you create a folder, you put in your system.img and the unyaff.exe and you drag on the .exe the system.img ;)
[HD2 Android Q&A, Help & Troubleshooting and Genera] FileFixer:
Positioning here...

filefixer@nx9420:~/Desktop/newrom$

Enter this...

sudo su mkfs.yaffs2 /home/filefixer/Desktop/newrom/system.img

Enter my password and terminal take me this...

Unknown id: mkfs.yaffs2

When type mkfs.yaffs2 system.img terminal take me the same... Unknown id: mkfs.yaffs2

mkfs.yaffs2 and unyaffs has be copy to /usr/sbin/ and unyaffs work perfect but mkfs.yaffs2 not?
[HD2 Android Q&A, Help & Troubleshooting and Genera] :
have you rename correctly mkfs.yaffs2.x86 to mkfs.yaffs2 :rolleyes:

for the folder i don't have put the files in usr/sbin but just in sbin folder.test this peraps?
[HD2 Android Q&A, Help & Troubleshooting and Genera] yesucan:
+1 for the unpack :) i manage to unpack the system.img with 'unyaffs' on window 7 :) now can u guide me how to repack the system.img that already modified that can used by NAND build . thanks man :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] Ultra$onic:
ys@Samsung:~$ sudo chmod +x /usr/sbin/mkfs.yaffs2

ys@Samsung:~$ mkfs.yaffs2 /home/ys/Desktop/newrom/System.img

mkfs.yaffs2: Android YAFFS2 Tool,Build by PowerGUI

your dir [/home/ys/Desktop/newrom/System.img ] doesn't exist or it is not a direcotry,please check it.

any suggestions?
[HD2 Android Q&A, Help & Troubleshooting and Genera] FileFixer:
I have a same situation as yours...

your dir [/home/filefixer/Desktop/newrom/System.img ] doesn't exist or it is not a direcotry,please check it.

I try to make directory on other place (not desktop) but these situation is same...???
[HD2 Android Q&A, Help & Troubleshooting and Genera] Ultra$onic:
finally i got it under root :)

root@Samsung:~# mkfs.yaffs2 /home/ys/pack/ System.img

mkfs.yaffs2: Android YAFFS2 Tool,Build by PowerGUI

Building...

Build Ok.

But where is the file "System.img" now? I can't find it ahahaha))))

Ubuntu very interesting :)

even without root its work.
[HD2 Android Q&A, Help & Troubleshooting and Genera] FileFixer:
type sudo nautilus

enter your root password and find img inside root or File System
[HD2 Android Q&A, Help & Troubleshooting and Genera] Ultra$onic:
ok, file found in home folder:)

did you get system.img with mkfs.yaffs2

/home/filefixer/Desktop/newrom/space hereSystem.img
[HD2 Android Q&A, Help & Troubleshooting and Genera] FileFixer:
No. But WTF "space here" is not be on my terminal command. :):rolleyes:

I will try it when i come home.

Thanks.
[HD2 Android Q&A, Help & Troubleshooting and Genera] :
your system img is here (root@Samsung) on root of your hdd ;)
[HD2 Android Q&A, Help & Troubleshooting and Genera] gt2009:
i am using this method but my ubuntu only creates empty .img files
[HD2 Android Q&A, Help & Troubleshooting and Genera] FileFixer:
All your extracted files and folders MUST be in folder /Desktop/newimg/ (for example)
[HD2 Android Q&A, Help & Troubleshooting and Genera] gt2009:
ok, so i tried it again and only a 4.1kb file is created

sudo su

cd /home/name/Desktop/oldimg/

mkfs.yaffs2 /home/name/desktop/newimg/ system.img

System.img is being created
[HD2 Android Q&A, Help & Troubleshooting and Genera] :
yes excuse me...i have make error on my script...

mkfs.yaffs2 /home/name/desktop/newimg/system.img

mkfs.yaffs2 /home/name/desktop/newimg/ system.img

don't forget the space :rolleyes:
[HD2 Android Q&A, Help & Troubleshooting and Genera] FileFixer:
It is work like a charm, but... :)

I have a 2GB system.img??? Or Ubuntu lier. :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] the_scotsman:
Can I ask you Android nerds to have a quick look at my questions here? http://xdaforums.com/showthread.php?t=903308

Hoping for a little help :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] samhoatom:
Hi, I have created the system.img follow your step, and flash my device already. But I have another question, I can't root my phone, I have checked the permission of /system folder , under files and folders, there are all "r".

I re-flashed old system.img, that can root !! , and the permission is "rwxr-xr-x" of /system folder.

How does build system.img ,that can root ?
[HD2 Android Q&A, Help & Troubleshooting and Genera] samhoatom:
Thanks, I got root, I modify owner of files and folder under system folder to root and change permission to read and write, that is OK !!
[HD2 Android Q&A, Help & Troubleshooting and Genera] wolfpack612:
listen to the people saying to do everything from your linux desktop. i was stuck on the htc screen as well, so i redid everything from the desktop and voila it worked. i had all of my files on an external drive but permissions got all screwy for my system.img and that was my problem.
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] oh_arse:
Hi all, have been messing around with wallpapers and layout using Cookies Home Tab 2.0. After changing to my preferences there is now two options that appear at the bottom of the lockscreen when I lock it - "Phone" on the left & "Menu" on the right. "Phone" does nothing when pressed but "Menu" opens the CHT options menu. Don't want to lock the phone, put it in my pocket and find that all of my Home Tab preferences have been changed in my pocket! Any ideas please?
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] conantroutman:
try disabling the cht lockscreen then turning it back on.

or go through all the obscure settings in cht editor and see if you changed anything.....
[Hero, G2 Touch Q&A, Help & Troubleshooting] alejandrowong3:
i had my g2 for a while now i got it almost the same day it came out but now that i seen u can overclock it i want to do it

however im new at rootin i have never rooted a phone even thou i own the g1 i never modified it :confused:

i need help to mak sure i dont brick my phone :eek:

Oh and once rooted, will my phone stop receiving the official OTA updates?

if anybody could jus post a link to the easiest n most updated guide there is ill apriciated alot;)

i been lookin thru alot of posts but some seem old n outdated n some seem to be really hard to understand:( (again im new at this rootin :confused: )

once i root my phone i want to over clock it which i seen a post already that looks fairly good n understandable which i hav to get the app n it will sett the sppeds on my phone

thanks in advance for all the help

My phones specs please let me know if u need any more info n ill update my post thanks

T-mobile G2

Android version 2.2

Baseband version 12.28b.60.140eU.26.03.02.26_M

Kernel version

2.6.32.17-g9ab3677
[Hero, G2 Touch Q&A, Help & Troubleshooting] treesurf:
This is the thread you're looking for. It really should be stickied:

http://xdaforums.com/showthread.php?t=645253
[Hero, G2 Touch Q&A, Help & Troubleshooting] alejandrowong3:
Thanks I went to bed I was tired of lookin thru all the posts but ill look thru it first thing in the morning thanks n hopefully ill be rootin my g2 very soon :)

Also do u know if ill still be gettin the oficial updates? Does it matter or no? I jus want to be able to get the latest updates as they come out
[Hero, G2 Touch Q&A, Help & Troubleshooting] treesurf:
I don't know the answer about OTA updates after rooting, but to be honest, I'd be surprised if another OTA update ever happens for the Hero.
[Hero, G2 Touch Q&A, Help & Troubleshooting] alejandrowong3:
Oh ok n also I was readi thru my phone n it shows that what he's doin is instalin a costum rom n wouldn't do erase everythin on my phone?
[Hero, G2 Touch Q&A, Help & Troubleshooting] treesurf:
Yes, installing a custom ROM would erase everything on your phone (although he also instructs you on how to do a nandroid backup of your previous setup). However, if all you want to do is root the phone you can do that without having to do any of the other stuff. Just download, install, and run Universal Androot as instructed in that thread, and you should have root without doing any other changes to the phone or your data.
[Hero, G2 Touch Q&A, Help & Troubleshooting] vido.ardes:
Unfortunately rooting the T-Mobile G2 Touch isn't as simple as rooting a standard Hero GSM, T-Mobile made it quite difficult. I would suggest following this thread or using this tool
[Hero, G2 Touch Q&A, Help & Troubleshooting] vatvedt:
And if you don't install a custom rom or a rooted stock rom, your recovery will be overwritten, and you'll lose root on the first reboot.

The unrooted stock rom overwrites the recovery when rebooted.

Correct me if I'm wrong :)
[Hero, G2 Touch Q&A, Help & Troubleshooting] vido.ardes:
Good point, I think you right in which case you will need to install a rooted stock ROM at the very least, which would mean wiping all your data
[Hero, G2 Touch Q&A, Help & Troubleshooting] treesurf:
Sorry, I didn't know the G2 required a different rooting method.

Anyways, on my standard unlocked Hero I did not loose root when rebooting on the stock ROM, although as you said it did overwrite my recovery. I do not know if this is the case on the G2.
[Hero, G2 Touch Q&A, Help & Troubleshooting] vido.ardes:
T-Mobile did some pretty nasty stuff security-wise compared to the standard GSM Hero so rooting is a bit different. As for what happens on reboot I can't comment, but I would recommend using a custom ROM anyway, something like Paul@MoDaCo's MCR is great for someone who just wants it working like stock but with better performance. You should be able to add something like FlyKernel to it for the overclock.
[Hero, G2 Touch Q&A, Help & Troubleshooting] treesurf:
Agreed. Once you go custom, you won't go back. :D
[Hero, G2 Touch Q&A, Help & Troubleshooting] Eddie1506:
Guys, I think he's actually talking about T-Mobile G2 as in http://www.gsmarena.com/t_mobile_g2-3518.php, and not T-Mobile G2 Touch (HTC Hero). Notice the system specs in the first post :)

@alejandrowong3 http://xdaforums.com/forumdisplay.php?f=750 This is the forum you're looking for.
[Hero, G2 Touch Q&A, Help & Troubleshooting] vido.ardes:
Ha ha! Yeah, we all really need to read more... :o Yeah, the G2 is different to the G2 touch, follow the link from the guy above :D
[Hero, G2 Touch Q&A, Help & Troubleshooting] alejandrowong3:
yes im actually talkin about the T-mobile G2 in USA
[Hero, G2 Touch Q&A, Help & Troubleshooting] alejandrowong3:
thanks for the link ill be readin thru it right now :)
[Hero, G2 Touch Q&A, Help & Troubleshooting] alejandrowong3:
what do u think about this guide??

i seen few people refering to this guide to be the most updated and easiest way to do it

http://xdaforums.com/wiki/index.php...cess_.28Permanent_Root_.2F_.22Permaroot.22.29

i already downloaded all the files needed

i wanna know if this would be the best choice for me

all i want is ROOT to overclock my phone thats it

i DONT want to have a CUSTOM ROM or anything lik that

the only reason i want ROOT is to make my phone FASTER

and i dont wanna loose none of my info or data in my phone or sd card
[Hero, G2 Touch Q&A, Help & Troubleshooting] Eddie1506:
Yes, that one is the best. Works on Desire Z and Desire HD too. Worked fine on my Desire HD.

Please, switch to G2 forum from now on, as this thread is offtopic in this one.
[Hero, G2 Touch Q&A, Help & Troubleshooting] efax1007:
sucessful tmobile G2 temp root using VISIONary r14 this morning!

I tried ROOT on my new tmobile G2 (GSM) I bought last week. I tried Universal Androot AND z4root and neither worked to get even temp root.

This morning, I used VISIONary r14 and sucessfully gained su root and disabled a few of the branding and blotware apps on MY phone! I still haven't been able to uninstall them completely, but at least they aren't starting automatically on boot. Here's the link that worked:

android.modaco.com/content/software/320350/19-nov-r14-visionary-one-click-root/

these branded apps are WAY annoying! I'm not good with outfits like facebook and twitter having access to all my personal info and data, including fine GPS location!! and I can hardly believe tmobile imbedded these apps as they did. I'm still within my 14-day trial and may still return the phone because of this unless I can be sure I can get these apps OFF my back! :mad: