yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] AndDiSa:
It's odexed, not de-odexed, so metamorph will not work. If you want to apply a theme, you need to either de-odex the ROM, or you need to compile it from the sources skipping the odexing step.
[G1 Android Development] nico1228:
wow, thanks for that info andi, now I know that odexed is different from de-odexed, but ezginger is aosp not cm based right?, so it means that all aosp based rom are odexed and not de-odexed?
[G1 Android Development] demkantor:
Take a look at AndDiSa's signature. You will find one of the best ICS themed ROMs for the g1 right there
[G1 Android Development] AndDiSa:
No, not all AOSP based ROMs are odexed, you can decide when you build the ROM. Odexed ROMs use less memory and start a bit faster, that's the reason why Terry decided to odex the ROM. As I told you already, if you take the sources, you can leave out the odexing step ...
[G1 Android Development] nico1228:
thanks

thanks for that info, but I think even though I have the source still I cant make any rom de-odexed because I don't know how to cook roms,,:confused:
[G1 Android Development] HTCDreamOn:
[MENTION=2292830]ezterry[/MENTION] I've built the latest Froyo kernel but WiFi does not work. All the modules appear to have built fine and I've copied them into the zip and they've flashed into /system/lib/modules OK. Any ideas? I'll try to get a last kmsg and logcat now.

EDIT: logcat
[G1 Android Development] :
FYI your rom works great on the 32a Magic 6.35 new radio with carz's 2.6.34 v0.70 kernel (http://xdaforums.com/showthread.php?t=692735). The one significant bug which holds me back from switching completely to it is the gmail bug. I'll go through this thread to see if someone has a fix. Other than that it runs great. Nice work.

http://xdaforums.com/showpost.php?p=10461838&postcount=52

Follow up: Ok, I'm catching up on the posts now and I see that others have posted how it's working on the 32a Magic. I successfully flashed these CM7 gapps http://www.mediafire.com/?qgt15ftd3gdby6v
[G1 Android Development] Firerat:
had a look at it yesterday

something similar happened about a year ago

http://code.google.com/p/android/issues/detail?id=5964

found via

http://code.google.com/p/android/issues/detail?id=11124

this was the fix

https://github.com/Firerat/GB_dalvik/commit/4bc10cc26f856f2447bb23316e6729bcd20c2bf4

its not the same problem, but is ( I think )

if that makes sense

will try to figure out what gmail is actually trying to do which causes the crash , which will get me closer to figuring out what is broken

but .. tbh no idea if i can figure it out, I may even have it totally wrong and its related to something else
[G1 Android Development] :
Actually I wasn't thinking. After more playing around, I downloaded K9 Mail and am switching to the rom for full time use (unless I find some major bug that I can't deal with) :)
[G1 Android Development] Firerat:
I tried k-9, but didn't like it

it seems to do silly things like e2fsck stuff

an email app should not be doing stuff like that

but I didn't look very hard at it, so it might have a legit reason, idk
[G1 Android Development] :
I'm not too concerned for privacy if that is where you were going with that thought. There isn't much on my phone and my browsing is limited, don't shop over it, etc. I just need to be able to use 2 gmail accounts for work is all.

I also downloaded Opera because the stock browser is FC'ing. I like Opera better anyway so no biggie.
[G1 Android Development] Firerat:
there is a fix detailed earlier for the browser

open broswer via google search

then set a new homepage

I think it was Bypass that first posted that
[G1 Android Development] :
Thanks. I missed that one and I know how annoying it can get having to repeat yourself :o
[G1 Android Development] snadge:
Here it is: *url deleted - moderators please help me fix this* (sent in private message)

A couple of typos in your original post to keep us on our toes. ;)

--- add-firerat.sh.orig 2011-01-10 23:03:07.910333943 +1000
+++ add-firerat.sh 2011-01-10 23:02:59.411045018 +1000
@@ -2,13 +2,13 @@
AndroSrc=$(pwd)
# dalvikvm stuff
cd dalvik
-git remote add -t Magpie -f Magie git://github.com/Firerat/GB_dalvik.git
+git remote add -t Magpie -f Magpie git://github.com/Firerat/GB_dalvik.git
git checkout Magpie/Magpie
git merge m/gingerbread
cd $AndroSrc

# frameworks
-cd framework/base
+cd frameworks/base
git remote add -t gingerbread -f Magpie git://github.com/Firerat/GB-framework_base.git
git checkout Magpie/gingerbread
git merge gh/gingerbread

--- sync-firerat.sh.orig 2011-01-10 23:03:19.379374355 +1000
+++ sync-firerat.sh 2011-01-10 12:56:03.450506746 +1000
@@ -7,7 +7,7 @@
cd $AndroSrc

# frameworks
-cd framework/base
+cd frameworks/base
git checkout Magpie/gingerbread
git merge gh/gingerbread
cd $AndroSrc

I did a build from about 12 hours ago, using the latest code from ezterry and your git repos, and this boots and runs great on my g1, with the known gmail and gps issues.
[G1 Android Development] dhkr123:
That's because you have a very low post count. While in this stage, you need to encode your URL's in a way where the forum won't flag them... i.e.

www dot google dot com slash barf question fart equals 10 ampersand poop equals true

---- www.google.com/barf?fart=10&poop=true

:D

This feature is to prevent the spambots from filling the forum with a trillion ED spams (all of which have URL's and all spambot user accounts have VERY few posts).
[G1 Android Development] Firerat:
ahh, I see what the problem is

the system dex is trying to go to /cache

this will fix it

adb remount
adb shell 'echo "dalvik.vm.dexopt-data-only=1" >> /system/build.prop'

you may need to reboot after doing that
[G1 Android Development] Firerat:
will add this script ( or a slimmer version ) to init.d

better as it will benefit sapphires that don't shrink /cache to minimum with customMTD

# cat /system/etc/init.d/04sys_dex_loc

#!/system/bin/sh
# check /cache size and set dexopt-data-only if too 'small'

# 35mb in bytes
MinCacheSize=36700160

CacheSizeBytes=$(printf %d `awk \'/cache/ \{print "0x"$2\}\' /proc/mtd`)

dataOnlyDex ()
{

if [ "$(grep -q "dalvik.vm.dexopt-data-only=1" /system/build.prop;echo $?)" != "0" ];
then
mount -o rw,remount /system
# meh, too lazy to test if already rw, typing on phone
# make sure build.prop is clean
sed '/dalvik.vm.dexopt-data-only/ d' -i /system/build.prop
echo "dalvik.vm.dexopt-data-only=1" >> /system/build.prop
mount -o ro,remount /system
fi
return
}

sysdexOnCache ()
{
if [ "$(grep -q "dalvik.vm.dexopt-data-only=1" /system/build.prop;echo $?)" = "0" ];
then
mount -o rw,remount /system
# make sure build.prop is clean
sed '/dalvik.vm.dexopt-data-only/ d' -i /system/build.prop
mount -o ro,remount /system
fi
return
}

if [ "$cacheSizeBytes" -lt "$MinCacheSize" ];
then
dataOnlyDex
else
sysdexOnCache
fi
[G1 Android Development] AndDiSa:
Now being one step further ... but still having the problem, that sysinit.rc is not beeing executed on startup. I looked at init.rc within the ramdisk-image of the kernel and there the line

exec /system/bin/sysinit.rc

exists, but is not ececuted on startup. Execting it manually after phone booted, /sd-ext ist mounted correctly ...:confused:
[G1 Android Development] Firerat:
I have a Darts match in an hour,

I will have a look at this in detail tomorrow

further to the above script for the dexopt-data-only fix

install -m 771 -o 1000 -g 1000 -d /cache/dalvik-cache

will be required if system dex is to be put on /cache

I will submit full script to github tomorrow
[G1 Android Development] farmatito:
Preliminary results about usb battery drain bug

After more research about the "After unplugging from USB, please reboot to prevent excessive battery drain" bug I've some preliminary results.

What I've done:

1) test all HTC original msm72k_udc drivers from

2.6.27 (Dream) ,

2.6.29 (Sapphire),

2.6.32 (Supersonic)

with the pershoot 2.6.35.10 kernel.

2) with and without overclocking.

The result of this test is that the usb bug is triggered only if overclocking is enabled independently of the msm72k_udc driver used. This is consistent

with my previous results when I could not trigger the bug with the pershoot

overclock capable kernel as I had overclocking turned off (freq set to 528000 - 245760).

The culprit for the usb battery drain bug seems to be the overclocking code

but I cannot say exactly how it causes the problem.

With this setup I have about 65% battery after 13 hrs of use (little

browsing, some adb and music, no calls no sms).

Attached you can find the patches I've applied to the kernel-2635,

my current kernel config file and a flashable zip for 32B devices only.

Enjoy.

NO WARRANTY, USE AT YOUR OWN RISK.
[G1 Android Development] ezterry:
Something is fishy with that statement 528000 (from perspective of how the hardware is being manipulated) is the same as any oc speed.. (below that its diffrent)

I can't look this second but do you have turbo enabled.. that has some logic that acts diffrently I've not quite grasped.

Also if 528000 has no issue maybe we are not properly restoring state from >528000 to <528000 if 528000 is skipped (common I believe with the design of the govenors)

You may want to comment on the kernel threads, gingerbread has some mass storage changes (thus 2.6.34.* kernels are not very useful for usb mass storage unless they have newer patches) but the build tree actually currently has a binary of the 2608-285 cm nightly kernel.. its not built from source durring the gingerbread build.

I'm working on switching it to an auto kernel with the cm kernel I built yesterday.. however I already confirm the usb bug and others the green screen.
[G1 Android Development] farmatito:
If I recall correctly 528000 was the maximum frequency a dream could be set to in spec and the values used in oc and non-oc kernels are almost identical:

{ 528000, ACPU_PLL_2, 2, 1, 132000, 3, VDD_7, 128000, 0, 5, -1 },

{ 528000, ACPU_PLL_2, 2, 1, 132000, 3, VDD_7, 128000, 0, 5, -1, 0x1b },

Yes I used TURBO_MODE as it was set in the original pershoot_msm-32b_radio2708_defconfig, but have turned it off togheter with all oc stuff.

Could be a nice experiment to try if it is possible to keep OC and turn off only TURBO_MODE.

I used 2.6.32 supersonic msm72k_udc.c in the last kernel I posted because it is

the latest version you can download from HTC's web site and as they build this devices they should know best. When it is clear what causes the bug it is possible to switch back to pershoot's msm72k_udc version, you need just to change a config option (CONFIG_USB_MSM_72K_HTC_2632=y).
[G1 Android Development] billquinn1:
Maybe something in my setup but I tried this and have never seen battery drain this bad. Nandroidin back.
[G1 Android Development] farmatito:
Could be also a userspace problem so that all the digging in the kernel will not fix it.

Just trying to shed some light on it. My phone so far after some usb use still has a

good battery so that it will probably last more than 24 hrs. Any hints or suggestions

on how to fix it are welcome.
[G1 Android Development] bestofrhcp:
it unrooted my phone
[G1 Android Development] Firerat:
Let me guess, you didn't flash the gapps that Bypass posted

Please read the thread, it has stuff in it which you should read
[G1 Android Development] bestofrhcp:
yes, i know it was stupid of me. flashed the bypass. its back to rooted again. in embarrasement, thank you lol

the new nightly is really smooth though, more thani expected
[G1 Android Development] IronLionZion:
Can someone help me figure this out? I flashed the latest nightly and it boots fine and then right when I get to the welcome to gingerbread on sapphire screen it automatically reboots and goes into a bootloop, I am on a mytouch 1.2.
[G1 Android Development] farmatito:
So far 1day,19hrs,30min with a 2300mah battery and still 19% charge with bfs-no-oc kernel. Will try a new variant tonight

