Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

Commit

Permalink
Xperia Z5 STYLE 4.5!
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxct committed Feb 20, 2016
1 parent 504fb10 commit aa7dffa
Show file tree
Hide file tree
Showing 309 changed files with 76,062 additions and 22 deletions.
Binary file added META-INF/CERT.RSA
Binary file not shown.
3,004 changes: 3,004 additions & 0 deletions META-INF/CERT.SF

Large diffs are not rendered by default.

3,003 changes: 3,003 additions & 0 deletions META-INF/MANIFEST.MF

Large diffs are not rendered by default.

193 changes: 181 additions & 12 deletions META-INF/com/google/android/updater-script
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,206 @@ unmount("/data");
show_progress(1.000000, 0);
ui_print("");
ui_print("");
ui_print("Z5 S.T.Y.L.E. Installer");
ui_print("=============================================");
ui_print("__ __ _ ___________ ");
ui_print("\ \ / / (_) |___ / ____|");
ui_print(" \ V / _ __ ___ _ __ _ __ _ / /| |__ ");
ui_print(" > < | '_ \ / _ \ '__| |/ _` | / / |___ \ ");
ui_print(" / . \| |_) | __/ | | | (_| | / /__ ___) |");
ui_print("/_/ \_\ .__/ \___|_| |_|\__,_| /_____|____/ ");
ui_print(" | | ");
ui_print(" _|_|_ _________ ___ ______ ");
ui_print(" / ____|__ __\ \ / / | | ____| ");
ui_print(" | (___ | | \ \_/ /| | | |__ ");
ui_print(" \___ \ | | \ / | | | __| ");
ui_print(" ____) | | | | | | |____| |____ ");
ui_print(" |_____/ |_| |_| |______|______| ");
ui_print(" ");
ui_print("=============================================");
ui_print(" The limit is your imagination. ");
ui_print("=============================================");
ui_print(" 4.5 - STABLE - 21 FEBRUARY 2016 ");
ui_print("=============================================");
ui_print("");
ui_print("");
ui_print("Please REMEMBER TO WIPE DATA at the end!");
ui_print("");
ui_print("Mounting System");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
set_progress(0.200000);
ui_print("Cleaning up");
set_progress(0.100000);
ui_print("Cleaning up App, Framework and Media");
ui_print("");
delete_recursive("/system/app");
delete_recursive("/system/etc/product/applications/facebook-hdpi");
delete_recursive("/system/framework");
delete_recursive("/system/priv-app");
delete_recursive("/system/vendor/app");
delete_recursive("/system/media");
set_progress(0.400000);
ui_print("Extracting system...");
set_progress(0.200000);
ui_print("Extracting System...");
ui_print("");
package_extract_dir("system", "/system");
set_progress(0.700000);
set_progress(0.400000);
ui_print("Setting Permissions...");
ui_print("");
#PERM
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/system/framework");
set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app");
set_perm_recursive(0, 0, 0755, 0644, "/system/media");
set_perm(0, 0, 0644, "/system/lib/libchromatix_imx134_SOI08BS2_liveshot.so");
set_perm(0, 0, 0644, "/system/lib/libchromatix_imx134_SOI08BS2_video_hd.so");
set_perm(0, 0, 0644, "/system/lib/hw/camera.msm8226.so");
set_perm(0, 0, 0644, "/system/vendor/camera/morpho_denoiser.cfg");
set_perm(0, 0, 0644, "/system/vendor/camera/morpho_denoiser_subcam.cfg");
set_perm(0, 0, 0644, "/system/vendor/camera/morpho_denoiser_subcam_preview.cfg");
set_perm(0, 0, 0644, "/system/vendor/camera/morpho_face_detection.cfg");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_default_video.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_liveshot_beach.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_liveshot_landscape.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_liveshot_night.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_liveshot_party.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_liveshot_portrait.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_liveshot_snow.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_liveshot_sports.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_anti_motion_blur.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_baby.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_backlight.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_backlight_portrait.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_beach.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_dark.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_dish.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_document.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_fireworks.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_handheld_twilight.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_high_sensitivity.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_landscape.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_macro.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_night.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_night_portrait.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_party.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_pet.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_portrait.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_snow.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_soft_skin.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_sports.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_spot_light.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_preview_sweep_stitch.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_anti_motion_blur.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_baby.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_backlight.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_backlight_portrait.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_beach.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_dark.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_dish.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_document.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_fireworks.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_handheld_twilight.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_high_sensitivity.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_landscape.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_macro.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_night.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_night_portrait.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_party.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_pet.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_portrait.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_snow.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_soft_skin.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_sports.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_spot_light.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_snapshot_sweep_stitch.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_video_beach.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_video_landscape.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_video_night.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_video_party.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_video_portrait.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_video_snow.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libchromatix_imx134_SOI08BS2_video_sports.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libmmcamera2_iface_modules.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libmmcamera2_imglib_modules.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libmmcamera2_isp_modules.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libmmcamera2_sensor_modules.so");
set_perm(0, 0, 0644, "/system/vendor/lib/libmmcamera2_stats_modules.so");
set_perm(0, 0, 0644, "/system/vendor/lib/liboemcamera.so");
set_progress(0.500000);
package_extract_file("common/busybox", "/tmp/busybox");
set_perm(0, 0, 0755, "/tmp/busybox");
package_extract_file("common/buildprop.sh", "/tmp/buildprop.sh");
set_perm(0, 0, 0755, "/tmp/buildprop.sh");
package_extract_dir("common/buildprop", "/tmp/buildprop");
run_program("/tmp/buildprop.sh");
ui_print("");
ui_print("=============================================");
ui_print("Now we will install for you: ");
ui_print("MultiRecovery, SuperSU, RIC disabler");
ui_print("Please... BE PATIENT!");
ui_print("=============================================");
###MR08
ui_print(" - Installing MultiRecovery 0.8 - ");
package_extract_file("common/chargemon", "/tmp/chargemon");
package_extract_file("common/script.sh", "/tmp/script.sh");
package_extract_file("common/copybinary.sh", "/tmp/copybinary.sh");
set_perm(0, 0, 0755, "/tmp/chargemon");
set_perm(0, 0, 0755, "/tmp/script.sh");
set_perm(0, 0, 0755, "/tmp/copybinary.sh");
assert(run_program("/tmp/copybinary.sh") == "0");
set_progress(0.600000);
package_extract_file("common/mr08/bin/cwm.cpio", "/system/bin/cwm.cpio");
package_extract_file("common/mr08/bin/philz.cpio", "/system/bin/philz.cpio");
package_extract_file("common/mr08/bin/twrp.cpio", "/system/bin/twrp.cpio");
package_extract_file("common/mr08/bin/recovery.sh", "/system/bin/recovery.sh");
package_extract_file("common/mr08/xbin/busybox", "/system/xbin/busybox");
set_progress(0.700000);
package_extract_file("common/byeselinux.sh", "/tmp/byeselinux.sh");
package_extract_file("common/byeselinux.ko", "/tmp/byeselinux.ko");
package_extract_file("common/modulecrcpatch", "/tmp/modulecrcpatch");
set_perm(0, 0, 0755, "/tmp/byeselinux.sh");
set_perm(0, 0, 0755, "/tmp/modulecrcpatch");
run_program("/tmp/byeselinux.sh");
set_perm(0, 2000, 0644, "/system/bin/twrp.cpio");
set_perm(0, 2000, 0644, "/system/bin/philz.cpio");
set_perm(0, 2000, 0644, "/system/bin/cwm.cpio");
set_perm(0, 2000, 0755, "/system/bin/recovery.sh");
set_perm(0, 2000, 0755, "/system/xbin/busybox");
###RIC
ui_print(" - Installing RIC Disabler - ");
package_extract_file("common/modulecrcpatch", "/tmp/modulecrcpatch");
package_extract_file("common/installmount.sh", "/tmp/installmount.sh");
package_extract_file("common/wp_mod.ko", "/tmp/wp_mod.ko");
set_perm(0, 0, 0755, "/tmp/modulecrcpatch");
set_perm(0, 0, 0755, "/tmp/installmount.sh");
set_perm(0, 0, 0644, "/tmp/wp_mod.ko");
set_progress(0.800000);
if
run_program("/tmp/busybox", "ls", "/system/lib/modules/scsi_wait_scan.ko") != "0"
then
abort("Error finding scsi module");
else
set_progress(0.850000);
if
#todo: dynamically check for kernel modules to read crc
run_program("/tmp/modulecrcpatch", "/system/lib/modules/scsi_wait_scan.ko", "/tmp/wp_mod.ko") != "0"
then
abort("Error patching kernel module");
else
run_program("/tmp/busybox", "cp", "/tmp/wp_mod.ko", "/system/lib/modules/wp_mod.ko");
set_perm(0, 2000, 0644, "/system/lib/modules/wp_mod.ko");
assert(run_program("/tmp/installmount.sh") == "0");
endif;
endif;
set_progress(0.900000);
unmount("/system");
###SuperSU
ui_print(" - Installing SuperSU - ");
package_extract_dir("common/supersu", "/tmp/supersu");
run_program("/tmp/busybox", "unzip", "/tmp/supersu/supersu.zip", "META-INF/com/google/android/*", "-d", "/tmp/supersu");
run_program("/tmp/busybox", "sh", "/tmp/supersu/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/supersu/supersu.zip");
ui_print(" - Cleaning this mess up... - ");
ifelse(is_mounted("/system") == "/system", unmount("/system"));
delete_recursive("/tmp/");
set_progress(1.000000);
ui_print("All Done!");
ui_print("Don't forget to hit the thanks button :)");
ui_print("And please REMEMBER TO WIPE DATA!");
ui_print("=============================================");
ui_print("Finished!");
ui_print("Please note:");
ui_print("Bugs from dirty flashes won't be attended.");
ui_print("Wipe Data and/or Dalvik if needed.");
ui_print("Z5 S.T.Y.L.E. Installed");
24 changes: 24 additions & 0 deletions common/buildprop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/sbin/sh

