Coder Social home page Coder Social logo

Unsupported chars about lenovowatchmod HOT 6 CLOSED

zGitHubDev avatar zGitHubDev commented on May 29, 2024
Unsupported chars

from lenovowatchmod.

Comments (6)

erap320 avatar erap320 commented on May 29, 2024

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.

zGitHubDev avatar zGitHubDev commented on May 29, 2024

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.

erap320 avatar erap320 commented on May 29, 2024

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.

zGitHubDev avatar zGitHubDev commented on May 29, 2024

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.

zGitHubDev avatar zGitHubDev commented on May 29, 2024

Hi,

I created a fix for this issue and also would like to share my experiences.

  1. 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.
  2. Use the jadx-gui tool to convert your apk to a java gradle project
  3. Open this project in andorid studio
  4. Create a new empty project in android studio and copy the files from the original to here you'd like to modify
  5. Fix the build errors you can make this files more simple if you remove the unused, unnecessary codes.
    5, Modify you want.
  6. Install java2smali plugin to the studio
  7. Create smali file from the modified projects.
  8. Create smali files from the original files using the apktool (d)
  9. Mix your smali files with the original
  10. Recompile it using the apktool
  11. Using the zipalign tool to optimize your app (required). Part of the andorid SDK
  12. 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.

erap320 avatar erap320 commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.