Coder Social home page Coder Social logo

devices-base_cm's Introduction

English | 简体中文

devices/base_cm

Base device for CyanogenMod/LineageOS 13.0, as a basis for all the other CyanogenMod/LineageOS 13.0 devices. Currently the patch is made out based on the snapshot version of cm-13.0-ZNH5Y, and will be updated synchronicly as cm-13.0 will be.

Usage of the ‘base_cm’

1. Downloading

To reduce the repository ‘repo’’s size,we haven’t put ‘base_cm’ into the default download list of repo.

Therefore we recommend downloading via git clone. First time to download ,cd into the directory ‘devices’, then run:

git clone https://github.com/FlymeOS/devices-base_cm.git --single-branch -b marshmallow-6.0

Of course you can modify ‘ mainfest/default.xml ‘ to add ‘base_cm’ into repo’s download list. Type:

mv ./devices-base_cm ./base_cm

That will rename the cloned git repository as ‘base_cm’.From now on to update ‘base_cm’ just cd into the directory devices/base_cm ,then type:

git pull origin marshmallow-6.0

This will begin downloading the updates of ‘base-cm’. If you don’t use git clone,you will need download the complete zip package to overwrite thus updating,which is not convenient.

2. Using

After downloading it properly,you can use the same operations as you use ‘base’ to make a patch,only you need to add an extra configuration.

To use the specified ‘base’’to patch,you’ll need to configure the Makefile under your phone model folder.That is:

BASE :=

There are example introductions in the Makefile both under base and base cm,to which you refer then configure it in a right way.

For example,you rename the downloaded folder as base_cm,the set it as :

BASE :=base_cm

Once you finished configuring,you can use make patchall and make upgrade respectively to make a first-time patching and updates.

What you need to pay attention to:

To run ‘base_cm’ properly it needs to customize some APKs or some resources files,which,however haven’t been included in the patchall and upgrade.That’s why you have to check the files that customize APKs or resource files and their configurations,write config files and config info into your phone model folder together.

E.g. Different manufacturers will modify the interface in the binder file ITelephony.aidl or add some extensions,so it is needed to make some customizations to the implemention part of the binder’s interface,which is usually located in the TeleService.apk’s PhoneInterfaceManager file.Since ‘base_cm’ has done customizing changes to TeleService.apk,you need copy the TeleService folder to your phone model folder and set relevant configs in the Makefile.

Similar operations are acceptable for the customized APKs or resource files in the ‘base_cm’.

See reference documentations if you want to know more about how to customize APKs or resource files.

devices-base_cm's People

Contributors

liberations avatar moposx avatar zoujunhua avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

devices-base_cm's Issues

SystemUI crashing after boot (Activity Manager?)

08-11 01:54:05.439 3454 6575 E ActivityManager: Activity Manager Crash 08-11 01:54:05.439 3454 6575 E ActivityManager: java.lang.IllegalArgumentException: Unknown service start result: -1 08-11 01:54:05.439 3454 6575 E ActivityManager: at com.android.server.am.ActiveServices.serviceDoneExecutingLocked(ActiveServices.java:2005) 08-11 01:54:05.439 3454 6575 E ActivityManager: at com.android.server.am.ActivityManagerService.serviceDoneExecuting(ActivityManagerService.java:16500) 08-11 01:54:05.439 3454 6575 E ActivityManager: at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:1046) 08-11 01:54:05.439 3454 6575 E ActivityManager: at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2682) 08-11 01:54:05.439 3454 6575 E ActivityManager: at com.android.server.am.FlymeExtActivityManagerService.onTransact(FlymeExtActivityManagerService.java) 08-11 01:54:05.439 3454 6575 E ActivityManager: at android.os.Binder.execTransact(Binder.java:453) 08-11 01:54:05.439 7226 7226 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:-1 android.content.ContextWrapper.startService:587 android.content.ContextWrapper.startService:587 com.meizu.safe.service.MzSecMainService.a:83 com.meizu.safe.blockService.service.BootReceiver.a:26 08-11 01:54:05.441 3454 6575 E ActivityManager: Service done with onDestroy, but executeNesting=2: ServiceRecord{2578a56 u0 com.meizu.safe/.blockService.service.SDKUpdateService} 08-11 01:54:05.441 3454 6575 E ActivityManager: android.util.Log$TerribleFailure: Service done with onDestroy, but executeNesting=2: ServiceRecord{2578a56 u0 com.meizu.safe/.blockService.service.SDKUpdateService} 08-11 01:54:05.441 3454 6575 E ActivityManager: at android.util.Log.wtf(Log.java:291) 08-11 01:54:05.441 3454 6575 E ActivityManager: at android.util.Slog.wtfStack(Slog.java:98) 08-11 01:54:05.441 3454 6575 E ActivityManager: at com.android.server.am.ActiveServices.serviceDoneExecutingLocked(ActiveServices.java:2021) 08-11 01:54:05.441 3454 6575 E ActivityManager: at com.android.server.am.ActivityManagerService.serviceDoneExecuting(ActivityManagerService.java:16500) 08-11 01:54:05.441 3454 6575 E ActivityManager: at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:1046) 08-11 01:54:05.441 3454 6575 E ActivityManager: at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2682) 08-11 01:54:05.441 3454 6575 E ActivityManager: at com.android.server.am.FlymeExtActivityManagerService.onTransact(FlymeExtActivityManagerService.java) 08-11 01:54:05.441 3454 6575 E ActivityManager: at android.os.Binder.execTransact(Binder.java:453)

log.txt

android.fg FC due to missing resource

from logcat:

03-27 08:10:56.812 1767 1830 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: android.fg
03-27 08:10:56.812 1767 1830 E AndroidRuntime: android.content.res.Resources$NotFoundException: String array resource ID #0x0
03-27 08:10:56.812 1767 1830 E AndroidRuntime: at android.content.res.Resources.getStringArray(Resources.java:569)
03-27 08:10:56.812 1767 1830 E AndroidRuntime: at org.cyanogenmod.internal.util.QSUtils.translateDynamicQsTileSpecToIndex(QSUtils.java:188)
03-27 08:10:56.812 1767 1830 E AndroidRuntime: at org.cyanogenmod.internal.util.QSUtils.getDynamicQSTileResIconId(QSUtils.java:153)
03-27 08:10:56.812 1767 1830 E AndroidRuntime: at com.android.server.usb.UsbDeviceManager$UsbHandler.publishAdbCustomTile(UsbDeviceManager.java:935)
03-27 08:10:56.812 1767 1830 E AndroidRuntime: at com.android.server.usb.UsbDeviceManager$UsbHandler.updateAdbNotification(UsbDeviceManager.java:895)
03-27 08:10:56.812 1767 1830 E AndroidRuntime: at com.android.server.usb.UsbDeviceManager$UsbHandler.handleMessage(UsbDeviceManager.java:735)
03-27 08:10:56.812 1767 1830 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
03-27 08:10:56.812 1767 1830 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
03-27 08:10:56.812 1767 1830 E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:61)
03-27 08:10:56.812 1767 1830 E AndroidRuntime: at com.android.server.ServiceThread.run(ServiceThread.java:46)

Flyme 6?

I'm not here to ask any ETA, but I have to ask, can we expect this repo to be updated to Flyme 6 patchrom?

installd FC due to invalid apk path

from logcat:

03-27 08:00:43.002 268 268 E installd: eof
03-27 08:00:43.002 268 268 E installd: failed to read size
03-27 08:01:55.985 268 268 E installd: invalid apk path '/system/framework/org.cyanogenmod.platform-res.apk' (bad prefix)

[Low priority?] Missing fonts in /system/fonts

from logcat:

03-27 08:00:23.078 291 291 E Minikin : addFont failed to create font /system/fonts/Padauk.ttf
03-27 08:00:23.100 291 291 E Minikin : addFont failed to create font /system/fonts/NanumGothic.ttf
03-27 08:00:23.100 291 291 E Minikin : addFont failed to create font /system/fonts/DroidSansFallback.ttf
03-27 08:00:23.100 291 291 E Minikin : addFont failed to create font /system/fonts/MTLmr3m.ttf

[FIXED] [REFERENCE] Broken patch on current LineageOS 13 builds (20/10)

At some point, the patch in com.android.server.wm.WindowManagerService.addWindow broke. Causing it to not boot anymore, the addWindow method is being rejected at boot-time.

Here is the paste of the output on logcat: https://ghostbin.com/paste/w5gt3

TLDR; [0x4BD] monitor-exit on non-object (Undefined)

Here is a tree to test with: https://gitlab.com/h4ndshake/flyme_devices_motorola_ghost
TLDR²; (The method is located at 14478-16533) https://gitlab.com/h4ndshake/flyme_devices_motorola_ghost/blob/72969ae206f5c3b7d79229858ad7d0dd574cb4e1/services.jar.out/smali/com/android/server/wm/WindowManagerService.smali

fix cm error

经过排查,cm文件是少了PolicyControl$Filter.smali和PolicyControl.smali

为什么 还是基于cm12的不更新吗?

Flyme 6 不是早更新了吗 6.0 这个base_cm 不应该也更新一下 我看还算12.1的....
难道说 6.0 CM 还是可以用这个 基于cm 12.1的 所以不更新????

main crashing with NullPointerException

This seems to be related to two problems..

from logcat:

03-27 08:10:57.066 3297 3297 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
03-27 08:10:57.066 3297 3297 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'void android.webkit.IWebViewUpdateService.notifyRelroCreationCompleted(boolean, boolean)' on a null object reference
03-27 08:10:57.066 3297 3297 E AndroidRuntime: at android.webkit.WebViewFactory$RelroFileCreator.main(WebViewFactory.java:491)
03-27 08:10:57.066 3297 3297 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
03-27 08:10:57.066 3297 3297 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
03-27 08:10:57.066 3297 3297 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
03-27 08:10:57.068 3297 3297 E AndroidRuntime: Error reporting crash
03-27 08:10:57.068 3297 3297 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'void android.app.IActivityManager.handleApplicationCrash(android.os.IBinder, android.app.ApplicationErrorReport$CrashInfo)' on a null object reference
03-27 08:10:57.068 3297 3297 E AndroidRuntime: at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:95)
03-27 08:10:57.068 3297 3297 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
03-27 08:10:57.068 3297 3297 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.