yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Pinu'u:
Could need some help again...

Hi, when i try to install zip, i get error : Updater process ended with ERROR:1

Where did i go wrong this time ?

I just added navbar mod...
[Android Software/Hacking General [Developers Only]] edzamber:
Hi all,

Does someone know how make 2 conditions in updater-script for Aroma ?

I mean something like :

if file_getprop("/tmp/aroma/device.prop","selected.1") == "2" AND if file_getprop("/tmp/aroma/kernel.prop","selected.1") == "2"

then

ui_print("@Installalling Hacker Kernel for G920F...");

package_extract_file("edzamber/kernel/g920/boot.img", "/dev/block/platform/15570000.ufs/by-name/BOOT");

package_extract_dir("edzamber/kernel/g920/data", "/data");

endif;

if file_getprop("/tmp/aroma/device.prop","selected.1") == "1" AND if file_getprop("/tmp/aroma/kernel.prop","selected.1") == "2"

then

ui_print("@Installalling Hacker Kernel for G925F...");

package_extract_file("edzamber/kernel/g925/boot.img", "/dev/block/platform/15570000.ufs/by-name/BOOT");

package_extract_dir("edzamber/kernel/g925/data", "/data");

endif;

????

I would like 2 conditions : first one phone model variant choice, second one kernel choice but one action : flash x kernel for x phone model variant

Many Thanks.

Ed.
[Android Software/Hacking General [Developers Only]] Robbie P:
edzamber, try

if...

then

if...

then

...

endif

endif
[Android Software/Hacking General [Developers Only]] edzamber:
Hi [MENTION=3629322]Robbie P[/MENTION]

You mean

if file_getprop("/tmp/aroma/device.prop","selected.1") == "2" then

if file_getprop("/tmp/aroma/kernel.prop","selected.1") == "2" then

ui_print("@Installalling Hacker Kernel for G920F...");

package_extract_file("edzamber/kernel/g920/boot.img", "/dev/block/platform/15570000.ufs/by-name/BOOT");

package_extract_dir("edzamber/kernel/g920/data", "/data");

endif;

endif;

???
[Android Software/Hacking General [Developers Only]] Robbie P:
yes, not sure if it will work, but it is the same as using AND.
[Android Software/Hacking General [Developers Only]] edzamber:
Working !!!!

Many Thanks [emoji2]
[Android Software/Hacking General [Developers Only]] Robbie P:
I'm pretty sure you need a carriage return at the end of line 171, which gives you a blank line 172

Edit; missing endif; around line 100
[Android Software/Hacking General [Developers Only]] Manok98:
Hello everyone,

I'm searching help with my aroma that Doesn't work. In particular I click the Next button to install the rom, but after hit it, only about 1 second later, the screen says "Installation finished". Simply the aroma doesn't flash the rom. What I missed on my META-INF? I will let that dir (META-INF) on this link: https://drive.google.com/file/d/0B5bJMN5s2rYHSFloRndQN0tFQWM/view?usp=drivesdk

Thanks in advance and sorry for bad english
[Android Software/Hacking General [Developers Only]] raystef66:
having always error 1

Hi,

i'm trying to run a simple script on my working rom i've made in the past. Just to add Magisk or SuperSU as a beginning to get it work. Rest is simple but...

Anytime i flash the zip i get error : update process ended with error 1

I tried everything, even with working templates for my device but with no succes.

I must have something configered wrong :cyclops:

I attached updater-script, aroma-config and recovery.log

Hope there is someone who can step in to look into the problem :good:

Thnx !
[Android Software/Hacking General [Developers Only]] Robbie P:
looking at log, I see

"minzip: Integer overflow adding in parseZipArchive"

googling this it seems it might be a zip size issue, https://github.com/TeamWin/Team-Win-Recovery-Project/commit/6069a793eaa2e11e0c53af0ab063d22fb1f9f531