bfs-oc without turbo-mode.
[G1 Android Development] MrFrankfromCM:
I want to try this ROM again.

Currently running on my G1:

Tom's ROM: 6.1.0-DS-tnp-extra

Kernel: 2.6.35.9

Radio: 2.22.23.02

Danger SPL

Can I just Superwipe, flash this ROM from page#2, reboot?

Thanks.
[G1 Android Development] Firerat:
well, for comparision

I have a 2300mah battery

23hrs 30min and I have 20% left

the Kernel I'm using is the "stock" kernel

Oh, errm not quite stock, I added Auto Task Groups

http://marc.info/?l=linux-kernel&m=128978361700898&w=2
[G1 Android Development] Firerat:
if you want help, post a logcat

or come back when you're not so green
[G1 Android Development] farmatito:
More from the experimental kernel department :-)

Attached a BFS OC NO-TURBO kernel with memory compaction turned on. Gives very funny results in free:

Before:

# free
total used free shared buffers
Mem: 112684 105712 6972 0 6064
Swap: 0 0 0
Total: 112684 105712 6972

After:

# free
total used free shared buffers
Mem: 112676 104204 8472 0 0
Swap: 0 0 0
Total: 112676 104204 8472

Speed is good. Seems to work. If I understood it correctly

" When a process fails to allocate a high-order page, it
may compact memory in an attempt to satisfy the allocation
instead of entering direct reclaim"

But you can also:

trigger it explicitly by writing any value to /proc/sys/vm/compact_memory

Seems the lowmemorykiller is very quiet with memory compaction turned on....

After a full recharge I will report on the battery life and usb drain bug if any.

Enjoy.

USE IT AT YOUR OWN RISK.
[G1 Android Development] AndDiSa:
Building GB from the source, I noticed, that since yesterday some problems with the /sdcard handling arised. After installing the ROM when accessing the sdcard i.e. with an file manager, the /sdcard disappears and connot be accessed any longer. :confused: Does somebody know what's the reason for this behavior?
[G1 Android Development] ezterry:
not as described but I look forward to your patches.

