[DEV][P500][MIUI] MiUiv4 - ALPHA1 - ROM based on 4.0.3!

mastershefis

Senior Member
Mar 16, 2011
756
920
0
Amsterdam
Downloading it ;)
Can you tell me what changes you made so far in framework?
I did added some java sources to it

public class Policy implements IPolicy {
private static final String TAG = "PhonePolicy";

private static final String[] preload_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",
};

static {
// For performance reasons, preload some policy specific classes when
// the policy gets loaded.
for (String s : preload_classes) {
try {
Class.forName(s);
} catch (ClassNotFoundException ex) {
Log.e(TAG, "Could not preload class for phone policy: " + s);
}
}
}

public PhoneWindow makeNewWindow(Context context) {
return new PhoneWindow(context);
}

public PhoneLayoutInflater makeNewLayoutInflater(Context context) {
return new PhoneLayoutInflater(context);
}

public PhoneWindowManager makeNewWindowManager() {
return MiuiClassFactory.createPhoneWindowManager();
}
}
 

vlt96

Senior Member
Oct 9, 2011
3,592
915
0
Weird, we never had MIUI GB version, but we have ICS... nice! Does YouTube browser and keyboard (placement) work?

Sent from my LG-P500
 

sweetnsour

Senior Member
May 11, 2011
2,629
2,465
0
Do we have the real deal (as in is this an actual port) or is the following still a problem (popdog had tried to port MIUI but couldn't because of the following):

Well i'm back... finally finished my exams and got some time for myself.

But i have a bit of bad news. I've been studying android and how it's build and how it works and i'm afraid this might be an impossible port to make for now. I've looked into the Galaxy 3 port and it's not an actual port. It's just the framework. So it is possible to port apps from the rom but they might not work fully because of incompatible libs.
Now about the libs, they are compiled specifically for a type of processor (in miui case armv7) which have some instructions built in. While armv7 may run armv6 libs it's not possible the other way around. So even if we got the phone to boot, and got the launcher and a few miui apps running it wouldn't be miui.
I see that SWEATTAIMI is still working to complete the port of the framework and i wish him the best of luck but i will have to step down since i am working on other android projects that are more likely to come to an end than this.
Either way, nice job!