[Android General] By Zonik:
Edge Panel S8 Guide

Before going to this post and a big thank you, for nougat you need some small changes in the original guide HERE

Edit floating_feature.xml (system/etc)

Edit this 2 lines

<SEC_FLOATING_FEATURE_COMMON_CONFIG_EDGE></SEC_FLOATING_FEATURE_COMMON_CONFIG_EDGE
<SEC_FLOATING_FEATURE_COMMON_CONFIG_EDGE_STRIPE></SEC_FLOATING_FEATURE_COMMON_CONFIG_EDGE_STRIPE>

Replace for this one:

<SEC_FLOATING_FEATURE_COMMON_CONFIG_EDGE>people,task,circle,panel,-nightclock,-edgefeeds,edgelighting_v2,debug</SEC_FLOATING_FEATURE_COMMON_CONFIG_EDGE>
<SEC_FLOATING_FEATURE_COMMON_CONFIG_EDGE_STRIPE>-1</SEC_FLOATING_FEATURE_COMMON_CONFIG_EDGE_STRIPE>

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Now decompile services.jar

go to SystemServer.smali (com/android/server/SystemServer.smali)

search for:

const-string/jumbo v7, "com.android.server.aod.AODManagerService"

add this before this line

const-string/jumbo v7, "com.android.server.cocktailbar.CocktailBarManagerService"

invoke-virtual {v6, v7}, Lcom/android/server/SystemServiceManager;->startService(Ljava/lang/String;)Lcom/android/server/SystemService;

move-object/from16 v0, p0

iget-object v6, v0, Lcom/android/server/SystemServer;->mSystemServiceManager:Lcom/android/server/SystemServiceManager;

Example:

const-string/jumbo v7, "com.android.server.cocktailbar.CocktailBarManagerService"

invoke-virtual {v6, v7}, Lcom/android/server/SystemServiceManager;->startService(Ljava/lang/String;)Lcom/android/server/SystemService;

move-object/from16 v0, p0

iget-object v6, v0, Lcom/android/server/SystemServer;->mSystemServiceManager:Lcom/android/server/SystemServiceManager;

const-string/jumbo v7, "com.android.server.aod.AODManagerService"

invoke-virtual {v6, v7}, Lcom/android/server/SystemServiceManager;->startService(Ljava/lang/String;)Lcom/android/server/SystemService;

:try_start_81
const-string/jumbo v6, "SystemServer"

go to PowerManagerService.smali

search for:

const-string/jumbo v9, "SEC_PRODUCT_FEATURE_COMMON_SUPPORT_COCKTAIL_FW: false"

(Changue false for true)

like this: const-string/jumbo v9, "SEC_PRODUCT_FEATURE_COMMON_SUPPORT_COCKTAIL_FW: true"

Ready recompile services.jar

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Decompile framework.jar

go to SystemServiceRegistry.smali

search for:

const-string/jumbo v0, "AODManagerService"

add this before this line

const-string/jumbo v0, "CocktailBarService"

const-class v1, Lcom/samsung/android/cocktailbar/CocktailBarManager;

new-instance v2, Landroid/app/SystemServiceRegistry$100;

invoke-direct {v2}, Landroid/app/SystemServiceRegistry$100;-><init>()V

invoke-static {v0, v1, v2}, Landroid/app/SystemServiceRegistry;->registerService(Ljava/lang/String;Ljava/lang/Class;Landroid/app/SystemServiceRegistry$ServiceFetcher;)V

Example:

const-string/jumbo v0, "CocktailBarService"

const-class v1, Lcom/samsung/android/cocktailbar/CocktailBarManager;

new-instance v2, Landroid/app/SystemServiceRegistry$100;

invoke-direct {v2}, Landroid/app/SystemServiceRegistry$100;-><init>()V

invoke-static {v0, v1, v2}, Landroid/app/SystemServiceRegistry;->registerService(Ljava/lang/String;Ljava/lang/Class;Landroid/app/SystemServiceRegistry$ServiceFetcher;)V

const-string/jumbo v0, "AODManagerService"

const-class v1, Lcom/samsung/android/aod/AODManager;

new-instance v2, Landroid/app/SystemServiceRegistry$84;

Download file smali framework and merge this

Ready recompile framework.jar

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Now for finish this,,download and merge files apks/permission xml

That is all Enjoy :good: