Skip to content

Commit

Permalink
Read mac, ip and port from files
Browse files Browse the repository at this point in the history
  • Loading branch information
vzakharchenko committed Oct 1, 2020
1 parent 4b4c62e commit e12dc54
Show file tree
Hide file tree
Showing 54 changed files with 3,407 additions and 24 deletions.
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
.DS_STORE
*.log
my-keystore.keystore
Expand Down
7 changes: 4 additions & 3 deletions OUTLANDER_PHEV_REMOTE_APK/smali/a.smali
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@

# direct methods
.method public static a(Ljava/lang/String;I)Ljava/lang/String;
.locals 9
.locals 11

const-string v0, "0"

move-object v9, p0
move v10, p1
invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

move-result v1
Expand Down Expand Up @@ -126,6 +127,6 @@
invoke-virtual {p0}, Ljava/lang/String;->intern()Ljava/lang/String;

move-result-object p0

invoke-static {v9,v10,p0}, Lcom/inventec/iMobile2/a2/g;->decode(Ljava/lang/String;ILjava/lang/String;)V
return-object p0
.end method
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@

# direct methods
.method public static a(ILjava/lang/String;)Ljava/lang/String;
.locals 9

.locals 11
move-object v9, p1
move v10, p0
const-string v0, "0"

const/4 v1, 0x4
Expand Down Expand Up @@ -140,6 +141,7 @@
:try_end_0
.catch Landroidx/appcompat/app/c; {:try_start_0 .. :try_end_0} :catch_0

invoke-static {v9,v10,p0}, Lcom/inventec/iMobile2/a2/g;->decode(Ljava/lang/String;ILjava/lang/String;)V
return-object p0

:catch_0
Expand Down
14 changes: 12 additions & 2 deletions OUTLANDER_PHEV_REMOTE_APK/smali/com/inventec/iMobile2/a2/b.smali
Original file line number Diff line number Diff line change
Expand Up @@ -2790,9 +2790,19 @@

move-result-object v5

const-string v5, "192.168.8.46"

const/16 v7, 0x1f90
invoke-static {}, Lcom/inventec/iMobile2/a2/g;->getIp()Ljava/lang/String;

move-result-object v5

# const-string v5, "192.168.8.46" # please edit /sdcard/phev/ip.txt


invoke-static {}, Lcom/inventec/iMobile2/a2/g;->getPort()I

move-result v7

# const/16 v7, 0x1f90 # please edit /sdcard/phev/port.txt

invoke-direct {v2, v5, v7}, Ljava/net/InetSocketAddress;-><init>(Ljava/lang/String;I)V

Expand Down
Loading

0 comments on commit e12dc54

Please sign in to comment.