yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Themes and Apps] onewayout:
Awesome work guys!!
[Nexus 7 Themes and Apps] meltwater:
Good luck on the recompile, that would be excellent to have it fixed!

Wondering if there is a way around this without root. Is there ADB commands to change system time? If so then a simple ADB script to adjust the time would be a quick fix.

I'd rather not root my phone just for this, besides if you do, then something like Synergy on android might be a good replacement (I've not tried it but it seems similar).

UPDATE:

Ok, did a little script to do it, but "adb shell date -s 20140329.120000" just returns the current date and time (even with automatic time & timezone disabled). I suspect that root is needed even for this...can't even have an App to do it without root.

Just did a simple bat file to allow you to kill and respawn the program (you still have to manually change the time):

Very crude but still.

@echo off
REM If needed command to start ShareKM
REM adb shell am start -a android.intent.action.MAIN com.liveov.skm/.ShareKMAct

echo 1. Ensure KMShare is not running on your PC
echo 2. Update current date and time on Android:
echo Must be before 2014-03-29 12:00:00
adb shell date

pause

echo.
echo 3. Check current date and time:
echo Must be before 2014-03-29 12:00:00
adb shell date

echo.
echo 4. Stopping ShareKM
echo Kill ShareKM
adb shell am force-stop com.liveov.skm

echo.
echo Is ShareKM (com.liveov.skm) running?
adb shell ps com.liveov.skm

echo.
echo 5. Start your PC app and reconnect
echo (this will restart ShareKM)

pause

echo.
echo ShareKM (com.liveov.skm) running?
adb shell ps com.liveov.skm

echo.
echo 6. Reset your Date and Time to normal
adb shell date
pause
echo.
echo 7. Check your Date and Time
adb shell date
pause
[Nexus 7 Themes and Apps] MuWu:
so whats with all this posting have you managed to get it to work on 4.3?? wifi?? usb??
[Nexus 7 Themes and Apps] meltwater:
Since 2014-03-29 the program stops running when you try to connect, due to a hard-limit date the author put in. It was working fine on USB for my device (only 4.1) until then.
[Nexus 7 Themes and Apps] MuWu:
so now its not working at all even if we were on 4.1?? too bad :(
[Nexus 7 Themes and Apps] meltwater:
Not without fiddling the time. Shame.
[Nexus 7 Themes and Apps] kyokku:
Awesome!

Works on my SGS3 Cyanogen 11.0. Thanks.
[Nexus 7 Themes and Apps] noowb00:
It's such a shame that a good app like this is being left out by the original author. I'm also wondering why there isn't any other dev that's interested in developing this app.
[Nexus 7 Themes and Apps] FitchVA:
Good call on the xposed framework! That does the trick!
[Nexus 7 Themes and Apps] vdefender:
I've never had shareKM not work on any version of android... I've used 4.1, 4.2, 4.3 and 4.4.

But as of Monday, there is hardcoded stop date in the app to make it stop working. That's what we are trying to fix.

Sorry guys, I didn't have time to recompile the code change last night. I'm going to attempt it tonight and hopefully have a working apk.

We shall see how it goes.

---------- Post added at 01:12 PM ---------- Previous post was at 01:08 PM ----------

I have zero experience with Android apps, as I am a web application developer, but I am thinking about attempting to rebuild this app. Because it's just so amazing. I seriously can't believe there aren't any alternatives either.

The only alternative I've seen is Synergy, but that only works over IP, and at work I can't connect my phone to the same network that my computer is on, and I'm sure many others have the same limitation too. This having the ability to work over USB is very unique.
[Nexus 7 Themes and Apps] noowb00:
Hm. That's interesting. What devices are you using for all that android version? I've been using it on my Nexus 4 since 4.2 and right after the 4.3 update, the mouse cursor isn't visible anymore. Nothing changes on 4.4. The other problem with it was the outdated adb.exe but that already has its workaround.

Oh, you're a web app developer. That's awesome! At least you're a dev, haha. I only studied C and haven't got the chance to learn other programming languages. Tried Java a little but man, I can't learn it by myself :P

Right now I'm thinking about getting some famous devs attention on the app. Maybe they'd be interested in helping its development or at least get anyone else who's interested to try to continue the development. I wonder why this kind of thing doesn't interest devs much. I mean, it's like having a second screen to interact with! But smaller! How cool is that! Haha
[Nexus 7 Themes and Apps] scooby092477:
this app is is extremely useful at work while you're trying to look busy but really you have your phone sitting visibly sitting by your side. it's priceless. In fact there are about 4 of us here where I work using it, and for some reason my Xposed module per app hack doesnt want to work correctly. I've uninstalled, reinstalled, different versions, etc. Still nothing. and I dont want to set the system time back everyday because that will mess up timestamps with just about everything I'm doing.

Glad to see someone is vigilantly working on the solution!!
[Nexus 7 Themes and Apps] vdefender:
I have been Using CyanogenMod for years now, on lots of different phones. It's odd that the cursor doesn't show on the nexus 4 though :/ Maybe you should just load up CM 11? hehe

Java and C are definitely nothing a lot that is for sure lol! I hate C, I don't like dealing with low level stuff. I work with Java web apps.

And yes I absolutely love my phone as a 3rd screen, so nice to be able to quickly respond to a text and get right back to work when I don't even have to leave my keyboard and mouse and grab my phone.
[Nexus 7 Themes and Apps] Twmade:
Yes please continue to see if you guys can rebuild the app, I don't know why he would hard code it to stop after a certain date.

Another question - when I'm entering sharekm it does not detect root. How can i grant it root access so i can use WIFI and Bluetooth?
[Nexus 7 Themes and Apps] 11wallace11:
I'm also a web developer with no experience with developing for Android, but I'm willing to help.

Is it possible to decomplie the code and upload it to Git so we can work on it together?
[Nexus 7 Themes and Apps] saschljk:
Try to reinstall ShareKM. After this, the app should ask for root access again.

Another solution is, go into your superuser app, klick on ShareKM and delete the authorisation.

My ShareKM detects root, but WIFI and Bluetooth is grey. But thats no problem for me, because i use only USB. So i don't search for the problem. At the beginning, everything was perfect. Therefore, it can help, if you give the root access again.
[Nexus 7 Themes and Apps] vdefender:
I would love some help! Have you played with ADB at all?

So far I've pulled the apk from my phone and first I used an app on the android market to decompile to java code. Of course it's very messy java code that is filled with class names like "A" and "LX" and variable names are rubbish. So I searched through that java code and found the suspicious if check for the date.

Now comes the hard part. That java code can't just be recompiled from what I've read. It definitely wont even pass eclipse error checking.

So then I used this tool I found on xda called AndroidMultitool. That was able to open the apk up into a more basic form that doesn't have java code, instead it had Smali code, which is a low level code generated from the java code. I was able to fined the spot in that code where the if check is, and I attempted to remove it and repackage the apk with the AndroidMultitool, but the app would error on installation. So then I tried to just decompile to smali, make no changes and recompile and see if that would work, and it too wouldn't install. At that point I lost faith the tools ability to actually repackage the smali code into the apk.

Then I started my search again for a new tool that would either decompile to java, and allow me to recompile that, or something that would allow me to get smali code again and recompile that.

The benefits to going the java route would be the ability to legitimately add new features to the project. But the hard part is fixing the java code by hand to actually work again because information is lost when java is converted into smali code.

The benefits to just going into smali code and then back would be much less time involved in reverse engineering the code, and only having to remove one line from the smali class file and then repacking it into a .dex and re-inserting it into the apk.

But so far, I have not been able to successfully go from apk to java or smali and then back to a working apk without even making changes. So I'm not off to a good start.

I found this guide last night before I went to bed and I think it could be a good start if we want to go the java decompile route: kkinder - reverse engineering android apps

If you want to play around on your end to try and open the apk and then repackage to a working apk, that would be a good start. I'm going to try some more tonight.
[Nexus 7 Themes and Apps] MuWu:
thx for the effort!! hope someone who knows will help you!!
[Nexus 7 Themes and Apps] Miker1029:
I know nothing about Java but I did look into decompiling and found that there is a step you have to do as your decompiling so it can be really compiled correctly. Did this to try and learn Java I'm better hands on crash and burn. Lol anyway never got around to it. But after browsing this page looks like it has the middle step. Pretty much burnt on data this cycle so I can't download and try....will help when I can and you need any assembly coding. I'll have to brush up. But I can try and help. I love low level programming.

http://securityxploded.com/android_reversing.php
[Nexus 7 Themes and Apps] djcasual:
I was able to decompile and find the location of the date check in the following class.

Look in "com => liveov => lvl => LVLAct" class line 38

This file contains the date check in "localCalendar.set"

public static boolean a()
{
LiveovApp.context.getPackageCodePath();
if (b != -1) {
return b != 0;
}
Calendar localCalendar = Calendar.getInstance();
[COLOR="Red"][B]localCalendar.set(2014, 2, 30);[/B][/COLOR]
if (Calendar.getInstance().after(localCalendar))
{
b = 1;
return true;
}
b = 0;
return false;
}

Expiration is set to 2014, 2, 30. We should be able to increase that easily. However, I don't have the time and knowledge to properly edit (and failed with Hex Editors) and recompile. If I get some spare time I will try again.
[Nexus 7 Themes and Apps] vdefender:
Yeah that's the spot I found too, But what I did was edit the smali code and change the 2014 date to 2050 which is hex is 0x802 (in red below) then went ahead and changed it to the first Jan 1st (in blue below) then recompiled and signed the app. The app starts up fine after that (no expired beta popup) but when I try to connect to the windows companion app with adb or via wifi it throws a fatal error and says "package not installed" and closes.

const/16 v3, [COLOR="Red"]0x802[/COLOR]

const/4 v4, [COLOR="Blue"]0x1[/COLOR]

const/16 v5, [COLOR="Blue"]0x1[/COLOR]

invoke-virtual {v2, v3, v4, v5}, Ljava/util/Calendar;->set(III)V

.line 209
invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

move-result-object v3

invoke-virtual {v3, v2}, Ljava/util/Calendar;->after(Ljava/lang/Object;)Z

move-result v2

if-eqz v2, :cond_2

.line 210
sput v0, Lcom/liveov/lvl/LVLAct;->b:I

goto :goto_0

.line 213
:cond_2
sput v1, Lcom/liveov/lvl/LVLAct;->b:I

move v0, v1

.line 214
goto :goto_0
.end method
[Nexus 7 Themes and Apps] 11wallace11:
After reading what you wrote, I realized that getting the code decompiled from an apk is not as easy as I thought at first, and since we're attempting to fix only certain bugs and not adding new functionality to the app, I think that the approach of developing an Xposed module is much more realistic. From what I've collected so far, Xposed allows you to run a new code on top of the existing one, that will either replace it or run alongside. (the first one's functionality is very similar to "!important" in CSS, and that's what we'll use to fix the date, I think)

I will read a little bit more about how to start developing an Xposed module (as I'm totally clueless about the start right now), and see if I can get something running in a short while.

Edit:

Here's an interesting reference for a module that changes the functionality of an existing app:

https://github.com/Danation/SwypeTweaks/tree/master/Source

Apparently you just need to keep the same folder and file paths, and Xposed takes care of replacing the original files.
[Nexus 7 Themes and Apps] michaelrhyndress:
Focus on the boolean

I would suggest changing:

if (Calendar.getInstance().after(localCalendar))

{

b = 1;

return true;

}

b = 0;

return false;

}

to

if (Calendar.getInstance().after(localCalendar))

{

b = 0;

return false;

}

b = 1;

return true;

}

This should tell the app to run If and only if the date is AFTER the local set date, which in this case is 2014, 2, 30.

Let me know if you try this out.
[Nexus 7 Themes and Apps] vdefender:
The problem here is that you are suggesting to modify the java code. But when you decompile the apk into java code, it can't be recompiled. And by "can't" I mean it's very difficult to fix up the decompiled java code and get it to work again.

When a java android project is compiled into a apk, all of the java is change into smali code. During this change, lots of important information is lost. Which is why the easiest route to making a small change like this is just modify the smali code, which is a low level programming language. It's hard to read and harder to write, but in this case a small change like a date is easy to change.

My smali code change above fixes the date issue. However for some reason after repacking and signing the apk, when I try to connect the application to the companion server on the computer, the app crashes due to a "missing package", But I don't know what would be missing.
[Nexus 7 Themes and Apps] edmondt:
Thanks for the xposed App Hack Time Machine trick! :)

Working good again without beta expired
[Nexus 7 Themes and Apps] sovereign_state:
Is it possible to contact the developer?
[Nexus 7 Themes and Apps] ploebb:
I already did. But I have no hope I'll get an answer. I contacted the developer before multiple times because of other issues and never got an answer. I think we're an our own.

But perhaps if more people write him, we have a chance (?).
[Nexus 7 Themes and Apps] sovereign_state:
That sounds good, kinda like a petition.

I couldn't find any contact information of the google project site.

You mind sharing the developers contact info that way we can get started trying to get their attention?

Thanks
[Nexus 7 Themes and Apps] vdefender:
I've sent several emails to the developer in the past with no responses. The developers email is on the Google Play page. But it would seem that they don't log into their email anymore. I'm sure they just set up the email for use with just the developer account and then abandoned it.

Welp I have to leave town for a few days to ride in the Desert 100. I'll work on patching up the app again next week. For those of you with root, just use the xposed framework method.
[Nexus 7 Themes and Apps] galsj:
none
[Nexus 7 Themes and Apps] scooby092477:
I'm on Viper one rom with htc one and the xposed app time machine hack does not like me.
[Nexus 7 Themes and Apps] saryip:
I use Galaxy S4 with Omega 19 ROM Android 4.3.

This apk file works perfect. No more problems with date.

