[Android General] alexega:
Weather >>> lock screen >>> Nougat

1. SystemUI/AndroidManifest.xml

add

<uses-permission android:name="com.sec.android.daemonapp.ap.accuweather.ACCUWEATHER_DAEMON_ACCESS_PROVIDER"/>

2. SystemUI/res/values/ids.xml

add

<item type="id" name="weather_widget">false</item>
<item type="id" name="sunrise">false</item>
<item type="id" name="sunset">false</item>

3. SystemUI/res/drawable

add the files from the archive weather_level_analog.zip

weather_level_analog.xml

4. SystemUI/res/drawable-nodpi-v4

add the files from the archive drawable-nodpi-v4.xip

5. SystemUI/res/drawable-xxxhdpi-v4

add the files from the archive drawable-xxxhdpi-v4.zip

6. SystemUI/res/values/dimens.xml

<dimen name="servicebox_page_small_height">201.0dip</dimen>

change to

<dimen name="servicebox_page_small_height">300.0dip</dimen>

7. SystemUI/res/layout/keyguard_servicebox_container.xml

below before

</LinearLayout>
</com.android.keyguard.servicebox.KeyguardServiceBoxContainer>

add

<LinearLayout android:gravity="center_horizontal" android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/weather_widget" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip">
<mickles.app.mAccuWeatherS7.mWeatherIcon android:gravity="start|center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="2.0dip" />
<mickles.app.mAccuWeatherS7.mWeatherCurrentTemp android:textSize="35.0dip" android:textColor="#ffffffff" android:gravity="start|center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="1.0dip" android:fontFamily="samsung-neo-num3L" style="@style/keyguard_headline_text_shadow" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-1.5dip" android:layout_marginEnd="1.0dip">
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.5dip">
<mickles.app.mAccuWeatherS7.mWeatherHighTemp android:textSize="15.0dip" android:textColor="#ffffffff" android:gravity="end|center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:fontFamily="samsung-neo-num3L" android:layout_marginStart="6.0dip" android:layout_marginEnd="3.0dip" style="@style/keyguard_headline_text_shadow" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.5dip">
<mickles.app.mAccuWeatherS7.mWeatherLowTemp android:textSize="15.0dip" android:textColor="#ffffffff" android:gravity="end|center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:fontFamily="samsung-neo-num3L" android:layout_marginStart="6.0dip" android:layout_marginEnd="3.0dip" style="@style/keyguard_headline_text_shadow" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:gravity="center|left" android:layout_gravity="center_horizontal" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip">
<LinearLayout android:gravity="center|left" android:orientation="horizontal" android:id="@id/sunrise" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextView android:textSize="16.0dip" android:textColor="#fff8ecd0" android:gravity="center|left" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="sunrise " style="@style/keyguard_headline_text_shadow" />
<mickles.app.mAccuWeatherS7.mWeatherSunRise android:textSize="16.0dip" android:textColor="#ffffffff" android:gravity="center|left" android:tag="HH:mm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" android:layout_marginStart="6.0dip" style="@style/keyguard_headline_text_shadow" />
<ImageView android:layout_width="13.0dip" android:layout_height="13.0dip" android:src="@drawable/weather_edge_ic_location_mtrl" android:layout_marginStart="11.0dip" />
<mickles.app.mAccuWeatherS7.mWeatherLocation android:textSize="16.0dip" android:textColor="#ffffffff" android:gravity="end|center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" android:layout_marginStart="1.0dip" style="@style/keyguard_headline_text_shadow" />
</LinearLayout>
<LinearLayout android:gravity="center|left" android:orientation="horizontal" android:id="@id/sunset" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip">
<TextView android:textSize="16.0dip" android:textColor="#ffe2d7cd" android:gravity="center|left" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="sunset " style="@style/keyguard_headline_text_shadow" />
<mickles.app.mAccuWeatherS7.mWeatherSunSet android:textSize="16.0dip" android:textColor="#ffffffff" android:gravity="center|left" android:tag="HH:mm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" android:layout_marginStart="6.0dip" style="@style/keyguard_headline_text_shadow" />
<mickles.app.mAccuWeatherS7.mWeatherText android:textSize="16.0dip" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="end|center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" android:singleLine="true" android:layout_marginStart="12.0dip" style="@style/keyguard_headline_text_shadow" />
</LinearLayout>
</LinearLayout>

8. SystemUI/smali

add the files from the archive mickles.zip

9. SystemUI/smali/mickles/app/mAccuWeatherS7/mWeatherIcon.smali

0x7f02075d replace

<public type="drawable" name="weather_level_analog" id="0x7f02075d" />

Thanks

mickles

Later write - display the weather, select a color for Rom Control