yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Android Development] _Sofos_:
I've actually stopped messing with all those folders in internal Sdcard (correct me if i'm wrong but ringtones and notif sounds inside those folders don't they cause Audiomix wakelock when used?) and simply created a flashing .zip that deletes the whole default root media folder and replaces it with my alarms, notifications, lock unlock sounds etc.

In this way you can as well automatically delete other files and add yours (system apps, bootanimation etc).

I thought about using scripts to do that but since my way is working I haven't tried it yet.

The only thing that bugs me is that I cannot find a way to put the right permissions in the folder in which my files are in..

I.e. I've managed to get all my files inside system/media/audio/ui/ to get 644 permissions but I can't make ui folder to get 755 permissions.. and after the flash I need to change those 4 folders permissions manually.. not a big deal comparing to all the files I'm changing but still.. if anyone knows, please share.

delete("/system/media/audio");
package_extract_dir("system/media", "/system/media");
set_perm_recursive(0, 0, 0, 0644, "/system/media/audio/ui");

I've tried 0, 0, 0775, 0664 as well, then the files inside the folder are not getting the right permissions.

Sorry for the off topic btw but Rom is pretty much perfect so there's actually nothing to talk about. :P
[Galaxy S 4 i9505 Android Development] kantjer:
I have been thinking of using he script to remove unused tones and add my own.

If you go that route it will also solve the permission issue.

I will give it a try and let you know.

I never had the Audiomix wakelock.
[Galaxy S 4 i9505 Android Development] latino147:
Are there any known issues with loading from car-chargers?? I'm going on a holiday tomorrow by car :p

btw, what does the 'fast charging' method do exactly? Isn't the charging speed depandable on the amount of ampere the charger can output?
[Galaxy S 4 i9505 Android Development] kantjer:
Car charger always worked for me.

Fast just removes the restrictions that normally apply when charging via USB.

When you plug your phone into a PC, or other device that communicates with the phone, the phone uses a USB "Data mode", so to speak. In this mode, there is a 500ma maximum draw from the USB port.

When you plug your phone into a regular AC wall charger, there is no data connection. The phone then uses whatever amperage is supported by both the phone and charger (typically between 500ma and 2.1amps)
[Galaxy S 4 i9505 Android Development] Formhault:
I moved the sound files to alarms, ringtones and notifications... Better? :p
[Galaxy S 4 i9505 Android Development] latino147:
That's tricky as it's said that you can fry your motherboard on your PC when drawing more current out of it.
[Galaxy S 4 i9505 Android Development] Mistertac:
If you're traveling just grab the KToonsez kernel just in case... Charging with car charger definitely works with that one.

Could just be my particular charger as well. Who knows
[Galaxy S 4 i9505 Android Development] Mistertac:
Also for anyone else who loves this ROM but misses having the Theme Chooser check out some of Team Blackout's apps ... They have blacked out and cleared out http://xdaforums.com/showthread.php?p=41545802

Just wanted tiu share. I know some of you already know about TBO
[Galaxy S 4 i9505 Android Development] jarylw:
Real dark slim setting does most of it without needing much 3rd party stuff
[Galaxy S 4 i9505 Android Development] Mistertac:
Yea I understand that. Just nice having more options. For example though you can find a truly blacked out keyboard and messaging from TBO along with tons of apps I'm sure most would not even think about until they saw them listed.

Anyways.. Don't mean to chew up a ton of space here about my silly theming addiction lol
[Galaxy S 4 i9505 Android Development] Annunneo:
Great rom but how can I scale up the size of everythin, like the battery icon, signal icon etc.?
[Galaxy S 4 i9505 Android Development] Mistertac:
Change the LCD Density build prop from 370 to like 420... Unless there's a way I'm not aware of
[Galaxy S 4 i9505 Android Development] wonsky21:
There's dpi changer on the fly comng soon. No additional app needed. Till then you can use textdroider app.

GT-I9505 | SlimKat 4.4.2 UNOFFICIAL build 5.x by kantjer
[Galaxy S 4 i9505 Android Development] Annunneo:
Ok it's a great rom but it's just too small for me. :)
[Galaxy S 4 i9505 Android Development] kantjer:
The answer is in the Q&A and in both posts above you're last one. What more do you want :confused:
[Galaxy S 4 i9505 Android Development] wonsky21:
More, there's two answers BETWEEN his posts. Somebody refuses to read :)

GT-I9505 | SlimKat 4.4.2 UNOFFICIAL build 5.x by kantjer
[Galaxy S 4 i9505 Android Development] kantjer:
Here is an example of a script to remove unused sound files and backup up and restore custom sound files stored in system/media.

I have added a complete list of all sound files in the ROM and as an example commented the alarm files out (the won't be removed) This makes editing easy.

have fun.

#!/sbin/sh
#
# Script: /system/addon.d/93-mysounds.sh
# This script removes sound files and backs up and restores custom sound files after a dirty ROM flash:

. /tmp/backuptool.functions

list_files() {
cat << EOF
media/alarms/example.ogg
media/notifications/example.ogg
media/ringtones/example.ogg
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
#	rm /system/media/audio/alarms/Alarm_Beep_01.ogg
#	rm /system/media/audio/alarms/Alarm_Beep_02.ogg
#	rm /system/media/audio/alarms/Alarm_Beep_03.ogg
#	rm /system/media/audio/alarms/Alarm_Buzzer.ogg
#	rm /system/media/audio/alarms/Alarm_Classic.ogg
#	rm /system/media/audio/alarms/Alarm_Rooster_02.ogg
#	rm /system/media/audio/alarms/Cesium.ogg
#	rm /system/media/audio/alarms/Fermium.ogg
rm /system/media/audio/notifications/Adara.ogg
rm /system/media/audio/notifications/Alya.ogg
rm /system/media/audio/notifications/Antares.ogg
rm /system/media/audio/notifications/Antimony.ogg
rm /system/media/audio/notifications/Arcturus.ogg
rm /system/media/audio/notifications/Cricket.ogg
rm /system/media/audio/notifications/Fluorine.ogg
rm /system/media/audio/notifications/Hojus.ogg
rm /system/media/audio/notifications/Krypton.ogg
rm /system/media/audio/notifications/Mira.ogg
rm /system/media/audio/notifications/moonbeam.ogg
rm /system/media/audio/notifications/OnTheHunt.ogg
rm /system/media/audio/notifications/Pollux.ogg
rm /system/media/audio/notifications/Procyon.ogg
rm /system/media/audio/notifications/Proxima.ogg
rm /system/media/audio/notifications/Spica.ogg
rm /system/media/audio/notifications/Talitha.ogg
rm /system/media/audio/notifications/Tejat.ogg
rm /system/media/audio/ringtones/Aquila.ogg
rm /system/media/audio/ringtones/CANISMAJOR.ogg
rm /system/media/audio/ringtones/Carina.ogg
rm /system/media/audio/ringtones/FreeFlight.ogg
rm /system/media/audio/ringtones/Girtab.ogg
rm /system/media/audio/ringtones/Hydra.ogg
rm /system/media/audio/ringtones/Lyra.ogg
rm /system/media/audio/ringtones/Machina.ogg
rm /system/media/audio/ringtones/Orion.ogg
rm /system/media/audio/ringtones/Playa.ogg
rm /system/media/audio/ringtones/Pyxis.ogg
rm /system/media/audio/ringtones/Rigel.ogg
rm /system/media/audio/ringtones/Scarabaeus.ogg
rm /system/media/audio/ringtones/Solarium.ogg
rm /system/media/audio/ringtones/Themos.ogg
rm /system/media/audio/ringtones/Vespa.ogg
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
# Stub
;;
esac
[Galaxy S 4 i9505 Android Development] Formhault:
A flashable .zip to erase the /system/media/audio and copy over our own files with the proper permissions would be awesome!

Or just a backup script... so that /system/media/audio never gets lost after a weekly flash :D
[Galaxy S 4 i9505 Android Development] kantjer:
Good idea :laugh:
[Galaxy S 4 i9505 Android Development] Formhault:
Restores sound files from where? :confused:

---------- Post added at 04:51 PM ---------- Previous post was at 04:50 PM ----------

I don't know how to script. :(

But hey, I should've pressed F5 once more before deciding to post. LOL.
[Galaxy S 4 i9505 Android Development] kantjer:
look at the script, between the EOF statements are the custom sound files that need to survive a flash

media/alarms/example.ogg
media/notifications/example.ogg
media/ringtones/example.ogg

Push your custom sound files to system/media/xxxx and be done with it.
[Galaxy S 4 i9505 Android Development] Formhault:
Looks like I need to sleep...

---------- Post added at 04:55 PM ---------- Previous post was at 04:54 PM ----------

Scripts only know to remove specific files? Not entire folders? So to shorten that list of rm commands :p
[Galaxy S 4 i9505 Android Development] Bejda:
That's something i once considered to ask you Kantjer, if you were into or felt a need for users to do some build.prop edits after flash and maybe automatize it.

Personally i don't lol but i could try this on a rom where lcd density wasn't persistent at this moment:

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

I wanted it to be really automatic so i used 0.4.5 version (with the tweak.prop file on userspace) but put the tweakprop.sh file in the rom i was about to flash (system/bin/) with its updater-script edited accordingly.

No real need for build.prop edits imho (opinions may differs here,maybe some specifics needs for some dunno..) but on another side it's "inoffensive" : if no tweakprop file found on sdcard nothing happens.
[Galaxy S 4 i9505 Android Development] kantjer:
You can remove entire folders but why would you want to do that? You will need to place you're custom tones somewhere :silly:

This is a basic script every users can modify easily.

I'm not charging per rm command ;)
[Galaxy S 4 i9505 Android Development] wonsky21:
But what if I don't want backup any sounds, but want to remove ALL sounds, and place there my custom ones?
[Galaxy S 4 i9505 Android Development] kantjer:
Than you still want to backup you're custom sounds. There is no point in backup the stock sounds, they are included in the zip and will always be flashed.

You backup you're custom soundsthat are pushed to system/media/xxx and remove any stock sounds you don't need.
[Galaxy S 4 i9505 Android Development] brunodu91:
Mines sOund are in sdcard/ ringtones or notification or alarms....no in media folder! It will Run?

Envoyé de mon S4, via tapatalk 4 Vip .

Slimsaberkat 4.4.2 v5.6, alucard Kernel , buzz launcher , modem ET bootloader NC4.
[Galaxy S 4 i9505 Android Development] Formhault:
So, let me get this straight. Your script deletes every sound file inside alarms, ringtones and notifications system folder, then copies over to there the sound files from inside the alarms, ringtones and notifications folders from internal or external SD card?
[Galaxy S 4 i9505 Android Development] s3icc0:
more than in configuring build prop I am interested into configuring gps.conf - that is the file where you can do real magic (ok just some) with GPS, bad thing is that UI understand the GPS (A-gps) part but have no knowledge about the sensors part ...
[Galaxy S 4 i9505 Android Development] kantjer:
No you need to copy your custom files to system/media manually, but only once.

The system/media folder is wiped at every ROM flash so the script makes a backup of the custom sounds in systems/media as specified in the script and restores them again in system/media after the ROM flash (before first boot) and removes the stock sounds specified with the rm (remove) statement (those are restored by the ROM flash)
[Galaxy S 4 i9505 Android Development] kantjer:
I have had an in-depth look at the gps.conf a while ago, and it's already so optimized that there is nothing to gain.

(I have a GPS fix in 2 seconds)
[Galaxy S 4 i9505 Android Development] Bejda:
Not exactly,he had his own sounds to /system/media once and for all as long as the backup script keeps working.

Starting from here,at every flash these sounds (examples.ogg in the script) will be preserved under /system/media at every flash while others "rm declared" ones will be automatically deleted.
[Galaxy S 4 i9505 Android Development] kantjer:
exactly :good:
[Galaxy S 4 i9505 Android Development] _Sofos_:
Dirty flash : Overwrites pretty much everything in system/ which means that system apps you've uninstalled will come back, random bootanimation files, sound files that you've manually set inside system/media folders will be overwritten and you'll need to do all those changes back again from the beginning.

What the Script does: Only for the first time you have to manually put your ringtone/ui/alarm/notification etc files inside the correct folders with correct permissions. Then you have to edit the script Kantjer provided correctly accordingly to your files. That's pretty much it. Now the next time you'll dirty flash the script will keep those files intact. It won't overwrite.

What the flashing .zip file does : You have to flash it every time after dirty flashing a Rom. You can open the zip file and insert your files in the corresponding folders but you have to edit the config script as well to have it working correctly.

With both ways you can choose what to delete and what to install.

The main difference is that with the script those files you want to be installed after every dirty flash have to be already in your device in the correct folders etc plus you don't need to flash anything after flashing Rom while with the .zip file you always need to flash once more after flashing the Rom.

Both ways need script and config script editing to work correctly.

Edit: Sorry for my English, hope that makes sense. 2 days now btw with the latest beta v3 version, can't get any better honestly.

Edit2: I was really late :P
[Galaxy S 4 i9505 Android Development] s3icc0:
I admit that it is really fast ... anyway there are bunch of stuff I like to treat :) .. e.g. the Intermediating of the position ... so gps location before fix is not positioned to the last remembered one but according to local BTS is placed in your approximate location immediatelly (without the scrolling of the map) etc. ...

and I would love to understand the sensors part.

set

INTERMEDIATE_POS=1

and remove # and set distance to bts in meters (I use 12000 - it means it is looking for BTS not further than 12km)

ACCURACY_TRES=5000
[Galaxy S 4 i9505 Android Development] Bejda:
But typed slowly lol.

Hm another thing..for the road or the trash can lol, there's that AOSB rom a big cherry-pick'a'lot CM base that wasn't updated since about two months.

A new version is up since yesterday and it still include both non-intrusive in-call ui features,the "nice looking but not that much non-intrusive" one from OmniRom and the "non-intrusive for real" one from SlimTeam :laugh:

Maybe some hint for a way to re-add the first while keeping the second and both working without issues into Slim's Phone.apk there?https://github.com/AOSB/
[Galaxy S 4 i9505 Android Development] kantjer:
If you can find better GPS settings I can always try to change them in the source code.

I only need to find the location they are stored.
[Galaxy S 4 i9505 Android Development] kantjer:
Thanks I already had a look in the Slim gerrit.

They seem to have removed the commit that added the non-intrusive feature but the one disabling it is still there.

So I think revering that would do the trick. Now I only need to find the time.
[Galaxy S 4 i9505 Android Development] vagaBond07:
:thumbup:

pressing "Thanks" is faster than typing it.
[Galaxy S 4 i9505 Android Development] s3icc0:
well this is a good example of good setting .. I will try to find the guide I used to learn these and will let you know someday :)
[Galaxy S 4 i9505 Android Development] Formhault:
Oh, I get it.

So the script kicks in and backs up all the sounds in there.

ROM begins to wipe /system and write over it.

Script removes the sound files that the ROM just put in place.

Script restores the custom sound files.

Sorry :D and thank you.

---------- Post added at 07:41 PM ---------- Previous post was at 07:40 PM ----------

I was actually surprised to see that my phone is able to get a GPS lock with the satellites alone (no help from mobile data or network relays at all) in less than 10 seconds.

In comparison... my friend's Galaxy S4 running the latest & greatest TouchWiz was unable to get any lock with GPS alone.

---------- Post added at 07:43 PM ---------- Previous post was at 07:41 PM ----------

Reverting that => home button regains functionality when a call is coming and you're in a game, for example? Cause that's been making my brain twist... and not only me, I'm sure.

---------- Post added at 08:00 PM ---------- Previous post was at 07:43 PM ----------

What?! :confused: :confused: :confused:
[Galaxy S 4 i9505 Android Development] ParkerParker:
Second battery cycle on the latest test build and I'm getting excellent battery life. This rom has amazing speed and has been absolutely flawless for me...a big thanks to [MENTION=3306843]kantjer[/MENTION] for all your work on this
[Galaxy S 4 i9505 Android Development] Formhault:
I replaced the 'alarms', 'notifications' and 'ringtones' folders in /system with my own. At first, I could not see the sounds from the list (Complete action using - Media Storage), but after I set the folders' permissions to match the 'ui' folder permissions (which I did not replace), they were visible.

