Double Tap to Wake on the Nexus 6 Without Root

A few weeks ago, we featured an app which allowed the Nexus 6 to regain the double tap to wake … more

Make Your Own Heat Sink for the LG Optimus 4X HD

Its not a rare occurrence that performing a resource heavy task on your Android device (e.g. … more

Learn How to Create an Old School Dialer

XDA is not only a great source for custom ROMs, kernels, and various modifications for numerous … more

USB Desktop Charger Roundup – XDA TV

Sometimes you learn one way to do something, and that’s the way you do it forever. You never … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[APP] Kheb v1.1 - File system and registry discovery tool [UPDATE - 20.7.2010]

OP Elemris

13th July 2010, 08:16 PM   |  #1  
OP Retired Recognized Developer
Thanks Meter: 8
 
41 posts
Join Date:Joined: Jul 2010
Introduction
Kheb allows you to see exactly what changes any software makes on your Pocket PC. It works by taking complete snapshots of your PPC's state, and creating a diff file that shows the changes between snapshots.

Kheb is a useful tool for software developers, ROM chefs, and advanced users.

Examples of useful stuff Kheb can do
• Shows you where an application places its files - for example, sometimes the executable and shortcuts are placed in obscure locations, with Kheb you can always find them.
• Security – See for yourself if dubious applications install sneaky registry settings to auto-load, or if they leave traces behind after being uninstalled.
• Helps create a custom CAB or OEM package based on an existing CAB, even if the CAB uses setup.dll to run code during installation. Great for aspiring ROM Chefs.
• Gives you a deeper understanding of how system settings work under the hood.
• Tells you exactly where an application hides its "registration information" after you enter a valid serial number. It can help you avoid going through annoying registration schemes over and over. Note that Kheb isn’t a hacking tool – you still need to properly register first, though Kheb could be used to easily create pre-registered releases.
• Helps you learn – if you’re a software developer, studying real-life examples of registry changes will let you find interesting and useful hooks into the system that you can use in your own software.

UPDATE New version 1.1 released.

Notes
• Requires .NET Compact Framework 3.5
• Please read the help file accessible through the menu for usage instructions.
• A complete snapshot of your device can take several minutes, so be patient...
• If you have network mapped storage, you will probably want to exclude the network directory in kheb.ini.
• I’d like to hear about your experience using Kheb - bug reports, feature requests, usability suggestions are all appreciated.
• If you create a release using Kheb, I'd appreciate it if you mention the program. Thank you!

This free software is provided AS IS, and you, its user, assume all risks when using it.

If you find Kheb useful, and want to support my efforts, please consider a small donation:

Changelog
v1.1
• Improved storage card detection algorithm.
• Improved error reporting - info about the exact problematic registry key\file is written to error.log file.
• Improved error handling - Kheb recovers from most IO problems (permissions, unconnected network filesystems, etc) and continues running.
• New icon
• "Generate OEM from diff" item is only enabled if there are existing diffs.
• Latest diff is auto selected
• More entries in kheb.ini

v1.0
• Initial public release

Ideas for a future version
• gui editor for kheb.ini file
• ability to pause\abort Kheb operation
• ability to run in the background with lowered priority
• Separate kheb.ini into 2 files to allow retaining user setting when upgrading version
• Real time monitoring of registry modifications and filesystem changes
• Ability to add description to diffs
• XDA_UC compatible .reg
• Ability to name snapshots, not just diffs

Elemris
Attached Thumbnails
Click image for larger version

Name:	Kheb screenshot.jpg
Views:	1214
Size:	51.8 KB
ID:	359510  
Attached Files
File Type: cab Kheb1.1.CAB - [Click for QR Code] (251.8 KB, 1132 views)
Last edited by Elemris; 13th August 2010 at 04:25 PM. Reason: Released version 1.1
13th July 2010, 09:25 PM   |  #2  
v3patel's Avatar
Senior Member
Thanks Meter: 2
 
312 posts
Join Date:Joined: Mar 2007
Getting error while taking snapshot
I am getting error whil taking snapshot below are errors if that can help you look into issue.
This happend twice on my first run and second run
I do see files in SC\kheb folder for registry and dirlist but look like dirlist is not completed.

Quote:

An unexpected error has occurred in Kheb.exe.
Select Quit and then restart this program, or select Details for more information.

Quote:

Kheb.exe
DirectoryNotFoundException
at System.IO.Directory.InternalGetFileDirectoryNames( String fullPath, Boolean file)
at System.IO.DirectoryInfo.GetDirectories(String searchPattern)
at Kheb.FileDirList.WalkDirectoryTree(DirectoryInfo root, FileVisitorHandler fileVisitor, List`1 ExcludedPaths)
at Kheb.FileDirList.WalkDirectoryTree(DirectoryInfo root, FileVisitorHandler fileVisitor, List`1 ExcludedPaths)
at Kheb.FileDirList.WalkDirectoryTree(DirectoryInfo root, FileVisitorHandler fileVisitor, List`1 ExcludedPaths)
at Kheb.FileDirList.WalkEntireFileSystem(FileVisitorH andler fileVisitor, List`1 ExcludedPaths)
at Kheb.Kheb.SnapshotDirlist(String outputFilename)
at Kheb.Kheb.TakeSnapshot(String snapshotsName, Boolean doRegistry, Boolean doDirlist)
at Kheb.KhebForm.buttonSnapshot_Click(Object sender, EventArgs e)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.Menu.ProcessMnuProc(Control ctlThis, WM wm, Int32 wParam, Int32 lParam)
at System.Windows.Forms.Form.WnProc(WM wm, Int32 wParam, Int32 lParam)
at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
at System.Windows.Forms.Application.Run(Form fm)
at Kheb.Program.Main()

Last edited by v3patel; 13th July 2010 at 09:27 PM.
13th July 2010, 09:42 PM   |  #3  
OP Retired Recognized Developer
Thanks Meter: 8
 
41 posts
Join Date:Joined: Jul 2010
v3patel, thank you for the detailed error report, I'm looking into it.
Update: There is some specific directory on your device that Kheb can't handle - perhaps a temporary directory or one that is used by other apps. Posted a new version that should handle the problem, please try it as I can't reproduce the issue. It might be possible to see which directory is causing the problem by looking at where the dirlist file stopped.
Last edited by Elemris; 13th July 2010 at 10:33 PM.
13th July 2010, 10:08 PM   |  #4  
p107r0's Avatar
Senior Member
Thanks Meter: 627
 
1,812 posts
Join Date:Joined: Jan 2010
also errors right after start
HTC Leo, ROM 1.66.479.2 (76641) WWE

Code:
Kheb.exe
IOException

at System.IO.__Error.WinIOError(Int32 errorCode, String str)
as System.IO.Directory.InternalCreateDirectory(String fullPath, Sting path)
at System.IO.Directory.CreateDirectory(String path)
at Kheb.Kheb.FetchDirectoryListing(String directory)
at Kheb.Kheb.FetchSnapshotList()
at Kheb.KhebForm.RefreshForm()
at Kheb.KhebForm..ctor()
at Kheb.Program.Main()
PS. anyone knows how could I copy the above error report instead of having to retype it from device?
Last edited by p107r0; 13th July 2010 at 10:10 PM.
13th July 2010, 10:21 PM   |  #5  
OP Retired Recognized Developer
Thanks Meter: 8
 
41 posts
Join Date:Joined: Jul 2010
Quote:
Originally Posted by p107r0

also errors right after start
HTC Leo, ROM 1.66.479.2 (76641) WWE

Code:
Kheb.exe
IOException

at System.IO.__Error.WinIOError(Int32 errorCode, String str)
as System.IO.Directory.InternalCreateDirectory(String fullPath, Sting path)
at System.IO.Directory.CreateDirectory(String path)
at Kheb.Kheb.FetchDirectoryListing(String directory)
at Kheb.Kheb.FetchSnapshotList()
at Kheb.KhebForm.RefreshForm()
at Kheb.KhebForm..ctor()
at Kheb.Program.Main()
PS. anyone knows how could I copy the above error report instead of having to retype it from device?

This error means Kheb tries to create the "\Storage Card\Kheb\Snapshots" directory and the operation fails due to an IO error.

Could you try creating the directory manually, then running Kheb and telling me what happened? the directories are named:
"\Storage Card\Kheb\snapshots"
"\Storage Card\Khed\diff"

Also is your storage card named "Storage Card" ? Kheb should recognize the storage regardless of name, but it could be a problem.
13th July 2010, 10:37 PM   |  #6  
v3patel's Avatar
Senior Member
Thanks Meter: 2
 
312 posts
Join Date:Joined: Mar 2007
use http://mymobiler.com/
Quote:
Originally Posted by p107r0

also errors right after start
HTC Leo, ROM 1.66.479.2 (76641) WWE


PS. anyone knows how could I copy the above error report instead of having to retype it from device?

if you are using active sync then use my mobiler http://mymobiler.com/
I use it not just copy paste but for screen shot and many other things
13th July 2010, 10:48 PM   |  #7  
p107r0's Avatar
Senior Member
Thanks Meter: 627
 
1,812 posts
Join Date:Joined: Jan 2010
Quote:
Originally Posted by Elemris

Could you try creating the directory manually, then running Kheb and telling me what happened? the directories are named:
"\Storage Card\Kheb\snapshots"
"\Storage Card\Khed\diff"
Also is your storage card named "Storage Card" ? Kheb should recognize the storage regardless of name, but it could be a problem.

Card is indeed named "Storage Card", created both dirs as advised:
Storage Card\Kheb\Snapshots
Storage Card\Kheb\diff
the same error pops up

Quote:
Originally Posted by v3patel

use my mobiler

thanks!! I have it, played with it, liked it, yet somehow it never occured to me I could use it with some purpose...
13th July 2010, 10:57 PM   |  #8  
v3patel's Avatar
Senior Member
Thanks Meter: 2
 
312 posts
Join Date:Joined: Mar 2007
Erro again
Quote:
Originally Posted by Elemris

v3patel, thank you for the detailed error report, I'm looking into it.
Update: There is some specific directory on your device that Kheb can't handle - perhaps a temporary directory or one that is used by other apps. Posted a new version that should handle the problem, please try it as I can't reproduce the issue. It might be possible to see which directory is causing the problem by looking at where the dirlist file stopped.

it errored again
last files in dirlist are
Quote:

\Windows\eT9DisInput.dll 129197743296870237
\Windows\eT9ime.dll 129197743296870237

next file in list is eT9MyWords.exe hopefully this may help.
13th July 2010, 11:47 PM   |  #9  
OP Retired Recognized Developer
Thanks Meter: 8
 
41 posts
Join Date:Joined: Jul 2010
v3patel, p107r0 - I'm contacting you privately to figure these issues out. It's amazing how different each device can be. Thanks for your help!
14th July 2010, 01:36 AM   |  #10  
Member
Thanks Meter: 0
 
34 posts
Join Date:Joined: Mar 2009
Thumbs up
Amazing program! Useful to every kind of user; power-user, programer etc..


Thank you very very much,
Keep it up!

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes