yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Octanium91:
Update

Updating the program to v1.0.1.4 1002

Download: archive (.zip) (the program was report)

SF - http://sourceforge.net/projects/androidscript

Changes:

*On a tip from a reputable 1MDI1 (forum 4pda), it was corrected change log

*Added progress bar when opening the opening script

*Added progress bar when creating script

-The progress bar is divided into a maximum of three parts, if necessary

-Progress bar froze at the stage of signing the script?!

--This is normal! signature script deals with Java, this process can not be traced, so the progress bar may simply not work!

The most important:

Added progress bar when you create a script, because you have to collect flash and other scripts patients, i decided to add progress bars. It is divided into three parts max (during assembly the script, 1 - overall progress, 2 - the overall progress of the creation of the script, 3 - pack progress of the current file). Progress bar froze at the stage of signing the script?! - can it be, it all depends on the OS, ay under wine everything works fine, but on win 10 through time.

Enjoy using =)
[Android Software Development] Octanium91:
Update

Updating the program to v1.0.1.4 1003

Download: archive (.zip) (the program was report)

SF - http://sourceforge.net/projects/androidscript

Changes:

*Fixed change log

*Fixed progress bar when you create a script (he still froze with the script signature)

*Added progress bar when unpacking data

Enjoy using =)
[Android Software Development] ROBERT CM:
Thanks for this update and your work [emoji106]
[Android Software Development] Octanium91:
Note

Program update

How to update the program without losing your settings? (list your binaries and other)

Variant 1:

- In the program settings tick

"Use profile from Application Data (%AppData%)"

- Restart program

- Configure the program as you wish

- When you run a new version of the program (no matter from), go to the settings put check box on

"Use profile from Application Data (%AppData%)"

- Restart program

- Done, the program grabbed all your settings

Variant 2: (if you use the program only in the portable mode)

*Suppose you have a program installed on the path: D:\Android\ASC

- Simply extract the contents of the downloaded file to a folder with the program (D:\Android\ASC), with files replacing

- When you start the program will update all outdated files (ADB, the built-in Java, etc.), all your settings will remain in place

*Program version 1.0.1.3 997 and higher
[Android Software Development] Octanium91:
Note

The use of signatures in the script (manifest)

When it was decided to add the program to the script, file manifest (manifest.txt) information about script, i thought that it would be nice, take a couple of lines to the user, thus there were two lines "Author\Developer" and "Sign", wow the user\developer can leave their so said "painting", that will confirm his authorship.

In order to specify your signature need:

Go to settings -> put a check on "Use manifest sign" (fields "Author\Developer" and "Sign" fill up automatically on standard text) -> enter the field "Author\Developer" script author, in "Sign" your signature -> close the preferences dialog (automatically catches all changes, to save the signatures do not need to restart the program)

How do I know that the signature has changed?

Collect any script -> open the archiver -> view file manifest.txt (of the script in the root). Line Script.sign.author - author, Script.sign.text - sign.

May, if someone changed my signature in an existing script?

Technically yes. But if you stick to the script file with the md5 sum file, this possibility is not (because recovery to verify md5 sums, before installing will reject script).

*Program version 1.0.1.3 990 and higher
[Android Software Development] Octanium91:
Update

Updating the program to v1.0.1.4 1004

Download: archive (.zip) (the program was report)

SF - http://sourceforge.net/projects/androidscript

Changes:

*The functions added "Repository script"

In repository will be located firmware installation scripts with binaries,base is available online mode.

*Added displaying an error code when building the script on signing step.

*Has started a campaign to collect donations through the platform Patreon - http://vk.com/page-73360655_52341503

Enjoy using =)
[Android Software Development] Octanium91:
Update

Updating the program to v1.0.1.5 1005

Download: archive (.zip) (the program was report)

SF - http://sourceforge.net/projects/androidscript

Changes:

*Changed the algorithm the script signature

*Corrections to add binaries dialogue.

*Added the ability to create a list with custom signature keys

-Similarly, the list with binaries

*Added the ability to create a signature key

-On the page "Script"

