[ROM][OFFICIAL][Peregrine][7.X] LineageOS 14.1

Search This thread

Kayant

Senior Member
Jul 14, 2011
1,861
4,150

mrLoma

Senior Member
Oct 9, 2016
213
105
For who's interested;
Google camera works in cm14.1
GoogleCamera_4.1.006.126161292-41003493
Although sometimes when you switch between photos and videos the camera is strangely rotated 90° and stretched, but it's fixed by switching back and forth.

The newer one crashes on starting off the app after setting your permissions
4.2.022.135443920-41011413
 

sevenrock

Senior Member
Nov 27, 2012
664
1,097
Motorola Defy
Moto G
Hi,

I am testing cm14.1 using this local manifest:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>

 <project name="CyanogenMod/android_device_motorola_peregrine" path="device/motorola/peregrine" remote="github" revision="cm-14.1"/>
 <project name="CyanogenMod/android_device_motorola_msm8226-common" path="device/motorola/msm8226-common" remote="github" revision="cm-14.1"/>
 <project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-14.1"/>
 <project name="CyanogenMod/android_kernel_motorola_msm8226" path="kernel/motorola/msm8226" remote="github" revision="cm-14.1"/>
 <project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="cm-14.1"/>
 <project name="TheMuppets/proprietary_vendor_qcom_binaries" path="vendor/qcom/binaries" remote="github" revision="cm-14.1"/>

</manifest>
and these patches:
Code:
    python vendor/cm/build/tools/repopick.py \
    167370 167456 167464 167473 167474 167484 167486 167490 167621 167634 167654 168364 168923 168929 168946 168947 168948 169214 169255
    python vendor/cm/build/tools/repopick.py -t moto8226-sdcardfs
When using the app aarddict it fails to scan the sdcard for wikipedia files:
Code:
11-06 15:20:14.069  3742  3742 D itkach.aard2.SlobDescriptorList: beginUpdate
11-06 15:20:14.069  3742  3742 D itkach.aard2.SlobDescriptorList: endUpdate, changed? false
11-06 15:20:14.082  3827  3827 W Thread-9: type=1400 audit(0.0:38): avc: denied { read } for uid=10091 name="/" dev="rootfs" ino=1 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0
11-06 15:20:14.084  3742  3827 D DictionaryFinder: starting dictionary discovery
11-06 15:20:14.084  3742  3827 D DictionaryFinder: Scanning /
11-06 15:20:14.089  3742  3827 D DictionaryFinder: dictionary discovery took 5
11-06 15:20:14.128  3742  3742 D itkach.aard2.SlobDescriptorList: beginUpdate
11-06 15:20:14.128  3742  3742 D itkach.aard2.SlobDescriptorList: endUpdate, changed? false
with a selinux-related error. How to fix it?

EDIT: Aarddict explicitly scans "/":
https://github.com/itkach/aard2-android/blob/master/src/itkach/aard2/DictionaryFinder.java#L39
RIght now I am trying to revert the rootfs-related changes in https://github.com/CyanogenMod/andr...40c4#diff-24173c425f4e76c041dede0c6e5fe8aaL75
 
Last edited:

pofadda

Member
May 5, 2011
44
2
Bristol
Most efficient set of GApps to install for this ROM?

I have been installing CM13 snapshot and nightlies for a few iterations and working out what subset of GApps Aroma will fill /system most usefully has always been hit-and-miss. What frustrates is that, in spite of 'optimising' the apks so that the chosen subset's sizes will just fit /system as per the numbers in the log.txts, the next iteration usually fails again until I shrink the subset a lot more. Yet cleverer people seem to get the directory jam-packed and slack free. What am I missing, please?

Repartition the phone? My knowledge of partitioning is limited to Windows fdisk and to gparted and space in the device seems pretty tightly packed so I suspect it would be a pretty pointless 'robbing-Peter-to-pay-Paul' situation anyway.
.
It did occur to me that this is probably a pointless exercise and I should leave /system unoptimised on the grounds that the updates will come thick and fast shortly thereafter and fill up the userspace anyway. Is this glum space-waste inevitable? There is little enough free space on my Peregrine as it is.

What is the wisest course, please?
 
  • Like
Reactions: aha360

tpa-moto

