original thread here:
http://forum.xda-developers.com/showthread.php?t=1248486
just thought i would post it for those that want to create flashable zips. sorry if this isn't the right section.
DOWNLOAD:
Rar archive
Windows installer
credits:
benzyniarz1
Jordan,
Tried this on my Win7 box and I keep getting error status 6?
What am I doing wrong?
When do you get the error? Running the program or when trying to create the zip?
The program runs on my Win 7 64bit setup. But I haven't tried to create a zip yet.
Have you tried right clicking on the file and changing the Compatibility to something like Win XP?
Truckerglenn said:
When do you get the error? Running the program or when trying to create the zip?
The program runs on my Win 7 64bit setup. But I haven't tried to create a zip yet.
Have you tried right clicking on the file and changing the Compatibility to something like Win XP?
Click to expand...
Click to collapse
It runs and creates the zip just fine. When I try to flash it with cwm it comes up with error 6 and fails.
SNadler said:
It runs and creates the zip just fine. When I try to flash it with cwm it comes up with error 6 and fails.
Click to expand...
Click to collapse
Sorry I haven't been able to reply. There should be two cwm options or whatever. The type like edify or amend or something hold on ill look at uot
Sent from my SAMSUNG-SGH-I997 using xda premium
Ok there's amend and edify
Sent from my SAMSUNG-SGH-I997 using xda premium
Nvm I know what it is
Sent from my SAMSUNG-SGH-I997 using xda premium
Ok. its the updater-script. U have to create a script.
Sent from my SAMSUNG-SGH-I997 using xda premium
JordanElliott said:
Ok. its the updater-script. U have to create a script.
Sent from my SAMSUNG-SGH-I997 using xda premium
Click to expand...
Click to collapse
I am using edify....
Here is the one I made that does not work so you can maybe se where I went wrong and the program I was trying to make a .zip
I have it running in /system/app by restoring it from TB and also by means of ADB push but wanted to learn how to use this tool.....
Thanks!
SNadler said:
I am using edify....
Here is the one I made that does not work so you can maybe se where I went wrong and the program I was trying to make a .zip
I have it running in /system/app by restoring it from TB and also by means of ADB push but wanted to learn how to use this tool.....
Thanks!
Click to expand...
Click to collapse
here is what you do. go to meta-inf folder in your update.zip. and drag updater-script from the folder and right click. edit it with notepad++ and hit ctrl+a and copy this
ui_print("HERE U CAN PUT WHATEVER YOU WANT");
ui_print("Mounting system...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
ui_print("Installing");
package_extract_dir("system", "/system");
ui_print("Unmounting system...");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
here is notepad++
JordanElliott said:
here is what you do. go to meta-inf folder in your update.zip. and drag updater-script from the folder and right click. edit it with notepad++ and hit ctrl+a and copy this
ui_print("HERE U CAN PUT WHATEVER YOU WANT");
ui_print("Mounting system...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
ui_print("Installing");
package_extract_dir("system", "/system");
ui_print("Unmounting system...");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
Click to expand...
Click to collapse
Thanks I will try it in the AM.
This will need to be used every time I run the program then to use it for programs that go into the /system/app folder correct?
SNadler said:
Thanks I will try it in the AM.
This will need to be used every time I run the program then to use it for programs that go into the /system/app folder correct?
Click to expand...
Click to collapse
Well if u want copy what I pasted directly into zip updater creater or whatever
Sent from my SAMSUNG-SGH-I997 using xda premium
JordanElliott said:
Well if u want copy what I pasted directly into zip updater creater or whatever
Sent from my SAMSUNG-SGH-I997 using xda premium
Click to expand...
Click to collapse
Tried it and it still came up with error 6?
SNadler said:
Tried it and it still came up with error 6?
Click to expand...
Click to collapse
Idk then bro. I haven't tried the prohrar
Sent from my SAMSUNG-SGH-I997 using xda premium
JordanElliott said:
Idk then bro. I haven't tried the prohrar
Sent from my SAMSUNG-SGH-I997 using xda premium
Click to expand...
Click to collapse
Thanks anyway, I just took another and swapped the program i wanted to use with the one in it and that was just as easy.......
Related
As Clockwork's latest recovery has removed support for Amend, certain flashable files have been broken. An example of this, is the Market 2.2.7 ZIP from here: http://forum.xda-developers.com/showthread.php?p=10024525
I figured I should take an existing Edify script as a basis to upgrade with, so I grabbed GApps 2010-12-28 from Lithid's EVO CM7 compile thread here: http://forum.xda-developers.com/showthread.php?t=886294
So looking at the structure of the files, I am confused about certain files.
Under directory: META-INF
CERT.RSA
CERT.SF
MANIFEST.MF
How are these files created and what are they used for? It looks like they were created by SignApk, which I discovered some documentation on from here: http://www.londatiga.net/it/how-to-sign-apk-zip-files/
Another odd file is update-binary located under META-INF/com/google/android, which does not exist on the Amend ZIP. Is this used to introduce special commands like a library to reference?
Comparing the two update-script files
gb-gapps-hdpi-20100128 said:
ui_print("Installing Google Apps..");
mount("MTD", "system", "/system");
mount("MTD", "userdata", "/data");
package_extract_dir("system", "/system");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
ui_print("Installation complete!");
unmount("/data");
unmount("/system");
Click to expand...
Click to collapse
market_2.2.7_signed_12272010 said:
assert compatible_with("0.2") == "true"
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
set_perm_recursive 0 0 0755 0644 SYSTEM:app
set_perm_recursive 0 0 0755 0644 SYSTEM:lib
show_progress 0.1 10
Click to expand...
Click to collapse
So here is my attempt at updating the script:
As I am only pushing /system files, I only need that mount command. I am confused about permissions, should I be using the same 4 values from the Market 2.2.7 or the GApps package? Considering they both include Market.APK, I am confused why they would be different.
ui_print("Edify port of Amend Market ZIP, will it work?");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
ui_print("Installation successful!");
unmount("/system");
Click to expand...
Click to collapse
Since I modified the update-script file, I assume I need to use SignApk to generate the ZIP file to have the correct hash values.
Lastly: Can Edify push files to the SDCard similar to 'adb push'?
jerseymonkey said:
I am confused about permissions, should I be using the same 4 values from the Market 2.2.7 or the GApps package? Considering they both include Market.APK, I am confused why they would be different.
Click to expand...
Click to collapse
Here's some permissions info
// Read and write for owner, nothing for everybody else
chmod("/somedir/somefile", 0600);
// Read and write for owner, read for everybody else
chmod("/somedir/somefile", 0644);
// Everything for owner, read and execute for others
chmod("/somedir/somefile", 0755);
// Everything for owner, read and execute for owner's group
chmod("/somedir/somefile", 0750);
Click to expand...
Click to collapse
What's the difference between 0755 and 0771? 0771 gives the owner and the owners group read, write, and execute while anyone else can only read. Unless you create new users they will behave the same.
What's the difference between 0 and 1000? 1000 Sets the sticky bit which keeps the program in memory after it runs so it will start more quickly next time. Personally, I would set it at 0 so it doesn't sit in memory when I don't want it to.
Amend:
Code:
set_perm_recursive 0 0 0755 0644 SYSTEM:app
set_perm_recursive 0 0 0755 0644 SYSTEM:lib
Edify:
Code:
set_perm_recursive(0, 0, 0775, 0644, "/system/app");
set_perm_recursive(0, 0, 0775, 0644, "/system/lib");
Might also need to change "MTD" to "BML", as in:
Code:
mount("BML", "system", "/system");
(according to the leaked DK28's updater-script)
I think HTC (EVO) uses MTD.
Someone who knows, please verify this.
=]
DiGi760 said:
Here's some permissions info
Click to expand...
Click to collapse
nubecoder said:
Amend:
Might also need to change "MTD" to "BML", as in:
Code:
mount("BML", "system", "/system");
(according to the leaked DK28's updater-script)
I think HTC (EVO) uses MTD.
Someone who knows, please verify this.
=]
Click to expand...
Click to collapse
Thank you both for the permissions information. I just realized the latest GApps doesn't even include that command.
I tinkered with SignAPK today and managed to create/flash the zip without issue.
Also, the EVO works fine with MTD, did not test BML.
Lastly: Anyone know what update-binary is for? I assume it is used similar to a library as the script did not work without its presence.
How does one run another script from within the updater-script?
Previously it was:
run_program PACKAGE:check_data_app
What about Edify?
droidzone said:
How does one run another script from within the updater-script?
Previously it was:
run_program PACKAGE:check_data_app
What about Edify?
Click to expand...
Click to collapse
Here or here.
from:
Code:
run_program PACKAGE:check_data_app
to:
Code:
run_program("check_data_app");
nubecoder said:
Here or here.
from:
Code:
run_program PACKAGE:check_data_app
to:
Code:
run_program("check_data_app");
Click to expand...
Click to collapse
Thanks a lot..Those links were very useful...Never turned up in my search..
I forgot one.
nubecoder said:
I forgot one.
Click to expand...
Click to collapse
Wow..The last reference was the best! Thanks a lot!
nubecoder said:
I forgot one.
Click to expand...
Click to collapse
thanks for the info. i wanna update some of my own flashable zips but where do i get the update-binary? and i cant seem to find the notes on mtd u were talking about.
MrDevil said:
thanks for the info. i wanna update some of my own flashable zips but where do i get the update-binary? and i cant seem to find the notes on mtd u were talking about.
Click to expand...
Click to collapse
You can download any other Edify script and use it from that.
The dsixda kitchen generates it automatically when you convert the update-script.
MrDevil said:
thanks for the info. i wanna update some of my own flashable zips but where do i get the update-binary? and i cant seem to find the notes on mtd u were talking about.
Click to expand...
Click to collapse
As stated already, just use an update-binary that you can find in another zip (or use the one that comes with my amend2edify app, I think I used the one that came with the leaked DK28 Froyo update zip).
Also, if I'm not mistaken, if you are using CyanogenMod, I believe there is a different update-binary that must be used (someone confirm this please).
The notes about MTD is simply that the Epic uses BML in place of MTD, the notes are in orange up near the top of the post.
NOTE: I also compared this info with the leaked DK28 FROYO updater-script, it seems that for the samsung phones BML is used in place of MTD.
Click to expand...
Click to collapse
Here is a reference to MTD.
I haven't found anything about BML as of yet, maybe Samsung has some hidden docs somewhere...
=]
Thanks guys.
@nubecoder: yup I'm using cm will try out and post results.
Sent via homing pigeons
nubecoder said:
I forgot one.
Click to expand...
Click to collapse
Do you know the syntax of if,elif commands to be run from updater?
this might help I have not tried it yet just found it.
Sent from my unrEVOked using xda app
droidzone said:
Do you know the syntax of if,elif commands to be run from updater?
Click to expand...
Click to collapse
This might help, but it is a bit cryptic to me. I would use an assert if possible (since I've seen the syntax for them).
roscoenr said:
this might help I have not tried it yet just found it.
Click to expand...
Click to collapse
That was written with the Epic 4G in mind, I will be making some changes to it (tonight?) to attempt to be more friendly for more phones.
I did design it to be editable so if you know what to change, you can change it before saving.
=]
nubecoder said:
This might help, but it is a bit cryptic to me. I would use an assert if possible (since I've seen the syntax for them).
That was written with the Epic 4G in mind, I will be making some changes to it (tonight?) to attempt to be more friendly for more phones.
I did design it to be editable so if you know what to change, you can change it before saving.
=]
Click to expand...
Click to collapse
Indeed, this is the best resource I've seen so far
http://forum.xda-developers.com/showpost.php?p=10316302&postcount=102
I am calling run_program to run 'test.sh' from my updater-script. 'test.sh' has some output that is echoed but it doesn't show up on the output when i run my update.zip. Is there a way to show the output of a script that's called in run_program?
Thanks
zebdor44 said:
Is there a way to show the output of a script that's called in run_program?
Click to expand...
Click to collapse
To my knowledge there is not, but you could make the script output to a file, not the same, but might help.?...
=]
im trying to make one for this:
http://forum.xda-developers.com/showthread.php?t=2078587
I followed this tutorial:
http://forum.xda-developers.com/showthread.php?t=1721680
I attached what I've done.. I dont understand why it doesn't do anything
Google 'how to make cwm flashable zip' and get this: http://forum.xda-developers.com/showthread.php?t=1721680
cschmitt said:
Google 'how to make cwm flashable zip' and get this: http://forum.xda-developers.com/showthread.php?t=1721680
Click to expand...
Click to collapse
oh thanks
Its scary you have a mod topic but couldn't Google for an answer...
Sent from my SAMSUNG-SGH-T989 using xda app-developers app
PJcastaldo said:
Its scary you have a mod topic but couldn't Google for an answer...
Sent from my SAMSUNG-SGH-T989 using xda app-developers app
Click to expand...
Click to collapse
because i tried a tutorial and it didn't work.. so I was hoping someone could just help me out but the link that was posted was different and much more straight forward however that too did not work
The problem would be that on Skyrocket the /system partition is mmcblk0p24 not mmcblk0p2.
Damn lucky you didn't brick when flashing this, because mmcblk0p2 in one of the secondary bootloaders!
Code:
run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/system");
package_extract_dir("system", "/system");
run_program("/sbin/unmount", "/dev/block/mmcblk0p2", "/system");
ui_print("Enjoy! ALL OF YOU WATER HAS BEEN EVAPORATED!!!!");
ui_print("Project Evaporation By Guitarboarder28");
A safer method for mounting system is to mount it using the generic partition name, which is more cross-device independent because you aren't mounting a specific block device (mmcblk0p24 isn't the /system partition on every device.)
You also might need to set the correct permission on system apps or other executables in the package.
Code:
ui_print("Flash something...");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Done!");
cschmitt said:
The problem would be that on Skyrocket the /system partition is mmcblk0p24 not mmcblk0p2.
Damn lucky you didn't brick when flashing this, because mmcblk0p2 in one of the secondary bootloaders!
Code:
run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/system");
package_extract_dir("system", "/system");
run_program("/sbin/unmount", "/dev/block/mmcblk0p2", "/system");
ui_print("Enjoy! ALL OF YOU WATER HAS BEEN EVAPORATED!!!!");
ui_print("Project Evaporation By Guitarboarder28");
Click to expand...
Click to collapse
oh boy lol that would have sucked. Thank you for the help
So this should work right?
when I try to flash it immediately fails
Guitarboarder28 said:
So this should work right?
when I try to flash it immediately fails
Click to expand...
Click to collapse
seccontacts.apk cant be a folder, you r trying to inject something into an apk, but your method is wrong, the apk should be already modded and added to the zip with the correct paths setup in the zip and the updater script.
just add the ogg file in the apk, add the apk in the zip into the system/app folder
so did you ever finish the zip?
What is the best way to create flashable zips for our O3D?
I've read some tutorials in xda, I know that files must be put inside replicated folder structure inside the zip (system, data, sdcard, ...).
But what about META-INF?
How to create proper updater-script and update-binary?
I've found App2zip in Play Store, but I'm unsure about compatibility.
After one hour testing with app2zip , i got negative result. I tested on my 2 system app and on my 6 user app. But it doesn't flashed. But one interesting thing is that, we will get update script. With some alterations, i think we can reproduce a flashable one .
I am still working on flashable zips of apps.
Sent from my GT-S6102 using xda premium
Using text editor you can easily creat update script. I ll give one specimen script for you
ui_print("..app is being flashed..");
package_extract_dir("app", "/system/app");
set_perm(0, 0, 0644, "system/app/****.apk");
ui_print:::complete:::;
Here for successful flashing you have to put you apk file in folder named app. Not in system/app/.
Another important thing -delete any extension on update-script after completing text editor task.
The smileys in the above post are just closing brackets.sorry
Sent from my GT-S6102 using xda app-developers app
rahulsnair said:
Using text editor you can easily creat update script. I ll give one specimen script for you
ui_print("..app is being flashed..");
package_extract_dir("app", "/system/app");
set_perm(0, 0, 0644, "system/app/****.apk");
ui_print:::complete:::;
Here for successful flashing you have to put you apk file in folder named app. Not in system/app/.
Another important thing -delete any extension on update-script after completing text editor task.
The smileys in the above post are just closing brackets.sorry
Sent from my GT-S6102 using xda app-developers app
Click to expand...
Click to collapse
Thanks, but I know I can manually edit the files.
But maybe there is a more "automatic" way, using some king of android app or computer program.
daniel.mota said:
Thanks, but I know I can manually edit the files.
But maybe there is a more "automatic" way, using some king of android app or computer program.
Click to expand...
Click to collapse
I think app2zip is the one and only one app that do everything automatically.But the product won't flash.I found two reasons for that.
1. Signing done by app2zip doesnt creat cert.rsa, cert.sf,manifest.mf inside Meta-inf
2. Some error is with the update script.which make /temp/sideload/package.zip errorresulting the task get abort.
But we can make the product of app2zip flashable with our update-script and signing.
Nb:you can sign the app with appsigner(an app available in market) with your own keystore.
Sent from my GT-S6102 using xda app-developers app
By TWRP you can install unsigned zip.
BTW for signing you can use this:
http://forum.xda-developers.com/showthread.php?t=822388
I Do Not own a 3D MaX but here is an ICS ROm this is a test to see if it works im working blind here but here it goes
Rom
Kernel
It's a normal Flashable Zip
I removed some skt stuff and other apps to reduce size
Happy Testing
Edit 1:
3dMax_ICS_Kernel_B2.zip - 5.85 MB
New Kernel
inside 9-5-13_updater-script.zip you will find updater-script file put it 3D_MaX_ICS.zip Open it with WinRar 7z nvaigate to META-INF\com\google\android and replace it
also 9-5-13_build.rar you will find build .prop replace the one inside 3D_MaX_ICS.zip in the system folder
hi
3D is working ?
teperkov said:
hi
3D is working ?
Click to expand...
Click to collapse
Its stock should be working flash it and then tell me
Sent from my LG-P920 using xda app-developers app
defcomg said:
Its stock should be working flash it and then tell me
Sent from my LG-P920 using xda app-developers app
Click to expand...
Click to collapse
hello @defcomg
i was sleeping when you messaged me.
can you pm me what changes you made?
and sorry i cant try as i am having only 2g internet with 15kbps speed
Sent from my LG-P725 using xda app-developers app
How did you extract su870 20f bin ?
OptimusRs said:
How did you extract su870 20f bin ?
Click to expand...
Click to collapse
if you guys dont know there is a new extractor known as LG BIN EXTRACTOR that directly unpack bin to .img
Google it
Sent from my LG-P725 using xda app-developers app
Eklovya said:
if you guys dont know there is a new extractor known as LG BIN EXTRACTOR that directly unpack bin to .img
Google it
Sent from my LG-P725 using xda app-developers app
Click to expand...
Click to collapse
i tryed the old bin extractor but not work with 20f kdz i well search
Thanks
OptimusRs said:
i tryed the old bin extractor but not work with 20f kdz i well search
Thanks
Click to expand...
Click to collapse
here you go.
www.lg-phones.org/how-to-convert-lg-firmware-from-bin-tot-to-kdz.html
Sent from my LG-P725 using xda app-developers app
defcomg said:
Its stock should be working flash it and then tell me
Sent from my LG-P920 using xda app-developers app
Click to expand...
Click to collapse
i cant download it : ( maybe could upload this on any different server ?
teperkov said:
i cant download it : ( maybe could upload this on any different server ?
Click to expand...
Click to collapse
so @defcomg here are the problems
1. the zip can be flashed but there is a problem in updater script as far as i know because the updater script is not able to mount partitions for system data and boot.
Solution :- I edited the updater script and edited lines pretaining to mount system and boot and it flashed successfully.
2. It boots but it has same and i would say more issues as after booting it shows BLUE ERROR HANDLER and com.lege.ime and java.lang have crashed and many other popups.
3. there is still no network . imei is null and wake lock issue is still there.
the phone freezes and reboots automatically.
Sent from my LG-P725 using xda app-developers app
3d ,gps,wifi ,working???
Eklovya said:
so @defcomg here are the problems
1. the zip can be flashed but there is a problem in updater script as far as i know because the updater script is not able to mount partitions for system data and boot.
Solution :- I edited the updater script and edited lines pretaining to mount system and boot and it flashed successfully.
2. It boots but it has same and i would say more issues as after booting it shows BLUE ERROR HANDLER and com.lege.ime and java.lang have crashed and many other popups.
3. there is still no network . imei is null and wake lock issue is still there.
the phone freezes and reboots automatically.
Sent from my LG-P725 using xda app-developers app
Click to expand...
Click to collapse
replace the lgeime with another keyboard it always force closes when the rom is deodexed i think the no network error is caused by nv1 and nv2 partition being different could please tell what partitions are on the p720 i also sylinked lgrm mpt partition as i did not know weather or not they exist as for wakelock may have todo with gb uboot so wkpark bootloader might be needed . so what i need is a full logcat and partitions list i wonder why the updater script did not work as it would mount system and data on any omap tested it on my o3d weird
Sent from my LG-P920 using xda app-developers app
Updated Post #1
Made some changes with feedback from Eklovya
Surprisingly with all the ics port request his the only one to try it
Without feedback logcats i cant do nothing more about it................
new kernel , what is change? 3d , wifi, gsm working?
defcomg said:
I Do Not own a 3D MaX but here is an ICS ROm this is a test to see if it works im working blind here but here it goes
Rom
Kernel
It's a normal Flashable Zip
I removed some skt stuff and other apps to reduce size
Happy Testing
Edit 1:
3dMax_ICS_Kernel_B2.zip - 5.85 MB
New Kernel
inside 9-5-13_updater-script.zip you will find updater-script file put it 3D_MaX_ICS.zip Open it with WinRar 7z nvaigate to META-INF\com\google\android and replace it
also 9-5-13_build.rar you will find build .prop replace the one inside 3D_MaX_ICS.zip in the system folder
Click to expand...
Click to collapse
hehe dafcomg
thanx for the rom
i have an error when i try to flash it error status 6
zak53 said:
hehe dafcomg
thanx for the rom
i have an error when i try to flash it error status 6
Click to expand...
Click to collapse
is this after or before replacing updater script
defcomg said:
is this after or before replacing updater script
Click to expand...
Click to collapse
after replacing the updater script
zak53 said:
after replacing the updater script
Click to expand...
Click to collapse
try this one ....
replace the text in updater-script of 3dMax_ICS_Kernel_B2.zip with this
Code:
ui_print("* Installing Kernel");
package_extract_file("boot.img", "/dev/block/mmcblk0p3");
run_program("/sbin/busybox","mount","/system");
show_progress(0.500000, 0);
package_extract_dir("system", "/system");
set_perm(0, 0, 0644, "/system/lib/lge-ril.so");
show_progress(0.200000, 0);
unmount("/system");
ui_print("");
and replace it
defcomg said:
try this one ....
replace the text in updater-script of 3dMax_ICS_Kernel_B2.zip with this
Code:
ui_print("* Installing Kernel");
package_extract_file("boot.img", "/dev/block/mmcblk0p3");
run_program("/sbin/busybox","mount","/system");
show_progress(0.500000, 0);
package_extract_dir("system", "/system");
set_perm(0, 0, 0644, "/system/lib/lge-ril.so");
show_progress(0.200000, 0);
unmount("/system");
ui_print("");
and replace it
Click to expand...
Click to collapse
I installed the rom and kernel B1 without changing the updater script
the phone stays on the LG logo
help dafcomg
i will try it, but download link is death
I've searched and searched for this and can't find any related thread that has solved my problem. So please forgive me if I'm asking this question without having found the answer on my own.
I'm trying to create a flashable zip. The file is clearing-cache-v3.sh and I want it pushed to /system/etc/init.d/clearing-cache-v3.sh. I want to make the file executable after it's pushed to that directory. In the zip file I already have these two folders:
META-INF
system
Within that system folder I placed the file I'm pushing in this zip as /system/etc/init.d/clearing-cache-v3.sh. Below is the updater-script.
Code:
ui_print("");
ui_print("Clear DNS Cache");
show_progress(0.500000, 0);
ui_print("");
ui_print("*******************");
ui_print("*******************");
ui_print("Clearing DNS Cache");
ui_print("*******************");
ui_print("*******************");
run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/system");
package_extract_dir("system", "/system");
set_perm(0, 0, 06755, "/system/etc/init.d/clearing-cache-v3.sh");
run_program("/system/etc/init.d/clearing-cache-v3.sh");
run_program("/sbin/unmount", "/dev/block/mmcblk0p2", "/system");
ui_print("");
ui_print("All Done!");
show_progress(0.100000, 0);
The problem I'm having is that the file isn't being pushed to /system/etc/init.d. It's just not going there. When I flash this file it doesn't give me an error or anything either. It's just not pushing the file to where it belongs. What am I doing wrong?
You have the placing wrong. You gave meta-inf folder and system folder, inside that system folder in the zip should be /etc/init.d what you have by putting a system folder inside the other system folder is what's wrong.
Sent from my SM-G386T1 using Tapatalk
Blu8 said:
You have the placing wrong. You gave meta-inf folder and system folder, inside that system folder in the zip should be /etc/init.d what you have by putting a system folder inside the other system folder is what's wrong.
Click to expand...
Click to collapse
What do you mean? I have the meta-inf folder and system folder in the zip. Attached is the file that I've been having issues with. Can you expound on what you mean about what I did wrong.
Forget what I said before, the way you worded it confused me. It doesn't flash correctly because you forgot that you have to end the updater script with an empty line.
Sent from my SM-G386T1 using Tapatalk
Blu8 said:
Forget what I said before, the way you worded it confused me. It doesn't flash correctly because you forgot that you have to end the updater script with an empty line.
Sent from my SM-G386T1 using Tapatalk
Click to expand...
Click to collapse
I tried to add a blank line at the end of the updater script and then I saved it, recreated the zip, and flashed and it still made no difference. In fact, if I add a blank line at the end of the file, save it, then reopen the updater-script, that blank line is gone. Why is that?
Could be what you're using to make it. Try something else, but if it is getting rid of that blank line when you save it its not going to work.
Sent from my SM-G386T1 using Tapatalk
Blu8 said:
Could be what you're using to make it. Try something else, but if it is getting rid of that blank line when you save it its not going to work.
Sent from my SM-G386T1 using Tapatalk
Click to expand...
Click to collapse
I just used a different text editor to put the line at the end. This time when I flashed it it said "Error executing updater binary". Prior to this I wasn't getting any errors.
Sorry I really don't know what to tell you, maybe start from scratch?
Sent from my SM-G386T1 using Tapatalk
Blu8 said:
Sorry I really don't know what to tell you, maybe start from scratch?
Sent from my SM-G386T1 using Tapatalk
Click to expand...
Click to collapse
Figured it out. I took the updater-script from another zip file that I've flashed recently that I knew worked and modified that. Below is the final updater script that worked perfectly for me:
Code:
ui_print(" Flashing Google Services fix... ");
ui_print(" ");
show_progress(0.99, 30);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
package_extract_dir("system", "/system");
set_perm(0, 0, 0755, "/system/etc/init.d/FixGSv3.sh");
show_progress(1.0, 1);
unmount("/system");
ui_print("----------------------------------------------");
ui_print("| Done!!! |");
ui_print("----------------------------------------------");
ui_print(" ");