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

[ROM][NMF26Q][7.1.1][BETA 5] AOSP Nougat-7.1

Search This thread

PecanCM

Inactive Recognized Developer
Nov 17, 2011
2,573
12,938
Android Open Source Project Nougat For Xperia M

Code:
#include 
/*
 * Your warranty is now void.
 *
 * I am 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 me for messing up your device, I will laugh at you.
 */

This rom is based on Android Nougat 7.1 source (android-7.1.1_r6)
I have only made changes that needed to support our device other then that it's pure AOSP. it has no custom features to provide you stock android experience.


Device-specific source code:
Device
Kernel
Vendor Blobs

Discussion thread -->

What's working:

So far i have tested:
  • RIL (Calls, SMS, Mobile Datal)
  • Dual sim on Xperia M dual
  • Display
  • Camera & Camcorder
  • Audio and video
  • Wifi
  • Bluetooth & Bluetooth Audio
  • OpenGL rendering
  • Sensors (accelerometer,compass,light,proximity)
  • Sdcard
  • Auto brightness
  • Notification led
  • Storage
  • GPS
  • Mtp/ptp working same as 6.0
  • NFC

Note:

  • It's entirely possible that features not used by me (nor the people I've asked to test) are broken, but overall the device should be usable. You have been warned.
  • This is BETA so don't treat this as stable version.
  • AOSP is only for 4.3 baseband. If you are on 4.1/4.2 baseband/firmware then Follow this instruction
  • TWRP FOTA recovery is recommended for installing aosp, follow this thread for instructions

Download:

BETA 5: https://www.mediafire.com/?ltwb5qgqd22ckfi

For dual sim users: Flash this patch get dual sim working https://www.mediafire.com/?aag77t1w7bi7gg0

Install instructions:
Before you install make sure you are on 4.3 firmware 1st with your bootloader is Unlocked and a TWRP recovery installed. if you haven't installed recovery then flash boot.img from this rom zip via fastboot.

  • boot into recovery
  • Wipe data and cache
  • Flash the rom and gapps zip
  • Reboot

Upgrading from earlier version:
  • Boot into Recovery
  • Flash the rom and gapps zip
  • Reboot

Reporting bugs:
Before Reporting bugs make sure you
  • Read "note" section
  • Using stock kernel
  • Not installed any mods/tweaks - if you have installed mods like xposed you can't report bug
  • Not modified system files
  • Checked the posts below for a solution / fix
  • Read the last 10 pages of this thread for a post with a similar problem
  • Backup, reflash with a full wipe (do this if mods like xposed is installed) and check if the bug is still there
  • provide logcat,kmsg. if you reporting radio problem then provide radio log.

Screenshots:

q4a4YlH.png
ZoiMDAB.png


Wlr1SNC.png
HgxbJ8r.png


LeMKkFZ.png
8fi8GNf.png


xl2wzAg.png
VpLEv43.png


Credits:
  • All developers who is working on sony
  • Code Aurora Forum
  • CyanogenMod

XDA:DevDB Information
AOSP Nougat for Xperia M, ROM for the Sony Xperia M

Contributors
PecanCM
Source Code: https://android.googlesource.com/

ROM OS Version: 7.x Nougat
ROM Firmware Required: Stock 4.3 Firmware

Version Information
Status: Beta

Created 2016-08-26
Last Updated 2016-12-21
 

PecanCM

Inactive Recognized Developer
Nov 17, 2011
2,573
12,938
Changelog

BETA 5 21-12-2016

  • Updated Platform sources to android-7.1.1_r6(NMF26Q)
  • Fixed clock app world button force close
  • Fixed more sepolicy denials
  • Linux Security fixes
  • Added missing STK to build
  • Switched to nougat aosp audio hal
  • Switched to new xml audio policy configuration
  • Misc cleanup/fixes/updates

BETA 4 20-11-2016

  • Updated Platform source to android-7.1.0_r7(NDE63X)
  • Fixed Video recording "jumping"
  • Fixed invalid number error
  • Fixed gapps setup wizard force close
  • Linux Security fixes
  • Switched to source built NFC firmware
  • Updated apn conf from bullhead
  • Updated adreno renderscript blobs from msm8909 nougat
  • Misc cleanup/fixes

