锤子科技出品的 One Step 正式开源

MarylynLeec 7年前
   <h2>一步 (One Step)</h2>    <p style="text-align: center;"><img src="https://simg.open-open.com/show/ce2b6f244c93a96ca5bd89a01c71f634.png"></p>    <p>锤子科技的一小步,智能手机进化的一大步</p>    <h3>什么是一步(One Step)?</h3>    <p>通过拖拽完成将信息发送至应用或联系人的动作,节省了在不同应用之间切换的诸多步骤,第一次打通了手持设备中应用间的边界</p>    <h3>写在前面的话</h3>    <ol>     <li>我们开源 One Step 是希望其他厂商能将这一功能集成在系统中,共同改善安卓用户体验、提升操作效率。</li>     <li>我们把 One Step 所有接口封装在 android.view.onestep 包下,考虑到第三方应用集成时的复杂度,请在不改变现有接口的前提下进行扩展。同时也欢迎通过 commit 向我们提交反馈。</li>     <li>由于人力有限,我们仅在 Nexus6(Code Base:Android 6.0.1_MOB31K)的真机上进行了相关测试,理论上其他的机型也可以进行编译运行,但不排除会有bug 出现。最后,我们为你提供了 Nexus6 的build。</li>    </ol>    <h3>One Step涉及的工程列表:</h3>    <ul>     <li>frameworks_base (需要更改WindowManager) <a href="/misc/goto?guid=4958998099197266157" rel="nofollow,noindex">https://github.com/SmartisanTech/android_frameworks_base</a></li>     <li>frameworks_native (需要更改input, 响应调整window后touch事件) <a href="/misc/goto?guid=4959730781862713545" rel="nofollow,noindex">https://github.com/SmartisanTech/android_frameworks_native</a></li>     <li>packages_apps_OneStep(OneStep UI层) <a href="/misc/goto?guid=4959730781939355069" rel="nofollow,noindex">https://github.com/SmartisanTech/packages_apps_OneStep</a></li>     <li>build(加入smartisanos框架编译以及OneStep应用) <a href="/misc/goto?guid=4959730782028808598" rel="nofollow,noindex">https://github.com/SmartisanTech/android_build</a></li>     <li>external_sepolicy (为新引入的OneStepService设置权限) <a href="/misc/goto?guid=4959730782099982229" rel="nofollow,noindex">https://github.com/SmartisanTech/android_external_sepolicy</a></li>     <li>frameworks_smatisanos_base (smartisanos 框架层) <a href="/misc/goto?guid=4958998099504666094" rel="nofollow,noindex">https://github.com/SmartisanTech/android_frameworks_smartisanos-base</a></li>     <li>SmartisanSDK (为第三方应用接入提供接口,以及一个简单的demo) <a href="/misc/goto?guid=4959730782209619319" rel="nofollow,noindex">https://github.com/SmartisanTech/SmartisanOS-SDK</a></li>    </ul>    <h3>Getting Started</h3>    <p>下载之前你需要熟悉:</p>    <ul>     <li><a href="/misc/goto?guid=4959665871149645685" rel="nofollow,noindex">Build Environment</a></li>     <li><a href="/misc/goto?guid=4959730782319449807" rel="nofollow,noindex">Git and Repo</a></li>     <li><a href="/misc/goto?guid=4959665871364291885" rel="nofollow,noindex">Preparing to Build</a></li>    </ul>    <p>初始化仓库:</p>    <pre>  $ repo init -u https://github.com/SmartisanTech/android.git -b smartisan-m-onestep_bigboom -m manifest.xml</pre>    <p>Tips : 中国的开发者可以使用清华的镜像, <a href="/misc/goto?guid=4959730047676472363" rel="nofollow,noindex">使用帮助</a></p>    <p>开始同步代码:</p>    <pre>  $ repo sync -cdj4</pre>    <p>同步完成后进行编译:</p>    <p>Tips : 如果你打算用Nexus6的真机体验的话,别忘了在编译前去下载对应的驱动。代码的基线是 Nexus 6 (Mobile) for Android 6.0.1 (MOB31K) 下载地址: <a href="/misc/goto?guid=4959730782461852208" rel="nofollow,noindex">https://developers.google.com/android/drivers</a></p>    <pre>  $ . build/envsetup.sh       $ lunch aosp_shamu-userdebug       $ make -j4;</pre>    <p>Tips :我们提供了Nexus6的build传送门</p>    <p>编译完成后Nexsu6真机的刷机, 请参考 <a href="/misc/goto?guid=4959730782538011477" rel="nofollow,noindex">http://source.android.com/source/running.html#flashing-a-device</a> 或者使用模拟器,可能配置不对,会有黑屏的问题</p>    <pre>  $ emulator</pre>    <p> </p>    <p> </p>    <p> </p>