android電量源碼
Ⅰ 求android源碼下載地址,就像學學源碼的原理
Google剛剛公布,穩定版的Android源代碼已經公布,任何人都可以免費下載。Google希望通過公布源代碼,電信運營商和手機製造商,乃至一般開發者們進一步深刻了解和利用Android系統,從而有益於該平台下的的發展。
看來T-Mobile G1不一定打得過iPhone,那麼Android呢?
現在源代碼公布在http://source.android.com/,SDK網站是http://code.google.com/android/
Ⅱ 現在到哪獲取android系統源代碼
Android系統源碼都在http://android.git.kernel.org/網址下,其中那個系統app都在platform/packages/apps結構下。
在剛才的Git的shell命名行窗口中輸入下面的命名:
git clone git://android.git.kernel.org/platform/packages/apps/Luancher2.git
你就可以在你的msysGit安裝目錄的git下(~\msysgit\msysgit\git)看到Luancher工程文件夾了。
然後打開~\msysgit\msysgit\git\Luancher2文件夾,就可以看到Android的Luancher系統源碼工程了。
對於其他的app系統源碼的獲取方法和上述的Luancher相同,只是命名行後的參數不同。
git clone git://android.git.kernel.org/需下載源碼的app所在的位置。
Ⅲ 如何打開android 源代碼
可以用配置了Android環境的eclipse,也可以直接用Android studio,都可以直接導入項目源碼
Ⅳ Android修改源碼,將狀態欄中信號,電量圖標居左;時間圖標居中,該怎麼做啊
這是個大工程,不太可能實現,除非你有深厚的 java 編譯功底。
Ⅳ 誰有Android系統的源碼
1、通過 ubuntu 軟體中心安裝 wine;
2、通過 ubuntu 軟體中心安裝 winetricks;
3、通過 winetricks 在 shell中輸入: winetricks mfc42
1、通過 wine windows 的方式啟動代理伺服器
2、設置瀏覽器代理伺服器
3、設置shell代理伺服器:
在shell中輸入 sudo gedit /etc/bash.bashrc
在文件 /etc/bash.bashrc 中添加:如下內容
export http_proxy=http://127.0.0.1:8580/export https_proxy=http://127.0.0.1:8580/
通過shell安裝如下的組件:
1、sudo apt-get install bison g++-multilib git gperf libxml2-utils
2、新建一個存放源碼的目錄,如:mkdir ~/andorid/source
3、在源碼目錄中輸入命令:repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
其中: android-4.0.1_r1是android源碼的版本,更多的版本可以通過下面的方式查詢:http://source.android.com/source/build-numbers.html
4、修改source/.repo/manifest/default.xml 文件中的 fetch 的值為:
git://Android.git.linaro.org/
通過如下的指令來設置郵箱和用戶名
git config --global user.name "<your name>" ----修改用戶名git config --global user.email "<your email>" ----修改email
5、在source目錄下輸入指令:repo sync
便開始了代碼的下載
Ⅵ 怎樣查看 Android APP 源代碼
用壓縮軟體打開apk文件,解壓出根目錄中的classes.dex文件
使用cmd ,dex2jar.bat classes.dex命令將classes.dex轉換為jar
再用jd-gui打開該jar就可以查看源碼了,如果apk安全性好的話,有些代碼是看不到的
Ⅶ android電池百分比選項默認關bi在哪個文件設置
BatteryController.java
其中已經有了一個成員mIconViews,電量顯示的mLabelViews已經存在,但沒有使用,這里可以參考系統都在哪些地方增加了mIconViews,照貓畫虎,也把mLabelViews加上去即可。
同時修改BatteryController.java中的onReceive:
代碼段:
boolean batteryPercent=false;//這里可以做成在Setting中設置的開關
if (batteryPercent) {
N = mLabelViews.size();
for (int i=0; i<N; i++) {
TextView v = mLabelViews.get(i);
v.setText(Integer.toString(level)+"%");
}
}
這里主要是要在PhoneStatusBar.java中增加:
mBatteryController.addIconView((ImageView)mStatusBarView.findViewById(R.id.battery));
mBatteryController.addLabelView((TextView)mStatusBarView.findViewById(R.id.battery_text));
還有很多其它地方,我不確定是否與此功能有關系,但當時都改了。建議使用SI查找所有調用addIconView,觀察一下如果有對mBatteryController的addIconView,就同時增加一個addLabelView。
上面這些都改完後需要修改res/layout下對應的布局文件,在statusbar裡面增加顯示電量百分比需要的Textview:
在res/layout目錄下搜索「+id/battery」關鍵字,在其前面增加下面的紅色部分代碼:
<TextView
android:id="@+id/battery_text"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
/>
<ImageView
android:id="@+id/battery"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:paddingStart="4dip"
/>
比如如果你的是雙卡版本,則應該是文件msim_status_bar.xml
大功告成。
如果是Android4.4源碼本身就已經支持了,就用不著這么勞神了。
Ⅷ 如何獲取android源代碼
當前的Android代碼託管在兩個方:https://github.com/android 和https://android.googlesource.com之前在 android.git.kernel.org上也有託管,不過現在重定向到了https://android.googlesource.com好在都支持git訪問。
google提供的repo工具實際上是一個內部操作git工具來簡化操作Android源碼的Python腳本。經過嘗試,直接使用git工具在ubuntu下可以實現cloneAndroid源碼。下面介紹一下方法:
1.獲取當前的在github上託管的Androidgitrepositories:
github頁面為:https://github.com/android/following。不過這個頁面不支持通過wget"https://github.com/android/following"或者curl"https://github.com/android/following"的方式訪問,錯誤信息如下:
這個時候需能做的只能是"tryagain"了。
需要說明的是"不要試圖同時並發執行多個gitclone命令",這樣會導致大量出現上面貼圖中的錯誤,另外,整個clone過程中耗時最多的gitrepository如下:
kernel_common.gitkernel_msm.gitplatform_frameworks_base.gitplatform_prebuilt.git其中platform_prebuilt.git是google提供的預編譯好的二進制文件,包含:各種庫文件,jar包,可執行程序等等,如果只是閱讀Android源代碼,這個gitrepository可以不用clone.
Ⅸ android源代碼
1、這位兄弟,不知道你說的源碼是不是真正意義上的源碼(源碼很大的,2.3之前的應該在3G左右,4.0的有4G多點),如果是android-sdks\samples\android-15目錄下的一某個例子,一樓正解。在eclipse的菜單->File->New-Project->Create project from existing source,選擇Android->Android Sample Project
2、如果是google系統源碼,你用eclipse就很難運行出來(例如Mms,彩信),因為上層運行時會依賴底層很多東西(例如一些jar包),想用eclipse運行出來必須把上層所依賴的全導進去,這個過程很復雜。所以,我建議,如果想運行源碼(如:Mms,路徑:packages\apps\Mms),弄一個linux系統。
3、實例太大,沒法上傳
請採納。