[APP REQ] simple reboot shutdown app - Windows Phone 8 Development and Hacking

HI there
Is it possible to make a simple reboot/shutdown app ?
Just like the windows phone 7 app : http://www.1800pocketpc.com/shutdown-7-a-shutdownrestart-app-homebrew/
i saw in -W_O_L_F- samtools a reboot option..
so is it possible to make such an app that only reboots or shutdown ???
its much easier to do that with a small tile on you home screen then : hold the powerbutton en slide to shutdown
i hope someone like @GoodDayToDie , jessenic or -W_O_L_F- can make such a tool for us all
many many thanks in advance :good:
Michael

megasounds said:
HI there
Is it possible to make a simple reboot/shutdown app ?
Just like the windows phone 7 app : http://www.1800pocketpc.com/shutdown-7-a-shutdownrestart-app-homebrew/
i saw in -W_O_L_F- samtools a reboot option..
so is it possible to make such an app that only reboots or shutdown ???
its much easier to do that with a small tile on you home screen then : hold the powerbutton en slide to shutdown
i hope someone like @GoodDayToDie , jessenic or -W_O_L_F- can make such a tool for us all
many many thanks in advance :good:
Michael
Click to expand...
Click to collapse
SamWP8 doesn't have reboot option. However it's possible with Diagnosis dll.

-W_O_L_F- said:
SamWP8 doesn't have reboot option. However it's possible with Diagnosis dll.
Click to expand...
Click to collapse
Is there a URI protocol used? Do you know what Diagnosis uses to send the reboot command? Because I was thinking of making an app where you could reboot immediately, or at a preset time, or pin a tile to reboot the device.

AlvinPhilemon said:
Is there a URI protocol used? Do you know what Diagnosis uses to send the reboot command? Because I was thinking of making an app where you could reboot immediately, or at a preset time, or pin a tile to reboot the device.
Click to expand...
Click to collapse
It´s a simple RPCComponent command: System_Reboot (I didn´t test it)
There is a "PowerOffDevice" command, too.

WPH Tweaks has it in tools. I strongly advice against using it, it is very buggy. It's not that hard to just press the power button to power on the phone anyway.

Related

Programming a very simple app

Is there someone who can write a simple appfor me (maybe for others too?)
I need i Simple Widget (1*1 Button).
I want to press the button to disable the softkeys.
The Command for the shell is:
echo regctrl=0x8800 >/sys/devices/virtual/input/input7/tegra_capsensor
Click to expand...
Click to collapse
'Greetings =)
You can disable soft keys during boot with some simple mod but what's the problem with Dexters' widget app(for me works well)?
hi ho
if you man the foliowidget, it doesnt work...
u can just add it as a script in ROM toolbox and set it to be run on boot
than after boot it works, but after standyby the buttons work...
sorry i don't know how to deal with that , i have a friend dev ,i'll ask him

[ ROM Release ] the latest 2.3.9MIUI perfect port

ROM contents
1, using the latest development version of the the MIUI transplant system perfectly stable, change the model for the HTC, modify the boot animation
2, the kernel G major MIUI repair kernel, do not break the sound
3, individuals joined enhance the script and add a few features: turned on by default 80M of Zram default unlock the FPS, you can turn off to enhanced.conf
4, all normal functions, to in addition to FM, the TV-OUT .
5, by adding the RE Manager, Google PLAY, goggles, the Huawei document management, animation acceleration, replace the input method Sogou
Integrated titanium backup and MIUI control center, you can customize the status bar
8, modify the boot theme is self produced IPHONEV1 optimize the camera and power-saving mechanism. Interface fluency can be used to adjust other settings
9 , add ice4.0, window effects, if you feel slow with other settings to modify the animation speed
10, to modify the system wallpaper, system sounds, calls music and other more personalized
11, the boot since the launch of the EQ manager, automatically adjust the sound of music. Listen to music the effect of greatly optimized.
PS: MIUI2.3 now break the sound problem solved, reaches the perfect state, there are some minor issues such as: volume shock and screenshots screenshots screenshots repair will lead to gravity sensing, I have limited skills do not specify a screenshot button . After miui no major updates, and I are working on to release a small update patch package. Can be updated to the OTA, as removed from Brush Shuangqing troubled.
Think the effect is not convenient students can turn off the animation displayed inside.
Install the ROM:
1 will download the zip Brush package do not extract directly into the SDcard
Hold the volume up + power button is turned on, do not release until well into the recovery mode
Recovery, the volume up and down keys / menu Home key to move up and down the power button / Search button to confirm the back key to return to the previous menu level.
Select "Clear all data recovery factory
Select from the SD card, select the Brush package "
6 re-election to select the ZIP file from the SD card "
7 to find just download the zip Brush package confirmed
8 confirmed, Brush, wait about 1 minute to complete.
After brushing, back to the first menu, select "immediately reboot the system restart the phone
10 and then patiently wait for a while, you first start will be relatively slow.
http://www.mediafire.com/?108h4zeap2dcx31
pikachukaki said:
ROM contents
1, using the latest development version of the the MIUI transplant system perfectly stable, change the model for the HTC, modify the boot animation
2, the kernel G major MIUI repair kernel, do not break the sound
3, individuals joined enhance the script and add a few features: turned on by default 80M of Zram default unlock the FPS, you can turn off to enhanced.conf
4, all normal functions, to in addition to FM, the TV-OUT .
5, by adding the RE Manager, Google PLAY, goggles, the Huawei document management, animation acceleration, replace the input method Sogou
Integrated titanium backup and MIUI control center, you can customize the status bar
8, modify the boot theme is self produced IPHONEV1 optimize the camera and power-saving mechanism. Interface fluency can be used to adjust other settings
9 , add ice4.0, window effects, if you feel slow with other settings to modify the animation speed
10, to modify the system wallpaper, system sounds, calls music and other more personalized
11, the boot since the launch of the EQ manager, automatically adjust the sound of music. Listen to music the effect of greatly optimized.
PS: MIUI2.3 now break the sound problem solved, reaches the perfect state, there are some minor issues such as: volume shock and screenshots screenshots screenshots repair will lead to gravity sensing, I have limited skills do not specify a screenshot button . After miui no major updates, and I are working on to release a small update patch package. Can be updated to the OTA, as removed from Brush Shuangqing troubled.
Think the effect is not convenient students can turn off the animation displayed inside.
Install the ROM:
1 will download the zip Brush package do not extract directly into the SDcard
Hold the volume up + power button is turned on, do not release until well into the recovery mode
Recovery, the volume up and down keys / menu Home key to move up and down the power button / Search button to confirm the back key to return to the previous menu level.
Select "Clear all data recovery factory
Select from the SD card, select the Brush package "
6 re-election to select the ZIP file from the SD card "
7 to find just download the zip Brush package confirmed
8 confirmed, Brush, wait about 1 minute to complete.
After brushing, back to the first menu, select "immediately reboot the system restart the phone
10 and then patiently wait for a while, you first start will be relatively slow.
http://www.mediafire.com/?108h4zeap2dcx31
Click to expand...
Click to collapse
Thank you for sharing this rom, but i have some questions: have you tried it? If yes, which are the bugs? Does it work perfect and fast?
MyNameIsKappa said:
Thank you for sharing this rom, but i have some questions: have you tried it? If yes, which are the bugs? Does it work perfect and fast?
Click to expand...
Click to collapse
Im using it right now its very fast and stable with tweaksv5 and kickasskernelizer i get 2500+ on quadrant but i only want to change the long press search key to open the mini menu with send sms and take screenshot option than open camera..anyone knows how i can change it?
Ok i fix it! ^_^ now the only one not working is the screenshot but there an app for that!
so no bugs on this rom?
matteof93 said:
so no bugs on this rom?
Click to expand...
Click to collapse
ss don't work i don't found other bug everything works fine
is this me or its to iOs looking?, and whats about with more statistic? does someones some numbers , on why this is perfect?
blksina said:
is this me or its to iOs looking?, and whats about with more statistic? does someones some numbers , on why this is perfect?
Click to expand...
Click to collapse
You can also change the theme if you like, some people prefer the look of iOS but not the way it performs.
It has only English and Chinese?
sewa2k said:
It has only English and Chinese?
Click to expand...
Click to collapse
Yes, I'm using it right now as we speak. It has both English (which I use) and Chinese.
The only issue is that I can't seem to sync my account.
KayxGee1 said:
Yes, I'm using it right now as we speak. It has both English (which I use) and Chinese.
The only issue is that I can't seem to sync my account.
Click to expand...
Click to collapse
It needs gapps!
pikachukaki said:
It needs gapps!
Click to expand...
Click to collapse
My gapps were bad, thanks!
is there a Russian language in this firmware?
Can I update to this ROM with only wiping cache and dalvik from MIUI 2.3.2?
EDIT: Nevermind, I've tried it and I can confirm that you can't update from MIUI 2.3.2 with only wiping cache and dalvik
borisstone said:
is there a Russian language in this firmware?
Click to expand...
Click to collapse
No, sorry. There are only a few versions of English based on the region, and Chinese.
pikachukaki said:
Im using it right now its very fast and stable with tweaksv5 and kickasskernelizer i get 2500+ on quadrant but i only want to change the long press search key to open the mini menu with send sms and take screenshot option than open camera..anyone knows how i can change it?
Ok i fix it! ^_^ now the only one not working is the screenshot but there an app for that!
Click to expand...
Click to collapse
Thank you! I upgraded to this ROM and i can confirm that is perfect!
Could you tell me please how did you change the long press search key to open another application?
MyNameIsKappa said:
Thank you! I upgraded to this ROM and i can confirm that is perfect!
Could you tell me please how did you change the long press search key to open another application?
Click to expand...
Click to collapse
/system/usr/keylayout/qwerty.kl
change
#key 127 SEARCH WAKE_DROPPED
#key 217 CAMERA WAKE_DROPPED
to
#key 127 SEARCH WAKE_DROPPED
#key 217 SEARCH WAKE_DROPPED
pikachukaki said:
/system/usr/keylayout/qwerty.kl
change
#key 127 SEARCH WAKE_DROPPED
#key 217 CAMERA WAKE_DROPPED
to
#key 127 SEARCH WAKE_DROPPED
#key 217 SEARCH WAKE_DROPPED
Click to expand...
Click to collapse
Thank you, it works !
MyNameIsKappa said:
Thank you, it works !
Click to expand...
Click to collapse
np!!i want it to have the mini menu so i can took screenshots...how is your battery drain??this is my only concern with this rom!
I do not understand a thing, is based on ics?
Kautuak said:
I do not understand a thing, is based on ics?
Click to expand...
Click to collapse
No its based on 2.3.9 miui but has ics animations...its translated from chinese but you can get the picture of what about this rom is!

[Q] Disable Touch To Wake

Is there a way to disable touch to wake on my LG G Watch R?
I like to cross my arms and when wearing a t-shirt it constantly wakes the screen.
I want to avoid Theatre Mode as I want to be able to glance at the screen and see the time.
Any suggestion will be greatly appreciated.
Thanks in advance
mark3180 said:
Is there a way to disable touch to wake on my LG G Watch R?
I like to cross my arms and when wearing a t-shirt it constantly wakes the screen.
I want to avoid Theatre Mode as I want to be able to glance at the screen and see the time.
Any suggestion will be greatly appreciated.
Thanks in advance
Click to expand...
Click to collapse
+1 intrested to this. I have a lg g watch r.
In Cinema Mode i have Touch2Wake disabled but watch dont show anything and does not vibrate. It becomes really useless if it does not vibrate In Cinema Mode.
mark3180 said:
Is there a way to disable touch to wake on my LG G Watch R?
I like to cross my arms and when wearing a t-shirt it constantly wakes the screen.
I want to avoid Theatre Mode as I want to be able to glance at the screen and see the time.
Any suggestion will be greatly appreciated.
Thanks in advance
Click to expand...
Click to collapse
I am also searching for this:good:
I've been looking everywhere for a solution to this. I hasn't even considered it as an issue, but just a couple of days is enough to make me realise this is a requirement. I can't believe it didn't come up in development! Aside from your own accidental touches, there's also the issue of inquisitive fingers from children touching that nice shiny screen... Tapping the side button to wake the screen would be perfect (whilst retaining the monochrome screen and notifications).
Cinema mode is really dumb. Just very poorly thought out. There has got to be a way to disable touch to wake. Or even enable vibrating notifications in cinema mode.
Yes there is a way
First you have to install twrp on your watch. Because you need the acces to some files. When you have installed, start in recovery mode, and go to mount and press system. Connect your watch to your computer and open adb,
adb root
adb push /system/usr/idc/sec_touchscreen.idc <choose where you want to have the file in your pc>
Click to expand...
Click to collapse
Make a copy of the file, and open it with notepad++ or other file editor. YOU will se a think like this
# Copyright 2014 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Input Device Calibration File for the Dory touch screen.
#
device.internal = 1
touch.deviceType = touchScreen
touch.orientationAware = 1
touch.wake = 1
Click to expand...
Click to collapse
So remove the part of ( touch.wake = 1 ) and save (make first a copy of the file), Go to adb
adb pull <where you have the file> /system/usr/idc/
Click to expand...
Click to collapse
Restat the watch and you will se that the screen is not goin to turn off, pressing the button of your watch. Restart other time the watch and go to recovery.
With the copy of the file, mount other time system on twrp and go to adb
adb pull <where you have the copy> /system/usr/idc/
Click to expand...
Click to collapse
Restart the watch other time. This work for my, but i am using an alpha for gear 2 neo with android, so probably this might be a bug.
dataonlycod said:
First you have to install twrp on your watch. Because you need the acces to some files. When you have installed, start in recovery mode, and go to mount and press system. Connect your watch to your computer and open adb,
Make a copy of the file, and open it with notepad++ or other file editor. YOU will se a think like this
So remove the part of ( touch.wake = 1 ) and save (make first a copy of the file), Go to adb
Restat the watch and you will se that the screen is not goin to turn off, pressing the button of your watch. Restart other time the watch and go to recovery.
With the copy of the file, mount other time system on twrp and go to adb
Restart the watch other time. This work for my, but i am using an alpha for gear 2 neo with android, so probably this might be a bug.
Click to expand...
Click to collapse
After you restart the second time you can use the button to wake and not the touch screen?? I will try this then thank you.
-RioT- said:
After you restart the second time you can use the button to wake and not the touch screen?? I will try this then thank you.
Click to expand...
Click to collapse
Yep you can use it to wake up the device. But as I say, make a backup because this happen with my alpha of the gear 2 neo, so probably this is not going to work with other devices. Just in case xD
Works for me on LG G Watch R
The file name is different "synaptics_rmi4_i2c.idc"
Same edit, copied to sdcard and moved in recovery to /system/usr/idc/ as mentioned above.
I have swipe menu still available and I can swipe down for the quick toggles.
Button is used to wake (and I use screen always on)
Going to be interesting how this performs in the shower and in general. Thanks to the suggestion posted.
Any update on this after using it for a while? Looking to apply this to my LG G watch R running the Urbane port.
Ok well i tried it any ways and i still have the problem when my arms are crossed my arm starts doing things on my watch...
Starting from version 1.6 this app supports wake on touch changing - https://play.google.com/store/apps/details?id=com.sssemil.advancedsettings (here is apk - View attachment AdvancedSettings-v1.6-11.apk)
I downloaded the advanced settings app tried the disable touch wake... it doesn't wake but you can still scroll notifications and long press to change the face.
Any chance of completely turning off the touch screen while in sleep...
..
castructuraleng said:
I tried the Advanced Settings app on my LG Watch Urbane 2nd Edition with Android 6.0.1, which is not rooted. It has an option for "Touch to wake screen" that I tried to set to "off"; however, when I go back to look at it, it is always set to "on". Do I need to root to have this stay, or is the app just not compatible with 6.0.1?
Update... just answered my own question. It appears you need to be rooted to do this.
Click to expand...
Click to collapse
Yep, it works on Marshmallow 6.0.1 when Rooted. Just tested it on my Huawei Watch.
..
I installed "Showear". You can set a simple touch pattern to unlock the watch. Crossing your arms will no longer trigger any action on your watch (except making the screen on).
..
..
Hi m8. I've done this on my LG urbane and works just fine ty a lot... but i modified a little your steps...
1) My lg urbane is rooted
2) I went to the ADB folder in my PC (using windows explorer) then using shift+right click i select "open command window here"
3) in this command window i did:
adb reboot bootloader
fastboot flash recovery (starts twrp)
in the TWRP:
Go to "Mount"
tick the "system" box
In the command window :
adb pull /system/usr/idc/synaptics_rmi4_i2c.idc (Dont need to select the folder, will appear in the ADB folder used to open the command window)***
*** When i tried to write the destination folder have not worked so i strongly advise not to fill this part, the command in the beginning is PULL not PUSH to take from the device and the file to be taken from the device had a different name as someone have stated before ***
4) In the notepad i did
I opened the file with the notepad and edit "touch.wake = 1" to "touch.wake = 0" (I did not delete this part just change the value)
5) in the command window:
adb pull <where you have the file> /system/usr/idc/
6) Reset my phone and works great!