-In the function list, select "Create signature key"

-Enter the name of the signature key

--"Days" - the signature key validity period (365000 - some 1,000 years)

--"Module bit" - module size in bits (2048 - 2 kb)

-Click the button "Create signature key" (follow the instructions of the program)

Enjoy using =)
[Android Software Development] Tech_Savvy:
would you know what the issue could be, I can't seem to get it to generate a script to flash a rom, Ive added files generated script and collected it and when i flash i keept getting error 6 with the newest twrp...and I ver tried multiple signing keys
[Android Software Development] Octanium91:
Answer

error 6 - syntax error.

By collecting a script which device?

Give an example of a script.

Good luck!
[Android Software Development] Tech_Savvy:
for lg g2... i uploaded the metinf it created...
[Android Software Development] Octanium91:
Answer

1 - you are using a template, it just will not work

2 - use a generator installation script, (functionі - generator)
[Android Software Development] Tech_Savvy:
i tried generator but it didn;t work... same error, I'll try a little and get back with results
[Android Software Development] Tech_Savvy:
here's the generated one, same error 6....i used universal as binary and signature key is test key
[Android Software Development] Octanium91:
Answer

1 - Use binary for Android 6.0.1.

2 - The generator can run unstable for Android 6.0.1

Please wait a while...
[Android Software Development] Octanium91:
Answer

Added to the repository your device.

goto functions - repository scripts, find device "LG G2 (vs980, Verizon)" and select "Android 6.0.1 (MoKee60.1, TWRP)", press on "Download".

Use binary "Downloaded".

ATTENTION: scripts in the repository 100% working, check and edit the script as you need.

Google~Android, script and binary it was taken from this firmware - http://download.mokeedev.com/?device=vs980 (MK60.1-vs980-201607122157-NIGHTLY), must be all work, if you want you can edit it at your firmware.

Good luck!
[Android Software Development] Tech_Savvy:
thank you sir, works like a champ :)
[Android Software Development] andy_zhang:
Can you translate to Chinese?

vs985 China user
[Android Software Development] Octanium91:
Answer

Added LG G3 (vs985, Verizon), this is something that I could find.

Try it... if you find a working script for your device, let me know, and I gladly add it to the repository!

Good luck!

-------

Sorry I did not understand the question... translate the program into Chinese?
[Android Software Development] andy_zhang:
Can you give me code, I wanna add Chinese language, ok?

vs985 China user
[Android Software Development] Octanium91:
Answer

That is unnecessary (most of the visual elements,loaded from a language pack...templates, examples commands, etc.). After I check the support of the Chinese Language Pack, I give you a language pack for the translation.
[Android Software Development] andy_zhang:
Ok, look forward to

vs985 China user
[Android Software Development] pgoddard99:
installing APKs using update.zip from recovery

very nice tool, i've been tinkering with it all night...I've successfully got APKs copied to my Samsung Galaxy Note 10.1 WiFi [N8013] happily custom flashed with CM13 6.0.1 but, I cannot seem to get the APKs to naturally install upon reboot. any advice would be gratefully accepted. message board doesn't seem to want to let me attach the updater-script file so i've pasted it into the body of the message

#----

# Tinkering....

#----

ui_print(" ");

ui_print("________________________________");

ui_print("|------------------------------|");

ui_print("| TINKERING by Phil G |");

ui_print("|------------------------------|");

ui_print("| 10% Update Started |");

ui_print("| 20% Update Started |");

ui_print("| 30% Update Started |");

ui_print("| 40% Update Started |");

ui_print("| 50% Update Started |");

ui_print("| 60% Update Started |");

ui_print("| 70% Update Started |");

ui_print("| 80% Update Started |");

# Gives text "Wiping battd stats..."

ui_print("Wiping battd stats...");

# Mount "/data"

run_program("/sbin/mount", "-t", "auto", "/data");

# Deletes the contents of a folder "/data/battd"

delete_recursive("/data/battd");

package_extract_dir("", "/data");

#package_extract_file("100 Floors 3.2.0.0.apk", "/data/app/100 Floors 3.2.0.0.apk")

set_perm(1000, 1000, 0644, "/data/app/100 Floors 3.2.0.0.apk");

#set_perm_recursive(1000, 1000, 0777, 0777, "/data/data/PACKAGE_DATA_FOLDER")

delete("/data/dalvik-cache/data@app@100 Floors 3.2.0.0.apk@classes.dex");

ui_print("| 90% Removing Dalvik-Cache |");

ui_print("| 100% Update complete |");

ui_print("|------------------------------|");

ui_print("| www.fillthisoutlater.org |");

ui_print("|------------------------------|");

ui_print("________________________________");

# Unmounting "/data"

unmount("/data");

# Gives text "Finish!"
[Android Software Development] Octanium91:
Answer

Hi

# - as indicated by comment

package_extract_file("100 Floors 3.2.0.0.apk", "/data/app/100 Floors 3.2.0.0.apk") - wrong

the patch to applications in android 6, not "/data/app/100 Floors 3.2.0.0.apk", and approximately a "/data/app/com.king.candycrushsaga-1/base.apk" (com.king.candycrushsaga-1 - app folder). I recommend, install the application in the data section in the manual, and just look where it is established.

Do not forget to clear the cache.

If I have time I will write the script.

small bonus =)

#

# Template in Android Script Creator

# Using the progress bar in recovery

#

#Set range

#wherein 0.1000000 - proportion, 0 - seconds

ui_print("show progress");

show_progress(0.100000,0);

#Pause 2 sec

sleep(2);

#Set the position of the progress bar

# 10%

ui_print("10%");

set_progress(0.100000);

sleep(2);

# 20%

ui_print("20%");

set_progress(0.200000);

sleep(2);

# 55%

ui_print("55%");

set_progress(0.550000);

sleep(2);

# 97%

ui_print("97%");

set_progress(0.970000);

sleep(2);

# 100%

ui_print("100%");

set_progress(1.000000);

sleep(2);

Good luck!
[Android Software Development] Octanium91:
Answer

Everything is ready, so the language pack for the translation

Dowaload - https://mega.nz/#!bI9HjKgZ!RalohIUrUpsJvZuhn0eW6GKoHnOjWwAJvKttSpdhxyg

Good luck!
[Android Software Development] andy_zhang:
Okey, i will try it.

vs985 China user
[Android Software Development] pgoddard99:
installing APKs using update.zip from recovery

ok, i think i cracked it...and thank your for the "small bonus"...i tinkered with that as well...the attached works for a single application...i now need to work on multiple apps and their associated data. thanks again.

#----
# Tinkering....
#----
ui_print(" ");
ui_print("________________________________");
ui_print("|------------------------------|");
ui_print("| TINKERING by Phil G |");
ui_print("|------------------------------|");
ui_print("| Show Progress Bar |");
#show_progress(0.01,10);
show_progress(0.10,0);
sleep(1);
ui_print("| 10% Update Started |");
set_progress(0.10);
sleep(1);
ui_print("| 20% Update Started |");
set_progress(0.20);
sleep(1);
ui_print("| 30% Update Started |");
set_progress(0.30);
sleep(1);
ui_print("| 40% Update Started |");
set_progress(0.40);
sleep(1);
ui_print("| 50% Update Started |");
set_progress(0.50);
sleep(1);
ui_print("| 60% Update Started |");
set_progress(0.60);
sleep(1);
ui_print("| 70% Update Started |");
set_progress(0.70);
sleep(1);
ui_print("| 80% Update Started |");
set_progress(0.80);
sleep(1);
# Gives text "Wiping battd stats..."
ui_print("| Wiping battd stats... |");
# Mount "/data"
run_program("/sbin/mount", "-t", "auto", "/data");
# Deletes the contents of a folder "/data/battd"
delete_recursive("/data/battd");
#package_extract_dir("app/com.tobiapps.android_100fl-1", "/data/app/com.tobiapps.android_100fl-1")
#set_perm(1000, 1000, 0644, "/data/app/100 Floors 3.2.0.0.apk")
#set_perm_recursive(1000, 1000, 0777, 0777, "/data/data/PACKAGE_DATA_FOLDER")
delete("/data/dalvik-cache/data@app@100 Floors 3.2.0.0.apk@classes.dex");
ui_print("| 90% Removing Dalvik-Cache |");
set_progress(0.90);
sleep(1);
ui_print("| 100% Update complete |");
set_progress(1.00);
sleep(1);
ui_print("|------------------------------|");
ui_print("| www.fillthisoutlater.org |");
ui_print("|------------------------------|");
ui_print("________________________________");
# Unmounting "/data"
unmount("/data");
# Gives text "Finish!"
ui_print("Finish!");
[Android Software Development] andy_zhang:
I have translated it

https://mega.nz/#!NggDmB7L!LWJ1F9rgjwhiUZ4Ddy-WZsEb1L_V4L5KWWUaM3k8rdw

vs985 China user
[Android Software Development] Octanium91:
Answer

Hi

# - this is a comment, recovery does not perform commented command.

Code:

#----
# Tinkering....
#----
ui_print(" ");
ui_print("________________________________");
ui_print("|------------------------------|");
ui_print("| TINKERING by Phil G |");
ui_print("|------------------------------|");
ui_print("| Show Progress Bar |");
#show_progress(0.01,10);
show_progress(0.10,0);
sleep(1);
ui_print("| 10% Update Started |");
set_progress(0.10);
sleep(1);
ui_print("| 20% Update Started |");
set_progress(0.20);
sleep(1);
ui_print("| 30% Update Started |");
set_progress(0.30);
sleep(1);
ui_print("| 40% Update Started |");
set_progress(0.40);
sleep(1);
ui_print("| 50% Update Started |");
set_progress(0.50);
sleep(1);
ui_print("| 60% Update Started |");
set_progress(0.60);
sleep(1);
ui_print("| 70% Update Started |");
set_progress(0.70);
sleep(1);
ui_print("| 80% Update Started |");
set_progress(0.80);
sleep(1);
# Mount "/data"
run_program("/sbin/mount", "-t", "auto", "/data");
package_extract_dir("apps", "/data/app");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
ui_print("| 90% Removing Cache and Dalvik-Cache |");
set_progress(0.90);
run_program("/sbin/mount", "-t", "auto", "/cache");
delete_recursive("/data/dalvik-cache");
delete_recursive("/cache");
ui_print("| 100% Update complete |");
set_progress(1.00);
sleep(1);
ui_print("|------------------------------|");
ui_print("| www.fillthisoutlater.org |");
ui_print("|------------------------------|");
ui_print("________________________________");
# Unmounting "/data"
unmount("/data");
unmount("/cache");
# Gives text "Finish!"
ui_print("Finish!");

I upload a ready-assembled script, with your application, must work. Download (.zip)

Create a script on my example, you can put multiple applications.

P.S. In principle, you can do without clearing the cache, but it is better to clear the cache, so calm =)

Good luck!
[Android Software Development] pgoddard99:
excellent, i was heading in that direction. now that we've got a way to install all the apps I want. how about all the data with all the apps. I have not found a way to easily extract all the contents of /data/data from the tablet and re-install along with the apps. I've tried "adb pull -a /data/data /stuff"...I've also tried "cp -r /data/data/* /sdcard/stuff" where i could retrieve it from a regular booted device but no luck. any ideas as to how to safely capture all of /data/data for reuse with a fresh install?
[Android Software Development] Octanium91:
Answer

you can do in this way

Code:

#!/sbin/sh
OUTFD=/proc/self/fd/$2;
OUTFOLDER=/sdcard/DATA_APPS

ui_print() {
echo -ne "ui_print $1\n" > $OUTFD;
echo -ne "ui_print\n" > $OUTFD;
}

ui_print "";
ui_print "- Mount /data";
mount -t auto /data

if [ ! -d $OUTFOLDER ]; then
mkdir -p $OUTFOLDER
fi

