device.hijack
Class HiJackService
java.lang.Object
android.os.Binder
device.hijack.IHiJackService.Stub
device.hijack.HiJackService
- All Implemented Interfaces:
- android.os.IBinder, android.os.IInterface, device.hijack.IHiJackService
public class HiJackService
- extends device.hijack.IHiJackService.Stub
Nested classes/interfaces inherited from interface device.hijack.IHiJackService |
device.hijack.IHiJackService.Stub |
Nested classes/interfaces inherited from interface android.os.IBinder |
android.os.IBinder.DeathRecipient |
Fields inherited from interface android.os.IBinder |
DUMP_TRANSACTION, FIRST_CALL_TRANSACTION, FLAG_ONEWAY, INTERFACE_TRANSACTION, LAST_CALL_TRANSACTION, LIKE_TRANSACTION, PING_TRANSACTION, SYSPROPS_TRANSACTION, TWEET_TRANSACTION |
Constructor Summary |
HiJackService(android.content.Context context)
|
Methods inherited from class device.hijack.IHiJackService.Stub |
asBinder, asInterface, onTransact |
Methods inherited from class android.os.Binder |
attachInterface, clearCallingIdentity, dump, dump, dumpAsync, finalize, flushPendingCommands, getCallingPid, getCallingUid, getCallingUserHandle, getInterfaceDescriptor, getThreadStrictModePolicy, isBinderAlive, joinThreadPool, linkToDeath, pingBinder, queryLocalInterface, restoreCallingIdentity, setThreadStrictModePolicy, transact, unlinkToDeath |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HiJackService
public HiJackService(android.content.Context context)
getCurrentKCMapFile
public java.lang.String getCurrentKCMapFile()
throws android.os.RemoteException
- This function reads current KCM file path.
- Returns:
- file path with String
- Throws:
android.os.RemoteException
changeKCMapFile
public int changeKCMapFile(java.lang.String path)
throws android.os.RemoteException
- This function changes key map with new KCM file.
- Parameters:
path
- new KCM file path with String
- Returns:
- Zero indicates success; Nonzero indicates failure
- Throws:
android.os.RemoteException
removeKCMapFile
public boolean removeKCMapFile()
throws android.os.RemoteException
- This function removes a user changed KCM file and sets with default KCM file.
- Returns:
- true indicates success; false indicates failure
- Throws:
android.os.RemoteException
getTestMode
public int getTestMode()
throws android.os.RemoteException
- Throws:
android.os.RemoteException
hijackingKey
public int hijackingKey(int keyCode,
boolean isDown,
boolean useCache)
throws android.os.RemoteException
- Throws:
android.os.RemoteException
getHijackingKeys
public HijackingKeys[] getHijackingKeys()
- This function gets the key list to be able to re-map to.
- Returns:
- key list to be able to re-map to with HijackingKeys array
setAllHiJackData
public int setAllHiJackData(HiJackData[] dataList)
- This function updates the key map DB with new HiJackData list.
- Parameters:
dataList
- new HiJackData array
- Returns:
- mapping count with int
- See Also:
getAllHiJackData()
getAllHiJackData
public HiJackData[] getAllHiJackData()
- This function gets all probrammable key data from key map DB.
- Returns:
- all probrammable key data with HiJackData array
- See Also:
setAllHiJackData(device.hijack.HiJackData[])
updateSettings
public void updateSettings()