[HACK] [PLK-L01] Smart Key Remap (requires ROOT) - Honor 7 General

{
"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"
}
Do not attempt this if you do not know what you are doing, it could leave your phone unusable! - I am not responsible for your mistakes
If you like the SmartKey how it is, this is not for you, it will render the smartkey app useless until you change the settings back!
With that out of the way...
I listen to a lot of music via my phone (driving, work, etc.) I wanted the SmartKey to skip to the next track. As I see it, that's not possible with the smartkey app, just basic app launching.. (someone please correct me if I'm wrong!)
This should work with a number of system functions, called by key presses, but I'll focus on the one I wanted. See the bottom of this post for others..
You need ROOT! I did all of the following via the very excellent "root explorer", but can be done in the shell, adb, or your favourite app that allows such things as editing /system files.
Let's Go!
locate and backup the following file: (root explorer does auto-backup on edit/save)
Code:
/system/usr/keylayout/Generic.kl
edit this /system/usr/keylayout/Generic.kl file
half way down you will see :
Code:
[B]key 194 SMARTKEY[/B]
place a # in front of this line (thus removing the SMARTKEY app functionality from this key press. Also gives us an easy way to undo.)
under the SMARTKEY line, add a new line with the same keybind "key 194" followed by the function required, in my case "MEDIA_NEXT":
Code:
#key 194 SMARTKEY
key 194 MEDIA_NEXT
Save and close the file
Restart phone
Done
The bonus is that a double click will move to next album :victory:
---------------------
To Revert Back
edit the file again
remove the line you added
remove the hash, leaving the file as it was:
Code:
key 194 SMARTKEY
(or replace it with the backup!)
Restart the phone
Done​---------------------
There are a number of useful media functions that can be mapped:
Code:
MEDIA_PLAY
MEDIA_PAUSE
MEDIA_FAST_FORWARD
MEDIA_NEXT
MEDIA_STOP
MEDIA_PREVIOUS
MEDIA_REWIND
VOLUME_MUTE
---------------------
There are other non-media functions, all listed in the file you've been editing.. Play with it, if you're brave. Just remember not to wipe out the whole file or none of you buttons will work!
It should also work with other Honor 7 variants, but I cannot guarantee that the key-bind number is the same (or even if it's the same file!)
Cheers.

Related

Command to delete a file via the run dialog

I am trying to delete a file in windows mobile 5.0 via the "run dialog". I was expecting that "del <filename>" would do the trick but that generates an errormessage saying that the file "del" could not be found. Can anybody advise me what syntax I need to use to delete files via the run dialog ?
WM5 / WM6 Classic and Professional RUN Dialog
(A little late reaction, but..)...
The 'RUN Dialog' does what is says!
Both in WM PocketPC / Windows OS PC we can run executables like;
beam.exe (strangly enough no shortcut for this *.exe with or without using TF3D).
ContactEditor.exe (idem).
DataDisconnect.exe (idem).
eT9MyWords.exe (idem).
FieldTest.exe (idem) .
*more shortcuts to nice *.exes which R 'missing' ah well...
Only on Windows PC we have that 'command' which is typed after Run (WindowsKey+R)!
Then after typing cmd/command and getting the MSDOS PROMPT you/we/I could use the command ;
DEL
-=[ WM5 / WM6 Classic and Professional 'RUN Dialog' ]=-
On the main Today screen of a WM Pocket PC (Windows Mobile Professional or Classic) you can tap and hold down the ‘Action’ key while tapping and holding the stylus on the clock shown on the nav bar, then hold and slide to run, then release and tap run.
!!! The ‘Action’ key is usually the center of the D-Pad or CTRL if you are using the former SIP emulator;
{
"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"
}
(It's just a picture, I don't have this 'skin', I am still looking for it though ).
When you release the ‘Action’ key a small popup menu will appear,
and you can select the ‘Run’ option which will display a small dialog. Within this dialog you can enter the path to any executable, as well as any required command line parameters.
!!! As an additional tip, did you know that if you tap and hold without the ‘Action’ key being pressed, a different popup menu will appear? This one allowing you to select between an analogue ~ and digital clock being displayed on the navbar!
Senax

Home screen direct link (TaskMgr) unremovable

My current problem is that the TaskMgr.exe disappears from the start menu, after a soft reset. Is there a reason/fix for this?
The other problem caused by this is, that my shortcut in the home screen becomes a dead link and is not removable. If I go to "menu->remove direct link->mark the task manager shortcut->finish" it simply stays there.
Even if I copy the taskmgr.exe to the start menu and the link is working again it wont be removable.
Is this a known issue and what can I do? Any help is much appreciated.
The whole thing looks like this:
{
"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"
}
Thanks in advance,
eivissa
Try
Go to:
Registry Key:
HKLM/Software/Htc/Manila/Home/11
(If I counted correctly, this is the 12th item, and numbering begins with 0)
There should be some Values specifying the IconPath
and ProgramPath
They usually point to some *.lnk file
See if this file exists,
and if the Lnk file exists, see if the program it points to also exists.
(I dont remember how to check where a .LNK file point too,
maybe Edit would do)
Edit:
Oh, Yes, see if the Value
IsSet (under the same key) is set to 1.
Thanks very much,
editing programm path and link path did the trick that now the Icon is back there and the link works even after a soft reset.
Though I still cant delete the link from the home screeen. There is no error message or anything. The Icon just stays there after clicking "Finish" to delete it.
EDIT: IsSet is set to 1.
Well . . .
eivissa said:
Thanks very much,
editing programm path and link path did the trick that now the Icon is back there and the link works even after a soft reset.
Though I still cant delete the link from the home screeen. There is no error message or anything. The Icon just stays there after clicking "Finish" to delete it.
EDIT: IsSet is set to 1.
Click to expand...
Click to collapse
I had a problem deleting element after playing a bit with the registry, and leaving an item all set, but with "IsSet" set to 0.
In that case - everything showed, but I could not delete the element.
(There is another value there - I think "IsExist"
maybe that has something to do with it as well,
or maybe - just play a bit with the other values in theis key, and compare them to values in keys (like 0,1,2 . . .), and see if something changed
Or -
As some say
If it works (for your needs) - dont touch it)

[Q] Delete data on SQLite

If this is the wrong section, kindly move it. Thanks!
I'm developing an android application wherein I can add, view and delete data from SQLite. I'm already done with add and view and my problem is the deleting, I want it to be like this:
I
{
"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"
}
so when I go to View all, a "DELETE" button will be shown beside the data, and clicking the button will remove the data from Android's SQLite
junchronick said:
If this is the wrong section, kindly move it. Thanks!
I'm developing an android application wherein I can add, view and delete data from SQLite. I'm already done with add and view and my problem is the deleting, I want it to be like this:
I
so when I go to View all, a "DELETE" button will be shown beside the data, and clicking the button will remove the data from Android's SQLite
Click to expand...
Click to collapse
So is the question " what is the command to remove information from the databases " ?
Assuming that you have already tried and met resistance... what is stopping you from have a "delete" button that actually ADDS a null value to to the key,name, and setting ?
I've never made it into a button like you are saying, but having null values replace the undesired has always worked well for me,
Hope that is helpful.
junchronick said:
If this is the wrong section, kindly move it. Thanks!
I'm developing an android application wherein I can add, view and delete data from SQLite. I'm already done with add and view and my problem is the deleting, I want it to be like this:
I
so when I go to View all, a "DELETE" button will be shown beside the data, and clicking the button will remove the data from Android's SQLite
Click to expand...
Click to collapse
Your image doesn't show up so I assume its a list view where you will view all entries. In this case in the list view xml put a delete button, and in the activity you have to implement a custom adapter that listens for the button click (Google "custom simplecursoradapter"), and to delete the file it would be dbHelper.delete(Table, id, null) instead of dbHelper.add or dbHelper.query.
hope this helps

[How To] enable CRT Animation for [2.3.x]

CRT Animation On/Off running any GB rom (2.3.x)
Here is the screen Off/On animations mod. An awesome tweak which makes your phone's sleeping animations like old tv's shutting down.
Lets Begin.
[NOTE: Im not responsible for any bricked devices.]
Things needed
1. JAVA - Click Here
2. APK MANAGER - Click Here
3. Notepad++ - Click Here
Procedure
1. Download all the above applications.
2. Open APKMANAGER folder and place your roms "framework-res.apk" in "place-apk-here-for-modding" folder.
(framework-res.apk is placed in "/system/framework/here")
{
"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"
}
3. Open APKMANAGER folder and open "Script.bat".
4. Open "script.bat" and press "9" and hit enter. (this decompiles your framework-res.apk)
5. If sucessful, close this script and go to "APKMANAGER"/"projects"/"framework-res.apk"/"res"/"values" folder. Open "bools.xml"
6. Change
"<bool name="config_animateScreenLights">true</bool>"
to
"<bool name="config_animateScreenLights">false</bool>"
7. Again open script.bat and click on "11". (It will compile the application)
8. It will ask whether it is a system application or not, type "y" and hit enter.
9. It will show
"Aside from the signatures, would you like to copy over any additional files that you didn't modify
from the original apk in order to ensure least # of errors (y/n)
Press "y" and hit enter!
10. It will do the extracting. DO NOT PRESS ANY KEY NOW.
11. Open "APKMANAGER" folder, there will be a new folder "keep". Delete "resources.arsc" file from there.
12. Now open script and hit enter.
And the most IMPORTANT part.
After flashing framework go to settings>Display>Animations, select "All Animations".
AND if you dont want the animation simply change
"<bool name="config_animateScreenLights">false</bool>"
to
"<bool name="config_animateScreenLights">true</bool>"
CREDITS
Daneshm90 for the APKMANAGER
me for the guide
worked on micromax a87
:thunbup:

[Tool][Windows] Cassini.1.2 - Now Compress Any App! (*)

{
"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"
}
Now Support all Apps! (*)​
Download - Cassini.1.2 - 3.5MB [Google Drive]
Download - Cassini.1.2 - 3.5MB [Dev-Host]​
About
First of all, the reason that this program took this much time to come out is because my career-deciding exams where on. So I'm sorry about that.
The newest edition features a GUI - like UI that helps user to easily create new projects (for rom or collection of apps) and manage them.
With the new algorithm the for compression you can ensure that almost all of your apps get compressed successfully! You just have find the perfect set of settings for that particular app. Use it ti compress apps and get a performance boost for your phone as well as save some space!​
Setting Up your PC!
Note: You can skip this step if you already have Java installed on your PC, or you don't want to use the Sign Apk setting for compression.
Download The following resources first:
Java SE Run-time Environment 7 [ Java Dependencies For Signing APK tool ]
Now let's begin setting up your PC,
Install the above mentioned programs.
Go to Advanced System Properties.
It looks like this:
Go to Environment Variables, then create a new System Variable, having name JAVA_HOME and value as the path where you have installed the JRE.
It looks like this:
Now after creating the JAVA_HOME variable, search for Path system variable in the System Variables list. Now this is a bit tricky. Once found click on it and then on Edit. Move the cursor to the end of the string till you see ";" (without quotes), add the path to your JRE bin folder just after it.
It looks like this:
Manual for Cassini.1.2 - Information about the program.​
Include this in your signature if you like and support Cassini and you are using the apps compressed by Cassini!
​
:good: Hit thanks if you liked it! :good:​
Screens for Cassini.1.2
Screenshots of Cassini.1.2

Categories

Resources