After a reboot... Unknown ringtone.

:(
[Galaxy S 4 i9505 Android Development] kantjer:
Are the custom ringtones still there?

If not it's a problem with the script (incorrect sound file names for example) or the permissions.

EDIT: if that even happens after a reboot without a ROM flash you have an other issue.
[Galaxy S 4 i9505 Android Development] kantjer:
[MENTION=4129455]Formhault[/MENTION], you are going to love the next kernel release ;)
[Galaxy S 4 i9505 Android Development] Formhault:
I tried your script, [MENTION=3306843]kantjer[/MENTION].

Placed it in the addon.d folder, set the permissions accordingly... and flashed the new build (the test build from yesterday). 'notifications' and 'ringtones' folders from /system are empty, 'alarms' has the stock sounds (from the ROM flash) in it.

Even so... how the hell is this possible :eek: :eek: :eek:

Ringtones / Notifications = it sees the sounds I HAD THERE.

Alarms = it sees the sounds that the ROM flashed.

On my internal SD card, the media folder is gone - I deleted it. So is the case for the external SD card - the sounds are in a folder named "soundsxkxkjxaisjxkahrchachajxhjahct" so there's NO WAY Android can detect that.

:eek:
[Galaxy S 4 i9505 Android Development] kantjer:
Did you edit the top section with the example.ogg files?

You need to replace those with the names of the custom sound files you wan to keep.
[Galaxy S 4 i9505 Android Development] Formhault:
Oh. Thought so. Yeah. No, I didn't. F***. This is gonna take a while :silly:

