yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] MotoMudder77:
Here you go, I dont understand much of it, but I think I'm good. And this is after I installed a few apps on system.

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Home>cd C:\android-sdk-windows\tools

C:\android-sdk-windows\tools>adb devices
List of devices attached
HT845GZ51413 device

C:\android-sdk-windows\tools>adb shell df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 48824 0 48824 0% /dev
tmpfs 4096 0 4096 0% /sqlite_stmt_journals
tmpfs 48824 0 48824 0% /mnt/asec
/dev/block/mtdblock3 92160 85256 6904 93% /system
/dev/block/mtdblock5 91904 44060 47844 48% /data
/dev/block/mtdblock4 30720 1160 29560 4% /cache
/dev/block/vold/179:1
7335348 428312 6907036 6% /mnt/sdcard
/dev/block/vold/179:1
7335348 428312 6907036 6% /mnt/secure/asec
/dev/block/dm-0 3124 2036 1088 65% /mnt/asec/com.twidroid-1

/dev/block/dm-1 3124 2020 1104 65% /mnt/asec/com.swype.andr
oid.inputmethod-1
/dev/block/dm-2 4164 2160 2004 52% /mnt/asec/com.metago.ast
ro-1
/dev/block/dm-3 3124 1468 1656 47% /mnt/asec/com.facebook.k
atana-1
/dev/block/dm-4 2088 240 1848 11% /mnt/asec/com.bwx.bequic
k-1
/dev/block/dm-5 2088 428 1660 20% /mnt/asec/com.bw.picme.l
ocal-1
/dev/block/dm-6 2088 944 1144 45% /mnt/asec/com.aws.androi
d.elite-1
/dev/block/dm-7 3124 1636 1488 52% /mnt/asec/com.att.myWire
less-1
/dev/block/dm-8 2088 44 2044 2% /mnt/asec/com.angryredpl
anet.android.rings_extended-1
/dev/block/dm-9 2088 40 2048 2% /mnt/asec/com.android.wa
llpapersetandsave-1
/dev/block/dm-10 5200 3408 1792 66% /mnt/asec/brut.googlemap
s-1

C:\android-sdk-windows\tools>
[G1 Android Development] Firerat:
Sorry, I thought you couldn't get into recovery...

Oh well, I think I have fixed this 'unable to flash recovery' thing

just need to do some testing
[G1 Android Development] defconoi:
Latest NiGhtly

Here is the latest TeamDouche Nightly:

im about to test it now
[G1 Android Development] defconoi:
Hourly Builds

Anyone got ubuntu and a ton of processing power? We could push out hourly builds instead of nightly builds. Im stuck on a Pentium 4, with a dual/quad core we could build cyanogenmod from source in less than 15 min
[G1 Android Development] studjuice:
Defconoi your slowing down on us! ... :P we got that last night and i made a build off of it, everything works EXCEPT MAPS ('lil ****er)

i have ubuntu and a netbook so.......... not gonna be very fast :P but i have spare computers lying around and if i had outlets for them i could have a dedicated building comp. pentium 4 though like you
[G1 Android Development] ttabbal:
Any idea what's up with the init.d scripts not running? In init.rc I can see the call for run-parts, but it's not working right. Interestingly, 06BindCache does seem to run for me, if I patch with FireRat's boot patcher, but 05mountsd does NOT. Or it doesn't mount for whatever reason anyway. Nothing in logcat for "mountsd", which should be there if it's running. But I do get the bind mount for cache to /data.

On random reboots, I got good results enabling swap durring boot via adb. For a minute anyway, now they are back. A boot loop, without an error. Weird. Could have been a fluke that it worked at all once. Enabling swap does seem to quiet down the constant start/stop of processes though. They just run in the background and STFU. :)

Compcache doesn't work, not sure if it's supposed to. I only tried it because the option was there in the "CyanogenMod Settings".

Letting the first sync complete (the arrows disappear from the status bar) seems to stabilize market some. It's still rather crashy. It would be nice if Google would write the thing to be more fault-tolerant. When it decides to work, it's quite fast. :)

