yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] ezterry:
Super wipe usually wipes everything but can forget to unmount /cache and leave an orphan file or two.

Dex files are the things in the dalvik-cache directories.. thus by wiping both /cache in recovery and dalvik-cache as I said in the post.. both actions were compeated.
[G1 Android Development] [ACL]:
I ran into this post while searching the web and i want to share with you guys what i know about this.

if this has been solved then go your merry way. If you want to discuss some of it, let me know. :eek:
[G1 Android Development] hexameron:
I think I may have found my "Local" hardware problem:

"D/WifiStateTracker( 127): DHCP renewal succeeded with lease: -1"

I am assuming that "-1" is a time because my router is set to "never expires"

There is a Gingerbread patch to "wifi/java/android/net/wifi/WifiStateTracker.java" that checks for a minimum lease time of 300s . I think it may have a problem because "-1"<"300" when it should represent perpetual lease.

github.com/ezterry/GB-framework_base/commit/6c94a01456bd6ce808049a28282ab82085d11fba

"Merge android 2.3.5

Conflicts:

wifi/java/android/net/wifi/WifiStateTracker.java"

+ if (leaseDuration < MIN_RENEWAL_TIME_SECS) {

+ leaseDuration = MIN_RENEWAL_TIME_SECS;

+ }

edit: forgot to say that it is not a problem with a working iprenew, but it is renewing the lease when it does not need to.
[G1 Android Development] ezterry:
That is google's code.. cm had a patch to fix this problem [not sure if aosp did or not]

Seems on merge some code got duplicated and we are running both the new and old version.

--

While I'll fix this in future, I also recommend strongly *not* using indefinate leases, it defeats much of the point of dhcp..

If you need a host static use a static ID or configure the dhcp server to always assign the mac address the same IP oustide the normal dynamic pool.. If you want them to be mostly static; use long but not infanite leases,

7day lease means as long as your computer is on the network once a week you ought always have the same IP, 30day lease means once a month, 90 one in three. Yet still allow for churn over time.. If very few changes (ie new devices added, or permimently removed) happen to your network 90days may be acceptable.
[G1 Android Development] tvall:
My phone has randomly restarted a few times today. Finally got a copy of possibly useful info. http://db.tt/z4SIHrI copy of /proc/last_kmsg
[G1 Android Development] ezterry:
One thing you mightlook at is your APN (since this looks like the supl/gps bug:

I'm finding apn type 'default' is working better than 'defult,supl' (after the change I even started getting network locationon 3g.. somhoe before 3g towers failed to find a location (network location for 2g/wifi always worked.)

(I've also seen this some in low memory .. but I don't expectthis as much from a MT2.1/fender as you are using.)

Also while not exactly related if youfind 3g slow (particuarly outside the US) youmightwant to look at your ro.ril settings.

I am personally using the official magic plus rom settings (in an edited build.prop):

Replace any existing ro.ril properties with:

ro.ril.hsxpa=2
ro.ril.enable.dtm=1
ro.ril.gprsclass=12
ro.ril.hsdpa.category=8
[G1 Android Development] hexameron:
I`m not going to pretend that I knew what I was doing when i set up my router: 7 day leases more than enough for my network.

>> "Conflicts: wifi/java/android/net/wifi/WifiStateTracker.java"

I don`t know where that came from because it was merged by Cyanogen on the day after I did my Wildfire/Buzz AOSP build , but according to "Google" it only exists on CyanogenMod and here - and they have already patched it 2 weeks ago :

commit ee3d7e4d4be1bd5721a8 : Revert "Fix DHCP not woking for routers that hand out very long leases."

It`s all looking good from where I am , I must go and click the "thanks" button a few times.
[G1 Android Development] tvall:
I'm not sure if any of that applies to me because i don't have a sim in and have the phone on airplane mode all the time and use wifi for everything.
[G1 Android Development] Khizzer:
yeah even i got some random reboots today...
[G1 Android Development] ezterry:
Hrm,

Well I've seen on older versions than this problems with gps when on a wifi network that didn't allow access to the outside world... (example wifi at a coffee shop before you accept the terms.. ) But I've not seen it yet on this version.

The problem for me is this is an ARM9 (the radio firmware) crash and not the kernel crashing. Also while the kernel is relaying some data between some userspace activity and the radio, I don't know the details. (I suspect its a bad download of supl data being fed to the gps firmware in the radio.. but I may be wrong or the issue may have changed)

For more such details I need logcat from just before the crash.. so if you can reproduce it while runinning adb logcat it will help.
[G1 Android Development] Khizzer:
is there any way to get the stock android livewallpapers working on this..i tried installing them but when i try to set them i get fcs
[G1 Android Development] tagm:
This version does seems a bit unstable for me.

Had a call a few minutes ago, couldn't answer and didn't even had a history of who called me. Then tried to use the phone and it hang.. only way to use it again was reboot.

Made a logcat (what was available for copying)

Before this I also had another issue. After draining the battery I couldn't reboot so needed to wipe dalvik Cache.
[G1 Android Development] ezterry:
As of this post the 20110828 release has 1636 downloads from unique IP addresses.. overall the thread has been quiet.

The logcat has very little indication of an issue ANRs aside... you might try a few things:

A- run fix_permissions, reboot into recovery, and clear dalvik-cache again to make surenothing is out of state (maybe reduce the anr's)

B- if it happens again also grab the radio log 'logcat -b radio' to make sure the issue is androids fault

C- after the reboot from part A ; and everything you usually have running is up again go into application settings and running services to see what is running and free ram, if ram is low (less than approx 18mb) you may want to run fewer services or tweak comp cache..

Also changing the dalvik.vm.heapsize may help.. With this version anyway I've found larger heapsizes help the system run smoothly with less half zombie services. Since the heap is less leaking than historically, overall ram usage will not increase. (The ezGb default is 18m, I'm currently testing 24m)

Last a question: was a bluetooth headset involved?
[G1 Android Development] tagm:
Downloaded terminal, done fix_permissions. Rebooted, cleared DC and got a F/C after reboot. Rebooted into recovery again, cleared dalvik-cache and rebooted. Still F/C's

Here the output (needed to cut some information). When needed I can provide the complete txt and regular logcat when booting the phone.

No, I haven't got any bluetooth device.
[G1 Android Development] ezterry:
:confused: Your original logcat didn't show forcequits, just ANR warnings.

1st) http://pastebin.com/ is your friend for pasting log log extracts (even if I'm not sold on there attempts to be a social network recently.

If you can move the logcats you already made there and edit them out of your posts.. those of us using tapatalk get to fling through it every time we read the thread.. And long code blocks confuse the browser on the android tablet as well.

2nd) If you are getting forcequits something is wrong, if you are still getting them after clearing dex/fix_perms I'm going to assume something happened to one of the installed files..

Thus I recommend the following:

1) Wipe dalvik cache again

2) re-install ezgb+gapps+any addons you are using (don't wipe your user data just yet)

3) boot up the system

You may also wish to upgrade your radio to 2.22.28.25 as of the two 2708+ radios the newer one is the only one I test with.

If its still force quitting we will need to verify the applications are installed cleanly
[G1 Android Development] tagm:
As far as I know I didn't have forcequits before installing Terminal, fix_permissions and clearing dalvik-cache. So something probably happened after that.

I was a bit inpatient tried to go to the desktop while the system was not fully loaded yet.. not sure if that could lead to issues.

Will try your advise later and report back. Thanks!
[G1 Android Development] ezterry:
Hrm.. the newer market force quits for me when I am inpatient ... (not the one in the gapps package but if you updated to one of the 3.* ones manually.. or if it managed to happen automatically .. Its not been on my test phones)

After all the talk yesterday about ARM-9 crashes and GPS+Wifi managed to jinx my phone also into reboots shortly after boot.. still didn't manage to capture useful data unfortunately. (did boot again after turning off wifi quickly as soon as I could get into the power widgets.. toggled it back on once everything stopped loading)
[G1 Android Development] ezterry:
Actually that patch was applied on Aug 30th (the discussion started before then):

http://review.cyanogenmod.com/#change,7484

Also it seems Google while updated the logic didn't quite fix the very long lease issue in the case of unlimited leases. (The revery patch does cover the case however)

In short as I said, CM (and via CM myself) used a patch to fix this problem in Android 2.3.4, google also updated logic related to this problem in 2.3.5.. When the two different versions merged together the git merging logic duplicated the code in a way that went un-noticed by myself and whomever was merging the CM7 framework..

This effectively caused some duplication of logic.. and the error to re-surface.. however since shorter leases (under 7 days) worked, this went unnoticed by most users.
[G1 Android Development] ibraheeemz:
hi, it may be a little off the topic but wanted to ask: is there any difference (related to performance or battery) in both latest radios i.e. 2708 and 28.25?? i have only used 2708 so far!!

and another thing. I just got a fresh battery!! any useful instructions to use it?? I mean should I fully discharge it for the first time and then charge again or first fully charge it etc..., could anyone please help me have the best battery time???
[G1 Android Development] ezterry:
1) 2825 is the radio distributed on the latest official froyo sapphire releases; 27.08 was only in TMobile US and even the most recent US rom uses 2825 (also the 2825 in t-mobile US was part of a security update I'm unsure if any of the security fixes may have also been in the radio as well as the rom)

Overall I've heard more reports of better battery performance with 2825 than worse.. but it could be an identical radio with just a different version number and there will be a group of people for both identical radios that one had better battery life than the other so I'm not sure there is any change..

2) If you have a new battery you first (before anything else) want to make sure you fully charge it. Then calibrate it. Then use as normal.

(discharging a new battery before charging it fully once can cause the batter to not be internally calibrated thus discharge too far. Limiting the life of the battery and/or making it never be at full capacity ... particularly if it was a cheap li-ion battery)
[G1 Android Development] Khizzer:
any suggestion for this thing??
[G1 Android Development] danthepan124:
When flashing this, how much in ext4 partition and swap should we put?
[G1 Android Development] ezterry:
Um, ext4.. as much or as little as you need. (I have just under 512MB on my HTC Dream.. using about 150.. and I'm not sure if part of that isn't a lost backup, or some other hacking I did at somepoint, Many sapphire uses don't use/don't have an ext partition at all)

swap none (it won't use it unless you add your own scripts)

CustomMTD is not needed but can be set to "87 2" for 120MB userdata (good for *not* binding /data/data to the SDCard.. even if most/all apps may need to be there)

(For anyone using cMTD my goal is to keep system < 87MB so that is a safe value to use)

No clue.. the Wallpapers built from aosp gingerbread source don't FC... they don;t really work either since our hardware is lacking better 3d support.. but they don't Force Close..

Stick with silly 1990's screensaver things on market if you must have a live wallpaper.. its about all this old phone is up to. But remember even those effectively add another service to your phone. reducing ram for anything else...
[G1 Android Development] danthepan124:
Okay so just to clarify, I grab the latest ezGB and flash that, then flash your latest kernel?
[G1 Android Development] ezterry:
Um.. kernel is included *in* the rom...

(come now.. [almost] no one downloads stand alone kernels .. at current the 20110828 ezgb build has 1751 unique downloads in a week... the v1.5.1 stand alone kernel has 291 in 3 weeks .. and that is for both the gingerbread and froyo version.. as I said the 1.5.1 kernel is the one included in the 20110828 build)
[G1 Android Development] danthepan124:
Sorry for these stupid questions, but I use the latest GAPPS with the latest ezGB right?
[G1 Android Development] ezterry:
THe ones at the bottom of the 2nd post.. or use rom manager to install it will ask the important questions.. and correctly install everything from there.
[G1 Android Development] loukvlav:
ezterry I am having issues with my launcher getting killed sometimes and other apps not staying in memory when I need them to.

I am using the latest release of EzGingerbread and after experimenting, I have settled with 24m CC and 24m VM heap. I have a 32A magic.

I was wondering if I could use a script to alter the oom_adj value of the apps to -17, so that they wouldn't be considered for OOM-killing. Would that have any effect?

Thanks for all your time and effort put in this.
[G1 Android Development] ezterry:
I almost never see launcher die on a 32b dream 20m cc and 24m vm size....

(and when I do the memory is really maxed out)

Changing the oom_adj to any negitive value will make lowmemorykiller ignore it... however on a 32a device this ought not be needed.. you may wish to check what apps you have are running background services and configure them not to.
[G1 Android Development] danthepan124:
what's the MDPI Facebook App for?
[G1 Android Development] lovevip1102:
How can I change the font on rom ezgingerbred if not R/W and can not use fontchanger
[G1 Android Development] ezterry:
CA Cert diginotar and securiy notes

Attention: Related to https://twitter.com/#!/guardianproject/status/110878115458318336

here is a flashable update to flash over your current version of ezGignerbread/ADS Magpie:

cacert_patch_S.zip md5: 5cf6cb4643a3688a33a4bf633389d5e4

This will install two things:

1) A cacerts.bks file without the comprised diginotar key

2) A build of CaCertMan (signed with the ezGingerbread platform key) to allow the viewing/editing of certs (requires root)

Both provided by https://guardianproject.info/

The source (under GPLv3 for the binary of CaCertMan is available on the guardianprojects github under commit 7539b575eee501f

This is also the location of the cacerts file included.

I'd appreciate if some more eyes review this flashable to ensure its security.

*****************

Note this flashable will likely work on other rooted roms however note the following:

The ezGingerbread platform key is publicly known, while ezGingerbread/ADS Magpie have logic to prevent non-system apps from using this platform key; it is possible on other roms for the package to be upgraded after install, these upgrades if not from a trusted source may be modified to take advantage of the root access the app requires; thus becoming a potential attack vector on your phone to be aware of.

Roms derived from ezGb such as DietGingerbread are using different keys and thus ought not consider themselves safe from this potential attack.

*******************

Another note for the security minded I'd like to mention:

Since the last build of mine AOSP has been offline due to the attack on kernel.org; I've been manually validating the code used in ezGingerbread to make sure no surprises exist; Thus far I believe all to be clean but will not be 100% sure until a verified clean version of AOSP is back online.

Also while I believe Google intends to remove diginotar from the official android source (To match changes in other products); this has not yet been done in AOSP probably in part since its been down.
[G1 Android Development] hrk:
Lesson one in the git book was "since git checksums everything, it guarantees the state of the tree and will catch corruptions automatically".

The fact that every other git repo has returned to normal, but android hasn't makes me wonder. :(
[G1 Android Development] ezterry:
One odd thing about repo is it just checks out the commit, rather than following a head normally. So while the checksums must still be valid.. the 'gingerbread' brach could be forced to a new commit (outside the normal flow.. ie history rewrite) and I may have missed it,

More so if it was in the repo sync of the 100 or so git repos I pull from google without modification.

Also I have always found it hard to find the "published" date on android code.. I know when a patch was made, and when google merged it.. but not when they puched it to the public.. One reason I make the checkpoint manifests.

Still.. it ought to be easy to push into all the repos from a known good + up to date source to check... Since if you push and the commit is not a fast forward, git gives much better warnings of history tampering.

(For various reasons it is not likely any tampering has happened just that it can't be completely ruled out yet either in my mind, also kernel.org is not fully restored yet, kernel code is temporarily being posted to https://github.com/torvalds/linux [to be in future a semi-official mirror])
[G1 Android Development] erotser:
Sorry for asking this again, but search did not yield any results. Is there a way to have an "on screen" menu for accepting and rejecting calls? The all too known sliding tab? All I am seeing now is the caller ID and no way of answering other than using the hardware keys.

Am I supposed to see that and is there a way to change that?
[G1 Android Development] Maxamillion:
nevermind...
[G1 Android Development] loukvlav:
Compcache

I have a question regarding VM heap size. Will increasing the vm size to 32m have a negative effect to the total memory available for programs? Meaning would this affect multitasking?

Thanks for all your efforts put into this.
[G1 Android Development] hrk:
I may be stating the obvious but... if you want to claim some memory and hate to see the maps:NetworkLocation service eating up Dream's poor memory... you just need to disable the WI-FI option in the locating settings (wtf is it called in english?). You can keep GPS checked (so that Maps will work fine when you are using it). The sole reason NetworkLocation service runs, is to discover new AP data and send it to Google (and then increase your location precision, that's for sure but... I trust GPS enough to claim back some memory...)
[G1 Android Development] ezterry:
The vm heap is the max size an application can grow, but it will only use what it needs.

Historically I found some applications would always grow.. but seems now I'm getting better results with vm heapn=24 than the original 18 or 16. So you can expect no negitive impact most of the time.

Some apps(browser, maps, and some games) may use the extra space while you use them thus push other apps out of ram.
[G1 Android Development] danthepan124:
How can i remove apps like Car Home and Gallery?
[G1 Android Development] ezterry:
Gallery ought not be removed it is needed by other applications, Its only going to run without a user request if picassa sync is enabled, so disable picassa sync if you don't wish gallery running as a service in the background.

Apps like car home are not needed but since it only runs when launched, the phone will not go faster without it, nor will you reclaim much space on /data since the APK is on system (assuming you don't shrink cMTD anyway). Thus for most users I try to keep such extras to a minimum and request the user ignore them if they don't need them.

Ok, that said gingerbread has in general been good about cleaning up app data so you really only need remove the apk [used to be you also had to manually remove the package to clean the userdata), System apps are usually either in /system/app or /system/vender/app root explorors or adb+linux commands, titanium and others can all be used.. Many rom independent guides are already on XDA.

Once the file is removed go into recovery and clear dalvik-cache then boot the phone again. Once fully booted check all applications in application settings to see if any traces of the app remain.. if so just uninstall it.

Remember to backup before you start.
[G1 Android Development] arkara:
I can't seem to find the market in the latest gapps zip.. was it removed?
[G1 Android Development] arkara:
nvm, i wiped the market data and the application came up nicely. What i can't do right now is install the language pack..
[G1 Android Development] ezterry:
To cleanly install the language pack you:

1) install the base rom

2) install the lang pack with the same date code as the rom

3) install gapps

4) install the cacert pack I released the other day (skip this at your own peril)

5) boot into the rom

(Most people skip the language pack since they want the launguages in the main rom, So the extra lang pack1 zip is for the aprox 3% to 4% of the userbase uses the alternative language pack)

Regarding market the launcher link is hidden on the newer market until you log into google.. if you login after the setup wizzard it sometimes will not appear till you reboot (or aparently wipe the apps its data)
[G1 Android Development] arkara:
The installation of the packs should be, in the order you provided? Can i install a pack after i got the gapps?
[G1 Android Development] hrk:
Yes, you can.
[G1 Android Development] danthepan124:
Do I need to use ghost SMS for this? Does anyone lose SMS messages?
[G1 Android Development] AndDiSa:
I do have GhostlySMS installed, but up to now there were no differences to the "standard" SMS service, i.e. I didn't loose any SMS up to now.
[G1 Android Development] JtotheC:
I haven't lost one yet, and I've been running the latest beta since ezterry put it up.
[G1 Android Development] hrk:
In my own experiences, unless you're using some heavy usage apps (mostly Maps and Browser), the tweaked settings and the code fixes from Terry have greatly reduced the occurrences of the bug.

I lose them only when using Maps or the Browser (not always).
[G1 Android Development] obiwanbartek:
Hey, did you tried the new "Default Messaging application" option in Handcent SMS? It basically sets Handcent as the default msg app, and disable stock and other msg apps (including Gostly SMS as I tried). Maybe that could be an alternative for Ghostly SMS? I am using Handcent anyway, so it would be better for me to have only one msg app, if it of course provides Ghostly's SMS function to "catch" all SMSes.
[G1 Android Development] Maxamillion:
@ezterry Sorry to bother, but I am just wondering if you are going to add theme chooser support any time soon? I am using AdS Magpie and I really don't want to switch to cm7.
[G1 Android Development] newellj79:
He covered this topic a few pages. I believe the final answer was maybe. Give it a search to be sure.
[G1 Android Development] hrk:
Unfortunately I doubt it works that way. But without access to the code I can't know for sure. If you find it catches all your messages, than you're good. :)
[G1 Android Development] rutinh:
new verson of Zeam 3.15. Would you tell me how to update new version of Zeam to ezgb_ZeamReplacement2_S.zip file? I tried to put new zeam to zip file but when installing it got an error on Wrong Digest: Zeam.apk