Can't change permissions in root dir anymore? - General Questions and Answers

New phone, Pixel 5. Trying to disable the annoying shutter noise when a picture is taken. Phone is rooted (and confirmed with rootchecker), can access the root dir. Found the camera sound file (to replace with silent audio file).
No file browser I've tried (5+ of them) will let me change the permissions so I can write to the folder/file. It's moved in Android 11 to root/product/media/audio/ui
Any way to change the permissions there?

Related

[Q] Unlock.ogg/Lock.ogg Optimus F6 not changing

Phone:
LG D500 Optimus F6 Black
Rooted - tested.
Used apps:
Root Browser.
Droid Explorer.
I'm fairly familiar with rooting. That's done.
Okay, so I have manually removed the original .ogg files from root/system/media/audio/ui and replaced with my own.
They all seem to work fine except for the Lock.ogg and Unlock.ogg files.
I have set permission correctly on the replacement ogg files.
Even if I simply remove them without replacing. Locking and Unlocking still plays the original sounds.
Anyone got any ideas where I can find the real copies of these two ogg files?
Perhaps it's cached?
Is there a debug program I can use to track down the sound file?
Rebooted plenty of times.
I also disabled from the phone's Lock Settings and even changed it to a key combination, and repeated my steps. But no luck.
---------------------------------------------------------------
Another thing that caught my attention. I can't seem to find the volume slider ogg (if there is any) - the sound the phone makes when you press on the UP or DOWN volume buttons. Could be that the unlock and lock ogg files are located along the volume slider ogg?
Any help is appreciated, thanks!

No Shutter Sounds [Root]

Got the silence files from http://forum.xda-developers.com/showpost.php?p=66258646&postcount=13
You DO NEED ROOT but its simple.
There are 6 files that need to change in system/media/audio/ui
af_failure.ogg
af_success.ogg
cam_snap_0.ogg
camera_click.ogg
camstart.ogg
camstop.ogg
With a root file manager (root explorer, etc) rename those 6 files to .old and replace with the files in the zip provided. Then just FIX PERMISSIONS and reboot.
Very nice find.
For those without root, i'll add this: I was playing with a camera app last night that was recommended somewhere, cymera maybe? And in it, it had an option to go silent. I turned all my volumes up outside the app, went in, took a picture, zero sound. So that might be an option for others.
LRiley said:
Got the silence files from http://forum.xda-developers.com/showpost.php?p=66258646&postcount=13
You DO NEED ROOT but its simple.
There are 6 files that need to change in system/media/audio/ui
af_failure.ogg
af_success.ogg
cam_snap_0.ogg
camera_click.ogg
camstart.ogg
camstop.ogg
With a root file manager (root explorer, etc) rename those 6 files to .old and replace with the files in the zip provided. Then just FIX PERMISSIONS and reboot.
Click to expand...
Click to collapse
Thx, works good.
I have the T-Mobile variant and if my phone is on silent, there is no shutter sound.
I believe this is a way to silence the shutter sound without having to add the step of muting your phone.
CharlzO_2000 said:
I believe this is a way to silence the shutter sound without having to add the step of muting your phone.
Click to expand...
Click to collapse
correct
Hmm so I'm trying to figure it out but no luck yet. I have the sounds disabled in camera except one. When you long press the take pic button. It does the multiple shots til you let go, the click sound is there. Any idea which sound file that is?
Sent from my LG V20 using XDA Labs

[GUIDE] [ROOT] Force Mute / Shutter Sound OFF in Google Camera 4.4+ [new]

Force Mute / Shutter Sound OFF in Google Camera
Google recently added option in Google camera to Mute Shutter sounds. "• Mute Camera Shutter Sounds - Turn shutter sounds off from Settings (this option is only available in some locations)."
But this option didn't show up for most users/countries.
Here is a way to force enable the Mute option.Need not delete audio files.​
REQUIREMENTS:
latest Google Camera
root
any root explorer like fx,solid explorer,es,..
STEPS:
With any root explorer navigate to data/data/com.google.android.GoogleCamera/shared_prefs
open file com.google.android.GoogleCamera_prefs.XML
find line pref_camera_sounds_key
Change 1 to 0
Save :good:
No more damn sound!
​
I tried this on my Pixel 3 XL, it works temporarily, but every time settings button is pressed within the camera app, this number resets back to 1.
Next I tried magisk module "Disable screenshot and camera sounds" by ant9000 (updated on Nov 25 2018), but that didn't work at all (looking at the module, it replaces sound files with silenced sound files, but that method has not worked for a while, since Nougat release. Google made sounds part of the APK, the seperate files don't do anything ~ https://forum.xda-developers.com/showpost.php?p=72650754&postcount=3 )
Next I tried magisk module "MuteCameraSounds" by knightbat (updated on Oct 25, 2018), but that didn't work either (looking at the module, it also just replaces sound files)
Next I checked magisk module "Camera video shutter sound off" by dr.bathman (updated on Oct 20, 2017), but that one is too out of date to be usable and looking at it, also just tries to replace sound files.
Next I tried the method where removing the sim card, then restarting the phone, should make the sound toggle appear in the camera app preferences (suggest here 20 days ago https://redd.it/a6n1w4 ). But that didn't work either.
Next I tried to mess with permission and owner settings for the com.google.android.GoogleCamera_prefs.XML to see what would happen if I forbid the app from writing to file. But even after changing the file to read only and changing the owner of the file from app_10113 (camera) to root, and removing "change system settings" permission from the camera app, camera STILL somehow manages the change file owner back to itself and file permissions back to writable, and change the pref_camera_sounds_key back to 1.
Only solutions at the moment, other than not ever accessing camera preferences, appear to be writing a custom app that either
1) Upon activation of the app, changes the pref_camera_sounds_key to 0 and then completely shuts down the camera (to force it to read from the prefs file upon activation)
2) App that actively monitors if the prefs file changed, and if it did, quickly edit in that 0.
If this were windows, I'd whip up an ahk script that does this in no time, but I have zero experience creating android apps unfortunately, and no time at the moment to learn it.
I also tried to edit the official google camera .apk by replacing camera shutter sound ogg files with silent files, but this breaks the cryptographic signature of the apk, making it impossible to install the apk. Signing such apk with a new signature is likely possible, but beyond my skill level.

Android Permissions - Not able to switch off

Hi all,
Just out of curiosity. I have a 3rd party app on my phone (not available on the Google Play Store, obviously)
I am currently running Android 7.0. When accessing the settings - - > apps--> theApp--> permissions where one can adjust the permissions on demand, I noted that the "Telephone" permission for this specific app cannot be switched off.
When selecting to switch it off there is the usual prompt that the app won't work as intended and I "continue anyway". The slider goes into the off position. Then when clicking back and then opening the permissions, the Telephone permissions switch is back into the on position.
What do you make of this? I have suspected that the app is "spying" somehow for quite some time. Reverse engineering on the apk itself had some very strange permissions logged in the Android Manifest file.
I would really like to hear your opinion....
41 views and zero replies....

Question Add custom or replace default ringtones or notification tones. Is it possibile?

Hi guys, Is there a chance to add custom ringtones or notification tones to watch 4?
Or maybe to replace the default one with other files with the same name....
It's not working to add files trough Manage Content/Add Tracks
Following for the same answer
Použil jsem správce souborů. Přeposlal jsem melodii k hodinkám, pak jsem je přes správce souborů přesunul na vyzváněcí tóny a poté jsem hodinky restartoval a bylo to tam.
Fandaklara1 said:
Použil jsem správce souborů. Přeposlal jsem melodii k hodinkám, pak jsem je přes správce souborů přesunul na vyzváněcí tóny a poté jsem hodinky restartoval a bylo to tam.
Click to expand...
Click to collapse
That didn't work for me. If I try to move it to the ringtones or notifications folder it won't allow me to move or copy over the file.
Actually it did sort of work. One of two mp3s did appear when I dropped them into the Notifications and Ringtones folder but the other mp3 didn't. It didn't appear straight away but I've no idea what triggers it and why one mp3 worked and the other didn't.
Anyone have an answer for this?
Prototype89 said:
That didn't work for me. If I try to move it to the ringtones or notifications folder it won't allow me to move or copy over the file.
Actually it did sort of work. One of two mp3s did appear when I dropped them into the Notifications and Ringtones folder but the other mp3 didn't. It didn't appear straight away but I've no idea what triggers it and why one mp3 worked and the other didn't.
Click to expand...
Click to collapse
How did you get the ringtone file on the watch?
spart0n said:
How did you get the ringtone file on the watch?
Click to expand...
Click to collapse
1. I use Samsung Music Player on my phone with a number of playlists that I synced over to my watch through the Wearables app.
2. I then downloaded a File Explorer on my watch from the Google Play app store.
3. I opened the app, browsed through my watch and found a media folder containing all the songs I had synced over. I chose a song I wanted as the ringtone and copied it over to two other folders, one called Notifications and another called Ringtones. These folders were NOT in the Root folder.
I actually copied over several songs but only one appeared as selectable in the Sound menu of my watch. I've no idea why that one song appeared but the other didn't.
4. Also you might need to restart the watch and wait for a while as the song didn't appear straightaway.
I can confirm
(1) use the wearables app to transfer the ringtone/notification in MP3 format to the watch.
(2) Then a file explorer to copy the ringtone to internal memory/ringtone and/or the notification to internal memory/notification
(3) Press and hold home button and select power off
(4) Press and hold home button to turn watch back on
(5) wait (even for a little after the watch has finished booting)
They then show up as a ringtone/notification but ONLY on the watch (Galaxy Watch 4 Classic), you can't make the change on the phone as it doesn't see them in the wearables app (or didn't for me anyway).
akirainblack said:
I can confirm
(1) use the wearables app to transfer the ringtone/notification in MP3 format to the watch.
(2) Then a file explorer to copy the ringtone to internal memory/ringtone and/or the notification to internal memory/notification
(3) Press and hold home button and select power off
(4) Press and hold home button to turn watch back on
(5) wait (even for a little after the watch has finished booting)
They then show up as a ringtone/notification but ONLY on the watch (Galaxy Watch 4 Classic), you can't make the change on the phone as it doesn't see them in the wearables app (or didn't for me anyway).
Click to expand...
Click to collapse
What file explorer are you using on GW4? I cannot find one that works in Google Play Store. Thanks
al czervik said:
What file explorer are you using on GW4? I cannot find one that works in Google Play Store. Thanks
Click to expand...
Click to collapse
I had to search for a file explorer on the watch itself
theres a notification and ringtone folder in the internal partition, but theres also a media folder where the default notifications and ringtones are stored in the root partition as well.
I dont know if you have write permission in the root area though.
I was looking for the hourly tone to see if it could be replaced, but i dont see it in the list of system sounds which it has for things like charge and touch. The watch ticking sound seems to be its own app also.
@sesnut you don't need to add them to the root partition, just the one mentioned in my post.
@al czervik I picked Wear File Manager as it was the first I came across with a rating above 4.
What's now annoying me is I can't specify an alarm tone it uses the ringing tone.
akirainblack said:
@sesnut you don't need to add them to the root partition, just the one mentioned in my post.
@al czervik I picked Wear File Manager as it was the first I came across with a rating above 4.
What's now annoying me is I can't specify an alarm tone it uses the ringing tone.
Click to expand...
Click to collapse
yea but if added to the root partition it will probably show up in the wearable app, assuming it doesnt use its own list and pulls it from the watch
@sesnut maybe, but that would most probably require root permissions...
I did just try and it would appear a symlink is created into that folder as when I tried to paste the ringtone into the ringtone folder in the device root it said the file already exists.. Despite it not showing.
akirainblack said:
I can confirm
(1) use the wearables app to transfer the ringtone/notification in MP3 format to the watch.
(2) Then a file explorer to copy the ringtone to internal memory/ringtone and/or the notification to internal memory/notification
(3) Press and hold home button and select power off
(4) Press and hold home button to turn watch back on
(5) wait (even for a little after the watch has finished booting)
They then show up as a ringtone/notification but ONLY on the watch (Galaxy Watch 4 Classic), you can't make the change on the phone as it doesn't see them in the wearables app (or didn't for me anyway).
Click to expand...
Click to collapse
This method works. Thank you.
can confirm that sounds do not show up on phone
I noticed that the list on the phone is using alphabetical order and doesnt actually specifically list what ringtones are on the watch so whatever you named your ringtone it will take up that slot and play that tone when you select it.
meh, me im old school
i have 3 folders under my platform-tools folder (or any folder with adb.exe in it), named Alarms, Notifications and Ringtones, with the suitable files in the matching folders
and a batch file called pushtowatch.bat, with contents:
Code:
adb push Alarms /sdcard
adb push Notifications /sdcard
adb push Ringtones /sdcard
as im often resetting and/or testing stuff, i just
1) enable developer mode on Watch (im going to do this anyways)
2) enable ABD Debugging (Debug Over Wifi)
3) adb connect <ip> (using IP shown in above step)
4) run pushtowatch.bat
5) disable ABD Debugging (Debug Over Wifi) - otherwise battery drain
6) reboot Watch to update media index so files show in picker
everybody ought to know how to do simple things the manual way, i dont install apps to do things i can do without too much drama, of course you can add other files to stock folders in a similar way

Categories

Resources