yashsingh1/xdaforums huggingface dataset:
[General Omni Discussion] RaphaDroid:
Sorry, didn't see your post. I'll reupload them tonight or maybe tomorrow early.

Enviado de meu XT1097 usando Tapatalk

EDIT:

As per I can see, Dev-Host has changed a lot... And suddenly, they've deleted almost all my stuff! o.O

My Dev-Host stuff:

The folder where these zips used to be:

Unfortunately, this PC where I'm typing from is new and I don't have the backups anymore... :,(
[General Omni Discussion] Christendom...:
Yes, please update those broken links.

Thank you
[General Omni Discussion] RaphaDroid:
I don't have the zips anymore... If people that downloaded them could upload them back, I'd fix the links... Otherwise I'll have no choice but close the thread... I don't even have where to test the zips anymore... :/

Enviado de meu XT1097 usando Tapatalk
[General Omni Discussion] justmpm:
Thread closed - OP request.
[General Omni Discussion] harrybarracuda:
Brilliant mate, thanks for that and Merry Xmas to you and all the other kind souls who help out us retards!

:)
[General Omni Discussion] rockambole:
does it work if I flash the ROM manually?
[General Omni Discussion] RaphaDroid:
Yup. But on manual flashes the FlashAfterUpdate folder is ignored, then you'll have to flash each zip manually too.

Sent from my
[General Omni Discussion] rockambole:
Ok, the question was about the FlashAfterUpdate folder : )

Sent by osmosis
[General Omni Discussion] Entropy512:
Look at the example backup scripts in /system/addon.d/

Create one that backs up the files xposed modified.

I'm beginning to think that adding the FlashAfterUpdate folder was a bad idea, since there are better solutions for most use cases than putting ZIPs in here.
[General Omni Discussion] doctor_droid:
[MENTION=591147]Entropy512[/MENTION] - sir will u plz look at open delta ... as said by xplodwild..the updates would be delta ones. But instead it downloads the entire rom zip

Delta updates are useful (for people wid low bandwith like me )
[General Omni Discussion] Entropy512:
um.... I know what opendelta is - in fact omni is the first firmware project to integrate it! Omni OTAs have been using OpenDelta since the very first nightly that supported OTA updating
[General Omni Discussion] doctor_droid:
Sir isnt it possible to download only the changes... Small updates... ? Like cyandelta...
[General Omni Discussion] ahrion:
Request: Remove dsp manager and launcher3
[General Omni Discussion] RaphaDroid:
Here you go!

Del_DSPManager

Del_Launcher3
[General Omni Discussion] doctor_droid:
...eek sorry wrong place ..apologies
[General Omni Discussion] Entropy512:
That is EXACTLY WHAT OPENDELTA DOES!
[General Omni Discussion] RaphaDroid:
[MENTION=4923920]doctor_droid[/MENTION], [MENTION=591147]Entropy512[/MENTION] was talking about the efficiency difference between the "FlashAfterUpdate" method and a simple "addon.d" script to execute the tasks we want.

Sent from my
[General Omni Discussion] miketino:
[MENTION=5016813]RaphaDroid[/MENTION] could one of these flashable packs be made to remove 'movie studio' ?
[General Omni Discussion] RaphaDroid:
Here you go. :)

http://d-h.st/nub

I also made template zips, for people interested in make their own zips. :)

Both with instructions inside their zips.
[General Omni Discussion] miketino:
Aaaah cheers dude, awesome :highfive:

---------- Post added at 07:28 PM ---------- Previous post was at 07:08 PM ----------

@RaphaDroid would you look over a script i just made to delete email and voice dialer if i link it? I'm scared of breaking things haha
[General Omni Discussion] RaphaDroid:
Everything you need is to change the examples in the template for the apks you want to delete. If the zip doesn't work, it'll only abort flashing. You're not gonna break anything. :)

But if you insist, you can post the code here and I'll help you.

Sent from my
[General Omni Discussion] miketino:
I've got this

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

delete(
"/system/app/email.apk",
"/system/app/exchange2.apk",
"/system/priv-app/voicedialer.apk");

run_program("/sbin/busybox", "umount", "/system");

but it doesn't seem to work haha, thats the updater-script file by the way
[General Omni Discussion] RaphaDroid:
The file names might be miswritten. Check out for upper and lower cases.

You may use the TWRP fail return to locate and fix your problem.

Sent from my
[General Omni Discussion] Pons:
Yep, it's case sensitive. I don't think I've seen an app start off with a lower case before. Haven't looked, granted, but still.
[General Omni Discussion] ejstans:
Mounting ExFAT SD cards

If it's of any help I use the attached ZIP file for my Galaxy S3 to add an ExFAT SD card mounting script in /system/etc/init.d

I use Boeffla Kernel with ExFAT support on and init.d script handling set to ON

All credit for the init.d script goes to this post:

http://xdaforums.com/showpost.php?p=48550827&postcount=73

The Flash update-script sets the contents of init.d to non executable, and copies in the mount scrip.t

It's my first attempt at a flashable zip, so I'm sure it could do with improvements, but it works for me.

Please feel free to make changes to the zip, just post the results!
[General Omni Discussion] RaphaDroid:
Added! :good: :good:
[General Omni Discussion] DeathMetal_i9000:
This looks really useful and interesting because I personally have some problems with the included DashClock.

To get rid of it I removed it with Titanium Backup and installed the Play Store version. To keep this from now on my plan is to use the solution described here. Until now I

downloaded the "TEMPLATE_DELETE.zip"

opened the updater-script within the .zip without extracting

changed the template into

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

delete(

"/system/app/DashClock.apk"

);

run_program("/sbin/busybox", "umount", "/system");​

saved changes in the zip file

placed the file in \OpenDelta\FlashAfterUpdate\

unchecked "Secure" in "System Updates"

What do you all think, will it work and do what I want it to do? Will I keep the Play Store version of DashClock even after updating with OpenDelta? I also would like to use it on my Nexus 10 and the S4, can I use the same zip for both devices? I'm a complete beginner in this stuff, any help is highly appreciated :)

EDIT:

Just tested what I did with the update to 20140103, unfortunatelly it does not work, DashClock 1.5 is back, can not be updated in Play Store, crap. Help, please :)
[General Omni Discussion] _Raziel666:
In order to prevent the newest DashClock to be uninstalled in every Omni update, you can add a .sh script in the /system/addon.d directory. Something like this:

#!/sbin/sh

. /tmp/backuptool.functions

list_files() {
cat <<EOF
/app/[B]DashClock.apk[/B]
EOF
}

case "$1" in
backup)
list_files | while read FILE DUMMY; do
backup_file $S/"$FILE"
done
;;
restore)
list_files | while read FILE REPLACEMENT; do
R=""
[ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
[ -f "$C/$S/$FILE" ] && restore_file $S/"$FILE" "$R"
done
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
# Stub
;;
esac

Save this as 90-misc.sh or something like that, put it on /system/addon.d directory, change the attributes to -rwxr-xr-x (or 755), change the owner/group to root and you're good to go! ;)
[General Omni Discussion] DeathMetal_i9000:
OMG, once again I have no idea what I'm going to do but I'll try it with tomorrow's nightly release, THANKS!

Gesendet von meinem Nexus 10 mit Tapatalk 4
[General Omni Discussion] RaphaDroid:
That should have worked :confused:

Did you unfreeze the app in TB before the update?

Sent from my
[General Omni Discussion] DeathMetal_i9000:
No, not before updating and trying the solution with the zip file I made. Didn't try it with the .sh script _Raziel666 posted above, will test this one today when the nightly builds are updated. Though I would be happy if the zip would work because at least I understand how it works, the script is like from another world for me.

Gesendet von meinem GT-I9505 mit Tapatalk
[General Omni Discussion] DeathMetal_i9000:
Hi _Raziel666,

this doesn't work either :(

I have changed the permission as I was told by you, installed the update but the odd DashClock is back.

As I do not want to waste your time I'll stay with the manual solution and delete / reinstall it after the updates, maybe some day the guys from Omni Rom will update or even remove it. Thanks for your help!
[General Omni Discussion] moneyolo:
Dashclock Delete Flashable ZIP

Flashable zip. Put in Flash after Update folder. Not tested to work; sorry not running Omni right now.

It deletes Dashclock. Don't blame me if something goes wrong. Again not tested. LOL. Attached the zip. Have fun flashing. :good:

Tell me if it works also.
[General Omni Discussion] Pons:
Not going to work (at least based on my homemade build). It's DashClock.apk, not Dashclock.apk. That's the only real issue.

The additional/unused mounts and unmounts don't do anything (probably off a template), nor is it odexed. This won't hurt, but it's unneeded.
[General Omni Discussion] RaphaDroid:
I'll post a fixed one.

Gimme 5 minutes. :)

EDIT: Here: http://d-h.st/iJT
[General Omni Discussion] moneyolo:
I didn't have the build in hand and can't download it right now so didn't know the actual file name. Yeah its based of OP template and another template. Thanks for your reply. I will change it once I get faster internet; repo syncing.. Thanks!
[General Omni Discussion] zormij:
Thanks for the zips... The Exposed Framework zip doesn't work on my S4 GT-I9505.. However the CM calc and the Apollo app remover works fine
[General Omni Discussion] cybrid3:
These are excellent. I always change my dpi to 326. Is there a zip that could be created to set this? Or is there a way of permanently setting it so it doesn't change on updates?
[General Omni Discussion] RaphaDroid:
How do you make the changes? On build.prop? I don't know if it's possible to modify the build.prop from a flashable zip... :?

Sent from my
[General Omni Discussion] DeathMetal_i9000:
This one works, thank you!

Mine just had one comma too much after the file name, interesting how much difference it makes ;)

Gesendet von meinem GT-I9505 mit Tapatalk
[General Omni Discussion] cybrid3:
Yeah I modify the build prop. I seem to remember a mod you could do to local.prop? Or something like that which would keep density after a flash
[General Omni Discussion] RaphaDroid:
Here's what I found:

http://xdaforums.com/showthread.php?t=2405288

http://xdaforums.com/showthread.php?t=1434037

https://play.google.com/store/apps/details?id=com.marutian.dpichanger

Sent from my
[General Omni Discussion] Midomad:
Very useful :thumbup:

Thanks for sharing.

Envoyé depuis mon Nexus 4 avec Tapatalk
[General Omni Discussion] cybrid3:
The first link is exactly what I wanted so i will test that out. Thankyou
[General Omni Discussion] dt192:
Another way

Hi guys I've been doing something similar, except I adapted a script by jaiiscool made for changing DPI.

I have attached the file with a blank script file inside it for you guys to use, to edit the script just extract FlashAfterUpdate.sh from the run folder of the zip, edit it to your liking and add it back to the zip overwriting the original.

The script I use is as follows, but you will need to adapt it to your needs.

#!/tmp/busybox sh

# Change DPI to 192
/tmp/busybox sed -i 's/ro.sf.lcd_density=.*/ro.sf.lcd_density=192/g' /system/build.prop

# Add some options to build.prop, \n is a new line
/tmp/busybox echo -e '\ndebug.sf.nobootanimation=1\nro.config.hw_quickpoweron=true\npersist.sys.shutdown.mode=hibernate\ndev.bootcomplete=0\nro.ril.power_collapse=1\npm.sleep_mode=1\nwifi.supplicant_scan_interval=150\nro.mot.eri.losalert.delay=1000' >> /system/build.prop

# Delete boot animation
/tmp/busybox rm /system/media/bootanimation.zip

# Delete stock alarms, notification sounds and ringtones, i keep the three i use on my external SD Card e.g. extSdCard/audio/notifications/Talitha.ogg
/tmp/busybox rm -rf /system/media/audio/alarms/*
/tmp/busybox rm -rf /system/media/audio/notifications/*
/tmp/busybox rm -rf /system/media/audio/ringtones/*

# Delete unwanted apps
/tmp/busybox rm /system/app/VisualizationWallpapers.apk
/tmp/busybox rm /system/app/HoloSpiralWallpaper.apk
/tmp/busybox rm /system/app/NoiseField.apk
/tmp/busybox rm /system/app/LiveWallpapers.apk
/tmp/busybox rm /system/app/MagicSmokeWallpapers.apk
/tmp/busybox rm /system/app/Galaxy4.apk
/tmp/busybox rm /system/app/Browser.apk
/tmp/busybox rm /system/app/VideoEditor.apk
/tmp/busybox rm /system/priv-app/Launcher3.apk
[General Omni Discussion] bleggy:
how about hangouts removal?
[General Omni Discussion] RaphaDroid:
Doesn't it come with Gapps? I'm going to work now, I will do it later... But, if you are hurry, you can always use the Templates in op.

It's pretty easy to do. :)

Sent from my
[General Omni Discussion] dt192:
yes it is part of gapps under /system/app/Hangouts.apk
[General Omni Discussion] se1988:
For those who use Cerberus as system app you can use the zip on their website https://www.cerberusapp.com/download/cerberus.zip or https://www.cerberusapp.com/download/cerberus_disguised.zip

Cerberus is the best anti-theft app ever. Cerberus on google play
[General Omni Discussion] an0n981:
Is it possible to create an update zip for the AFWall startup data leak option? I've tried creating a zip using zipme of the /etc/init.d/afwallstart. But it does not work
[General Omni Discussion] RaphaDroid:
Sorry for the ignorance but, what is this?

Sent from my
[General Omni Discussion] an0n981:
Afwall has an option to prevent data leaks during boot (it basically blocks all traffic during boot until afwall can apply the iptables). For this it places the file afwallstart in etc/init.d/. After flashing nighty this option is no longer active until afwall reinstalls the startup script

Edit: this is the content of the script:

#!/system/bin/sh

if [ -e /data/data/dev.ukanth.ufirewall/app_bin/iptables ]; then

path="dev.ukanth.ufirewall"

elif [ -e /data/data/dev.ukanth.ufirewall.donate/app_bin/iptables ]; then

path="dev.ukanth.ufirewall.donate"

else

log -p i -t afwall "AFWall doesn't seem to be installed."

exit

fi;

/data/data/$path/app_bin/iptables -P INPUT DROP

/data/data/$path/app_bin/iptables -P OUTPUT DROP

/data/data/$path/app_bin/iptables -P FORWARD DROP
[General Omni Discussion] RaphaDroid:
You would need to mount etc for that. Does busybox work for mounting etc partition? How was your flashable script?

Sent from my
[General Omni Discussion] an0n981:
This is the script that ZipMe created

show_progress(1.000000, 0);

ui_print("Mounting filesystems...");

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

set_progress(0.100000);

ui_print("Extracting files...");

package_extract_dir("etc", "/etc");

set_progress(0.300000);

ui_print("Setting permissions...");

set_perm(0, 0, 0700, "/etc/init.d/afwallstart");

set_progress(0.400000);

set_progress(0.500000);

set_progress(0.700000);

# Unmounting filesystems...

run_program("/sbin/busybox", "umount", "/etc");

set_progress(0.900000);

set_progress(1.000000);

ui_print("****************************************");

ui_print("* Install Complete! *");

ui_print("****************************************");

I can't remember exactly what didn't work, it's been a few weeks since I tried it, didn't really think about it again til I came across this great thread
[General Omni Discussion] Pons:
Well, that script lied to you. etc is located at /system/etc, not just /etc and you probably want the whole path at /system/etc/init.d/ for that file.
[General Omni Discussion] an0n981:
You sir are a genius. I will update the zip and report back after the next nightly.
[General Omni Discussion] an0n981:
The zip now works. Once I get to my pc I will upload it here in case anyone is interested.
[General Omni Discussion] Pons:
Just so you know why it was wrong

$ ls -la / | grep etc
lrwxrwxrwx root root 2014-01-07 11:44 etc -> /system/etc

because it was a link, and not the actual folder.
[General Omni Discussion] an0n981:
As promised the AFWall Startup Data Leak script for the donation version of AFWall. Once I know the package names for the free and xda versions I can also upload the script for them as well.

Edit:script for the free version also added.
[General Omni Discussion] RaphaDroid:
Added! :highfive:
[General Omni Discussion] cybrid3:
This looks interesting. All I would do is literally only change where you have 192 to 326 and thats it?
[General Omni Discussion] dt192:
if you only wanted to change DPI then the full file would read

#!/tmp/busybox sh
/tmp/busybox sed -i 's/ro.sf.lcd_density=.*/ro.sf.lcd_density=326/g' /system/build.prop

but you can pick and choose whatever you want to put in there
[General Omni Discussion] DJ BlackEagle:
You don't need to update build.prop always again.

I have set it to 240 and I never use update.zip or change it.

Use the /data/local.prop

Write this into it:

qemu.sf.lcd_density=240

Owner of the file: root (0)

Group of the file: root (0)

Permission: 0644 (rw-r--r--)

You must set this value again, if you make a full wipe (or on only wipe /data). For this, you can make update.zip file.

The settings there, overwrite the settings in build.prop .

I prefer always to use local.prop file.

---------- Post added at 12:26 AM ---------- Previous post was at 12:22 AM ----------

Your free afwall script is not the same from afw free.

I use the free version
[General Omni Discussion] an0n981:
Please send me the file /system/etc/init.d/afwallstart and I will have a look and recreate the zip
[General Omni Discussion] DJ BlackEagle:
Hi,

in the attment is the script and a screenshot (so you see I use the free version).
[General Omni Discussion] an0n981:
Please use donation version linked in the OP, it will work for both free and donation [MENTION=5016813]RaphaDroid[/MENTION] Please delete the link for the free version from OP. I will update my post when I am back at the PC.
[General Omni Discussion] RaphaDroid:
Ok. I'll make it when I get to my pc as well. :)

Sent from my
[General Omni Discussion] DJ BlackEagle:
Hi,

Yeah, I have used it already, because I saw this are the same with the free version.
[General Omni Discussion] chuSmu:
Hi,

I think it would b awesome if there were scripts to install the v4a driver.

Does anyone know if that's possible?

chuSmu
[General Omni Discussion] joaoennes:
+1 I agree
[General Omni Discussion] RaphaDroid:
How is the installation process? We can just extract the desired files from the apk, but I can't open the classes and read the code.

Sent from my
[General Omni Discussion] chuSmu:
Not sure that's what u want to know, but after every flash the app asks you to install the audio driver (in v4a fx u can choose from "super audio quality", "batterie saving" and a third one, for v4a xhifi it's similar). After the installation process you have to reboot.

The app(s) is/are actually based on DSP Manager, if i remember correctly.

If you need more info on the app:

http://xdaforums.com/showthread.php?t=2191223

http://vipersaudio.com/blog/

If you need to know anything else feel free to ask, i'll answer ... if i can ^^

chuSmu
[General Omni Discussion] Pons:
Just glanced at it, and all you need to do really is the steps here: http://vipersaudio.com/blog/?page_id=127
[General Omni Discussion] whatsek:
Thank you, it works perfectly! Never got the dpi change working with a flashable zip, but this is a better solution!

Verstuurd vanaf mijn Find 5 met Tapatalk
[General Omni Discussion] dt192:
Easier and better are two different things, this is fine if you only want to change the DPI, but most people flashing nightlies would also want to remove apps, such as the launcher and browser.

For anybody having issues with flashing zips, you can always put a script in your /system/addon.d folder and set permissions to 0755, for example:

98-dpirestore.sh

#!/sbin/sh
# Change DPI script by dt192

# Set DPI here
DPI=192

case "$1" in
backup)
# Stub
;;
restore)
# Amend build.prop
sed -i "s/ro.sf.lcd_density=.*/ro.sf.lcd_density=$DPI/g" /system/build.prop

# Delete default browser
rm /system/app/Browser.apk
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
# Stub
;;
esac
[General Omni Discussion] cybrid3:
Wow. A zip installing the viper audio driver automatically and my rom experience is complete. Would love that
[General Omni Discussion] chuSmu:
I think this is for developers who want to integrate it into their rom by deafault.

If you do that as a normal user, a flash would delete the v4a app/s as they are system

apps. Just tried it:

View attachment 2508959

Or did i do a mistake along the way?
[General Omni Discussion] dt192:
is assets/libv4a_fx/xhifi_xxx.so the driver?
[General Omni Discussion] chuSmu:
Unfortunately i don't know that.. Sorry
[General Omni Discussion] dt192:
ok having had a play about with the app, as far as I can tell installing the driver just copies the appropriate .so file to /system/lib/soundfx/ and adds the entries to the audio_effect.conf under libraries{ and effects{ as described in the link you gave, I have a feeling an addon.d script would be better for this than a flashable zip file.... I'm still looking at it
[General Omni Discussion] dt192:
This is working for me, save it as 90-v4a.sh, put it in your system/addon.d folder and set its permissions to 0755

obviously you use it at your own risk etc.
[General Omni Discussion] chuSmu:
Gonna try it tomorrow with the latest nightly. I'll report back how it works!

Thanks for your efforts!
[General Omni Discussion] chuSmu:
Hi again,

tried this method with v4a installed as a regular app and as a system app - both didn't work for me.

Where could I have gone wrong? Are there some conditions that have to be met I am not aware of?
[General Omni Discussion] dt192:
This worked fine for me again today, I've got it installed as a user app...

check your system/lib/soundfx/ to see if you have libv4a_fx_gb.so, libv4a_fx_ics.so or libv4a_fx_jb.so

then check your system/vendor/etc/audio_effects.conf and system/etc/audio_effects.conf and see if they reference v4a under libraries{ and effects{

then flash your phone again and before opening the 4va app just check all those things again and see if anything is there or if its all missing

also do you have the superSU backup script in your addon.d folder? if so is that working to restore superSU ok?
[General Omni Discussion] chuSmu:
I have supersu backupscript in the addod.d folder and it works just well. In checked the audio_effects.conf and soundfx folder,

but everything seems to be ok:

View attachment 2511151 View attachment 2511152 View attachment 2511153

Is there a difference from flashing manually via twrp or using the "system update" function under "settings" despite the fact that

flashafterupdate.zips aren't auto-selected? I had v4a installed as a system app and it didnt work for me - so i reinstalled it as a user-app

and reflashed manually. Might that have affected it in any way? I don't think it does, cause it doesn't have to anything with the driver, but I am

not too firm with these things..

Well anyway.. thanks for your effort!

I'm kinda curious how these things work, so I think I'd be awesome if you could explain what yout script exactly does. But don't bother if it's

just a hassle.
[General Omni Discussion] dt192:
try this:

It being a system or user app shouldn't make a difference to the backup script working, flashing omni manually in TWRP still runs the backup script so it's fine to test like that.

all it does is backup and restore the files in the file list, then I added a bit to check what, if any file have been restored and then add the needed settings into the audio_effects.conf files
[General Omni Discussion] chuSmu:
Sorry.. but still doesn't work for me :/

If there is anything else I can try - I'd gladly do it.

If anyone else has tried this.. would be nice if you could post your results!

edit: works now like a charm!
[General Omni Discussion] edd247:
Can I put a custom kernel in this folder, or is that not recommended?
[General Omni Discussion] Ferri64:
I'm not sure if it's recommended, but I always have there the latest flashable zip of Franco's kernel and I haven't had any issue. Actually, I've configured FKU to download the zips there.