[XDA-University] proudh0n:
[MENTION=4435346]LastStandingDroid[/MENTION] I see that you have some knowledge about this process and I would like to know if you could lend me a hand in something.

I've always lover Hydrogen OS Launcher and the only one I knew that was ported has only dead links and it doesn't work on Android 7.1.1 (I got a valid link from 4PDA, it starts but it's very buggy) so I decided to try to port it by myself.

I think I have fixed some missing libraries and framework files but the app still FC. Looking at the logcat it seems like a field is missing but I have no idea how should I proceed to fix this. Here is the logcat.

12-26 18:37:46.573 I/ActivityManager(1146): Start proc 24465:net.oneplus.launcher/u0a137 for activity net.oneplus.launcher/.Launcher
12-26 18:37:46.654 W/System (24465): ClassLoader referenced unknown path: /data/app/net.oneplus.launcher-1/lib/arm64
12-26 18:37:46.668 D/LauncherProvider(24465): onCreate
12-26 18:37:46.676 D/AndroidRuntime(24465): Shutting down VM
12-26 18:37:46.678 E/AndroidRuntime(24465): FATAL EXCEPTION: main
12-26 18:37:46.678 E/AndroidRuntime(24465): Process: net.oneplus.launcher, PID: 24465
12-26 18:37:46.678 E/AndroidRuntime(24465): java.lang.NoSuchFieldError: No field REGION of type Ljava/lang/String; in class Landroid/os/Build; or its superclasses (declaration of 'android.os.Build' appears in /system/framework/framework.jar)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at android.os.Build$REGION_CODES.<clinit>(Build.java:717)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at android.util.OpFeatures.<clinit>(OpFeatures.java:202)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at android.util.OpFeatures.isSupport(OpFeatures.java)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at com.oneplus.sdk.utils.OpFeatures.isSupport(OpFeatures.java:134)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at net.oneplus.launcher.oos.StyleManager.getTableType(StyleManager.java:249)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at net.oneplus.launcher.oos.StyleManager.isSimplifiedLayout(StyleManager.java:259)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at net.oneplus.launcher.oos.StyleConfigurationLoader.load(StyleConfigurationLoader.java:57)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at net.oneplus.launcher.oos.StyleManager.<init>(StyleManager.java:36)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at net.oneplus.launcher.oos.StyleManager.init(StyleManager.java:29)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at net.oneplus.launcher.LauncherProvider.onCreate(LauncherProvider.java:112)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at android.content.ContentProvider.attachInfo(ContentProvider.java:1751)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at android.content.ContentProvider.attachInfo(ContentProvider.java:1726)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at android.app.ActivityThread.installProvider(ActivityThread.java:5860)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at android.app.ActivityThread.installContentProviders(ActivityThread.java:5452)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5391)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at android.app.ActivityThread.-wrap2(ActivityThread.java)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1545)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at android.os.Handler.dispatchMessage(Handler.java:102)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at android.os.Looper.loop(Looper.java:154)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at android.app.ActivityThread.main(ActivityThread.java:6126)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at java.lang.reflect.Method.invoke(Native Method)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
12-26 18:37:46.678 E/AndroidRuntime(24465):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
12-26 18:37:46.680 W/ActivityManager(1146): Force finishing activity net.oneplus.launcher/.Launcher
12-26 18:37:46.685 I/ActivityManager(1146): Clearing package preferred activities from net.oneplus.launcher

Many thanks, I hope I can port this launcher correctly :)