Skip to content

Commit ba9ef5d

Browse files
committed
ui
1 parent 1ec6001 commit ba9ef5d

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.DS_Store

0 Bytes
Binary file not shown.

Docs/.DS_Store

0 Bytes
Binary file not shown.

ProjectConfig/Script/SellMyApp/SellMyApp.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,8 @@ def DecodeApk(self,isHD):
319319
# mainAppInfo.SetAppPackage(Source.ANDROID,isHD,Source.TAPTAP,package)
320320
package = mainAppInfo.GetAppPackage(Source.ANDROID,isHD,Source.TAPTAP)
321321
strfile = FileUtil.GetFileString(xml)
322-
strfile = strfile.replace(head+package_decode+end,head+package+end)
322+
# strfile = strfile.replace(head+package_decode+end,head+package+end)
323+
strfile = strfile.replace(package_decode,package)
323324
FileUtil.SaveString2File(strfile,xml)
324325

325326

@@ -413,7 +414,19 @@ def RebuildApk(self,isHD):
413414
signapk = mainResource.GetOutPutApkPath(Source.TAPTAP, isHD)
414415
mainApkTool.RebuildApK(apkdir,outputapk,signapk)
415416
FileUtil.RemoveFile(outputapk)
417+
418+
self.InstallApk(isHD)
416419

420+
421+
def InstallApk(self,isHD):
422+
apk = mainResource.GetOutPutApkPath(Source.TAPTAP, isHD)
423+
package = mainAppInfo.GetAppPackage(Source.ANDROID,isHD,Source.TAPTAP)
424+
try:
425+
os.system("adb uninstall "+package)
426+
os.system("adb install "+apk)
427+
except Exception as e:
428+
print("InstallApk eror=",e)
429+
417430
# 主函数的实现
418431
if __name__ == "__main__":
419432
# 入口参数:http://blog.csdn.net/intel80586/article/details/8545572
@@ -452,5 +465,8 @@ def RebuildApk(self,isHD):
452465
if "decode"==arg2:
453466
p.DecodeApk(isHD)
454467

468+
if "install"==arg2:
469+
p.InstallApk(isHD)
470+
455471

456472
print("SellMyApp sucess arg=",arg2)

0 commit comments

Comments
 (0)