You see, this stupid HR b**ch got me so mad earlier today that I can't seem to think straight ever since.
[Galaxy S 4 i9505 Android Development] wonsky21:
kantjer's script works for me without issues...
[Galaxy S 4 i9505 Android Development] Formhault:
Turns out all sound files must have matching permissions like the ones before. Which is going to be a pain in the a** to edit one by one :(

To test, I copied Girtab.ogg in the /system/media/ringtones folder and set the permissions accordingly. Reboot => it is still remembered.
[Galaxy S 4 i9505 Android Development] kantjer:
It looks you are correct. I have applied the 2 settings and after a reboot now managed an indoor fix in only 2 seconds. That normally would take about 10 seconds.
[Galaxy S 4 i9505 Android Development] wonsky21:
All my custom sounds have 660 (-rw-rw----) permissions, and I didn't touch it after pushing it to system/media/xxx...
[Galaxy S 4 i9505 Android Development] Formhault:
del
[Galaxy S 4 i9505 Android Development] vagaBond07:
Is there a way that we cam do custom button action on lockscreen, like Activate Torch by pressing Home Button?

pressing "Thanks" is faster than typing it.
[Galaxy S 4 i9505 Android Development] wonsky21:
Wow, now it is a real mess...

What's more, sounds are not what they are supposed to be. Under the proper name is a different sound...

GT-I9505 | SlimKat 4.4.2 UNOFFICIAL build 5.x by kantjer
[Galaxy S 4 i9505 Android Development] s3icc0:
Pure rocket science ... I really dont know why this is not enabled by default

Maybe we will see this enabled in your next build :)
[Galaxy S 4 i9505 Android Development] Formhault:
If I manually copy them over with ES File Explorer, they get -rwxrwx---. They must be -rw-r--r--.

I used Terminal Emulator and did the following:

su
mount -o remount,rw / system
chmod -R 644 /system/media/audio/alarms
chmod -R 644 /system/media/audio/notifications
chmod -R 644 /system/media/audio/ringtones

That will set the permissions of the folders and the files inside them to -rw-r--r--. Now, you must change the folders' permissions to dwxr-xr-x (do it manually, with ES File Explorer -> all READ and EXECUTE boxes checked, only the 'Owner' box for WRITE checked).
[Galaxy S 4 i9505 Android Development] Bejda:
[MENTION=5528810]Jimsilver73[/MENTION]

http://xdaforums.com/showpost.php?p=53155795&postcount=2841

Take the 6.0.0.r23 snapshot version on the dropbox link, it's ok now ;)
[Galaxy S 4 i9505 Android Development] Jsilver73:
If you use xposed there is a module called 'complete action plus' that may help, works a treat for me :D

---------- Post added at 06:52 AM ---------- Previous post was at 06:43 AM ----------

+1

And no hurry, don't want to overload you or come across all demanding or anything, just another one to add to the list:

The old 'non intrusive in call ui' please :)
[Galaxy S 4 i9505 Android Development] jarylw:
Is it only me? Because I'm still seeing SlimSaber-jflte-4.4.2.build.5.2-UNOFFICIAL-Alucard-20140521-0941.zip instead of 0523​
[Galaxy S 4 i9505 Android Development] kantjer:
In this case build date and release date are not the same.

Since it was the first release the build was initially only given to a few users to test before general release.
[Galaxy S 4 i9505 Android Development] kantjer:
Sure you can backup your GPS setting by adding GPS.conf to your backup script. But why would you even want to change it. I did some tests yesterday with stock GPS.conf file and had a indoor fix in 8 sec. and outdoor in only 2 sec. Not much to win there.
[Galaxy S 4 i9505 Android Development] latino147:
Mmmm, honestly it has been a standard action i did after flashing since the S1...

Next time I'll try not to change it :)
[Galaxy S 4 i9505 Android Development] kantjer:
Thanks, you are partly to blame mate.

I remember our joint S2 days where you shared you're private RootBox builds with me and I thought "wow, I wish I could do that" :laugh:

Then some user here started to temp me to try do something similar as [MENTION=1228651]fusionjack[/MENTION] did with his great ROM for the S2 and that's how it all started.

I'm still a long way from calling myself a developer, but learning every day.
[Galaxy S 4 i9505 Android Development] Lazy79:
Flashed on the device of my Dad. He´s happy, so I am happy lol running really smooth! Everything works and seems a bit more fluid although could be placebo but who cares when it just feels snappy and fast? Thank you very much! :) One small request.. could you add a Build or Date tag to the threat title? It just would make it easier to monitor the ROM for any kind of updates in case you have time and there is a need for an update and so on. :) Thank you very much for this snappy ROM!
[Galaxy S 4 i9505 Android Development] John_wba:
Hello, nice ROM, looking forward to testing it, I have a question though does it use the speed up boot on multicore devices cm commit? And does it already include the optimised dalvic patches? Cheers
[Galaxy S 4 i9505 Android Development] kantjer:
I will think of something for the next release.