As i understand it, android.permission.DEVICE_POWER is a protected permission and only allowed for apps signed as system apps.
There's probably some way to gain this permission on my rooted n1, but I have no idea how to do it. When installing android says:
Code:
W/PackageManager( 4819): Not granting permission android.permission.DEVICE_POWER to package casablanca.locknow (protectionLevel=2 flags=0x7e45)
(and yes, I ask for it in manifest)
Tried installing as a system app
Code:
adb remount
adb push locknow.apk /system/app
but i get the same logcat message (is this the correct way of installing a system app?)
I am trying to access the PowerManager's goToSleep() method:
Code:
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
pm.goToSleep(0);
My questions are:
How can I install/sign the apk so that it is granted android.permission.DEVICE_POWER?
Can I do a lower level call using su to put the device to sleep?
-- Is there any other apps that can do this for me? (my power button is broken, so i want to sleep through software)
-- Is this the right forum for this question?
This is the API I'm accessing
http://developer.android.com/reference/android/os/PowerManager.html
hi,
I found myself in the same situation as you with a defective power button and took all the same steps your describe.
Couldn't get it to work as I also couldn't get the android.permission.DEVICE_POWER permission.
I ended up writing a full screen app that displays a dummy "lockscreen" and sets the screen-timeout to 15 seconds.
Not a solution but rather a workaround that makes my phone usable again.
Would you consider sharing your app in any way? market/apk/src?
Or, i can make it myself
and, i if you don't already know, here's how you power on without the power button:
- connect charger (wait for light)
- remove battery
- quickly insert battery again (before the light starts flashing)
Now, with CM, trackball-wake and a reboot app, we don't need the power button at all
Soo, i wrote it myself. If anyone else want it, here you go:
http://while1.no/files/Lock3.apk
What it does:
Fullscreen, black
Sets screen timeout to 15 secs
Waits until phone is asleep
Sets screen timeout to 60 secs
Commits suicide
If you press the trackball within the 15 seconds, you return to home screen. If you press anything else, it pretends to be asleep.
(And yes, all values are hardcoded)
I'll post the source if anyone wants it (it's so ugly I'm embarrassed)
I'm still searching for a way to access gotToSleep(), binding it to trackball longpress would be perfect
I tried your application, and would like to see the source. My use case: prevent the keyboard slider from turning on the phone. My phone slides out in my pocket and then turns on, sometimes trying to make emergency calls, etc. I have all tho code in place to receive the event when the keyborad slides out, and would like to send the phone back to sleep right away. The code snipped for setting the screen timeout would do.
The complete eclipse project can be downloaded here:
http://while1.no/files/Lock3.tgz
It's ugly as hell, but it works. There's also a lot of dead, unused code. Watch logcat to see what's going on.
When it thinks the device is off, it also commits a hard suicide
The timeout is set to 15 secs, but i think you can set it to 5 as well. Let me know if you make any improvements
The DEVICE_ADMIN permission of Android 2.2 solves everything.
I've created an app that locks your device (properly, no hacks!) if you either:
- Click an invisible widget on your home screen
- Long press search key
Name: "Invisible lock widget"
Market link:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hi Joernsn,
Is it possible for you to release your source code? I am trying to develop application also need the "administrative right". Thank you.
Anyone have any progess on doing something like this? There seems to be a lot of "Sleep apps" but no true power off apk.
Thanks,
D
Dear All,
I had managed to develop a utility that turn the device screen off and on by flipping the device itself. This app also came with a widget that allow you to turn off the device screen. The application is called JustFlip and you should be able to search it in Android Market under the tool section.
The application is design for Android ver 2.2 and the device must have orientation sensor. Currently the application only tested on Samsung Galaxy Tab and therefore not sure is it working fine for other device.
joernsn said:
My questions are:
How can I install/sign the apk so that it is granted android.permission.DEVICE_POWER?
Can I do a lower level call using su to put the device to sleep?
Click to expand...
Click to collapse
You can sign the .apk with the system signature - impossible if it's not a custom rom.
Maybe it also works if you edit the packages.xml (as root): set sharedUserId to 1000 (system) to your package.
sekhuat said:
Dear All,
I had managed to develop a utility that turn the device screen off and on by flipping the device itself. This app also came with a widget that allow you to turn off the device screen. The application is called JustFlip and you should be able to search it in Android Market under the tool section.
The application is design for Android ver 2.2 and the device must have orientation sensor. Currently the application only tested on Samsung Galaxy Tab and therefore not sure is it working fine for other device.
Click to expand...
Click to collapse
Well, Thanks for your app.
Can, you please tell me how do you unlock the phone ??
Just, the code for unlocking.
Thanks in advance mate.
Related
hey all
I am looking for a widget that can simply turn the screen off, I press and the screen goes off.
I have searched but cant find anything that works
Thanks
I have seen a couple of apps in my travels go have a look in the android development I'm sure an xda member cooked one up a few weeks back,and from what i remember android does not switch off straight away like WM does it has a delay built in
I was looking for one of these some months ago.
I was told that there wasnt one which stopped the screen straight away, however I found on. UNFORTUNATELY, I can't find it again. (I am on my third Streak)
It wasn't badged as a screen off, but it was a single widget which locked the device (aka turned off the screen, as if you had pressed the power button)
I would love to find it again!
Screen off
http://android.konreu.com/applications/screen-off/
I don't see the point myself, why don't you just hit the power button
Yyhat link doesnt work no item found, the power button is in a weird spot for my liking and since i use no lock and open with th volume button
Then why don't you do a google search for an android app called 'scren off'
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Ah i have googled it MOD EDIT !! and cant find one, if you are so MOD EDIT !! brilliant you find one
Every link i find to screenoff app is dead
I thought these forums were to help people
Same app on appbrain.
http://www.appbrain.com/app/screen-off/com.konreu.android.screenoff
damo182 said:
Ah i have googled it MOD EDIT !! and cant find one, if you are so MOD EDIT !! brilliant you find one
Every link i find to screenoff app is dead
I thought these forums were to help people
Click to expand...
Click to collapse
Pick up your android phone and go to somewhere called the 'android marketplace' you may even have an app already installed for that so no need to search for that thank goodness.
In the search bar enter 'sreen off' it should be at the top of the list
i have a question, maybe this is android related, maybe streak, not sure.
I come from WM6.5 background, so forgive me if this is a 'duh' question:
when I am listening to music, or recording or, anything really, if the screen turns off, it shuts the whole phone down. including wifi (loses connection)
is there a way to have the screen dim/off to save battery, but still be active.
biggest is music/recording. when I am recording something (meeting, etc) I have to force the screen to stay on in order for it to continue recording. same thing goes for uploading to youtube - i have to keep the screen on for it to continue it's connection.
Am I missing something??
Thanks for the help
try an app called "free power widget"
you can adjust the screen timeout so it is short or long
you can easily adjust screen brightness
you can adjust the wifi lock and a bunch of other settings.
*Omnipresent* said:
Same app on appbrain.
http://www.appbrain.com/app/screen-off/com.konreu.android.screenoff
Click to expand...
Click to collapse
This is dead as well.............
damo182 said:
This is dead as well.............
Click to expand...
Click to collapse
There's something wrong with your connection, (that's your internet one, not the one within your head the connects your lobes together, especially the lobe containing common sense)
What you could do to stop you from losing your Wi-Fi connection when in sleep mode is try going into Settings -> Wireless controls -> Wi-Fi settings -> press menu button then Advanced -> then select Wi-Fi sleep policy and change the option to Never. This should I think keep Wi-Fi active when your screen is off (stops of the phone from switching to mobile data and by default is set to do so when the screen is off).
checkbox111 said:
There's something wrong with your connection, (that's your internet one, not the one within your head the connects your lobes together, especially the lobe containing common sense)
Click to expand...
Click to collapse
whatever, actually try and install and see how you go
damo182 said:
whatever, actually try and install and see how you go
Click to expand...
Click to collapse
I tried the link and it IS NOT dead! the page opens within a sec.!
OrionBG said:
I tried the link and it IS NOT dead! the page opens within a sec.!
Click to expand...
Click to collapse
Thats why i said try and install the app and see how you go
OMFG
yes i know the LINK above works. However if try and make the next step, you get error message
there are no matches in android market for the search name:com.konreu.android,screenoff
If i scan the barcode some thing, and appbrain app list the app in the search results but "request cannot be found" if you click on
I am not an idiot
Coming from Windows Mobile, a SIMPLE power off app is hard to find on Android. I had one on my WM Touch Pro2 on my homescreen- simple tab and off.
Over the months of trying to find a simple FREE app- this is what I have so far encountered.
Screen Off .99 and Power Off .99- are available. But due to a so call security reason for Android, it will not power off the phone immediately- screen is off- but you can see the hardware lights on. I found another tip that you will have to modify an API to do so.
Yes, many, many, many, Google searches and this is what i found.
You can try a widget called Extended Controls. They are awesome and include a screen off widget, I use it all the time to turn my screen off.
Widgetsoid offers a hugely customisable power control widget which includes a screen lock button. It's working brilliantly for me on o2 2.2!
Sent from my Dell Streak using XDA App
[size=+3]SmartLockScreen for Android - Bringing Lollipop smartness to JB and above![/size]
Code:
Disclaimer:
This app is in alpha stage. Though safe for daily use (none of the testers have got locked out of their phones),
rooted phone is recommended for testing, so that system password can be reset via adb.
If the previous sentence scares you, do read on, and if you find it interesting,
follow this thread and try out the app when it reaches Beta stage
(It'll not take much time).
-----------------------------------------------------------------------------
[size=+1]Looking for alpha testers. Feedback will be much appreciated![/size]
-----------------------------------------------------------------------------
[size=+2]Introduction[/size]
Make your phone lock smarter! Automatically change and remove passwords based on your current 'Environment'.
Convert Wi-Fi networks, Bluetooth Devices or Location areas into trust agents, and let them do the phone unlocking for you!
That is just 1 method of using the app. Possibilities are endless!
Also brings Lollipop style lockscreen notifications.
[size=+2]Features[/size]
Define environments - Each environment can be a combination of any of Bluetooth devices, Wi-Fi network and Location.
Set passphrase for each environment. The app detects environment changes and changes the passphrase automatically in the background.
How is this useful? Consider this: Say you define environment home, which says Home is when the phone is connected to Home Wi-Fi (you can use location also, or both together). For environment home, set password as none. And for unknown environment, you can set, say, a pattern lock. So whenever you are at home, you can unlock the phone easily, but when outside, it'll set a lock and prevent unauthorized usage by others.
Another scenario is adding an environment which checks for your bluetooth headset. Phone is automatically secured when you move away, and unlocks automatically when you come back to it.
These are just indicative. Possibilities are endless!
Notifications in lock screen - Lollipop style! It's not totally there yet, it's an ongoing work. Swipe up/down to unlock, left for camera, right for dialer.
Intelligent environment overlap resolution. But you always have the option to override it manually.
Material Design, and smooth animations. (See screenshots below)
More features are coming soon! See Features to be implemented section
[size=+2]Screenshots[/size]
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
[size=+2]For more information, including Downloads, Requirements, Installation Instructions etc, please go to http://forum.xda-developers.com/android/apps-games/app-smartlockscreen-android-enjoy-t2919989[/size]
Great app but unfortunately I only use fingerprint lockscreen on my N4. Waiting for an update with support of fingerprint lockscreen!
EDIT: It seems like I can't uninstall this app. Not even force close it, since there's no exit option in the app itself. What is that all about?
quadlt said:
Great app but unfortunately I only use fingerprint lockscreen on my N4. Waiting for an update with support of fingerprint lockscreen!
Click to expand...
Click to collapse
I suppose with a finger print lock, this app is not really required. However, I've never actually tried the finger print unlock. If it takes a bit of time to unlock, or is inconsistent sometimes, I'd definitely try and include finger print unlock once the app reaches a stable state.
aravindsagar said:
I suppose with a finger print lock, this app is not really required. However, I've never actually tried the finger print unlock. If it takes a bit of time to unlock, or is inconsistent sometimes, I'd definitely try and include finger print unlock once the app reaches a stable state.
Click to expand...
Click to collapse
I don't need to unlock my phone at home, but as soon as I leave my wifi I would like to use my fingers. Will keep an eye on this, thanks.
Mod Edit
Thread Closed
ronnie498
Forum Moderator
Where can I go to learn what the different options mean? For example it's hard to know if I should let an app use "Browser" if I don't even know what it means.
In the sub lists what do the items highlighted in red mean?
In the sub list what do the items in bold mean?
What is the difference between the two columns users can check?
Do all items on the list always get shown, even if the app doesn't use it? For example I installed a game that's permissions didn't include acdcess to media, so what would happen if I check media for the app in xprivacy?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
For me it was trial and error, but you can read more here : https://github.com/M66B/XPrivacy#restrictions to understand what each permission stands for.
Red items are critical/expert items, some apps won't work if you deny them access to these permissions (by default these are enabled for all apps, you need to enable expert mode in the app to be able to edit them), for now I say stay away from them, once you feel more confident about the app you can start experimenting with them.
Tthe items in bold are permissions that the app asked for/tried to access (in your example it means that the app accessed/tried to access device camera yesterday)
Picking the left checkbox means denying that permission to the app, picking the right question mark (?) means that if the app asks for that permission, you will be notified with a pop-up window asking you what to do (allo/deny)
Not sure, but I use a personal template where every permission is auto-question marked, therefore whenever an app tries to access anything I get the small popup and I can decide what to do.
There's an "expert mode" checkbox in the permissions popup, if you enable that you'll be able to allow/deny app for a specific time (say 30 secs) which will allow you to test the effect of that decision on the app, so if it crashes, you can simply wait out the 30 secs and then relaunch the app again (this might require enabling the export mode in the app settings, not sure)
Please let me know if you have any more questions, or if my explanations sound like total nonsense to you, I have not eaten yet, and english in not my primary language after all
ticktock666 said:
For me it was trial and error, but you can read more here : https://github.com/M66B/XPrivacy#restrictions to understand what each permission stands for.
Red items are critical/expert items, some apps won't work if you deny them access to these permissions (by default these are enabled for all apps, you need to enable expert mode in the app to be able to edit them), for now I say stay away from them, once you feel more confident about the app you can start experimenting with them.
Tthe items in bold are permissions that the app asked for/tried to access (in your example it means that the app accessed/tried to access device camera yesterday)
Picking the left checkbox means denying that permission to the app, picking the right question mark (?) means that if the app asks for that permission, you will be notified with a pop-up window asking you what to do (allo/deny)
Not sure, but I use a personal template where every permission is auto-question marked, therefore whenever an app tries to access anything I get the small popup and I can decide what to do.
There's an "expert mode" checkbox in the permissions popup, if you enable that you'll be able to allow/deny app for a specific time (say 30 secs) which will allow you to test the effect of that decision on the app, so if it crashes, you can simply wait out the 30 secs and then relaunch the app again (this might require enabling the export mode in the app settings, not sure)
Please let me know if you have any more questions, or if my explanations sound like total nonsense to you, I have not eaten yet, and english in not my primary language after all
Click to expand...
Click to collapse
Ok thanks. Does Xprivacy some how show which permissions an app actually uses? What I mean by this is when you install an app it tells you which permissions it uses, for example Snapchat doesn't even request to use the browser. So in Xprivacy would it make a difference if I checked the option for Browser since Snapchat doesn't even use it in the first place?
No, there's no prior notification from xprivacy which permissions each app uses.
Like I said I use a default template with everything on "ask" setting, the up side for this imo is if an update causes an app to request new permissions, they will be on "ask" setting already, so I won't have to recheck after each update.
Need help , plz.
HI ..
Thanks for the post ..
Can someone plz. Install (Mobogenie.com) ... & see if they can block it reading the Location info?
I need to know that .. which version on android/XPRIVACY .. & permissions to disable to achieve this ..
I have used the following to change the sound that is played when the charger is plugged in.
Code:
settings put global wireless_charging_started_sounds "/storage/emulated/0/Notifications/Road Runner - Meep Meep.mp3";
settings put global charging_started_sound "/storage/emulated/0/Notifications/Road Runner - Meep Meep.mp3";
I do the above via a shell, it can also be done via ADB.
@DiamondJohn
Thanks for your advice, has worked excellently on Pixel 4a.
Is it possible via a command to turn off the screen by double clicking on the status bar? My former smartphone Motorola X Play from 2015 had this feature and I miss it.
Jonosch said:
@DiamondJohn
Thanks for your advice, has worked excellently on Pixel 4a.
Is it possible via a command to turn off the screen by double clicking on the status bar? My former smartphone Motorola X Play from 2015 had this feature and I miss it.
Click to expand...
Click to collapse
I use a VERY customize-able launcher. Its called Lightning Launcher, its a paid app but the default setup when you get it is crap. I have used it since Gingerbread and never looked back. BUT you can really do whatever your want. Including adding code. And rotating widgets and/or icons and stretching them etc etc etc
I have put gestures (ie associate code/scripts) which gestures on widgets/hidden hotspots. So, for example, if I click the left hand side of one wide widget, it acts normally and opens the weather details. However, if I click the right side, I run a script that hibernates select apps (basically all ) and then TURNS THE SCREEN OFF. I use this method instead of tapping my power button. Its easier as its on the screen I am using when I want to turn it off,and on a previous phone (Nexus 5) thepower button became notorious for failing on most.
Attached are the the scripts and the config file where I add/edit which apps to hibernate. It also has an include to renice the live wallpaper to the background
I also have it where I swipe up on another widget and it turns AOD on and swipe down turns it off. VERY handy being able to switch it on temporarily when I need to be somewhere on time and want too leave it to the last minute and know how long I got till I have to get moving.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I hate posting screen shots of my home screen, as the wallpaper is a live wall paper of the solar system, and its beautiful! as it flys between and orbits planets and sees the earth and its orbiting moon. A static image really does it injustice.
PS: My phone is also a Pixel 4A (non 5g)
Is there a certain command that can bebused in the same way to change Lock and Unlock sounds as well as touch sound? Thanks
nabhse90 said:
Is there a certain command that can be used in the same way to change Lock and Unlock sounds as well as touch sound? Thanks
Click to expand...
Click to collapse
I have not tested it, but I ran a report on all settings using the app TeMeFI and filtered it down to ones that have the word "sound" in it, and this gave the following list:
Code:
File: * LAST UNSAVED RESULTS * SEP=============================;
Include: sound
charging_sounds_enabled=1
sync_parent_sounds=0
lockscreen_sounds_enabled=1
notification_sound=content://[email protected]/external/audio/media/5028
notification_sound_set=1
sound_effects_enabled=1
car_dock_sound=/product/media/audio/ui/Dock.ogg
car_undock_sound=/product/media/audio/ui/Undock.ogg
charging_started_sound=/storage/emulated/0/Notifications/Road Runner - Meep Meep.mp3
desk_dock_sound=/product/media/audio/ui/Dock.ogg
desk_undock_sound=/product/media/audio/ui/Undock.ogg
dock_sounds_enabled=0
dock_sounds_enabled_when_accessbility=0
lock_sound=/product/media/audio/ui/Lock.ogg
low_battery_sound=/product/media/audio/ui/LowBattery.ogg
low_battery_sound_timeout=0
max_sound_trigger_detection_service_ops_per_day=1000
power_sounds_enabled=1
sound_trigger_detection_service_op_timeout=15000
trusted_sound=/product/media/audio/ui/Trusted.ogg
unlock_sound=/product/media/audio/ui/Unlock.ogg
wireless_charging_started_sound=/product/media/audio/ui/ChargingStarted.ogg
wireless_charging_started_sounds=/storage/emulated/0/Notifications/Road Runner - Meep Meep.mp3
So I would say yes. (see lock_sound & unlock_sound). Touch sound may require a magisk module.
DiamondJohn said:
I have not tested it, but I ran a report on all settings using the app TeMeFI and filtered it down to ones that have the word "sound" in it, and this gave the following list:
Code:
File: * LAST UNSAVED RESULTS * SEP=============================;
Include: sound
charging_sounds_enabled=1
sync_parent_sounds=0
lockscreen_sounds_enabled=1
notification_sound=content://[email protected]/external/audio/media/5028
notification_sound_set=1
sound_effects_enabled=1
car_dock_sound=/product/media/audio/ui/Dock.ogg
car_undock_sound=/product/media/audio/ui/Undock.ogg
charging_started_sound=/storage/emulated/0/Notifications/Road Runner - Meep Meep.mp3
desk_dock_sound=/product/media/audio/ui/Dock.ogg
desk_undock_sound=/product/media/audio/ui/Undock.ogg
dock_sounds_enabled=0
dock_sounds_enabled_when_accessbility=0
lock_sound=/product/media/audio/ui/Lock.ogg
low_battery_sound=/product/media/audio/ui/LowBattery.ogg
low_battery_sound_timeout=0
max_sound_trigger_detection_service_ops_per_day=1000
power_sounds_enabled=1
sound_trigger_detection_service_op_timeout=15000
trusted_sound=/product/media/audio/ui/Trusted.ogg
unlock_sound=/product/media/audio/ui/Unlock.ogg
wireless_charging_started_sound=/product/media/audio/ui/ChargingStarted.ogg
wireless_charging_started_sounds=/storage/emulated/0/Notifications/Road Runner - Meep Meep.mp3
So I would say yes. (see lock_sound & unlock_sound). Touch sound may require a magisk module.
Click to expand...
Click to collapse
Nice! Thanks! I will try this. The touch sound is actually named Effect.tick.ogg I believe but still should be possible, thanks for the help!
nabhse90 said:
Nice! Thanks! I will try this. The touch sound is actually named Effect.tick.ogg I believe but still should be possible, thanks for the help!
Click to expand...
Click to collapse
What I am saying, it does not appear to be in the "settings", irrelevant of what its called. As I said, it will be possible using Magisk, I just did not find it in settings.
DiamondJohn said:
the above via a shell, it can also be done via ADB.
Click to expand...
Click to collapse
That's awesome! Do you think it would work the same for all Android phones or is it only for stock Android on Pixels? Asking since Samsung use their own launcher with themed system sounds.
Thanks!
Derbi75 said:
That's awesome! Do you think it would work the same for all Android phones or is it only for stock Android on Pixels? Asking since Samsung use their own launcher with themed system sounds.
Thanks!
Click to expand...
Click to collapse
I have changed to a Custom A11 Rom (Bliss), and it works. This ROM covers multiple devices.
Thank you! Does this method need root access?
Derbi75 said:
Thank you! Does this method need root access?
Click to expand...
Click to collapse
I do it in a boot script, which has root, and everything i test I also default to running as root. Your going to need to test it yourself.
So Boys, how to changing it,I'm locking for the default charging sound, I using Android 11, and not able to know which program to use, also tried some cmd apps from app store, I wanna try to change, to make my own sound at the charging, I Also used Battery Sound Notification ( Device Dooge S97Pro)
Any suggestion on how to remap Google Assistant button on Sony Xperia 1 iii to take screenshots instead of having to press volume down button at same time as power button?
Assistant button remapper module (magisk/xposed)
I've created a very simple Magisk module to allow Xposed Edge to properly remap the Google Assistant button. You'll need Magisk and a Magisk-based Xposed implementation (I use LSPosed) for this to work. Xposed Edge is the only remapping tool...
forum.xda-developers.com
alternatively, just press the button and tell google assistant to take a screenshot.
I was able to remap my assistant button. I do not know if my previous uninstall of Google as well as the Google assistant App(s) had any bearing on the results...but I did use ADB to uninstall those things and it did disable the button, because when the phone was unlocked pressing the button did nothing at all. However, I did notice that when the phone was locked if I pressed the assistant button it would call up the login screen, so evidently it was still doing something!
At any rate this is how I did it:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Release 0.6.0 · ivaniskandar/shoukoAdd Assistant Button Override support for Xperia 1 III and 10 III (Thanks to @malibcia, @TheNetAdmin and @andreidobrica for testing) Fix Assistant Button Override not working when Google app is uni...
github.com
I want to thank each and every person who provided all this information as well as for the technical know-how to make this work!!!
I just wanted to add that when I press the assistant button the app I chose (for now the settings app) opens immediately with no hesitation at all.
Folks: Sorry to disappoint but regrettably I'm not digitally savvy enough, yet, to understand your responses; but does this entail having to root my phone with the possibility of it being bricked at some point? In these Covid-19 times can't afford that, essentially, having to buy a new one.
ScorpioViking said:
Folks: Sorry to disappoint but regrettably I'm not digitally savvy enough, yet, to understand your responses; but does this entail having to root my phone with the possibility of it being bricked at some point? In these Covid-19 times can't afford that, essentially, having to buy a new one.
Click to expand...
Click to collapse
The post/link by jaseman is also discussed in the thread link I posted. xda has been deleting duplicate threads, and your thread maybe a duplicate of the thread I posted which is why I redirected you there.
Anyway, as recommended, you should use the app above, Shouko / XPERI+. I quote from their github readme:
Assistant Button Override
This feature is available on Xperia 5 II, Xperia 10 III, Xperia 1 III.
Launches an app or a shortcut when the Assistant button is pressed. You can also disable the button completely.
This feature needs READ_LOGS and WRITE_SECURE_SETTINGS permission granted manually with ADB or root. A guide to grant this permission is available in the app.
Click to expand...
Click to collapse
As mentioned, root is optional. You can use ADB if you don't want to root your phone. I didn't root mine, I used ADB and it works nicely when I tried it out. There are also instructions posted in the app on how to grant those ADB permissions, but if you need more help, feel free to ask.
Btw, If you use side sense as I do, you can also set a gesture to take a screenshot. I went back to this as I wanted to use the button for Google Assistant after all.
I have disabled my google button, i never use it.
kms108 said:
I have disabled my google button, i never use it.
Click to expand...
Click to collapse
I can't stand to have a button there and not use it for something. Since I use a Spigen rugged armor case I suppose I could just cut off the rubber part that covers the button and then it would basically not be there, but I prefer to assign it to a hidden, encrypted, password app that I have been using for years. I press the button and open the database with my fingerprint. Works great!
Hello,
Anyone knows why it is show me an error when I try to do the Read permissions?
"Error: no permission specified"