csulyb
V2EX  ›  外包

小活需要编译 32 位安卓的 liblog.so

  •  
  •   csulyb · Mar 16, 2025 · 1134 views
    This topic created in 510 days ago, the information mentioned may be changed or developed.

    https://github.com/joneschrisg/android-system-core/blob/master/liblog/logd_write.c 帮忙在

    int __android_log_print(int prio, const char *tag, const char *fmt, ...)
    {
        va_list ap;
        char buf[LOG_BUF_SIZE];
    
        va_start(ap, fmt);
        vsnprintf(buf, LOG_BUF_SIZE, fmt, ap);
        va_end(ap);
    
        return __android_log_write(prio, tag, buf);
    }
    

    加一个保存文件 可以写死到/sdcard/ 联系:Y3N1bHli

    1 replies    2025-03-19 21:36:19 +08:00
    eleba
        1
    eleba  
       Mar 19, 2025
    锤子哦 你以为随便就能往 sdcard 里写文件啊,高版本都没法过 selinux
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2938 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 09:08 · PVG 17:08 · LAX 02:08 · JFK 05:08
    ♥ Do have faith in what you're doing.