Not sure if your version of aroma has these changes
[Android Software/Hacking General [Developers Only]] raystef66:
YOU"RE THE BEST !

Looked into your link, searched and replaced the binaries as in thread for files bigger then 2gb : https://xdaforums.com/one-m9/orig-d...h-recovery-t3066720/post60260367#post60260367

Aroma needs those binaries as to work with +2GB zips. Didn't know that :cyclops:

So, my script ran although i have to make some more adjustments, but it'll work now :good:

THANKS !
[Android Software/Hacking General [Developers Only]] Robbie P:
glad to hear it raystef66

I am not a dev, but have been lucky finding solutions for a few problems on this thread

Best of luck with it :highfive:
[Android Software/Hacking General [Developers Only]] raystef66:
Hi,

BACK AGAIN :o

I have made a ROM for the A7 : https://xdaforums.com/axon-7/development/rom-slim-version-t3669355

Working fine but i want to add some features with AROMA.

I made a simple config and script that gives the choice between APEX and NOVA launcher, and the choice between SuperSU and Magisk. (i can add things later on when i get this to work ok.......:p) .

Aroma runs ok, the system rom is being installed ok but it does not install any features i clicked before ( when i ask to install APEX and SUPERSU f.e. it doesn't install a thing)

PS : when i install my original ROM(without AROMA) with SuperSU, it installs ok ( it's also in folder rootzip/supersu.zip) but installing it with aroma does not work. In install.log it seems to have a problem with it....and maybe other things....

PS 2 : *in device tree there is a config folder with configure.sh in it ( generated by superR Kitchen)

**in MOD folder there are the APEX and NOVA apk

***in rootzip folder there are the SuperSU and Magisk folder with their apk's in it.

Can someone look into it please ? I uploaded the META, my device tree, the original updater-script(from my working ROM) and the install.log : https://www.sendspace.com/file/p0jcpu

You would help me a great deal if you can find the problem so i can work on it further on.

Many thnx !

EDIT : finally solved mainly due to syntax errors, mounting,...
[Android Software/Hacking General [Developers Only]] Miustone:
Random found Your Post lol, i suggest to ask on the official Threads of AROMA. Or just PM Me Mate, we are Device Brothers and i would like to help You out if You face any Limits with AROMA. I'm currently working on My new Patch and i've actually some Problem with the Updater Script. AROMA can act really crazy and it's a pain sometimes, but thanks god are there other People out there who are helping out in hard times. 4 Eyes see more as 2 :cowboy:

BR
[Android Software/Hacking General [Developers Only]] raystef66:
Yeah, this was from september were i just was learning to make an AROMA from scratch :o

I finaly succeeded. It's indeed realy delicate and it depends on some minor changes wether it works or not.

I learned to use SuperR kitchen, deodex further on, decompile, recompile, make some changes like to center a clock, double tap to wake camera, an extended power menu. The little things but i'm eager to learn more scripts to change :cyclops:

And yes i like to work together if some of us has a problem. Indeed 4 is better then 2.

I had some help from real good people who set me up on the right track. Without them it should have been much harder to learn ;)

I have some questions though and shall PM you.

Perhaps i can help on yours.

Thnx !
[Android Software/Hacking General [Developers Only]] chankruze:
How to leave blank spaces (one or 2 lines of gap ) in output to user.

i tried using ui_print(""); 2 or 3 times for leaving 2 or 3 lines of gap in the output terminal but didn't succeed.For example;

ui_print("Extracting Files");
ui_print("");
ui_print("");
ui_print("Setting Up Permissions For Files");

but the output is:

Extracting Files
Setting Up Permissions For Files

The output i want is:

Extracting Files

Setting Up Permissions For Files

So i am asking what is the function name/command to leave blank space in output ?:rolleyes:

---------- Post added at 05:01 AM ---------- Previous post was at 04:33 AM ----------

Ha Ha I got it.

Tried with some spaces in ui_print(""); just like ui_print(" "); and i got what i was excepting.
[Android Software/Hacking General [Developers Only]] KP@2016:
Just put a little space between them as ui_print(" ");

Edit:

Lol. Didn't see you have answered your question:p
[Android Software/Hacking General [Developers Only]] raystef66:
adb shell commands through updater-script

Hi All !

Simple question :

I was wondering if there is any way to execute

adb shell commands through an updater-script

( or via a .sh file )

for example :

If i would want to change 'windows animation scale' to 0.25 I should do the following in adb (or via terminal) :

adb shell
settings put global window_animation_scale 0.25

There are a bunch of adb commands and therefore this question.

Any help would be much appreciated !

Thnx !

FYI : [MENTION=4756773]Miustone[/MENTION]
[Android Software/Hacking General [Developers Only]] Ricky Divjakovski:
Anyone found an aroma installer with mouse support? Trying to get this functional on android TV boxes
[Android Software/Hacking General [Developers Only]] JEANRIVERA:
is there a way to get aroma puller online could you please share a new link?
[Android Software/Hacking General [Developers Only]] 煉獄阿飄:
How to use "include" function?

If I can use like that?

menubox(
#-- Title
"主目錄",

#-- Sub Title
"請選擇欲使用功能",

#-- Icon
"@apps",

#-- Will be saved in /tmp/aroma/mainmenu_select.prop
"mainmenu_select.prop",
#-------------------------+-----------------[ Menubox Items ]-------------------------+---------------#
# TITLE | SUBTITLE | Item Icons #
#-------------------------+-----------------------------------------------------------+---------------#

"啟用/禁用/刪除模組", "管理模組", "@default", #-- selected = 1
"系統資訊", "系統資訊",	"@info", #-- selected = 2
"結束", "結束管理器並退出至TWRP", "@install", #-- selected = 3
"重新啟動",	"重新啟動系統", "@alert"
);

if prop("mainmenu_select","selected")=="1" then
include("modmanager.edify");
endif;
if prop("mainmenu_select","selected")=="2" then
include("sysinfo.edify");
endif;
if prop("mainmenu_select","selected")=="3" then
include("exit.edify");
endif;
if prop("mainmenu_select","selected")=="4" then
include("reboot.edify");
endif;
[Android Software/Hacking General [Developers Only]] Hovo01:
Hi guys

when system is full by choosing more apps

aroma can intimate me?for it what i need to do?
[Android Software/Hacking General [Developers Only]] Ozadroid:
yeah it never shows the correct position :(
[Android Software/Hacking General [Developers Only]] dsb9938:
Okay, I only have one thing I haven't been able to make work to my liking. And perhaps it just wont work that way. But here goes.

During a large file copy, say the copy of /system, I want the progress bar to move as the files copy.

I put the following:

set_progress(0.2);
ui_print("Installing New System...");
package_extract_dir("system", "/system");
show_progress(0.4, 1436);

I assumed this would have the bar at 20% before the copy, and raise it by another 40%, up to 60%, during the copy of 1436 files.

However, it just sits there till the copy is over and then jumps.

Is there no way to make is go as the copy happens, except trying to guesstimate the time it will take and try that option?

Thanks!

D

.
[Android Software/Hacking General [Developers Only]] Ozadroid:
Use

Increase the fraction from .4 to a bigger value n reduce duration .. 1436 is too large. Experiment dis on show_progress n u'll get it ;)
[Android Software/Hacking General [Developers Only]] dsb9938:
I gave up and simply split the system folder into equal parts and put in a set after each one.

D

.
[Android Software/Hacking General [Developers Only]] reekotubbs:
I'm looking for help on creating a flashable zip using Aroma.

I have looked at an example for my phone, but I do not want the zip to be specific for any phone.

I am attempting to install a zip but need to do some complex things before.

I am looking to use the getdiskfree for /system to see if there is enough room to install the zip.

I have been using the regular flashable zip format, but keep running into to problems when using .sh script and 'df' to determine the free space.

Any help would be appreciated.
[Android Software/Hacking General [Developers Only]] skudo101:
edit: solve!
[Android Software/Hacking General [Developers Only]] Волк:
On a quick idea, if you could run your needed command, eg, df, from aroma-config and then have that written to a file in /tmp and have an 'if then' or 'if else' to read the value written and determine if the value written is greater than your requirement, that could work, take a look at the examples in posts and that should give you an idea of what to look for and how to write your command.
[Android Software/Hacking General [Developers Only]] reekotubbs:
Thanks for the suggestion. I look around and there are no examples with the df command. The problem I have with the df command in the bash script is it gives me different results each time. This is the df command I'm using

FREE=`df /system |awk '{print $4}'`

I hae also tried

FREE=`df /system |awk '{print $4}'|tail -1`

I see in the aroma-config file that there is a command getdiskfree, if I could use this on /system and do a ifelse on this value in the updater-script I think it would work for me.
[Android Software/Hacking General [Developers Only]] Волк:
OK, so I've run into an issue which I thought I could solve but now I'm confused by the data in the OP:

"AROMA Installer Default Prop Temporary Locations

When playing with AROMA Installer aroma-config files, almost all things that manipulated prop files will be saved relatively on AROMA temporary directory located in /tmp/aroma-data/, so if we pass the prop filename like this: writetmpfile("test.prop","key1=ok");, the test.prop will be located at /tmp/aroma-data/test.prop."

BUT when writing a menu we have:

selectbox(
#-- Title
"Select your options.",

#-- Sub Title
"Please select below to configure you experience.",

#-- Icon: <AROMA Resource Dir>/icons/personalize.png or <ThemeDir>/icon.personalize.png
"@default",

#-- Will be saved in /tmp/aroma/menu.prop
"menu.prop",

The problem I am trying to solve is that I have a complex menu system where I have one main menu, similar to the AROMA demo, and the selection there creates another menu based on the selection in the first menu and the second menu is what creates the prop which is called in updater-script. Problem is, since not all .prop files checked by updater-script are written I get errors due to missing files. I had the idea to simply create all the needed .prop files at the start of the aroma-config, then I read the above which states a different directory than the one in aroma-config.

My other thought is to make if statements within if statements, but I'm not even sure if that's possible.

eg:

if
file_getprop("/tmp/aroma/menu.prop","selected.0")=="1"
then

if
file_getprop("/tmp/aroma/do_something.prop","selected.1") == "3"
then
do something("do that");

endif;

endif;
[Android Software/Hacking General [Developers Only]] Dblfstr:
*************************************************************************************************

You are referring to the directory? tmp/aroma and tmp/aroma-data

This was noted in the change-log:

* CEMPAKA- 1.60 - BUILD 120227-026

* Add msb_right check for Endianess video memory

* Fix Installer text log drawing

* Add ini_get

* Add rom_date in ini_get

* Fix reboot and back function

* Add more and recreate Icons for themes and generic

* Rewrite text handler

* Add alignment, indentation and list in AROMA Markup String

* Change temp directory to /tmp/aroma, /tmp/aroma-data stil works

* Add Theme Support

* Add AROMA Markup for <b> Bold
​

Just keep them the same.
[Android Software/Hacking General [Developers Only]] Волк:
Ok, so writetmpfile will write the .prop to /tmp/aroma/ not /tmp/aroma-data/, correct? The change-log states "tmp/aroma-data stil works"
[Android Software/Hacking General [Developers Only]] Dblfstr:
Yes, I read that as meaning. "your older scripts will still work that specify /tmp/aroma-data". Or no need to change your code.
[Android Software/Hacking General [Developers Only]] dany547:
hi,im trying to get aroma to work on my Galaxy Mini but i get this Syntax error on line 706 col 5 here is the link http://pastebin.com/cNnCmWCe and i cannot see the problem in the script.
[Android Software/Hacking General [Developers Only]] Hero:
I'm getting the following error: aroma-config: selectbox () expoects 4 args + 3 args per items, got 72

Here's my aroma-config

http://pastebin.com/b0e0Sf5M

Any help is appreciated. TIA
[Android Software/Hacking General [Developers Only]] iok1:
Have a look at the answers at my problem with args, maybe it helps :)

Sent from my jelly bean
[Android Software/Hacking General [Developers Only]] Hero:
Thanks, I just took a look at my aroma-config and just found that I added unnecessary numbers that were way too spread out to notice lol.
[Android Software/Hacking General [Developers Only]] dany547:
help pls? i summon the elders

reedited the script, made it more clean but still i got that error http://pastebin.com/nnE01Ju0 now on line 734 col5
[Android Software/Hacking General [Developers Only]] Robobob1221:
on the following line remove the comma (,) after the 1 as its the last item:

line 731

"Nexus 7", "Default Nexus7 bootanim", 1, #-- selected.2 = 1

AND

line 764 remove '+' after holo locker, and line 808 the comma (,) after the 1

I think that might help
[Android Software/Hacking General [Developers Only]] dany547:
thanks sir, now i will retest
[Android Software/Hacking General [Developers Only]] dany547:
id reedited again, found some new errors, i fixed them, now i got Syntax error on line 744, but this one is correct. :eek: http://pastebin.com/uvuQzAYB
[Android Software/Hacking General [Developers Only]] Robobob1221:
line 742 you need to put the + back after Holo Locker as you've added more items to the list after.

# means the line 743 is for all intents not there so the list is continued after.
[Android Software/Hacking General [Developers Only]] dany547:
id added a (,) and it worked, now i get an error on line 1001 which is not in the script :laugh:

Solved: i forgot an endif;, now it gives me installation aborted.:)

REEDIT: Solved, the Installer is opening, it gets me to the steps, but is not installing the rom:-?
[Android Software/Hacking General [Developers Only]] Robobob1221:
Sorry...

now it looks like this

"item.1.18=0\n" #--HOLO Locker

I meant to change to look like this

"item.1.18=0\n"[B][COLOR="Red"]+[/COLOR][/B] #--HOLO Locker

no need for a comma
[Android Software/Hacking General [Developers Only]] dany547:
i understood , but it needed a comma because those where 2 distinct .props

"item.1.18=0\n" #--HOLO Locker
,
#-- False Value (non minimal install / Typical instll)
"item.1.1=0\n"+ #--Deezer

Its working but not instaling anything, i will look again in the updater-script here it is http://pastebin.com/rNCgd8PX and im sure is correct :-??

Now i made a log, and i gives me syntax error, again on line 231 col 65, and that is for language selection, i must define each language font?!

EDIT: THE SCRIPT IS A MESS; REEDITIND
[Android Software/Hacking General [Developers Only]] Phil3759:
I am looking at a way to backup a partition image from recovery, in this case, the

kernel

to an image to be flashed later with write_raw_image command

I figured out 2 options:

run_program("/sbin/busybox", "dd", "if=/dev/block/MOUNTBLOCK/boot", "of=boot.img");

Another option:

package_extract_file("/dev/block/MOUNTBLOCK/boot", "boot.img");

I tried option 1 in terminal to see and it actually builds the image. Binary comparing it with the original boot.img from my phone gives same results except adding some zero data at the end of output file (empty space in partition?)

So, will this command be valid to make perfect images of my whole partition that I can flash later back?
[Android Software/Hacking General [Developers Only]] Волк:
Yes, DD will image a partition, I would reccomend looking at the busybox or standard man page for DD to give you a Fuller understanding.
[Android Software/Hacking General [Developers Only]] Phil3759:
Thank you a lot

The /sbin/busybox is the busybox included in binary-update or a busybox must be installed in /system/bin?

Also, what about my second command:

package_extract_file("/dev/block/MOUNTBLOCK/boot", "boot.img");

Result will be same?
[Android Software/Hacking General [Developers Only]] Phil3759:
Well, I tested that line and it will not do anything :p

I have another basic question

What is the best way to mount the sdcard on the Galaxy S2:

run_program("/sbin/busybox", "mount", "/sdcard");

or

mount ("vfat","/dev/block/vold/259:3","/sdcard");

Also, with the /sbin/busybox command, I will have to be rooted and have a busybox installed on the android or no?

Thank you for the help
[Android Software/Hacking General [Developers Only]] Волк:
Tell you what, pm me, I will be available in a little over two hours.
[Android Software/Hacking General [Developers Only]] Phil3759:
I will clarify my questionning :

Mount point for my sd card, as indicated in terminal is:

/dev/block/vold/259:3

Is that 259:3 normal?

So i can mount with this:

mount ("vfat","/dev/block/vold/259:3","/sdcard")

Also, i have actually deleted busybox from /system/xbin and i have no busybox in /sbin. How come the commands "/sbin/busybox mount" in Edify still work. What bysybox is used? One that is part of the binary-update?

If someone explains me these basics...
[Android Software/Hacking General [Developers Only]] axetilen:
Please help. I got SYNTAX ERROR!!! aroma-config on line 56 col 2
[Android Software/Hacking General [Developers Only]] Robobob1221:
line 55, after the 0 should be no comma.

There are a some others like this too. Maybe lines 108, 124, 134. I think these ones.

As far as where errors are reported if not the exact line I think the error is reported when a function ends or there is an empty line. That seems to be what's happening.
[Android Software/Hacking General [Developers Only]] axetilen:
Thank you for the reply. It passed but their is another error on line 112 col 4
[Android Software/Hacking General [Developers Only]] fro5tie:
Hi

First off thanks for this thread theres a load of info here, really helpful!

I've got a quick question, I've just been playing around with customising a ROM to my liking, and flashing it OK, thats step one accomplished! Now I've been reading into the updater-script and it looks like it can perform another function for me. Is it possible to get it to copy some files from my ext SD card onto the device memory? E.g. after or before flashing the ROM, get it to copy a folder of files across? I believe I need to use the mount and package extract dir functions?

Where would I need to put the files to copy across? If the updater script is in the update.zip file, do the files to copy over also need to be in the zip file, or can they be located in another folder on the card?

Any help would be great :) thanks
[Android Software/Hacking General [Developers Only]] Robobob1221:
line 108 "320 mhz,"",0, you missed " after 320mhz
[Android Software/Hacking General [Developers Only]] dany547:
thanks guys for all the support! i learned alot in the past few day, i have 2 questions.

There are 4 options in the customize menu: Default installation, Typical, Minimal, Custom.The selection of the type is defined in type.prop,prop("type.prop","selected")=="1"), prop("type.prop","selected")=="2") etc

Lets say that for type.prop=3, the Minimal one i want to define in the customize.prop the application that i want to be installed by default.

So i wrote this

if (prop("type.prop","selected")==3") then
writetmpfile(
"customize.prop",

"item.1.1=0\n"+ #--Deezer
"item.1.2=1\n"+ #--ES File Explorer
"item.1.3=0\n"+ #--FB
"item.1.4=0\n"+ #--Google+
"item.1.5=0\n"+ #--Instagram
"item.1.6=0\n"+ #--No Frills CPu
"item.1.7=0\n"+ #--Shazam
"item.1.8=0\n"+ #--Swype
"item.1.9=0\n" #--Twitter
);
endif;

q1.The code that i wrote is correct? q2. Is there a problem if customize.prop is used in type.prop 2, type.prop 4?(my logic was that you cannot select 2 options, lets say type.prop 3 and 4 so the sytaxes in customize.prop will overwrite each other) Thanks again!

The ideea is that is gives me syntax error, again and i cannot see the problem.