yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] sebx_g1:
Which ROM are you using exactly ? If ADS_xxxxxxx then option you need , is in build.prop config file - ro.HOME_APP_ADJ=1 (must be 1 for holding home in memory) .
[G1 Android Development] pardus:
Just a note: my battery drain problems were cured by this kernel: "boot-cm_2635.10_ds_32b_radio2708-oc-uv-xtra-ram-fp-011611.zip"
[G1 Android Development] PorchSong:
Thank you! I am actually using EZ Ginger 1129, but inserted that line in the build.prop anyway and. . . . it worked. Now very happy with this rom. Home is now staying locked into memory.
[G1 Android Development] sebx_g1:
Hmm .... I'm a user not ROM maker so basically I don't understand your answer , sorry :confused:

I'm aware that using such "nigtly" builds could lead to unpredictable results ,but I 've just ask why autoMTD doesn't work on ADS ROM from 30/01/2011 build . Maybe it is because it is so "nightly" yet ? Generally it is minor issue for me ,and ROMs from this branch are better and better every day - I wonder if it is a good moment to ask for new features ? Most important for me is PowerControl widget like in CM 6.1 .
[G1 Android Development] AndDiSa:
AutoMTD should work also in my 20110130-builds, cannot imagine why it shouldn't.

@Firerat: I did not merge the sources yet, I am patching the updater script afterwards.
[G1 Android Development] :
Sweet news. I'd be happy to test if needed.
[G1 Android Development] Firerat:
well, I'm going to move it from AutoKernel and into releasetools of build.

it makes more sense there as customMTD is being used on devices which won't need AutoKernel.

+ I've just had a PM from Kali

some scripts were recently added to CM7 , which account for CustomMTD

This has inspired me to relook at the 06BindCache Script, I've wanted to remove that script for sometime

I'll still need to have an Option for people who use 'incompatible' ROMs , but at least here and in CM I can make the 06BindCache redundant ( which will make customMTD cleaner )

( by employing a small script to set the download location, hinted at here

I'll try and get round to doing this sometime this week
[G1 Android Development] invisiblewave:
Does this forum support strong language??? Figuring out Github is a severe brain-stretching exercise!
[G1 Android Development] crypticc:
I do. What's the diff between yours, exterry, and pershoots 26 Jan?

http://droidbasement.com/db-blog/?p=1531

Says don't use on CM7 / Gingerbread

ta
[G1 Android Development] ezterry:
Probably best then to remove the actual kernel flash from the auto kernel escape back to the OTA script

Also thinking of making a silly binary that just appends a string to the command line of a kerenl rather than disassemble/re-assemble

something like:

bootcmdutil print <boot.img> - prints commandline (user friendly)
bootcmdutil raw <boot.img> - prints commandline no extra text (script friendly)
bootcmdutil append <boot.img> <text> - append text to the current command line
bootcmdutil set <boot.img> <text> - set the command line to text

Edit: bootcmdutil now exists:

https://github.com/ezterry/GB-system_core/commit/e652d0bdbd1f2b9419e22c274811b68bcb0e646f
[G1 Android Development] superbart007:
Enable swap

Is there a way to enable swap on this?
[G1 Android Development] ezterry:
man swapon

(if you are on a linux host run it.. if you are not google it.. and learn the linux command)
[G1 Android Development] smashman42:
I just pushed one of the old boot swap scripts to /system/etc/init.d/25swap & chmodded it to the right permissions & she worked fine
[G1 Android Development] farmatito:
ezterry uses a pre-usb drain bug kernel.

I use latest pershoot as it seems the bug is fixed

plus BFS and memory compaction turned on

and some minor trivial patches by me.

Attached the latest and greatest.

USE AT YOUR OWN RISK. NO WARRANTY.

Enjoy.
[G1 Android Development] ATeam-MrT:
Hi Farmatito,

do you have any plans for a 32A version of your kernel?

Cheers
[G1 Android Development] vermaekansh:
?

can i use this one for officiao AOSP 2.2 test3...as it is required 2708 kernel from ezterry...as i am still on the old radio and SPl..mentioned in my sign.
[G1 Android Development] sebx_g1:
I'd like to try it is there avaiable version for old radio/spl ?
[G1 Android Development] Poppu:
Just one question : I read here and in bug reports that latest versions improve 3D performances. However on my Magic, 3D seems to work only for Google Navigation (not working in Angry Bird, Cut the Rope, Quadrant test, etc...) So is it my phone or is juste my poor comprehension of English which made me miss something ?

However I can do without it. And it's great that notifications swipe was added, it's the only thing I wass missing from CM6 !
[G1 Android Development] Gorkytje:
Do you also see rapid drains or slow charge ups? Check if your battery is swollen please!
[G1 Android Development] jaychym:
Anyone else having issues with Google Navigation? It wont load for me.
[G1 Android Development] Poppu:
Nope, as I said previously it's the only 3D application which is working for me...

I'm using it twice a week since 17th january (version which activated GPS) for a 3h30 travel, and no problem.

However from time to time Maps&Navigation go back like if it was the first use. Not really an issue, except for latitude which needs to be reactivated.
[G1 Android Development] tidewaterns:
I seem to have everything working properly. I have had no problems with the ROM since I have flashed it over an hour ago. The only problem I have is that the screen is tinted green. Any thoughts on what is causing that?
[G1 Android Development] Spakainz:
I flashed this kernel Froyo OTA ROM and have problems with wifi (Error) and compcache not working. Farmatito this kernel isn't suitable with Froyo?
[G1 Android Development] Poppu:
This a known problem already answered several times on this thread and others. Flashing the adequate kernel should fix it. Juste type "green tint" on the "Search this thread" box below, and you should find the convenient procedure.
[G1 Android Development] farmatito:
I don't know, but i suspect it is not as modules.sqf file will not be mounted to the correct

directory /system/lib/modules/
[G1 Android Development] Vanshy:
Im testing this rom after reading alot of good experiences, but in my personal case my phone its runing slow. I tried the ADW launcher from the market and after turn every animation & effects off, 1 desktop without icons and widgets its runing smooth. But its almost useless.

Under "manage apps", "running" it shows 0.00MB free; max 1.9MB free :confused:

I have FR-110130-Magpie_GingerB-DS-odex_S, gapps-gb-20110120-signed and gb_facebook_fix_S.

Apps intalled on SD Ext. I think its ext3. It's this ok? or need to be on ext2 or ext4?

How can I delete the default launcher? I'm with adw (I like it). Tnks!
[G1 Android Development] tidewaterns:
Thanks! I must have missed the post before. Sorry about that.
[G1 Android Development] tidewaterns:
Everything is working great after I flashed the new kernel. Thanks!
[G1 Android Development] Sleeepy2:
Well my battery looks fine but I was looking at my logcat and I wonder if this is causing my issue.

Anyone know what this is and how to fix it?

http://pastebin.com/ewBPVGM3
[G1 Android Development] Firerat:
127.0.0.1 is local host

you probably have www.google-analytics.com setup to resolve to 127.0.0.1 in etc/hosts

so they can't spy on you
[G1 Android Development] Poppu:
Which probably means (as apparently you didn't do it by yourself) that you installed AdFree or an equivalent application. These apps use etc/hosts to redirect the traffic locally, so you do not waste your time / bandwith to upload your informations an receive adds (and as a side effect the authors does not receive money for their work).
[G1 Android Development] smashman42:
Same config, no apps2sd-ext as I've got a Magic 32B & not that many apps, performs comparable to CM6.x series for most stuff (other than games) but runtime restarts a bit.
[G1 Android Development] tnpapadakos:
ive been using this hosts file and ever since, i havent had one ad

got it from someone else i cant remember right now

(the file is inside the zip, its not a flashable update zip; extract the file and replace the one you have with this one in system/etc)
[G1 Android Development] asb123:
The lock home in ram option is greatly needed (i see it was created in issue tracker 16 days ago). Even with a swap partition and high swappiness the home is sent out of memory
[G1 Android Development] hrk:
100% at 23:00, put to sleep without overclock. At 7:30 alarm didn't ring because phone went offline w/ empty battery.

Please, if/when you submit your patches, don't claim the bug is fixed, but that they might mitigate its effects.

Thanks for your efforts, however.
[G1 Android Development] farmatito:
I never claimed the bug is fixed. I said that "I use latest pershoot source, as it_SEEMS_THAT_THE_BUG_IS_FIXED_" as reported by a user in a previous post.
[G1 Android Development] nomadman:
im getting about 10hrs per 10% on mt3g overnight. 15 texts in and out. no calls, no bt, and no wifi. brightness set to lowest. so i guess ymmv.

edit/

i also didnt shutdown/reboot after pulling USB charger. The kernel is holding on its own on this phone
[G1 Android Development] hrk:
Farmatito, my words weren't to blame you, if you thought so then I am sorry. The fact that it works fine for nomadman puzzles me. My phone wasn't even overclocked, it was sleeping the entire night on EDGE (not even 3G). :|

Damn, this bug is proving difficult to tackle :(

EDIT: nomadman what do you mean by "USB charger?" A computer or the wall-plug? Wall plug has no USB drain effects.
[G1 Android Development] nomadman:
ive never seen a G1 but does it have any kb lights or hardware lights? i noticed once or twice that my hardware lights are turned on even with the screen is off (sleep mode). i had to hit the red hang up button to turn it off.

I meant the USB charger from my laptop or PC. I dont have a wall charger.
[G1 Android Development] jaychym:
I had issues going from google maps to navigation it just wouldn't load.
[G1 Android Development] dillalade:
This is the 2nd version of farmatito kernal patch (31st Jan) - and this one runs amazingly on my G1 (standard battery.)

Went to sleep with 66% woke up with 60%, now on 44%. It's been 15hours!!!!!

(Been playing back video, going online, sending sms's, taking/receiving calls, alram woke me up fine in the morning.)

Your statement does not rain true - especially if your running cm6.1 (like your previous post & signature detail) - this is a 2.3 thread you know that right!

(farmatito has already stated in post 1122 that this patch is not 100% going to work on Froyo, maybe that entails cm6.1 also.... which is potentially the reason why your getting weak results.)

I believe that battery drain with this patch is 90% RESOLVED.

Superb work - the phone now lives day to day in the same way it did when stock donut 1.6.

One side note @ farmatito - the battery percentage seems to drop drastically rather then incrementally - for instance, it went from 67 to 66 to 60 to 44 to 26..... just a note for you.

btw - why are you using 6.1 - this rom sh!ts over 6.1 - that is fact!

For those bugging about HOME not sticking in memory - then please read this thread and discover for yourself how to update your build.props file with the necessary lock home setting (ro.HOME_APP_ADJ=0

ro.HOME_APP_MEM=2048).
[G1 Android Development] Firerat:
hmm, 90% fixed?

tbh , it is either fix or it is not.

and for the record, it took around 26hrs for me to get down to 15%

and this is with the 2.6.35.10 that EzTerry compiled

so I do not understand why everyone is so excited.

anyway, regards fixing the usb drain bug,

tbh I think it would be better to have a static source ,, and not keep adding new patches to it..

The problem is likely a few little things ( if not a single change ) that happened in the past, and the solution is probably not in the future ( new fancy pants patches ) but changing something that happened in the past. ( it was probably some fancy pants patch that introduced the bug )

if you are serious about nailing it,

http://www.kernel.org/pub/software/scm/git/docs/git-bisect.html

You also need a better ( and faster ) measure of the battery drain

I bet it turns out to be something really simple
[G1 Android Development] nomadman:
I'de use it if it didn't give my phone the green screen. Oh well... to be continued..
[G1 Android Development] kwapiu:
Languages

Any chances for polish language? :)
[G1 Android Development] Vanshy:
could this http://forum.cyanogenmod.com/topic/208-swap-enabledisable/page__p__1303#entry1303 work to enable swap from boot on ezGingerbread?

Its a way to delete the default launcher? (launcher2 I think) I'm using adw launcher right now...

Thnks
[G1 Android Development] farmatito:
Just to clarify about this kernel bug:

1) at the moment I'm using latest pershoot source

2) there is only the BFS patch applied

3) some minor trivial patches to shut up some compiler

warnings

4) all other patches were removed or sent to pershoot

and are now included.

I've tested different msm72k_udc versions (2.6.29 - 2.6.35)

so it seems not to be cause of the bug.

I've looked through the acpuclk-arm11 code but found only

one minor bug.

I've removed the AXI frequency scaling patch but there was

no difference.

I've tried different versions of the usb/gadget/f_* functions

with no evident change.

My personal main interest is to have a BFS enabled kernel

and I was trying to investigate the usb drain bug only because it makes the phone not usable as first phone.

Bisecting as suggested is the way to go but I have not the

resources (just one phone, needs at least one night to test

a change) nor do I have the time to do it.

I hope that somebody more experienced will be able to fix

it or that a new not affected kernel (2.6.37 ?) will be released

soon.

In the end I'm not quite sure if it is a kernel bug at all due

to the different reports on this list.

I suspect that some userspace program could be involved

but my knowledge about android's userspace is limited

and my java skills are equal to zero so i cannot help.

Enjoy.
[G1 Android Development] ezterry:
For the core, you have the source; just add in your locale it will build.. (hint: device/htc/sapphire/full_sapphire.mk line:31.. actually to save space you could remove all the entries on that line and just add polish)

Then post to a polish forum if you wish; just include credit to this thread.

I will not however add it to the official builds w/o a polish in the gapps package. (Know of any for any [android] device pref for froyo or gingerbread?.. I'd convert an eclair if needed.. but < 2.1 will be painful)
[G1 Android Development] hrk:
I stand to this belief.

This explains my previous reply. In no way it meant disrespect to farmatito's work.

WOOT! You bought me! (But.. you have a 2300 mAh battery, don't you?)

I guess the "fast" way to measure battery drain is the number of processes running. # <= 4, no usb draining bug, # >= 7, soon "Android Operating System" is going to kill my battery.

Now... I am Java-capable, kernel reading-capable but git-dork. Guess I need some complementary skills here... anyone wishing to team up?
[G1 Android Development] Firerat:
play with AutoGroup, its better than bfs imo

these diffs will have just 2 or 3 failed hunks

http://marc.info/?l=linux-kernel&m=128978361700898&w=2

but it is trivial to fix

works well on my laptop, I can be compiling and watching a video at the same time, used to struggle with that.

Oh, but don't expect much from benchmarks ( which I find pointless anyway )
[G1 Android Development] Firerat:
yeap ;)

BUT .. I have had 2300s since the first week of owning a G1, in those days I could squeeze about 10-12 hrs out of it ( and this was at 384 ! )

so, put into context , the battery almost twice what it was

I also have a number of batteries, so I keep one or two spares on me

( I get a free battery when I buy a new back cover )

click on the graph, its got like a 'real time' display

comes from batterystats.bin

tbh, I'm no idea how its formatted

put I would guess that this file could be analysed, and relative rates of 'drain' measured

now, the consensus is it is a usb related problem, so just need to look for greater rate of drain when unplugged.. might be evident within 10 mins,

and there is a batterywaster test app, not looked at it.. but if you wanted to look at battery drain that might be something to look at

edit:

attached BatteryWaster.apk

have fun

edit2:

doesn't seem all that useful, and it will get killed
[G1 Android Development] th3k1d:
Where did you buy your 2300 mhz battery? I'd love to own one but all I've seen are bulky back-increasing batteries..
[G1 Android Development] Firerat:
ebay

and it is a fat battery

I got used to it very quickly , and I actually find it more comfortable when using the hw keyb
[G1 Android Development] saibot64:
Real men use english exclusively!;)

does anyone know a place that has nightly binaries of that port?
[G1 Android Development] tidewaterns:
Have you tried flashing a different kernel? I had the same problem but I flash the in the link below and it worked for me. I am running the ezBiffTestKernel20101106-2708_S. Use that one and see what happens.

http://xdaforums.com/showthread.php?t=831139
[G1 Android Development] ezterry:
USB mass storage fails (Thus why most people with green screen are using pershoot.. or maybe CM nightly 251
[G1 Android Development] saibot64:
Pershoot latest then i guess, right?
[G1 Android Development] almostthere:
Same here, it's getting worrisome now
[G1 Android Development] ezterry:
1) SOmewhere between the post you quoted and your post was a solution re-posted as to how to make the rom do it now..

2) Otherwise this is an alpha unsupported rom and your request is already on the todo list.. so don't nag unless its with a large donation. (preferably in the form of a patch if you are really in such a hurry..)

I've not been having too much problems with launcher2 for my testing.. been noticing the alternative launcher while maybe nicer once running having been slow to load. And until transitions are running faster I really can't use this as a daily rom myself.. the 2fps anytime alpha kicks in bugs me.. and I think I found the problem behind it.
[G1 Android Development] Sleeepy2:
Did I screw something up or is this normal?

http://pastebin.com/dW9JCiR0
[G1 Android Development] Firerat:
you are on Rogers and don't have their radio

not all that well up on the details, but you need to ring them and 'sign' something else you can't use data

some issue with data interfering with calls if its not their approved radio

you sign something to say

"I don't care if I can't call emergency services, as long as I can tweet I feel safe"

but honestly, I don't know the details
[G1 Android Development] Sleeepy2:
sorry I meant to add some more details but posted instead.

I singed the wavier and what not and have data I was just curious about the

HSDPA CSS not supported -1 and the UMTS CSS not supported -1.

It switches back and forth like crazy but what ever, might even get that with the Rogers "official" radio.
[G1 Android Development] Dukenukemx:
Would you happen to have the link for pershoot?
[G1 Android Development] Firerat:
http://lmgtfy.com/?q=pershoot
[G1 Android Development] ezterry:
:confused: http://tinyurl.com/4d6l7rq
[G1 Android Development] Dukenukemx:
I didn't think of that.
[G1 Android Development] Firerat:
your telling me that none of those links were relevant?

you got exactly what you asked for, and typing http://lmgtfy.com/?q=pershoot is very easy , no copy paste required..

you should be happy I made the effort

edit: meh, the attachment sucks

http://awesomescreenshot.com/0076w1g95

is much better
[G1 Android Development] billquinn1:
Maybe they would have more luck with this.

http://tinyurl.com/4k8wq95
[G1 Android Development] dillalade:
Dictionaries (Text prediction)

Nothing mind blowing, however a relatively no-fuss resolution to the lack of text prediction within LatinIME.apk (I believe.)

Props go to Tom/tnpapadakos for sharing this flashable gbkeyboard back during the CM nightly days ~274.

I just thought I'd try the below & it worked - text prediction seems pretty complete to me, not witnessed any side-effects so far.

However this is trivial & I believe Ezterry will possibly resolve his own LatinIME.apk - I just thought I'd give it a go & share the results.

in CMD:

c:\ adb shell

~# rm /system/app/LatinIME.apk

c:\ exit

c:\ adb push c:/LatinIME.apk /system/app/

adb reboot

done :)

I extracted the replacement apk from the linked gingerbread flashable & placed on root of c:\.

(I guess you could in theory simply flash this zip - however I was trying a process of elimination knowing that the zip is copying 2 files; apk to system & a .so file to library.)

The method I tried above proved that just the apk replacement was suffice.

http://www.thenow1.com/cmtnpmods/gingerbreadkb-update.zip
[G1 Android Development] Firerat:
hmm, looks nice but... imo the most useful hit is not at the top,

the Droid Basement link is at 10 ( google has it at No. 1 )
[G1 Android Development] Firerat:
you can probably get away without the reboot

if you do reboot before Android picks up the apk it will delete ( purge ) all of your data/sd-ext dalvik-cache files, takes ages to boot

but here is a tip, not 'optimum' but can speed up test cycles

adb remount
adb shell sed s/userdebug/eng/ -i /system/build.prop

dex will still get purged, but Android won't regenerate it until it 'needs' it

you might get the odd fc ( as dex won't exist yet ) but boot time is much faster

apks don't usually need a reboot, but any .jars, some libs (.so) and bins may

you can get away with some bins, e.g. installd by killing it ( killall installd )

also stopping zygote can be enough

adb stop zygote
adb start zygote

if you have a bootanimation

adb stop bootanim

will speed up boot by quite a bit ( you could just not have a bootanimation ;)
[G1 Android Development] dillalade:
Nice one for the tips dude, reboot was force of habbit really.

I like the sound of this:

dex for which files? I was trying a few days ago on how to odex all of my apks, hahahah LOL - dont know if worth or possible anyway, what is the above doing to what exactly?

Thanks for the other tips again - I don't have a bootanimation prefer the space :cool:

(however I do get given some default android animation, will try the adb command to see if I can get that ignored, cheers)

Also using your odex magpie, nice job, runs nice, is that built on the 4.4.3 jobby that you all were discussing?
[G1 Android Development] Firerat:
if on boot it has to generate dex for anything in system it will wipe the dex for apks on data and sd-ext ( which is why I never bother wiping dalvik.. ok I do wipe dalvik in recovery just before a nandriod backup ( saves space )

adb shell mount -a
adb shell rm /*/dal*/*

tbh, I would not recommend the eng thing for 'normal use', in general things will be laggy for a while.

Normally Android will start generating the dex files asap, but with eng it will take its time, or do it 'on demand'

It is just very useful if you are pushing jars often , for testing, the extra few min you get could save you from being distracted and drifting off someplace for an hour or two :D

odexing everything might get tiresome , depending on how often the app gets updated

there is scripts to do it for you, but I've not looked at them

the main advantage to odex is space

here is the same build odex and not odex

( but I use none odex while testing builds, easier to fix )

odex

Filesystem Size Used Available Use% Mounted on
/dev/block/mtdblock3 90.0M 87.1M 2.9M 97% /system
/dev/block/mtdblock5 118.3M 77.8M 40.5M 66% /data
/dev/block/mtdblock4 1.5M 780.0K 756.0K 51% /cache

none odex

Filesystem Size Used Available Use% Mounted on
/dev/block/mtdblock3 90.0M 72.9M 17.1M 81% /system
/dev/block/mtdblock5 118.3M 98.8M 19.5M 84% /data
/dev/block/mtdblock4 1.5M 776.0K 760.0K 51% /cache