当前位置:  编程技术>移动开发
本页文章导读:
    ▪S-ON非皂卡机福音Incredible S 临时取得root权限方法        S-ON非白卡机福音Incredible S 临时取得root权限方法 Psneuter exploit is working on IS, but because /system is locked on s-on phones, we can't copy su and superuser.apk into /system, apps required root access can't work.  The following .........
    ▪ Button监听模式        Button监听方式 首先看一下别人的三种Button设置的监听方式我们再给出通过XML配置文件的监听设置方法在Activity类中定义方法 public void buttonMethod(View button){ do what you want... } 在xml文件.........
    ▪ Intent调用大全,史下最全的       Intent调用大全,史上最全的 //调用浏览器Uri uri = Uri.parse("");Intent it  = new Intent(Intent.ACTION_VIEW,uri);startActivity(it);Uri uri = Uri.parse("geo:38.899533,-77.036476");Intent it = new Intent.........

[1]S-ON非皂卡机福音Incredible S 临时取得root权限方法
    来源: 互联网  发布时间: 2014-02-18
S-ON非白卡机福音Incredible S 临时取得root权限方法

Psneuter exploit is working on IS, but because /system is locked on s-on phones, we can't copy su and superuser.apk into /system, apps required root access can't work.  
The following procedure uses psenuter exploit to gain adb shell root, and then copy su (without privilege control ) and busybox into /sbin (which is on rootfs and in the global PATH list) to gain root access for apps.
The procedure:
1. Unzip the attached .zip into a directory (like c:\adb)
2. Open a command prompt and cd to the directory where you extracted the .zip (like cd \adb)
3. run pushroot.bat (simply type pushroot)
4. adb shell /data/local/tmp/getroot
5. adb shell
6. you are now in # prompt.  Type /data/local/tmp/pushroot

You have to redo steps 4,5,6 once you reboot your phone.

 

 

1.首先先下载这个压缩包  ISTemproot.zip 

2.解包到C盘以后,打开cmd
 
输入cd\ 回车
 
 
继续键入adb回车会出来一串字符完了后
 

3.进入C:\adb 后键入pushroot回车还是会出现一串字符后
 
4.完成后 输入adb shell /data/local/tmp/getroot回车
 
 
5.再输入adb shell 当出现#后再键入/data/local/tmp/pushroot回车
6.这样就可以了 之后如果有重开机 只要重复4和5步骤即可
最后附上全图~
  

 


    
[2] Button监听模式
    来源: 互联网  发布时间: 2014-02-18
Button监听方式
首先看一下别人的三种Button设置的监听方式

我们再给出通过XML配置文件的监听设置方法

在Activity类中定义方法
public void buttonMethod(View button){
     do what you want...
     }


在xml文件中
<Button android:id="@+id/myButtonId"
	android:layout_width="fill_parent"
	android:layout_height="wrap_content"
	android:onClick="buttonMethod"
/>

注意android:onClick="buttonMethod"

这样就可以不用代码来设置监听器了

    
[3] Intent调用大全,史下最全的
    来源: 互联网  发布时间: 2014-02-18
Intent调用大全,史上最全的

//调用浏览器

Uri uri = Uri.parse(&quot;&quot;);
Intent it  = new Intent(Intent.ACTION_VIEW,uri);
startActivity(it);

Uri uri = Uri.parse(&quot;geo:38.899533,-77.036476&quot;);
Intent it = new Intent(Intent.Action_VIEW,uri);
startActivity(it);

Uri uri = Uri.parse(&quot;http://maps.google.com/maps?f=d&amp;saddr=startLat%20startLng&amp;daddr=endLat%20endLng&amp;hl=en&quot;);
Intent it = new Intent(Intent.ACTION_VIEW,URI);
startActivity(it);

Uri uri = Uri.parse(&quot;tel:10086&quot;);
Intent it = new Intent(Intent.ACTION_DIAL, uri); 
startActivity(it);
Uri uri = Uri.parse(&quot;tel.10086&quot;);
Intent it =new Intent(Intent.ACTION_CALL,uri);
需要添加  这个权限到androidmanifest.xml

Intent it = new Intent(Intent.ACTION_VIEW);  
it.putExtra(&quot;sms_body&quot;, &quot;The SMS text&quot;);  
it.setType(&quot;vnd.android-dir/mms-sms&quot;);  
startActivity(it);

Uri uri = Uri.parse(&quot;smsto:10086&quot;);  
Intent it = new Intent(Intent.ACTION_SENDTO, uri);  
it.putExtra(&quot;sms_body&quot;, &quot;cwj&quot;);  
startActivity(it);

Uri uri = Uri.parse(&quot;content://media/external/images/media/23&quot;);  
Intent it = new Intent(Intent.ACTION_SEND);  
it.putExtra(&quot;sms_body&quot;, &quot;some text&quot;);  
it.putExtra(Intent.EXTRA_STREAM, uri);  
it.setType(&quot;image/png&quot;);  
startActivity(it);
//发送邮件
Uri uri = Uri.parse(&quot;mailto:android123@163.com&quot;);
Intent it = new Intent(Intent.ACTION_SENDTO, uri);
startActivity(it);
Intent it = new Intent(Intent.ACTION_SEND);  
it.putExtra(Intent.EXTRA_EMAIL, android123@163.com);  
it.putExtra(Intent.EXTRA_TEXT, &quot;The email body text&quot;);  
it.setType(&quot;text/plain&quot;);  
startActivity(Intent.createChooser(it, &quot;Choose Email Client&quot;));
Intent it=new Intent(Intent.ACTION_SEND);    
String[] tos={&quot;me@abc.com&quot;};    
String[] ccs={&quot;you@abc.com&quot;};    
it.putExtra(Intent.EXTRA_EMAIL, tos);    
it.putExtra(Intent.EXTRA_CC, ccs);    
it.putExtra(Intent.EXTRA_TEXT, &quot;The email body text&quot;);    
it.putExtra(Intent.EXTRA_SUBJECT, &quot;The email subject text&quot;);    
it.setType(&quot;message/rfc822&quot;);    
startActivity(Intent.createChooser(it, &quot;Choose Email Client&quot;)); 

Intent it = new Intent(Intent.ACTION_VIEW);
Uri uri = Uri.parse(&quot;file:///sdcard/cwj.mp3&quot;);
it.setDataAndType(uri, &quot;audio/mp3&quot;);
startActivity(it);
Uri uri = Uri.withAppendedPath(MediaStore.Audio.Media.INTERNAL_CONTENT_URI, &quot;1&quot;);  
Intent it = new Intent(Intent.ACTION_VIEW, uri);  
startActivity(it);

Uri uri = Uri.fromParts(&quot;package&quot;, strPackageName, null);  
Intent it = new Intent(Intent.ACTION_DELETE, uri);  
startActivity(it);
//卸载apk 2
Uri uninstallUri = Uri.fromParts(&quot;package&quot;, &quot;xxx&quot;, null);
returnIt = new Intent(Intent.ACTION_DELETE, uninstallUri);
//安装APK
Uri installUri = Uri.fromParts(&quot;package&quot;, &quot;xxx&quot;, null);
returnIt = new Intent(Intent.ACTION_PACKAGE_ADDED, installUri);

Uri playUri = Uri.parse(&quot;file:///sdcard/download/sth.mp3&quot;);
returnIt = new Intent(Intent.ACTION_VIEW, playUri);

Intent it = new Intent(Intent.ACTION_SEND); 
it.putExtra(Intent.EXTRA_SUBJECT, &quot;The email subject text&quot;); 
it.putExtra(Intent.EXTRA_STREAM, &quot;file:///sdcard/cwj.mp3&quot;); 
sendIntent.setType(&quot;audio/mp3&quot;); 
startActivity(Intent.createChooser(it, &quot;Choose Email Client&quot;));

Uri uri = Uri.parse(&quot;market://search?q=pname:pkg_name&quot;); 
Intent it = new Intent(Intent.ACTION_VIEW, uri); 
startActivity(it);

//market上某个应用信息,app_id可以通过www网站看下
Uri uri = Uri.parse(&quot;market://details?id=app_id&quot;); 
Intent it = new Intent(Intent.ACTION_VIEW, uri); 
startActivity(it); 

//调用搜索
Intent intent = new Intent();
intent.setAction(Intent.ACTION_WEB_SEARCH);
intent.putExtra(SearchManager.QUERY,&quot;android123&quot;)
startActivity(intent);

 


    
最新技术文章:
▪Android开发之登录验证实例教程
▪Android开发之注册登录方法示例
▪Android获取手机SIM卡运营商信息的方法
▪Android实现将已发送的短信写入短信数据库的...
▪Android发送短信功能代码
▪Android根据电话号码获得联系人头像实例代码
▪Android中GPS定位的用法实例
▪Android实现退出时关闭所有Activity的方法
▪Android实现文件的分割和组装
▪Android录音应用实例教程
▪Android双击返回键退出程序的实现方法
▪Android实现侦听电池状态显示、电量及充电动...
▪Android获取当前已连接的wifi信号强度的方法
▪Android实现动态显示或隐藏密码输入框的内容
▪根据USER-AGENT判断手机类型并跳转到相应的app...
▪Android Touch事件分发过程详解
▪Android中实现为TextView添加多个可点击的文本
▪Android程序设计之AIDL实例详解
▪Android显式启动与隐式启动Activity的区别介绍
▪Android按钮单击事件的四种常用写法总结
▪Android消息处理机制Looper和Handler详解
▪Android实现Back功能代码片段总结
▪Android实用的代码片段 常用代码总结
▪Android实现弹出键盘的方法
▪Android中通过view方式获取当前Activity的屏幕截...
▪Android提高之自定义Menu(TabMenu)实现方法
▪Android提高之多方向抽屉实现方法
▪Android提高之MediaPlayer播放网络音频的实现方法...
▪Android提高之MediaPlayer播放网络视频的实现方法...
▪Android提高之手游转电视游戏的模拟操控
 


站内导航:


特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

©2012-2021,,E-mail:www_#163.com(请将#改为@)

浙ICP备11055608号-3