This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//this works. | |
const puppeteer = require('puppeteer'); | |
const fs = require('fs') | |
const path = require('path') | |
const { promisify } = require('util') | |
const readFileAsync = promisify(fs.readFile) | |
const writeFileAsync = promisify(fs.writeFile); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.AppComponentFactory; | |
import android.content.pm.ApplicationInfo; | |
import android.util.Log; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; | |
import java.nio.channels.Channels; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.zip.ZipFile; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
#进程名字可修改 | |
#脚本逻辑 -> 存在端口 pass 不存在则检查小红书在不在 在就注入 否则-f启动或者点击方式启动 然后循环 | |
#用frida加载androidAsync.dex在APP跑了个http服务对外提供接口,PORT是http服务监听的端口,用的是frida-inject注入js | |
#如果是frida-server那么可以改为用ps判断frida-server在不在 | |
#启动命令 sh -T- data/local/tmp/daemon.sh | |
PORT=45459 | |
CURRENT_WINDOW_COUNT=0 | |
PRO_NAME=com.xingin.xhs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
#进程名字可修改 | |
#脚本逻辑 -> 存在端口 pass 不存在则检查小红书在不在 在就注入 否则-f启动或者点击方式启动 然后循环 | |
#用frida加载androidAsync.dex在APP跑了个http服务对外提供接口,PORT是http服务监听的端口,用的是frida-inject注入js | |
#如果是frida-server那么可以改为用ps判断frida-server在不在 | |
#启动命令 sh -T- /data/local/tmp/daemon.sh | |
PORT=45459 | |
CURRENT_WINDOW_COUNT=0 | |
PRO_NAME=com.xingin.xhs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class chelaile | |
{ | |
// 城市信息接口 | |
private $citylist_url = 'https://web.chelaile.net.cn/cdatasource/citylist'; | |
// 附近站点线路及信息 | |
private $homePageInfo = 'https://api.chelaile.net.cn/bus/stop!homePageInfo.action'; | |
//实时接口 | |
private $lineDetail = 'http://api.chelaile.net.cn/bus/line!lineDetail.action'; | |
//公交车细节 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.leadroyal.miuiusb; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Method; | |
import de.robv.android.xposed.IXposedHookLoadPackage; | |
import de.robv.android.xposed.XC_MethodHook; | |
import de.robv.android.xposed.XposedBridge; | |
import de.robv.android.xposed.XposedHelpers; | |
import de.robv.android.xposed.callbacks.XC_LoadPackage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function showStacks() { | |
Java.perform(function() { | |
console.log(Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Exception").$new())); | |
}); | |
} | |
function hook() { | |
Java.perform(function () { | |
const commonPaths = [ | |
"/data/local/bin/su", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Workarounds for building Q on 8GB RAM environment: | |
1. At the start of the build: | |
[ 99% 138/139] /mnt/ssd/aosip/out/soong/.bootstrap/bin/soong_build /mnt/ssd/aosip/out/soong/build.ninja | |
This used to take around 30mins, after enabling zram now it takes around 30secs (thanks to @kdrag0n for the zram idea) which is on par with what happens in 16GB RAM building environments | |
sudo apt install zram-config for installing zram-config package | |
sudo nano /etc/fstab and add a # in front of the swap disk if you have one and then reboot | |
After booting cat /proc/swaps to check if zram is enabled or not |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.leadroyal.miuiusb; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Method; | |
import de.robv.android.xposed.IXposedHookLoadPackage; | |
import de.robv.android.xposed.XC_MethodHook; | |
import de.robv.android.xposed.XposedBridge; | |
import de.robv.android.xposed.XposedHelpers; | |
import de.robv.android.xposed.callbacks.XC_LoadPackage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/dexlayout/Android.bp b/dexlayout/Android.bp | |
index 838510be37..34186d85d7 100644 | |
--- a/dexlayout/Android.bp | |
+++ b/dexlayout/Android.bp | |
@@ -132,6 +132,30 @@ cc_defaults { | |
], | |
} | |
+cc_defaults { | |
+ name: "compact_dex_converter_defaults", |
NewerOlder