[q] weird problem with adb pull command - Samsung Galaxy Nexus

i have been trying to pull my back ups from phone via adb pull. but i keep on running in a weird probelm.. i cant pull any system file as well as the data/media/clockword mod. if i type that command , it just runs the directory of various commands.. but i can still pull any file from my /sdcard command
i hope you guys can help me as i have searched everywhere but i cant seem to find an answer .

khuzema9 said:
i have been trying to pull my back ups from phone via adb pull. but i keep on running in a weird probelm.. i cant pull any system file as well as the data/media/clockword mod. if i type that command , it just runs the directory of various commands.. but i can still pull any file from my /sdcard command
i hope you guys can help me as i have searched everywhere but i cant seem to find an answer .
Click to expand...
Click to collapse
You need an insecure kernel to pull system files (/system, /data). I'm not sure if there are other ways, but I do know that you can adb pull anything if you have ro.secure=0 in default.prop of the kernel's ramdisk. You can easily do this to your own kernel by using dsixda's kitchen to extract boot.img and edit it. If you need help, just post there (or you can post boot.img and I can do it quickly for you).

mwalt2 said:
You need an insecure kernel to pull system files (/system, /data). I'm not sure if there are other ways, but I do know that you can adb pull anything if you have ro.secure=0 in default.prop of the kernel's ramdisk. You can easily do this to your own kernel by using dsixda's kitchen to extract boot.img and edit it. If you need help, just post there (or you can post boot.img and I can do it quickly for you).
Click to expand...
Click to collapse
THANK YOU SO MUCH FOR REPLYING , i am right now using franco app and just flashed its kernel and its working now... but i am confused about the push command so how to send it back to its location from my pc to phone.
could you be generous enough to tell me how to edit boot.img and what else can i do by editing as well.. if you can direct me to some links or whatever you could tell me . i would love to learn it ..

khuzema9 said:
THANK YOU SO MUCH FOR REPLYING , i am right now using franco app and just flashed its kernel and its working now... but i am confused about the push command so how to send it back to its location from my pc to phone.
could you be generous enough to tell me how to edit boot.img and what else can i do by editing as well.. if you can direct me to some links or whatever you could tell me . i would love to learn it ..
Click to expand...
Click to collapse
You don't simply edit boot.img. Its a kernel and must be compiled from source.

khuzema9 said:
THANK YOU SO MUCH FOR REPLYING , i am right now using franco app and just flashed its kernel and its working now... but i am confused about the push command so how to send it back to its location from my pc to phone.
could you be generous enough to tell me how to edit boot.img and what else can i do by editing as well.. if you can direct me to some links or whatever you could tell me . i would love to learn it ..
Click to expand...
Click to collapse
I just use dsixda's kitchen and it's a command under the 'advanced options' menu in unpack boot.img. You can get the latest dsixda kitchen here. Download the .zip to your computer. To get it setup, you either run it in linux (I just use a virtual machine of ubuntu) or use cygwin. You can get instructions in post 3 of this thread. I used to use cygwin and it wasn't too hard to get setup. The instructions are pretty easy to follow. When you are pushing things to your phone, I usually do it in recovery (though it doesn't always have to be) and don't forget the 'adb shell mount /system' or whatever partition you are pushing to before you use adb push.
scottx . said:
You don't simply edit boot.img. Its a kernel and must be compiled from source.
Click to expand...
Click to collapse
That's not really true. It's easy to unpack boot.img into the ramdisk and zimage. zimage must be compiled (maybe that's what you're thinking), but there are many things you can edit with a text editor in the ramdisk (like the value to make the kernel insecure that I posted previously).

ok i will defiantely work on that , and i sure hope to end up with questions which i will definately ask

khuzema9 said:
ok i will defiantely work on that , and i sure hope to end up with questions which i will definately ask
Click to expand...
Click to collapse
is there any way to push backups from usb drive to the clockworkmod folder , if i just keep them handy

Related

*OUTDATED* ROM porting for kaiser/vogue [Linux] NOOB friendly!

THIS IS NOW OUTDATED!!
It uses the old sqsh method WITH a rootfs. So if you're using the NoMoRootfs method, this won't work. Please use the already complete builds in the Kaiser/Vogue threads as they are working the best at this moment.
DISCLAIMER:
I take no responsibility for anything that may happen to your phone/computer. Use at your own risk.
PURPOSE:
This is for informational/testing purposes. And for people to stop asking, "can somebody port X rom!!! PLZ!!!"
PREFACE:
I made this as a quick tool to port ROMs from the Dream/Sapphire forums to work with our phones. It's a very quick and dirty script I threw together using bash, so there's probably some problems with it. This tool is simply designed to make a copy of the Dream/Sapphire ROM. Once you get the setup, it's really easy and you'll be porting like crazy.
I did this all on Ubuntu 9.10 so things might not work properly if you're using another distro.
THANKS:
All credit goes to the people that made this possible, in no particular order...
dzo, vilord, mssmison, zen, enatefox, pmos, jamezelle, craig0r, cyanogen, and so many more. If I forgot you, I'm sorry, but you know if you helped in some way.
THE SETUP:
1) Download this file
2) Extract the folder to your desktop. Then copy and paste the following code into the terminal:
Code:
sudo mv -f $HOME/Desktop/Android/genext2fs /bin/genext2fs; sudo chmod 755 /bin/genext2fs; sudo dpkg -P squashfs-tools; sudo dpkg -i $HOME/Desktop/Android/squashfs-tools_3.3-7_i386.deb; sudo rm -r $HOME/Desktop/Android/squashfs-tools_3.3-7_i386.deb; sudo chmod 777 $HOME/Desktop/Android/*.build.script
3) Now go into synaptic package manager, search for squashfs-tools, select it and under Package, check Lock Version so that way it won't try to update.
4) Now cruise over to the Dream android development forum or the Sapphire android development forum and download the ROM you would like to port. Place the zip file in the Android folder. (no need to rename)
5) Place any .apk's you would like built into the system in the Apps folder.
ADVANCED SETUP:
If you would like to tweak the system before building, open the script in a text editor and you'll find a line to uncomment that will halt the script until you are ready.
HOW TO RUN:
Either run the script from a terminal
Code:
./$HOME/Desktop/Android/HERO.build.script
or
./$HOME/Desktop/Android/Donut.Build.script
Or double click and Run in Terminal
You will get a prompt for your password to use the sudo command. THIS IS NOT SAVED ANYWHERE OR MAGICALLY SENT TO ME. It is just to get the system.sqsh setup for you to use.
You will now see a Donut/Hero folder inside the Android folder. Inside that will be a nice little system.sqsh with the date ready to boot!
*Rename to system.sqsh when you put on your SD card*
Grab the latest basefiles from vogue-android and you're good to go.
~~~~~~ To get an output of what's happening run in a terminal as described above but add " > build.txt" and you'll see a txt file in the Android folder. ~~~~~~~
CHANGING SYSTEMS:
If you want to port a new rom, replace the .zip.
UPDATES:
1) Download the updates from HERE
2) Extract to the Android folder overwriting if necessary.
3) Copy and paste the following code into a terminal:
Code:
sudo chmod 777 $HOME/Desktop/Android/*.script
CLEANUP:
If you follow the advanced setup and/or accidentally closed the terminal before the build finishes, run the cleanup script. This will unmount everything that might be mounted and delete all folders that are made during the process.
DOWNLOADS:
If you're too lazy or just want a quick link:
Main "Android porting" folder
Updates
Input, testers, bugs, and tweaks to the scripts are appreciated!
FAQ:
Why does my system.sqsh not work?
Most likely cause is that you're not using the correct version of squashfs-tools. You'll have to find version 3.X for the distro you're using. Version 4.X will NOT work!!!
When I try to boot a system.sqsh I just made I keep getting something about android power wake locks. WTF?
You're probably trying to port an eclair or cyan ROM. These don't work at the current state. Hopefully soon I'll get these working.
Will update more when they arise.
CHANGELOG:
11-27-09:
-Created a cleanup script in case the terminal is closed during the build process.
-Bug fixes in Donut and Hero scripts
11-24-09:
-Added an Apps folder for apk's you want built into the system.
-Bug fixes in scripts
11-22-09:
-Combined everything needed into a zip file
-WAY easier to setup
11-20-09:
-Added feedback to make more user friendly
-Append time to system.sqsh
loserskater said:
Input, testers, bugs, and tweaks to the scripts are appreciated!
Click to expand...
Click to collapse
Will try today... Downloading
Tried and working. Had to change the script for it work with ubuntu version that i use. Thanks this is really great
garynsa said:
Will try today... Downloading
Tried and working. Had to change the script for it work with ubuntu version that i use. Thanks this is really great
Click to expand...
Click to collapse
What did you change?
Glad to see it's working.
loserskater said:
What did you change?
Glad to see it's working.
Click to expand...
Click to collapse
hI
For some reason I cannot use -a in the genext2fs command. Had to remove that..
One of the Donut is working. Couldnt get the Cyanogen build working . Struggling with hero build also.
Will try again in the next couple of days and post results.
Thanks
garynsa said:
hI
For some reason I cannot use -a in the genext2fs command. Had to remove that..
One of the Donut is working. Couldnt get the Cyanogen build working . Struggling with hero build also.
Will try again in the next couple of days and post results.
Thanks
Click to expand...
Click to collapse
Make sure you use the genext2fs that I referenced.
That one works with -a and might take care of some issues. try that and see if it works.
Updated script to now move system to a Hero or Donut folder.
Working on the cyanogen build now...
EDIT: Here's a cyanogen script that gets it to boot, but sits at a black screen. I haven't had much time to test it so it might boot further than that if you leave it. If somebody wants to test this out or tweak it in some way go for it.
It uses the donut.sqsh in the Android folder so you shouldn't have to do anything with it except make it executable.
EDIT 2: Still working on cyan builds... that script didn't work.
great job i like to see stuff like this to motivate people!!! also note this will work with any donut or hero build from the sapphire forum
jamezelle said:
great job i like to see stuff like this to motivate people!!! also note this will work with any donut or hero build from the sapphire forum
Click to expand...
Click to collapse
Good point, forgot to mention that. Updated first post.
I'm hoping it will help people start to learn to tweak system's. But I have a slight feeling wer're going to start seeing a lot of "MLIGN/DWANG/etc's Android Rom" threads from random people.
Hi
Was able to port the DWANGs build using your script. Thanks a lot for making life this simple. Howev3er, hero build is still not working. Tried your genesxt2fs. Is it possible to get the links to correct base hero version to use? I tried magic and normal version. It keeps giving me black screen and doesnt completely boot. I think the base hero version is not the right one i am using
Thanks
OK, I think I figured out the problem. The apps folders weren't copying over from the data folder to the system folder correctly. Testing now, and will update first post with new scripts.
EDIT: Finally got the Hero builds working correctly. You should still be able to use any hero.sqsh.
loserskater said:
OK, I think I figured out the problem. The apps folders weren't copying over from the data folder to the system folder correctly. Testing now, and will update first post with new scripts.
EDIT: Finally got the Hero builds working correctly. You should still be able to use any hero.sqsh.
Click to expand...
Click to collapse
Hi
The new script is great.. I was able to get the hero to boot I still have 2 check a few thing willl post later in the night with more
Thanks a lot
garynsa said:
Hi
The new script is great.. I was able to get the hero to boot I still have 2 check a few thing willl post later in the night with more
Thanks a lot
Click to expand...
Click to collapse
Glad to see its working. Thanks for the feedback!
Most things working
Hi
was able to get the hero ported and a few things worked
1. Calls
2. SMS
3. Wifi (getting ips)
4. Working with partition rootfs (speed quite great with this)
Not working
1. Camera
2. GPS
I am using he ION build to build the hero roms (based on the inputs of Zen). May be I need to use another hero rom for the camera to work? I recommend that the links to the recommended build to be used as template (donut, hero...) be updated on the first thread to make it easy for others to have a single starting platform
garynsa said:
Hi
was able to get the hero ported and a few things worked
1. Calls
2. SMS
3. Wifi (getting ips)
4. Working with partition rootfs (speed quite great with this)
using u
Not working
1. Camera
2. GPS
I am using he ION build to build the hero roms (based on the inputs of Zen). May be I need to use another hero rom for the camera to work? I recommend that the links to the recommended build to be used as template (donut, hero...) be updated on the first thread to make it easy for others to have a single starting platform
Click to expand...
Click to collapse
If using a hero.sqsh doesnt fix the problem it sounds like it might be the rootfs (probably not copying over correctly). Ill take a look at it when I get home and update the first post with hero/donut.sqsh's.
Im also thinking about combing the 2 into just one script and youll be able to just type which build you want when you run it. What do you think? Or is the 2 seperate scripts more convenient?
loserskater said:
If using a hero.sqsh doesnt fix the problem it sounds like it might be the rootfs (probably not copying over correctly). Ill take a look at it when I get home and update the first post with hero/donut.sqsh's.
Im also thinking about combing the 2 into just one script and youll be able to just type which build you want when you run it. What do you think? Or is the 2 seperate scripts more convenient?
Click to expand...
Click to collapse
Personally i prefer the separate scripts mainly because each requires a different base templates. However if you prefer to combine them may be have sub-folders within the main so that the work happen for each port within the sub-folder.
Few suggestions if you like (please ignore if not correct.. being a non-programmer of linux I can be a bit off )
1. Let the folder names be requested at start and use them
2. If possible to put in a log of the run to check if there were issue or not (because i use double-click to run the script sometimes there is a problem that i face if i dont watch the window. for now i have put some waits to check the errors. Had this issue while testing to port one)
If I can help (except on coding as I dont know it.. generally change the script just enough to work... )
Queries/questions
1. Is there a way to test the build on the comp itslef rather than to keep booting on the phone (takes a lot of time and the phone is not usable all that time...)
Thanks for all the work
garynsa said:
Personally i prefer the separate scripts mainly because each requires a different base templates. However if you prefer to combine them may be have sub-folders within the main so that the work happen for each port within the sub-folder.
Few suggestions if you like (please ignore if not correct.. being a non-programmer of linux I can be a bit off )
1. Let the folder names be requested at start and use them
2. If possible to put in a log of the run to check if there were issue or not (because i use double-click to run the script sometimes there is a problem that i face if i dont watch the window. for now i have put some waits to check the errors. Had this issue while testing to port one)
If I can help (except on coding as I dont know it.. generally change the script just enough to work... )
Queries/questions
1. Is there a way to test the build on the comp itslef rather than to keep booting on the phone (takes a lot of time and the phone is not usable all that time...)
Thanks for all the work
Click to expand...
Click to collapse
I'll try to make the script more user friendly with prompts if something doesn't happen correctly. And also work on naming folders.
But first I want to figure out the camera/gps issues...
There isn't a way to boot it on the comp that I know of. I'll upload blank data.img's for each build so that they'll boot faster but other than that I think moving to SD Card and booting is the only way. But once all these bugs get sorted out, you won't have to do it as often!
EDIT: Which folders would you like to name? Just where the system.sqsh gets stored?
loserskater said:
I'll try to make the script more user friendly with prompts if something doesn't happen correctly. And also work on naming folders.
But first I want to figure out the camera/gps issues...
There isn't a way to boot it on the comp that I know of. I'll upload blank data.img's for each build so that they'll boot faster but other than that I think moving to SD Card and booting is the only way. But once all these bugs get sorted out, you won't have to do it as often!
EDIT: Which folders would you like to name? Just where the system.sqsh gets stored?
Click to expand...
Click to collapse
Hi
Thanks for the answers. For me it should be both (but the starting folder is main. Other can be a sub-folder like u have now to be renamed as choice)
garynsa said:
Hi
Thanks for the answers. For me it should be both (but the starting folder is main. Other can be a sub-folder like u have now to be renamed as choice)
Click to expand...
Click to collapse
Are you referring to the Android folder? Or just a folder where everything is kept when it runs?
loserskater said:
Are you referring to the Android folder? Or just a folder where everything is kept when it runs?
Click to expand...
Click to collapse
Android folder... but its not a big deal as one can easily change it while startign the script

ClockworkMod Recovery for the GALAXY TAB

Thanks to JT1134 I was able to get the recovery compiled and gave that to Noobnl so he place that into his Hijack super script. SO, dont forget to thank JT1134 for that! Also thank codeworkx for his repo since that was used!
& DRockstar for his script
download http://dl.dropbox.com/u/500010/GalaxyTab/galaxytabroot&clockworkmod.zip
thanks DRockstar for the script
1. debugging enabled
2.run.bat
usage: adb reboot recovery
based on my http://forum.xda-developers.com/showthread.php?t=846798
DRockstar said:
I thought this script was pretty cool when noobnl told me about it...
INSTRUCTIONS FOR INTEL MAC & LINUX:
Note: Mac and Linux users may be prompted to enter administrative password, as adb server requires sudo permissions to start.
No drivers required.
Extract the zip file.
Put the run.sh inside the directory you just extracted.
Open Terminal. Use the cd command to get to the directory. If you extracted inside the Downloads folder, it would be easy in Terminal as so:
Code:
cd ~/Downloads/epic.aio.v2.01
Now give permissions and run it:
Code:
chmod +x run.sh
./run.sh
THANKS TO FIRON FOR CODE MAKING THE SAME SCRIPT BOTH INTEL MAC AND LINUX COMPATIBLE.
Click to expand...
Click to collapse
awsome.. thanx, now just need some good detailed way of enable my tab to make phone calls and i'll be having myself a great holidays .. again thanx lots
Wow, thanks! Downloading now and gonna install immediately!
If it works (and I believe it will), then I can only say thanks A LOT to you, Deodex and drockster for this.
<3
Sweet, grabbing now.
Sent from my GT-P1000M using XDA App
It works, but its pretty rough. The screen flickers, and sometimes the navigation is kinda iffy. But backup/restore works and you can flash .zips.. and that's whats important. This should get polished in the next week or so
How did you guys get it to work? Whenever I run that run.bat, it gives me a massive list of "ping is not a recongized command" and "Tab is not a recognized command" and finally ends up doing nothing
I moved the extracted directory to the root of my drive, and it actually made a bit of a difference, as the batch file went a bit further. But still, it ended up doing nothing...
Any ideas?
noobnl said:
thanks to deodex & drockster & me
download http://www.sdx-downloads.com/devs/noobnl/galaxytabroot&cloxckworkmod.zip
1. debugging enabled
2.run.bat
usage: adb reboot recovery
based on my http://forum.xda-developers.com/showthread.php?t=846798
Click to expand...
Click to collapse
This is something that Noobnl has put together with using his other script. As far as getting recovery fully functional and not having the screen flicker and others issues, I will continue working on that.
Thanks to JT1134 I was able to get the recovery compiled and gave that to Noobnl so he place that into his Hijack super script. SO, dont forget to thank JT1134 for that! Also thank codeworkx for his repo since that was used!
Anyway the continue development of this will be discussed on the #ModADroid-Galaxy-Tablet channel!
YES Thanks to all that helped!! This would have saved me a couple days ago. Good to know that its available now.
It does flicker when you scroll the options, but at least it works!
I'll try again:
How did you guys get it to work? Whenever I run that run.bat, it gives me a massive list of "ping is not a recongized command" and "Tab is not a recognized command" and finally ends up doing nothing
I moved the extracted directory to the root of my drive, and it actually made a bit of a difference, as the batch file went a bit further. But still, it ended up doing nothing...
Any ideas?
jeebspawnshop said:
I'll try again:
How did you guys get it to work? Whenever I run that run.bat, it gives me a massive list of "ping is not a recongized command" and "Tab is not a recognized command" and finally ends up doing nothing
I moved the extracted directory to the root of my drive, and it actually made a bit of a difference, as the batch file went a bit further. But still, it ended up doing nothing...
Any ideas?
Click to expand...
Click to collapse
I have not loaded this myself. I do not have windows machine. Go to the Irc channel to get some more help or ask Noobnl or other thread. He said to run the run.bat I think it needs to be where you have sdk or adb?
works as advertised. hopefully we get a fix on that flickering issue. thanks!
noobnl said:
Thanks to JT1134 I was able to get the recovery compiled and gave that to Noobnl so he place that into his Hijack super script. SO, dont forget to thank JT1134 for that! Also thank codeworkx for his repo since that was used!
& DRockstar for his script
download http://www.sdx-downloads.com/devs/noobnl/galaxytabroot&cloxckworkmod.zip
1. debugging enabled
2.run.bat
usage: adb reboot recovery
based on my http://forum.xda-developers.com/showthread.php?t=846798
Click to expand...
Click to collapse
Ok I am confused, how do I install this please?
camblue said:
Ok I am confused, how do I install this please?
Click to expand...
Click to collapse
If you can't glean the process from the fairly straightforward instructions you quoted, then you might want to do some more reading. Just do as the message says.
Wow dude!!
camblue said:
Ok I am confused, how do I install this please?
Click to expand...
Click to collapse
the .bat file has to be in the same directory as adb/SDK.
Noob question: what can we do with this? Is this the same as rooting you phone?
knightnz said:
If you can't glean the process from the fairly straightforward instructions you quoted, then you might want to do some more reading. Just do as the message says.
Click to expand...
Click to collapse
Ok first off if you have no useful comments on how to install then DO NOT reply good lord i HATEEEEE those who obviously know what to do and refuse for whatever reason to illuminate the process but would rather tell me that to read LOL the instructions state to:
1. debugging enabled (ok i get this)
2.run.bat (what the f*ck does this mean????) should I connect via ADB and run .bat???? how do I do that,,,,,c'mon now)
Again if you can not aid me in explaining this process then just dont bother replying!
Thank you
camblue said:
Ok first off if you have no useful comments on how to install then DO NOT reply good lord i HATEEEEE those who obviously know what to do and refuse for whatever reason to illuminate the process but would rather tell me that to read LOL the instructions state to:
1. debugging enabled (ok i get this)
2.run.bat (what the f*ck does this mean????) should I connect via ADB and run .bat???? how do I do that,,,,,c'mon now)
Again if you can not aid me in explaining this process then just dont bother replying!
Thank you
Click to expand...
Click to collapse
If you don't know how to run a batch file in Windows, then you might want to consider switching to a Mac
Noobnl has packaged this into a one-click method... you just extract the folder into your /android-sdk-windows/tools folder and double click run.bat while your phone is connected to USB with USB debugging enabled.
If you still can't figure it out, then you should just give up pal
infamousjax said:
If you don't know how to run a batch file in Windows, then you might want to consider switching to a Mac
Noobnl has packaged this into a one-click method... you just extract the folder into your /android-sdk-windows/tools folder and double click run.bat while your phone is connected to USB with USB debugging enabled.
If you still can't figure it out, then you should just give up pal
Click to expand...
Click to collapse
Can some post a clean nandroid backup?
Thank you for your efforts!
I am a noob in flashing or compiling custom roms though (locked bootloader on my only other android device, the Motorola Milestone).
I have read that this allows us to inject a nandroid backup into the rom, but would like to know more. What are the benefits of this recovery? What can it be used for? Can i for example flash a stock android build onto my Tab?
Thanks in advance for some helpful, non flamer answers...

[Guide] Android Cooking Guide for HD2 [Guide]

heartsurfer008 said:
Well I am desparetly trying to cook a NAND build for my HD2 but there is pretty much less info available for me [a big NOOB in cooking] to try out my luck at cooking..!!!
So I'll appreciate if someone would put some light on it..!!!
PS: - I would appreciate if somebody can provide a detailed info..!!!
Click to expand...
Click to collapse
Finally the tutorial
Make your own Android Build for the HD2 by domineus ​I have always lived by these words- if you give a man a fish, he can eat for a day; but if you teach a man to fish you can eat for a lifetime. Android on the HD2 has always been an interesting thing for me and I know a lot of people that want to create their own builds, but have no idea how. If you ask a build creator or maybe someone in the htc-linux-chat how to get started, there may not be an answer. In fact, some of the perplexing behavior has left me puzzled in several ways - as if how to get an android build is a vaulted secret of knowledge like the holy grail. To be honest, it's not. It's a bit of hard work, a few nods in the right direction, and ultimately it's a community involved project. Just like miui development is a community project spanning actual continents to get this thing on our device every single week! It has led to a lot of questions, in my inbox, of how to begin. For a long time, the answer to the question was not answered until Cass helped me out. I want to do the same and contribute how to get a build of miui (or any android build) to the HTC HD2.
Things you will need
In order to properly start android development, it would be a good idea to make sure you have the following (a lot of it is no duh when you think about it)
A computer running linux
I can't stress that enough. While there is a lot of things you can do in windows, you will need some sort of linux distro in order to get android properly running on your HD2. There are a lot of linux distros you can use; with many using ubuntu as it is the most user friendly. I use Fedora and I am quite happy with the results. It's simple and effective. It gets the job done. Get a distro that you feel can get the job done.
Android SDK - either windows or linux
Android SDK is something that can be freely accessed and downloaded from the following location:
http://developer.android.com/sdk/index.html
It is a developer environment, but probably the most important thing you can use here (for the time being) is logcat. Logcat provides you to visually see the libraries and files working together to get android to work as well as if you run into an issue, it is the first thing you should resort to. For instance, boot reloop? Take a look at your logcat and try again.
A kernel
There are quite a few kernels available for android previously and they are divided into evo kernel or nexus one kernel. Many builders have transitioned to an evo kernel for PPP and a few other nice details but it is totally up to you. I highly recommend hastarin's kernel. For most of the time, it works well. But as you have noted, on MIUI, it hasn't been working as fantastic on other builds.
Donor Files
This is a bit difficult to find because it appears that the files that work best are nexus one builds without CM6.1 modification. So far, only one chef has that and it is tytung's nexus one build. Regardless of whose files you're using (e.g. tytung or darkstone's system which is the preferred choice) you will need a well working android build. You will be pulling several files in order to port.
MIUI itself (well any build honestly just miui is a good example)
This is a given. However, if you download from miui.com you will probably have an untranslated rom with odex files. That's bad. And in Chinese! It would be a good idea to browse the English forum for a deodexed rom with appropriate english translation (apps and frameworks)
-If pulling files from windows, you will need this
system extractor
http://uranus.chrysocome.net/linux/explore2fs-old.htm
I use that if I download in windows. It's relatively straight forward and it allows you to pull the files you need from the system.ext2 you're using and copying them to folders necessary.
build.prop
This you will need. You can find one here:
http://www.multiupload.com/B59IU3S6XY
Patience
Probably the most important thing. One thing I have noticed is you need patience to make it through. Sometimes, your build works, sometimes it doesn't. And it is difficult to still keep going. But gotta pull it all in and keep trying...it does pay off.
Okay so you have your files, a nice linux distribution, your build you want to port (MIUI preferrably) and you're ready to go. Now it's time to begin the process!
Step One - The Setup
I usually grab my files in windows before transitioning to my linux distro to finish the process. If you using windows 7 and you are using explore2fs, you will definitely have to right click on the exe and make it compatible by selecting compatible with windows vista. The file should also need to be run by administrator. If you don't know how to do that you can google compatibility in windows 7.
First thing is first. Create a new folder, you can call it donor_files if you want because name is arbitrary. The most important thing is to just name it. Within that folder, create a new folder called system. Enter the system directory and create a new folder called etc. Within etc, select Once that is done, create a new folder within etc called firmware. Once completed, return back to the system folder, create the folder called lib. In the lib folder, create a new folder called hw. So your folder should look like this:
Folder Name
-system
--etc
---firmware
--lib
---hw
So far so good? Excellent. Now, if you're in windows you will need to do a few things. Extract the system.ext2 of your donor build and place it somewhere you will remember (like your desktop). Now open up explore2fs, select file, and open image file. Under files of type (drop down), select all files and navigate to your system.ext2 file. You should now see the ext loaded on the left side of the program's workspace. Located is a very small + that allows you to view all directories in your ext2 file. Click that.
You will see several system folders on the left and files on the root. Since you haven't selected a specific folder, in the right hand view, you should see the file build.prop. If you did select a folder (like app) you will see some files. And that's okay too. Get a feel of the program.
Now you will do a test file pull. On the left hand side, select the folder etc. On the right window, you will see several files. We want AudioBTID.csv. Once you see the file, right click on AudioBTID.csv and select export file. Navigate to the donor file folder (or whatever you named it) and place the file in system/etc of that folder. Congratulations you just pulled your first file! But you will need a lot more files. Within the same directory, pull gps.conf, hosts, media_profiles.xml and the ppp folder. Now, navigate to firmware and pull the following files:
BCM4329B1_002.002.023.0360.0362.hcd default_france.acdb htcleo.acdb
BCM4329B1_002.002.023.0436.0439.hcd default_nel.acdb yamato_pfp.fw
bcm4329.hcd fw_bcm4329_apsta.bin yamato_pm4.fw
default.acdb fw_bcm4329.bin
Ideally you should not be able to find htcleo.acdb. You can find it here
http://gitorious.org/xdandroid_leo/q...eo/htcleo.acdb
Now in explore2fs, go to the lib directory and pull these files and place them in your lib directory:
libcamera.so
libcamera_client.so
libcameraservice.so
libhtc_ril_wrapper.so
libmm-omxcore.so
liboemcamera.so
libomx_aacdec_sharedlibrary.so
libomx_amrdec_sharedlibrary.so
libomx_amrenc_sharedlibrary.so
libomx_avcdec_sharedlibrary.so
libomx_m4vdec_sharedlibrary.so
libomx_mp3dec_sharedlibrary.so
libomx_sharedlibrary.so
libomx_wmadec_sharedlibrary.so
libomx_wmvdec_sharedlibrary.so
libOmxCore.so
libOmxVdec.so
libOmxVidEnc.so
libqcomm_omx.so
libstagefright_omx.so
Once those files are pulled, navigate to the hw folder of the system and pull the following files:
sensors.htcleo.so
lights.htcleo.so
Once those files are pulled, you can save your donor files to a flash drive and then boot into your linux distro. Login to superuser in terminal. For fedora, the proper method involves typing in su --login and entering your password you set up. Minimize your terminal window.
Extract the miui (or any other build) to your desktop (the focus is the system folder). Ensure the rom is deodexed and in your own language (if its miui, you will have to apply the proper language translations). Now copy the files you pulled from your donor build and apply it to the appropriate folders (usually a copy and a paste-literally). In this instance there will be duplicate files, overwrite them. That's the point! Do not forget the build.prop file I linked to earlier. You should add that to system folder.
So the files are copied, the next step is to restore the minimized terminal window (the one that is logged in as root). cd to where your system is located (not to the system folder itself). Now you will have to enter the following commands in terminal
chmod -R 777 system/etc
chmod 755 system/bin/*
chmod 755 system/xbin/*
rm system/etc/firmware/default*acdb (if you have sound in call issues)
touch system/etc/ppp/active (If you have latest wrapper and need ppp)
chown root:2000 system/bin/pppd
chmod 4755 system/bin/pppd
chown root:root system/xbin/su
chmod 4755 system/xbin/su
chown root:root system/xbin/hci*
chmod 4755 system/xbin/hci*
dd if=/dev/zero of=system.ext2 bs=1048576 count=256
mke2fs -F system.ext2
sudo mount -o loop system.ext2 /mnt2
cp -rp system/* /mnt2
sudo umount /mnt2
A few words on this that I must bold. the /mnt2 directory may not exist. If not, try mnt, that usually works
Once this is done, you will have a nice system.ext2. The only thing you'd need now is a rootfs, a kernel, clrcad.exe and a startup.txt file. Once that is done, you can test your build out.
Any questions
Special thanks to Cass and the htc-linux-chat for the few pointers they gave me.
The guide is by "domineus - http://www.miui-dev.com/" & I take no credit what so ever​
Thanks to "white-energy" for giving us the link..!!!
Hope to have many more Chief's for our HD2, so that we [especially me] can satisfy our hunger to try different builds/ROM's..!!!
Happy Cooking..!!!​
PLEASE PRESS THANKS IF YOU FOUND THIS THREAD USEFUL..!!!​​
+ 1... nobody wants to share information?
I don't know if this help but you can try
http://forum.xda-developers.com/showthread.php?t=897940
These kind of thread pop up once in awhile, but it's going no where, I've never seen well known chef show up in this kind of thread.
knowledge is power, maybe they dont want to share the power
Can anybody out there give us a step by step guide for cooking a NAND ROM for HD2..???
http://www.miui-dev.com/forums/showthread.php?481-Howto-Make-your-own-Android-Build-for-the-HD2
Instead of making a ext image, you should make a yaffs image.. so it can work on Nand
white-energy said:
http://www.miui-dev.com/forums/showthread.php?481-Howto-Make-your-own-Android-Build-for-the-HD2
Instead of making a ext image, you should make a yaffs image.. so it can work on Nand
Click to expand...
Click to collapse
Thank you, please check post 1..!!!
I've been looking for something like this. I want to create my own build for the recovery flasher. I guess the only thing needed would be how to convert from regular nand to recovery.
Thanks bro.
velayo said:
I've been looking for something like this. I want to create my own build for the recovery flasher. I guess the only thing needed would be how to convert from regular nand to recovery.
Thanks bro.
Click to expand...
Click to collapse
I was lookin for the same & credit goes to domineus & white-energy
& "white-energy" comes up with a NAND ROM..!!!
Congrats..!!!
white-energy said:
http://www.miui-dev.com/forums/showthread.php?481-Howto-Make-your-own-Android-Build-for-the-HD2
Instead of making a ext image, you should make a yaffs image.. so it can work on Nand
Click to expand...
Click to collapse
Are you sure its the only difference? Are the nand drivers stored only in the bootimg/initrd and not somewhere in the system.img?
yes or no will do for me thx
Is there a way to edit system.bin files, that comes with the NAND builds. I suppose that is where the ROM is. I want to unpack, edit the included apps and repack. How it is done? How the bin file is done. Google does not give any satisfiable links, did a quick search, though...
i am confused
Which explore 2fs do I download? There are 3 different ones one for binary one for code and optional update source code. I am a noob and tired of not having roms I am happy with. I have windows 7 and xp. I realize this will take time and I am good with it everything thats worth anything takes time.
deckoff said:
Is there a way to edit system.bin files, that comes with the NAND builds. I suppose that is where the ROM is. I want to unpack, edit the included apps and repack. How it is done? How the bin file is done. Google does not give any satisfiable links, did a quick search, though...
Click to expand...
Click to collapse
I think you mean system.img not system.bin
You can extract them with the unyaffs.exe or with the unyaffs command under linux. I have written a guide with attatched utilities here
Additionally birksoffsjunk (seasoned WM guru & chef of ChuckyDroid, ChuckyROM, & Dexter) has made a batch program to make this process easier. It's a work in progress & somethings are still buggy so follow the thread
Between the utility birkoffsjunk made & the tutorial I wrote you should be able to successfully edit & run your own build. Hope this helps.
deckoff said:
Is there a way to edit system.bin files, that comes with the NAND builds. I suppose that is where the ROM is. I want to unpack, edit the included apps and repack. How it is done? How the bin file is done. Google does not give any satisfiable links, did a quick search, though...
Click to expand...
Click to collapse
I think you mean system.img not system.bin
You can extract them with the unyaffs.exe or with the unyaffs command under linux. I have written a guide with attatched utilities here
Additionally birksoffsjunk (seasoned WM guru & chef of ChuckyDroid, ChuckyROM, & Dexter) has made a batch program to make this process easier. It's a work in progress & somethings are still buggy so follow the thread
Between the utility birkoffsjunk made & the tutorial I wrote you should be able to successfully edit & run your own build. Hope this helps.
anyone know how to edit or anything about initrd.gz?
hnamanh said:
anyone know how to edit or anything about initrd.gz?
Click to expand...
Click to collapse
It's an archive that can be decompressed and edited thru linux.
White-Energy use system.bin in his rom
Regarding initr and zimage, there is a guide that you can point me on ?
Thank you
KillaHurtz said:
I think you mean system.img not system.bin
You can extract them with the unyaffs.exe or with the unyaffs command under linux. I have written a guide with attatched utilities here
Additionally birksoffsjunk (seasoned WM guru & chef of ChuckyDroid, ChuckyROM, & Dexter) has made a batch program to make this process easier. It's a work in progress & somethings are still buggy so follow the thread
Between the utility birkoffsjunk made & the tutorial I wrote you should be able to successfully edit & run your own build. Hope this helps.
Click to expand...
Click to collapse
I have only green HTC
Hello
I would like to use Android on my HD2. I was searching and testing many ROMS but I didn´t find any rom which is usable for me. I would like to have a ROM that is without Sense, has Multilanguage support and is on Android 2.2 version.
So I decided that I would make my own.
0) I was reading
HTML:
http://forum.xda-developers.com/showpost.php?p=10291851&postcount=1
and made this procedure.
1)downloaded some ROM from here
2)unpacked this rom in linux with :
Code:
unyaffs system.img
then I got this directories:
Code:
app bin build.prop etc fonts framework lib media usr xbin
3)I downloaded update-cm-6.1.1-N1-signed.zip from CyanogenMod Forum > Downloads > Stable Mod > Nexus One and unpacked. I got : META-INF system boot.img.
4)I copied everything what was described step 0 from directories from step 2 to directory system from step 3
5)I downloaded and copied build.prop from step 0 to system
6) I updated permition like it is described in step 0
7) I created system.img with command : mkyaffs2image . ../system.img
Then I copied this system.img from linux to my windows and put this file in directory in which was different NAND rom. (replaced system.img). After that I flashed my phone and it did not work. Screen was frozen after booting and only green HTC was on display.
Can somebody please help me and give me some advice or some small howto. Does anybody know what can be wrong?
Thank you
Michal Fichtner
I appreciate the guide but damn that is hard to read. It really needs some sort of structure to it, titling proper paragraphs etc.
Hi,
it is possible to combi the dropdown energy widget froom miui and the gingerbread lockscreen into Desire HD Build?
Thats was awesome !
Sorry for my bad english

CRT Screen Off Mod

Here is an interesting article that will help you if you want CRT screen Off animation like in Nexus S:
http://www.freeyourandroid.com/guide/enable-crt-animation
Worked with no problems on my SGC with Rogers ROM.
I actually used NinjaMorph to package the modified resources.arsc into framework-res.apk, but I assume the original method will work too.
Safe to flash
this?
Aquethys said:
Safe to flash
this?
Click to expand...
Click to collapse
Probably no. Most likely you will end up with phone freezing on the Samsung logo at boot. framework-res.apk files are not interchangeable between models, maybe not even between firmware versions for the same phone.
Can you post a step by step guide then? I can't really understand anything here
The step-by-step instructions from the link in the first post are pretty much what i did. Read the comment by ravenstark - if you mount the filesystem with root explorer there will be no need to execute the commands in red in section 8.
The instructions from the link in your post cover steps 3-7. You still have to download the file to your PC (1), decompile it (2) and upload it back to the phone once you are done with it (8).
For the first step which terminal do you use??
(Free Your Android guide)
adb. If you don't have you can download it from here. It is part of the SDK and probably the most essential tool.
The command is exactly as written there
Aquethys said:
For the first step which terminal do you use??
(Free Your Android guide)
Click to expand...
Click to collapse
What do you mean? If you're using a Windows PC, then just open up a cmd prompt. You should read the guides at the beginning of that page so you know how to setup adb and the apk tool.
The big picture is this. Connect your pc to computer, pull file from phone to PC using adb, modify file on PC, push file back to phone using adb.
For what it's worth, here's a thread I wrote quite a long time ago, some is not applicable for the Glide, but most of it still applies. If you're going to be mucking around in your phone it's best to know how to do a few things first. Read Before Flashing.
When I try and open SDK or AVD (what's the difference :| ) then I just get a quick terminal screen that closes.
It would be appreciated if someone could just create a flashable CWM version >_<
I hate my inexperience @ this. It keeps saying this isn't "adb" isn't recognized, but I've downloaded it! How can I check?!
Aquethys said:
I hate my inexperience @ this. It keeps saying this isn't "adb" isn't recognized, but I've downloaded it! How can I check?!
Click to expand...
Click to collapse
Ok, so what have you done so far?
What should be done. Assuming you're using Windows, install the Android SDK. Once installed, launch the SDK Manager. Then from the list of installable options, choose the Platform Tools and I always like to get the drivers. Once done, you will have this path, CrogramFiles(x86)\Android\android-sdk\platform-tools, now you could add this path to your variables in Windows, which would be easiest, or copy the Platform-tools folder to C:. Then plug in your phone via USB to your computer.
Now, if you added the Path to your variables, just go Start>Run>cmd, and at the cmd prompt type adb devices. If you see a device you're good.
If you copied the Platform-tools folder over, then Start>Run>cmd, and in the cmd prompt type,
C:
then
cd platform-tools
then
adb devices
Beyond that, can't really help, never use apk tool. Good luck.
Aquethys said:
It would be appreciated if someone could just create a flashable CWM version >_<
Click to expand...
Click to collapse
Attached to this post is a CWM update with CRT Screen OFF and battery icon with percent for ROGERS ROM. I'm not sure this will work on AT&T ROM.
Make a backup before applying this update so you can restore if you end up stuck on SAMSUNG logo on boot.
Apologies to the author of the battery mod - I couldn't find his post to link to here...
Aquethys said:
I hate my inexperience @ this. It keeps saying this isn't "adb" isn't recognized, but I've downloaded it! How can I check?!
Click to expand...
Click to collapse
Hopefully the file tcfx44 posted works for you. Either way, I highly suggest you learn how to use adb and some other tools if you plan on flashing your phone in the future. It could prove useful some day.
Will this apply over OsiMood? I really am not sure if I am using the Rogers, but apparently I am because in XDA App it says I927-R and same with a benchmark.
Doesn't work for OsI mood 2.1.30 or whatever version was released today. I don't want to give up the amazing UI and stuff of OSi. I'm working fine though, so doesn't look like the install failed or bricked. Any revisions?
Aquethys said:
Doesn't work for OsI mood 2.1.30 or whatever version was released today. I don't want to give up the amazing UI and stuff of OSi. I'm working fine though, so doesn't look like the install failed or bricked. Any revisions?
Click to expand...
Click to collapse
I changed a bit the CWM mod. Hopefully this one will work. Make a backup of your current ROM - I'm not sure if this mod is compatible with OsiMood.
tcfx44 said:
I changed a bit the CWM mod. Hopefully this one will work. Make a backup of your current ROM - I'm not sure if this mod is compatible with OsiMood.
Click to expand...
Click to collapse
CRT Screen Mod -- Works with Rom manager..
Addition
Default Battery Indicator Changed.. Shows Percentage in steps of 5%..
Anyone having problems powering off and crashing GO Launcher? (then run through media scanner, etc..)
Could you remove the battery mod? I don't like it compared to OSiMood battery >_>
Finally, sorry for demanding so much, could you also put CRT on and ICS animations here?
Sorry!!!!!
Having serious problems turning off. This then affects my underclock.

[HELP] Can anyone help me recompile this boot.img?

Hi all,
I've been trying to edit a stock boot.img's ramdisk so that I can get proper rw access in USB debugging.
I've successfully
1. unpacked the img.
2. edited the default.prop file to ro.secure=0 and all other variables to 1
3. repacked the ramdisk
But I still can't repack the ramdisk and kernel into the new boot.img!
I've tried using the android kitchen, repack-bootimg.pl and mkbootimg, both in cygwin and a virtual machine running Ubuntu 12.04.
everytime mkbootimg gives an error, either "permission denied" or "no such file or directory"
I'm gonna attach the kernel gz and the edited and compiled ramdisk gz, as well as the boot.img (just in case).
Could someone please repack them into a new boot.img for me?
Many thanks!HelpingEhsan.rar
Hi Ehsan,
Here is a recompiled boot.img. and an analysis of your boot.img. I hope this works for you.
OMG
Wow! I was looking through my old posts and found your epic reply and documented study! I did eventually get it to work back then, but reading this, a year later, after having earned my salt in Android tinkering, have never read something so intriguing as the report you made. I wish I carried the weight of multiple accounts because one "thanks" isn't sufficient to express how grateful I am and how glad this has made me! You are a star!
k02a said:
Hi Ehsan,
Here is a recompiled boot.img. and an analysis of your boot.img. I hope this works for you.
Click to expand...
Click to collapse
Thanks for your encouraging words, I hope it helped you a little bit.

Categories

Resources