BUSYBOX=/tmp/busybox
GREP="${BUSYBOX} grep"

# Xperia M2 Dual
if [ "`${GREP} ro.product.name=D2302 /system/build.prop`" ];
then
cp /tmp/buildprop/dual/build.prop /system/
cp /tmp/buildprop/dual/InCallUI.apk /system/priv-app/InCallUI/
cp /tmp/buildprop/dual/TeleService.apk /system/priv-app/TeleService/
cp /tmp/buildprop/dual/Settings.apk /system/priv-app/Settings/
else
# Xperia M2 HSPASS
if [ "`${GREP} ro.product.name=D2305 /system/build.prop`" ];
then
cp /tmp/buildprop/hspass/build.prop /system/
#cp /tmp/buildprop/dual/InCallUI.apk /system/priv-app/InCallUI/
#cp /tmp/buildprop/dual/TeleService.apk /system/priv-app/TeleService/
else
# Xperia M2 LTE
cp /tmp/buildprop/lte/build.prop /system/
fi
fi
Binary file added common/buildprop/dual/InCallUI.apk
Binary file not shown.
Binary file added common/buildprop/dual/Settings.apk
Binary file not shown.
Binary file added common/buildprop/dual/Settings.apk.old
Binary file not shown.
Binary file added common/buildprop/dual/TeleService.apk
Binary file not shown.
Loading

0 comments on commit aa7dffa

Please sign in to comment.