Swc intents - MTCB Android Head Units Q&A

Hello everyone,
I am trying to develop an app to replace the mode switch and map the swc media keys according to which app is opened.
Until now I managevto change between apps using the modeswich button , the previous playing app stops or get killed like it should do.
What I would like to also add, is the functionality to map the media keys of the swc, so that it controls s]tify when its opened, music app when using music app etc.
I cannot find anywhere the original intents being send when the media buttons are pressed, or which intent/activity skips radio stastion/plays next song in the original mtcapps. Can anyone help here?
I am planning to share the app here when its finished

p_mike83 said:
I cannot find anywhere the original intents being send when the media buttons are pressed, or which intent/activity skips radio stastion/plays next song in the original mtcapps. Can anyone help here?
I am planning to share the app here when its finished
Click to expand...
Click to collapse
Register a broadcast receiver for intents with action com.microntek.irkeyDown, and get the intExtra of keycode. Depending on the keycode, different methods are called in the native MTC apps.

agentdr8 said:
Register a broadcast receiver for intents with action com.microntek.irkeyDown, and get the intExtra of keycode. Depending on the keycode, different methods are called in the native MTC apps.
Click to expand...
Click to collapse
Thanks for the help. I knew that it has to do with com.microntek.irkeyDown. do you know how is the syntax with the keycode included in the intent? there is also an intentcom.microntek.irkeyUp, but I cannon understand the difference.
What are the methods that are called in the mtcapps? Can you help me with the call for next/previous preset of the radioapp, and next/previous track of the music/DVD app?
As of now the app changes the mode between radio/music/DVD/spotify and it successfully stop the music played from the other apps, so only the active app plays music.
As I am planingbto release it here, I would like to have suggestions from many of you , what apps you want to be included here

p_mike83 said:
Thanks for the help. I knew that it has to do with com.microntek.irkeyDown. do you know how is the syntax with the keycode included in the intent? there is also an intentcom.microntek.irkeyUp, but I cannon understand the difference.
What are the methods that are called in the mtcapps? Can you help me with the call for next/previous preset of the radioapp, and next/previous track of the music/DVD app?
As of now the app changes the mode between radio/music/DVD/spotify and it successfully stop the music played from the other apps, so only the active app plays music.
As I am planingbto release it here, I would like to have suggestions from many of you , what apps you want to be included here
Click to expand...
Click to collapse
The keycode is an integer, and its value is compared to determine what happens. Take a look at the android.microntek.service.MicrontekServer class in the MTCManager.apk. On the FTP server listed in the wiki, you'll find a VTS project that I zipped up, with all of the MTC apps decompiled.
com.microntek.irkeyUp is just the intent sent after the button is released. I don't think I've run across anything that really uses this though.

agentdr8 said:
The keycode is an integer, and its value is compared to determine what happens. Take a look at the android.microntek.service.MicrontekServer class in the MTCManager.apk. On the FTP server listed in the wiki, you'll find a VTS project that I zipped up, with all of the MTC apps decompiled.
com.microntek.irkeyUp is just the intent sent after the button is released. I don't think I've run across anything that really uses this though.
Click to expand...
Click to collapse
thank you, i will check it out in the next days.

agentdr8 said:
The keycode is an integer, and its value is compared to determine what happens. Take a look at the android.microntek.service.MicrontekServer class in the MTCManager.apk. On the FTP server listed in the wiki, you'll find a VTS project that I zipped up, with all of the MTC apps decompiled.
com.microntek.irkeyUp is just the intent sent after the button is released. I don't think I've run across anything that really uses this though.
Click to expand...
Click to collapse
Hey, I know this is quite an old topic. But could you point me to the location of the VTS project you mentioned?
What I'm looking for is to patch stock MTC apps so that I can make calls using only buttons on the steering wheel. It looks so dumb that I have to make so many touches of the screen (which distracts from driving) just to make a call to one of recent persons... At least it works this way on my device. And there is a hope that it's got fixed on the newer versions..

