<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ionitech</title>
	<atom:link href="https://www.ionitech.cn/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.ionitech.cn</link>
	<description>Your Imagination. Our Innovation.</description>
	<lastBuildDate>Tue, 30 Jan 2024 09:45:36 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>Huawei MT2 thermal problem</title>
		<link>https://www.ionitech.cn/2014/08/21/huawei-mt2-thermal-problem/</link>
		<comments>https://www.ionitech.cn/2014/08/21/huawei-mt2-thermal-problem/#comments</comments>
		<pubDate>Thu, 21 Aug 2014 07:59:50 +0000</pubDate>
		<dc:creator><![CDATA[IoniTech]]></dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://test.ionitech.cn/?p=309</guid>
		<description><![CDATA[公开发布: http://www.wooyun.org/bugs/wooyun-2014-074213 Huawei MT2 手机使用[Generic Thermal sysfs driver]对设备进行温度监控，该驱动提对设备温度实时监控的功能，当指定监控设备达到温度设定值时底层进程会通过执行相应配置参数来降低设备温度，通常的方式为限制CPU或GPU频率等等,从而可以防止手机过热而损害某些部件的风险。 Huawei MT2 手机底层守护进程为: /system/bin/thermalm MT2厂商配置文件: sampling 5000 [systemh] sampling 1000 thresholds 43 46 50 64 thresholds_clr 41 44 47 58 actions app+ucurrent+bcurrent+cpu+gpu ucurrent+bcurrent+cpu+gpu cpu+gpu shutdown action_info 1+900+512+0+0 900+256+1196000+355000 798000+266000 30000 以上配置文件表示当温度达到43℃时，系统守护进程会执行app+ucurrent+bcurrent+cpu+gpu action，action 参数: 1+900+512+0+0。 其中第一个参数: app action 会执行 ACTION: APP &#8211; Setting APP mitigation to 1。 Android中提供了Intent机制来协助应用间或者应用程序内部的交互与通讯，例如：当我们从桌面启动应用的时候，桌面管理器既是通过Intent调用的方式启动第三方程序。(详细描述:http://developer.android.com/reference/android/content/Intent.html) 桌面管理器通过类似代码调用第三方应用: Intent intent = new Intent(Intent.ACTION_MAIN); intent.setComponent(new ComponentName("com.tencent.mm", "com.tencent.mm.ui.LauncherUI")); intent.setFlags(0x10200000); intent.addCategory(Intent.CATEGORY_LAUNCHER); startActivity(intent); 而常见的APP也用同样的方式调用其它第三方应用，因为Intent有不同的构造调用方式调用代码不尽相同。在华为MT2手机上任何APP应用如果以Intent的方式调用其它第三方应用，如不是以系统调用的Flags(0&#215;10200000)就会导致当温度到达43℃时系统会执行ACTION: APP &#8211;&#8230; ]]></description>
				<content:encoded><![CDATA[<p>公开发布: <a href="http://www.wooyun.org/bugs/wooyun-2014-074213">http://www.wooyun.org/bugs/wooyun-2014-074213</a></p>
<p>Huawei MT2 手机使用[Generic Thermal sysfs driver]对设备进行温度监控，该驱动提对设备温度实时监控的功能，当指定监控设备达到温度设定值时底层进程会通过执行相应配置参数来降低设备温度，通常的方式为限制CPU或GPU频率等等,从而可以防止手机过热而损害某些部件的风险。</p>
<p>Huawei MT2 手机底层守护进程为: /system/bin/thermalm</p>
<p>MT2厂商配置文件:<br />
<code><br />
sampling 5000<br />
[systemh]<br />
sampling 1000<br />
thresholds 43 46 50 64<br />
thresholds_clr 41 44 47 58<br />
actions app+ucurrent+bcurrent+cpu+gpu ucurrent+bcurrent+cpu+gpu cpu+gpu shutdown<br />
action_info 1+900+512+0+0 900+256+1196000+355000 798000+266000 30000<br />
</code></p>
<p>以上配置文件表示当温度达到43℃时，系统守护进程会执行<code>app+ucurrent+bcurrent+cpu+gpu</code> action，action 参数: <code> 1+900+512+0+0</code>。 其中第一个参数: app action 会执行 ACTION: APP &#8211; Setting APP mitigation to 1。</p>
<p>Android中提供了Intent机制来协助应用间或者应用程序内部的交互与通讯，例如：当我们从桌面启动应用的时候，桌面管理器既是通过Intent调用的方式启动第三方程序。(详细描述:http://developer.android.com/reference/android/content/Intent.html)</p>
<p>桌面管理器通过类似代码调用第三方应用:</p>
<p><code><br />
Intent intent = new Intent(Intent.ACTION_MAIN);<br />
intent.setComponent(new ComponentName("com.tencent.mm", "com.tencent.mm.ui.LauncherUI"));<br />
intent.setFlags(0x10200000);<br />
intent.addCategory(Intent.CATEGORY_LAUNCHER);<br />
startActivity(intent);<br />
</code></p>
<p>而常见的APP也用同样的方式调用其它第三方应用，因为Intent有不同的构造调用方式调用代码不尽相同。在华为MT2手机上任何APP应用如果以Intent的方式调用其它第三方应用，如不是以系统调用的Flags(0&#215;10200000)就会导致当温度到达43℃时系统会执行ACTION: APP &#8211; Setting APP mitigation to 1,由于Huawei温控守护进程设计缺陷会导致被调用APP程序立即崩溃退出。例如：启动微信向好友发送图片，选择相机拍摄图片(此方式即使用Intent调用方式)。正常手机在工作一段时间以后温度会达到34℃-37℃，相机程序启动后会因为图像运算而提高手机温度，只要手机温度满足43℃随即会导致系统相机崩溃，其它类似场景：当在微信中查看新闻时选择用浏览器的方式打开同样也是使用Intent方式调用也会导致浏览器崩溃。Huawei MT2手机上任意APP程序只要使用Intent方式交互(非0&#215;10200000 Flags)都会同样的问题导致应用崩溃，理论上华为任意型号手机使用thermalm守护进程且配置文件为app+1均有导致任意应用崩溃问题。</p>
<p>测试代码:<br />
测试手机: Huawei MT2<br />
ROM版本: MT2-L05V100R001C17B111</p>
<p><code><br />
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE, null);<br />
startActivity(intent);<br />
</code></p>
<p>使用以上代码将调用系统的自带相机功能，系统自带相机启动后大约在10-15秒(视环境温度而定)左右时间即会因为图像处理运算将手机温度逐渐提高至43℃，随后系统温度守护进程会因执行设计缺陷的mitigation功能导致系统相机崩溃。</p>
<p>[备注:未测试其它华为手机，如果使用同样配置文件可能有相同的问题]</p>
]]></content:encoded>
			<wfw:commentRss>https://www.ionitech.cn/2014/08/21/huawei-mt2-thermal-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>重庆爱奥尼科技有限公司</title>
		<link>https://www.ionitech.cn/2014/08/08/post-test/</link>
		<comments>https://www.ionitech.cn/2014/08/08/post-test/#comments</comments>
		<pubDate>Fri, 08 Aug 2014 03:19:45 +0000</pubDate>
		<dc:creator><![CDATA[IoniTech]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://test.ionitech.cn/?p=56</guid>
		<description><![CDATA[重庆爱奥尼科技有限公司（以下简称爱奥尼科技）成立于2013年8月，公司主要为政府、运营商、金融、教育等行业客户，提供具有核心竞争力的安全产品及移动应用解决方案，帮助客户实现业务的顺畅运行。基于多年的持续研究，爱奥尼科技在网络及终端安全、源代码安全审计、移动应用研发等领域，在计算机应用开发、移动终端应用开发、BYOD（移动办公）解决方案、远程安全评估及WEB安全防护等方面，为客户提供具有行业竞争力的先进产品与服务。]]></description>
				<content:encoded><![CDATA[<p>重庆爱奥尼科技有限公司（以下简称爱奥尼科技）成立于2013年8月，公司主要为政府、运营商、金融、教育等行业客户，提供具有核心竞争力的安全产品及移动应用解决方案，帮助客户实现业务的顺畅运行。基于多年的持续研究，爱奥尼科技在网络及终端安全、源代码安全审计、移动应用研发等领域，在计算机应用开发、移动终端应用开发、BYOD（移动办公）解决方案、远程安全评估及WEB安全防护等方面，为客户提供具有行业竞争力的先进产品与服务。</p>
]]></content:encoded>
			<wfw:commentRss>https://www.ionitech.cn/2014/08/08/post-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
