[KERNEL] Stock 4.3 JWR66Y CWM-flashable zip ! - Nexus 7 Android Development

I've a Galaxy Nexus and on the Galaxy Nexus Development thread, I saw that somebody was asking the stock google kernel 4.3 in a flashable cwm zip for his Nexus 7 so here we go.
I've just extracted the boot.img from the factory image JWR66Y for the "nakasi" and made it flashable.
I don't have a Nexus 7 so I don't tested it ! But I tried the same operation on my galaxy nexus and it works really well.
Just in the case, make a backup of your current kernel !
I'm gonna delete this warning after a few people can confirm me that it works.

Someone already posted it
http://forum.xda-developers.com/showthread.php?t=2401958
do'n't know if your updater script will works also on nexus 7... this is different platform
mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-name/APP", "/system");
assert(getprop("ro.product.device") == "grouper" || getprop("ro.build.product") == "grouper" ||
getprop("ro.product.device") == "tilapia" || getprop("ro.build.product") == "tilapia");
run_program("/sbin/sh", "-c", "mkdir /system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc/init.d");
unmount("/system");
assert(package_extract_file("boot.img", "/dev/block/platform/sdhci-tegra.3/by-name/LNX"));

Thread Closed as there is one here already and tested....

Related

【modem】 SGY USB modem functionality , AT command set & mai77's [RESEARCH] misc. stuff

【modem】 SGY USB modem functionality , AT command set & mai77's [RESEARCH] misc. stuff
the SGY modem can be talked to in Windows with COM2: hyperterminal or s.th. similar:
ATQ0V1E0 - OK
AT+GMM - GT-S5360
AT+FCLASS=? - no fax
AT#CLS=? - error
AT+GCI? - error
AT+GCI=? - error
ATI1 - BCM21553_Modem_SI1220.2_V2.4
ATI2 - OK
3...6 OK
ATI7 - OK
so we have no fax.
you can do some stuff via AT commands, such as query SMS central asf..
anybody found out anything fancy yet ?
commands
PuTTY log
AT+CLAC // query available AT commands
Code:
&C
&D
&F
&W
*
*APMCAPITST capi test
*APMSLEEP
*APMTEST error
*CGSEND
*CPMINDRDR
*CPMSOCKTST socket test
*DORMANT
*DPROFTST test
*MACCTTST test
*MAUDLEVEL audio level
*MAUDMODE
*MAUDTUNE
*MAUDVOL
*MBSEL
*MBTSAP
*MCAM
*MCAPITST
*MCNAP
*MCNFG
*MCOLR
*MCSDACCEPT
*MCSDPARAM
*MCSDSEND
*MCSDSTART
*MCSDSTOP
*MCSQ
*MCUSA
*MDBCF
*MDEMO error what ?
*MDNPN
*MDSPTST test
*MDTMF
*MECSIM
*MEDL
*MEMDUMP hex dump
*MHDK
*MICID some funny code
*MINDRDR
*MKEYTONE
*MLPBKIP
*MMGQ
*MMGSR
*MPCHRSP
*MPDPTST test
*MPGS
*MPLMNTST test OK
*MPROF
*MPSEL
*MQCFI
*MQPIN
*MQPV
*MQSC
*MQSPN
*MQSSIG
*MRESET reset what ?
*MRINFO OK
*MSALS
*MSCLASS not allowed
*MSETPORT
*MSETSIM
*MSIMIF
*MSIMTST sim card
*MSLEEP
*MSMS
*MSNU
*MSOCKTST test
*MSTACKTST test
*MSTPTN
*MSTTY
*MTEST test stuff
*MTESTUSB err
*MTESTUSBCP err
*MTMENU
*MTREPORT ok
*MTRES
*MTSTUSSD
*MTZ
*MUPAS
*MUSBTST
*MUSBTSTCP test
*MVERS
*MVMIND
*MVMSC
*MVTS
*VJC
+BANSELCT
+CACM
+CAMM
+CAOC
+CBC
+CBST
+CCFC
+CCLK
+CCWA
+CCWE
+CEER
+CFUN
+CGACT
+CGATT
+CGCLASS fax
+CGCMOD
+CGDATA
+CGDCONT
+CGDSCONT set your APN, required!
+CGEQMIN
+CGEQNEG
+CGEQREQ
+CGEREP
+CGMI
+CGMM
+CGMR
+CGPADDR
+CGQMIN
+CGQREQ
+CGREG
+CGSMS
+CGSN
+CGTFT
+CHLD
+CHUP
+CIMI
+CKPD
+CLAC
+CLCC
+CLCK
+CLIP
+CLIR
+CMAR
+CMEC
+CMEE
+CMER
+CMGC
+CMGD
+CMGF
+CMGL
+CMGR
+CMGS
+CMGW
+CMMS
+CMOD
+CMOLRG
+CMSS
+CMUT
+CMUX
+CNMA
+CNMI
+CNUM
+COLP
+COPN
+COPS
+CPAS
+CPBF
+CPBR
+CPBS
+CPBW
+CPIN
+CPLS
+CPMS
+CPNET
+CPNSTAT
+CPOL
+CPUC
+CPWC
+CPWD
+CR
+CRC
+CREG
+CRES
+CRLA
+CRLP
+CRSM
+CSAS
+CSCA
+CSCB
+CSCS
+CSDH
+CSIM
+CSMP
+CSMS
+CSNS
+CSQ
+CSSN
+CSTA
+CTZR
+CUSD
+DR
+DS
+ER
+ES
+ETBM
[I]+CME ERROR:
ATC still in processing other AT command
[/I][B]a lot[/B] :mad:
+FMDL?
+FMFR?
+FMI?
+FMM?
+FMR?
+FREV?
+GCAP +GCAP: +CGSM, +FCLASS, +DS, +ES
+GETBAND OK :confused:
+GMI
+GMM
+GMR
+ICF
+IFC
+ILRR
+IPR
+MAXPOWER
+SETBAND freeze
+SLEEP
+VGR
+VGT
+VTD
+VTS
+WS46
A
D
E
H
I
L
M
O
P
Q
S0 8 S-registers available
S10
S3
S4
S5
S6
S7
S8
T
V
X
Z
explanation see http://forum.xda-developers.com/showthread.php?t=1471241
http://fabiensanglard.net/cellphoneModem/index2.php
discusses how to log modem traffic
http://forum.xda-developers.com/showpost.php?p=20923894&postcount=2
resolve privacy issues via AT command
ot
latest stock LI1 csc.rfs swype installer:
GT-S5369 is vodafone branded. these models are maintained in the same "tree" as SGY by samsung:
"GT-B7510" is galaxy pro with hw keyboard, non slider
assert(getprop("ro.product.device") == "GT-S5360" ||
getprop("ro.build.product") == "GT-S5360" ||
getprop("ro.product.device") == "GT-S5360B" ||
getprop("ro.build.product") == "GT-S5360B" ||
getprop("ro.product.device") == "GT-S5830" ||
getprop("ro.build.product") == "GT-S5830" ||
getprop("ro.product.device") == "GT-S5570" ||
getprop("ro.build.product") == "GT-S5570" ||
getprop("ro.product.device") == "GT-S5670" ||
getprop("ro.product.product") == "GT-S5670"||
getprop("ro.product.device") == "GT-B5510" ||
getprop("ro.build.product") == "GT-B5510" ||
getprop("ro.product.device") == "GT-S5360T" ||
getprop("ro.build.product") == "GT-S5360T" ||
getprop("ro.product.device") == "GT-S5363" ||
getprop("ro.build.product") == "GT-S5363" ||
getprop("ro.product.device") == "GT-S5369" ||
getprop("ro.build.product") == "GT-S5369" ||
getprop("ro.product.device") == "GT-S5570I" ||
getprop("ro.build.product") == "GT-S5570I" ||
getprop("ro.product.device") == "GT-S5830i" ||
getprop("ro.build.product") == "GT-S5830i" ||
getprop("ro.product.device") == "GT-B7510" ||
getprop("ro.product.product") == "GT-B7510"
);
show_progress(0.100000, 0);
show_progress(0.500000, 0);
# format("MTD", "system");
# mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
# unmount("/system");
wat is this!!?
so whts your point bro? wht benefit are we going to get from it
Sent from my GT-S5360 using Tapatalk 2

			
				
it was an offtopic post that told you all phones, that are very similar to SGY.
they use the same official swype installer in stock ROM. in case you did not yet know all the models that are almost the same as SGY or even exactly the same phone.
OK, this is a Developement Section
but everyone doesn't know what you explain in this therad
This is XDA-Developers, the language here is English!!
Thats the real dev work..
:thumbup::thumbup::thumbup:
the second post is a lil bit too long. can you edit it mai? it will be looks neat if you put the command list inside something
Code:
like this
@mai77... can you please check your pm friend? Its been so many days I sent... will send 1 more time if you didn't get..
-------------------------------------------------------------------------
nitubhaskar-->Deadly.™
★Nothing is True.. Everything is Permitted★®
Muffins..? Yummy!©
update-binary 3 FD update.zip
3 command line parameters for u-b
3 = 0..3 API level
to run u-b in shell
cd /tmp
update-binary 3 0 /sdcard/update.zip
in
adb -d shell
anyone figured this out for SGY ? http://forum.xda-developers.com/showthread.php?p=34992878

Creation flashable zip sys-part CM10

Hi the crazy flash,
I open this topic for help creating a fix
CM10 ROM is Divided into 2 parts and some of the applications are installed on the / data partition due to Lack of space for full Jellybean installation.
Hence you will Have to reflash the rom you factory reset or Effective wipe / data partition.
Click to expand...
Click to collapse
After a restart install CM10 patch to system/app did not effect ?§!
Here is the solution I use busybox to inject App
I take this opportunity to fix some permission
If you have time of need flashable zip of this topic and for you!
Kernel or gapps or questions to ask permission
FixSysPartCM10
Code:
assert(getprop("ro.product.device") == "galaxysl" || getprop("ro.build.product") == "galaxysl" ||
getprop("ro.product.device") == "GT-I9003" || getprop("ro.build.product") == "GT-I9003");
ui_print(" ");
ui_print(" ********************************************** ");
ui_print(" * Fix reboot sys-parts/app by LoLaTiOn * ");
ui_print(" ********************************************** ");
show_progress(0.500000, 0);
mount("ext4", "EMMC", "/dev/block/stl9", "/system");
run_program("/sbin/busybox", "mount", "/dev/block/mmcblk0p3", "/data");
package_extract_dir("data", "/data");
symlink("/data/sys-parts/app","/system/app");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/framework");
set_perm_recursive(0, 0, 0755, 0644, "/data/app");
unmount("system");
run_program("/sbin/reboot");
instruction
Open zip with winrar
Add your app in \data\sys-parts\app
Create other folder in the system if time of need
Made you happy to share your patch and help the community
Enjoy...
my rom do not need this fix
Worked perfectly for me! Thanks
This is needed because CM10 with gapps does not fit our NAND aka ROM size.
Hence, the system apps are pushed into /data/sys-apps so that the entire ROM can work properly.. else full /system of jellybean does not fit on our small partition.

changing build.pro can brick the phone?

hi,
I have the rom etotalk on my huawei u8836. when I get the update .25 via ota this check that
Code:
assert(file_getprop("/system/build.prop", "ro.build.fingerprint") == "Huawei/U8836D/hwu8836D:4.0.4/HuaweiU8836D/CHNC00B600SP22:user/release-keys" ||
file_getprop("/system/build.prop", "ro.build.fingerprint") == "Huawei/U8836D/hwu8836D:4.0.4/HuaweiU8836D/CHNC00B600SP25:user/release-keys");
assert(getprop("ro.product.device") == "hwu8836D" ||
getprop("ro.build.product") == "hwu8836D");
and find this one
Code:
ro.build.description=huaqin77_cu_ics2-user HuaweiU8836D CHNC00B600SP22 release-keys
ro.build.product=huaqin77_cu_ics2
if i change update file it stops because no signature
so can i change the build.prop without problem?
thanks