Rustam_G said:
Hey, I know this is quite an old topic. But could you point me to the location of the VTS project you mentioned?
Click to expand...
Click to collapse
It used to be on the FTP server that was hosted at huifei.fs-fileserver.de. I don't think that exists any more though. Unfortunately I no longer have the original ZIP file.

Related

Im a developer, I know some basics. Give me ideas.

As the title says, Im a developer but I dont know anything majorly complicated.
I want YOUR ideas for something to make.
Stuff I know:
Things to do with the file system - copy, paste, delete, create etc
Read/write/create text files
Simple or even more complex UIs (nothing too extreme though)
most of the basic stuff
Heres a video of stuff Ive done before:
http://www.youtube.com/watch?v=g3_5xBqf-eQ
If you have any idea for simple apps, please let me know and Ill tell you if I can make them or not
Thanks
Maybe a new app to replace and improve SmileySMS ( development is stopped, and on windows mobile we can't have smileys in sms without this buggy app).
I wish a prog for my HD2, very simple : Use Webradio (with url) as ringtone !
Hi Cris,
I am looking for an app that can do the following:
Disable the touchscreen.
Why?
It's annoying when you watch movies and accidentaly touch the screen (especially with core player).
The app would have to disable the touchscreen after a set time, so you have enough to start the movie (or other application).
A certain area of the screen would have to be defined as touchable, so that you can disable again. Maybe with a gesture? ie. swipe from bottom left hand corner to top right???
just an idea
idea
it would be amazingg if you could make an application that allows the drag down notifications panel like android has
antdawg702 said:
it would be amazingg if you could make an application that allows the drag down notifications panel like android has
Click to expand...
Click to collapse
you know what, im gonna look into this one.
I cant promise anything.
I cant say I have any idea how to do that.
but I can say that im gonna look into it ^_^
wm7
can you make a windosmobile7series for nontouchscreen windowsmobile.need help with it.its just navigaating threw it with the arrow keys
Hi Cris,
Can I suggest a application that can do 2 things which I can't find something similar to this (suggestion).
To create a application for both "Shopping List" + "Inventory".
Let me know if you interested, I can share the idea ..
Hope you can consider it .. thanks
antdawg702 said:
it would be amazingg if you could make an application that allows the drag down notifications panel like android has
Click to expand...
Click to collapse
do you have a screenshot?
how about an application like e-mail and walk for the iphone..........so that wed be able to type and walk at the same time with the background being whats in front of us fed by our camera....
I would like a app that does the following:
All for the Sense music tab!
When NOT in a call:
Long press : Play / pause
Pressed twice : Next song
(If possible:
Pressed three times: previous song
pressed shot : call)
When you are being called:
short press: pickup / hangup
PLUS
The hardware buttons (buttons on the PHONE) MUST be disabled,
But ONLY when the headset is plugged in!
With no headset plugged in everything should be as normal!
Could some developer please make this?
Maybe you can use code from the following:
http://forum.xda-developers.com/showthread.php?t=502881
http://forum.xda-developers.com/showthread.php?t=556801
Great Greet Giblet
I've actually been pitching this one around but no luck yet ... A small GPS toggle cmd app. Here's an OSS project that may have usefull code.
What I would like it to have is:
1- Commands to toggle GPS on or off
2- Stay running and output number of connected satellites and connection status (position fixed/not fixed) as a reg name/value
3- Maybe other stuff (like coordinates, hour/date, update system time... but what I really want is the first point 1 and 2).
Why would I want such an app? To add a GPS connection manager to my today screen HS++ skin (also maybe make a script that will only launch my device navigation software when it has a position fix).
PS:
Other stuff I'd like to see are either other small cmd apps or small updates/fixes of some OSS apps like GSFinder+ or even emulators (small stuff like adding onscreen controls using existing sources, emulate mutli touch or improving controls by mixing the use of oncreen keys with hw ones or minor GUI standardization and fixes related with new devices screen resolution).
cris_rowlands said:
As the title says, Im a developer but I dont know anything majorly complicated.
I want YOUR ideas for something to make.
Stuff I know:
Things to do with the file system - copy, paste, delete, create etc
Read/write/create text files
Simple or even more complex UIs (nothing too extreme though)
most of the basic stuff
Heres a video of stuff Ive done before:
http://www.youtube.com/watch?v=g3_5xBqf-eQ
If you have any idea for simple apps, please let me know and Ill tell you if I can make them or not
Thanks
Click to expand...
Click to collapse
OK here is an idea for a simple but useful application please would you consider making this
http://forum.xda-developers.com/showpost.php?p=5711236&postcount=1
Slide2Action
Hi cris, How about a simple slide to do anything? Just a scrollable list of blank sliders that you can assign a function too, eg launch an app, blank screen, reset, close all, new message, WiFi, bluetooth etc. the list could be endless. Just a scrollable action screen with sliders instead of buttons. Transparency would be a bonus for a nice visual.
well folks, youve given me plenty of ideas.
A few of them ill try to work on, sadly many of your ideas are a little beyond me
Anyway, Ive got some stuff to be doing so I wont be checking out this thread anymore.
If any developers feel they want to take up any of these, please feel free ^_^
zinconnu said:
Maybe a new app to replace and improve SmileySMS ( development is stopped, and on windows mobile we can't have smileys in sms without this buggy app).
Click to expand...
Click to collapse
I was going to make this same suggestion. I hope somebody with the skills stumbles upon this and can continue the development for this.
cris_rowlands said:
well folks, youve given me plenty of ideas.
A few of them ill try to work on, sadly many of your ideas are a little beyond me
Anyway, Ive got some stuff to be doing so I wont be checking out this thread anymore.
If any developers feel they want to take up any of these, please feel free ^_^
Click to expand...
Click to collapse
Hi Cris,
if you can consider my suggestion to develop a "shopping List" + "Inventory" apps I think is not that difficult to develop. It almost similar to like any shopping list app & you be able to keep track of the inventory list maybe with photo or pic is good enough.
pls do consider this apps, as both iPhone & WinMo still do not have such app yet. If you do build up, you will be the 1st to come out with.
Lockscreen Slider
Please try to do a Lockscreen Slider for WM 6.5
http://forum.xda-developers.com/showthread.php?t=638230
Thanks
salo1 said:
Please try to do a Lockscreen Slider for WM 6.5
http://forum.xda-developers.com/showthread.php?t=638230
Thanks
Click to expand...
Click to collapse
yes let's steal some more apple patents!!! The idea is great! Few months ago I already asked this topic in the S2U thread but no response, probably my request got overseen or the guy is just too busy with other stuff.

Creating simple contacts' application

Hello all!
I am looking into development of something which is similar to people's list in people hub. What I want is a huge list of people on one page with (of course) LonglistSelector. When I tap a member of the list, I want the user to be navigated to the details page of that item. User needs to be able to manipulate and modify the data on the details page. The list is going to be real huge. I have a few question about the approach.
1. What is the best way to store data? I am thinking of creating local database with a few columns with person's name in one column, age in another etc.
If this is the approach to go for, can anyone provide me detailed description about the databases? I have deeply gone through the MSDN, WindowsPhoneGeek and many other documentations. I feel dumb about the whole database scenario.
2. Is XML list as database a good approach for large amounts of data or it will be pain?
i would say SQL CE is your best bet to store huge amounts of data. XML is slow at large volumes of data when compared to JSON. I would prefer JSON over XML.
darthveda said:
i would say SQL CE is your best bet to store huge amounts of data. XML is slow at large volumes of data when compared to JSON. I would prefer JSON over XML.
Click to expand...
Click to collapse
So basically, I need to go with the local database using LINQ. Now, how do I do that? As I mentioned, I have read intensively. However, I just don't seem to get hang of it.
akshay2000 said:
So basically, I need to go with the local database using LINQ. Now, how do I do that? As I mentioned, I have read intensively. However, I just don't seem to get hang of it.
Click to expand...
Click to collapse
I created my local database with LINQ based off this sample:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh286405(v=vs.92).aspx
First define the columns which you would want to create and then modify the sample code to suit your needs.
For contacts, there is an excellent sample available:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh286416(v=vs.92)
if you are stuck with some particular piece of code then let me know, i would be glad to help you out
darthveda said:
I created my local database with LINQ based off this sample:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh286405(v=vs.92).aspx
First define the columns which you would want to create and then modify the sample code to suit your needs.
For contacts, there is an excellent sample available:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh286416(v=vs.92)
if you are stuck with some particular piece of code then let me know, i would be glad to help you out
Click to expand...
Click to collapse
I had gone through those links earlier! Back then, they made very little sense to me. I have researched a bit by now. I will update here if I get stuck somewhere.
hi
i had read the thread now and maybe this example of MS can help you... it's not based on local database, but uses ASP.NET Web API!
so maybe this is a way for you..
darthveda said:
if you are stuck with some particular piece of code then let me know, i would be glad to help you out
Click to expand...
Click to collapse
I'm attaching my code file to the post. When I try to run the app and click the button (it tries to add an item to the observablecollection) I get NullReferenceException error. Apparently, the collection's instant hasn't been created. But I tried to instantiate it using 'new' keyword - no luck. Am I doing anything wrong?
akshay2000 said:
I'm attaching my code file to the post. When I try to run the app and click the button (it tries to add an item to the observablecollection) I get NullReferenceException error. Apparently, the collection's instant hasn't been created. But I tried to instantiate it using 'new' keyword - no luck. Am I doing anything wrong?
Click to expand...
Click to collapse
solution folder will be better, you are using telerik controls, i can't recreate your solution.
It's done!
darthveda said:
solution folder will be better, you are using telerik controls, i can't recreate your solution.
Click to expand...
Click to collapse
Thanks for the response! After a lot of debugging and (almost literally) adding Debug.writeline after each line of code, I managed to solve it. It had nothing to do with the Database or the ObservableCollection. It was totally different - GroupDescriptor issue! More details here: http://stackoverflow.com/questions/...ion-while-adding-item-to-observablecollection
I'll post here if I get stuck with something again.
Again, thanks a lot!
Any reason you are using telerik controls? for starters and very simple programs, you can use controls from silverlight toolkit or coding4fun toolkit. i am using longlist selector which does the job just like the jumplist from telerik controls does.
darthveda said:
Any reason you are using telerik controls? for starters and very simple programs, you can use controls from silverlight toolkit or coding4fun toolkit. i am using longlist selector which does the job just like the jumplist from telerik controls does.
Click to expand...
Click to collapse
No specific reasons except that the Jumplist provides StickyHeader functionality. And animation framework seems nice addition too!

[APP]Smart IR Remote for HTC One 1.3.2

Smart IR Remote for HTC One 1.3.2
You can now use your phone as an Infrared Remote (IR Remote)
Why should you need to use more than one remote for all the devices you own ?
With Smart InfraRed Remote for your HTC One, you can add, create and customize any number of remotes, combining controls from any of your existing remotes. Imagine a single remote on which the CHANNEL UP button controls your Set Top Box from your TV provider, the VOLUME keys control your home theater system and the arrow keys control your TV's menu.
On top of all that, since you're holding a phone, why not use some of it's unique features?
AUTOMATIC MUTE WHEN YOU GET CALLED
Don't you hate it when you receive a call but can't hear the other person because the TV is too loud? Now, Smart Remote can automatically mute your current device when someone calls you.
FLOATING REMOTE (CHATHEAD)
Why should you need to switch apps just to send a command ? Activate Floating Remote in settings, and have a chathead-style remote available just one touch away!
BACKUP / RESTORE
Do you switch ROMs often ? Or maybe reinstall apps daily? The backup/restore feature will help you save your remotes, so you can get them back when you install again, without going through the setup process again!
MACROS
With our new advanced macro system, you can execute a series of commands one after the other (like turning on TV, then switching to HDMI 1), add customizable delays between commands, and reorder the commands as you wish.
AUTOMATED TASKS
Extra flexibility in customizing tasks, like sending any command you choose (like MUTE or POWER OFF) at a time of your choosing, or when your phone rings. Feel free to send us other actions upon which you would want to send IR commands!
With infrared - IR Blaster - already included in your phone, why shouldn't you make the most of it? Smart Remote can control your TV, Set Top Box, Lights, Projectors, etc.. Virtually anything that has an Infrared Receiver can be controlled by Smart Remote with the correct remote codes. And we're working 24/7 on adding more! Actually, we're working on adding DSLR camera support right now!
Link: MOD EDIT: Link Nuked (No Pass rar).
I actually purchased this from the play store when it was up there. I liked the app and wanted to support the DEV. I wonder why it disappeared.
I think he said he didn't have time to work on it anymore so he made it open source
Sent from my HTC One using Tapatalk 2
gmfeny said:
I think he said he didn't have time to work on it anymore so he made it open source
Click to expand...
Click to collapse
While that may be true, I have heard that a different developer has filed a complaint with Google because this app would have stolen their database with IR codes. Too bad since this app is way easier to use than the app from the company who complained about it. Not even mentioning the candy - this one looks very nice, much better than that other app which I shall not mention the name of.
By the way, the file posted above is version 1.3.2 while the developer has MOD EDIT: Link Nuked as well. If it comes back in the Play Store I recommend to support the developer - at which time this link should probably be deleted.
sanderg said:
While that may be true, I have heard that a different developer has filed a complaint with Google because this app would have stolen their database with IR codes. Too bad since this app is way easier to use than the app from the company who complained about it. Not even mentioning the candy - this one looks very nice, much better than that other app which I shall not mention the name of.
By the way, the file posted above is version 1.3.2 while the developer has MOD EDIT: Link Nuked as well. If it comes back in the Play Store I recommend to support the developer - at which time this link should probably be deleted.
Click to expand...
Click to collapse
Could you pls tell us / me where you got this info about stolen database or why the app isn't in the playstore anymore? I found nothing on the web and wanted to be sure, that this file isn't uploaded "wrong".
mmeidl78 said:
Could you pls tell us / me where you got this info about stolen database or why the app isn't in the playstore anymore? I found nothing on the web and wanted to be sure, that this file isn't uploaded "wrong".
Click to expand...
Click to collapse
X2
tjsooley said:
X2
Click to expand...
Click to collapse
@tjsooley and @mmeidl78
I have asked the developer of the app to comment on this thread. Let's wait and see what is he is able to share with us.
Thank You
Someone post apk fudge a rar.
Sent from my One using Tapatalk 4
Negative, this thread is not gonna happen. No way, no how. A paid app from Google Play or once was on Google Play should NEVER be posted freely about XDA, unless by the developer himself.
If you are the developer of this app and come across this thread, please contact me or another moderator, thank you.

[GUIDE] NFC-AAAC (NFC Assisted App Access and Control)

NFC-AAAC or NFC Assisted App Access and Control
Pretext:
I have 2 children under the age of 3, all of their content (audio/video) is digital accessed. This created a disconnection for them, as they are not able to play /change the content unless my wife or I change it for them. I know there is an interest for them to be able to change the content themselves as when we have Netflix or Pandora open on the touch enables screens they are all was trying to pick the show/music they like. The few places where they do have a physical medium to play content,
The DVD player/CD player (note we have it backed up digitally), there is much interest with the “desk”. The kids would love nothing more to remove and replace it over and over. Watching this behavior over some time has lead me to believe that a simpler solution would/could be doable.
This brings me to NFC tags, with a few add-on programs the NFC tag can be scripted to perform most complicated input tasks.
Goal:
To provide access to complicated tasks via NFC.
To allow a person of limited physical input abalaty to use smart phone tech.
This can include, the disabled, the young, the old.​ To allow access to tasks/apps while driving or when attention is needed other places.​
Current Scope:
Create tags for a radio station that can be quickly taped to change station/play album.
( Keeping the driver form looking at their phone while driving).​ Create tags that auto play Netflix/Amazon Prime/YouTube/Google +/etc videos.
This may include second screen casting​ Create tags to autolaunch/call via Skype/cell phones
Want to call grandma? Or have grandma get on Skype, etc.​ Create tags to attach to things around the house foods/shapes/flashcards etc.
When was this put in the fridge?
Send text to let people know the item is all gone etc.
What was this called.
Call support.​
Where I'm at:
I'm currently gathering URIs / intents for the tasks described.
I will be using a combination of the “NFC task launcher” and “Tasker” to complete the tasks.
I will be following up with more detailed guide on how to set up functions/tasks.​What I am looking for:
Help locating the URI / intents to call to complete tasks.
More tasks, Do have someone you know / you yourself finding something more complicated than it should be let me know and we can discuss how to fix.​
Current URI list
Note Most if not all the URIs are undocumented aka may stop working, I will try to keep the list up-to-date. Please let me know if any stop working.
Pandora:
Add/Play station: pandorav2:/createStation?stationId=<stationId>​
Netflix:
Play Tv Show: nflx://www.netflix.com/Browse?q=action%3Dplay%26movieid=http://api.netflix.com/catalog/titles/series/<ShowID>​Play Movie: nflx://www.netflix.com/Browse?q=action%3Dplay%26movieid=http://api.netflix.com/catalog/titles/movies/<MovieID>​
Skype:
Audio Call User: skype:<SkypeUser>?call​Audio Call Phone / Moble: skype:<Phone#>?call​Video Call: skype:<SkypeUser>?call&video=true​
YouTube:
Play Video: vnd.youtube:<VideoID>​
Mmm, interesting.
Bye!
! !
interesting ... how did you discover the uri to launch apps with arguments?
I also used a custom URI and NFC Task Launcher to launch my app "Badge NFC" and store custom data inside the app database (look at my signature to get a playstore link) ...
furius said:
how did you discover the uri to launch apps with arguments?
Click to expand...
Click to collapse
All of the custom URIs prefixes are in the apps manifest.
If I'm lucky I can simply type it into google and find someone else that's done the work, (to get the data argument)
If not I used JD-GUI to look over the source code to trace the Android Intent path and see what the app is looking for.
Another way is to see is if the app has a web app interface. Aka if I go to the web site or get a share link, does the app autolunch the content.
I was a little confused with your question, hope this answers it.
Thanks for the interest.
odwdinc said:
I was a little confused with your question, hope this answers it.
Thanks for the interest.
Click to expand...
Click to collapse
Yes sure, that's what I was asking ... Cool!
I'll search in some of my favourite apps manifests to see if I can find something interesting ...
Inviato dal mio HTC One X con Tapatalk 4

Hooking hardware buttons

Hi,
Does anyone know of a thread/post including sample code of an XPosed module, explaining how to hook hardware buttons?
A tutorial would be great, but I guess my search skills are rather poor, I can't seem to find one.
If there isn't anything, then I guess I'll try to understand the source code here :
github.com/agentdr8/GoogleCamX/blob/master/src/com/dr8/xposed/gcx/Mod.java
but if there is anything you can point me to, please help!
Thanks.
binhexcraft said:
Hi,
Does anyone know of a thread/post including sample code of an XPosed module, explaining how to hook hardware buttons?
A tutorial would be great, but I guess my search skills are rather poor, I can't seem to find one.
If there isn't anything, then I guess I'll try to understand the source code here :
github.com/agentdr8/GoogleCamX/blob/master/src/com/dr8/xposed/gcx/Mod.java
but if there is anything you can point me to, please help!
Click to expand...
Click to collapse
That module isn't hooking the buttons directly, but the methods in which the keyCode int is being analyzed. Which button(s) are you after and in which scenario(s)?
agentdr8 said:
That module isn't hooking the buttons directly, but the methods in which the keyCode int is being analyzed. Which button(s) are you after and in which scenario(s)?
Click to expand...
Click to collapse
Any button would be okay, home button, volume up/down, power button, any one of them would suffice.
It would suffice if I could specifically hook one of those buttons and execute my own android code within a certain application context, but if it's not possible, then a global hook for one of the keys for all applications would also be nice.
I read the source code last night and yeah you're right. It hooks certain functions that in turn processes the keyCodes. I'm looking for a more general way to hook the buttons regardless of functions that already exist in the application which analyze the buttons pressed(which the above module uses). What if such function doesn't exist? What would I have to hook in order to intercept hardware key input?
Any suggestions?
binhexcraft said:
What if such function doesn't exist? What would I have to hook in order to intercept hardware key input?
Click to expand...
Click to collapse
Look at the source for framework.jar and android-policy.jar. There's a few places there to grab hardware keys globally.
But if you're only interested in a specific app context, I'd go through that app's code to see if there are any key event methods you can hook into. Might be easier.
agentdr8 said:
Look at the source for framework.jar and android-policy.jar. There's a few places there to grab hardware keys globally.
But if you're only interested in a specific app context, I'd go through that app's code to see if there are any key event methods you can hook into. Might be easier.
Click to expand...
Click to collapse
The application is heavily obfuscated with DexGuard, so it's kind of hard to find the right place to hook into.
By the way, is it even possible to hook into DexGuarded application functions? Cause the package, class, method names are all distorted into weird Unicode characters that don't even display correctly when opened in notepad. I'm not sure if XPosed can properly handle non ascii, wierd unicode symbols... is it possible?
But yeah, I'll look into framework.jar and android-policy.jar. If I were to hook a function in those, then I would have to hook the "android" application right?
Thanks.
binhexcraft said:
The application is heavily obfuscated with DexGuard, so it's kind of hard to find the right place to hook into.
By the way, is it even possible to hook into DexGuarded application functions? Cause the package, class, method names are all distorted into weird Unicode characters that don't even display correctly when opened in notepad. I'm not sure if XPosed can properly handle non ascii, wierd unicode symbols... is it possible?
But yeah, I'll look into framework.jar and android-policy.jar. If I were to hook a function in those, then I would have to hook the "android" application right?
Click to expand...
Click to collapse
You should be able to hook obfuscated methods the same. I'm not sure I've run across a DexGuarded app yet, but those with ProGuard have methods in classes like a.b.c.dd() and they work with Xposed, assuming you can figure out where you need to hook.
I believe "com.android.internal" is where you'd want to look for framework classes/methods.
I found what I am looking for!
http://forum.xda-developers.com/xposed/modules/app-home-volume-button-t2637235
https://github.com/rovo89/XposedMod...xposed/mods/tweakbox/VolumeKeysSkipTrack.java
https://github.com/MohammadAG/Xpose...m/mohammadag/enablecardock/EnableCarDock.java
Thanks for your help.
this how I hooked home button!
findAndHookMethod("android.view.View", lpparam.classLoader, "onKeyDown", int.class, KeyEvent.class, new XC_MethodHook() {
@override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
KeyEvent keyEvent = (KeyEvent) param.args[1];
if (keyEvent.getAction() != KeyEvent.KEYCODE_HOME || keyEvent.getAction() != KeyEvent.KEYCODE_BACK)
....;
}
});
i have the same problem...trying again standby
Forgive the necro but this seems like the most relevant thread for what I'm looking for.
With xposed edge not being updated for a13 and pbmc not working either I'm looking to write my own simple app to intercept volume down key presses so i can make double tap toggle the flashlight.
I've found a few examples of hooks but nothing has worked for a13, I would appreciate some insight into where to hook.

Categories

Resources