yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] kirasan13:
I was wondering is format() arg 3 got 4 error from updater script for "mount and unmount" command?
[Android Software/Hacking General [Developers Only]] Harbir:
U can try the update binary from other current working note 2 Rom and try it with my aroma and my update:confused:
[Android Software/Hacking General [Developers Only]] kirasan13:
testing now

---------- Post added at 09:18 PM ---------- Previous post was at 08:50 PM ----------

Haha manage to solve updater

Now got new problem on the aroma it keep reinstall things keep jump back to 1st decision when at the last step
[Android Software/Hacking General [Developers Only]] Harbir:
Lol man so many problems ....:p

CAN u explains in brief what happen....:confused:
[Android Software/Hacking General [Developers Only]] kirasan13:
at aroma

i click next~

than

checkbox place i chose the app i want to install~(title having problem the <~mods.a1> and a2 need to be change)

next

at select box i skip all and click next~

than

this part is confusing@@" it show "<~install.now2>",

"<~install.now3>\n\n"+

"<~install.now4>\n\n"+

"<~install.now5>",

"@install" (this surely need to be edit)

and than when click install it jump to the 1st welcome screen again~ like looping
[Android Software/Hacking General [Developers Only]] kirasan13:
@@" i think my aroma "skip" part got problem

View attachment META-INF.rar
[Android Software/Hacking General [Developers Only]] carl1961:
updater-script missing ;

set_progress(0.00);

set_progress(0.1);

ui_print("===================");

ui_print("Wecome To KiRA Rom");

ui_print(" v1 ");

ui_print("===================");

missing ","

l#Clock Android 4.2

if file_getprop ("/tmp/aroma-data/adds.prop","item.0.6") == "1"

these need correcting ( you had these right last time)

ui_print("@Flashing Kernel Perseues");

package_extract_file("kernel/perseus/boot.img", "/tmp/boot.img");

write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p8");

delete("/tmp/boot.img");

endif;

#redpill

if file_getprop("/tmp/aroma-data/mods.prop","selected.1") == "2"

then

ui_print("@Flashing Kernel Redpill");

package_extract_file("kernel/redpill/boot.img", "/tmp/boot.img");

write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p8");

delete("/tmp/boot.img");

endif;

#note2core

if file_getprop("/tmp/aroma-data/mods.prop","selected.1") == "3"

then

ui_print("@Flashing Kernel Note2Core");

package_extract_file("kernel/note2core/boot.img", "/tmp/boot.img");

write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p8");

delete("/tmp/boot.img");

endif;

#Modem

if file_getprop("/tmp/aroma-data/mods.prop","selected.2") == "1"

then

ui_print("@Flashing Modem");

package_extract_file("flash_image", "/tmp/flash_image");

set_perm(0, 0, 0777, "/tmp/flash_image");

assert(package_extract_file("modem.bin", "/tmp/modem.bin"),

run_program("/tmp/flash_image", "/dev/block/mmcblk0p10", "/tmp/modem.bin"),

delete("/tmp/modem.bin"));

delete("/tmp/flash_image");
[Android Software/Hacking General [Developers Only]] kirasan13:
Ah thx u so much@@

I should not watch supernatural while editing those script

Will report again after im home
[Android Software/Hacking General [Developers Only]] _escape_:
Hi guys,

i made an aroma installer to flash my favorite apps after flashing a new rom.

I got a problem with 2 apps, i think i have to install them in /system (SuperSU and Google Search), but even with those lines in updater-script, apps aren't updated

ui_print("@Starting the install process");
ui_print("Setting up required tools...");
package_extract_file("utils/mount", "/tmp/mount");
set_perm(0, 0, 0755, "/tmp/mount");
ui_print("Mounting...");
run_program("/tmp/mount", "/system");
ui_print("@Installing System Apps");
ui_print(" >>> Installing SuperSU");
package_extract_dir("data/SuperSU", "/system/app");
ui_print(" >>> Installing Google Search");
package_extract_dir("data/GSearch", "/system/app");
unmount("/system");
ui_print("@Finished Install");
set_progress(1);

