当前位置: 首页 > news >正文

党建网站怎么做百度推广靠谱吗

党建网站怎么做,百度推广靠谱吗,注册域名多长时间,wordpress 角色权限表本文实现将原生的launcher 移除&#xff0c;替换成我们自己写的launcher。 分以下几个步骤&#xff1a; 一、新建一个自己的launcher项目。 1.直接使用android studio 新建一个项目。 2.修改AndroidManifest.xml <applicationandroid:persistent"true"androi…

本文实现将原生的launcher 移除,替换成我们自己写的launcher。

分以下几个步骤:

一、新建一个自己的launcher项目。

1.直接使用android studio 新建一个项目。

2.修改AndroidManifest.xml 

  <applicationandroid:persistent="true"android:allowBackup="true"android:dataExtractionRules="@xml/data_extraction_rules"android:fullBackupContent="@xml/backup_rules"android:icon="@mipmap/ic_launcher"android:label="@string/app_name"android:roundIcon="@mipmap/ic_launcher_round"android:supportsRtl="true"android:theme="@style/Theme.AngeLauncher"tools:targetApi="31"><activityandroid:name=".MainActivity"android:exported="true"android:label="@string/app_name"android:theme="@style/Theme.AngeLauncher"><intent-filter><action android:name="android.intent.action.MAIN" /><category android:name="android.intent.category.LAUNCHER" /><!--launcher相关--><category android:name="android.intent.category.HOME" /><category android:name="android.intent.category.DEFAULT" /><category android:name="android.intent.category.MONKEY"/><category android:name="android.intent.category.LAUNCHER_APP" /></intent-filter></activity></application>

2.生成系统的签名并添加到新建的launcher 项目中

接着我们需要制作系统签名,这里使用 keytool-importkeypair 签名工具。

将 keytool-importkeypair clone 到本地,并将其中的 keytool-importkeypair 文件添加到 PATH 路径。

接着进入系统源码下的 build/target/product/security 路径,接着执行:

keytool-importkeypair -k ./platform.keystore -p android -pk8 platform.pk8 -cert platform.x509.pem -alias platform

k 表示要生成的 keystore 文件的名字,这里命名为 platform.keystore -p 表示要生成的 keystore 的密码,这里是 android -pk8 表示要导入的 platform.pk8 文件 -cert 表示要导入的platform.x509.pem -alias 表示给生成的 platform.keystore 取一个别名,这是命名为 platform

接着,把生成的签名文件 platform.keystore 拷贝到 Android Studio 项目的 app 目录下,然后在 app/build.gradle 中添加签名的配置信息:

 signingConfigs {sign {storeFile file('platform.keystore')storePassword 'android'keyAlias = 'platform'keyPassword 'android'}}buildTypes {release {signingConfig signingConfigs.signminifyEnabled falseproguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'}}

3.编译生成apk。

二、添加product

1.在device 目录下添加ange/lqa 文件夹,并新建文件 AndroidProducts.mk 

PRODUCT_MAKEFILES := \$(LOCAL_DIR)/lqa.mkCOMMON_LUNCH_CHOICES := \lqa-eng \lqa-userdebug \lqa-user \

2.拷贝 build/target/board/generic_x86_64/BoardConfig.mk 到ange/lqa 文件夹下

3.拷贝 build/target/product/aosp_x86_64.mk并重命名为lqa.mk到ange/lqa 文件夹下,并作修改如下:

#
# Copyright 2013 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#PRODUCT_USE_DYNAMIC_PARTITIONS := true# The system image of aosp_x86_64-userdebug is a GSI for the devices with:
# - x86 64 bits user space
# - 64 bits binder interface
# - system-as-root
# - VNDK enforcement
# - compatible property override enabled# This is a build configuration for a full-featured build of the
# Open-Source part of the tree. It's geared toward a US-centric
# build quite specifically for the emulator, and might not be
# entirely appropriate to inherit from for on-device configurations.# GSI for system/product
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_common.mk)# Emulator for vendor
$(call inherit-product-if-exists, device/generic/goldfish/x86_64-vendor.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/emulator_vendor.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/board/generic_x86_64/device.mk)# Enable mainline checking for excat this product name
#ifeq (aosp_x86_64,$(TARGET_PRODUCT))
PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := relaxed
#endifPRODUCT_ARTIFACT_PATH_REQUIREMENT_WHITELIST += \root/init.zygote32_64.rc \root/init.zygote64_32.rc \# Copy different zygote settings for vendor.img to select by setting property
# ro.zygote=zygote64_32 or ro.zygote=zygote32_64:
#   1. 64-bit primary, 32-bit secondary OR
#   2. 32-bit primary, 64-bit secondary
# init.zygote64_32.rc is in the core_64_bit.mk below
PRODUCT_COPY_FILES += \system/core/rootdir/init.zygote32_64.rc:root/init.zygote32_64.rcPRODUCT_NAME := lqa
PRODUCT_DEVICE := lqa
PRODUCT_BRAND := ange
PRODUCT_MODEL := Android sdk build for x86_64 lqaPRODUCT_PACKAGES +=AngeLauncher	

三、在aosp10/packages/apps/ 下创建文件夹AngeLauncher  ,把编译好的apkf复制到该目录 ,命名为AngeLauncher.apk,并新增Android.mk 文件

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := AngeLauncher
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_DEX_PREOPT := false
USE_PLATFORM_LAUNCHER3 := false
LOCAL_PRODUCT_MODULE := true
LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3Go Launcher3QuickStep
LOCAL_CERTIFICATE := PRESIGNED
include $(BUILD_PREBUILT)

四、编译&运行

source build/envsetup.sh
lunch lqa-eng
make -j4
emulator

启动后即可看到launcher已替换。

http://www.15wanjia.com/news/5218.html

相关文章:

  • 织梦移动网站模板郑州网络推广哪家口碑好
  • 重庆蜡像制作优化公司
  • 韦恩图在线制作网站seo快速上排名
  • 公司网站建设工作总结营销推广技巧
  • c mvc 大型网站开发公司怎么建立自己的网站
  • 虾皮网站有的做吗有什么引流客源的软件
  • 计算机编程是做网站如何推广一个新的app
  • 怎样做后端数据传输前端的网站海外短视频跨境电商平台是真的吗
  • 这几年做哪些网站致富黑帽seo什么意思
  • 网站怎么做自适应权威发布
  • 做网站营业范围石家庄网络推广平台
  • 宁波网站建设专业定制综合搜索引擎
  • wordpress5.0启多站点腾讯企业邮箱登录入口
  • 网站推广方法包括哪些拉新十大推广app平台
  • 网站建设公司简介模板下载沈阳关键词优化价格
  • 上海大型网站开发公司百度一下主页官网
  • wordpress 发送邮件失败seo综合查询是啥意思
  • 三年片免费大全国语seo网站页面优化包含
  • 滁州网站建设bpbqq北京疫情最新新闻
  • 长长沙网站制作会计培训班需要学多长时间
  • 企业网站建设项目计划书电脑全自动挂机赚钱
  • 广州市建设工程安全监督站网站网站建设规划要点详解
  • 温州集团网站建设百度关键词排名查询工具
  • 网站自适应 常用尺寸口碑营销例子
  • 淘宝网页版本优化公司结构
  • 提供徐州网站建设最有效的线上推广方式
  • 池州家居网站建设怎么样网站开发用什么软件
  • 珠海网站建设小程序网络营销专业介绍
  • 办一个网站要多少钱微信推广方案
  • 专业的网站建设联系做seo用哪种建站程序最好