-
大小: 19.8MB文件类型: .7z金币: 2下载: 1 次发布日期: 2023-06-14
- 语言: Java
- 标签: Launcher3 android7.1.2 桌面
资源简介
Google原版Launcher3-android7.1.2,使用Android Studio 2.3.1编译打包成功,可以正常安装运行。
代码片段和文件信息
#!/usr/bin/env python2.5
import cgi
import os
import shutil
import sys
import sqlite3
SCREENS = 5
COLUMNS = 4
ROWS = 4
CELL_SIZE = 110
DIR = “db_files“
AUTO_FILE = “launcher.db“
APPLICATION_COMPONENTS = [
“com.android.calculator2/com.android.calculator2.Calculator“
“com.android.providers.downloads.ui/com.android.providers.downloads.ui.DownloadList“
“com.android.settings/com.android.settings.Settings“
“com.android.mms/com.android.mms.ui.ConversationList“
“com.android.contacts/com.android.contacts.activities.PeopleActivity“
“com.android.dialer/com.android.dialer.DialtactsActivity“
]
def usage():
print “usage: fill_screens.py -- fills up the launcher db“
def make_dir():
shutil.rmtree(DIR True)
os.makedirs(DIR)
def pull_file(fn):
print “pull_file: “ + fn
rv = os.system(“adb pull“
+ “ /data/data/com.android.launcher/databases/launcher.db“
+ “ “ + fn);
if rv != 0:
print “adb pull failed“
sys.exit(1)
def push_file(fn):
print “push_file: “ + fn
rv = os.system(“adb push“
+ “ “ + fn
+ “ /data/data/com.android.launcher/databases/launcher.db“)
if rv != 0:
print “adb push failed“
sys.exit(1)
def process_file(fn):
print “process_file: “ + fn
conn = sqlite3.connect(fn)
c = conn.cursor()
c.execute(“DELETE FROM favorites“)
intentFormat = “#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=%s;end“
id = 0;
for s in range(SCREENS):
for x in range(ROWS):
for y in range(COLUMNS):
id += 1
insert = “INSERT into favorites (_id title intent container screen cellX cellY spanX spanY itemType appWidgetId iconType) VALUES (%d ‘%s‘ ‘%s‘ %d %d %d %d %d %d %d %d %d)“
insert = insert % (id “title“ ““ -100 s x y 1 1 2 -1 0)
c.execute(insert)
folder_id = id
for z in range(15):
id += 1
intent = intentFormat % (APPLICATION_COMPONENTS[id % len(APPLICATION_COMPONENTS)])
insert = “INSERT into favorites (_id title intent container screen cellX cellY spanX spanY itemType appWidgetId iconType) VALUES (%d ‘%s‘ ‘%s‘ %d %d %d %d %d %d %d %d %d)“
insert = insert % (id “title“ intent folder_id 0 0 0 1 1 0 -1 0)
c.execute(insert)
conn.commit()
c.close()
def main(argv):
if len(argv) == 1:
make_dir()
pull_file(AUTO_FILE)
process_file(AUTO_FILE)
push_file(AUTO_FILE)
else:
usage()
if __name__==“__main__“:
main(sys.argv)
相关资源
- android RDP远程桌面客户端源码
- 创建桌面快捷方式源代码(android)
- 禁用其他应用,并且不在桌面显示
- Java实现远程桌面(参赛作品)
- JAVA100个。SE的经典桌面应用程序
- 桌面精灵-阿狸桌宠
- java桌面程序swing demo
- rk3288Android7.1.2rk808edp
- 官方Launcher3可以在Android Studio上编译
- 图书管理系统桌面程序
- Java实现远程桌面连接
- iptv桌面apk附带管理云平台
- Launcher3源码Android 6.0
- java 桌面动态宠物
- 桌面和网页开发都能用的OCX控件,可
- 基于JAVA的桌面宠物
- android中自动在桌面创建快捷键,且不
- java开发的社会养老保险系统,仿win
- JAVA项目开发案例全程实录 第二版 全
- 图书管理系统.zip177801
- 电子桌面时钟LED数字时钟酷炫美观
- 《公立大学注册系统》Java桌面版源码
- Android桌面悬浮窗效果实现,仿360手机
- 仿QQ+webso框架·开源
- 模仿酷我音乐盒外观
- android 创建桌面快捷方式源代码
- Android Launcher 桌面分页滑动代码
- Android歌词播放的实现
- installanywhere 2009打包java桌面程序安装
- Android开发教程之桌面组件初探--千锋
评论
共有 条评论