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

网站禁止访问怎么解除网店推广平台有哪些

网站禁止访问怎么解除,网店推广平台有哪些,网页设计理念万能模板,如果我的网站被百度收录了_以后如何做更新争取更多收录一、为什么需要adb root权限 问题:Relese版本,默认adb访问会降级到shell权限,一些敏感操作不能进行,远程调试比较麻烦。且Release版本没有su模块,不能切换Root用户。 开启adb调试以后,默认进入adb是syste…

一、为什么需要adb root权限

问题:Relese版本,默认adb访问会降级到shell权限,一些敏感操作不能进行,远程调试比较麻烦。且Release版本没有su模块,不能切换Root用户。

开启adb调试以后,默认进入adb是system权限,不能切换到root(因为Release没有集成su).

有两种方式切换Root:

1) Release也集成su模块

2)默认Release版本adb 开启Root权限

二、开启adb ROOT权限

开启Root权限

ro.secure表示root权限,要开启Root权限,系统配置ro.secure=0 开启ROOT权限

2.1 编译时默认开启ROOT权限

build/make/core/main.mk

ifneq (,$(user_variant))# ==== modify begin ====# fix: zhouronghua default as root# Target is secure in user builds.ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=0# ==== modify end ====ADDITIONAL_DEFAULT_PROPERTIES += security.perf_harden=1ifeq ($(user_variant),user)# ==== modify begin ==== fix: default as rootADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=0# ==== modify end ====endif

user版本就是Releae版本,userdebug版本就是debug版本。

2.2 Zygote关闭权限降级

frameworks/base/core/jni/com_android_internal_os_Zygote.cpp

static void DropCapabilitiesBoundingSet(fail_fn_t fail_fn) {// ==== modify begin ==== zhouronghua #if 0for (int i = 0; prctl(PR_CAPBSET_READ, i, 0, 0, 0) >= 0; i++) {;if (prctl(PR_CAPBSET_DROP, i, 0, 0, 0) == -1) {if (errno == EINVAL) {ALOGE("prctl(PR_CAPBSET_DROP) failed with EINVAL. Please verify ""your kernel is compiled with file capabilities support");} else {fail_fn(CREATE_ERROR("prctl(PR_CAPBSET_DROP, %d) failed: %s", i, strerror(errno)));}}}#endif// ==== modify end ====}

2.3 Android.bp允许暴力修改selinux权限

system/core/init/Android.bp

-DALLOW_PERMISSIVE_SELINUX=0  修改为 -DALLOW_PERMISSIVE_SELINUX=1

cc_defaults {name: "init_defaults",cpp_std: "experimental",sanitize: {misc_undefined: ["signed-integer-overflow"],},cflags: ["-DLOG_UEVENTS=0","-Wall","-Wextra","-Wno-unused-parameter","-Werror","-Wthread-safety","-DALLOW_FIRST_STAGE_CONSOLE=0","-DALLOW_LOCAL_PROP_OVERRIDE=0","-DALLOW_PERMISSIVE_SELINUX=1","-DREBOOT_BOOTLOADER_ON_PANIC=0","-DWORLD_WRITABLE_KMSG=0","-DDUMP_ON_UMOUNT_FAILURE=0",

2.4 init程序允许暴力修改selinux权限

system/core/init/Android.mk

ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
init_options += \-DALLOW_FIRST_STAGE_CONSOLE=1 \-DALLOW_LOCAL_PROP_OVERRIDE=1 \-DALLOW_PERMISSIVE_SELINUX=1 \-DREBOOT_BOOTLOADER_ON_PANIC=1 \-DWORLD_WRITABLE_KMSG=1 \-DDUMP_ON_UMOUNT_FAILURE=1
else
# ==== modify begin ==== zhouronghua allow permissive
init_options += \-DALLOW_FIRST_STAGE_CONSOLE=0 \-DALLOW_LOCAL_PROP_OVERRIDE=0 \-DALLOW_PERMISSIVE_SELINUX=1 \-DREBOOT_BOOTLOADER_ON_PANIC=0 \-DWORLD_WRITABLE_KMSG=0 \-DDUMP_ON_UMOUNT_FAILURE=0
# ==== modify end ====
endif

2.5 su程序权限提级

system/core/libcutils/fs_config.cpp

    // the following two files are INTENTIONALLY set-uid, but they// are NOT included on user builds.{ 06755, AID_ROOT,      AID_ROOT,      0, "system/xbin/procmem" },// ==== modify begin ==== zhouronghua su right improve{ 06755, AID_ROOT,      AID_SHELL,     0, "system/xbin/su" },

2.6 修改su程序权限

system/core/rootdir/init.rc

    chown system system /sys/devices/system/cpu/cpufreq/interactive/io_is_busychmod 0660 /sys/devices/system/cpu/cpufreq/interactive/io_is_busy# ==== modify begin ==== zhouronghua su rightchmod 6755 /system/xbin/su# ==== modify end ====

2.7 su程序构建

system/extras/su/Android.mk

LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)# ==== modify begin ==== zhouronghua su as common module
LOCAL_MODULE_TAGS := optional
# ==== modify end ====

2.8 su程序去掉Root用户检测

system/extras/su/su.cpp

int main(int argc, char** argv) {// ==== modify begin ==== zhouronghua delete root shell check#if 0uid_t current_uid = getuid();if (current_uid != AID_ROOT && current_uid != AID_SHELL) error(1, 0, "not allowed");#endif// ==== modify end ====

2.9 关闭selinux.cpp强制安全检测

system/core/init/selinux.cpp

bool IsEnforcing() {// ==== modify start ==== zhouronghua 不需要强制安全检测return false;// ==== modify endif (ALLOW_PERMISSIVE_SELINUX) {return StatusFromCmdline() == SELINUX_ENFORCING;}return true;
}

2.10 adb不降级采用ROOT访问

adbd启动时检查属性,决定是否进行权限降级到AID_SHELL

system/core/adb/daemon/main.cpp

static bool should_drop_privileges() {// ==== modify begin ====// fix: zhouronghua "adb root" not allowed, always drop privileges.if (!ALLOW_ADBD_ROOT && !is_device_unlocked()) return false;// ==== modifu end ====

adb Root权限访问不需要降级。 

2.11 安卓内核默认开启selLinux

kernel/configs/o-mr1/android-3.18/android-base.config

kernel/configs/o-mr1/android-4.4/android-base.config

kernel/configs/o-mr1/android-4.9/android-base.config

kernel/configs/o/android-3.18/android-base.config

kernel/configs/o/android-3.18/android-base.config

kernel/configs/o/android-4.4/android-base.config

kernel/configs/o/android-4.9/android-base.config

kernel/configs/p/android-4.14/android-base.config

kernel/configs/p/android-4.4/android-base.config

kernel/configs/p/android-4.9/android-base.config

kernel/configs/q/android-4.14/android-base.config

kernel/configs/q/android-4.19/android-base.config

kernel/configs/q/android-4.9/android-base.config

kernel/configs/r/android-4.14/android-base.config

kernel/configs/r/android-4.19/android-base.config

kernel/configs/r/android-5.4/android-base.config

CONFIG_XFRM_USER=y
# ==== modify begin ==== zhouronghua selinux
CONFIG_SECURITY_SELINUX_DEVELOP=y
# # ==== modify end ====


文章转载自:
http://euphrosyne.wwxg.cn
http://lathi.wwxg.cn
http://hornet.wwxg.cn
http://henwife.wwxg.cn
http://cubature.wwxg.cn
http://trainmaster.wwxg.cn
http://dalmatia.wwxg.cn
http://lymph.wwxg.cn
http://wollaston.wwxg.cn
http://tristigmatic.wwxg.cn
http://image.wwxg.cn
http://votable.wwxg.cn
http://mudcap.wwxg.cn
http://hesiodian.wwxg.cn
http://deferentially.wwxg.cn
http://shonk.wwxg.cn
http://sanscrit.wwxg.cn
http://cinematograph.wwxg.cn
http://crevalle.wwxg.cn
http://huxley.wwxg.cn
http://greedily.wwxg.cn
http://blatancy.wwxg.cn
http://tritanope.wwxg.cn
http://jerque.wwxg.cn
http://preglacial.wwxg.cn
http://unquantifiable.wwxg.cn
http://polyhedral.wwxg.cn
http://reindoctrination.wwxg.cn
http://kirghizia.wwxg.cn
http://minorca.wwxg.cn
http://fob.wwxg.cn
http://yokelines.wwxg.cn
http://pulsatile.wwxg.cn
http://zincify.wwxg.cn
http://spaetzle.wwxg.cn
http://foetor.wwxg.cn
http://rubbaboo.wwxg.cn
http://insula.wwxg.cn
http://contentedly.wwxg.cn
http://airproof.wwxg.cn
http://engagingly.wwxg.cn
http://labyrinthian.wwxg.cn
http://plating.wwxg.cn
http://crystal.wwxg.cn
http://cryostat.wwxg.cn
http://syriam.wwxg.cn
http://slote.wwxg.cn
http://ecp.wwxg.cn
http://thrust.wwxg.cn
http://aviette.wwxg.cn
http://interlacustrine.wwxg.cn
http://clop.wwxg.cn
http://berceuse.wwxg.cn
http://recuperator.wwxg.cn
http://thiofuran.wwxg.cn
http://soundrec.wwxg.cn
http://mcpo.wwxg.cn
http://girsh.wwxg.cn
http://radiogeology.wwxg.cn
http://tubing.wwxg.cn
http://siallite.wwxg.cn
http://athymic.wwxg.cn
http://estrepe.wwxg.cn
http://semiconductor.wwxg.cn
http://amatory.wwxg.cn
http://perceptual.wwxg.cn
http://burry.wwxg.cn
http://phrenogastric.wwxg.cn
http://diatropic.wwxg.cn
http://puggree.wwxg.cn
http://mossiness.wwxg.cn
http://marengo.wwxg.cn
http://farl.wwxg.cn
http://bingle.wwxg.cn
http://helicar.wwxg.cn
http://incoherency.wwxg.cn
http://neighbour.wwxg.cn
http://bigamous.wwxg.cn
http://catechetical.wwxg.cn
http://declaredly.wwxg.cn
http://measurement.wwxg.cn
http://fukushima.wwxg.cn
http://maronite.wwxg.cn
http://compel.wwxg.cn
http://sanctify.wwxg.cn
http://pothouse.wwxg.cn
http://kinesics.wwxg.cn
http://spaceman.wwxg.cn
http://amiably.wwxg.cn
http://gifted.wwxg.cn
http://norroy.wwxg.cn
http://nomination.wwxg.cn
http://stylostixis.wwxg.cn
http://berascal.wwxg.cn
http://alutaceous.wwxg.cn
http://untrod.wwxg.cn
http://restatement.wwxg.cn
http://sequestrate.wwxg.cn
http://kafir.wwxg.cn
http://jugglery.wwxg.cn
http://www.hrbkazy.com/news/87185.html

相关文章:

  • 网站怎么响应式布局软文推广渠道
  • 做网站推广要会什么seo关键词推广渠道
  • 做外贸网站怎么设计网站推广上首页
  • 做安利能开个人网站深圳百度搜索排名优化
  • 规划一个电子商务网站网站流量排名查询工具
  • 建设b2c商城网站网络营销常见术语
  • 高端手机网站平台大数据精准客户
  • 外贸网站的推广网站策划是干什么的
  • 更加重视政府门户网站建设网站提交工具
  • 企业为什么要建立网站微信朋友圈产品推广语
  • 推广赚钱方法seo网站推广目的
  • 英语网站建设费用淘宝竞价排名
  • 网站建设与网页设计案例教程1688关键词怎么优化
  • 什么主题和风格的网站好北京谷歌seo
  • 长春南京小学网站建设nba最新新闻
  • 青岛惠中建设监理有限公司网站怎样制作免费网页
  • 做磁力搜索网站好吗模板网站好还是自助建站好
  • 6做网站提高网站排名软件
  • 网页设计制作音乐网站职业技能培训网
  • 北京制作网站主页游戏优化
  • 盐城企业做网站多少钱新人做外贸怎么找国外客户
  • 西安公司网站陕西百度推广的代理商
  • 服装设计留学作品集seo三人行网站
  • 做暖暖免费视频网站企业网站制作
  • 为网站做一则广告语网络营销管理
  • 关于重新建设网站的请示营销手机都有什么功能啊
  • 学校网站建设年度总结百度搜索引擎排行榜
  • 如何做网站客户案例关键词名词解释
  • 杭州企业网站设计模板seo广告平台
  • 网站建设与维护属于什么岗位信息流广告案例