note : my apps are in data/Name_Of_App in my flashable zip.

Working fine with apps installed in /data

May i need to install some libs somewhere ? or something else ?

Thx guys !
[Android Software/Hacking General [Developers Only]] Harbir:
U can search in xda there are 100 of apps which make such app install aromas ...:D
[Android Software/Hacking General [Developers Only]] _escape_:
For sure i already did it... But no luck to find what i need for now...
[Android Software/Hacking General [Developers Only]] kirasan13:
upload ur updater and aroma script~ sure here got someone can help you out
[Android Software/Hacking General [Developers Only]] carl1961:
make sure app is in side these folders in your install zip

dir.. data\GSearch\system\app\googlesearch.apk

if not you may need

package_extract_file("data/GSearch/googlesearch.apk", "/system/app/googlesearch.apk");
[Android Software/Hacking General [Developers Only]] kirasan13:
i replace all the error like you show me at the attach file and when at recovery

aroma come out with welcome screen and than

next to choosing app to install than

next to select box area also show normal

but when i press install the thing that i choose were not install and the aroma jump back to the splash picture screen than

show the welcome screen again @@" is this error in aroma?
[Android Software/Hacking General [Developers Only]] _escape_:
my app is in data/Gsearch/GoogleSearch.apk

i use this king of line in updater-script : package_extract_dir("data/SuperSU", "/system/app");

May i replace data/SuperSU by data/SuperSU/supersu.apk ?! i don't think so...

This line works fine if i install another app in /data instead of /system

So may i have to add system/app/ subfolders in my data/GSearch folder in my flashable zip ?

If i understand, if my apps aren't in the "long/named/subfolders", just in a "short/folder" i have to specified their names in my updater-script, to install them in /system, right ?
[Android Software/Hacking General [Developers Only]] carl1961:
Yes you need the sub folders for package_extract_dir

And for files use

package_extract_file

---------- Post added at 10:22 AM ---------- Previous post was at 10:10 AM ----------

When I tested your scripts I had to use my update.binary and update.binary-install. Also I commented out all the lines in your updater.script so it would not mess up my phone.

So if I was you I would make sure I had the update-binary and update-binary-install from a aroma installer you know

Works on your phone. Then when you run installer always save the log file and read for errors, it may be some of those lines I commented out is causing errors that I cannot test because I so not have your phone and Rom
[Android Software/Hacking General [Developers Only]] _escape_:
Ok thx for precisions !!

My files are in my flashable zip:

data/app/adaway.apk

data/app/toche.apk

data/app/terminalemulator.apk

system/app/supersu.apk

system/app/googlesearch.apk

updater-script :

package_extract_file("utils/mount", "/tmp/mount");
set_perm(0, 0, 0755, "/tmp/mount");
run_program("/tmp/mount", "/data");
run_program("/tmp/mount", "/system");
ui_print(" >>> Installing in /data");
package_extract_dir("data/app", "/data/app");
ui_print(" >>> installing in /system");
package_extract_file("system/app/SuperSU.apk", "/system/app/SuperSU.apk");
package_extract_file("system/app/GoogleSearch.apk", "/system/app/GoogleSearch.apk");

Files in data are installed, but those in system were not updated ...

those apps already exists, i want to install a superior version of them ... maybe it's the problem ?!

Log file says me that :

>>> Installing in /data
Extract: /data/app/AdAway.apk
Extract: /data/app/TerminalEmulator.apk
Extract: /data/app/Torch.apk
>>> installing in /system
Finished Install
script result was [1]

What does result [1] mean please ?

i'm a little lost ...

thx guys

EDIT :

Oh god ... i managed to ... but dunno when and how ...

But apps have to have the exactly same name ... so ...

i see where my problems are ...

i'll tell you the final result :)

BTW thx :D
[Android Software/Hacking General [Developers Only]] _escape_:
So ...

it works fine using "package_extract_dir("system/app", "/system/app/"); " but apps need to have the same name as inside /system/app/ to be replaced or upgraded ... (like in /data of course)

My issue is about google search, i think it need lib, but dunno how extract them with aroma ...

it's copied fine in data/app/ but without a name like com.google......... just the name i gave it in my flashable zip.

Maybe we can't :/

if somebody knows .. :)
[Android Software/Hacking General [Developers Only]] carl1961:
No you do not need lib files , well I did not install any.
[Android Software/Hacking General [Developers Only]] _escape_:
So... It install it in /data but nothing to replace so previous version isn't upgraded...

Maybe i need to give it another name... The real name of this app, but where to find it...

Hope i'm clear enough
[Android Software/Hacking General [Developers Only]] Robobob1221:
Are you installing JB apps?

Isn't the google search named velvet.apk in the system/app directory?

########################################################

Also I asked before, but will ask again.

Does anyone know if its possible to have images in the checkbox/selectbox like you can in the menubox?

eg

"Enlightenment", "Experience V9 in it's original form - Jellybean-style Sense with a DK Twist!", "@dk",

@dk leads to the icon directory and pulls the png with the corresponding name if in the menubox.

Is it possible to do something like this within the selectbox/checkbox? I tried but then you end up with too many arguments within the line.

Is it possible to use another command to pull images for these ui?

I know you can have a splash within the aroma to show images but thats after the selection
[Android Software/Hacking General [Developers Only]] Harbir:
Ur full aroma.comfi and update script ...

And

U can try the update binary From other current running rom ....and see

Send From Harbir's Turbo-boosted HTC Sensation
[Android Software/Hacking General [Developers Only]] g2435:
i think your saying get a binary from a different rom? if i will and let you know what happens
[Android Software/Hacking General [Developers Only]] kirasan13:
Update binary with aroma and rename into update binary install and paste into it
[Android Software/Hacking General [Developers Only]] Harbir:
Yes get the update binary from ur phone working rom as it has been modified by other dev to work in that phone (work means mount the partition etc)
[Android Software/Hacking General [Developers Only]] willtryall:
@first: sry for my bad english

I don´t think that i have a general problem with the update-binary.

I have take a full working Custom Rom (with working Aroma), and just want to add features for me (new apps for customize)

That´s no problem (new features in the checkbox are working)

The Problem are the new features in the selectbox. Original there is only one Group, i have now 6 Groups.

If i delete the selectbox, Aroma ist working fine.

Edit: Upload update-script & aroma-config

Have tried to do a selectbox for every group / don´t work

Have tried two selectbox (Sound.prop & theme.prop (with few groups in a selctbox) / don´t work

Orignial code is:

selectbox(
"Sound mod Addon",
"Player, Clearbass +, Sony setting,..",
"icons/agreement",
"Sound.prop",

" Please Choose an Addon.. ",	"",	2, #-- Group 1. key = "selected.1"
"[AC!D]AwesomeBeats[Addon]",	"(Only EQ) Awesome Beats MODDED DSP) with optimisation",	1,	#-- selected.1 = 1
"[AC!D]Noozxoide[Addon]",	"Noozy Player and Noozxoid EQ with optimisation", 0, #-- selected.1 = 2
"SONY MEDIA XPERIA",	"If you want to use New SONY Media Apps in your own ROMs( Walkaman, Photo, Movie )", 0, #-- selected.1 = 3
"No",	"No Install Sound mod",	1 #-- selected.1 = 4

);

selectbox(
"Themes",
"Select the theme you want to use as systems default.",
"icons/personalize",
"theme.prop",

"Remove button sttbar ",	"",	2, #-- Group 1. key = "selected.1"
"Yes",	"Remove Home & Lock button remover in startus bar",	0,	#-- selected.1 = 1
"No",	"", 1 #-- selected.1 = 2

);

ini_set("text_next", "Install");
[Android Software/Hacking General [Developers Only]] Harbir:
This info is not help full if u want help please past or link the aroma.comfi and update scripts so dev can look;)
[Android Software/Hacking General [Developers Only]] Harbir:
Try this and report ( made some small changes ).......

http://pastebin.com/ZTNxU0zD
[Android Software/Hacking General [Developers Only]] Erik.Leach:
EXHAUSTED

Ok, so here it goes. I have been trying to figure this out all day. I worked with mrRobinson to port his working Nexus 7 Aroma Installer/Rom package to the Nexus 4.

mrRobinson's AOKP PUB with AROMA

I repackaged the installer, replacing everything that was Nexus 7(grouper) specific like kernels and the ROM with Nexus 4(mako) versions. I used bigxie's AOKP PUB build for the ROM since that is already my daily driver.

When I flash the zip in CWM Touch v6.0.2.3 it does this:

-- Installing: /sdcard/0/_Flashables_/OneAroma7oButter7hem-v1.1-N4BETA.zip
Finding update package...
Opening update package...
Installing update...

Starting AROMA INSTALLER version 2.56
(c) 2012 by amarullz xda-developers

All of this looks correct to me. The problem is that's all it does. At this point the screen gets a little darker and just stops. I am using a known working update-binary for aroma. I pulled the update-banary from bigzie's ROM mentioned above and renamed it update-binary-installer and placed it in the META-INF/.... folder. I just can't figure out what I have missed. I am posting a link to download the whole zip so anyone willing to help can take a look. :eek:

Thanks in advance.

DOWNLOAD FROM DROPBOX
[Android Software/Hacking General [Developers Only]] willtryall:
THX for watching my code.

Get now Syntax Error (status 1) ist last line // line 198 col1

Edit: Now it´s running like a Hell :D

Have take aroma-binary & aroma-binary-installer from another rom

thank you very much for Help :)
[Android Software/Hacking General [Developers Only]] Harbir:
:confused: is it working now or not tell briefly. ;)
[Android Software/Hacking General [Developers Only]] willtryall:
It´s working :)
[Android Software/Hacking General [Developers Only]] Harbir:
Glade it worked ;)
[Android Software/Hacking General [Developers Only]] anaraxia:
Hello everyone.

Im a complete noob to aroma and have spent several hours sorting my scripts. Now I just have one problem, I can go through my aroma setup and select what I wish, only nothing gets installed. My guess is that its to do with updater-script but comparing to many others I cant identify the issue.

Can anyone help me out?
[Android Software/Hacking General [Developers Only]] Harbir:
Can u explain the problem in brief.....
[Android Software/Hacking General [Developers Only]] Erik.Leach:
Can anyone help?
[Android Software/Hacking General [Developers Only]] anaraxia:
basically aroma starts up and I can prgress through the menus and select the items i wish to intsall. Click Install, it then says the install is complete. Nothing shows in the install script page and on reboot, nothing has installed
[Android Software/Hacking General [Developers Only]] Harbir:
Try this and report

http://pastebin.com/PJ9sJzsx
[Android Software/Hacking General [Developers Only]] Harbir:
Upload only the

META-INF folder and not the whole ROM:p Lol no one will download it as its 200 mb just to solve the aroma :eek:
[Android Software/Hacking General [Developers Only]] Erik.Leach:
Sorry. here it is https://www.dropbox.com/sh/kseva6yhrlixiuk/1iYPjvWYlQ
[Android Software/Hacking General [Developers Only]] Harbir:
Please make a zip file and attach it it would be easy for us ....
[Android Software/Hacking General [Developers Only]] Erik.Leach:
Here you go