[GUIDE]Aroma Installer on any rom[Easy and simple]

Hello XDA member, i have little guide to add Aroma In your rom, this guide very easy to use, just need little change, and i gave the clues what you can change and can't change
Ok, to the point of the guide
Download the latest AROMA installer from this thread or my edited Aroma installer here
Then follow these little instructions
loadlang("langs/en.lang");
change "langs/en.lang" to change language, see in the aroma folder
theme("sense");
change "sense" to change aroma theme, see in the aroma folder
Added changelog/features
write your rom features or changelog in this files the file is in META-INF\com\android\google\android\aroma\changelog.txt
Little tutorial
Note :
> "xxx" means the words inside this ""
> you can change all xxx words
Option 1 : Option for select devices
> In aroma-config
);
selectbox(
#-- Title
"xxx", > you can change the "xxx" words
#-- Sub Title
"xxx", > you can change the "xxx" words
#-- Icon: <AROMA Resource Dir>/icons/default.png or <ThemeDir>/icon.default.png
"@default",
#-- Will be saved in /tmp/aroma/mods.prop
"system.prop",
"xxx","", 2, > you can change the "xxx" words
"xxx","xxx",1, > you can change the "xxx" words
"xxx","xxx",0, > you can change the "xxx" words
"xxx","xxx",0 > you can change the "xxx" words
#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);
> In updater-script
# xxx
# xxx
if
file_getprop("/tmp/aroma/system.prop","selected.1") == "1"
then
ui_print("xxx");
package_extract_dir("model/p760", "/system");
endif;
> you can change the "xxx" after "package_extract_dir" words depend on your own,
i use p760, which is the file is located in model/p760 folder,
make sure you put the right position of the file,
example :
i want to put "ducati-m3.bin" file in system/vendor/firmware
then that file should be in model/p760/vendor/firmware (look at the folder)
do the same thing for the rest of it
Option 2 : Option for add or remove apps
You can edit what you to install or remove from your rom, i used "Live Wallpapers" and some apps, you can edit yourself
> In aroma-config
checkbox(
"Install apps", > you can change the "xxx" words
"Uncheck items to remove", > you can change the "xxxx" words
"@default", > you can't change the "xxx" words
"remove.prop", > you can't change the "xxxx" words
"Live Wallpapers","",2, > you can change the "xxx" words
"Basic Dreams","",1, > you can change the "xxx" words
"Cosmic Flow","",1, > you can change the "xxx" words
"Photo Table","",1, > you can change the "xxx" words
"Applications","",2, > you can change the "xxx" words
"Carhome.apk","Carhome",1, > you can change the "xxx" words
"Protips.apk","Pro tips",1, > you can change the "xxx" words
"QuickBoot.apk","Quick Boot",1, > you can change the "xxx" words
);
> In updater-script
For install apps
# xxx > you can change the xxx words
# xxx > you can change the xxx words
if
file_getprop("/tmp/aroma/xxx.prop","selected.1") == "1" > you can change the xxx.prop words
then
ui_print("xxxx"); > you can change the "xxx" words
package_extract_file("camera/GoogleCamera.apk", "/system/app/GoogleCamera.apk");
endif;
> you can change the "xxx" after "package_extract_file" words depend on your own,
i use camera, which is the file is located in camera folder, then name of camera app
then i want to install in system/app folder, do the same thing for the rest of it
For remove apps
# xxx > you can change the xxx words
# xxx > you can change the xxx words
if
file_getprop("/tmp/aroma/remove.prop","item.1.1") == "0"
then
delete("/system/app/CarHome");
endif;
> change this "/system/app/CarHome" depend on what you want to remove, i used CarHome app
do the same thing for the rest of it
Last step : Change Updater script for installing rom
=> Step one : Device initial
Fine these lines
assert(getprop("ro.product.device") == "p760" || getprop("ro.build.product") == "p760" || abort("This package is for \"p760\" devices; this is a \"" + getprop("ro.product.device") + "\"."); );
mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/system", "/system");
package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
package_extract_file("system/bin/backuptool.functions", "/tmp/backuptool.functions");
set_perm(0, 0, 0777, "/tmp/backuptool.sh");
set_perm(0, 0, 0644, "/tmp/backuptool.functions");
run_program("/tmp/backuptool.sh", "backup");
unmount("/system");
show_progress(0.200000, 0); >until this
Replace those lines with your updater.scirpt until show_progress line
=> Step Two : Format system
Fine these lines
format("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/system", "0", "/system");
mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/system", "/system");
Replace those lines with your updater.scirpt
=> Step Three : Extracting files and setup symlink
"xxx" means skiping
Fine these lines
ui_print("@ Extracting System Files..");
package_extract_dir("system", "/system");
symlink("../bin/fsck.f2fs", "/system/bin/dump.f2fs");
symlink("../xbin/su", "/system/bin/su");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
"/system/xbin/adjtimex", "/system/xbin/arp", "/system/xbin/ash",
"/system/xbin/awk", "/system/xbin/base64", "/system/xbin/basename",
"/system/xbin/bbconfig", "/system/xbin/blkid", "/system/xbin/blockdev",
xxxxx
xxxxx
show_progress(0.600000, 0);
Replace those lines with your updater.scirpt until show_progress line
=> Step Four : Setting permission
"xxx" means skiping
Fine these lines
ui_print("@ Setting Permissions");
set_metadata_recursive("/system", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u: object_r:system_file:s0");
set_metadata_recursive("/system/addon.d", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u: object_r:system_file:s0");
set_metadata_recursive("/system/bin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u: object_r:system_file:s0");
set_metadata("/system/bin/app_process", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u: object_r:zygote_exec:s0");
set_metadata("/system/bin/clatd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u: object_r:clatd_exec:s0");
xxxx
xxxx
ui_print("@ Done");
ui_print("@ By nasheich");
ui_print("@ If you like this new build");
ui_print("@ Go back to my thread and press THANKS button");
show_progress(1.000000, 0);
unmount("/system");
Replace those lines with your updater.scirpt until unmount("/system"); line
Click to expand...
Click to collapse
Credit :
- amarullz for Aroma Installer
- nasheich for this little guide
Tips and Trick
- For rom under Android 4.4.2 (Kitkar), skip the step 3 and step four,
- After installation, take a log, it's easier if your get installation failed, like status 6, status 7, etc
note : status 0 it's mean working or installation successful
Questions and Answers
Q : Can i use this on my rom ?
A : Yes, this cam be used for any roms
Q : I got error on installation, status 6/7
A : Check your updater.script, there must be something wrong
Q : I've checked it all, look like nothing wrong in updater.script, any idea ?
A : Try another recovery, in some device, aroma didn't work
@Nasheich Xfiles the link to your installer is broken.

HELP!!! How to fix "Can’t load Android System your data may be corrupt" error without losing your data ?

Kindly find the updated post here
Hello guys,I was uninstalling some apps and accidently Asus launcher,Google Play and Play services etc got selected as well.While apps were getting uninstalled and downgraded,phone restarted somehow and everything is screwed up now.I am stuck on a screen telling “Can’t load Android System.Your data may be corrupt.If you continue to get this message, you may need to perform a factory data reset and erase all user data stored on this device” with 2 options underneath, 1.Try again and 2.Factory data reset
When I select “Try again” it shows “ Dead android robot on his back and red triangle” for a split second and then goes to Asus logo screen for 5 seconds and then ask for encryption key, when I enter the key it goes to ASUS logo screen again for 30-40 seconds and again back to Error screen.
Asus ZenFone 3 ZE552KL
ROM : Stock Oreo Version WW-15.0410.1807.75
Bootloader is Locked
Recovery : Stock Recovery
USB debugging : Disabled
Android device encryption is ON
I don’t wanna to lose my data coz there are some very important documents,projects reports, pictures and backups in it.
Device is booting in Fastboot Mode and Recovery Mode.
It even boots to the Sideload Mode via recovery and running "adb devices" command shows it attached with it's serial number and sideload but other commands don't work ( probably coz USB debugging is disabled ? )
Device is being shown /listed in Fastboot Mode.
I am unable to use adb as USB debugging is disabled.Running "adb devices " command shows device’s serial number and "recovery" written next to it ,in the command prompt.
Will flashing Version WW-15.0410.1807.75 again do the job without wiping user data ? Just like “userdata” partition is not normally touched by the OTA update process ?
How about flashing only boot.img / system.img ?Can we resolve the issue by just flashing just system.img or boot.img instead of flashing complete stock ROM ?
I don't care about performance of the system or unpredicted issues later on,my entire focus is on preserving my data.
Any help would be greatly appreciated!
I extracted the Stock ROM zip and found it's updater script in "META-INF/com/google/android"
JavaScript:
ifelse( getprop("ro.build.id") == "OPR1.170623.026", ui_print("Android O device"), (
(greater_than_int(getprop("ro.build.date.utc"), 1514390400)) || abort("Can't install this package on device version less than 14.2020.1712.85 device build time (" + getprop("ro.build.date") + ").");
) );
ifelse( getprop("ro.product.name") == "OPEN_Phone", ui_print("OPEN SKU device"), (
getprop("ro.product.name") == "WW_Phone" || abort("This package is for \"WW_Phone\" devices; this is a \"" + getprop("ro.product.name") + "\".");
) );
ui_print("Target: asus/WW_Phone/ASUS_Z012D:8.0.0/OPR1.170623.026/15.0410.1807.75-0:user/release-keys");
show_progress(0.750000, 540);
ui_print("Patching system image unconditionally...");
block_image_update("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat") ||
abort("E1001: Failed to update system image.");
ui_print("Verifying the updated system image...");
if range_sha1("/dev/block/bootdevice/by-name/system", "136,0,32767,32768,32770,33009,33011,33516,65535,65536,65538,66043,98303,98304,98306,98545,98547,99052,131071,131072,131074,131579,163839,163840,163842,164081,164083,164588,196607,196608,196610,197115,229375,229376,229378,229617,229619,230124,262143,262144,262146,262651,294910,294912,294914,295153,295155,295660,327679,327680,327682,328187,335068,360448,360450,360955,393214,393216,393218,393723,393724,393725,425982,425984,425986,426491,458751,458752,458754,459259,491519,491520,491522,492027,524287,524288,524290,524795,557055,557056,557058,557563,589823,589824,589826,590331,622591,622592,622594,623099,655358,655360,655362,655867,688126,688128,688130,688635,720894,720896,720898,721403,753662,753664,753666,754171,786430,786432,786434,786939,819198,819200,819202,819441,819443,819948,851966,851968,851970,852475,884734,884736,884738,884977,884979,885484,917502,917504,917506,918011,950270,950272,950274,950779,967696,967697,983040") == "9a4740126249131da4ccd7e39fcf8d7302a3f818" then
if range_sha1("/dev/block/bootdevice/by-name/system", "136,32767,32768,32770,33009,33011,33516,65535,65536,65538,66043,98303,98304,98306,98545,98547,99052,131071,131072,131074,131579,163839,163840,163842,164081,164083,164588,196607,196608,196610,197115,229375,229376,229378,229617,229619,230124,262143,262144,262146,262651,294910,294912,294914,295153,295155,295660,327679,327680,327682,328187,335068,335580,359936,360448,360450,360955,393214,393216,393218,393723,393724,393725,425982,425984,425986,426491,458751,458752,458754,459259,491519,491520,491522,492027,524287,524288,524290,524795,557055,557056,557058,557563,589823,589824,589826,590331,622591,622592,622594,623099,655358,655360,655362,655867,688126,688128,688130,688635,720894,720896,720898,721403,753662,753664,753666,754171,786430,786432,786434,786939,819198,819200,819202,819441,819443,819948,851966,851968,851970,852475,884734,884736,884738,884977,884979,885484,917502,917504,917506,918011,950270,950272,950274,950779,967696,967697") == "6d1cea242bbacf2ea86f62fa6c06b6bde31ec430" then
ui_print("Verified the updated system image.");
else
abort("E1003: system partition has unexpected non-zero contents after OTA update");
endif;
else
abort("E1002: system partition has unexpected contents after OTA update");
endif;
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");
show_progress(0.200000, 10);
# ---- radio update tasks ----
ui_print("Patching firmware images...");
ifelse(msm.boot_update("main"), (
ui_print("installing cmnlib64");
package_extract_s_file("firmware-update/cmnlib64.mbn", "/dev/block/bootdevice/by-name/cmnlib64");
ui_print("installing sbl1");
package_extract_s_file("firmware-update/sbl1.mbn", "/dev/block/bootdevice/by-name/sbl1");
ui_print("installing cmnlib");
package_extract_s_file("firmware-update/cmnlib.mbn", "/dev/block/bootdevice/by-name/cmnlib");
ui_print("installing rpm");
package_extract_s_file("firmware-update/rpm.mbn", "/dev/block/bootdevice/by-name/rpm");
ui_print("installing tz");
package_extract_s_file("firmware-update/tz.mbn", "/dev/block/bootdevice/by-name/tz");
ui_print("installing devcfg");
package_extract_s_file("firmware-update/devcfg.mbn", "/dev/block/bootdevice/by-name/devcfg");
ui_print("installing aboot");
package_extract_s_file("firmware-update/emmc_appsboot.mbn", "/dev/block/bootdevice/by-name/aboot");
ui_print("installing lksecapp");
package_extract_s_file("firmware-update/lksecapp.mbn", "/dev/block/bootdevice/by-name/lksecapp");
ui_print("installing keymaster");
package_extract_s_file("firmware-update/keymaster.mbn", "/dev/block/bootdevice/by-name/keymaster");
), "");
ifelse(msm.boot_update("backup"), (
ui_print("installing cmnlib64bak");
package_extract_s_file("firmware-update/cmnlib64.mbn", "/dev/block/bootdevice/by-name/cmnlib64bak");
ui_print("installing sbl1bak");
package_extract_s_file("firmware-update/sbl1.mbn", "/dev/block/bootdevice/by-name/sbl1bak");
ui_print("installing cmnlibbak");
package_extract_s_file("firmware-update/cmnlib.mbn", "/dev/block/bootdevice/by-name/cmnlibbak");
ui_print("installing rpmbak");
package_extract_s_file("firmware-update/rpm.mbn", "/dev/block/bootdevice/by-name/rpmbak");
ui_print("installing tzbak");
package_extract_s_file("firmware-update/tz.mbn", "/dev/block/bootdevice/by-name/tzbak");
ui_print("installing devcfgbak");
package_extract_s_file("firmware-update/devcfg.mbn", "/dev/block/bootdevice/by-name/devcfgbak");
ui_print("installing abootbak");
package_extract_s_file("firmware-update/emmc_appsboot.mbn", "/dev/block/bootdevice/by-name/abootbak");
ui_print("installing lksecappbak");
package_extract_s_file("firmware-update/lksecapp.mbn", "/dev/block/bootdevice/by-name/lksecappbak");
ui_print("installing keymasterbak");
package_extract_s_file("firmware-update/keymaster.mbn", "/dev/block/bootdevice/by-name/keymasterbak");
),"no backup partition");
msm.boot_update("finalize");
ui_print("installing modem");
package_extract_s_file("firmware-update/NON-HLOS.bin", "/dev/block/bootdevice/by-name/modem");
ui_print("installing dsp");
package_extract_s_file("firmware-update/adspso.bin", "/dev/block/bootdevice/by-name/dsp");
ui_print("installing asusfw");
package_extract_file("firmware-update/asusfw.img", "/dev/block/bootdevice/by-name/asusfw");
set_progress(1.000000);

Categories

Resources