Senior Member
Sep 11, 2015
168
129
When using the app aarddict it fails to scan the sdcard for wikipedia files:
Code:
11-06 15:20:14.069  3742  3742 D itkach.aard2.SlobDescriptorList: beginUpdate
11-06 15:20:14.069  3742  3742 D itkach.aard2.SlobDescriptorList: endUpdate, changed? false
11-06 15:20:14.082  3827  3827 W Thread-9: type=1400 audit(0.0:38): avc: denied { read } for uid=10091 name="/" dev="rootfs" ino=1 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0
11-06 15:20:14.084  3742  3827 D DictionaryFinder: starting dictionary discovery
11-06 15:20:14.084  3742  3827 D DictionaryFinder: Scanning /
11-06 15:20:14.089  3742  3827 D DictionaryFinder: dictionary discovery took 5
11-06 15:20:14.128  3742  3742 D itkach.aard2.SlobDescriptorList: beginUpdate
11-06 15:20:14.128  3742  3742 D itkach.aard2.SlobDescriptorList: endUpdate, changed? false
with a selinux-related error. How to fix it?

EDIT: Aarddict explicitly scans "/":
https://github.com/itkach/aard2-android/blob/master/src/itkach/aard2/DictionaryFinder.java#L39
RIght now I am trying to revert the rootfs-related changes in https://github.com/CyanogenMod/andr...40c4#diff-24173c425f4e76c041dede0c6e5fe8aaL75

I think you should fix the app rather than change some SELinux policy. This behavior is wanted, the app shouldn't read "/". Why would an app such as that one need to read "/" anyway? If it's looking for some user created file, it can just use things such as getExternalStorageDirectory() or look into some standard paths. There's no need to scan the entire device.

PS: I think the commit you are looking for is cbf7ba18db3c607834d3f8d0745dae99f3e2a4ec in system/coresepolicy, but I could be wrong.
 
Last edited:
  • Like
Reactions: sevenrock

Zyquil

Senior Member
May 13, 2013
208
59
Welp. I got hit by the no sim problem and com.android.phone crashing by build 11-06 coming from build 11-04. Restoring did me no dice either as well as reinserting the sim card. Cba doing a clean wipe until in a few hours
If anyone has a solution without clean installing I'd gladly appreciate it :)
 

matthias1976

Senior Member
May 25, 2013
385
81
OWL
Samsung Galaxy Ace II
Moto G
Welp. I got hit by the no sim problem and com.android.phone crashing by build 11-06 coming from build 11-04. Restoring did me no dice either as well as reinserting the sim card. Cba doing a clean wipe until in a few hours
If anyone has a solution without clean installing I'd gladly appreciate it :)
only old backup worked for me.
installing older zip wont work.
I have tested the upgrade and it seems to work fine upgrading from CM13 to CM14.1 with the 4 Nov build.
dirty flash from cm13 is working but dirty flash from cm14.1 not !?
 
  • Like
Reactions: aha360

aha360

Senior Member
Jan 10, 2014
585
414
Welp. I got hit by the no sim problem and com.android.phone crashing by build 11-06 coming from build 11-04. Restoring did me no dice either as well as reinserting the sim card. Cba doing a clean wipe until in a few hours
If anyone has a solution without clean installing I'd gladly appreciate it :)

only old backup worked for me.
installing older zip wont work.

dirty flash from cm13 is working but dirty flash from cm14.1 not !?
Well, after doing a factory reset and installing the 20161106 UNOFFICIAL NIGHTLY ZIP, whilst the installation was successful, I now get app crashes (force close) on the stock/AOSP/Google Dialer and whenever I tried to place a phone call through the stock dialer or a third-party dialer app like ASUS Contacts/Dialer, the app does not present to you the in-call screen with options to end the call and so on, and therefore, I feel that any ZIP/ROM after 20161103 is deemed buggy.

Here's a logcat file for those who want to try and figure out what the problem is.
 

Attachments

  • logcat_and_device_info.zip
    104.2 KB · Views: 4

khalmika

Member
Sep 30, 2016
49
6
27
Well, i'm going to upgrade from cm14 to 14.1... I read something about an upgrade that allow us to flash it without wiping data?
Can i do that? Or should I do it old school style? (Backup all with titanium, wipe, flash and restore) :)
 
Well, i'm going to upgrade from cm14 to 14.1... I read something about an upgrade that allow us to flash it without wiping data?
Can i do that? Or should I do it old school style? (Backup all with titanium, wipe, flash and restore) :)

better to have a backup.

Sent from my peregrine using XDA Labs

---------- Post added at 02:41 PM ---------- Previous post was at 02:38 PM ----------

Well, after doing a factory reset and installing the 20161106 UNOFFICIAL NIGHTLY ZIP, whilst the installation was successful, I now get app crashes (force close) on the stock/AOSP/Google Dialer and whenever I tried to place a phone call through the stock dialer or a third-party dialer app like ASUS Contacts/Dialer, the app does not present to you the in-call screen with options to end the call and so on, and therefore, I feel that any ZIP/ROM after 20161103 is deemed buggy.

Here's a logcat file for those who want to try and figure out what the problem is.

had this problem when I got both cm & Google dialer installed, try to disable cm dialer.

Sent from my peregrine using XDA Labs
 

aha360

Senior Member
Jan 10, 2014
585
414
better to have a backup.

Sent from my peregrine using XDA Labs

---------- Post added at 02:41 PM ---------- Previous post was at 02:38 PM ----------



had this problem when I got both cm & Google dialer installed, try to disable cm dialer.

Sent from my peregrine using XDA Labs
Problem is that even with the stock dialer disabled, I still have problems with calling people and receiving calls as there is no in-call UI/display whatsoever. I even tried to have just the AOSP dialer installed but that problem still exists.

Therefore, I reverted to the 20161103 install that I had backed up on my phone.
 

khalmika

Member
Sep 30, 2016
49
6
27
i have a problem.. I actually dirty flashed 14.1 (2016/11/06) over 14.0 (2016/10/27) - I have a full backup of this last one - and SIM is not detected (and process com.android.phone FC)... what should I do? I'm about to wipe all data and try this out...
 

aha360

Senior Member
Jan 10, 2014
585
414
i have a problem.. I actually dirty flashed 14.1 (2016/11/06) over 14.0 (2016/10/27) - I have a full backup of this last one - and SIM is not detected (and process com.android.phone FC)... what should I do? I'm about to wipe all data and try this out...

I was the same with version 04 and did a clean install and fix

Don't bother - you'll end up not being able to call people and receive calls, even if you try your hardest to implement Android Custom ROM Safe Practices.

My advice: hold off until there's further updates with that problem fixed, though what you ultimately do after reading this is up to you - don't say I didn't warn you.
 
Last edited:

Pupet_Master

Senior Member
Nov 10, 2014
1,753
779
Daedalus:GlobalNode:HUB
Nah sure what's going on there will sim card stuff. As my phone doesn't have a working sim ATM j don't notice it :p. I would guess it may due to some changes not being fully merged in yet.

