Skip to content

Commit

Permalink
ProjectTrouble: release for sagit
Browse files Browse the repository at this point in the history
  • Loading branch information
ArianK16a committed Sep 6, 2018
0 parents commit 17b5c9d
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 0 deletions.
9 changes: 9 additions & 0 deletions META-INF/com/android/metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ota-property-files=metadata:69:314
ota-required-cache=0
ota-type=BLOCK
post-build=Xiaomi/sagit/sagit:8.0.0/OPR1.170623.027/V9.2.3.0.OCAMIEK:user/release-keys
post-build-incremental=eng.arian.20180906.155045
post-sdk-level=28
post-security-patch-level=2018-09-05
post-timestamp=1536241831
pre-device=sagit
27 changes: 27 additions & 0 deletions META-INF/com/android/otacert
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-----BEGIN CERTIFICATE-----
MIIEqDCCA5CgAwIBAgIJAJNurL4H8gHfMA0GCSqGSIb3DQEBBQUAMIGUMQswCQYD
VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4g
VmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UE
AxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAe
Fw0wODAyMjkwMTMzNDZaFw0zNTA3MTcwMTMzNDZaMIGUMQswCQYDVQQGEwJVUzET
MBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4G
A1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9p
ZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASAwDQYJKoZI
hvcNAQEBBQADggENADCCAQgCggEBANaTGQTexgskse3HYuDZ2CU+Ps1s6x3i/waM
qOi8qM1r03hupwqnbOYOuw+ZNVn/2T53qUPn6D1LZLjk/qLT5lbx4meoG7+yMLV4
wgRDvkxyGLhG9SEVhvA4oU6Jwr44f46+z4/Kw9oe4zDJ6pPQp8PcSvNQIg1QCAcy
4ICXF+5qBTNZ5qaU7Cyz8oSgpGbIepTYOzEJOmc3Li9kEsBubULxWBjf/gOBzAzU
RNps3cO4JFgZSAGzJWQTT7/emMkod0jb9WdqVA2BVMi7yge54kdVMxHEa5r3b97s
zI5p58ii0I54JiCUP5lyfTwE/nKZHZnfm644oLIXf6MdW2r+6R8CAQOjgfwwgfkw
HQYDVR0OBBYEFEhZAFY9JyxGrhGGBaR0GawJyowRMIHJBgNVHSMEgcEwgb6AFEhZ
AFY9JyxGrhGGBaR0GawJyowRoYGapIGXMIGUMQswCQYDVQQGEwJVUzETMBEGA1UE
CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMH
QW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAG
CSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbYIJAJNurL4H8gHfMAwGA1Ud
EwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAHqvlozrUMRBBVEY0NqrrwFbinZa
J6cVosK0TyIUFf/azgMJWr+kLfcHCHJsIGnlw27drgQAvilFLAhLwn62oX6snb4Y
LCBOsVMR9FXYJLZW2+TcIkCRLXWG/oiVHQGo/rWuWkJgU134NDEFJCJGjDbiLCpe
+ZTWHdcwauTJ9pUbo8EvHRkU3cYfGmLaLfgn9gP+pWA7LFQNvXwBnDa6sppCccEX
31I828XzgXpJ4O+mDL1/dBd+ek8ZPUP0IgdyZm5MTYPhvVqGCHzzTy3sIeJFymwr
sBbmg2OAUNLEMO6nwmocSdN2ClirfxqCzJOLSDE4QyS9BAH6EhY6UFcOaE0=
-----END CERTIFICATE-----
Binary file added META-INF/com/google/android/update-binary
Binary file not shown.
26 changes: 26 additions & 0 deletions META-INF/com/google/android/updater-script
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
ui_print("Target: Xiaomi/sagit/sagit:8.0.0/OPR1.170623.027/V9.2.3.0.OCAMIEK:user/release-keys");
ifelse(is_mounted("/system"), unmount("/system"));
ui_print(" ");
ui_print(" Project ");
ui_print(" Trouble ");
ui_print(" ");
ui_print(" ");
ui_print(" By NeoArian ");
ui_print(" ");
ui_print(" @");
ui_print(" ");
ui_print(" xda-developers");
ui_print(" ");
ui_print(" Thanks to Demon000 ");
ui_print(" and wight554 ");
ui_print(" ");
ui_print("*****************************************************");
ui_print("****************** Android 9.0 Pie ******************");
ui_print("*****************************************************");
ui_print("Patching vendor image unconditionally...");
block_image_update("/dev/block/bootdevice/by-name/cust", package_extract_file("vendor.transfer.list"), "vendor.new.dat.br", "vendor.patch.dat") ||
abort("E2001: Failed to update vendor image.");
show_progress(0.020000, 10);
package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");
show_progress(0.200000, 10);
set_progress(1.000000);
29 changes: 29 additions & 0 deletions ProjectTrouble.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
username=arian
date="$(date '+%Y%m%d')"
device="sagit"
buildtype="Official"
rom="Havoc-OS-v2.0"
mega="yes"
rompath="/home/arian/android/havoc"
outdir="/home/arian/ProjectTrouble"
ptsource="/home/arian/ProjectTrouble/source"

cd "$rompath"
cd out/target/product/"$device"
rm -rf "$outdir"/ProjectTrouble-"$device"-"$date"
mkdir "$outdir"/ProjectTrouble-"$device"-"$date"
unzip "$rom"-$date-"$device"-"$buildtype".zip -d "$outdir"/ProjectTrouble-"$device"-"$date"
cd "$outdir"/ProjectTrouble-"$device"-"$date"
rm system.new.dat.br system.patch.dat system.transfer.list
rm -rf META-INF/ system/
cp -r "$ptsource"/META-INF ./
zip -r ProjectTrouble-"$device"-"$date".zip ./

if [ "$mega" = "yes" ]
then
echo -e ${cya}"Uploading to mega.nz"
megaput --path /Root/ProjectTrouble/ProjectTrouble-"$device"-"$date".zip ProjectTrouble-"$device"-"$date".zip
wait
echo -e ${grn}"Uploaded file succesfully"
fi

0 comments on commit 17b5c9d

Please sign in to comment.