FORUMS

[TUTORIAL] The updater-script completely explained

2,301 posts
Thanks Meter: 5,268
 
By KINGbabasula, Inactive Recognized Developer on 25th July 2013, 12:32 PM
Post Reply Email Thread
26th October 2017, 07:25 PM |#71  
Senior Member
Flag London
Thanks Meter: 1,076
 
More
Debloat script failing in TWRP with Error:6
Hi all, anyone able to offer an insight as to why my attempt at a debloat script results with TWRP Error code 6?

Code:
ui_print("");
ui_print("");
ui_print("Galaxy S8 Debloat Script");
ui_print("");
ui_print("");
run_program("/sbin/busybox", "mount", "/data");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/cache");
delete(“/system/app/EasterEgg");
ui_print("Done!");
ui_print(" ");
delete_recursive("/cache");
delete_recursive("/data/dalvik-cache");
run_program("/sbin/busybox", "unmount", "/data");
run_program("/sbin/busybox", "unmount", "/system");
run_program("/sbin/busybox", "mount", "/cache");
It's my early attempt and I'll add more system apps to be removed in time, though upon flashing I get the error. I have selected Encoding = ANSI and EOL Conversion = UNIX within Notepadd++. I've zipped it as Store compression method along with being a .zip archive.

I've got rooted Galaxy S8.

I've attached the debloat script zip for reference.

Thanks in advance!
Attached Files
File Type: zip s8 debloat new.zip - [Click for QR Code] (343.6 KB, 36 views)
26th October 2017, 11:32 PM |#72  
Quote:
Originally Posted by cd993

Hi all, anyone able to offer an insight as to why my attempt at a debloat script results with TWRP Error code 6?



It's my early attempt and I'll add more system apps to be removed in time, though upon flashing I get the error. I have selected Encoding = ANSI and EOL Conversion = UNIX within Notepadd++. I've zipped it as Store compression method along with being a .zip archive.

I've got rooted Galaxy S8.

I've attached the debloat script zip for reference.

Thanks in advance!

Status 6 is often, but not always, caused by a syntax error. I can't see anything obviously wrong with yours so, unfortunately, I don't have an immediate solution.
The only thing I can suggest is making your script a lot shorter. Try it with just the ui_print lines at first and see if it works.

If it doesn't, you know that there's something wrong with either the file itself or possibly the encoding. If it does work then you can start adding more lines and find out at what point it falls over.

Sent from my Sony Xperia XA1 using XDA Labs
27th October 2017, 08:16 AM |#73  
Senior Member
Flag London
Thanks Meter: 1,076
 
More
Quote:
Originally Posted by Ticklefish

Status 6 is often, but not always, caused by a syntax error. I can't see anything obviously wrong with yours so, unfortunately, I don't have an immediate solution.
The only thing I can suggest is making your script a lot shorter. Try it with just the ui_print lines at first and see if it works.

If it doesn't, you know that there's something wrong with either the file itself or possibly the encoding. If it does work then you can start adding more lines and find out at what point it falls over.

Many thanks for the response.

I'll strip it down to basics and hopefully get it working
12th December 2018, 11:18 PM |#74  
Senior Member
Flag Chişinău
Thanks Meter: 305
 
More
Struggling to get debloat working on Oreo device... Can slot A be changed to B by script? Thanks

---------- Post added at 01:18 AM ---------- Previous post was at 01:13 AM ----------

Like fastboot --set-active=_b for TWRP
29th April 2020, 08:28 PM |#75  
Swagnik's Avatar
Member
Flag Kolkata
Thanks Meter: 2
 
Donate to Me
More
Quote:
Originally Posted by KINGbabasula

Aroma Installer

Folder structure:

Blue = Folders
Black = Files

META-INF
|--com
|..|--google
|.....|--android
|........|--aroma
|........|..|--exec_demo < Little executables to sleep or take a screenshot
|........|..|--fonts < Fonts: There must be a "small.png" for lowercase and a "big.png"
|........|..|--icons < The icons that will be showed if called by the aroma-config
|........|..|--langs < It may contain translations
|........|..|--splash < The splash image/s that are showed at the start as static or animation if called by aroma-config
|........|..|--themes < Can be chosen from the aroma-config
|........|..|--ttf < Fonts
|........|..|--unicode < Chinese and Cyrillic
|........|--aroma-config < File that controls the installation
|........|--update-binary < Executable
|........|--update-binary-installer < Executable
|........|--updater-script < File that controls the installation
|--CERT.RSA < Sign files
|--CERT.SF < Sign files
|--MANIFEST.MF < Sign files


Will come soon...


When will we get this??
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes