专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > 移动开发

创维电视机小程序

发布时间:2010-05-29 22:13:32 文章来源:www.iduyao.cn 采编人员:星星草
创维电视小程序
创维电视限制了应用的安装
但是内部通过软件搜索XCX可以搜索到一个叫小程序的应用
目前是2.8版
打开就提示输入密码:55559510
旧版的密码是:111111

这个版本还有个密码是:654321 用来看开机启动软件的

下面是反编译,然后稍微调整了下报错内容
先上传一版导出的apk和反编译后的代码

查看所有的安装包
adb shell pm -l
导出已知包名的软件
adb shell pm path com.xxxx
然后是导出到本地磁盘D:
adb pull 上面提示的磁盘路径 d:


package com.example.startotherapp;

import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.widget.EditText;
import android.widget.Toast;
import com.example.startotherapp.View.MyappLayout;

public class MainActivity extends Activity {
    //页面上的输入框
    private EditText passwdView;

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(1);
        setContentView(R.layout.activity_main);
        this.passwdView = (EditText) findViewById(R.id.passwd);
        this.passwdView.addTextChangedListener(new TextWatcher() {
            public void beforeTextChanged(CharSequence s, int start, int count, int after) {
            }

            public void onTextChanged(CharSequence s, int start, int before, int count) {
                if (s.length() == 8) {
                    if (!s.toString().equals("55559510")) {
                        Toast.makeText(MainActivity.this.getApplicationContext(), "密码错误,请重试", Toast.LENGTH_SHORT).show();
                        MainActivity.this.passwdView.setText("");
                    } else if (FCApplication.appstoreVersion == 3) {
                        MainActivity.this.startActivity(new Intent("coocaa.intent.action.APP_STORE_MANAGE_SCANAPP"));
                        MainActivity.this.finish();
                    } else if (FCApplication.appstoreVersion == 2) {
                        ComponentName com = new ComponentName("com.tianci.appstore", "com.tianci.appstore.AppListActivity");
                        Intent intent = new Intent();
                        intent.setComponent(com);
                        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                        intent.putExtra("listType", "APK_SCAN_LIST");
                        MainActivity.this.startActivity(intent);
                        MainActivity.this.finish();
                    }
                } else if (s.length() == 6 && s.toString().equals("654321") && FCApplication.appstoreVersion == 3) {
                    MainActivity.this.setContentView(new MyappLayout(MainActivity.this));
                }
            }

            public void afterTextChanged(Editable s) {
            }
        });
    }
}

友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: