Comments (6)
Hi @zGitHubDev, I suppose you are using the Watch X, because the Watch 9 doesn't have a screen.
I'm sorry but even if I could change the code of the app the way you describe I wouldn't be able to test the result since I only own a Watch 9.
Changing the behaviour of the app from the smali code is also a bit tricky. I'll try when I'll have a bit of spare time, but for now I can't promise you anything.
Moreover, I think a functional issue like this one will be addressed soon by the developers of the original app. If an update of the app is released and I haven't updated the mod for it in one or two days (this usually means I've not noticed the new version) feel free to contact me.
from lenovowatchmod.
Hi @erap320 ,
Thanks your quick answer. Yes you are right I have a Watch X Plus, which has a screen, I understand that difficult to test without a proper device. :(
I did a short look on the evening, i decomplied the app to java, found the proper palce and modified the code, I hope it will fix the bug. Now I have to somehow recompile it and create an apk again and test it. Unfortunately I have not so much free time also but, I hope I can do it soon, I'll nofity you,
Why you are modifing smail and not java?
Connection with your suggestion to contact with the official developer, I did it using the app I have no answer about a month. Maybe I'll try the app email address, but I'm affraid they won't do it as official this watch is only produced to China, that's why the weather feature is not working,
from lenovowatchmod.
I have decompiled the app in smali because I used APK Easy Tool to perform the canges. It decompiles and recompiles everything without a problem, but only produces smali files. I explained it in #1.
It was just the first thing I found, and not being an experienced native Android developer I didn't know anything better.
It was enough for changing strings and images only.
What tool did you use to decompile it to Java? I'm very interested in something like that, it could benefit the mod in many ways.
from lenovowatchmod.
Hi,
I found 2 tools the first one was an online you just have to upload the apk and got the result on the web.
http://www.javadecompilers.com/apk but there were too much file to compy one-by-one, so I searched another. This one is a desktop tool called jadx , and download from here https://bintray.com/skylot/jadx/releases/v0.8.0#files
from lenovowatchmod.
Hi,
I created a fix for this issue and also would like to share my experiences.
- Decompling to Java code is good way to understand the code and help fixing the bug, but unfortunatelly it is not working so easy as I expected. The problem is this app is too big, and during the decomplimation some code won't be the same as the origin or I found some code was not correctly decomplied just was an that error as a comment in the java file.
I spent plenty of time to make my decompiled project to buildable, in Android Studio but there were no success. :(
The working way is the following. - Use the jadx-gui tool to convert your apk to a java gradle project
- Open this project in andorid studio
- Create a new empty project in android studio and copy the files from the original to here you'd like to modify
- Fix the build errors you can make this files more simple if you remove the unused, unnecessary codes.
5, Modify you want. - Install java2smali plugin to the studio
- Create smali file from the modified projects.
- Create smali files from the original files using the apktool (d)
- Mix your smali files with the original
- Recompile it using the apktool
- Using the zipalign tool to optimize your app (required). Part of the andorid SDK
- Sign your aligned app with apksigner (required), also part of android SDK.
So I did a fix my opinion is upload the apk and modified smali to the repo, if it's ok please create a new branch (WatchX) or give me right to create a new branch.
I'm plannig to fix more issue.
from lenovowatchmod.
Sorry for the wait, I've been through a very busy week.
I've added you as a collaborator to the repository, I think you'll be able to create a new branch and ask for a merge request that way.
from lenovowatchmod.
Related Issues (20)
- Auto heart rate and BP measurement time 30 minutes ahead HOT 1
- App not installed HOT 7
- Weather is not working in Italy HOT 5
- App is not working because of "Server busy" HOT 35
- Can't Bind My email HOT 2
- Syncing heart rate, blood pressure, sleep data and mood with lenovo server does not work due to "server busy" HOT 1
- Weather widget is not working outside of China HOT 6
- Watch 9 can't connect HOT 6
- Facebook messenger support HOT 3
- No map / route in the "exercises" view / section HOT 4
- No sleep data recorded since 23.05.2020
- Canβt register HOT 2
- Don't Let me login
- Google fit
- Tencent Tim substitution HOT 8
- Can you add instagram? HOT 2
- How to make your own substitutions HOT 4
- Stopped working on update HOT 10
- Watch X and X Plus gmail subject is NULL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lenovowatchmod.