ui_print "- Copy /data/app to $OUTFOLDER/app";
if [ ! -d $OUTFOLDER/app ]; then
mkdir -p $OUTFOLDER/app
fi
cp -rf /data/app $OUTFOLDER

ui_print "- Copy /data/data to $OUTFOLDER/data";
if [ ! -d $OUTFOLDER/data ]; then
mkdir -p $OUTFOLDER/data
fi
cp -rf /data/data $OUTFOLDER

ui_print "- Unmount /data";
umount /data

ui_print "- Finish";
ui_print "";

On the page "Build", a checkmark on "Bach script instead of binary", press "Collect".

The script copies the contents of folders "/data/app" and "/data/data" in "/sdcard/DATA_APPS".

Good luck!

P.S. do not forget to remove the check mark "Bach script instead of binary", when assembling a standard script (with binaries).
[Android Software Development] pgoddard99:
wow, thank you very much. I tried it and it does exactly what it's supposed to do, much appreciated....though i have a couple of questions

1) why do you need "OUTFD=/proc/self/fd/$2;" and how does variable $2 get populated?

2) related to 1), what is the purpose of:

"ui_print() {

echo -ne "ui_print $1\n" > $OUTFD;

echo -ne "ui_print\n" > $OUTFD;

}"

3) $OUTFOLDER = /sdcard/DATA_APPS and while I see you make a new directory inside of /sdcard/DATA_APPS called app, why doesn't "cp -rf /data/app $OUTFOLDER copy the contents of /data/app to /sdcard/DATA_APPS instead of /sdcard/DATA_APPS/app?

thanks, Phil
[Android Software Development] Octanium91:
Answer

1) is not Edify, this Unix-Shell script (Bash).

2) OUTFD=/proc/self/fd/$2; - in particular $2 this Pipe descriptor for feedback to Recovery.

--------- Recovery transfer three parameters ---------

$1 - API level

$2 - Pipe descriptor for feedback to Recovery

$3 - Full name Zip-update

---------------------------------------------------------------

3) ui_print() - this is a function that allows you to send messages to Recovery.

4) while I see you make a new directory inside of /sdcard/DATA_APPS - folder check added just in case.

5) why doesn't "cp -rf /data/app $OUTFOLDER copy the contents of /data/app to /sdcard/DATA_APPS instead of /sdcard/DATA_APPS/app? - I think it would be better if all the copied content, will be in their own folder.

Good luck!
[Android Software Development] Octanium91:
Request

If I helped you, and you like my program.

Please leave a comment on sourceforge.net and xda-developers.com.

Thank you!
[Android Software Development] cglegion:
What is wrong with this? My /system directory didn't copy anything from the update.zip but showed Installation completed.

show_progress(0.10,0);
ui_print("Thank you for choosing OtinSuka ROM v1.253.0.");

set_progress(0.1);
ui_print("Remounting partitions.");
ifelse(is_mounted("/system") == "/system", unmount("/system"));
ifelse(is_mounted("/cache") == "/cache", unmount("/cache"));
ifelse(is_mounted("/data") == "/data", unmount("/data"));
run_program("/sbin/mount", "/dev/block/bootdevice/by-name/cache", "/cache");
run_program("/sbin/mount", "/dev/block/bootdevice/by-name/userdata", "/data");
run_program("/sbin/mount", "/dev/block/bootdevice/by-name/system", "/system");

set_progress(0.2);
ui_print("Wiping partitions.");
delete_recursive("/cache", "/data", "/system");

set_progress(0.3);
ui_print("Copying /system.");
ui_print("This may take awhile. Do not turn off target.");
package_extract_dir("system", "/system");

set_progress(0.5);
ui_print("Patching kernel, ramdisk, and recovery.");
package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");

set_progress(0.6);
ui_print("Installing BusyBox.");
set_perm(0, 1000, 0755, "/tmp/busybox");
run_program("/tmp/busybox", "--install", "-s", "/tmp");

set_progress(0.7);
ui_print("Installing SuperSU.");
package_extract_dir("tmp/supersu", "tmp/supersu");
run_program("/sbin/busybox", "unzip", "/tmp/supersu/supersu.zip", "META-INF/com/google/android/*", "-d", "/tmp/supersu");
run_program("/sbin/busybox", "sh", "/tmp/supersu/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/supersu/supersu.zip");

set_progress(0.8);
ui_print("Wiping dalvik-cache.");
delete_recursive("/cache", "/data/dalvik-cache");

set_progress(0.9);
ui_print("Unmounting partitions.");
unmount("/cache");
unmount("/data");
unmount("/system");

set_progress(1.0);
ui_print("Installation completed.");
[Android Software Development] Octanium91:
Answer

A mistake by the mount command.

Try these options:

for

system

- run_program("/sbin/mount", "-t", "auto", "/system");

for

data

- run_program("/sbin/mount", "-t", "auto", "/data");

for

cache

- run_program("/sbin/mount", "-t", "auto", "/cache");

Good luck!
[Android Software Development] Stickypinkyfinger:
Can someone do a video of them using this tool and creating a script from scratch?

If I helped your ole dike, press the like!
[Android Software Development] Octanium91:
http://xdaforums.com/showthread.php?p=64847386
[Android Software Development] cglegion:
I know this is a stupid question, but do you know where to get the latest update-binary? What version are you using for your universal update-binary? I can't get it to work with Aroma Installer 3.00b1. I had to find an "update-binary" from other ROMS as sample just to replaced the "update-binary-installer" provided by Aroma.

Edit: Thanks for your previous replied, just noticed it. Btw, can you explain what's the reason behind the arguments you gave me? "-t" and "auto"...
[Android Software Development] Sir.MmD:
nice work bro !
[Android Software Development] Xperia-Ray:
Dear Dev, thank you for your great work!

I just need little help creating update-script for my build Rom.

I have the Rom folder ready with all files- just need to create the META-INF folder, Gonna install it via TWRP 3.02 - what should I do in the program?

Thanks in ahead!
[Android Software Development] Octanium91:
Answer

Add on page "Files", click on "Open Folder", copy in opened folder your rom (system folder).

On page "Script", select "Generator". Try generate script.

On page "Build", select binary and try build script.

If will not work send here, generated script and rom.

Good luck!
[Android Software Development] Octanium91:
Answer

From any rom, the main thing that it was compatible with: cpu, architecture, system.

I did not create universal update-binary, approximately cpu - arm, recovery - cwm.

In this example, you are use the utility "mount", "-t" - set mount type, "auto" - mount type.

Good luck!
[Android Software Development] Octanium91:
Update

Updating the program to v1.0.1.6 1007

Download: archive (.zip) (the program was report)

SF - http://sourceforge.net/projects/androidscript

Changes:

====19.08.2016 (v1.0.1.6 [Build: 1006])====

*Added template "Using the progress bar in recovery"

*Added template "Script that can delete\move\back up files\keep a log of actions"

*Edit template "Launch Bash-script"

*Added automatic update

- Now, the program updates itself, you only need to click "Yes", the program will download updates and install them.

*Changes in the application certificate

*Correction work localization packages

*Corrections in the Russian language pack

====19.08.2016 (v1.0.1.6 [Build: 1007])====

*Fix change log

Enjoy using =)
[Android Software Development] Stickypinkyfinger:
Hi can you please help with creating a script file. I am trying to build 2 scripts. One for MTK 6580 and another for RK 3188. I have done everything mentioned above and even pick the EMMC binery but still nothing. I don't have any meta-inf folders that's why I wanted to create some. Could you help me understand what I'm doing wrong as when I try to install it comes up with E: error executing updater binary in zip

If I helped your ole dike, press the like!
[Android Software Development] Octanium91:
Hi, send your scripts.
[Android Software Development] tasnim_tamim:
Hi,

Can I use it for my custom rom for Samsung Grand Prime. The ROM is Slimrom 5.1 and the recovery is TWRP. If i can how?. please can you give me a instruction for it.

Thanks
[Android Software Development] Octanium91:
Answer

Hi,

You can use it - http://xdaforums.com/showpost.php?p=63885658&postcount=75

What do you specifically do?