• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[ROM][Unofficial][markw][6.0.1]Lineage Os 13.0 for Redmi 4 Prime/Pro

Status
Not open for further replies.
Search This thread
G

GuestD0714

Guest
Add persist.debug.wfd.enable=1 to build.prop for enable Miracast

Inviato dal mio Redmi 4 Prime utilizzando Tapatalk
After reboot you have to enable this: (see picture)
Screenshot_20170502-073847.png

Inviato dal mio Redmi 4 Prime utilizzando Tapatalk
 

BlaX72

New member
Apr 30, 2017
3
0
Check your bootloader status with "fastboot oem device-info". I think it is locked. If it's unlocked explain how you flash the recovery

I've already stated that i checked whether the bootloader is locked. Its unlocked. And I flashed recovery the same way i did it hundred times since i had Nexus 7: fastboot flash recovery *recovery_name*.img
 

asfethan

Member
Jun 5, 2013
14
8
People with logs, just host it somewhere and send me the link through pm, I'll look into BT issue.

Hi there again, I was testing MIUI ROM for some days and here are some my discoveries.
- probably there is no problem with BT pairing after all
- the only one difference I can see between MIUI and this LineageOS build is that MIUI will reconnect noticeably faster after connection loss

I enabled BT logging and disconnected remote device by disabling its bluetooth. Then I re-enabled it again and after some waiting I disabled logging and retrieved the file from phone. Remote device is still disconnected which is far longer than on MIUI ROM.

I'll send you link to that log via PM. I can also log whole time until remote device reconnects but sometime it's more than hour.

UPDATE: Probably I was wrong again. I couldn't pair with watches again using several attempts after first successful pairing. I tried to reboot the phone and then I could pair them on first try.
 
Last edited:

Alezzander_

Senior Member
May 28, 2014
305
115
I couldn't pair with watches again using several attempts after first successful pairing.

Try: Forget Paired device (watches) in Bluetooth menu (gear opposite the pairing device), then Paire your watch again. I use this method when try to connect to the Car Bluetooth. This help to me.
 
Last edited:

baggino

Senior Member
Jan 28, 2011
1,036
149
Sometimes I miss the call ringing, I go, in settings> sounds, and no ringtone is selected. Has it happened to some of you too? With miui, this did not happen
 

jacoghi

Senior Member
Sep 24, 2012
351
563
Mirabel
Ok, people, update was posted, good changes are:

- Hopefully fixed the biggest deal breaker for selfie whiners, front camera, however, since there are 3 different front camera models for this device, let me know if there are problems, and if so, your specific camera model;
- New media encoding libraries, should be way faster to generate encoded multimedia files - this doesn't affect pictures, only videos and audio;
- New audio and BT libraries, let me know if the problem with the watch still persists;
- Applied patch as indicated by our great friend, Raziel. People with two SIMs, let me know if SIM settings are still being messed up after reboot;
- Miracast now should be working out of the box, let me know;

Bad same thing:
- A-GPS isn't as simple as I initially imagined, I'll leave it the way it is for now, so keep it in device only mode;

ROM won't be updated over next days, since I'll go back to MIUI looking to find out some things that are still bothering me related to AGPS and Power. Anyways, let me know if you have problems.
 

jacoghi

Senior Member
Sep 24, 2012
351
563
Mirabel
Ok, guys, I just had a shed of light brightening me up and found the reason for our AGPS not working, which is kind of an issue... So for this, I would like to get your opinions...

The AGPS module depends on the proprietary wifi module, which we don't have anymore. The reason for that being is that you can't use the proprietary wifi module using a kernel built from source... So, the two options are:
1) Go ahead the way we are, High accuracy and battery saving modes will NEVER work properly on CM13, but we can change our kernel at will and change things like fixing the front camera... (sure this is correct on stock camera, was messed up on sources released by Xiaomi)
2) Use the stock kernel from Xiaomi, which will work with AGPS perfectly, but we'll be stranded with that kernel for the rest of the days.

I personally don't use high accuracy as I already said many times, anyways, I'd like to get your opinion on this.
 
  • Like
Reactions: nimbold

Razziell

Senior Member
Jan 11, 2014
135
385
4pda.ru
Ok, guys, I just had a shed of light brightening me up and found the reason for our AGPS not working, which is kind of an issue... So for this, I would like to get your opinions...

The AGPS module depends on the proprietary wifi module, which we don't have anymore. The reason for that being is that you can't use the proprietary wifi module using a kernel built from source... So, the two options are:
1) Go ahead the way we are, High accuracy and battery saving modes will NEVER work properly on CM13, but we can change our kernel at will and change things like fixing the front camera... (sure this is correct on stock camera, was messed up on sources released by Xiaomi)
2) Use the stock kernel from Xiaomi, which will work with AGPS perfectly, but we'll be stranded with that kernel for the rest of the days.

I personally don't use high accuracy as I already said many times, anyways, I'd like to get your opinion on this.
Maybe I do not understand something, but why not use it https://github.com/markw-dev/androi...mmit/3f441ef3f0ea1d66bd4a2a1b9a3cf91987154227 ?
P.S. Is it worth waiting for your current source at Github?
 

jacoghi

Senior Member
Sep 24, 2012
351
563
Mirabel
Maybe I do not understand something, but why not use it https://github.com/markw-dev/androi...mmit/3f441ef3f0ea1d66bd4a2a1b9a3cf91987154227 ?
P.S. Is it worth waiting for your current source at Github?

The open source wlan drivers don't contain instructions to communicate with the lowi server, my friend, it just will never work. The only module with those instructions is the one that comes from stock, which only works with the kernel it was compiled with. So an open source driver will never work.

I'm too lazy for git, my friend, find it attached. Kernel is stock, pronto drivers and fixes for cpusets (which is now completely disabled on my build, phone loses performance like hell).
 
Last edited:

cimdrap

Senior Member
Dec 27, 2010
871
220
Redmi Note 10 Pro
2) Use the stock kernel from Xiaomi, which will work with AGPS perfectly, but we'll be stranded with that kernel for the rest of the days.

I personally don't use high accuracy as I already said many times, anyways, I'd like to get your opinion on this.
I think that this is the best option for now. We could still use the buil.prop line to get camera working... Am i right?
 

asfethan

Member
Jun 5, 2013
14
8
Ok, guys, I just had a shed of light brightening me up and found the reason for our AGPS not working, which is kind of an issue... So for this, I would like to get your opinions...

The AGPS module depends on the proprietary wifi module, which we don't have anymore. The reason for that being is that you can't use the proprietary wifi module using a kernel built from source... So, the two options are:
1) Go ahead the way we are, High accuracy and battery saving modes will NEVER work properly on CM13, but we can change our kernel at will and change things like fixing the front camera... (sure this is correct on stock camera, was messed up on sources released by Xiaomi)
2) Use the stock kernel from Xiaomi, which will work with AGPS perfectly, but we'll be stranded with that kernel for the rest of the days.

I personally don't use high accuracy as I already said many times, anyways, I'd like to get your opinion on this.

If you are interested in my opinion, I think it's better to go with OSS with benefits like updates, fixes, customization.
Personaly I never use high accuracy mode and also I don't like to participiate in networks scanning.

BUT.

I don't know if is it related to kernel or libs, or whatever but I have lags when I'm taking photos.
This lag can be described as ability to shake-blur photo after you press shutter because photo isn't taken immediately (there is mentioned lag).
I have this issue with every camera application I can try. I had this issue also on Xiaomi Redmi Note 2 with CM13 and it wasn't present on MIUI ROM.
I was suspecting need of some proprietary stuff which stock ROM/kernel has and CM hasn't.
If msdx321's ROM has stock kernel then I assume it's some proprietary stuff again because I didn't have such issues (tried only with camera app present in that rom).

And well if we sum all of this, for me it's still about 50 : 50 - proprietary : oss, so I am pretty undecided.
If there is way to fix the camera without proprietary blob, I'll definitely vote for oss no matter in what state will be that location stuff.
 
Last edited:
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    Unofficial LineageOS Rom For Redmi 4 Prime/Pro MARKW​

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

    Code:
    *
     * Your warranty is now void.
     *
     * We are not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at us for messing up your device, we will laugh at you.
     *
     *

    Important Information
    I am not the developer of this rom, all credits to @jacoghi
    You are not allowed to make any mirrors of the file in the download section. No ota. No eta.

    Known Bugs
    -gps wakelock - partially fixed - keep device in device​ only

    Installation
    1. Download files.
    2. flash TWRP 3.1.0
    3. Wipe data/factory reset
    4. Flash Lineage OS
    5. Optional: flash Gapps
    6. Optional: flash Su addon for root access

    VIDEO
    VIDEO from developer

    Download
    Rom 05/02:Mod edit: Link removed
    Twrp 3.1.0: Mod edit: Link removed

    Optional:
    Su Addon: https://mirrorbits.lineageos.org/su/13.0/addonsu-arm64-signed.zip

    Mod edit: Thread closed
    13
    Ok, people, update was posted, good changes are:

    - Hopefully fixed the biggest deal breaker for selfie whiners, front camera, however, since there are 3 different front camera models for this device, let me know if there are problems, and if so, your specific camera model;
    - New media encoding libraries, should be way faster to generate encoded multimedia files - this doesn't affect pictures, only videos and audio;
    - New audio and BT libraries, let me know if the problem with the watch still persists;
    - Applied patch as indicated by our great friend, Raziel. People with two SIMs, let me know if SIM settings are still being messed up after reboot;
    - Miracast now should be working out of the box, let me know;

    Bad same thing:
    - A-GPS isn't as simple as I initially imagined, I'll leave it the way it is for now, so keep it in device only mode;

    ROM won't be updated over next days, since I'll go back to MIUI looking to find out some things that are still bothering me related to AGPS and Power. Anyways, let me know if you have problems.
    10
    Guys, I didn't touch anything related to the camera between 23 and 27 releases. Other than that, no worries about this build prop edit, it's not on my plans, we have another way of fixing that in the kernel (which is weird, since we shouldn't need to do it that way, if the sources released by xiaomi are the same as the ones used on miui...).

    Other than that, I have some good news about fingerprint: I as well was a little annoyed by the way the fingerprint wasn't being able to unlock the device without using the additional security measure, so I changed a few things related to that and fixed the issue. Now it behaves as it should (though I have goodix, does anybody have the other one?) , you just need to input the pattern and fingerprint when starting the phone (and I guess it's because my device is decrypted, otherwise it wouldn't ask for pattern not even when turning it on) and fingerprint will unlock the device straight way. When I get home, I'll look into Bluetooth problems (people with BT problems, can you get me a logcat when pairing? And if possible one with miui successfully pairing as well), since it's more important to me than front camera camera, and since front camera should be an easy fix.

    Any other detected issues? How's is idle battery drain?
    7
    About face camera problem:
    Edit build.prop does not solve the problem completely
    The problem of the inverted face camera is in the boot.img
    I tried installing in this ROM (20170427) other boot.img from LOS-20170418 by Liberation , face camera is working correctly.
    Fix for correct sound adjustment (solution from the forum 4pda.ru, Is implemented in Mokee by Razziell)
    To separately adjust the sound of headphones and speaker you need to fix the file /system/etc/mixer_paths_skuk.xml
    not a valid section:
    <path name="speaker">
    <ctl name="RX3 MIX1 INP1" value="RX1" />
    change:
    <path name="speaker">
    <ctl name="RX3 MIX1 INP1" value="RX3" />
    To support the Xiaomi and other headset buttons, you need to add to the file system/usr/keylayout/Generic.kl
    key 250 VOLUME_DOWN
    key 251 VOLUME_UP
    7
    CHANGELOG:
    05.02
    - Hopefully fixed the biggest deal breaker for selfie whiners, front camera, however, since there are 3 different front camera models for this device, let me know if there are problems, and if so, your specific camera model;
    - New media encoding libraries, should be way faster to generate encoded multimedia files - this doesn't affect pictures, only videos and audio;
    - New BT libraries;
    - Applied patch as indicated by our great friend, Raziel. People with two SIMs should be good now;
    - Miracast now should be working out of the box;
    - Bad same thing: A-GPS isn't as simple as I initially imagined, I'll leave it the way it is for now, so keep it in device only mode;

    27/04:
    - Blobs from 8.2.4.0;
    - Hardware GPS completely fixed (keep it in Device Only mode): High Accuracy or Battery Savings do work properly, but Google Services creates a wakelock requesting position all the time. Not really fixable at this point, and not anymore a priority, next will be front camera;
    - Removed a bunch of useless stuff;
    - Deep sleeping even better than before;

    Me and Raziel are taking over msdx's and Ahnik's work, which are awesome developers, but are probably working on other devices for now. Once they come back, I will let go off of it, since they are way better developers than myself.

    Note: Please, do not quote me to ask whether you should "wipe data before or after installing rom", or any similar questions.