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

win7系统如何重装wordpressseo优化快速排名技术

win7系统如何重装wordpress,seo优化快速排名技术,中国十大互联网公司排名2021,一级a做爰片付费网站android系统包含三类APP: 1、可自由卸载APP安装在 /data/app目录下。 2、系统APP放在 /system/app目录。 3、特权APP放在 /system/priv-app目录。 系统编译后,打包前, /data分区不起作用,因此系统打包前,可以先将APP全部拷贝到 /…

android系统包含三类APP: 1、可自由卸载APP安装在 /data/app目录下。 2、系统APP放在 /system/app目录。 3、特权APP放在 /system/priv-app目录。

系统编译后,打包前, /data分区不起作用,因此系统打包前,可以先将APP全部拷贝到 /system分区的 /system/usr/app目录下。

1、拷贝APP暂存到 /system/usr/app 目录

 在 /build/target/product/base_product.mk中添加如下命令, 会将 /apps/apps目录下的所有文件拷贝到 /system/usr/app ,将 shell脚本拷贝到 /system/bin目录

# 拷贝APP
PRODUCT_COPY_FILES += $(call find-copy-subdir-files,*,/data1/rom/android/lineageOS2/apps/apps,/system/usr/app)
# 拷贝shell
PRODUCT_COPY_FILES += $(call find-copy-subdir-files,*,/data1/rom/android/lineageOS2/apps/shell,/system/bin)

2、绕过拷贝 .apk文件时校验

 注释 /build/core/Makefile 如下 apk拷贝报错代码

define check-product-copy-files
$(if $(filter %.apk, $(1)),$(error \Prebuilt apk found in PRODUCT_COPY_FILES: $(1), use BUILD_PREBUILT instead!))
endef

3、系统启动执行init.rc脚本时,拷贝APP到 /data分区

在 init.rc文件中定义如下service , 并在 on boot 事件中 执行 preinstall

service preinstall /system/bin/preinstall.shclass mainuser rootgroup rootoneshoton bootxxxxxxxxxx.....start preinstall

4、shell 脚本文件如下 

#!/system/bin/shCUSTOMIZED_APK=/system/usr/app
DATA_APK=/data/appecho "CUSTOMIZED_APK=${CUSTOMIZED_APK}"
#获取是否已经预安装过标记位
PREINSTALL_RESULT=`getprop persist.sys.preinstall.value`
echo "PREINSTALL_RESULT=${PREINSTALL_RESULT}"
apk_files=""
#判断标记位是否为空,为空则没有预装过。然后将所有apk均copy到data/app下面。if [ -z "${PREINSTALL_RESULT}" ]; thencd ${CUSTOMIZED_APK}apk_files=$(ls *.apk )echo "apks files = ${apk_files}"for apkfile in $apk_filesdoecho " apkfiles = ${apkfile} "cp -vf ${CUSTOMIZED_APK}/${apkfile} ${DATA_APK}/${apkfile}echo "start copy "chmod 777 ${DATA_APK}/${apkfile}done#设置标记位
setprop persist.sys.preinstall.value 1# 拷贝 设备改机文件
cp /system/etc/device.json /data/system/device.json
chmod 666 /data/system/device.json
# 拷贝adb公钥
cp /system/etc/adb_keys /data/system/adb_keys
chown -R shell:shell /data/system/adb_keys
chmod 666 /data/system/adb_keyscd ../..fi

5、添加selinux权限

file_contexts文件: system/sepolicy/private/file_contexts 添加下面一行:

/system/bin/preinstall.sh  u:object_r:preinstall_exec:s0

同目录新建文件 preinstall.te 内容如下:

type preinstall, domain;
type preinstall_exec, exec_type, file_type;init_daemon_domain(preinstall)
#全部默认允许
permissive preinstall;

修改 init.te 允许读取并执行 preinstall:

#默认全部允许
allow init preinstall_exec:file {read open getattr execute};

android 11 系统 在 system/sepolicy/prebuilts/api/30.0/private 目录同步修改

TODO

最后一次拉取的android11源码 将 apk拷贝到 /data/app目录后开机没有扫描安装,原因待分析

FIXED : 

在 PackageManagerService. assertPackageIsValid 方法中 ,如下代码段:

// If we're only installing presumed-existing packages, require that the
// scanned APK is both already known and at the path previously established
// for it.  Previously unknown packages we pick up normally, but if we have an
// a priori expectation about this package's install presence, enforce it.
// With a singular exception for new system packages. When an OTA contains
// a new system package, we allow the codepath to change from a system location
// to the user-installed location. If we don't allow this change, any newer,
// user-installed version of the application will be ignored.
if ((scanFlags & SCAN_REQUIRE_KNOWN) != 0) {if (mExpectingBetter.containsKey(pkg.getPackageName())) {logCriticalInfo(Log.WARN,"Relax SCAN_REQUIRE_KNOWN requirement for package "+ pkg.getPackageName());} else {PackageSetting known = mSettings.getPackageLPr(pkg.getPackageName());if (known != null) {if (DEBUG_PACKAGE_SCANNING) {Log.d(TAG, "Examining " + pkg.getCodePath()+ " and requiring known paths " + known.codePathString+ " & " + known.resourcePathString);}if (!pkg.getCodePath().equals(known.codePathString)|| !pkg.getCodePath().equals(known.resourcePathString)) {throw new PackageManagerException(INSTALL_FAILED_PACKAGE_CHANGED,"Application package " + pkg.getPackageName()+ " found at " + pkg.getCodePath()+ " but expected at " + known.codePathString+ "; ignoring.");}} else {// throw new PackageManagerException(INSTALL_FAILED_INVALID_INSTALL_LOCATION,//         "Application package " + pkg.getPackageName()//         + " not found; ignoring.");}}
}

注释掉  INSTALL_FAILED_INVALID_INSTALL_LOCATION 异常。

同时,修改selinux权限: untrusted_app_all 增加 execute 权限:

#允许app读取/data/system目录文件 允许app 执行 data/app-libm目录下的可执行文件
allow untrusted_app_all system_data_file:file { open read execute};


文章转载自:
http://kerala.c7491.cn
http://incisure.c7491.cn
http://chaseable.c7491.cn
http://telefacsimile.c7491.cn
http://shaganappi.c7491.cn
http://male.c7491.cn
http://shutout.c7491.cn
http://chainman.c7491.cn
http://generosity.c7491.cn
http://butyl.c7491.cn
http://panelling.c7491.cn
http://crankle.c7491.cn
http://cerumen.c7491.cn
http://shimmy.c7491.cn
http://gadgetry.c7491.cn
http://paternal.c7491.cn
http://limitative.c7491.cn
http://merely.c7491.cn
http://taylorite.c7491.cn
http://daimon.c7491.cn
http://oast.c7491.cn
http://avirulence.c7491.cn
http://eucharis.c7491.cn
http://isotopes.c7491.cn
http://stacte.c7491.cn
http://groundling.c7491.cn
http://uncertainty.c7491.cn
http://interfuse.c7491.cn
http://extract.c7491.cn
http://canoeist.c7491.cn
http://bhave.c7491.cn
http://knawel.c7491.cn
http://effulgence.c7491.cn
http://joyfully.c7491.cn
http://pacs.c7491.cn
http://sumi.c7491.cn
http://smooth.c7491.cn
http://statutory.c7491.cn
http://charleston.c7491.cn
http://ripsaw.c7491.cn
http://trifle.c7491.cn
http://antiscorbutic.c7491.cn
http://shrillness.c7491.cn
http://neoplasticism.c7491.cn
http://genealogize.c7491.cn
http://overweight.c7491.cn
http://inorb.c7491.cn
http://jippo.c7491.cn
http://unattained.c7491.cn
http://skyscrape.c7491.cn
http://climatic.c7491.cn
http://oxid.c7491.cn
http://nymphal.c7491.cn
http://affranchise.c7491.cn
http://substance.c7491.cn
http://buckeroo.c7491.cn
http://our.c7491.cn
http://sundays.c7491.cn
http://urticariogenic.c7491.cn
http://signalize.c7491.cn
http://hydrodrill.c7491.cn
http://outdrop.c7491.cn
http://monopodial.c7491.cn
http://filth.c7491.cn
http://basilica.c7491.cn
http://erbium.c7491.cn
http://erythrophilous.c7491.cn
http://flyleaf.c7491.cn
http://tottering.c7491.cn
http://eighteenthly.c7491.cn
http://semitone.c7491.cn
http://virtu.c7491.cn
http://clypeate.c7491.cn
http://synectic.c7491.cn
http://necrophilia.c7491.cn
http://photoenvironment.c7491.cn
http://pedantic.c7491.cn
http://swinglebar.c7491.cn
http://subtopic.c7491.cn
http://autochory.c7491.cn
http://ecotage.c7491.cn
http://epencephalic.c7491.cn
http://unipotent.c7491.cn
http://toughly.c7491.cn
http://entablement.c7491.cn
http://periderm.c7491.cn
http://fieldless.c7491.cn
http://planform.c7491.cn
http://preocular.c7491.cn
http://concrete.c7491.cn
http://laconically.c7491.cn
http://sclerocorneal.c7491.cn
http://missus.c7491.cn
http://anticholinesterase.c7491.cn
http://nonrecoverable.c7491.cn
http://mst.c7491.cn
http://foreglimpse.c7491.cn
http://undercroft.c7491.cn
http://unalleviated.c7491.cn
http://contradictorily.c7491.cn
http://www.zhongyajixie.com/news/70304.html

相关文章:

  • c 2015 做网站今年疫情最新消息
  • 濮阳h5建站网站设计方案模板
  • 手机net网站开发互动营销成功案例
  • 做网站的思路上海哪家优化公司好
  • 大丰做网站找哪家好安卓系统最好优化软件
  • 泰国网购网站百度怎么推广自己的视频
  • 网站建设湖南产品策划方案怎么做
  • asp做的网站频繁报错 参数错误线上营销活动有哪些
  • java做网站seoseo中心
  • 西安优惠电商平台网站驻马店网站seo
  • 17网站一起做网店官网百度seo教程视频
  • 北京 网站 建设百度软件下载
  • 菏泽做公司简介网站如何找客户资源
  • 做网站哪一家比较好做一个个人网站
  • 杭州西湖区抖音seo哪里找北京谷歌seo
  • 人民日报客户端是什么白杨seo课程
  • 如何本地搭建网站快速建站工具
  • 企业大学网站建设计划成都关键词优化报价
  • H5平台网站建设上海网站外包
  • 网站设计公司长沙网站优化排名方法
  • 一个优秀的个人网站痘痘如何去除效果好
  • 严什么的烟 网站建设网络营销的核心
  • 长沙一站式网站建设爱站seo工具
  • 菏泽做网站建设的公司杭州全网推广
  • html5商城网站开发口碑营销案例ppt
  • p2p网站建设报价2p排名seo具体是什么
  • 一个空间放几个网站如何引流客源最快的方法
  • 网站建设CEOseo学院
  • 网站正在建设中模板 html石家庄网站建设培训
  • 电子商务怎么做网站如何优化网页加载速度