[XAP/APP] Set BootApps for Lumia.

Hi folks,
This is very simple app that configures boot entry for boot apps on hardware key.
i. e. For flashmode app on Volume Up, reset app on volume down.
Nothing is special in this app but i used it for my simply handy process and I just released it here.
If do you have your own custom entries in bcd, then this is usefull app for you.
Requirements:-
- InteropServices and NdtkSvc is need to be work.
- Currently only for Lumia Phones.
Enjoy
Reserved for something else..
Can we boot sdcard stored system images? https://technet.microsoft.com/en-us/library/gg318056(v=ws.10).aspx
augustinionut said:
Can we boot sdcard stored system images? https://technet.microsoft.com/en-us/library/gg318056(v=ws.10).aspx
Click to expand...
Click to collapse
Yes,
But this application itself doesn't create any new entry into BCD Store.
It's configures boot entry on hardware buttons to boot in which app on which button on early boot process.
If do you have entry in bcd store for SD Card then it will boot from there.
I used this app because my device don't have a camera button and most of MS Device. So I can't choose any app from boot menu due to lack of camera button (Selection Key). I can only make default entry. That's It.
Using This appnow I've total 3 selections.
1. Is default.
2. Is Volume Up.
3. Is Volume Down.
How the app really works??i didn't understood anything..sry for my noob question.but what is the app actually do, bro?what can i do with this app?can u please explain it for me.and once again sry for my noob question.

Guide For customize U-touch On OREO based rom And enable Soft Nav Bars

Hello everyone ...First of all I want to write that these trick are for all version of android(6.0, 7.0, 8.0)
Lets go straight to the point.
Don't forget to check the screenshots below
I'm going to cover two topics
1. Customize U- touch
2. Enable nav bars
1. Customize U- touch
Step 1- Download any root browser (recommend Root browser classic by JRummy apps)
https://play.google.com/store/apps/details?id=com.jrummyapps.rootbrowser.classic&hl=en
All u can get in screenshots below
Step 2- Open system
Step3- Open usr
Step 4- Open Keylayout
Step 5- Open fpc1020tp.kl file as text file via RB text editor
Step 6- YOU will get this
Key 158 BACK VIRTUAL
Key 249 MENU
Key 254 APP_SWITCH
Key 183 HOME VIRTUAL
Step 7- Now remember this
Space between back virtual and home virtual is 10 space(press space 10 times before writing virtual)
Key 158 is single tap
Key 249 is swipe right
Key 254 is swipe left
Key 183 is long tap
For google assistant just type
ASSIST VIRTUAL
Add any command after any key you want
Step 8- Edit, save and reboot
Now its your decision how you want to customise it..... I'll attach some screenshots of users below so you get an idea ...
2. Enable soft navbars
Just go to system--open build.prop as text file via RB editor-- add these lines to the end and save and reboot
qemu.hw.mainkeys=0
Bro thanks for the awesome post.. Whats the command for screen lock and Screenshot? I will edit it accordingly
Here is the magisk module which modifies u-touch activities..
https://forum.xda-developers.com/lenovo-zuk-z2/themes/module-t3695560
ashiskar said:
Bro thanks for the awesome post.. Whats the command for screen lock and Screenshot? I will edit it accordingly
Click to expand...
Click to collapse
Dont know about that command...but u can just try and write like screenshot and screen lock ...may they work...if not edit it back...this method is safe..or u can try any app from play store which give options for fingerprint customisation
Shubhi singhal said:
Dont know about that command...but u can just try and write like screenshot and screen lock ...may they work...if not edit it back...this method is safe..or u can try any app from play store which give options for fingerprint customisation
Click to expand...
Click to collapse
But its read only.. I cant find the permissions to change..using file explorer root add on
Edit: got the read and write
ashiskar said:
But its read only.. I cant find the permissions to change..using file explorer root add on
Click to expand...
Click to collapse
Is ur rom rooted?
Can someone assist to configure the button long press for Google assistant instead of long tap?
Shubhi singhal said:
Dont know about that command...but u can just try and write like screenshot and screen lock ...may they work...if not edit it back...this method is safe..or u can try any app from play store which give options for fingerprint customisation
Click to expand...
Click to collapse
For screen lock type SLEEP.
Kiranbhand1 said:
Can someone assist to configure the button long press for Google assistant instead of long tap?
Click to expand...
Click to collapse
I think for pressing the button there is another file to edit not fpc file i think generic.kl
Kiranbhand1 said:
Can someone assist to configure the button long press for Google assistant instead of long tap?
Click to expand...
Click to collapse
Ok so I try this really cool app button remaper...works absolutely good....now u can customise home button press not tap....Enjoy
Shubhi singhal said:
Ok so I try this really cool app button remaper...works absolutely good....now u can customise home button press not tap....Enjoy
Click to expand...
Click to collapse
Requires pro to do anything. Useless.
---------- Post added at 02:03 AM ---------- Previous post was at 01:58 AM ----------
Fails to save build.prop
Chadlinje said:
Requires pro to do anything. Useless.
---------- Post added at 02:03 AM ---------- Previous post was at 01:58 AM ----------
Fails to save build.prop
Click to expand...
Click to collapse
M still using button mapper without pro version working flawless for me....
For build prop: use the browser suggested in the first post..and u must have root access for this
TanajiKC said:
For screen lock type SLEEP.
Click to expand...
Click to collapse
Is there also a command for pulling down the notification window like it was with ZUI?
Cydas said:
Is there also a command for pulling down the notification window like it was with ZUI?
Click to expand...
Click to collapse
If it's working on zui then definitely there'll be a command ....if u can.... then flash zui and then open the same fpc1020kl file and copy the command
Shubhi singhal said:
M still using button mapper without pro version working flawless for me....
For build prop: use the browser suggested in the first post..and u must have root access for this
Click to expand...
Click to collapse
I am using the browser recommended in the first post and have given it root access too. Still fail to save build.prop
thepranavjain said:
I am using the browser recommended in the first post and have given it root access too. Still fail to save build.prop
Click to expand...
Click to collapse
You can use any build prop editor from the play store
And which "Key" is responsible for a long press and press on the u-touch?
mega_bodry said:
And which "Key" is responsible for a long press and press on the u-touch?
Click to expand...
Click to collapse
For press not tap....download button mapper from play store works very well...
Because fpc file is only for tap
Not for press
how to call "status bar"???
---------- Post added at 05:20 PM ---------- Previous post was at 04:23 PM ----------
juniofdm said:
how to call "status bar"???
Click to expand...
Click to collapse
iam read Google DOCs, but dont find...
https://source.android.com/devices/input/key-layout-files
does anyone know the command to go back to prev app?

Categories

Resources