(I've seen the SDCard fail to mount/be detected but not problems accessing it once it mounted properly, I can't be sure it isn't a case of a cheap SDCard aging however)
[G1 Android Development] farmatito:
Is this the wonder patch? Do you know if this could

eventually work with BFS? I tried to apply it to my tree

but it failed and before trying to apply by hand

I would like to know if it is worth the effort?
[G1 Android Development] farmatito:
I'm experiencing this also. Mounted fine after a reboot....
[G1 Android Development] AndDiSa:
What's the reason for /sdcard not being mounted? (I am not really sure that /sdcard was mounted before.)
[G1 Android Development] ezterry:
I've really not looked into it.. just restarted.. noted it mounted then and moved on for now..

I'm working on modifying the build for auto kernel.. and an audio profile hack that runs at install and not using an init.d script that remounts system.

(Both of these have been done in an updater script.. but the build makes things a bit harder)

Also cleaning up some gapps that don't make me wince [thus far we have hdmi apps in a mdpi package].. no luck on gmail though.. or protected market apps but that just needs a "valid" fingerprint in theory.

I've noted in my travels that: agps did work for me with gps disabled and gapps installed.. the browser was able to get a location at http://www.google.com/ but crashed at the default URL as mentioned many times now (but only with gapps installed) so the browser thing is odd. Tells us it's not finding a file in a apk resource just before bailing. (some css file if I remember correctly)
[G1 Android Development] AndDiSa:
I am still looking for the problem, that init.rc does not execute sysinit.rc, i.e. scripts in /system/etc/init.d are not being executed (replacing the kernel by the kernel from Firerat's magpie edition solves this problem for the moment).

I've integrated e2fsck and compcache support (but only by patching the ROM image afterwards). I'm running GB now with magpie-patches, compcache and swappiness 10 as my "daily" ROM and it seems to me a bit more responsive.

Unfortunately my free time is very limited ...
[G1 Android Development] ezterry:
huh kernel has nothing to do with it.. FR's magpie added the 'exec' statement to the init.rc language in the init binary (patch pulled from CM).. if you took the boot.img I can see it working since init is on the ramdisk (/init)

The other way about it is a state machine like I made in the MT3G froyo ota with my parts package. (prevented zygote from starting until a property indicating runparts was complete was set .. otherwise zygote whuld start to boot the android layer while we where still mounting and bindmounting the sdcard.)
[G1 Android Development] bestofrhcp:
yea i just noticed it too, i guess i'll use aFile for now :D
[G1 Android Development] AndDiSa:
I explained wrong in my last post, I meant boot.img, not kernel.
[G1 Android Development] Firerat:
I guess it is the "wonder patch"

it won't work with BFS , it is for CFS

about 4 hunks failed to patch, but was trivial to patch those manually.

I believe I get a better overall experience, but its not as dramatic as you would get on a desktop.

and will make no difference to benchmarks ( which imo are a waste of time on Android )

patch against https://github.com/CyanogenMod/cm-kernel/commit/c5b37055dcd64e6283288c11275d1d255aa9768a attached

( the same kernel source as used in the main repo, so results can be compared directly )

Note: you must turn AutoGroup on in the config to use it

General setup --->
[ ] Automatic process group scheduling (NEW)
[G1 Android Development] Firerat:
if your building from source, and have my changes in system/core then it _should_ work

if not then delete the boot.img and ramdisk.img from the $OUT dir

or just

make clobber

first
[G1 Android Development] eramax:
is there any news about stable version of AOSP 2.3 ,we are waiting for any release about 1 month

thanks
[G1 Android Development] Explosive:
lol, best post in the whole thread =)
[G1 Android Development] IronLionZion:
Green? I'm white dude...
[G1 Android Development] lolmensch:
just to be sure you got it: he ment quit being newbie.

nobody can help you if you don't provide additional information
[G1 Android Development] Firerat:
finally got round to adding default install location to the UI

I typed 'adding' but in actual fact I removed code ;)

https://github.com/Firerat/GB_packages_apps_Settings/commit/c427b68b63a1b71d75d4a4301505faa6981566f8

couldn't be bothered messing about with the databasehelper to get it to add the secure setting to show the options

push the attached Settings.apk to /system/app/Settings.apk ( after making system rw )

translations are 'basic'

https://github.com/Firerat/GB_packages_apps_Settings/commit/ac7c3594554b0e18ccff20aeaf06628e332d9d86
[G1 Android Development] :
I'm running these guys' build from Jan 7 and it seems pretty dam stable to me :)

The frequency of their posts tells me their working pretty hard for all of us....
[G1 Android Development] CBATESY:
I agree this rom is pretty stable other then GPS not working and the browser issues its pretty much the best out right now for the d/s phones
[G1 Android Development] Dukenukemx:
They're definitely making great progress. I watch this thread everyday, religiously, eagerly awaiting the moment they claim it's a daily driver.
[G1 Android Development] ForTehWolf:
So far its been pretty good for daily use

If you can live through no GPS and a bit of lag then its pretty solid
[G1 Android Development] irisiris:
the 7Jan 2011 release is working good.. i am getting an error when i try to push a ad filter file to /etc/hosts

failed to copy 'ad.txt' to '/etc/hosts' :No space left on device

how to fix this error ? any one please
[G1 Android Development] Firerat:
have you tried turning it off and any again?

is it plugged in at the wall?

is the switch on at the wall?

is the file very large?

is system rw?
[G1 Android Development] Poppu:
Let me guess... You're part of the IT Crowd ?

Anyway, this is just a useless post to say that your work is really great !
[G1 Android Development] hrk:
Which, by the way, is true.
[G1 Android Development] ezterry:
Regarding gmail:

Once I added some symbols back into the dalvik vm:

E/Web Console( 635): Not allowed to load local resource: file:///android_res/raw/styles.css at :0
I/ActivityManager( 106): Process com.cooliris.media (pid 655) has died.
I/ActivityManager( 106): Low Memory: No more background processes.
D/dalvikvm( 635): GC_CONCURRENT freed 482K, 48% free 3418K/6535K, external 1215K/1557K, paused 24ms+57ms
[color=red]E/dalvikvm( 635): ASSERT FAILED ([b]dalvik/vm/ReferenceTable.c:59[/b]): dvmIsValidObject(obj)[/color]
I/DEBUG ( 70): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

A random guess is something wasn't thread safe on the new Concurrent garbage collector and an object in use was destroyed..

regardless the dump is after the assert statement caused it so the question is why is dvmIsValidObject not true at line 59 of dalvik/vm/ReferenceTable.c
[G1 Android Development] Firerat:
I'll start going through the core dumps

awk '/#.. +pc/ {print $0}' tombstone_00 |awk '{print "addr2line -f -e ""'$OUT'/symbols"$4" "$3";echo"}|sh'

might need to get Jack round to keep me sane while I look at it all , lol

Edit: attached the address to line output

so if anyone wants to have look , you won't need a current build ( with unstripped symbols )

I've seded the dir prefix as $AndroidRoot

had a quick look and none of the source is touched by magpie code, so the line numbers should match
[G1 Android Development] s14evil:
is it passable to run gingerbread with to old spl and radio like: 2.22.23.02/ hboot 1.33.2005. but I am so looking for gingerbread to be a day to day rom. lets keep the dream alive..
[G1 Android Development] irisiris:
I found the issue after installing Root explorer.

The etc folder shows on top 89MB used 40KB free.(it means i think ROM occupies 89MB) My ad.txt file is 600KB.

how can i sort this out. with froyo and earlier i could easily push this big file. anyway to create space in it?
[G1 Android Development] irisiris:
HTC magic 32B didnt have multitouch nor internet calling nor enough RAM and was told that will never get froyo.

6 months onwards after i bought it has all of these to run apps smoothly.

Anyone trying to help without logcat or by any means is HELPING and i am thankful to all of them.Tried internet calling in alpha release of 7th Jan .works smooth like GSM call.

whats working if anyone reading this thread first time prolly today regarding 7th Jan 2011 release.

HTC magic 32B vodafone Rooted.Latest Radio SPL with 14MB extra RAM

Working:

Camera

Camcorder

3G/2G/wifi/bluetooth

video playback

youtube

phone calls over GSM

SMS

Gapps ( Gmail restarts n loops if email message is opened after few seconds..hopefully will b fixed soon..related to GPS module not working yet)

Phone calls incoming as well as outgoing over Internet built in voip/No Lag/No choppy sound

Skype (choppy coz of app still needs development by skype..even on HTC desire its choppy)

Market

Screen rotation

Not working:

GPS

Gmail works and sync properly but on opening messages loops (FC)

Speed and Stability:

Using without animations. Installed spare parts apk.

Tried new settings.apk on push but it FC when try to change settings so rolled back to ROM version.

Battery life:

wiping battery stats in recovery now and will recalibrate it with this new ROM n then can post how it goes.

Speed will improve hopefully. Great port so far.
[G1 Android Development] farmatito:
is there a way to unmerge the magpie stuff from the gingerbread tree?
[G1 Android Development] CBATESY:
Doesn't matter if he is part of the IT crowd or not. Anything feedback to help fix error I'm sure is what they want, makes getting GB for the d/s even more daily driveable
[G1 Android Development] Firerat:
switch branches

a repo sync will do that for youu
[G1 Android Development] brentil:
How is everyone else getting past this part without modding the files if they have the 2708 radio and 2013d spl already?
[G1 Android Development] mschoolbus:
Have you tried the new 1222 build? It flashes and boots just fine for me with the new SPL and radio. Always check your MD5 on the file before flashing as well.