It is policy related... I think the "difference" is between
policy_phone and policy_mid.

On 15 Apr, 20:16, Yi Sun <[email protected]> wrote:
> I could not find out a decent way to handle this. Current patch(the
> quick hack made by me) changed preload-classes to preload-classes.arm
> and preload-classes.x86 and has makefile to pick up the right one during
> the compile. As pointed out by Dianne Hackbom, whether these classes are
> supported has nothing to do with the CPU. I'm thinking about to added
> some platform based infrastructures to support different platform/arch
> inside the same tree. But I did not get time to work on it yet and don't
> have a good idea about it either. There are other platform dependent
> things as well for example the path issue in the batteryservice (See my
> another brain damage patch).  
> Now I open for suggestions. Please give your thoughts.
> Yi
>
> On Wed, 2009-04-15 at 21:36 +0800, Chen Yang wrote:
> > yeah, you may need to remove those classes in 
> > frameworks/base/preloaded-classes
>
> > --
> > Chen
>
> > On Wed, Apr 15, 2009 at 10:55 AM, Yi Sun <[email protected]> wrote:
>
> > > because the x86 does not have these classes.
> > > On Tue, 2009-04-14 at 19:51 -0700, Skuld wrote:
> > >> Dear Yi :
>
> > >> I get logcat message.It look like some code not found for preloading.
> > >> If I patch framework.patch, there aren't error and it can work.
> > >> Why it have preloading issue ?
>
> > >> /dalvikvm( 2077): Added shared lib /system/lib/libwebcore.so 0x0
> > >> D/dalvikvm( 2077): GC freed 459 objects / 26328 bytes in 9ms
> > >> D/dalvikvm( 2077): GC freed 475 objects / 38936 bytes in 9ms
> > >> E/Zygote  ( 2077): Class not found for preloading:
> > >> com.android.internal.policy.impl.PhoneLayoutInflater
> > >> E/Zygote  ( 2077): Class not found for preloading:
> > >> com.android.internal.policy.impl.PhoneWindow
> > >> E/Zygote  ( 2077): Class not found for preloading:
> > >> com.android.internal.policy.impl.PhoneWindow$1
> > >> E/Zygote  ( 2077): Class not found for preloading:
> > >> com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback
> > >> E/Zygote  ( 2077): Class not found for preloading:
> > >> com.android.internal.policy.impl.PhoneWindow$DecorView
> > >> E/Zygote  ( 2077): Class not found for preloading:
> > >> com.android.internal.policy.impl.PhoneWindow$PanelFeatureState
> > >> E/Zygote  ( 2077): Class not found for preloading:
> > >> com.android.internal.policy.impl.PhoneWindow$PanelFeatureState
> > >> $SavedState
> > >> E/Zygote  ( 2077): Class not found for preloading:
> > >> com.android.internal.policy.impl.PhoneWindow$PanelFeatureState
> > >> $SavedState$1
> > >> D/dalvikvm( 2077): GC freed 1027 objects / 77360 bytes in 9ms
> > >> D/dalvikvm( 2077): GC freed 292 objects / 22136 bytes in 9ms
> > >> D/dalvikvm( 2077): GC freed 314 objects / 18936 bytes in 9ms
> > >> D/dalvikvm( 2077): GC freed 419 objects / 20736 bytes in 10ms
> > >> D/dalvikvm( 2077): GC freed 14221 objects / 476944 bytes in 13ms
> > >> D/dalvikvm( 2077): GC freed 11164 objects / 455488 bytes in 14ms
> > >> D/dalvikvm( 2077): GC freed 7567 objects / 316288 bytes in 13ms
> > >> D/dalvikvm( 2077): GC freed 747 objects / 42024 bytes in 12ms
> > >> D/dalvikvm( 2077): GC freed 603 objects / 31128 bytes in 12ms
> > >> D/dalvikvm( 2077): GC freed 442 objects / 27712 bytes in 12ms
> > >> E/Zygote  ( 2077): Zygote died with exception
> > >> E/Zygote  ( 2077): java.lang.IllegalStateException: Missing class(es)
> > >> for preloading, update preloaded-classes
> > >> [com.android.internal.policy.impl.PhoneLayoutInflater
> > >> com.android.internal.policy.impl.PhoneWindow
> > >> com.android.internal.policy.impl.PhoneWindow$1
> > >> com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback
> > >> com.android.internal.policy.impl.PhoneWindow$DecorView
> > >> com.android.internal.policy.impl.PhoneWindow$PanelFeatureState
> > >> com.android.internal.policy.impl.PhoneWindow$PanelFeatureState
> > >> $SavedState com.android.internal.policy.impl.PhoneWindow
> > >> $PanelFeatureState$SavedState$1]
> > >> E/Zygote  ( 2077):    at
> > >> com.android.internal.os.ZygoteInit.preloadClasses(ZygoteInit.java:299)
> > >> E/Zygote  ( 2077):    at com.android.internal.os.ZygoteInit.main
> > >> (ZygoteInit.java:512)
> > >> E/Zygote  ( 2077):    at dalvik.system.NativeStart.main(Native Method)
> > >> D/AndroidRuntime( 2077): Shutting down VM
> > >> W/dalvikvm( 2077): threadid=3: thread exiting with uncaught exception
> > >> (group=0xa8007df8)
> > >> D/dalvikvm( 2077): DestroyJavaVM waiting for non-daemon threads to
> > >> exit
> > >> D/dalvikvm( 2077): DestroyJavaVM shutting VM down
> > >> D/dalvikvm( 2077): VM cleaning up
> > >> D/dalvikvm( 2077): LinearAlloc 0x0 used 2070036 of 4194304 (49%)
> > >> D/skia    ( 2077): purging 6K from font cache [1 entries]
> > >> D/AndroidRuntime( 2078):
> > >> D/AndroidRuntime( 2078): >>>>>>>>>>>>>> AndroidRuntime START
> > >> <<<<<<<<<<<<<<
> > >> D/AndroidRuntime( 2078): CheckJNI is ON
> > >> D/AndroidRuntime( 2078): --- registering native functions ---
> > >> I/Zygote  ( 2078): Preloading classes...
> > >> D/dalvikvm( 2078): GC freed 763 objects / 40584 bytes in 0ms
> > >> D/dalvikvm( 2078): GC freed 290 objects / 17288 bytes in 0ms
> > >> D/dalvikvm( 2078): GC freed 234 objects / 13968 bytes in 1ms
> > >> D/dalvikvm( 2078): GC freed 3834 objects / 182480 bytes in 3ms
> > >> D/dalvikvm( 2078): GC freed 12196 objects / 423408 bytes in 5ms
> > >> D/dalvikvm( 2078): GC freed 11296 objects / 455376 bytes in 6ms
> > >> D/dalvikvm( 2078): GC freed 9417 objects / 384240 bytes in 6ms
> > >> D/dalvikvm( 2078): GC freed 15439 objects / 527680 bytes in 8ms
> > >> D/dalvikvm( 2078): GC freed 10650 objects / 438760 bytes in 8ms
> > >> D/dalvikvm( 2078): GC freed 5527 objects / 225616 bytes in 7ms
> > >> D/dalvikvm( 2078): GC freed 348 objects / 36544 bytes in 6ms
> > >> D/dalvikvm( 2078): GC freed 778 objects / 46624 bytes in 9ms
> > >> D/dalvikvm( 2078): GC freed 321 objects / 36128 bytes in 9ms
> > >> D/dalvikvm( 2078): GC freed 490 objects / 29456 bytes in 9ms
> > >> D/dalvikvm( 2078): Trying to load lib /system/lib/libwebcore.so 0x0
> > >> D/dalvikvm( 2078): Added shared lib /system/lib/libwebcore.so 0x0
> > >> D/dalvikvm( 2078): GC freed 459 objects / 26328 bytes in 9ms
> > >> D/dalvikvm( 2078): GC freed 475 objects / 38936 bytes in 9ms
> > >> E/Zygote  ( 2078): Class not found for preloading:
> > >> com.android.internal.policy.impl.PhoneLayoutInflater
> > >> E/Zygote  ( 2078): Class not found for preloading:
> > >> com.android.internal.policy.impl.PhoneWindow
> > >> E/Zygote  ( 2078): Class not found for preloading:
> > >> com.android.internal.policy.impl.PhoneWindow$1
> > >> E/Zygote  ( 2078): Class not found for preloading:
> > >> com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback
> > >> E/Zygote  ( 2078): Class not found for preloading:
> > >> com.android.internal.policy.impl.PhoneWindow$DecorView
> > >> E/Zygote  ( 2078): Class not found for preloading:
> > >> com.android.internal.policy.impl.PhoneWindow$PanelFeatureState
> > >> E/Zygote  ( 2078): Class not found for preloading:
> > >> com.android.internal.policy.impl.PhoneWindow$PanelFeatureState
> > >> $SavedState
> > >> E/Zygote  ( 2078): Class not found for preloading:
> > >> com.android.internal.policy.impl.PhoneWindow$PanelFeatureState
> > >> $SavedState$1
>
> > >> On 4月10日, 下午11時48分, Yi Sun <[email protected]> wrote:
> > >> > What kind of x86 PC are you using? The current building steps posted on
> > >> > the web site is only verified for VirtualBOX.
> > >> > Also, you need to use all the patches otherwise, you will hit on the
> > >> > per-load unsupport class issue, battery file path issue and the crash
> > >> > caused by wrong init.rc.
> > >> > Please also send the logcat output if you can.
> > >> > Thanks
> > >> > Yi
>
> > >> > On Fri, 2009-04-10 at 03:12 -0700,Skuldwrote:
> > >> > > Dear Yi:
>
> > >> > > Thank you for your e2fsprogs.patch.
> > >> > > It's work and produce installer_img.
> > >> > > I install it on x86 PC and boot it, but it can't boot android system
> > >> > > (show android logo).
> > >> > > I use console mode and check all process.
> > >> > > I discover zygote service don't run.
>
> > >> > > How to fix it?
> > >> > > My kernel can work on android in 2009/03/24
>
> > >> > > On 4月10日, 下午2時18分, Yi Sun <[email protected]> wrote:
> > >> > > > FYI-- The powermanagement service is still not working correctly on
> > >> > > > VirtualBox. In certain cases, it tells me that the screen is off.
> > >> > > > Yi
>
> > >> > > > On Thu, 2009-04-09 at 22:51 -0700, Yi Sun wrote:
> > >> > > > > Ok, I have done with all the patches I have collected from this 
> > >> > > > > list for
> > >> > > > > building x86. I tested them with a fresh check out of cupcake on 
> > >> > > > > a
> > >> > > > > Virtualbox and it is ok. I will start to work on rebuild the 
> > >> > > > > drivers and
> > >> > > > > kernel for the real EeePC device over the weekend and hope I 
> > >> > > > > could get
> > >> > > > > it done before next Monday. After that I will post the binaries 
> > >> > > > > and try
> > >> > > > > to check in the code.
>
> > >> > > > > I have posted the patch set in
> > >> > > > >http://code.google.com/p/patch-hosting-for-android-x86-support/
> > >> > > > > I also posted a wiki page for how to build a boot-able image 
> > >> > > > > with latest
> > >> > > > > cupcake tree. It is base on the instructions posted by Lim and 
> > >> > > > > Chen Yang
> > >> > > > > in the list. Please let me know if I missed anything and made 
> > >> > > > > anything
> > >> > > > > wrong.
>
> > >> > > > > I hope that we can have a central place to capture all the known 
> > >> > > > > issues
> > >> > > > > and solutions/patches so that people can feel easier on their 
> > >> > > > > life. The
> > >> > > > > mailing list should be used to discuss the new issues not to 
> > >> > > > > repeat the
> > >> > > > > same problem again and again.
> > >> > > > > Because I can only do this in my private time. So bare with me, 
> > >> > > > > if I
> > >> > > > > missed something or slow.If you want to join this project, 
> > >> > > > > please let me
> > >> > > > > know, I can always add you to member list.
>
> > >> > > > > Credit:
> > >> > > > > * Dima Zavin<[email protected]>, the original guy ported the 
> > >> > > > > Android to
> > >> > > > > EeePC 701
> > >> > > > >   *
>
> ...
>
> leggi tutto
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to