yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] misterfamilyguy:
c800

Here's what i've gathered from comparing partition and mounts. I've been reading a bit on how to compile the source, thinking maybe I can then get more info as to which partition the recovery is in.

http://pastebin.com/YAG6DYDM

major minor #blocks name

179 0 1765376 mmcblk0

179 1 1024 mmcblk0p1

179 2 512 mmcblk0p2

179 3 2048 mmcblk0p3

179 4 1 mmcblk0p4

179 5 4096 mmcblk0p5

179 6 4096 mmcblk0p6

179 7 8192 mmcblk0p7

179 8 4096 mmcblk0p8

179 9 8192 mmcblk0p9

179 10 8192 mmcblk0p10

179 11 28672 mmcblk0p11

179 12 28672 mmcblk0p12

179 13 4096 mmcblk0p13

179 14 4096 mmcblk0p14

179 15 462848 mmcblk0p15 =system

179 16 1048576 mmcblk0p16 =data

179 17 8192 mmcblk0p17

179 18 102400 mmcblk0p18 =cache

179 19 8192 mmcblk0p19

179 20 8192 mmcblk0p20 =lgdrm

179 21 8192 mmcblk0p21 =multimedia

179 22 4096 mmcblk0p22

179 23 4096 mmcblk0p23

179 24 4096 mmcblk0p24

179 32 15663104 mmcblk1

179 33 15662080 mmcblk1p1
[Miscellaneous Android Development] nattyd:
Help i messed up

I used superoneclick and i think i did something wrong. My phone has no root now and when i run superoneclick again it says it has been rooted but when it reboots it has no root and when i login with my google account and reboot all that is wiped out. what do i need to do. Thanks for any help anyone can provide.
[Miscellaneous Android Development] edgie13:
I'm still trying. I've been able to compile it, but I just get a boot loop after flashing it.
[Miscellaneous Android Development] Empero6:
What I've learned so far about android is that if you can get your phone to show it's logo, its not bricked and can access the restore menu
[Miscellaneous Android Development] nattyd:
Great. How would I access the restore menu
[Miscellaneous Android Development] edgie13:
I use openSUSE, but it look like Ubuntu is what most of the developers use. I'm going to do an Ubuntu install and try and compile it from there.
[Miscellaneous Android Development] 78triton:
Did you search this thread its posted a few pages back but here you go with the phone off plug in the usb then wait for the charging icon to appear then adb reboot recovery if you cant get it then let me know i can use team viewer to do it for you
[Miscellaneous Android Development] surfsem:
now that weve got a cm7 with working audio, im sticking with it. however, i always relied on tmobiles contact sync thing to back up my stuff. does anyone know how that service works, and how to sync it with my phone on cm7?
[Miscellaneous Android Development] stevecaboose:
Im not sure what app (if it is an app) syncs with your tmobile contacts. But all your contacts should be saved on your online tmobile account. There is no way to directly export them from your account but at least you can see them. I would never recommend to anyone (especially someone who is planning on going to cm) to ever use the tmobile backup. Stay with the google backup. Its more professional and easy to use. If you need help getting your phone synced with your google account, I have a link to the download. You just flash it on top of cm7. I have personally used this and it works just fine.

https://www.wuala.com/stevecaboose/Temp/gapps-gb-20110828-signed.zip/?key=Ab0QmESRTnbb
[Miscellaneous Android Development] vxbinaca:
familyguy: mmcblk0p7 is the recovery on the e937 IIRC, might want to take a look there.
[Miscellaneous Android Development] surfsem:
I've got Google Apps on my phone, and was able to get some contacts from Facebook... But i'm still missing like 300. My brother has an unflashed phone, and I think the service is simply called backup. I have it backed up on titanium, but it hasn't been able to successfully restore it. I think it's because it's a system app? Anyways, i'm thinking of restoring back to stock, backing up the tmobile contacts with Google, then flashing back. That seems way too much of a hassle though...
[Miscellaneous Android Development] edgie13:
300 contacts? You know a lot of people. :D

There are a few ways to restore system apps. I think earlier in this thread there is a tutorial on that, if not you can always google it.

Are you trying to restore your contacts while in CM7 or the LG stock rom?
[Miscellaneous Android Development] stevecaboose:
I dont think flashing to stock is a hassle at all. Flashing there and back to cm7 would take like 30min. And you can do other things while its recovering. Thats what I would do
[Miscellaneous Android Development] yk1000:
??? surfsem, why don't you just export all your contacts to the sdcard (import from sim first if you have some there)? They'll get stored to a .vcf file which you can import back into your system once u boot up into CM7.
[Miscellaneous Android Development] edgie13:
Great idea!
[Miscellaneous Android Development] bunu:
I did some searching and used this command in terminal emulator on the phone (with SU permissions of course)

I think this is the boot partition.

dd if=/dev/block/mmcblk0p1 of=/sdcard/boot.img

I just need to know which partitions hold what since this is my first time ever doing this.

Maybe message me your guide? I can try to do what I can.

http://www.mediafire.com/?um0dml4yqnq1to4
[Miscellaneous Android Development] bunu:
Did you do this method?
[Miscellaneous Android Development] surfsem:
I was about to do that, but then I decided to cheat. I put my sim card and sd in my brother's virgin e739, let the tmo sync do its thing, then exported it to my sd. Swapped everything back and boom, good to go :D
[Miscellaneous Android Development] stevecaboose:
Great to hear that.
[Miscellaneous Android Development] misterfamilyguy:
c800 users

So, i'm using several sources to try to mash everything together.

http://www.koushikdutta.com/2010/10/porting-clockwork-recovery-to-new.html

is main

http://android-dls.com/wiki/index.p...cking.2C_Editing.2C_and_Re-Packing_the_images

this holds a key

http://xdaforums.com/showthread.php?t=1101283

this has other links/sources

I'm currently stuck with, on koush's directions, the point where he want you to run

build/tools/device/mkvendor.sh device_manufacturer_name device_name /your/path/to/the/boot.img

it shows no such file for mkvendor.sh,,,I understand that is because I need to build from source. So, I think will try that this weekend. I have the lgec800 source, but don't know how to compile that yet.

As far as figuring out which partitions holds the boot.img and the recovery.img, I have YET to get the part to work where you can unpack and edit a .img file. I've only worked on it about 2 hours though.

I did manage to

adb shell

into phone and run dd on every partition that may be boot or recovery, so I have those ready.
[Miscellaneous Android Development] Zanitos:
Keep up the good work would love to have a working recovery for this phone lol
[Miscellaneous Android Development] misterfamilyguy:
C800

Anyone else working on this c800 recovery port with me, check this thread out I found:

http://xdaforums.com/showthread.php?t=986059

I read most of it. Basically detailes those guys porting cwm to the dell streak7. Made me understand a few things better and provided insight into what to expect soon. I made a little progress this morning in that I discovered I had not correctly set up cyanogen mod repo's and so was missing some build files. I got the next two days off and hopefully will make more headway.
[Miscellaneous Android Development] techgimp:
C800

Thank you for working on development for the C800, i think this phone is worth it. I'm trying to learn more about android and will assist in any way i can.
[Miscellaneous Android Development] sharik21:
Can some one put up some pictures of the new rom or a video I have look everywhere for it but still can not find it thank you in advance if you can

---------- Post added at 11:16 PM ---------- Previous post was at 11:10 PM ----------

Also I almost forgot but can I run the kernal with out the rom Im noob at Android just switch from iPhone thank you
[Miscellaneous Android Development] :
What? Just look up CM7 on youtube. Easy as that.

No idea about kernel. Yes?
[Miscellaneous Android Development] sharik21:
Oh my bad I didn't know its the same in all phones I thought its different phone to phone
[Miscellaneous Android Development] misterfamilyguy:
c800 users

All with c800,

By extracting via

dd if=dev/block/mmcblk0p# of=/sdcard/mmcblk0p#.img

and comparing to info in

http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images

I have determined that our mmcblk0p7 is the boot.img and that mmcblk0p17 is the recovery. I determined this by running split_bootimg.pl on every partition dump that was under 10 mb. The ones that actually ran were 7 and 17. 17 had the '/res/' directory as described in that link and when I went in there there was pictures of the recovery android guy with the arrow.

So, for future reference I am including the files I have determined are the stock versions of boot.img and recovery.img. We will need these for debugging the recovery port of cmw after I port it.'

BUH

now getting

build/tools/device/mkvendor.sh: line 81: /sedcommand: Permission denied
sed: couldn't open file /sedcommand: No such file or directory
sed: -e expression #1, char 15: unknown option to `s'
sed: sed: -e expression #1, char 15: unknown option to `s'
couldn't open file /sedcommand: No such file or directory
sed: couldn't open file /sedcommand: No such file or directory
sed: -e expression #1, char 15: unknown option to `s'
sed: -e expression #1, char 15: unknown option to `s'
sed: couldn't open file /sedcommand: No such file or directory
sed: -e expression #1, char 15: unknown option to `s'
sed: couldn't open file /sedcommand: No such file or directory
sed: -e expression #1, char 15: unknown option to `s'
sed: couldn't open file /sedcommand: No such file or directory
mv: cannot move `/home/justin/android/device/lg_c800_lgec800//home/justin/android/boot.img/device.mk' to `/home/justin/android/device/lg_c800_lgec800//home/justin/android/boot.img/device_/home/justin/android/boot.img.mk': No such file or directory
Done!
Use the following command to set up your build environment:
lunch full_/home/justin/android/boot.img-eng
And use the follwowing command to build a recovery:
. build/tools/device/makerecoveries.sh full_/home/justin/android/boot.img-eng
justin@ubuntu:~/android$ build/tools/device/mkvendor.sh lg_c800_lgec800 /home/android/boot.img

when I try to run lunch... my brain hurts now. Otherwise I get

blank boardconfig.mk and recovery.fstab when running

build/tools/device/mkvendor.sh device_manufacturer_name device_name /your/path/to/the/boot.img

or the error about unpackbootimg.............GRRRRRR
[Miscellaneous Android Development] kntdookoo:
Let's at least try and get what is needed for a custom recovery:

-base kernel address

-boot command line

-page size

-partition layout

With this we can get a working RZR recovery as posted back a few. Who knows how to get this stuff :-) ? I think I can manage partition layout but would need input on rest. Anyone?
[Miscellaneous Android Development] Tyler0309:
IDK either i will google and see if i can find anything out and post if i do
[Miscellaneous Android Development] :
Well, for anyone wondering. LG does have the Kernel, Android, NDK open source and available for download from: http://www.lg.com/global/support/opensource/opensource.jsp I was able to download the source for the myTouch (LGE739) This is actually very good news. Hopefully we can use this to actually get somewhere :) Any idea how you would be flashing this once you compile it? AOSP instructions talk about fastbooting into the recovery but I haven't found a way to do that yet. Do we have to use LG's updating software?
[Miscellaneous Android Development] blackdragn:
Titanium Pro backup for mytouch q (c800)

Does anyone have a titanium pro backup of the mytouch q (c800) or can make a copy for me? I was removing some bloatware and I believe I accidentally removed a few vital ones and now when I reboot it keeps reinstalling android over and over. I stupidly forgot to make a backup :( Either that or I'm looking for the files that were originally in the system folder (which is where the bloatware files were originally located). Thanks for your help, you guys.
[Miscellaneous Android Development] mindstate:
ive got a system/app backup ..it might be missing a 1 or 2 files though. But what its missing is not needed. Let me know if u need it.

---------- Post added at 04:23 AM ---------- Previous post was at 04:13 AM ----------

no idea how to get any of this stuff, but im pretty good on my toes and learning new stuff...so ill look into it... Seems like its gonna be us who push this device out there. This RZR recovery is a great idea.

Though i do like the phone Stock ROM i still would love to see MIUI on this phone. :)

edit: I figured out the base kernel address is 0x00200000 .. one piece of the pie solved. Also i think i have the partition layout as well. Not 100% . But we'll know soon. I have posted the info that i found in the original thread http://xdaforums.com/showthread.php?t=1309454&page=16
[Miscellaneous Android Development] pyraxiate:
Add me to the list of followers :-) My wife wanted this one for some reason. Looking forward to our own development section :-)
[Miscellaneous Android Development] brad560:
Question?? this is my first T-Mo experience, does t mobile release RUU's or any other system images? as we tinker with our my touch's it would be nice for a safety net to go back to stock.

also has anyone else notices when you hit system updates (update now) it throws up a error message "connection failed caused by authentication error"

i was just curious to see if there were any updates after i bough the phone lol
[Miscellaneous Android Development] :
I don't think T-Mobile has ever put out the system images, but you can download the source from LG and compile it yourself, it is stock, I don't know if it includes the T-Mobile bloatware or not. I asked a T-Mobile rep what it meant when it said "Connection failed caused by authentication error", they said its because there is no update currently available, it will throw that error. When there is a software update available, they will notify you, either by SMS or software update notification.

---------- Post added at 03:22 PM ---------- Previous post was at 03:19 PM ----------

How did you find the partition layout and cmdline?

Partition layout can be found using this command right?

adb shell cat /proc/mtd
[Miscellaneous Android Development] mindstate:
I used a terminal on the phone cat /proc/cmdline for cmdline and cat /proc/partitions for the partition layout.
[Miscellaneous Android Development] blackdragn:
Can you please send me the copy of your backup? :)
[Miscellaneous Android Development] mrsteel74:
I know this isn't the direction this particular thread is going but can someone suggest what programs to remove that will help make the phone perform better? I can't seem to get good battery life off of this phone its being charged once a day and sometimes twice. This phone does see heavy text use and online use like facebook and games. I have installed SetCPU I have it set to performance full speed and when the screen is off the speed is set to 245mhz. I've disabled the Genius button and Dragon Dictation but this thing still drains like mad.
[Miscellaneous Android Development] blackdragn:
From what I've seen so far, the best battery saver you can do for your phone is to turn off "background data" under the "account and sync" section. However, it might disable automatic syncing and what not, but with that setting off, I have about 80% battery life remaining by the end of the day .
[Miscellaneous Android Development] mindstate:
i have EXCELLENT battery life with the Mytouch Q. I do have Auto sync turned off as well. So maybe this is what helps me. But i charge my phone once every 23 hours or so. And thats with moderate internet use and heavy talk/texting.

http://www.mediafire.com/?o9k8d2ret7ovld6 <~ for blackdragn thats the system/app folder .
[Miscellaneous Android Development] Tyler0309:
Im not sure if anyone knows this or not i know i just found out lol we can take screenshots by holding the power button then pressing the home button right after. took a few tries to get the timing down hope that helps some1
[Miscellaneous Android Development] :
Thanks for the screenshotting tip, did not know that. Anyone know of a way to boot into the bootloader? Volume up + Power shows the LG logo and goes blank until you release it, I'm sure there are some other combinations out there, I'm trying some of the common ones right now.
[Miscellaneous Android Development] RC51Eric:
ive got a system/app backup ..it might be missing a 1 or 2 files though. But what its missing is not needed. Let me know if u need it.

Mindstate I sent you a PM.. I am in need of your system/app backup as well
[Miscellaneous Android Development] RC51Eric:
sorry for the question... I downloaded mindstates system/app restore now how do i get it to load those files? ie do i drop them into titanium backup folder or where?
[Miscellaneous Android Development] blackdragn:
First off, I would like to thank mindstate very much for the backup copy. For all those that grabbed a copy of his backup, please remember to thank him for taking the time to upload his backup set for us. I have been able to successfully fix my phone. For those who are trying to reinstall software that they have removed, I'm going to write a quick guide for you here.

1. Make sure you have root access. The instructions for rooting is the first post on the first page. Just a quick summary for those that might have missed it, root it by using superclick 2.2. However, before using superclick 2.2, you much run the following adb commands with the phone connected in usb development mode.

C:\adb> adb shell

$ echo 1 > /data/local/lge_adb.conf

$ exit

2. Secondly, download root explorer and check the mount rw mode box at the top.

3. All the bloatware software is located in the system/app section. Copy all the files that you need (or you are missing) from your sd card to the system/app folder (include the apk and the odex files).

4. EDIT: You can skip this step!!! After that, click each apk file that you installed to reinstall it. Please note it will say that install was not successful. (I'm not sure if this step is needed or not, but I just did it like this and it worked. Please let me know if you tested it and that we can skip this step so I can update this post).

5. Finally, long click each file that you copied into your system/app folder and click on permission. The only things that should be checked is the following : owner read, owner write, group read, other read.

6. Restart the phone and you hopefully should be golden.

If you have any problems, please post and I'll do my best to help you.

---------- Post added at 12:09 AM ---------- Previous post was at 12:05 AM ----------

The "background data" is probably the biggest battery drain I've ever seen. I've seen it improve battery life by at least double. So please note, it is a really huge battery saver. I don't even need to use "juice defender" or any of those crap battery saver programs. I just only turned off the "background data." This is valid for any android phone at all.

---------- Post added at 12:14 AM ---------- Previous post was at 12:09 AM ----------

And I'm making a list of those files that can be removed safely so far without affecting the stability of the phone.

bejeweled2

com.lookout

com.mobitv.client.tmobiletv

highlight

MallLite

News

slackerradio

telenav

tetris

tmobile_m4m

twitter

zinioreader

ziniosettingsprovider

As for the other bloatware programs, I'm planning to freeze it using titanium backup so that I don't run into the issue of my phone having reboot issues and whatnot.
[Miscellaneous Android Development] Tyler0309:
i noticed my phones battery life also succed after i rooted it. i just downloaded the battery calibration app from the market and recalibrated mine it has seemed to help out alot
[Miscellaneous Android Development] bunu:
My myTouch Q will be coming in today and I was wondering about the whole rooting process. Did the newest version of Super One Click Root fix the whole process or do I still have to do the adb thing before I attempt root.

Also finding out how to boot into bootloader will be great. We can find out if we have S-OFF or S-ON (I assume S-OFF since we can delete things in system/app freely). Usually, you can boot into bootloader by powering down and then turning it on via power and back arrow. Maybe use one of those reboot apps and tell it to reboot into bootloader.
[Miscellaneous Android Development] sharik21:
Can some one tell me about the kernal and If i can download on a stock rom
[Miscellaneous Android Development] edgie13:
...does not compute.
[Miscellaneous Android Development] sharik21:
Thank you
[Miscellaneous Android Development] alexriio:
Any roms yet?? n I get an error why backing up stock rom with clockwork recovery.something of recovery
[Miscellaneous Android Development] misterfamilyguy:
c800 users

FINALLY got past the stupid unpackbootimg error. I had to completely re-do my .bashrc paths from terminal. Annoying.

So, now we need to edit our recovery.fstab and BoardConfig.mk to match what is actually on our phones. I will post the outputs here so I can get some help on figuring it out. If you run

cat /proc/diskstats

cat /proc/partitions

cat /proc/mounts

df

I think we can get the info. Maybe even try

There is a lot of info on this post http://xdaforums.com/showthread.php?t=986059

This is the BoardConfig.mk that we need to customize:

USE_CAMERA_STUB := true

# inherit from the proprietary version
-include vendor/LG_lgec800/boot.img/BoardConfigVendor.mk

TARGET_NO_BOOTLOADER := true
TARGET_BOARD_PLATFORM := unknown
TARGET_CPU_ABI := armeabi
TARGET_BOOTLOADER_BOARD_NAME := boot.img

BOARD_KERNEL_CMDLINE := no_console_suspend
BOARD_KERNEL_BASE := 0x10000000
BOARD_KERNEL_PAGESIZE := 00000800

# fix this up by examining /proc/mtd on a running device
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x00380000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x00480000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x08c60000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_FLASH_BLOCK_SIZE := 131072

TARGET_PREBUILT_KERNEL := device/LG_lgec800/boot.img/kernel

#BOARD_HAS_NO_SELECT_BUTTON := true
# Use this flag if the board has a ext4 partition larger than 2gb
#BOARD_HAS_LARGE_FILESYSTEM := true

Here is the recovery.fstab we need to customize:

# mount point	fstype device	[device2]

/boot mtd boot
/cache yaffs2 cache
/data yaffs2 userdata
/misc mtd misc
/recovery mtd recovery
/sdcard vfat /dev/block/mmcblk0p1 /dev/block/mmcblk0
/system yaffs2 system
/sd-ext ext4 /dev/block/mmcblk0p2
[Miscellaneous Android Development] DarkLP:
is there any way to get T-mobile apps back?like my account,411 and visual voicemail?
[Miscellaneous Android Development] accordv618:
i think you can download Tmobile's My Account from the Market.

---------- Post added at 05:22 PM ---------- Previous post was at 05:18 PM ----------

Also, since the camera on the nightly rom is messed up, what camera/ video app are some of you guys using? I tried Camera Zoom EX, but front facing camera is messed up along with video recorder for both front and back. Im trying to look for front and back camera and video recorder. Not to big on effects, as long as the quality remains good for my photos and videos. I am using Lgcamera pro, works with rear camera and video recording, but has no option for front facing modes.
[Miscellaneous Android Development] stevecaboose:
Yes, if you read back a few pages, I made a working backup stock rom and we have gotten cm7 with sound to work. Just read back a bit