高通平台Android N SystemUI添加qcnvitems qcrilhook

测试代码 SDM660_64,Android O 
1.修改以下代码 
liyx0202@liyx0202-OptiPlex-3020:/data/Snapdragon_High_Mid_2017.SPF.2.1/LA.UM.6.2/LINUX/android/frameworks/base/packages/SystemUI$ git diff 
diff --git a/packages/SystemUI/Android.mk b/packages/SystemUI/Android.mk 
old mode 100644 
new mode 100755 
index 2fd7e87..3159777 
--- a/packages/SystemUI/Android.mk 
+++ b/packages/SystemUI/Android.mk 
@@ -45,7 +45,7 @@ LOCAL_STATIC_JAVA_LIBRARIES := \ 
 SystemUI-proto 


 LOCAL_JAVA_LIBRARIES := telephony-common 
-LOCAL_JAVA_LIBRARIES += android.car 
+LOCAL_JAVA_LIBRARIES += android.car qcnvitems qcrilhook 


 LOCAL_PACKAGE_NAME := SystemUI 
 LOCAL_CERTIFICATE := platform 
diff --git a/packages/SystemUI/AndroidManifest.xml b/packages/SystemUI/AndroidManifest.xml 
old mode 100644 
new mode 100755 
index 630d24b..0ec9013 
--- a/packages/SystemUI/AndroidManifest.xml 
+++ b/packages/SystemUI/AndroidManifest.xml 
@@ -213,6 +213,10 @@ 
 android:theme="@style/Theme.SystemUI" 
 android:defaultToDeviceProtectedStorage="true" 
 android:directBootAware="true"> 

+  
+  

  
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java b/packages/SystemUI/src/com/android/sy 
old mode 100644 
new mode 100755 
index 970d1de..39607f6 
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java 
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java 
@@ -31,6 +31,7 @@ import com.android.systemui.EventLogTags; 
 import com.android.systemui.R; 
 import com.android.systemui.statusbar.policy.DarkIconDispatcher; 
 import com.android.systemui.statusbar.policy.DarkIconDispatcher.DarkReceiver; 
+import com.qualcomm.qcrilhook.QcRilHook; 


 public class PhoneStatusBarView extends PanelBar { 
 private static final String TAG = "PhoneStatusBarView"; 
@@ -56,7 +57,12 @@ public class PhoneStatusBarView extends PanelBar { 


 public PhoneStatusBarView(Context context, AttributeSet attrs) { 
 super(context, attrs); 

+ try { 
+ QcRilHook mRilhook = new QcRilHook(context); 
+ } catch (Exception e) { 
+ // TODO: handle exception 
+ e.printStackTrace(); 
+ } 
 mBarTransitions = new PhoneStatusBarTransitions(this); 
 } 



2.从AndroidN的代码中移植qcnvitems到Android O的代码上 


3. 
执行编译 
mmm vendor/qcom/proprietary/qcrilOemHook/ 
mmm vendor/qcom/proprietary/qcNvItems/ 


最后编译SystemUI 
make SystemUI 


在userdebug版本上亲测可以编译过 


Li Yanxiong 
0755-36655811 
Thanks & BRs

你可能感兴趣的:(Android,高通,N)