yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] deuse:
I take ut I can flash 20110716-1: GINGERBREAD-DS-Beta-20110716.zip then gapps package 20110709.zip for it to work?

thks
[G1 Android Development] deuse:
Well it did not work..here is what I could catch of the log cat

dalvikvm( 182): System server process 187 has been created

Zygote ( 182): Accepting command socket connections

AndroidRuntime( 187): Shutting down VM

dalvikvm( 187): threadid=1: thread exiting with uncaught exception (group=0x4017c560)

AndroidRuntime( 187): *** FATAL EXCEPTION IN SYSTEM PROCESS: main

AndroidRuntime( 187): java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1962]: 182 could not load needed library 'libsystem_server.so' for 'libandroid_servers.so' (link_image[1962]: 182 could not load needed library 'libaudioflinger.so' for 'libsystem_server.so' (link_image[1962]: 182 could not load needed library 'libaudio.so' for 'libaudioflinger.so' (link_image[1962]: 182 could not load needed library ' ' for 'libaudio.so' (load_library[1104]: Library '' not found))))

AndroidRuntime( 187):	at java.lang.Runtime.loadLibrary(Runtime.java:455)

AndroidRuntime( 187):	at java.lang.System.loadLibrary(System.java:554)

AndroidRuntime( 187):	at com.android.server.SystemServer.main(SystemServer.java:639)

AndroidRuntime( 187):	at java.lang.reflect.Method.invokeNative(Native Method)

AndroidRuntime( 187):	at java.lang.reflect.Method.invoke(Method.java:507)

AndroidRuntime( 187):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:845)

AndroidRuntime( 187):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:603)

AndroidRuntime( 187):	at dalvik.system.NativeStart.main(Native Method)

AndroidRuntime( 187): Error reporting crash

AndroidRuntime( 187): java.lang.NullPointerException

AndroidRuntime( 187):	at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:76)

AndroidRuntime( 187):	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:854)

AndroidRuntime( 187):	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:851)

AndroidRuntime( 187):	at dalvik.system.NativeStart.main(Native Method)

Process ( 187): Sending signal. PID: 187 SIG: 9

Zygote ( 182): Exit zygote because system server (187) has terminated

Netd ( 197): Netd 1.0 starting

AndroidRuntime( 198):

AndroidRuntime( 198): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<

AndroidRuntime( 198): CheckJNI is OFF

SamplingProfilerIntegration( 198): Profiler is disabled.

Zygote ( 198): Preloading classes...

dalvikvm( 198): GC_EXPLICIT freed 47K, 78% free 233K/1024K, external

So what am I doing wrong guys?

edit=would I need custom recovery for this..sorry about this guys I am lost to flashing android at the mow
[G1 Android Development] AndDiSa:
... the start of the log would be more interesting. Here I can see only, that some important libraries couldn't be loaded.

Some additional questions:

- Which version did you flash?

- Do you have customMTD installed?

- Did you do a wipe before installing?
[G1 Android Development] deuse:
Hi

I used the latest one with the right Gapps from the OP no custom MTD. I did fastboot erase system -w a few times.

As I have said in another thread maybe my G1 is on the way out? Biffmod flashed ok..aaaaaaarrrr :D
[G1 Android Development] AndDiSa:
Another question, did you use customMTD or did you flash SenseLX before? I am wondering, why in the last time so many people here have problems in flashing roms and I would like to find out what might be the root cause.
[G1 Android Development] deuse:
Funny you should ask that as I flashed ROM] [32b] [D/S/Fender] 2.3.3 Gingerbread Sense 2.1 (PAUSED FOR NOW) it was to slow.

Then I flashed SenseLX which was ok..but not my thing Biffmod flash just fine...

I have just flashed remove-v1.5.9-Alpha3-CustomMTD_S.zip and then did fastboot erase system -w five times

but I checked the log before restarting and that error erase failure at 0x02580000 is still showing :(
[G1 Android Development] AndDiSa:
I don't know SenseLX, I never tried it, but I know, that they are installing customMTD, which might cause some problems when not used in the correct way. Probably you should not only do a fastboot erase system -w, but also flash a new recovery before, i.e.

- fastboot flash recovery <recovery.img>

- fastboot reboot recovery

... reboot to fastboot

- fastboot erase system -w

- fastboot erase boot

- fastboot reboot recovery

... flash new rom, as you like.

EDIT: sorry, but I have to correct me: fastboot flashing the recovery will not work, because you are on 0013d

You need do the full loop, i.e. flash orange-xxx.nbh, but there is a chance that it will fail, if you have really a memory problem.
[G1 Android Development] deuse:
Ok I will try that now...and report back.

I still get "erase failure at 0x02580000" friking hell....anything else you would like me to try?

I did reflash amon ra 1.7.0 but still the same and I don't really want to down flash just in case....

I got to go and get some sleep as I am off to work in 6 hours.

Anything you want me to try post here and I will do it when I come back. and thanks for your help ;)
[G1 Android Development] AndDiSa:
Seems to be really a memory problem. I am not such a hardware expert, but as far as I know, normally there are some spare blocks available when a memory cell is no longer working correctly. Those will be replaced automatically until all space blocks are used. Probably Terry has another idea ...

At the moment I do not have any other suggestions to you, we need to wait for some input from the "hardware experts".
[G1 Android Development] deuse:
Ok thanks..I am off to sleep ready for work...if anyone has any idea please post

i will try it..
[G1 Android Development] newellj79:
Just tried to build. It didn't work. This is the last few lines. Any help would be appreciated. I'll go back and search the thread in the morning. Thanks...

^

Note: external/protobuf/java/src/main/java/com/google/protobuf/micro/CodedInputStreamMicro.java uses unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

target Java: Quake (out/target/common/obj/APPS/Quake_intermediates/classes)

Note: packages/apps/Nfc/src/com/android/nfc/RegisteredComponentCache.java uses unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

2 errors

make: *** [out/target/common/obj/APPS/Nfc_intermediates/classes-full-debug.jar] Error 41

make: *** Waiting for unfinished jobs....

Note: packages/apps/SpeechRecorder/src/com/android/speechrecorder/SpeechRecorderActivity.java uses or overrides a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: external/quake/src/com/android/quake/DownloaderActivity.java uses or overrides a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

newellj79@ubuntu:~/android/ezGingerbread$
[G1 Android Development] tom0769:
Look above, this is what AndDiSa told me to do.

After that it compiled fine.

Maybe there should be a hint in the 1st post;)

Looks like others will have the same problems.
[G1 Android Development] deuse:
@AndDiSa I just flashed BiffModV2.1-2708port_S I checked the log and I found

"erase failure at 0x02580000Fixing" It working ok all my apps installed

so if I un-rooted my G1 then re-root would that solve the problem?

thank you for your time and help.

I just used superwipe to clean the G1 a few times then I used fastboot erase system -w checked the log and no "erase failure at 0x02580000"???
[G1 Android Development] newellj79:
I ran the "rm"command. I opened up the BridgeRenderSession.java file to edit out the two command. I don't see the reported two lines though. I am new at this, is the something more that need to be done to edit them out? I simply double clicked them to open it. Thank again for your help.
[G1 Android Development] tom0769:
I don't know if I get you right. You mean you cannot find the two lines in the file?

=> //@Override
public Result getViewParent(Object viewObject) {
if (viewObject instanceof View) {
return Status.SUCCESS.createResult(((View)viewObject).getParent());
}

throw new IllegalArgumentException("viewObject is not a View");
}

=> //@Override
public Result getViewIndex(Object viewObject) {
if (viewObject instanceof View) {
View view = (View) viewObject;
ViewParent parentView = view.getParent();

if (parentView instanceof ViewGroup) {
Status.SUCCESS.createResult(((ViewGroup) parentView).indexOfChild(view));
}

return Status.SUCCESS.createResult();
}

throw new IllegalArgumentException("viewObject is not a View");
}

I sync'd ~1week before and if this file wasn't touched by the developper the two commented lines (I marked with '=>') still should be #85 and #94.
[G1 Android Development] newellj79:
Thank u for the explanation. The 85 and 94 thrums off. I see now u were referring to lines. Ill take care of it after work. Is that something that needs to be done everytime I build or no. Many thanks again.
[G1 Android Development] newellj79:
Them lines do not appear in mine. See attached file.
[G1 Android Development] tom0769:
OK, seems as the code was deleted from class, so no need to change something here, just compile:D
[G1 Android Development] tom0769:
Hmm, which "BridgeRenderSession.java" did you attach to your post?

It seems not to be the one you compiled.

There are the two errors again, AndDiSa was reporting.

So be shure to edit #85, #94 of

"frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeRenderSession.java"

The 1s few lines of the build output can be ignored, that was the same for me and I was told to ignore them, too. So that should be no problem.
[G1 Android Development] newellj79:
The one I attached is for sure the one in the proper directory. Could see something else be causing the problem?
[G1 Android Development] tom0769:
I would say no, the "BridgeRenderSession.java" has been compiled and there are 2 errors in it. To be honest, I've no idea of what else could be the problem.
[G1 Android Development] newellj79:
Tried to compile again. This is how it ends up. There is nothing created in the sapphire directory, in fact there is no sapphire directory. Anyone with ideas please help.

ProGuard, version 4.4

Reading program jar [/home/newellj79/android/ezGingerbread/out/target/common/obj/APPS/AccountAndSyncSettings_intermediates/classes.jar]

Reading library jar [/home/newellj79/android/ezGingerbread/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar]

Reading library jar [/home/newellj79/android/ezGingerbread/out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar]

Reading library jar [/home/newellj79/android/ezGingerbread/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar]

Reading library jar [/home/newellj79/android/ezGingerbread/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar]

frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeRenderSession.java:85: method does not override or implement a method from a supertype

@Override

^

frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeRenderSession.java:94: method does not override or implement a method from a supertype

@Override

^

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

2 errors

make: *** [out/host/common/obj/JAVA_LIBRARIES/layoutlib_intermediates/javalib.jar] Error 41

make: *** Waiting for unfinished jobs....

Preparing output jar [/home/newellj79/android/ezGingerbread/out/target/common/obj/APPS/AccountAndSyncSettings_intermediates/proguard.classes.jar]

Copying resources from program jar [/home/newellj79/android/ezGingerbread/out/target/common/obj/APPS/AccountAndSyncSettings_intermediates/classes.jar]

newellj79@ubuntu:~/android/ezGingerbread$
[G1 Android Development] ezterry:
Please checkout the 20110716 checkpoint such that you have the clean code that made the last release:

To switch to the checkpoint run:

repo init -m checkpoints/beta-20110716-1.xml
rm -rf `ls -a | grep -v "^\." `
repo sync -j 10

Then re-extract the Proprietary files and build normally

To switch back to the head (without syncing from scratch):

repo init -m default.xml
rm -rf `ls -a | grep -v "^\." `
repo sync -j 10

The checkpoint was the exact code used in that release thus will not have bits of 2.3.5 that google now has on the gingerbread branch. I've been away and have not quite yet synced framework and other bits of modified code; this is probably why the build is broken.

(Otherwise according to others that have said if you *remove* those '@Override' lines it apparently works.. if it was commented out as in the sample posted earlier you could not have received that error)
[G1 Android Development] newellj79:
Please bare with my ignorance. I will switch the check point as recommended. I swapped my bridgesession out with one the was emailed to me pre edited, because those lines did not even appear in mine. So I'm confused about it. Ill do as u recommended and then everything from the beginning andbsee where it gets me, thanx Terry.
[G1 Android Development] ezterry:
BTW to others:

You can use that to switch to any of the checkpoint manifests in: https://github.com/ezterry/manifest-gingerbread-DS/tree/gingerbread/checkpoints

(or .repo/manifests/checkpoints in the build tree)

note the 'rm' and sync will take a bit of time to re-build the build tree.. make sure you backup any files in your tree before running it (.repo will remain intact so you will not need to re-download all the projects.. but it will clobber any modified files, as well as the kernel and vendor trees that)
[G1 Android Development] tom0769:
Just tested and compiled fine without any modifications.:)
[G1 Android Development] AndDiSa:
What's the problem? Everything compiled fine and your rom is located now at

~/android/ezGingerbread/out/target/product/sapphire/full_sapphire-ota-eng.newellj79.zip

push it to your phone, flash it and run it.
[G1 Android Development] newellj79:
I'm curious. I love ezgb and the roms that spring from it, but what is it that makes certain ads builds seem slightly zippier than the rest? I'm just a average user. Is it some kind of configurable settings that are by default changed?
[G1 Android Development] AndDiSa:
I think the main reason is memory management. Terry changed several times the minfree settings to find out what's the optimium for our phones.

In addition the usage of zram/compcache slows down a bit, but you need it to start/run all services.

There you need to find your personal optimum. Standard is 8m, I have increased to 20m, but as I said it depends on your personal requirements.
[G1 Android Development] tom0769:
I wanted to customize this rom and strip it down a little bit more, removing stuff I never use.

For example:

How can I completely remove all vpn stuff from this rom,

either before compilation or afterwards using xda kitchen. If I'd know this, I could do some more experiments with other stuff I (think) I don't need:)

I think that some things have to be done by changing init.rc in boot.img.
[G1 Android Development] sisterchick:
New DropTheme White for MDPI Froyo and Gingerbread

I've just finished up a port and addition to Pandroid's DropTheme in White for Froyo and Gingerbread MDPI Dream/Sapphire! It for use with Metamporph/ZipThemer. Screenshots are attached.

Download and instructions can be found at www.sisterbird.com/android-themes

Enjoy!
[G1 Android Development] tom0769:
I did

rm -rf `ls -a | grep -v "^\." `

and now I get

"error: .repo/manifests/: contains uncommitted changes" when I try do "repo sync"
[G1 Android Development] ezterry:
Um did you edit/change something in .repo/manifests/

Try:

rm -rf .repo/manifests ; repo init -m default.xml ; repo sync -j 10

If it works you will be good to build a android 2.3.5 version of ezGingerbread

If it still fails you confused repo and are best re-initializing the enviroment
[G1 Android Development] tom0769:
Thank you,

had to re-init (did it from scratch as described in the 1st post) and afterwards compiled successfully.

Now I'm running android 2.3.5 since about 10 hours, so far no issues.

Don't know what happened to .repo since I never touched it.

Maybe it was because I switched several times between the checkpoints.
[G1 Android Development] Maxamillion:
Wait what do you mean zippier than the rest? what about it is zippier? U mean faster than all the gingerbread roms including ezgingerbread?
[G1 Android Development] roccoadam32:
Ads does seem faster than the rest but is ezgb based

Newest ads is super smooth and stable after 3 days but sadly gps is not working for me back 2 froyo for now but u guys are so close
[G1 Android Development] Maxamillion:
Ima flash ads tommorow and test it ;) I thought ads was basically ezgb with magpie and power widget, but since ezterry has both now, what else is different that makes it faster?
[G1 Android Development] roccoadam32:
I wish I could tell you I used a kernel with memory compaction as well
[G1 Android Development] newellj79:
Yes that's what I mean.
[G1 Android Development] ldrifta:
@ezterry- im just curious.. if we build your rom by following the developers guide you provide, can we make a thread for our kanged version with our own customizations? of coarse with giving you the credit for the work...
[G1 Android Development] ezterry:
Such as diet gingerbread for the magic plus with new radio has been doing?

Really the only trick here is to follow the licencing.

Otherwise while not manditory for all android components I'd rather you keep yoursource code open and avalible (cloning my git repos as needed is usually the easy way) That and a link back to my thread is perfered to just a mention.
[G1 Android Development] ldrifta:
lol im sorry i didn't completely understand what you mean...
[G1 Android Development] tvall:
Paraphrase :

Yes. But please open source your work. And a link back to this thread would be preferred to just a mention
[G1 Android Development] ldrifta:
haha ok much clearer :D thank you!! will host it on GRP and possibly here as well, will let you know when its up if you have anything you would like to add
[G1 Android Development] thegtfusion:
@ezterry. When are we getting the 2.3.5 update :P :D?
[G1 Android Development] Maxamillion:
If you want the 2.3.5 update try ads magpie which is basically ezgingerbread..
[G1 Android Development] dw9906:
If you build it then you can have it today.
[G1 Android Development] ezterry:
Um when I'm ready to build it.

In the meantime kernels:

Mostly just a update to the configs (enable CONFIG_TINY_RCU, and switch from cfq to bfq)

https://github.com/ezterry/kernel-b...636-v1.5-20110706...ezgb-2636-v1.5.1-20110820

Battery seems about the same; however I recommend re-calibrating your battery when switching to this kernel (as it behaves a bit different than the previous and other GB kernels) [if you don't re-calibrate don't complain about short battery life until you do]

Memory usage appears much improved

Also so far I've not been able to re-produce the CPU pegging issue on CM6 with the froyo back port version. (so maybe users still using CM6/biffmod can at last upgrade to 2636 if they desire)
[G1 Android Development] ldrifta:
the version i built is 2.3.5
[G1 Android Development] farmatito:
@ezterry

please check if EzGbExtras package is signed with the correct key.

I was not able to install it until I resigned it it with the platform key.
[G1 Android Development] hrk:
I wonder how can BFQ be better suited for our NAND devices. I see that Cyanogen adopted it w/o the authors knowing, and then they offered help. But....... BFQ is born with rotating disks in mind. :confused:

I'll just flash it and use No-frills to give it a try.
[G1 Android Development] newellj79:
Andisa, what is the settings apk for on your dropbox page? I couldn't get it to install.
[G1 Android Development] ezterry:
100% sure its signed by the right key, and its done with the build system as usual.

People with installs from before I changed the platform key (ie, last alpha was the first version with the new key) did have problems with a no wipe upgrade (see comments from when I released the rom) because in some cases the system didn't notice the new key on the other packages using the platform key..

Thus some users needed to wipe or otherwise force the system to re-read the keys.

Just a theory, is one thing bfs is doing is changing io time slices in cfs to io sector budgets in bfs. (per disk I assume since you can force a disk to use either scheduler I just changed the default.)

It may have been cpu bottle neaks slowing down some processes.. Since while a dmz can be used to read/write t the nands buffer, Some cpu is needed to select and request a block to be read. This isn't much but might cause a cpu hevy task with many small io transactions to strangle out some other more pure io tasks requests. (such as checking the fat32 partition on boot, where many apps are on sd-ext being loaded for startup tasks)

Just a theory... really all I see is what feels like smoother IO; better memory utilization (really not sure why) and no more CPU pegged errors locking up the screen in CM6.

At the same time overall quadrent scores seem unchanged. So any supercomputer tasks you are doing on the phone will still take as long.. but it may be less painful to look at something in the notification bar while its running.
[G1 Android Development] AndDiSa:
Just ignore it. It was an update for a version I released in July for those people who didn't want to install a new release of the rom, but only the new Settings.apk
[G1 Android Development] danthepan124:
Oh I can't to start editing this, I just got to dual boot ubuntu lol
[G1 Android Development] ibraheeemz:
Great improvements in memory usage, I have multiple apps opened like messaging, phone app, 3D Gallery, Settings, and Home of course, with zram= 12Mb, and the response is amazingly fast, much improved I would say. previously, after a stand by of some time, it used to kill apps but this kernel has great improvements in it.
[G1 Android Development] Poppu:
I still can't find where to set up ZRam quantity on ezGingerbread. Is there a menu, a conf file or is-it hard coded and I need to compile a modified version ? Sorry if this may sound as noob question
[G1 Android Development] ezterry:
Its not (yet) a user facing feature

But can be changed with adb or a root shell in terminal or connect bot as has beed mentioned

You are searching for something like:

'setprop persist.zram.size <# Mb to allocate to comp cache>' and then reboot the phone. Default is 8 on ezGb at the moment.

I think I'm just going to remove the setting in application settings and make a user popup in ezGingerbread settings (and some other features I've been looking at in ads that I want to merge before my next build)
[G1 Android Development] Poppu:
Thank you. Knowing what to search exactly, I easily found your previous explanation. So now I will try several values and see if it changes something.

Seems a good idea to me... If you have enough time to do it, of course.
[G1 Android Development] aliasbody:
Problems with the Browser

Hello everyone !

Nice rom ezterry ^^ Just one question, is that normal that I have a force close with the browser ? Or it just opens but close immeaditly after that ?

I've already SuperWipe and reinstalled the rom a few times :S....

PS : I found all Android roms slow for the G1 since 2.1.... Is there anything to do with the fact that I'm not using any swap since I have a Class 2 SD Card ?

Thanks in Advance,

Luis Da Costa

PS : Sorry for my very bad english :S
[G1 Android Development] Poppu:
No it's not.

I think I remember an old issue (was it even on ezGingerbread ?) with a force close if geolocalization was enabled... Do you have any problem with your GPS or 3G localizatin ?
[G1 Android Development] aliasbody:
No, only with the browser :S ... I've reinstalled the rom 3 times and used SuperWipe, but the only problem that I have is from the browser... I'm going to try again and see if that changes anything.