Downloading GMaps works fine, it finds my location and displays the map. Cool, GPS works. :)

Using SJ-cm6-test5.4. Going to try restoring apps via Titanium. May as well try some apps while I'm here.
[G1 Android Development] studjuice:
could you attach 06bindcache so i can add it? and turns out "busybox run-parts" doesn't work, but just "run-parts" works. so i'm thinking we just need to change that. if that works, maybe i just need to take out all the symlinks for busybox in the update script?

try the newest test 5.4.2 to see if it helps with the random reboots. (hope so).

i'm starting to think we need a little swap to help froyo out and keep apps loaded, but then it might lose its fastness. maybe 32mb swap?
[G1 Android Development] ttabbal:
I've got Ubuntu 9.10 on a Dual 3Ghz. I'd be willing to donate some CPU if you don't go too nuts. :)

My upload kind of sucks tho, 3Mbit/s. :)
[G1 Android Development] studjuice:
that's not a sucky speed lol. but we could at least use you to build some and then take out certain pieces that we need if we only need a piece. so you don't have to upload the entire thing.
[G1 Android Development] akivlin:
Thanks. A wipe was sufficient to get it booting again.

After it booted again I investigated further and found out how to disable it. So for others who enable JIT and need to disable it via adb the command is:

adb shell setprop persist.sys.jit-mode int:fast
[G1 Android Development] Jigga0o7:
Currently running 32mb swap on 5.4.2 and it still runs amazingly. The only issue I'm coming across is the FC on Market.

EDIT: GPS broken again in 5.4.2.
[G1 Android Development] ttabbal:
It's just the one from the FireRat patch. I'll attach it anyway. :)

I'll try the latest.

I'm running a 40MB partition. I have to manually start it, but if I could get /sd-ext to automount, my userinit would enable it. I tend to top out using about 25MB, I suspect the froyo task scheduler is kicking in much like the CM5 one does to keep swap from filling up and thrashing. Speed is still quite good, I don't notice much difference from swap. Overall, it's working quite well.

Let me know if you get run-parts working. I'll be happy to test out a new rom. Gotta love nandroid. :)
[G1 Android Development] defconoi:
Updated Post #1 with new build instructions:
[G1 Android Development] Firerat:
cache isn't actually used for anything in FroYo, unless ROM manager uses is to temp a recovery.img ( but I suspect it uesed sdcard, but not looked )

ref symlinks, nah you *need* them , else nothing busybox will work unless you prefix with busybox
[G1 Android Development] ttabbal:
heh... It just feels sucky when I'm at work. :)

I could set you up a user acct and let you try it out. No hackin' on or from my box! :D
[G1 Android Development] studjuice:
yeah man i'm removing the busybox symlinks (except for "busybox") and we shall see what happens. i'll let you test it

nvm it doesn't make sense why it's like that... it should just work
[G1 Android Development] studjuice:
okay, i kinda thought that. but the scripts are prefixed with busybox. so if we have the symlinks does prefixing with busybox make it not work?

the raw nightly build doesn't have symlinks, but it also doesn't have busybox

i just felt like removing symlinks is better than changing the scripts, since the scripts are kinda universal in all roms
[G1 Android Development] ttabbal:
IIRC, busybox should work either way. You could just try changing the script to call "run-parts" rather than "busybox run-parts". It shouldn't matter, but maybe...

Getting ready to install 5.4.2. I'll report back once it's running.
[G1 Android Development] studjuice:
exactly thats what i'm thinking. really, it does work, if you do it yourself, but it's not auto doing it. so could it be a permissions problem? user can do it but group/others cant? confusing when stuff is supposed to work but doesn't...
[G1 Android Development] defconoi:
build_cyanogenmod.sh

Here is an automatic build script that I have found and edited:

#!/bin/bash

target="cyanogen_dream_sapphire-eng"
current_dir=`pwd`

trap exit 1 SIGINT SIGTERM

function usage
{
echo
echo "./build_cyanogen.sh [ -b currentdir/'build_directory' ] [ -p Get Proprietary Files ] "
echo "[ -z Path/Name of stock update.zip ] [ -i Initialize Build Directory ] [ -s Sync with server ]"
echo
exit 1
}

function setup_build_dir
{
build_dir="$current_dir/$1"
if [[ ! -d $build_dir ]]; then
mkdir $build_dir
fi
}

function get_prop
{
if [[ ! -f $stock_zip ]]; then
usage
fi
cd $build_dir/
repo_installed=`ls -a | grep .repo`
if [[ -z $repo_installed ]]; then
init_repo
fi
rm -f $build_dir/dream_sapphire_update.zip
cp $stock_zip $build_dir/dream_sapphire_update.zip
cd $build_dir/device/htc/dream_sapphire/
./unzip-files.sh
cd $build_dir/
cd $build_dir/vendor/cyanogen/
./get-rommanager
./get-google-files
cd $build_dir/
}

function init_repo
{
cd $build_dir/
repo_installed=`ls -a | grep .repo`
if [[ -z $repo_installed ]]; then
echo "Initializing Repository"
repo init -u git://github.com/CyanogenMod/android.git -b froyo
else
echo "Repository already initialized, removing"
rm -rf ".repo"
echo "Initializing Repository"
repo init -u git://github.com/CyanogenMod/android.git -b froyo
fi
}

while getopts "hb:piz:so:" optionName; do
case "$optionName" in
h) usage;;
b) setup_build_dir "$OPTARG";;
i) init_repo_flag=1;;
p) get_prop_flag=1;;
z) stock_zip="$OPTARG";;
o) output_dir="$OPTARG";;
s) sync_server_flag=1;;
[?]) usage;;
esac
done

(( init_repo_flag )) && init_repo

if [[ ! -d $output_dir ]]; then
usage
fi
if [[ ! -d $build_dir ]]; then
usage
fi

cd $build_dir/
repo_installed=`ls -a | grep .repo`

if [[ -z $repo_installed ]]; then
init_repo
fi
repo sync
. $build_dir/build/envsetup.sh
lunch $target

(( get_prop_flag )) && get_prop

cd $build_dir/
export "CYANOGEN_WITH_GOOGLE=true"
make clobber
make installclean
make clean
make -j8 otapackage
$build_dir/vendor/cyanogen/tools/squisher)
output=`ls "$build_dir/out/target/product/dream_sapphire/" | grep "update.*zip$"`
date=`date +%m%d%Y-%H%M%S`
cp $build_dir/out/target/product/dream_sapphire/$output $output_dir/$output
if (( sync_server_flag )); then
rsync -av --progress $output_dir/ blah@blah.com:/home/blah/blah.com/android/cm6/
fi

Let me know how it works, I have not used it yet

Of course save it as build_cyanogenmod.sh and sh build_cyanogenmod.sh
[G1 Android Development] studjuice:
no way? that makes stuff super easier. (not like it was that hard) i think i'm going to have to do it just to see how long it takes on a netbook :P

oh btw defcon, could you remove the mods quote of my ancient post and just replace it with a link to my mediafire in your OP now that it seems we have the most active froyo dev thread :D
[G1 Android Development] defconoi:
sure will studjuice, thanks for sharing good work
[G1 Android Development] studjuice:
when i tried doing the script it didn't work here's the code. i initially tried doing ./ cause i was used to it then i saw your post said do sh before it and i tried that too

dale@dale-netbook:~/kitchen$ ./build_cyanogenmod.sh

./build_cyanogen.sh [ -b currentdir/'build_directory' ] [ -p Get Proprietary Files ]
[ -z Path/Name of stock update.zip ] [ -i Initialize Build Directory ] [ -s Sync with server ]

dale@dale-netbook:~/kitchen$ sh build_cyanogenmod.sh
trap: 6: SIGINT: bad trap
dale@dale-netbook:~/kitchen$
[G1 Android Development] Firerat:
it is good practise to prefix with busybox in a script to make sure you don't end up using a version earlier in the PATH env

