Ejemplo n.º 1
0
class AboutScreen(MobileInsightScreenBase):
    about_text = 'MobileInsight ' + main_utils.get_cur_version() + '\n'
    with open('screens/about.txt', 'r') as content_file:
        content = content_file.read()
        about_text = about_text + content + '\n'
    about_text = about_text + 'copyright (c) 2015 - 2020 by MobileInsight Team'
    pass
Ejemplo n.º 2
0
 def about(self):
     about_text = ('MobileInsight ' + main_utils.get_cur_version() + ' \n' +
                   'MobileInsight Team\n\n' + 'Developers:\n' +
                   '    Yuanjie Li,\n' + '    Zengwen Yuan,\n' +
                   '    Jiayao Li,\n' + '    Haotian Deng\n\n' +
                   'Copyright (c) 2014 – 2017')
     popup = Popup(title='About MobileInsight',
                   content=Label(text=about_text),
                   size_hint=(.8, .4))
     popup.open()
Ejemplo n.º 3
0
 def about(self):
     about_text = ('MobileInsight ' + main_utils.get_cur_version() + ' \n'
                   + 'MobileInsight Team\n\n'
                   + 'Developers:\n'
                   + '    Yuanjie Li,\n'
                   + '    Zengwen Yuan,\n'
                   + '    Jiayao Li,\n'
                   + '    Haotian Deng,\n'
                   + '    Qianru Li,\n'
                   + '    Zhehui Zhang\n\n'
                   + 'Copyright (c) 2014 – 2017')
     popup = Popup(title='About MobileInsight',
                   size_hint=(1,1),
                   background = "gradient.png"
                  )
     popup_button = Button(text = about_text, background_color = [0,0,0,0], on_press = popup.dismiss)
     popup.content = popup_button
     popup.open()
Ejemplo n.º 4
0
import shutil
import stat
import subprocess
import sys
import threading
import time
import traceback

# Load main UI
Window.softinput_mode = "pan"
Window.clearcolor = (1, 1, 1, 1)
Builder.load_file('main_ui.kv')
current_activity = cast("android.app.Activity", autoclass(
    "org.kivy.android.PythonActivity").mActivity)

LOGO_STRING = "MobileInsight " + main_utils.get_cur_version() + \
    "\nCopyright (c) 2015-2017 MobileInsight Team"


def create_folder():

    cmd = ""

    mobileinsight_path = main_utils.get_mobileinsight_path()
    if not mobileinsight_path:
        return False

    try:
        legacy_mobileinsight_path = main_utils.get_legacy_mobileinsight_path()
        cmd = cmd + "mv " + legacy_mobileinsight_path + " " + mobileinsight_path + "; "
        cmd = cmd + "mv " + legacy_mobileinsight_path + "/apps/ " + mobileinsight_path + "/plugins/; "