yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] cloooned:
Hi,

I've got a strange problem. I just got a new S4 mini (4.4.2 samsung_rel_3)unbranded and tried to use my updater-script which I've tested before with the same but branded device (4.4.2 samsung_rel_2).

The problem is now, that the command package_extract_dir not extract all available files, just a few and it also creates empty files on the device. I've tried the same script with different other models with no problems at all.

It does not matter if I install it by sideload, sdcard, external_sd.

Has anybody had a problem like this, could this come frome the update-binary which I haven't replaced for almost two years?

Regards

Edit: Found the problemmaker... There was no free space left on the system partition, unfortunatly package_extract_dir throws no assert.
[Android Software/Hacking General [Developers Only]] luigimak:
help please

SYNTAX ERROR!!! aroma-config on line 5 col 1

E:Error in /...../...zip

(Status 1)

I can not find the error, can anyone help?

View attachment aroma-config.txt
[Android Software/Hacking General [Developers Only]] Harbir:
u were using Dos\Windows format in aroma u should use UNIX format

here is ur UNIX format aroma.confI

LINK - HERE
[Android Software/Hacking General [Developers Only]] luigimak:
thanks finally works now
[Android Software/Hacking General [Developers Only]] DHD22800:
Hi.

I've created a rom for specific device and rom.

This is my code for recognition of the device:

if sysprop("ro.product.board") == "m7" then
setvar("device","HTC One");
alert("PUOI PROCEDERE", "Dispositivo rilevato:\n" + getvar("device"));
else
alert("ERRORE", "Questo non è un HTC One.\n\nUscita...");
exit("");
endif;

It works. But when i edit the code for recognize the ROM, it fails. Code:

if sysprop("ro.product.board") == "m7" && sysprop("ro.product.version")=="ROM_NAME ROM_VERSION" then
setvar("device","HTC One");
setvar("rom","ROM_NAME ROM_VERSION");
alert("PUOI PROCEDERE", "Dispositivo rilevato:\n" + getvar("device") + "\nRom Rilevata:\n" + getvar("rom"));
else
alert("ERRORE", "Questo non è un HTC One.\n\nUscita...");
exit("");
endif;

It fails and show me the alert("ERRORE"...) and exit.

EDIT:

In your aroma-config, you haven't set the prop

Example:

#
# STEP 3 - Choose your Keyboard
#

selectbox(
"Keyboard",
"Please make your selection:",
[B] "keyboard.prop",[/B]

"Stock CYANide","cyan buttons, white letters",1,
"blb keyboard","a twist on a popular style",0,
"Black cyan","black buttons, cyan letters",0,
"Cyan gradient","black buttons, cyan gradient bg",0,
"DD special","my personal favorite by darry dillon",0,
"Miui shaped","miui icon shaped inspired",0,
"rounds","dark style with a slight round shape",0,
"new rounds","roundish recessed buttons,unique style",0,
"the battered","my rendition of my fav cm theme kb",0,
"the battered cyan bg","the battered with cyan gradien bg",0
);

And in your updater-script:

# black cyan letter
if
file_getprop("/tmp/aroma/[B]keyboard.prop[/B]","selected.0") == "1"
then
ui_print("@ Installing black cyan letters");
package_extract_dir("theme chooser/keyboards/black cyan letter/system", "/system");
endif;
[Android Software/Hacking General [Developers Only]] Negan:
[MENTION=5350406]DHD22800[/MENTION] Thanks for the reply amd help. I hope thats all that it is. After work I'll post results. Appreciate your time man

sent from my JEDI ELITE Note 3

for best xda results, click to enlarge ?

http://img268.imageshack.us/img268/9564/searchitnoob.gif

---------- Post added at 10:48 AM ---------- Previous post was at 10:23 AM ----------

Ok so I made some adjustments and still no luck. Aroma again starts and as before, once I accept the terms of use and hit next it goes back to twrp and says failed. Attached is my updater, config and recovery log. So frustrating lol! All of you aroma masters have my upmost respect for what you do. The finished product is always so nice. #feeling humbled lol!

https://www.dropbox.com/s/q1rqan5vxwgux37/edited.zip

sent from my JEDI ELITE Note 3

for best xda results, click to enlarge ?

http://img268.imageshack.us/img268/9564/searchitnoob.gif
[Android Software/Hacking General [Developers Only]] DHD22800:
Ups...sorry. I forgot the icon...

So, your code is:

selectbox(
"Keyboard",
"Please make your selection:",
"keyboard.prop",

"Stock CYANide","cyan buttons, white letters",1,
"blb keyboard","a twist on a popular style",0,
"Black cyan","black buttons, cyan letters",0,
"Cyan gradient","black buttons, cyan gradient bg",0,
"DD special","my personal favorite by darry dillon",0,
"Miui shaped","miui icon shaped inspired",0,
"rounds","dark style with a slight round shape",0,
"new rounds","roundish recessed buttons,unique style",0,
"the battered","my rendition of my fav cm theme kb",0,
"the battered cyan bg","the battered with cyan gradien bg",0
);

You must have an icon:

selectbox(
"Keyboard",
"Please make your selection:",
[B] "icons/key",[/B]
"keyboard.prop",

"Stock CYANide","cyan buttons, white letters",1,
"blb keyboard","a twist on a popular style",0,
"Black cyan","black buttons, cyan letters",0,
"Cyan gradient","black buttons, cyan gradient bg",0,
"DD special","my personal favorite by darry dillon",0,
"Miui shaped","miui icon shaped inspired",0,
"rounds","dark style with a slight round shape",0,
"new rounds","roundish recessed buttons,unique style",0,
"the battered","my rendition of my fav cm theme kb",0,
"the battered cyan bg","the battered with cyan gradien bg",0
);

If you write

"@key"

Your png image, must be in "META-INF\com\google\android\aroma\icons" called key.png

Else if you write

"icons/key"

Your png image, must be in "META-INF\com\google\android\aroma\themes\theme_name" called key.png. With this method, you are using the theme icon

(Example, if the theme in miui, and you write "@apps", your are using miui theme's icon for app)

And sorry for my english :P

# * About Icon = [MENTION=378448]alert[/MENTION] - show <AROMA Resource Dir>/icons/alert.png

# or if theme used it will find <themedir>/icon.alert.png

# you can still access it via "icons/alert"

EDIT:

An example from my mod. It is a menubox:

menubox(
#-- Title
"Scelta installazione",

#-- Sub Title
"Modalità di installazione",

#-- Icon
"icons/apps",

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

#-------------------------+-----------------[ Menubox Items ]-------------------------+---------------#
# TITLE | SUBTITLE | Item Icons #
#-------------------------+-----------------------------------------------------------+---------------#

"Installa tutto",	"Installa tutte le traduzioni per le app Venom", "@install", #-- selected = 1
"Personalizza",	"Scegli tu che traduzioni installare", "@device", #-- selected = 2
"Ripristina", "Ripristina <b>tutte</b> le app originali", "@ripristino" #-- selected = 3
);
[Android Software/Hacking General [Developers Only]] Negan:
Oh ok I hear ya. Thanks man. I'll give it a whirl shortly.

sent from my JEDI ELITE Note 3

for best xda results, click to enlarge ?

http://img268.imageshack.us/img268/9564/searchitnoob.gif
[Android Software/Hacking General [Developers Only]] Negan:
Ok made some good progress now. So I can go through the entire aroma process now and when I get to where it actually shows the progress of it installing, it shows my splash image and loops back to the start of aroma. So close now I cam almost taste it!

So just gotta correct this and then play with my images in my aroma theme which are all inverted whicj is very odd lol! Then I can finally release this

sent from my JEDI ELITE Note 3

for best xda results, click to enlarge ?

http://img268.imageshack.us/img268/9564/searchitnoob.gif
[Android Software/Hacking General [Developers Only]] Negan:
I'd like to again thank you guys for the help amd advice. Got my aroma working 100% amd am very excited.

Great thread guys

sent from my JEDI ELITE Note 3

for best xda results, click to enlarge ?

http://img268.imageshack.us/img268/9564/searchitnoob.gif
[Android Software/Hacking General [Developers Only]] DHD22800:
Sorry...i don't seen your reply.

Congrats for your working AROMA (*^o^*)

Inviato dal mio HTC ViperOne 5.0.0 utilizzando Tapatalk
[Android Software/Hacking General [Developers Only]] Kiray1982:
line 173 @ aromagapps.edify

"item.1.1=0\n"+

maybe, write without "+", because last entry?

hope this will help
[Android Software/Hacking General [Developers Only]] hlxanthus:
Anyone know a way to amend a file from within aroma? I am trying to build a working 70-gapps.sh from within aroma. But I cannot figure out how to add a line to the end of a file.

writetmpfile(
"70-gapps.sh",

"#!/sbin/sh\n"+
"# \n"+
"# /system/addon.d/70-gapps.sh\n"+
"#\n"+
". /tmp/backuptool.functions\n"+
" \n"+
"list_files() {\n"+
"cat <<EOF\n"
);

After that I need to add all the files and their paths(and at this point it will have to be selective for the different apps selected) to the list and after that the rest of the script.

I did try to build if statements within the writetmpfile structure with no success, caused syntax errors. Any suggestions?
[Android Software/Hacking General [Developers Only]] hlxanthus:
What does "doesn't seem to run properly" mean? Does aroma even load or does it fail? Did you pull recovery and aroma logs? What errors does it throw?
[Android Software/Hacking General [Developers Only]] HypoTurtle:
It loads, and currently no error is reported. Have checked the contents of /tmp in recovery terminal and there doesn't seem to be a /tmp/aroma folder made - which would explain why every else isn't run.
[Android Software/Hacking General [Developers Only]] Robbie P:
here is recovery.log and updater-script, couldn't see where to get an aroma log, no button popped up.

Choosing option 4 directSD (p3 formatted as ext4 for now) i get the "sd-ext not mounted" screen, no actual errors are reported.

As HypoTurtle says, there is no tmp/aroma* created.

the ziptotmps at the start of aroma-config do not create anything.
[Android Software/Hacking General [Developers Only]] hlxanthus:
After you run your aroma thru the end it should give you a copy log to SD option. Or after you run the install but before you exit run adb pull /tmp/

Should pull an aroma folder filled with all the props generated in aroma as well as a .install.log or something similar
[Android Software/Hacking General [Developers Only]] buggaty:
ihave a problem

i have created a rom with aroma

now just fine

but when install the addon and rom from aroma it say insttall and install successfull

and nothing installed

no error nothing show
[Android Software/Hacking General [Developers Only]] hlxanthus:
You have updater script errors. Pull your aroma log and see what the errors are
[Android Software/Hacking General [Developers Only]] Patrics83:
Replace the update-binary-installer with one that works with your device.

Sent from my HTC One (m8)
[Android Software/Hacking General [Developers Only]] buggaty:
thanks for reponce

yes i have replaced but is the same problem
[Android Software/Hacking General [Developers Only]] Patrics83:
https://www.dropbox.com/s/ecy1lkyu8wmy4m1/update-binary-installer

If that doesn't help, make sure that needed partitions are mounted.

Sent from my HTC One (m8)
[Android Software/Hacking General [Developers Only]] buggaty:
device note2 N7100 running on touchwizz 4.4.2

mount

ui_print(">>> preload wipe ...");

mount("ext4", "EMMC", "/dev/block/mmcblk0p14", "/preload");

delete_recursive("/preload");

ui_print("");

ui_print(">>> cache wipe ...");

mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/cache");

delete_recursive("/cache");

ui_print("");

ui_print(">>> dalvik cache wipe ...");

mount("ext4", "EMMC", "/dev/block/mmcblk0p16", "/data");

delete_recursive("/data/dalvik-cache");

ui_print("");

ui_print(">>> format system ...");

mount("ext4", "EMMC", "/dev/block/mmcblk0p13", "/system");

delete_recursive("/system");

ui_print("");

set_progress(0.10 );

ui_print(">>> copying system files ...");

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

ui_print("");

set_progress(0.30 );

ui_print(">>> copying data files ...");

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

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

run_program("/tmp/check_data_app");

package_extract_dir("data", "/data");

package_extract_dir("sdcard", "/sdcard");

run_program("/sbin/sync");

ui_print("");

set_progress(0.40
[Android Software/Hacking General [Developers Only]] wesamothman:
Problem is with your data directory structure and permission.

Put your apps in a root folder and call it sdcard.

Something like /sdcard/data_apps/ put your apps here.

Then in the updater script

package_extract_dir("sdcard", "/sdcard");

Then if you are making a rom for android 4.3 or newer ... mount points for sd card is different.

Do this in the updater script.

set_perm(0, 0, 0777, "/sdcard/data_apps");

Repeat the set perm to /data/media/0/data_apps

And to

/storage/emulated/legacy/data_apps

And finally to

/storage/emulated/0/data_apps.

Good luck and don't forget to modify your script according the the new app folder name.
[Android Software/Hacking General [Developers Only]] hlxanthus:
Anyone know how to check boot loader version? I am on the Verizon gs4. Trying to build an aroma package that will flash a particular file based on actual boot loader. But prebuild prop values are of little help. I am looking for a way to verify the actual boot loader.
[Android Software/Hacking General [Developers Only]] kapil_dheer:
Remember having an app in playstore.
[Android Software/Hacking General [Developers Only]] hlxanthus:
Yeah that won't work from aroma lol
[Android Software/Hacking General [Developers Only]] deadman96385:
Kernel flashing

Hi i am trying to make a aroma flasher so i can let users pick between flashing my d2 sabermod 4.10 and d2 sabermod 4.8 and i am having issues with some syntax errors and i am having problems fixing them. Any help would be appreciated! Thanks

Here is my aroma-config when i flash it says the row 86 col 2 is wrong

http://pastebin.com/9srNmPhG

Here is my updater script just in case its needed

http://pastebin.com/EfLk4zV6
[Android Software/Hacking General [Developers Only]] Robbie P:
try deleting the comma at end of line 84
[Android Software/Hacking General [Developers Only]] deadman96385:
Awesome thank you that and removing the extra endif fixed the issue
[Android Software/Hacking General [Developers Only]] deadman96385:
So now aroma ui fully works but what i choose is not being flashed i can tell this because i still have the old toolchain and the ui print is not running that is in the if statement, my guess why it is not is because i am not telling it to get the right value from the file here are the new updater-script and aroma-config

Updater-script: http://pastebin.com/AYiPzAPv

Aroma-config: http://pastebin.com/Y5k0JNTT
[Android Software/Hacking General [Developers Only]] DON AMIGO:
hi - how can i make multiple aroma zip files ?
[Android Software/Hacking General [Developers Only]] hlxanthus:
How about one at a time?
[Android Software/Hacking General [Developers Only]] wlado93:
Hi everyone,

I have problem with Aroma installer...

my update-script

ui_print("Installing ROM");

if file_getprop("/tmp/aroma/option.prop", "item.1.1") == "1" then
ui_print("Delete Cache and Dalvik cache");
delete_recursive("/cache");
delete_recursive("/data/dalvik-cache");
endif;

if file_getprop("/tmp/aroma/option.prop", "item.1.2") == "1" then
ui_print("Delete internal storage data");
delete_recursive("/data");
show_progress(0.1, 0);
endif;

if file_getprop("/tmp/aroma/option.prop", "item.1.3") == "1" then
ui_print("Formating System...");
format("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/system", "0", "/system");
ui_print("Mounting System...");
mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/system", "/system");
show_progress(0.2, 0);

ui_print("Extracting system");
package_extract_dir("system", "/system");
show_progress(0.3, 0);

ui_print("Creating Symlinks");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
"/system/xbin/adjtimex", "/system/xbin/arp", "/system/xbin/ash",
.........................................etc

LOG

Installing ROM
Delete Cache and Dalvik cache
Delete internal storage data
Formating System...
Creating filesystem with parameters:
Size: 1048576000
Block size: 4096
Blocks per group: 32768
Inodes per group: 8000
Inode size: 256
Journal blocks: 4000
Label:
Blocks: 256000
Block groups: 8
Reserved block group size: 63
Created filesystem with 11/64000 inodes and 8344/256000 blocks
warning: wipe_block_device: Discard failed
Mounting System...
mount: failed to mount /dev/block/platform/omap/omap_hsmmc.1/by-name/system at /system: Device or resource busy
Extracting system
Creating Symlinks
symlink: failed to remove /system/fonts/DroidSans-Bold.ttf: Read-only file system
symlink: failed to symlink /system/fonts/DroidSans-Bold.ttf to Roboto-Bold.ttf: File exists
script aborted: symlink: some symlinks failed
symlink: some symlinks failed

Installer Error (Status 7)

Could you help me what I'm doing wrong ?

EDIT: now I'm something edited and I get those errors :(

Installing ROM
Delete Cache and Dalvik cache
about to run program [/sbin/busybox] with 3 args
mount: mounting /dev/block/platform/omap/omap_hsmmc.1/by-name/userdata on /data failed: Device or resource busy
run_program: child exited with status 255
about to run program [/sbin/busybox] with 3 args
umount: can't umount /data: Invalid argument
run_program: child exited with status 1
Delete internal storage data
about to run program [/sbin/busybox] with 3 args
about to run program [/sbin/busybox] with 3 args
umount: can't umount /data: Invalid argument
run_program: child exited with status 1
Formating System...
script aborted: format() expects 5 args, got 4
format() expects 5 args, got 4

Installer Error (Status 7)
[Android Software/Hacking General [Developers Only]] djb77:
nevermind
[Android Software/Hacking General [Developers Only]] :
updater-script override?

hi,

so i don't care if i brick my tab, at all, not a bit.

that being said the assert killing thing isn't working for me

i want to know how to blow by all the error stuff and force a rom/to flash/install

what would that entry/command look like or do i need to tweak my recovery or is it a combination of both.

i'm trying to port a galaxy tab 3 8 rom to a galaxy tab 3.7, and some other stuff

thanks
[Android Software/Hacking General [Developers Only]] optx:
Hi, i just started with aroma.

Now i want to make myself a own rom with aroma installer.

Aroma starts fine in recovery, can choose what i want.

Problem is the start of the installation. It does not start. I se for a sec the installation process, but then it is finished. Nothing really installed, and i am at the end/reboot screen.

Logs are not generated.

What files are needed ? Update and config ? Or is it some other problem ?

Could need some help :)
[Android Software/Hacking General [Developers Only]] The Sickness:
Did you use a update-binary from your device and rename it update-binary-installer?

Haters Make Me Famous

Deviant Team Member
[Android Software/Hacking General [Developers Only]] optx:
It is a rom with aroma allready in it. I just modified it to my needs .

Gesendet von meinem SM-G900F mit Tapatalk
[Android Software/Hacking General [Developers Only]] The Sickness:
Post the updater-script

Haters Make Me Famous

Deviant Team Member
[Android Software/Hacking General [Developers Only]] optx:
Here is the link to my updater-script

--removed--

Edit: Did view line by line again and i found my Problem.

It was a missing endif;

Thanks a lot !!
[Android Software/Hacking General [Developers Only]] zaki_shan2009:
Iam trying to make a custom rom and i have some question please

1st : How can i know if my device MTD or EMMC partition ?

2nd : How can i know if it is Edify or Amend ? I know it is in META-INF but where can i find this folder ?

3rd : Is that possible if it is Amend, i use Edify ?

4th : I make a rom using dsixda kitchen and when i tried to flash it an error (Status 0) Shows up .. this is about update script right ?

5th : How can i fix this ?

6th : I have figured out a solution but i don't try it .. i have a flashable root.zip file which i used to root my phone (and it flashed without errors) .. when i opened it i found META-INF folder .. Can i just replace the META-INF folder in the rom by this one ?

Thanx :)​
[Android Software/Hacking General [Developers Only]] demkantor:
Before you flash something that could be harmful try learning the basics, this may help you a bit

http://xdaforums.com/showthread.php?t=2290009
[Android Software/Hacking General [Developers Only]] zaki_shan2009:
No Answers ?
[Android Software/Hacking General [Developers Only]] demkantor:
See the post in between the two of yours, it will help answer most of your questions, highly suggest to read up a bit and start with some small scripts before you damage your device.

Once you have a better understanding of how this process is done by doing it on a small scale my guess is you will have answered all your own questions, if not I'll help you further
[Android Software/Hacking General [Developers Only]] franzyroy:
I would use this function

Edit:

I found how. If you want to know, just say me!
[Android Software/Hacking General [Developers Only]] The Sickness:
Delete the entire Checkbox. Redo it again by retyping, or copy and paste
[Android Software/Hacking General [Developers Only]] demkantor:
Just remove the , after the 0 in line 66
[Android Software/Hacking General [Developers Only]] Robbie P:
Might want to remove the , after the 0 in line 82 too, and insert a ); in line 83

i think
[Android Software/Hacking General [Developers Only]] sgt.reza:
aroma-config line 141 col 2 error
[Android Software/Hacking General [Developers Only]] Wuby986:
hey peppe..

all the thing the guys above me are saying are correct, even if one more is missing :)

in prevoius checkbox last line (item1.3) there is again the , after 0.. wich is incorrect.. last of a grop must be without that ,

updater seems fine at first look :)

edit! i just realized was already answered! ops...
[Android Software/Hacking General [Developers Only]] peppe130:
Ok now I've understood.. so it's the same for item.2.5? I mustn't write the , in the last string after the 0? :)
[Android Software/Hacking General [Developers Only]] Wuby986:
exactly how they said :)

and you might like to add this line

ini_set("force_colorspace","rgba");

right above the rom info at the very beginning.

this is necessary to fix the issue in colors for themes.. is not necessary on S3 for ex.. but s4 note3 and s5 for sure or you'll end up with screwed colors :)
[Android Software/Hacking General [Developers Only]] peppe130:
Thank you Wuby :) I'll send you an mp in a minute time
[Android Software/Hacking General [Developers Only]] peppe130:
Hi guys.. How can I turn off my phone from aroma? What's the command line?
[Android Software/Hacking General [Developers Only]] demkantor:
Like have a checkbox that just has powedown as an option? Probably something like

run_program("/sbin/busybox", "powerdown")

Can't recall terminal command off hand but something like powerdown or shutdown should be it

If you can't figure it out let me know and I'll dig into it
[Android Software/Hacking General [Developers Only]] peppe130:
Thank you mate ;) I'll try your advice.. and, an another thing.. How can I reboot into download mode using aroma?
[Android Software/Hacking General [Developers Only]] demkantor:
I'm not 100% but I believe you do the same as with adb/terminal command. So with adb it would be

adb reboot download

Or if rebooting to recovery

adb reboot recovery.

So you could try to use busybox to make any of these commands to work but I can't say for sure as I never tried. I don't believe edify can do this on its own so you would need to do the run busy box commands like above

If I get some time I'll try it out myself and see what I can come up with if you can't get it to work
[Android Software/Hacking General [Developers Only]] peppe130:
I have an another doubt.. Where I have to add these commands? In aroma-config or in script-updater?