BETA 3 26-10-2016

  • Updated Platform source to android-7.1.0_r4(NDE63P)
  • Attempt to fix RIL with SuperSU on dual sim devices
  • Linux security fixes
  • Audio HAL updates from nougat branch
  • Time service updates
  • Update other blobs
  • Misc cleanup/fixes

BETA 2 21-10-2016

  • Updated Platform source to android-7.0.0_r7(NRD91D)
  • Security fixes
  • Time service fixes
  • Added support for more webviews

BETA 1 19-09-2016

  • Fixed camcorder
  • Fixed headset button
  • Attempt to fix network mode selection on dual sim

ALPHA 3 10-09-2016

  • Updated Platform sources to android-7.0.0_r4(NRD90S)
  • Dual sim is now supported
  • Fixed almost all selinux denials
  • Fixed FOTA recovery
  • Fixed Boot led
  • Security fixes
  • Added backlight and battery percentage support to offline charging
  • Updated widevine blobs for Nougat
    - apps like netflix/google movies will work now
  • Updated time-service blobs
  • Updated camera related blobs
    - no more text relocation
  • Update Power menu
    - Added reboot option
    - Added airplane mode
    - Added ringer modes

ALPHA 2 29-08-2016

  • Fixed lots of Selinux denials
  • Fixed stock music app force close
  • Updated twrp recovery to latest version
  • Fixed qcril logging (no more diag spam in logcat)
  • Updated media codec from caf
  • Security fixes

ALPHA 1 26-08-2016

  • Initial release
 
Last edited:

PecanCM

Inactive Recognized Developer
Nov 17, 2011
2,573
12,938
FAQ

Q: Why no root access?
A: This is AOSP rom, not CyanogenMod.

Q: I can't find external sdcard in /ext_card, Why ?
A: Go to /storage you can find there

Q: Where is old browser ?
A: Removed from nougat and replaced with simple shell browser, Use 3rd party browser for all features.

Q: I can't find live wallpapers ?
A: Removed from nougat.
 
Last edited:

Bonoboo

Senior Member
Dec 30, 2012
2,544
3,931
Thanks for new taste of Android!

Tips:

- Launching persistent TWRP not supported. Only built-in 2.8
So if you have adopted sdcard you can't restore backup.
To fix flash CM13 kernel.

- OpenGapps for 7.0 here

- Feature spotlights here

- File manager in Settings > Storage finally can install APK's, useful for first boot.

- To use 2 apps at same time hold and drag thumbnail in Recents

- Double-tap on Recents works like Alt+Tab (like long press in CM)

- In dev options new option to force move all apps on adopted storage
 
Last edited:

Rajesh_m

Senior Member
May 24, 2013
1,121
298
Kerala
Thanks for new taste of Android!

Tips:

- Launching persistent TWRP not supported. Only built-in 2.8
So if you have adopted sdcard you can't restore backup.
To fix flash CM13 kernel.

- OpenGapps for 7.0 here

- Feature spotlights here

- File manager in Settings > Storage finally can install APK's, useful for first boot.

- To use 2 apps at same time hold and drag thumbnail in Recents

- Double-tap on Recents works like Alt+Tab (like long press in CM)

- In dev options new option to force move all apps on adopted storage

can you please share cm13 kernel?
 

Agu_Ra

Senior Member
Jun 24, 2014
949
1,591
26
Lviv
Does anyone have success flashing GApps? On Opengapps wiki is stated that it needs additional ROM patching to disable APK Signature Scheme V2.

---------- Post added at 22:47 ---------- Previous post was at 22:44 ----------

BTW, if FOTA recovery is not working, I can repack the boot image with the latest TWRP 3.0.2-1.
 
Last edited:

Vlad2013_4pda

Member
Dec 7, 2014
40
48
Kazan
Does anyone have success flashing GApps. On Opengapps wiki is stated that it needs additional ROM patching to disable APK Signature Scheme V2.

---------- Post added at 22:47 ---------- Previous post was at 22:44 ----------

BTW, if FOTA recovery is not working, I can repack the boot image with the latest TWRP 3.0.2-1.

i installed GApps, but with error like "command 'log' doesn't exist"
App work fine, but Google Play Services is crashes when i trying add Google account.
And when im rebooting to recovery via terminal, its entered to twrp 2.8 (from this rom) not to fota sadly.
 
Last edited:

Agu_Ra

Senior Member
Jun 24, 2014
949
1,591
26
Lviv
So here are results of my brief testing:

- It booted VERY FAST as there is no ART cache compilation after every update, cache is generated on-the-fly combining JIT and AOT compilation. BTW, not only first boot was fast but the latter ones too, much faster than CM13.
- First boot with Opengapps Pico for 08.26 led to Setup Master's FCs at some moments, yet after some painful experience I've succeed adding Google account and even restoring my apps and settings, which was quite surprising (I was amazed when noticed my ringtone being restored to that from CM13).
- 3G is not working, at least for me. Only EDGE.
- Getting root with the current version of SuperSU appears to be impossible, at least for our device.
- Phone seems to be less responsive, but maybe that's just me, because I regularly use it overclocked to 1.4 GHz.
- TWRP 2.8.0.0 and not working FOTA recovery, seriously? I was forced to repack boot image with the TWRP 3 (just quickly grabbed that from NUI as I'm lazy to repack recovery ramdisk for using in boot image). Some report it working but for me it always booted to the built-in TWRP, both by Vol- and Vol+. BTW, I can upload repacked boot image tomorrow (it is on my personal laptop, I'm writing this from my work one).

I would certainly use it as daily driver if there were root and NUI kernel available. It is very stable for such an early alpha (gosh, Ron started working on it a couple days ago as sources were published) and such an old phone (it debuted 3 years ago), we are very lucky to have so custom-friendly hardware and such a talented developers as Ron and guys working on msm8960 board (another reason I think is that there were no any bringing-pain-in-the-ass changes like ART in 4.4/5.0 and adoptable storage in 6.0). Great work, PecanCM!

I'll continue my testing tomorrow and revert to CM13 later until new SuperSU and NUI are released (or maybe forever if I'll buy new device soon).
 

Top Liked Posts

  • There are no posts matching your filters.
  • 72
    Android Open Source Project Nougat For Xperia M

    Code:
    #include 
    /*
     * Your warranty is now void.
     *
     * I am 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 me for messing up your device, I will laugh at you.
     */

    This rom is based on Android Nougat 7.1 source (android-7.1.1_r6)
    I have only made changes that needed to support our device other then that it's pure AOSP. it has no custom features to provide you stock android experience.


    Device-specific source code:
    Device
    Kernel
    Vendor Blobs

    Discussion thread -->

    What's working:

    So far i have tested:
    • RIL (Calls, SMS, Mobile Datal)
    • Dual sim on Xperia M dual
    • Display
    • Camera & Camcorder
    • Audio and video
    • Wifi
    • Bluetooth & Bluetooth Audio
    • OpenGL rendering
    • Sensors (accelerometer,compass,light,proximity)
    • Sdcard
    • Auto brightness
    • Notification led
    • Storage
    • GPS
    • Mtp/ptp working same as 6.0
    • NFC

    Note:

    • It's entirely possible that features not used by me (nor the people I've asked to test) are broken, but overall the device should be usable. You have been warned.
    • This is BETA so don't treat this as stable version.
    • AOSP is only for 4.3 baseband. If you are on 4.1/4.2 baseband/firmware then Follow this instruction
    • TWRP FOTA recovery is recommended for installing aosp, follow this thread for instructions

    Download:

    BETA 5: https://www.mediafire.com/?ltwb5qgqd22ckfi

    For dual sim users: Flash this patch get dual sim working https://www.mediafire.com/?aag77t1w7bi7gg0

    Install instructions:
    Before you install make sure you are on 4.3 firmware 1st with your bootloader is Unlocked and a TWRP recovery installed. if you haven't installed recovery then flash boot.img from this rom zip via fastboot.

    • boot into recovery
    • Wipe data and cache
    • Flash the rom and gapps zip
    • Reboot

    Upgrading from earlier version:
    • Boot into Recovery
    • Flash the rom and gapps zip
    • Reboot

    Reporting bugs:
    Before Reporting bugs make sure you
    • Read "note" section
    • Using stock kernel
    • Not installed any mods/tweaks - if you have installed mods like xposed you can't report bug
    • Not modified system files
    • Checked the posts below for a solution / fix
    • Read the last 10 pages of this thread for a post with a similar problem
    • Backup, reflash with a full wipe (do this if mods like xposed is installed) and check if the bug is still there
    • provide logcat,kmsg. if you reporting radio problem then provide radio log.

    Screenshots:

    q4a4YlH.png
    ZoiMDAB.png


    Wlr1SNC.png
    HgxbJ8r.png


    LeMKkFZ.png
    8fi8GNf.png


    xl2wzAg.png
    VpLEv43.png


    Credits:
    • All developers who is working on sony
    • Code Aurora Forum
    • CyanogenMod

    XDA:DevDB Information
    AOSP Nougat for Xperia M, ROM for the Sony Xperia M

    Contributors
    PecanCM
    Source Code: https://android.googlesource.com/

    ROM OS Version: 7.x Nougat
    ROM Firmware Required: Stock 4.3 Firmware

    Version Information
    Status: Beta

    Created 2016-08-26
    Last Updated 2016-12-21
    36
    Changelog

    BETA 5 21-12-2016

    • Updated Platform sources to android-7.1.1_r6(NMF26Q)
    • Fixed clock app world button force close
    • Fixed more sepolicy denials
    • Linux Security fixes
    • Added missing STK to build
    • Switched to nougat aosp audio hal
    • Switched to new xml audio policy configuration
    • Misc cleanup/fixes/updates

    BETA 4 20-11-2016

    • Updated Platform source to android-7.1.0_r7(NDE63X)
    • Fixed Video recording "jumping"
    • Fixed invalid number error
    • Fixed gapps setup wizard force close
    • Linux Security fixes
    • Switched to source built NFC firmware
    • Updated apn conf from bullhead
    • Updated adreno renderscript blobs from msm8909 nougat
    • Misc cleanup/fixes

    BETA 3 26-10-2016

    • Updated Platform source to android-7.1.0_r4(NDE63P)
    • Attempt to fix RIL with SuperSU on dual sim devices
    • Linux security fixes
    • Audio HAL updates from nougat branch
    • Time service updates
    • Update other blobs
    • Misc cleanup/fixes

    BETA 2 21-10-2016

    • Updated Platform source to android-7.0.0_r7(NRD91D)
    • Security fixes
    • Time service fixes
    • Added support for more webviews

    BETA 1 19-09-2016

    • Fixed camcorder
    • Fixed headset button
    • Attempt to fix network mode selection on dual sim

    ALPHA 3 10-09-2016

    • Updated Platform sources to android-7.0.0_r4(NRD90S)
    • Dual sim is now supported
    • Fixed almost all selinux denials
    • Fixed FOTA recovery
    • Fixed Boot led
    • Security fixes
    • Added backlight and battery percentage support to offline charging
    • Updated widevine blobs for Nougat
      - apps like netflix/google movies will work now
    • Updated time-service blobs
    • Updated camera related blobs
      - no more text relocation
    • Update Power menu
      - Added reboot option
      - Added airplane mode
      - Added ringer modes

    ALPHA 2 29-08-2016

    • Fixed lots of Selinux denials
    • Fixed stock music app force close
    • Updated twrp recovery to latest version
    • Fixed qcril logging (no more diag spam in logcat)
    • Updated media codec from caf
    • Security fixes

    ALPHA 1 26-08-2016

    • Initial release
    30
    FAQ

    Q: Why no root access?
    A: This is AOSP rom, not CyanogenMod.

    Q: I can't find external sdcard in /ext_card, Why ?
    A: Go to /storage you can find there

    Q: Where is old browser ?
    A: Removed from nougat and replaced with simple shell browser, Use 3rd party browser for all features.

    Q: I can't find live wallpapers ?
    A: Removed from nougat.
    27
    Ok guys so finally i got my xperia m back in working condition. now first i'm going to release aosp update in coming days then i will work on cm14 bring up.
    21
    @PecanCM hi,
    Any good news about Beta 2 or something else [emoji6] [emoji6]

    nougat aosp beta is monthly now just like marshmallow aosp was so only 1 release par month unless there is important fix.

    btw last week i got eye and sinus infection now when i'm recovering from infection, my xperia m's usb port stopped working (only way to detect is if i keep applying pressure), i have handed phone to repair shop but i hope it's only port problem nothing big as few days ago my phone completed 3 years.

    about cyanogenmod 14, expect camcorder working list is same as aosp. (well audio need full testing as using aosp hal mixer_paths)