https://www.dropbox.com/s/2tnr102n35are7r/META-INF.zip
[Android Software/Hacking General [Developers Only]] anaraxia:
Thanks for taking the time to review but still nothing installs
[Android Software/Hacking General [Developers Only]] Harbir:
100% can conform that your aroma and update is 100% correct as I tested them with my mod with my phone binary etc.

My suggestion

Download the aroma from op and make it again ( as u have mixed Manny things like update binary etc that could conflict)

And take binary from a working aroma (ur phone kernel or ROM )

Not need to make aroma.confi or update script again use the present one .

Do not rename anything ;)

Kk
[Android Software/Hacking General [Developers Only]] Erik.Leach:
thanks!! I wiil try and report back

---------- Post added at 02:59 PM ---------- Previous post was at 02:03 PM ----------

I got it running. I get through all of the options and start the installer. And then I get an ERROR 7 saying that the file or directory doesn't exhist.

Here is the short version:

Installing Morfic [DER KERNEL] Trinity Four...
set_perm: chown of /tmp/busybox to 0 0 failed: No such file or directory
set_perm: chmod of /tmp/busybox to 777 failed: No such file or directory
script aborted: set_perm: some changes failed
set_perm: some changes failed

Installer Error (Status 7)

End at : Sun Mar 10 18:35:44 2013

If it helps, here is the entire log:

~~LOG~~
[Android Software/Hacking General [Developers Only]] carl1961:
aroma-confg:

line 320 , for default type install 2 needs changing to 1

if (prop("type.prop","selected")!="2") then

typo error, but I would remove this whole if command, changing above 2 to 1 will work

line 328 (notepad ++) extra i

#-- Default Values ( item.x.x = value. value=1 selected, value=0 un-selected )

iif(

prop("type.prop","selected")=="3",

updater-script

line 9 and 36

9 if file_getprop("/tmp/aroma-data/install.prop","selected.0") == "1" then

36 if file_getprop("/tmp/aroma-data/install.prop","selected.0") == "2" then

No install.prop, I think it should have been wipe.prop

line 44, I think all the item.3 's should be 1's ( it's first group in customize.prop)

ui_print("Copying Selected Files ...");

# AccuweatherWidget

if file_getprop("/tmp/aroma/customize.prop","item.3.1") == "1" then

soon as I get my HTC one phone recognizable with my pc (I upgraded my computer) I can the pull the prop files and verify the correct item numbering
[Android Software/Hacking General [Developers Only]] Erik.Leach:
Fixed the kernel issue. Got it to finish. :victory:

If I try to select a different boot ani, it says

package_extract_file: can't open /system/media/bootanimation.zip for write: No such file or directory
set_perm: chown of /system/media/bootanimation.zip to 0 0 failed: No such file or directory
set_perm: chmod of /system/media/bootanimation.zip to 644 failed: No such file or directory
script aborted: set_perm: some changes failed
set_perm: some changes failed

Installer Error (Status 7)

End at : Sun Mar 10 19:20:07 2013

Also, it doesn't flash the gapps or the inverts that I select. Flashes the ROM and kernel fine now. :eek:
[Android Software/Hacking General [Developers Only]] carl1961:
seem to be a folder layout that may be incorrect

you should have on root of your installer a kernels folder, with morfic folder inside it, with a kernel folder inside the morfic folder, with kernel folder with all the install files , busybox,repack-ramdisk.sh,mkbootimg.sh,mkbootimg,unpackbootimg

package_extract_dir("kernels/morfic/kernel", "/tmp");

set_perm(0, 0, 0777, "/tmp/busybox");

set_perm(0, 0, 0777, "/tmp/repack-ramdisk.sh");

set_perm(0, 0, 0777, "/tmp/mkbootimg.sh");

set_perm(0, 0, 0777, "/tmp/mkbootimg");

set_perm(0, 0, 0777, "/tmp/unpackbootimg");

EDIT: did see you got it fixed until after I posted
[Android Software/Hacking General [Developers Only]] Erik.Leach:
See my post above. I fixed the kernel issue, now it won't flash gapps or inverts...
[Android Software/Hacking General [Developers Only]] carl1961:
I had that issue before too, but when I changed things to for example:

package_extract_dir("inverts/calendar", "/system");

inside calendar folder will be

app folder with Calender.apk in it
[Android Software/Hacking General [Developers Only]] Erik.Leach:
OK, cool sounds like that will help with the inverts.

BUT it won't flash regular gapps either.
[Android Software/Hacking General [Developers Only]] anaraxia:
This is great.. as soon as I get the time I will make the changes and report back. Thanks for your time
[Android Software/Hacking General [Developers Only]] liamstears:
I'm having some trouble with the progress bar in Aroma Installer and wondered if you guys wouldn't mind having a quick look through my script and see why its not working?

The problem is that it all works up to when it installs the 11 system files, it goes to 100% after doing this but it shouldn't as I have a 90% and 100% progress after that and they are in the right place and work so I don't know why its going to 100% too early

Here is the script anyway: http://d-h.st/x60
[Android Software/Hacking General [Developers Only]] Dblfstr:
Looks fine to me. No tmuch happens between 90 and 100 percent though.

Does it ever say "Unmounting partitions"?

Maybe set 90 (0.9) to 65 or 75 or 80, just to see if there is a difference. It could be that it just blows right passed 90 and you cant really see it.
[Android Software/Hacking General [Developers Only]] liamstears:
I think you have misunderstood the problem maybe?

My progress goes up normally but at the end of writing system it goes to 100% but then it drops back down to 90% and then goes back up to 100% at the last step when it is suppose to

So it's getting to 100% too early then dropping back to 90% then up to 100% again
[Android Software/Hacking General [Developers Only]] Patrics83:
use

set_progress(1);

instead
[Android Software/Hacking General [Developers Only]] liamstears:
Makes no difference, same problem...

EDIT: Some more testing tells me that the options are what are making it skip to 100%, so when the installer gets to the part where its using systemui.prop it skips up to 100% then after the options drops back down to normal...
[Android Software/Hacking General [Developers Only]] Dblfstr:
Oh, that is not how you explained it, so yeah, I did misunderstand your actual issue.

So I agree, that is weird. have you tried show_progress(); instead?

Edit:

Just noticed the show progress, in your script. Why not just use one or the other and not both?

***************************************

show_progress(fraction, seconds) – advance progress bar a fractional amount over a period of seconds

Ok, so not real familiar with how show_progress works. But here you have this

set_progress(0.6);

ui_print("<@center>Writing System");
show_progress(0.7,11);
package_extract_dir("system", "/system");

ui_print("<@center>Writing Data");
show_progress(0.8,2);
package_extract_dir("data", "/data");

if
file_getprop("/tmp/aroma-data/systemui.prop","selected") == "1"
then

Which seems to be where you problem is.

(To everyone) Now, does show_progress keep going further if the process takes longer than the argument given in seconds? OR how does that work exactly?
[Android Software/Hacking General [Developers Only]] liamstears:
I've actually just worked this out and found my problem

It was the show_progress parts

Now for example

show_progress(0.5,1272);

I thought this mean after 1272 files had been processed the percentage would be 50% at the end but that's wrong

This means after 1272 files have process the progress will increase 50%

So for example if I had

set_progress(0.2); - progress bar at 20%

show_progress(0.5,1272); - during progress of 1272 files being copied progress bar goes from 20% to 70%

Hope this info can help someone else as now my progress bar works perfect

Thanks for the help anyway though
[Android Software/Hacking General [Developers Only]] anaraxia:
Ive made the changes you've suggested.. The typo you mentioned, if I correct it, causes and error. So currently Ive left that as it was. Still I have no working install.

Here are the updated scripts

aroma-config

updater-script

Also how do I pull the prop files?