[Q] LED notifications - G2 and Desire Z General

i have searched the forums, and i have yet to find an answer. is there anyway to activate LED notifications either through the trackpad or the LED light? the trackpad is nice, but it doesnt flicker but only 8 seconds at a time. any mod, or apk i could flash to my phone? no third party apps work!

PatrickHuey said:
i have searched the forums, and i have yet to find an answer. is there anyway to activate LED notifications either through the trackpad or the LED light? the trackpad is nice, but it doesnt flicker but only 8 seconds at a time. any mod, or apk i could flash to my phone? no third party apps work!
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=797867
I haven't read it myself, but I know cyanogen was working on figuring it out.

Cyanogen's fix works great, although I wish the "on" time of the blink were a bit longer by default. Info is in the thread franky1029 posted, specifically this post:
http://forum.xda-developers.com/showpost.php?p=8547782&postcount=31

I'm a noob. sorry for asking such a dumb question, but how do i work the adb shell command on ADB? i tried typing "adb shell" and hit enter. and then i get "$"
ex: C:\Users\John>adb shell
$
I'm just not getting where i type "su" and the "stop" and etc., like it was shown for the Cyanogen's post for the LED light fix.

make sure you have temp root and type su after the $ then it will change to a #

mgshute said:
make sure you have temp root and type su after the $ then it will change to a #
Click to expand...
Click to collapse
after u type su and then it changes to "#"..do u type "su" again, or do u go ahead and type "stop" like the one on cyanogen's fix? Thanks for the help! really appreciated!

ive never really set up ADB on any android phone, it just looks really complicated!

donaliar said:
after u type su and then it changes to "#"..do u type "su" again, or do u go ahead and type "stop" like the one on cyanogen's fix? Thanks for the help! really appreciated!
Click to expand...
Click to collapse
Just type each line as shown then hit enter. It might seem like nothing is going on but it is.

Related

Pattern Lock.. Defeated!

EDIT: updated with step-by-step instructions.
Step 1. Download the Android SDK (http://developer.android.com/sdk/)
Step 2. Make sure to configure the ADB usb interface drivers (search the forums for more information on this if you're confused.)
Step 3. Plug your G1 into your computer (via usb). (Settings -> Application -> Development -> USB Debugging, must be enabled [it is enabled by default in JesusFreke releases i think])
Step 4. Open command prompt and enter the following:
Code:
> adb -d shell
# sqlite3 data/data/com.android.providers.settings/databases/settings.db
sqlite> update system set value=0 where name='lock_pattern_autolock';
sqlite> .exit
# exit
Step 5. Now power off the phone, and turn it back on. Tada! No more pattern lock.
Sorry, Im speaking on behalf of the simpler folk, but how exactly do you go about doing this, and if so can you make an update.zip that would do this?
hey haykuro, probably you should post this in the development sub-forums..
anyways great stuff man..the code looks so simple lol..i am sure you toiled hard tho!
thanks again.
Joeriginal said:
Sorry, Im speaking on behalf of the simpler folk, but how exactly do you go about doing this, and if so can you make an update.zip that would do this?
Click to expand...
Click to collapse
None of this is done on the phone itself. It's done using the adb utility for your computer. Just download the adb.exe file and the USB drivers then repeat the commands shown above at your command prompt.
whats the point of this?
The Great NY said:
whats the point of this?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=485903
Yay! Now I can finally use that stolen G1!
J/k I already got rid of the previous owner's account by flashing DREAIMG.NBH
(No, I did not really steal a G1 )
interesting to know
thx.
Could be useful if you forget your own pattern Maybe we can remove the regular lock screen now?
As a follow-up, how difficult would it be to replace the regular lock screen with a different one (non-pattern based)? I struggle with the pattern one, because it's pretty easy for anybody to hold the phone up to the light to see the pattern. Would be useful to have a different, more secure lock screen.
That would be awsome if you could get rid of the first unlock with hitting menu
ICBM said:
As a follow-up, how difficult would it be to replace the regular lock screen with a different one (non-pattern based)? I struggle with the pattern one, because it's pretty easy for anybody to hold the phone up to the light to see the pattern. Would be useful to have a different, more secure lock screen.
Click to expand...
Click to collapse
what the hell are you talking about? hold the phone up to the light to see a DIGITAL screen unlock pattern? maybe if you leave giant greasy fingerprints all over the screen...
Yes that's exactly right. The low-tech, looks at the fingerprint pattern works like a charm. Don't believe me? Try it yourself. I don't consider myself particularly greasy, but if you use the G1 as is, without screen covers or anything, you can usually see enough to figure out what the unlock pattern is.
cboy007 said:
what the hell are you talking about? hold the phone up to the light to see a DIGITAL screen unlock pattern? maybe if you leave giant greasy fingerprints all over the screen...
Click to expand...
Click to collapse
That's what he meant. And it's very plausible to do, even if your fingers are a little greasy. Try it.
This is nothing revolutionary. All you are doing here is hitting the "Require pattern" switch to off, just doing it the more "intrusive" method.
This is not any sort of insight to replacing the lock activity.
as far as that goes, you'd have to completely rebuild the OS.
Code:
>adb shell logcat -d V | grep -i lock
D/KeyguardViewMediator( 54): wakeWhenReadyLocked(82)
D/KeyguardViewMediator( 54): pokeWakelock(10000)
D/KeyguardViewMediator( 54): pokeWakelock(7000)
D/KeyguardViewMediator( 54): pokeWakelock(10000)
D/KeyguardViewMediator( 54): pokeWakelock(5000)
D/KeyguardViewMediator( 54): pokeWakelock(7000)
this is the action of turning on the screen.
for further information on REPLACING the lock screen you can follow up in this thread http://groups.google.com/group/andr...b512cb203b/8324f7ff7ed232b3?#8324f7ff7ed232b3 (this is just one of the many i googled up.)
yea.. another issue with the lock is that as it may be confusing and magical to a non G1 user.. but i tell you.. .. if a g1 user sees you put your code in... its easily retained to the "allready used it, understand how it works" mind.
two things: since you enter an adb shell does this mean you can do this from a terminal on the phone?
also, cool thing i found,
first you need to have an unlock code set
then you need to have mybackup from the market,
create a backup up of your system settings
do a wipe/factory reset (i dont know if you had to but thats what i did when it happened to me)
now restore your system settings
now you will have an unlock screen that opens with ANY pattern even if its only one dot
haitiankid4lyf said:
two things: since you enter an adb shell does this mean you can do this from a terminal on the phone?
Click to expand...
Click to collapse
yes. but if you are on the terminal of the phone, i'd guess you wouldn't need to bypass the lock screen now would you?
haitiankid4lyf said:
also, cool thing i found,
first you need to have an unlock code set
then you need to have mybackup from the market,
create a backup up of your system settings
do a wipe/factory reset (i dont know if you had to but thats what i did when it happened to me)
now restore your system settings
now you will have an unlock screen that opens with ANY pattern even if its only one dot
Click to expand...
Click to collapse
cool
i got a quick question, if the phone is locked out how do u get into the settings to turn on usb debugging
wesgarner said:
i got a quick question, if the phone is locked out how do u get into the settings to turn on usb debugging
Click to expand...
Click to collapse
haykuro said:
Step 3. Plug your G1 into your computer (via usb). (Settings -> Application -> Development -> USB Debugging, must be enabled [it is enabled by default in JesusFreke releases i think])
Click to expand...
Click to collapse
Just update the phone using JF v1.42 update.zip and you should be good to go

Bonus Benefit of Removing HTC Lock Screen

If you remove the HTC Lock Screen the screen no longer turns on when you plug it in or unplug it
(Make sure and reboot after removing it)
^ Shift Faced
Removing the lock screen is the only way to go. I just wish there was a way to remove the default pull down answer screen when the phone is in lock mode. Half the time it takes me 10 swipes before the phone answers, I hate the sense side down answer.
How do I remove it?
you have to be rooted, but once you are it's fairly straightforward. you need to open up the adb shell, and from there type in:
Code:
rm system/app/HtcLockScreen.apk
the first time I tried, it told me permissions denied, even with su in front, so added busybox to the front of the command:
Code:
busybox rm system/app/HtcLockScreen.apk
and make sure you reboot your phone!
I think your alarm clock may not be able to be silenced/snoozed if you remove this. You will probably have to use a different one from the market.
that is rather annoying, thanks for the heads up >.<
anybody who has clockwork mod2.5 (green version) can download the Vanilla lockscreen .zip from the AwesomeRom thread and it will remove HTCLockscreen and the alarmclock and another one of the apps that stops working and replaces them with the vanilla alternative.
just thought you should know. works on both deodexed roms and odex roms.
I disabled the lockscreen a while ago. It worked okay but sometimes the graphics on the lock sliders flaked out or were missing until you touched the screen. I went back.
Many times when I pull the phone out of my pocket while its ringing I slide it up or down. Most of the time dropping the call.
griffindy said:
you have to be rooted, but once you are it's fairly straightforward. you need to open up the adb shell, and from there type in:
Code:
rm system/app/HtcLockScreen.apk
the first time I tried, it told me permissions denied, even with su in front, so added busybox to the front of the command:
Code:
busybox rm system/app/HtcLockScreen.apk
and make sure you reboot your phone!
Click to expand...
Click to collapse
I'm lazy and just removed it with Titanium.
^ Shift Faced
jesusice said:
I'm lazy and just removed it with Titanium.
^ Shift Faced
Click to expand...
Click to collapse
I removed with Titanium, but I like the generic lock screen even less. I backed up the HTC Lockscreen with Titanium, but can't restore.. It has check with backup date.. Any easy way back?
Removing stock lockscreen + installing WidgetLocker 1.2.4 =
I managed to get the stock Sense lock screen back. Retrieved the apk from a Rom. Moved it to the Titanium backup folder, restored it..
so its confirmed that you cant shut the htc alarm clock off if you remove the lockscreen? can you still shut if off through the alarm app or when you unlock the screen?
t0esh0es said:
so its confirmed that you cant shut the htc alarm clock off if you remove the lockscreen? can you still shut if off through the alarm app or when you unlock the screen?
Click to expand...
Click to collapse
Yes, I have no issue turning mine off. All I have to do is unlock the screen and the notification is up.

Softeky lights on - off trackball on - off

Here is a couple of scripts of everyone, this will make your roms ANYROM for the eris turn on or off your trackball lights, and or softkey lights
I noticed a few roms that have problems with lights so I figured I would put these here to fix this problem.
If you just want to be able to turn on or off your softkey lights or trackball just download the script and put then in /sdcard/gscript
now download gscript app from the market and load a script file from sdcard
save the script and run threw gscript.
http://www.multiupload.com/1EWEV8MK48
If your a rom developer you can easily make these changes to the init.post-boot.sh and have the settings started at boot just add what ever script you want to init.post-boot.sh like this
open init.post-boot.sh add to file at the very top second line
Code:
# Initialize lights at boot to enable softkey lights noti$
echo 1 > sys/class/leds/vtkey-backlight/brightness
sleep 1
save and reboot.
So, to be clear, these scripts switch on or off the softkey lights and only switch on the trackball light, right? They do not enable or turn on the ability of the ROM to control these, right? For that you would have to incorporate some system components (or a 3rd-party app like Light Flow, which seems to be able to do the same thing). I'm not trying to give a hard time, just trying to understand how this works. I've tried doing similar things on evervolv and GST with no luck.
Oh, and one other thing, in your readme you mention
Notice, if you make trackball on run at boot your phone will lag, and after a while reboot this is a known issue to do with memory loss. Just run from gscript and you will be ok, it doesnt do anything to memory, just uses up all the ram/buffer so your phone reboots. if run at startup if it is just run through gscript everything will work fine.
Click to expand...
Click to collapse
What is the "known issue to do with memory loss?" I'm working on a navigation-related reboot problem at the moment and wondering about the ROM using up the RAM/buffer and if it is related. Mil gracias!
klobkelosh said:
So, to be clear, these scripts switch on or off the softkey lights and only switch on the trackball light, right? They do not enable or turn on the ability of the ROM to control these, right? For that you would have to incorporate some system components (or a 3rd-party app like Light Flow, which seems to be able to do the same thing). I'm not trying to give a hard time, just trying to understand how this works. I've tried doing similar things on evervolv and GST with no luck.
Click to expand...
Click to collapse
the lights on works but need to find out how to make them go off,, i add them to the rom but lights jjust stay on even with the phone sleeping , i sent a pm just waitin on a answer
Ok, you can use Light Flow from the market to control the lights but yes, this is only to enable and disable the light. for some reason roms are haveing a problem turning on the lights there just doesnt seem to be any one or off switch. I also have found that in alot of the roms a few that i have flashed that have been ported from the hero are missing a few of these lines
chown system system /sys/class/leds/vtkey-backlight/brightness
chown system system /sys/class/leds/amber/brightness
chown system system /sys/class/leds/jogball-backlight/brightness
chown system system /sys/class/leds/green/brightness
Click to expand...
Click to collapse
and few others like trigger,uevent if you want the full list ill pm it
androidifyme said:
Ok, you can use Light Flow from the market to control the lights but yes, this is only to enable and disable the light. for some reason roms are haveing a problem turning on the lights there just doesnt seem to be any one or off switch. I also have found that in alot of the roms a few that i have flashed that have been ported from the hero are missing a few of these lines
and few others like trigger,uevent if you want the full list ill pm it
Click to expand...
Click to collapse
im looking in my boot img and i see all those lines u mentioned
pming.....
ok ,, and btw i linked them to ur thread in the op

[APP] Force Full Screen

-------------------------------------------------------------------------
Force Full Screen
v1.0.0 *** 2012-12-22
Download Mirrors
http://play.google.com/store/apps/details?id=com.jz.forcefullscreen
Official Forum:
http://forum.xda-developers.com/showthread.php?t=2063068
-------------------------------------------------------------------------​
Click to expand...
Click to collapse
Force Full Screen will allow you to force any application to run in full screen even if it was not originally programmed to run in that manner. On phones it will hide the top pull down Action Bar. On tablets it will hide the bottom System Bar that has the back, home and app soft-buttons.
- Root required
- BusyBox required
The application simply executes a kill command every second to kill a process called com.android.systemui --- The actual shell script is available on XDA-Developers.com (http://forum.xda-developers.com/showthread.php?t=2063068) so that folks that like using Script Manager can use this as well. Work even better when using the Widget add-in for Script Manager.
Inspiration came from a game that did not run in full screen and my son kept exiting the game by hitting the home soft-button on the tablet.
Enjoy and please do NOT re-post or re-distribute because things get outdated quickly and the app is free for heaven's sake.
Thanks!
JZ.
This is great, but the script does not work. How can I use it? I get errors through script manager or busybox - unexpected "done".
I want to be able to toggle fullscreen through tasker.
Thanks
gloscherrybomb said:
This is great, but the script does not work. How can I use it? I get errors through script manager or busybox - unexpected "done".
I want to be able to toggle fullscreen through tasker.
Thanks
Click to expand...
Click to collapse
Not sure what the deal is, I've been using the script for a long time with ScriptManager. I also used the script successfully via Terminal Emulator --- I did have to change permissions with chmod though.
chmod 777 myscript.sh
Thanks!
JZ SmartMort said:
Not sure what the deal is, I've been using the script for a long time with ScriptManager. I also used the script successfully via Terminal Emulator --- I did have to change permissions with chmod though.
chmod 777 myscript.sh
Thanks!
Click to expand...
Click to collapse
It's OK, I fixed it.
It was because it adopted windows new line characteristics when I opened it on windows first. When I did it directly through my phone it worked fine.
gloscherrybomb said:
It's OK, I fixed it.
It was because it adopted windows new line characteristics when I opened it on windows first. When I did it directly through my phone it worked fine.
Click to expand...
Click to collapse
Nice find! That drove me insane in the beginning when I was developing the script --- but now we have a documented solution so thanks for the feedback!
The app worked but after disabling my wallpaper returned to default.
Sent from my HTC_Amaze_4G...Go Canes []_[]
My "app" is not really an app, it's more like a hack. Whenever you reload the launcher, which you did by changing background, you have to re-run my app so that's the explanation behind what happened in your case.
Thanks!
JZ
Does this disable the functionality of the notification shade? what i'd like to do is have the bar hidden, but the ability to open the shade from another app.
Crepusculi said:
Does this disable the functionality of the notification shade? what i'd like to do is have the bar hidden, but the ability to open the shade from another app.
Click to expand...
Click to collapse
Yes, it disables the pulldown menu... check the screenshots in the OP.
Thanks!
Hi got a problem with it. When I enable it the bar apparears and dissapears every second. Plus my wallpaper is black. I had the same problem with modding the systemui through apktool. Trying it on a note 3 tmo on Jedi elite v2 touch wiz... Any suggestions?
Inxed said:
Hi got a problem with it. When I enable it the bar apparears and dissapears every second. Plus my wallpaper is black. I had the same problem with modding the systemui through apktool. Trying it on a note 3 tmo on Jedi elite v2 touch wiz... Any suggestions?
Click to expand...
Click to collapse
Remember this is a hack hence the black wallpaper and the every second appearance/disappearance.
Are you using the script or the APK?
If you are using the APK then I suggest trying an app called "full!screen" it's pretty slick.
Thanks!
JZ SmartMort said:
Remember this is a hack hence the black wallpaper and the every second appearance/disappearance.
Are you using the script or the APK?
If you are using the APK then I suggest trying an app called "full!screen" it's pretty slick.
Thanks!
Click to expand...
Click to collapse
Sweet this works! Well I I've been trying on script but it always ended up with the wallpaper problem then got lazy with and tried the apks. The one you suggested works like a charm. Thanks alot.
I'll summarize this thread in one short sentence.
Ah, FFS.
Sent from my Nexus 7 using Tapatalk

OREO Permanently HIDE Navigation bar WITHOUT ROOT and use gestures to navigate

This is for QHD resolution! and make screen zoom from settings ''medium''!
Here is step by step guide
FIRST MAKE SURE YOU HAVE DOWNLOADED AN ALTERNATIVE NAVIGATION APPLICATION, I use Edge Gestures but All in one gestures is fine also.
1. Install ADB from here https://forum.xda-developers.com/showthread.php?t=2317790
2. Enable developer settings and enable usb debugging
3. Connect phone to PC
4. Put this command to adb: adb shell settings put global policy_control immersive.navigation=*
5. Put this command after the first one: adb shell wm overscan 0,0,0,-168
6. Enjoy:
BUGS!
Lockscreen shortcut icons will be shown half.
Google photos delete confirmation diolog wil not be fully shown but you can rotate for deleting or you can just tap to the bottom right part of the screen and it deletes it.
credit: @xdeepS for the adb command
Just tried it and it works like a charm for now!
Just a question: what are the abd commands if I would like to be back to the stock navbar?
EDIT: found!
adb shell wm overscan reset
Thanks anyway!
Happy to hear I could help!
Amazing, you could keep screen zoom to small just reconfiguring the gestures app to repositionate the navbars. Done this on mine S9 and working like a charm, no more navigations bars !!! Thank U very very much
P.S: Using oreo 8.1 launcher
Does this work also on my s8 and on my note 8?
Any screenshot?
pakitos said:
Any screenshot?
Click to expand...
Click to collapse
Here galaxy s9
View attachment 4509907
View attachment 4509908
gcanever said:
Here galaxy s9
View attachment 4509907
View attachment 4509908
Click to expand...
Click to collapse
Thank you!
Can you show how the lockscreen looks like?
pakitos said:
Thank you!
Can you show how the lockscreen looks like?
Click to expand...
Click to collapse
Done
View attachment 4509930
gcanever said:
Done
View attachment 4509930
Click to expand...
Click to collapse
Thank you! So what number did you use for the overscan? I have read otheres said it leaves your icons showing in half, even the OP says that.
pakitos said:
Thank you! So what number did you use for the overscan? I have read otheres said it leaves your icons showing in half, even the OP says that.
Click to expand...
Click to collapse
So, had to reset the overscan because other apps r not working correctly like games and whatsapp bcause you wont be abble to return to home screen, even that gestures are enabled. What I did was still in immersive mode, return all values to 0 nd keep the gestures on. When I do the gestures all work ok and the navbar appear and disappear within seconds. But remember im using oreo 8.1 launcher, the stock launcher wont hide navbar on home page.:good: trust me, even more better than default, cant use stock anymore
Sorry my english
Been using this for a while, and while Navbar is completely hidden (I was using like ~130 pixels) it was not working properly in some apps (I had buttons that were opened under the screen, unable to press them, or only partly visible). Now I just use XDA Navigation gestures which hides the navbar AND also has gestures all in one....
For Redmi S2
adb shell wm overscan 0,0,0,-82
Issue with this method... Need a fix
I have a slight issue, when I used to type a message it used to push every thing up so I could see what I am typing, but now I can't see what I am typing. Is there a fix for this ?
Hello guys,when i do this at my p20 lite the nav bar dissapears but it leaves a transparent space keeping the bottom apps lifted. Any idea ? i've tried apps too but same thing happens ..
kompakos said:
Hello guys,when i do this at my p20 lite the nav bar dissapears but it leaves a transparent space keeping the bottom apps lifted. Any idea ? i've tried apps too but same thing happens ..
Click to expand...
Click to collapse
Check updated post notice.
ishtiaqe22 said:
Check updated post notice.
Click to expand...
Click to collapse
What do you mean
And I try to reset the overscan now, it seems reseted but when confirmation windows pop up I cannot see the options. I've tried overscan 0,0,0,0 and overscan reset but nothing..
Other phones
Can this method be used for other phones with Android Oreo?
There's a little problem. After reseting the nav-bar, it doesn't stick up. It's always hiding even if i push that damn point . Solutions?
Nevermind, found solution.
adb shell settings put global policy_control null*

Categories

Resources