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

[ROM][AOSP] AICP [UNOFFICIAL][8.1][N960F][09.11.18]

Search This thread
Casting to Chromecast works with the pulldown menu. And through apps as well. Works just like normal.

Maybe you can try long pressing the cast button and then clicking the three dots and enabling wireless display?
I DO NOT HAVE A CHROMECAST!!!! I HAVE REPEATED THAT MULTIPLE TIMES! I only want to mirror my screen, is that possible in this rom without chromecast?

Sent from my SM-N960F using Tapatalk
 

bober10113

Senior Member
Mar 12, 2017
4,447
1,616
Last edited:

gubbilo144

Senior Member
Feb 16, 2012
401
67
Wilkes Barre
Strange, there's a few people saying it doesn't work. What's your exact model? Dual sim?
Ya I have the SM-N960F/DS dual Sim. I wiped system, data, cache. Installed vendor img, rom, gapps, magisk. Get Bootloop. Tried wipe, rom, gapps, vendor same. I'm thinking you probably have to format internal SD then flash everything haven't tried that yet didn't really want to ease all my stuff on internal sd
 

CodeFox

Senior Member
Sep 7, 2014
363
525
Manchester
Ya I have the SM-N960F/DS dual Sim. I wiped system, data, cache. Installed vendor img, rom, gapps, magisk. Get Bootloop. Tried wipe, rom, gapps, vendor same. I'm thinking you probably have to format internal SD then flash everything haven't tried that yet didn't really want to ease all my stuff on internal sd

Odd, really I don't think you should need to format data, I've never needed to do that. But it seems most reports of it not working are people with dual sim. Has any other AOSP Rom worked for you? crDroid or Pixel Experience (The non GSI one)
 

azZA_09

Senior Member
Jul 10, 2014
832
381
31
In your mind
Just for my curiosity, because I think that I'll buy the note 9 soon enought. The "turn of your phone" works as expected?
 

CodeFox

Senior Member
Sep 7, 2014
363
525
Manchester
Just for my curiosity, because I think that I'll buy the note 9 soon enought. The "turn of your phone" works as expected?

Still experiencing this issue unfortunately. Same with all AOSP ROMs for Note 9 so far. We believe it could be a TWRP issue, bearing in mind we don't have an official TWRP release yet it could be.

The workaround going into TWRP isn't too much of a pain. Rebooting normally works fine
 
  • Like
Reactions: Xshooter726

that_same_guy

Member
Feb 26, 2012
46
34
Test

@s3xxt0y I was testing the rom for the past 4 days, didnt post until I was sure..
This is the best ROM i have used for a long time. a ton of tweaks, and is very stable, all of what I have tested seems to work fine,

Bags:
1. S-Pen is stuck in portrait mode when display is rotated to landscape.. this is the same bug I have experienced in all other GSI roms so far. here is video, in the video I do the same motion, tried normal mice, they dont have this behaviour.. :D
2. when adaptive brightness is off: if Brightness is set to maximum, it gets stuck. Fix: restart the phone

Dreams:
- sliding the status bar would adjust brightness
- option to change mouse cursor, or reduce size
- ability to +/- ambient display brightness

Dreams of heaven:
- S pen button custom shortcut / Bluetooth functionality?

other than that everything so far works, I really love this rom, this is good enough to not look back at the original rom, you dont need to use gravitybox with all the tweaks in the rom, install GMD Spen Gestures, and Squid to give the s pen note features, rom has OmniSwitch which works like the s edge, in fact uses screen better, I use swiftly switch, which allows creating custom shortcuts..

I tried using the HDMI, seems to work flawless at 1440p great stuff.. I'd like to share this
I used this shell code to turn it HDMI output to portrait:
Code:
setprop persist.demo.hdmirotation portrait
setprop persist.demo.hdmirotationlock false
setprop persist.demo.singledisplay true
to revert I change the first line to landscape, I have a tasker toggle to switch between.

Thank you again for the amazing build.. :good: :laugh: :good:
 

Attachments

  • ScreenRec_20181030_043202.mp4.zip
    1.6 MB · Views: 39
Last edited:
  • Like
Reactions: CodeFox and Nasty_z

CodeFox

Senior Member
Sep 7, 2014
363
525
Manchester
@s3xxt0y I was testing the rom for the past 4 days, didnt post until I was sure..
This is the best ROM i have used for a long time. a ton of tweaks, and is very stable, all of what I have tested seems to work fine,

Bags:
1. S-Pen is stuck in portrait mode when display is rotated to landscape.. this is the same bug I have experienced in all other GSI roms so far. here is video, in the video I do the same motion, tried normal mice, they dont have this behaviour.. :D
2. when adaptive brightness is off: if Brightness is set to maximum, it gets stuck. Fix: restart the phone

Dreams:
- sliding the status bar would adjust brightness
- option to change mouse cursor, or reduce size
- ability to +/- ambient display brightness

Dreams of heaven:
- S pen button custom shortcut / Bluetooth functionality?

other than that everything so far works, I really love this rom, this is good enough to not look back at the original rom, you dont need to use gravitybox with all the tweaks in the rom, install GMD Spen Gestures, and Squid to give the s pen note features, rom has OmniSwitch which works like the s edge, in fact uses screen better, I use swiftly switch, which allows creating custom shortcuts..

I tried using the HDMI, seems to work flawless at 1440p great stuff.. I'd like to share this
I used this shell code to turn it HDMI output to portrait:
Code:
setprop persist.demo.hdmirotation portrait
setprop persist.demo.hdmirotationlock false
setprop persist.demo.singledisplay true
to revert I change the first line to landscape, I have a tasker toggle to switch between.

Thank you again for the amazing build.. :good: :laugh: :good:

Thanks for testing. Appreciate the feedback and I'm glad you're enjoying the ROM as much as I am. It's definitely a lot smoother than stock based ROMs. I'll try our the spen apps you've mentioned because the pens a bit lackluster without Sammy's frameworks. Not too sure what I can do about the bugs you've mentioned though. Don't seem like easy fixes.
 
  • Like
Reactions: that_same_guy

bober10113

Senior Member
Mar 12, 2017
4,447
1,616
Ya I have the SM-N960F/DS dual Sim. I wiped system, data, cache. Installed vendor img, rom, gapps, magisk. Get Bootloop. Tried wipe, rom, gapps, vendor same. I'm thinking you probably have to format internal SD then flash everything haven't tried that yet didn't really want to ease all my stuff on internal sd
internal storage is encrypted till you format after flashing twrp.its a prerequisite for all samsung phones.
 
Last edited:

that_same_guy

Member
Feb 26, 2012
46
34
Thanks for testing. Appreciate the feedback and I'm glad you're enjoying the ROM as much as I am. It's definitely a lot smoother than stock based ROMs. I'll try our the spen apps you've mentioned because the pens a bit lackluster without Sammy's frameworks. Not too sure what I can do about the bugs you've mentioned though. Don't seem like easy fixes.

I used to have note4, there is an app called S-Pen buddy and Spencommand, that did some tricks but I didnt even bother trying because they were discontinued and I thought they might not work.

I am really happy with the rom as is. I only mentioned the bugs in attempts to help, but from inside I am a very grateful and happy with it, it feels I got a new phone all over again, thanks again. :D

Excuse my noob-ality, but I logcated the spen bug today, and it looks like some things started to clear up in my noob mind.
i will attach both logcats raw and another I cleaned and edited for easy viewing,. please check.

I really wont assume I understand, but you can see 5 default input devices, one being the touchscreen.
and when the device goes to landscape, 2 out of the 5 rotate, 3 don't.

Summary:
System----------------------sec_e-pen--------------------Does NOT rotate
System----------------------sec_touchscreen------------Does rotate
System----------------------sec_touchpad---------------Does NOT rotate
System----------------------sec_virtual-e-pen-----------Does NOT rotate
System----------------------sec_e-pen-pad--------------Does rotate
Bluetooth Mouse----------G603--------------------------Does rotate

not sure this helps, another thing in the log when I connected the mouse it created the file for the input device in /dev/input/ where I found more devices, but I could not read or copy any, even from TWRP (cuz noob)
sorry if this is a waste of time.

Edit:
I actually posted the first spen bug at treble experimentations on phhusson's github. since it is also on all of the gsi roms.
here is a dumpsys input file phhusson asked it..
 

Attachments

  • Edited.txt
    20 KB · Views: 9
  • alogcat.2018-10-31-05-49-29-0400.txt
    42.9 KB · Views: 8
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    qbsjGIH.png
    Android Ice Cold Project
    Unoffical Note 9 by OpenSauce9810

    k3DRk3b.jpg


    What is this?
    This is the Android Ice Cold Project compiled for the Exynos Note 9. This is my daily driver as it's probably the smoothest oreo AOSP rom so far. I recommend enabling the android P animations in the settings.,

    What's working?
    Mostly everything, including dual speaker, home button, MTP.

    What's not working?
    Powering off - if you power off your phone completely the rom won't boot. You need to go to trwp and reboot to system to get back in. (I think)
    Padding on status bar may be a bit close to the edges.
    Let me know of any other issues.

    Instructions:
    Make sure TWRP has been installed and functional.
    Download the latest build linked below
    Reboot to recovery
    Wipe data and cache (required if you switch from other ROMs). Even better if you have nothing to loose and wipe system,data,cache,storage etc
    Flash the latest build (and gapps). GAPPS ARE NOT INCLUDED use opengapps 8.1.
    Reboot and enjoy

    Changelog:
    • 25.10.2018 Initial Release
    • 26.10.2018: Status bar padding fixed. Latest sources synced. General smoothness / performance improved (butter smooth now).
    • 29.10.2018: High Touch Sensitivity Added, Adaptive Backlight Improvements, Sunlight Enhancement, Vibrator HW Improvement, Display Mode Control added to Display Settings.
    • 08.11.2018: Synced to latest sources, S-Pen "rotation aware" fixed. Fixed an issue that was causing the phone to reboot 4 times before starting the ROM when flashing. (Unfortunately I forgot to fix the status bar padding so this is close to the edges again, will patch ASAP)
    • 09.11.2018: Tweaked some default settings to improve experience, custom winter edition wallpaper, new boot logo. Status Bar padding won't seem to fix and idk why now. But it's not too bad on the note 9 anyway.

    Downloads:

    Galaxy Note 9 Exynos:
    09.11.2018 Build
    ARH6 Vendor

    Providing feedback:
    Feedback is welcome, happy to try and iron out any bugs.

    Join our Telegram Group for the latest updates / support.
    https://t.me/joinchat/E_rQyU__5M_5wph6FrnpKA

    Credits:
    AICP Project.
    Opensauce9810
    Rainbow_Dash & malinathani: For the help building + implementing fixes.
    Vaughnnn: For his Device Trees in GitHub
    Ivan: Sealing the Deal.

    Screenshots
    GRDwPEp.jpg

    3qt0a6C.jpg

    cFpLScJ.jpg

    GGNDCNP.jpg

    kkAqXOS.jpg


    XDA:DevDB Information
    [ROM][AOSP] AICP [UNOFFICIAL][8.1][N960F][09.11.18], ROM for the Samsung Galaxy Note 9

    Contributors
    s3xxt0y, Rainbow_Dash, malinathani, Vaughnn, Jesec, Favoritus, Saxmydix
    Source Code: https://github.com/AICP/platform_manifest

    ROM OS Version: 8.x Oreo
    ROM Kernel: Linux 4.x
    ROM Firmware Required: Vendor ARH6
    Based On: AICP

    Version Information
    Status: Stable
    Current Stable Version: 1

    Created 2018-10-25
    Last Updated 2018-12-29
    4
    S pen progress

    Hello @s3xxt0y
    I am not sure where to post this(please let me know if I better post it somewhere else), but through some experimentation on the spen on the original and current rom, using getevent and logcats, I feel like I found some info, especially exciting regarding the bluetooth, I am not sure it is any useful but I am going to post them for reference, hopefully someone could use them or maybe develop an AOSP bluetooth spen remote app. I know I am going to pay/donate for it :)

    now before I mention all this, there is a couple of apps SPenCommand or GMD Spen Gestures that do some of the non-bluetooth work. I am using the GMD app, using which you can create actions when the spen is attached or detached, with which I could simulate the Spen menu in Samsung roms, I bound it to a custom shortcut menu I made with Xposed Edge app that has all the features of the spen menu. and I even used tasker to detect if screen is off, to call a note taking app Squid instead of this menu when it wakes up, simulating the screen off memo.

    please forgive my brightscreen and bad video setup but I made a video showing this
    Check SPen GMD.zip (attached) for the video

    Now to the S Pen buttons, I am going to attach the actual file that has the stuff I captured (Buttons.zip), but here I am going to summarize what I think is happening
    Code:
    All from the same input device "sec_e-pen", using getevent and doing the following things I get:
    
    [B]Spen Out     [/B]
    EV_SW        0013                 00000001 
    
    [B]Spen In    [/B]   
     EV_SW        0013                 00000000
    
    _____________________________________
    
    
    [B]Hover   [/B]        
    EV_KEY       BTN_DIGI             DOWN                  digitizer starts sensing the spen
    EV_ABS       ABS_DISTANCE         00000078           (reports spen distance from screen)
    EV_ABS       ABS_X                000013a6                       (reports spen mouse coordinates)
    EV_ABS       ABS_Y                00001544                      (reports spen mouse coordinates)
    EV_KEY       BTN_DIGI             UP
    
    [U][I][B]((ADDED Nov 10 not in txt file))
    [/B][/I][/U][B]Hover and S  Button Click  [/B]        
    EV_KEY       BTN_DIGI             DOWN                  digitizer starts sensing the spen
    EV_ABS       ABS_DISTANCE         00000078           (reports spen distance from screen)
    EV_ABS       ABS_X                000013a6                       (reports spen mouse coordinates)
    EV_ABS       ABS_Y                00001544                      (reports spen mouse coordinates)
    EV_KEY       BTN_STYLUS      DOWN                (spen button click regardless of it touching) 
    EV_KEY       BTN_STYLUS       UP
    EV_KEY       BTN_DIGI             UP
    
    
    [B]Hover then Spen Touch Screen  [/B]
    EV_KEY       BTN_DIGI             DOWN              (same as above)
    EV_ABS       ABS_X                000013a6
    EV_ABS       ABS_Y                00001544  
    EV_ABS       ABS_DISTANCE         00000078     (distance start getting smaller)                                                     
    EV_ABS       ABS_DISTANCE         0000000a
    EV_KEY       BTN_TOUCH            DOWN            (spen touching screen)
    EV_ABS       ABS_PRESSURE         00000a79            (pressure sensitivity)
    EV_ABS       ABS_DISTANCE         00000000            
    EV_ABS       ABS_TILT_X           00000002            
    EV_ABS       ABS_TILT_Y           00000001
    EV_KEY       BTN_TOUCH            UP                     (spen away from screen)
    EV_ABS       ABS_DISTANCE         00000001
    EV_ABS       ABS_DISTANCE         00000038            
    EV_KEY       BTN_DIGI             UP   
    
    Note: every now and then there is     EV_SYN       SYN_REPORT           00000000  (not sure what does it exactly means)

    Now for the exciting part here is a logcat of bluetooth button press in original samsung rom
    Code:
    11-03 09:02:16.104  8083  8094 D [AirCmd]_BleSpenDriver: GattCallback : onCharacteristicChanged : 68:A8:E1:E3:0D:27 / UUID_BUTTON_EVENT, PERM=0, RAWDATA : [1]DESC_CNT=2 [ DESC : UUID_CHARACTERISTIC_CONFIG, [1 0]] [ DESC : UNDEFINED:00002901-0000-1000-8000-00805f9b34fb, [nodata]] 
    11-03 09:02:16.104  8083  8094 D [AirCmd]_BleSpenDriver: GattCallback : Button:1
    11-03 09:02:16.403  8083  8083 D [AirCmd]_BleSpenClickGestureDetector: sendBleSpenClickEvent : single clicked
    11-03 09:02:16.403  8083  8083 D [AirCmd]_RemoteSpenMainController: SpenEventListener : button clicked
    11-03 09:02:16.404  8083  8083 D [AirCmd]_ScreenOffAndLockStateActionInvoker: ScreenOffAndLockStateActionInvoker invokeAction : isInteractive is true
    11-03 09:02:16.404  8083  8083 D [AirCmd]_ScreenOffAndLockStateActionInvoker: ScreenOffAndLockStateActionInvoker invokeAction : mIsSatisfySpenUnlockCondition is false
    11-03 09:02:16.404  8083  8083 D [AirCmd]_ScreenOffAndLockStateActionInvoker: ScreenOffAndLockStateActionInvoker invokeAction : screenOffReason is 3
    11-03 09:02:16.405  8083  8083 D [AirCmd]_ScreenOffAndLockStateActionInvoker: ScreenOffAndLockStateActionInvoker invokeAction : Single, double click case
    11-03 09:02:16.406  8083  8083 D [AirCmd]_CameraAvailabilityMonitor: isCameraPreviewOn : mIsCameraPreviewOn is false
    11-03 09:02:16.409  8083  8083 D [AirCmd]_CameraAvailabilityMonitor: isCameraPreviewOn : mIsCameraPreviewOn is false
    11-03 09:02:16.414  8083  8083 D [AirCmd]_MediaControlStateMonitor: getActivePackageName : noti count=5, session count=0
    11-03 09:02:16.414  8083  8083 D [AirCmd]_PenActionRule: getAction : get default action data from remote action because pen action data is null.
    11-03 09:02:16.414  8083  8083 D [AirCmd]_RemoteSpenMainController: invokeAction : no action present
    11-03 09:02:16.414  8083  8083 D AC:AirCommand: onBleFloatingIconAnimationStart hasAction : false, isShowGuidePanel false
    11-03 09:02:16.414  8083  8083 I AC:AirCommand_SAUtils: insertEventLog... screenID:105, eventID:1052, detail:com.sec.android.app.launcher_com.android.launcher3.Launcher_none, value:null
    11-03 09:02:16.415  8083  8083 D SamsungAnalytics111040: user do not agree
    11-03 09:02:16.416  8083  8083 V AC:AirCommand: play : 0x11
    11-03 09:02:16.416  8083  8083 D AC:AirCommand: showBleFbShakeAnimator

    Long Press
    Code:
    11-03 10:53:06.258  8083 16804 D [AirCmd]_BleSpenDriver: GattCallback : onCharacteristicChanged : 68:A8:E1:E3:0D:27 / UUID_BUTTON_EVENT, PERM=0, RAWDATA : [2]DESC_CNT=2 [ DESC : UUID_CHARACTERISTIC_CONFIG, [1 0]] [ DESC : UNDEFINED:00002901-0000-1000-8000-00805f9b34fb, [nodata]] 
    11-03 10:53:06.258  8083 16804 D [AirCmd]_BleSpenDriver: GattCallback : Button:2
    11-03 10:53:06.259  8083  8083 D [AirCmd]_RemoteSpenMainController: SpenEventListener : button long clicked
    11-03 10:53:06.316  4865  6567 W ActivityManager: Slow operation: 54ms so far, now at getContentProviderImpl: after updateOomAdj
    11-03 10:53:06.316  4865  6567 W ActivityManager: Slow operation: 54ms so far, now at getContentProviderImpl: done!
    11-03 10:53:06.323  8083  8083 D [AirCmd]_ScreenOffAndLockStateActionInvoker: ScreenOffAndLockStateActionInvoker invokeAction : isInteractive is true
    11-03 10:53:06.324  8083  8083 D [AirCmd]_ScreenOffAndLockStateActionInvoker: ScreenOffAndLockStateActionInvoker invokeAction : mIsSatisfySpenUnlockCondition is false
    11-03 10:53:06.324  8083  8083 D [AirCmd]_ScreenOffAndLockStateActionInvoker: ScreenOffAndLockStateActionInvoker invokeAction : screenOffReason is 3
    11-03 10:53:06.325  8083  8083 D [AirCmd]_ScreenOffAndLockStateActionInvoker: ScreenOffAndLockStateActionInvoker invokeAction : Long click case
    11-03 10:53:06.332  8083  8083 D [AirCmd]_CameraAvailabilityMonitor: isCameraPreviewOn : mIsCameraPreviewOn is false
    11-03 10:53:06.337  8083  8083 D [AirCmd]_CameraAvailabilityMonitor: isCameraPreviewOn : mIsCameraPreviewOn is false
    11-03 10:53:06.345  8083  8083 D [AirCmd]_MediaControlStateMonitor: getActivePackageName : noti count=3, session count=1
    11-03 10:53:06.346  8083  8083 D [AirCmd]_RemoteSpenMainController: showGuidePanel : rule is not proper type. ruleType=BASE
    11-03 10:53:06.346  8083  8083 D [AirCmd]_PenActionInvoker: invokeAction : AppLaunchActionData


    so I on your the AOSP AICP ROM, I did install two apps, LightBlue and nRF Connect that utilize the same BLE technology as the S Pen, I was excited that it was that simple it connected to it, you can read different services, I could find one that said Button State, and it turns out that if subscribing to the service using GATT server, you can stay connected to the device and wait for the specific service changes. (not my level though)

    I was able to pair the device, read some information below is a screenshot
    bFIBdqil.png



    and specifically this service that screenshoted below has the name Button State, if service is subscribed to, (clicking the button) when clicking the button will give 01, if click and hold gives 02. screenshot below
    jaqWUy7l.png


    I was sad to discover than neither of the apps does connect to tasker, nor easy to make them run & connect to spen by default on boot.

    but nevertheless, I believe the info above is the key, a person that has some knowledge in Android app making and BLE libraries, has the will, and the time to invest can be a hero in this forum and maybe potential for some business, these would be the event triggers to create shortcuts, this will make the bluetooth in the spen functional in AOSP or maybe even allow to generalize it to any device e.g. people can hook up tasker to their smartwatches or so.

    and I will go back to my daydreaming :)
    4
    @CodeFox

    I've noticed that there are no updates being made to aosp roms towards android 9. If you don't mind, could you please explain the reason? Just curious, don't mean to be rude. :)

    We've built pie based AOSP roms however samsung has done something odd with their vendor partition with their upgrade to pie which renders the hardware composer broken. With HWC broken the roms have broken white balance and aren't smooth along with added battery drain as the roms will use GPU to render UI elements.

    A couple of these builds were released on our telegram channel but they suck.

    Due to this issue I have actually sold my Note 9 and switched to a Pixel 3 XL in January. There's no hope for pie based AOSP Roms I'm afraid, unless you want a buggy experience.
    3
    Great stuff, I will flash it once its up. Thank you alot :)

    OP Updated, new build here. Nice work on the post by the way and thanks for sharing the video. I'm surprised it works so well on an AOSP rom. Definitely a useful post, I definitely recommend maybe posting it in the guides forum and maybe title is as "SPen functionality on AOSP ROMs" maybe. It's something I'm sure a lot of people would love to know about! I've not gotten around to trying it out yet as I've been constantly wiping and flashing new test builds of pie based roms, but will definitely be downloading GMD Tonight.
    3
    New build uploaded. Runs a lot smoother now and the status bar padding has been fixed.