Sent from my ONEPLUS A3003 using Tapatalk
Hey Kayant, great choice of new phone btw, will you dev to the OnePlus 3 too? (as i'm about to buy one too, 399 dollars is a bargain)
 
  • Like
Reactions: aha360

Zyquil

Senior Member
May 13, 2013
208
59
only old backup worked for me.
installing older zip wont work.

dirty flash from cm13 is working but dirty flash from cm14.1 not !?
Yep I tried a backup too bad I only had system backed up. Nasty habit of leaving out data when just dirty flashing. I'll make data backups via twrp next time.
Well, after doing a factory reset and installing the 20161106 UNOFFICIAL NIGHTLY ZIP, whilst the installation was successful, I now get app crashes (force close) on the stock/AOSP/Google Dialer and whenever I tried to place a phone call through the stock dialer or a third-party dialer app like ASUS Contacts/Dialer, the app does not present to you the in-call screen with options to end the call and so on, and therefore, I feel that any ZIP/ROM after 20161103 is deemed buggy.

Here's a logcat file for those who want to try and figure out what the problem is.
Anything related to the sim will crash as far as I could tell. I ended up clean installing 14.1 11-03
better to have a backup.

Sent from my peregrine using XDA Labs

---------- Post added at 02:41 PM ---------- Previous post was at 02:38 PM ----------



had this problem when I got both cm & Google dialer installed, try to disable cm dialer.

Sent from my peregrine using XDA Labs
CM Dialer isnt on the applist of 14.1 :confused:
 
  • Like
Reactions: aha360

Top Liked Posts

  • There are no posts matching your filters.
  • 71
    http%3A%2F%2Fi.imgur.com%2F2okPze5.png


    LineageOS is a free, community built, aftermarket firmware distribution of Android 7.1 (Nougat), which is designed to increase performance and reliability over stock Android for your device.

    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.


    What's working :

    • Boots
    • RIL (Calls, SMS, Data)
    • Wifi
    • Bluetooth
    • Camera ( Videos And Photos )
    • Video Playback
    • Audio ( Record and Playback )
    • Sensors
    • Flash
    • Led

    Instructions :
    • Ensure your on latest twrp
    • Download the latest build and gapps if you want
    • Reboot to recovery
    • Flash the latest build and gapps(optional)
    • Reboot

    Downloads :
    Builds : https://download.lineageos.org/peregrine
    Google Apps: http://opengapps.org

    Reporting Bugs
    Grab a logcat and here right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
    If it is a random reboot, grab /proc/last_kmsg. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
    If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log
    Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.

    Credits
    • @LuK1337 : For being the boss :p :D
      For donating his server for our device builds and continued to support moto msm8226 devices
    • @luca020400 : As he is co-maintainer
    • Gabriele M for continued support
    • @Somcom3X : Help during development
    • @kaustubh88 and @crpalmer : Kernel Tree and Patches
    • Motorola : For providing the Kernel Source Code
    • CM Team


    Donations :

    If you have some spare bucks and want to say thanks in another way donate to these awesome people -
    LuK1337: http://xdaforums.com/donatetome.php?u=5075128
    luca020400: http://xdaforums.com/donatetome.php?u=5778309



    XDA:DevDB Information
    LineageOS, ROM for the Moto G

    Contributors
    Kayant, LuK1337, luca020400, skaveelicious, Somcom3X, crpalmer, Intervigil
    Source Code: https://github.com/LineageOS

    ROM OS Version: 7.x Nougat
    ROM Kernel: Linux 3.4.x
    Based On: LineageOS

    Version Information
    Status: Beta

    Created 2016-09-26
    Last Updated 2017-01-30
    13
    How to build & update this rom yourself: Updated for Ubuntu 20.04+ based systems.

    For those members wishing to build this rom for themselves and keep it updated, The following roomservice.xml file is what I've been using:

    <?xml version="1.0" encoding="UTF-8"?>
    <manifest>
    <project name="LineageOS/android_device_motorola_peregrine" path="device/motorola/peregrine" remote="github" revision="cm-14.1" />
    <project name="LineageOS/android_device_motorola_msm8226-common" path="device/motorola/msm8226-common" remote="github" revision="cm-14.1" />
    <project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-14.1" />
    <project name="LineageOS/android_kernel_motorola_msm8226" path="kernel/motorola/msm8226" remote="github" revision="cm-14.1" />
    <project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="cm-14.1" />
    <project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" revision="cm-14.1"/>
    </manifest>

    * Follow the directions from here for setting up the build environment: Build for peregrine
    - * Do not go any further in setting up your build environment than including the Configure git instructions. After setting up the git configuration, ignore the rest of the instructions posted there and follow the guide posted here.

    Note: If Building on an Ubuntu 20.04 or higher versions (e.g., Linux Mint 20.0) or newer based Linux versions show the content of the following:
    To get around all the errors I encountered I had to do the following:

    In the "Software Manager" confirm all the following are installed to check your installation method

    - openjdk-8-jdk
    - openjdk-8-jdk-headless
    - openjdk-8-jre
    - openjdk-8-jre-headless

    with no environment path or any other path you might have set for Java.

    Use the Switch Manager command to set Python2 as the default version (refer to this how to - https://linuxconfig.org/ubuntu-20-04-python-version-switch-manager)

    Insert (if not already included) export LC_ALL=C and export CCACHE_EXEC=/usr/bin/ccache in, save it and source it for the /.bashrc file.

    If you haven't already done so, make sure you install the additional language packs noted in the System Reports.

    That should get you going to successfully build for LineageOS on any Ubuntu 20.04 based system


    Note: If Building on an Ubuntu 22.04 or higher versions (e.g., Linux Mint 21.1) or newer based Linux versions show the content of the following:
    You will most likely run into YYLLOC definition errors in the kernel build process during the build. In order to avoid this, the working solution is to install gcc-9 & g++-9. Refer to the following article to install the needed versions and use the Switch Manager to set the default version of GCC to 9: https://linuxconfig.org/how-to-swit...-versions-on-ubuntu-22-04-lts-jammy-jellyfish


    Recommended:
    - Seriously consider installing Linux Mint - Xfce (for example), in a dual-boot set-up before setting up your build environment. Your builds will run much faster with fewer problems versus setting up your build environment in VirtualBox!
    - add an 8GB swap file (particularly important if running low ram, e.g., 4GB).

    Once you've set up the android build environment, initialize the LineageOS source repository inside a new folder labelled, for example, LineageOS_14.1 with the following command:
    repo init -u git://github.com/LineageOS/android.git -b cm-14.1

    To add the roomservice.xml file
    above to the .repo folder (Note: if the .repo folder is not visible in your LineageOS_14.1 folder after initializing, try Ctrl H to make it visible):
    - make a new folder inside the .repo folder and label the new folder: local_manifests
    - create an empty document inside the local_manifests folder and label it roomservice.xml
    - copy the roomservice.xml file contents exactly as above and paste it into the document, making sure you save it.

    Then, in the LineageOS_14.1 folder, open a command prompt, type the following and enter it:
    repo sync --force-sync -c -j1
    (Note: j1 can be a higher number depending on the number of cores your processor has - the default is j4 but I have had the fewest problems using j1 initially).

    Recomended:
    - Turn on caching to speed up your builds:
    export USE_CCACHE=1 (add the line to your ~/.bashrc file using this command, for example: sudo nano ~/.bashrc to open the file, before adding the line and saving it). Then update your environment using this command: source ~/.profile
    - In the LineageOS_14.1 folder you created open a command prompt and type & enter the following:
    prebuilts/misc/linux-x86/ccache/ccache -M 50G this will permanently set your cache to 50GB and speed up your builds hugely. Only has to be done once.
    - Configure Jack by adding this as well to your ~/.bashrc file, the same way that you set up using ccache:
    export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xms4G -Xmx4G" Then update your environment using this command: source ~/.profile
    - Note: If running very low ram (e.g., 4 GB), set jack.server.max-service=1 in the .jack-server folder in /home/"user-name"/.jack-server/config.properties (open the config.properties file with a text editor, make the change and save it).
    * If experiencing out of memory issues/stalls etc. building with jack-server/Java and you have a swap file/partition seriously consider enabling ZSWAP with lz4 compression - refer to this excellent how-to and follow it exactly: http://grimore.org/linux/zswap

    Then to build the rom, use the following commands in the LineageOS_14.1 folder, separately in order:
    . build/envsetup.sh && croot - then, when it's completed
    brunch peregrine - where the rom build actually takes place

    Your rom zip file will be found in the out > target > product > peregrine folder in your LineageOS_14.1 folder.

    Once you've completed a successful build refer to the following to learn how to update the critical security patches by thealaskalinuxuser: How to manually update your custom rom source code with security updates - as I mentioned above in my previous post, it's not that difficult a process but you do have to build the rom again and test it to make sure all is in order.

    To do another build when a new security patch is posted, run the make clobber command in the LineageOS_14.1 folder to clean out the previous build and the ccache -c command to clean-up the ccache build-up before running the repo-sync --force-sync - c -j1 command again, then check the security patch date (in /build/core/version_defaults.mk) and, if needed, add the security additions/deletions (copy and paste the additions, removing the + signs, and delete the subtractions) to the relevant files and then run the build again with the . build/envsetup.sh && croot and brunch peregrine commands.
    13
    Just so you are aware the next nightly should provide a upgrade path for people from previous CM versions(i.e CM13 to 14.1) without the need to wipe data. Will test it tomorrow to confirm it.

    Also to note of course you will need to flash a 7.1 Gapps if you use Gapps.

    Thanks to those commits - https://review.cyanogenmod.org/#/q/topic:db-upgrade
    13
    Tip: If you want to be able to flash latest CM14.1 updates you need to update your twrp.
    ~ https://dl.twrp.me/peregrine
    13
    For those of you wishing to update to the APRIL '20 Security Patches, I've uploaded one of my unofficial builds that is based off the official build files with the latest security patches added (refer to post # 1243 for further elucidation). I review and test these patches in LineageOS Gerrit when they're posted, before uploading for your personal use.

    Note: Requires Full Clean Flash when installing rom for 1st time from an official build or encrypting for first time - in TWRP wipe Cache, Dalvik cache, System and importantly format Data > Yes before flashing the appropriate Open Gapps - reboot, encrypt if desired, then in TWRP install preferred root (latest Magisk version recommended) and Xposed, if desired as well. Important: Do a nandroid backup first, including your data - copy any data/media files (e.g., photos, videos etc.), on your SD card over to your PC.

    If you're coming from one of the unofficial updates I uploaded previously, I recommend you do a regular clean flash (wipe Cache, Dalvik cache & System), re-install Open Gapps, preferred root & Xposed (if required).

    Re: Encryption issues - use twrp-3.1.0-0-peregrine or twrp-3.1.1-0-peregrine. I've tested them and they work. Note: Refer to post # 1274 by @pigeons9 (and remember to hit the Thanks button at the bottom of his post if it helps) for a possible solution to solving encryption issues with newer TWRP versions.

    Download Link for lineage-14.1-20200407-UNOFFICIAL-peregrine.zip:
    Link: https://mega.nz/file/0P52nYIa#_xbF1Bwvq8ILi5oLDtPmg200TqInfW1_howzKHlt1nA

    I do, however, continue to recommend you learn to build it yourselves: refer to post # 1210 for the full build instructions.