Thank you for your job!!
[Nexus 7 Themes and Apps] flekkie:
Another vote here

Just joining the discussion because I'm a real fan of ShareKM as well.

I'm cursing every day from the 10 it's been going on yet that it does not work anymore.

One big extra vote for a solution on this problem!

How are things with the apk from Galsj? Appears to me that you edited your message to 'none', right?

So the apk is not ready yet? I hope it will work out!
[Nexus 7 Themes and Apps] vdefender:
Well Galsj came in here, and dropped a working apk of sharekm without the date cut off, with no explanations. Then a few hours later deleted his comment and removed the apk. I'm not sure why??? Who was it who fixed it??
[Nexus 7 Themes and Apps] TangerineTractor:
If anyone has the apk with the fix, can they upload it please?
[Nexus 7 Themes and Apps] sovereign_state:
I have the file Galsja uploaded but it looked like the source code of the apk, there wasn't an actual apk in the zip file. Seemed odd however as that was the first post by that user and to hear that he removed the post.
[Nexus 7 Themes and Apps] jbaumert:
I a copy of the APK that was posted here. Is it possible it was promptly removed due to IP infringement?
[Nexus 7 Themes and Apps] vdefender:
I was questioning the apk he uploaded too, so I went ahead and decompiled it to make sure it was the shareKM source and sure enough it was.

I didn't run a full directory compare between the official app and the one he posted though.

Since installing it I have noticed that the app crashes when I unhook it from my computer though and before it didn't. But doesn't seem to cause any issue, it starts right back when I plug it back in.
[Nexus 7 Themes and Apps] BipNz:
Tweaked the year hex smali value(+100 yrs !!) ,Working like charm :)
[Nexus 7 Themes and Apps] TangerineTractor:
How do you do that?
[Nexus 7 Themes and Apps] BipNz:
/ yes have a issue post connection "Fetal Error package not installed" error is thrown up

Followed instructions from below post

"http://xdaforums.com/showthread.php?t=2195680" and smali code edited with note++

-Am also considering creating a TASKER Task to temporary change Date on App start up -(Since its checked only at start).
[Nexus 7 Themes and Apps] TeMpTeK:
ShareKM USB mode working on Rooted Galaxy Note Pro 12.2

I was able to get ShareKM to work flawlessly in usb mode on my note pro 12.2 using the xposed time machine hack referenced earlier (thanks to those contributors)... for some reason ShareKM does not recognize my device as rooted so wifi and BT are not working yet.. Has anyone figured out a workaround for wifi/bt ?

P.S. "Button Savior Root" app from playstore creates an always on top home screen button on the display so u never have to touch the device to go back or go home from within an app.. everything can be done with your mouse ..
[Nexus 7 Themes and Apps] saschljk:
You can go to Home Screen by klicking the button in the middle, or the wheel in the middle of the mouse. So, you don't need Button Savior. Except you need a button on the screen.
[Nexus 7 Themes and Apps] scooby092477:
Can someone recompile and upload? My xposed module for time machine does not work and throws an error when sharekm is launched.
[Nexus 7 Themes and Apps] coelhooliveirar:
I can't believe someone has developed such a thing like that... It's really sad. I am praying that someone recompiles the code with sucess. Come on, guys!:good:
[Nexus 7 Themes and Apps] Miker1029:
Hey while you all are poking around the code you might want to check this out

http://www.cr0security.com/cr02013-001/

---------- Post added at 02:32 PM ---------- Previous post was at 01:57 PM ----------

Hey Just Installed The Time Machine Hack, And setup SKIm,

In Win Seven Seems some things don't work like the number seven but haven't messed with the settings, but in my old windows xp everytime I turned data on in them phone skm would disconnect from the client on the computer but seems to be working perfect right now. Cause I'm using it to type this... Dunno very quirky but it works now if I could find a screen share....:laugh:
[Nexus 7 Themes and Apps] TeMpTeK:
my middle mouse button for volume was acting buggy, it scrolled a little jerky , the button savior option for volume control worked better for me, I also thought having task manager, system settings and camera toggles were cool to have...

---------- Post added at 06:27 PM ---------- Previous post was at 06:22 PM ----------

Did u try setting time machine to an earlier Date?.... I made mine Jan 27 2014.. and so far so good
[Nexus 7 Themes and Apps] scooby092477:
Yes it's not that, says something about text relocation in system/bin. It's far deeper than this app. It may be a cross between rom, and xposed.
[Nexus 7 Themes and Apps] Red One:
Unfortunately I have nothing to contribute but would absolutely love to has this app functional again without xposed. Can someone please send me a PM to try and get the modified APK to me or provide a download link?
[Nexus 7 Themes and Apps] michaelk42:
The time hack worked for a bit

The Xposed/per app hacking date set worked for me, until I updated my Nook HD+ to CM 10.2.1. Now that trick doesn't work anymore.

I can't believe this is the only app of its type. This is just really obnoxious.
[Nexus 7 Themes and Apps] scooby092477:
I know. I think that literally, a community of 5 million members and no one knows how to re-create an app like this. Or like you said, the only app of it's type. but ohhh noooo, go on the play store and you can find 10,000 calculators and 10,000 calenders and 10,000 weather apps. .(i underestimated im sure)
[Nexus 7 Themes and Apps] michaelk42:
It's weird.

OTOH, good news is upgrading CM didn't kill ShareKM. After a few reboots Xpose framework told me it wasn't loading. :rolleyes:

But then I got the invisible cursor problem that 4.3 has. Swapping ADB files doesn't fix for me.

Got Synergy to work over wifi though, I'll have to work on making it do bluetooth pan (if it's possible.)
[Nexus 7 Themes and Apps] Coisox:
Thank you so much for the detail explanation! Work for me too. :good:
[Nexus 7 Themes and Apps] TangerineTractor:
Problem is, SHAREKM only works in USB mode with Xposed installed, so it isn;t really a workable solution for most people - and if you're not running a stock-based rom, you probably don't want xposed on there too.

Somebody said about doing the date switch in Tasker - can anyone elaborate?
[Nexus 7 Themes and Apps] scooby092477:
I have Tasker installed, tried figuring out the "profile" and or "task" but I'm not familiar enough with the app. Anyone with distinct knowledge of the app might be able to tell us the steps. Also, changing the system date manually does work, then you can change the date back after the app is running, but if you unplug and plug back in, you've got to do it again.
[Nexus 7 Themes and Apps] Coisox:
Lucky me for using USB. Didn't bother with the other method ;)

BTW I use CM10 and I installed Xposed+perAppHacking solely because of this issue