[Android Q&A, Help & Troubleshooting] gfwtank:
patch for someone else

relative resources

<public type="layout" name="progress_dialog_holatek" id="0x01090084" />

<public type="layout" name="alert_dialog_holo_holatek" id="0x01090026" />

<public type="drawable" name="holatek_alert_button_bg" id="0x01080297" />

layout/alert_dialog_holo_holatek.xml

+ set visibility="gone"

...
<LinearLayout android:orientation="vertical" android:id="@id/buttonPanel" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="80.0dip">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:paddingTop="4.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:measureWithLargestChild="true" android:paddingStart="2.0dip" android:paddingEnd="2.0dip">
<LinearLayout android:orientation="horizontal" android:id="@id/leftSpacer" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="0.25" />
<Button android:textSize="25.0dip" android:textColor="#ffffffff" android:layout_gravity="start" android:id="@id/button1" android:background="@drawable/holatek_alert_button_bg" android:layout_width="280.0dip" android:layout_height="80.0dip" android:layout_marginLeft="40.0dip" android:layout_marginRight="40.0dip" android:minHeight="@dimen/alert_dialog_button_bar_height" android:maxLines="2" />
<Button android:textSize="25.0dip" android:textColor="#ffffffff" android:layout_gravity="center_horizontal" android:id="@id/button3" android:background="@drawable/holatek_alert_button_bg" android:layout_width="280.0dip" android:layout_height="80.0dip" android:layout_marginLeft="40.0dip" android:layout_marginRight="40.0dip" android:minHeight="@dimen/alert_dialog_button_bar_height" android:maxLines="2" />
<Button android:textSize="25.0dip" android:textColor="#ffffffff" android:layout_gravity="end" android:id="@id/button2" android:background="@drawable/holatek_alert_button_bg" android:layout_width="280.0dip" android:layout_height="80.0dip" android:layout_marginLeft="40.0dip" android:layout_marginRight="40.0dip" android:minHeight="@dimen/alert_dialog_button_bar_height" android:maxLines="2" />
<LinearLayout android:orientation="horizontal" android:id="@id/rightSpacer" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="0.25" />
</LinearLayout>
</LinearLayout>
...

layout/progress_dialog_holatek.xml

mainly changed orientation from "horizontal" to "vertical"

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@id/body" android:paddingTop="10.0dip" android:paddingBottom="10.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:baselineAligned="false" android:paddingStart="8.0dip" android:paddingEnd="8.0dip">
<ProgressBar android:id="@id/progress" android:layout_width="wrap_content" android:layout_height="wrap_content" android:max="10000" android:layout_marginEnd="12.0dip" style="?android:attr/progressBarStyle" />
<TextView android:textSize="24.0dip" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/message" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
</FrameLayout>

Follows to get a try for moded jar

patch the class.dex in framework2.jar and fix the checksum then drag to framework2.jar

patch framwork2.apk/class.dex
offset:4D238h
bit: 39000600
to: 55E08B16

update /system/etc/install-recovery.sh

#!/system/bin/sh

# If you're implementing this in a custom kernel/firmware,
# I suggest you use a different script name, and add a service
# to launch it from init.rc

# Launches SuperSU in daemon mode only on Android 4.3+.
# Nothing will happen on 4.2.x or older, unless SELinux+Enforcing.
# If you want to force loading the daemon, use "--daemon" instead

/system/xbin/daemonsu --auto-daemon &

# Some apps like to run stuff from this script as well, that will
# obviously break root - in your code, just search this file
# for "install-recovery-2.sh", and if present, write there instead.
/system/etc/install-recovery-2.sh

# ** A System File Hot Patcher Helper For ROOTED Device **
# The patched file should stored in _SRC and named as "xxxx.yyy" the orignal.
# Orignal file will backuped in _SRC/backup/ after the script first runs.
# This script will automaticly switch this two versions of files when reruns.
## Remember delete the files in _SRC and "xxxx.yyy_updated" in
## _SRC/backup/ manually after the first run, to keep the patched versions.
_SRC=/system/etc/update
_FILES=$(cd ${_SRC} 2>/dev/null; ls -A1 *.*)
_DST=/system/framework
#_DST=/system/app

if [ -d "${_SRC}" ]; then
[ -z "${_FILES}" ] || mount -o remount,rw /system
for _NAME in ${_FILES}; do
if [ -f "${_DST}/${_NAME}" ]; then
if [ -f "${_SRC}/backup/${_NAME}_updated" -a -f "${_SRC}/backup/${_NAME}" ]; then
cat "${_SRC}/backup/${_NAME}" > "${_DST}/${_NAME}"
[ $? -eq 0 ] || rm -f "${_SRC}/backup/${_NAME}_updated"
echo $? > "${_SRC}/${_NAME}_restored"
else
mkdir "${_SRC}/backup" 2>/dev/null
cat "${_DST}/${_NAME}" > "${_SRC}/backup/${_NAME}"
cat "${_SRC}/${_NAME}" > "${_DST}/${_NAME}"
echo $? > "${_SRC}/${_NAME}_updated"
fi
fi
sync
done
[ -z "${_FILES}" ] || mount -o remount,ro /system
fi

upload modded and stock jar to /system/etc/update/

reboot to see what happend

The New Dialog got bigger buttons, so ugly but functionable now.