e.g.

in CM5.0.8

try top and then busybox top , they are different ;)
[G1 Android Development] studjuice:
so do you have any ideas why "busybox run-parts" doesn't work but "run-parts" does? (was ran in adb shell)
[G1 Android Development] slvrarrow:
"yeah there is certainly a chance, it wouldn't be too hard at all. but why would you ever want STOCK?"

I just like the look of the google icons and theme it'd be great if you could get a stock one up and running on your fully working test, i've never run a theme on any rom ive had!

I see the new test is out, is maps still plaguing you on the new nightly?
[G1 Android Development] studjuice:
are you serious... wtf is up with maps [EDIT: i think it's cause i accidentally built the nightly build and named it the defcon build...] just to make sure, i'm going to redo it. check the uploads in 10 mins

hmmm there is no init.rc
[G1 Android Development] ttabbal:
Just for fun, I've started a repo sync on the CM froyo stuff. I'm going to try to get my server to run a build.

curious, does distcc work? :D I had that going to build kernels and MythTV at one point, could use 2 CPUs on 3 machines in the house to run the build. Damn fast. :D
[G1 Android Development] Firerat:
sorry, no idea

ls -l `which run-parts`

that will "full list" the one it runs, I'm expecting it to be a link to busybox

I'm actually on CM5.0.8, desperately trying to break recovery with it :)

but it won't break .... :mad:
[G1 Android Development] ttabbal:
oops. :)

Sure there's an init.rc. "adb shell cat /init.rc"

I believe it lives in system/ in the update.zip format.
[G1 Android Development] ttabbal:
Yup..

lrwxrwxrwx 1 root root 7 Jul 8 14:36 /system/bin/run-parts -> busybox

Shouldn't that point to a full path to busybox though? Perhaps I'm just neurotic about how I set up my symlinks. :D
[G1 Android Development] studjuice:
well when i search for "init.rc" i get nothing. out of all my roms i have stored i get nothing, except for CR's froyo which has a init.rc that has nothing in it...

when there is a full release yeah i could sure make a stock version for you. but i think by then cm6 will offcially be out (in the next few days?)
[G1 Android Development] ttabbal:
Oh duh.. my bad. It's in the ramdisk, so it's embedded in boot.img.
[G1 Android Development] slvrarrow:
OK great, it doesn't matter then, i'll be using yours anyway tomorrow as I need maps functionality, stock theme would be a bonus but function is more important by far. Again, great work
[G1 Android Development] Firerat:
which busybox

will tell you where it is

if it is in /system/bin/ its fine

if it is in /system/xbin/ then its broken

find /system -name "busybox"

will sow you all of them

maybe I should just d/l and have a look, its does all look very broken :)

which I'd never started this recovery mission, I've done a script., but I have no idea if it really works, because I can't get CM5 to break it ... grrr, must be because I keep a clean ROM without all the stupid taskmanagers and auto killer crap

oh well, think I'll pop out to the pub
[G1 Android Development] ttabbal:
Yeah, it's in /system/bin. There's one there and one in /system/xbin.

Have fun! :D
[G1 Android Development] studjuice:
maybe it says it's there, but so far the file is just in xbin. that could be the whole not mounting sd-ext thing.

but i'm pretty sure i tried moving it to bin before and su wouldn't work and blah blah blah
[G1 Android Development] defconoi:
dont have a *nix box to test but try:

./build_cyanogenmod.sh -b cm6
[G1 Android Development] studjuice:
when looking into the init.rc scripts in the ramdisk, i noticed differences. differences where it says run-parts..

my older tests say

#Execute files in /etc/init/d before booting
service sysinit /system/bin/logwrapper /system/xbin/busybox run-parts /system/etc/init.d
disabled
oneshot

and the newer tests say

# Run scripts in /system/etc/init.d
exec /system/xbin/run-parts /system/etc/init.d

# Include extra init file
Import /system/etc/init.local/rc

class_start default

i typed this while looking at another screen, may not be all correct but just for an idea of the differences
[G1 Android Development] studjuice:
nope. prints out the same dialog as the first try. but it creates a cm6 folder
[G1 Android Development] Firerat:
:)

I'll have to have a proper look at it later

based on

CyanogenMod-6-07072010-NIGHTLY-DS

I'm guessing your init.rc has this in it

# Run scripts in /system/etc/init.d
exec /system/xbin/run-parts /system/etc/init.d

# Include extra init file
import /system/etc/init.local.rc

make sure

/system/xbin/run-parts is linked to /system/xbin/busybox

make sure your scripts in /system/etc/init.d are executable

if you want /sd-ext mounted, make sure you make a mount point

hint init.local.rc

make that make root rw, make your mount point, and then make root ro ;)

have fun. I'm off to the pub
[G1 Android Development] defconoi:
Latest Dream/Sapphire Proprietary's:

http://www.mediafire.com/?gyoddyy5uo0

Extract these in the build directory and try a compile they may fix the camera/gps ;)
[G1 Android Development] ttabbal:
studjuice: Thanks for the update, the new 5.4.2 has GPS working fine. Still not /sd-ext or mounting of it, but that's not unexpected. :) working great so far.
[G1 Android Development] Bzerk1:
is 5.4.2 the same as 5.4? looks like the names have changed.
[G1 Android Development] studjuice:
just tried the nightly build with the proprietarys defcon provided. maps still FC'd

5.4.2 is a lil different. more support for spls and the boot.img from the nightlys so it's not overclocked and should offer less reboots for g1s. otherwise it's not really different.
[G1 Android Development] defconoi:
did u include the maps framework files?

do u get location in browser?

the latest proprietary's fix the camera :) :)
[G1 Android Development] MotoMudder77:
Too many updates guys! lol

5.4 works great for me, Thanks studjuice. only issues I've found are:

-this one is known im sure(and its with all builds I've found), but gallery3d is slower than hell when you have alot of pic/vids. would really rather have eclair gallery

-after playing video's, when it finishes and goes back to gallery, it gets all messed up.

- Seems the mic is really staticy or quiet, so I've been told.

-I use brutMaps, they work great, except GPS puts me about half a mile from my actual location.

-EXT will probaly never work, but Froyo's apps to SD works fine, except some apps dont like being on SD. This one has nothing to do with the build, just Froyo in general.

All in all, Great work! My new daily untill something with ALOT of fixes comes out, as my phone doesnt like flashing Froyo over Froyo.
[G1 Android Development] studjuice:
had the framework files, got those from final gapps

didn't try browser, is that working for you?

and yeah the camera's been fixed :P

the gallery may have been fixed when i changed to lfd's gallery. not sure. if you want the eclair gallery you could get it from an eclair and push it :P i'll think about adding it?

haven't had any feedback as far as mic quality is concerned, your the first to tell me anything

maybe it's just brut maps, when i use maps it gets dead on.
[G1 Android Development] ttabbal:
I've been fooling with that, but I don't see anything being done. I wonder if this stuff isn't being executed. I added this to the top of /system/etc/init.local.rc. The export doesn't show up, nor does the mount point. Did I miss something?

# attempt to mount /sd-ext

export SD_EXT_DIRECTORY /sd-ext

mount rootfs rootfs / rw remount
mkdir /sd-ext 0771 system system
mount rootfs rootfs / ro remount
[G1 Android Development] defconoi:
Uploaded Test7 with latest nightly and Camera/Camcorder fixed with Gapps included:

My Files:http://www.mediafire.com/ionstorm

To Install use Firerat's MTD Patcher at 90mb system

fastboot erase system

flash test7

Wiping is good
[G1 Android Development] Jigga0o7:
Is network location working with this Test7?
[G1 Android Development] defconoi:
not yet, but happy to say camera is :) thats next up to fix :)
[G1 Android Development] opasha:
im not sure if this has been suggested yet, but whenever there were network location issues on roms especially hero roms, i would just switch to 2g only. for some reason, this allows the phone to find your location and then everything starts to work again. then you can switch back to 3g. give that a try to see if it works for you guys.
[G1 Android Development] Jigga0o7:
Sweet. You guys are doing incredible work with what's been made available.
[G1 Android Development] damngood98:
what's different between defconoi's and studjuice's latest?
[G1 Android Development] defconoi:
not sure, havnt tried his
[G1 Android Development] wizern23:
i am having market issues with studjuices Sj build. it opens but most of my apps wont install. the browser has this weird error in fullscreen mode where it will think that it isnt and have the url entry box lower. and the set up kept looping even though i skipped everything.
[G1 Android Development] opasha:
i believe studjuice takes all the fixes/working things from different froyos and puts them together trying to make the build work as best as possible. he isn't stealing anyone's work because he flat out says what he is using and what it is based off of, which is respectable in my opinion. he even asks people like firerat for information/help when needed. he's just like the rest of these wonderful guys trying to get this to work until cyan's team posts a final build, which im sure will be soon judging on how far these nightly builds have progressed. try both out, and see the differences for yourself and help give feedback :).
[G1 Android Development] damngood98:
alright. using stud's latest. flashed over his last build w/out wiping. not really having any problems aside from gps. don't use bluetooth. haven't been able to try wifi yet. camera works, as well as video. initially had some widgets not available. had to open the app once before they were usable. market is fine. music works. it's not super fast but i'm still playing around w/the different options. g1 users: what are you finding works best? jit, compcache, swap? would also like to hear some feedback from someone using defconoi's latest.

oh yeah, thanks to all for the group effort. nice to see and the end results are very much appreciated!
[G1 Android Development] studjuice:
High five bro! My builds are just that. My goal was to get a decent group daily driver and get as much working as I could. Sadly it seems there tend to be more errors with g1 but I have a mytouch
[G1 Android Development] studjuice:
GPS should be working, it works in my personal testing. Which exact build are you using? If your using 5.4.2, and you downloaded it more than like...3 hours ago it was the wrong build and gps was broke. I'm currently en route to vacation visiting family till Monday so wont be able to do much.
[G1 Android Development] damngood98:
would that be the newly named 5.4.2 fail version? that wasn't there before! ok. i'll try again. thanks again and enjoy the weekend!
[G1 Android Development] studjuice:
Yep that was the fail :D
[G1 Android Development] defconoi:
camcorder works in test7 :)
[G1 Android Development] blackknighti30:
Hi, I've been following this thread for quite a while and trying several of the builds posted and I wanted to add my results from testing. I'm currently using test5.4.2 (the newest one, not the FAIL one) on my T-mobile G1 and I can confirm that GPS, Bluetooth, WI-FI work great. I also can confirm that Camera/Camcorder and gallery also work (just don't change orientation when it's open).

Market crashes whenever a program is installed (I'm pretty sure this was already known), but everything else seems to be working. Oh, one thing I did notice is that Google isn't redownloading my previous apps when synced. This worked on some other FroYo builds, but honestly I can't remember which ones.

Overall, I'm liking this ROM, but I would think that during the testing phase you would have chosen a stock theme in order to keep from having to set the colors after each wipe and flash. Once the ROM is a daily driver I think you could switch to a themed version or add the theme separately.

Thanks again for your work. If needed, I can offer some compiling power on a Phenom II x2 550 at 3.4 GHz. Let me know what you need me to do.

-BK
[G1 Android Development] ttabbal:
BT pairs, but audio isn't being sent to the BT headset. I can make calls though. Odd.

G1 here, running swap without jit or compcache. I intend to try jit once I've run for a bit without it.
[G1 Android Development] :
Umm I'm a supper noob can someone explain to me how to flash this rom is it regualr? And also how is the rom is it good for everyday use?
[G1 Android Development] protomanez:
I really want to see lwps on this D: