У меня есть интеграция LUA в моем приложении Android (в основном печатает на процедуры Bluetooth Printer). Я уже построил библиотеки Андролуа, и это работает нормально. Недавно Google отправил примечание, что я должен перестроить нативные библиотеки для поддержки 16K страниц памяти. Я пытаюсь это сделать.
git clone git://github.com/mkottman/AndroLua.git
cd AndroLua
$NDK/ndk-build
< /code>
Я сделал это, и он создал для меня. Я помещаю библиотеки в Jnilibs моих проектов, но это не работает. Приложение сбои в данный момент или вызовов функций внутри библиотек.2025-10-04 07:56:57.052 27779-27779 MIUIInput com.mivselltech.mobilesales2 I [MotionEvent] ViewRootImpl windowName 'com.mivselltech.mobilesales2/com.mivselltech.mobilesales2.AppPreferenceActivity', { action=ACTION_DOWN, id[0]=0, pointerCount=1, eventTime=853351957, downTime=853351957, phoneEventTime=07:56:57.048 } moveCount:0
2025-10-04 07:56:57.102 27779-27779 MIUIInput com.mivselltech.mobilesales2 I [MotionEvent] ViewRootImpl windowName 'com.mivselltech.mobilesales2/com.mivselltech.mobilesales2.AppPreferenceActivity', { action=ACTION_UP, id[0]=0, pointerCount=1, eventTime=853352009, downTime=853351957, phoneEventTime=07:56:57.100 } moveCount:0
2025-10-04 07:56:57.110 27779-27779 MobileSales com.mivselltech.mobilesales2 V Printer name is : [printer, SUN_SUP80M3, false]
2025-10-04 07:56:57.111 27779-27779 nativeloader com.mivselltech.mobilesales2 D Load /data/app/~~QiTWuFLp6DMpzdfUi8fRsg==/com.mivselltech.mobilesales2-taVI8PQMJOrmYyKGeQLcMg==/lib/arm64/libluajava.so using ns clns-7 from class loader (caller=/data/app/~~QiTWuFLp6DMpzdfUi8fRsg==/com.mivselltech.mobilesales2-taVI8PQMJOrmYyKGeQLcMg==/base.apk!classes4.dex): ok
2025-10-04 07:56:57.136 27779-27779 MobileSales com.mivselltech.mobilesales2 V lua.LloadString: 0
< /code>
И это похоже на вызов новой скомпилированной библиотеки выглядит как: < /p>
2025-10-04 07:32:40.892 20088-20088 FinalizerDaemon com.mivselltech.mobilesales2 W type=1400 audit(0.0:512168): avc: denied { getopt } for path="/dev/socket/usap_pool_primary" scontext=u:r:untrusted_app:s0:c147,c257,c512,c768 tcontext=u:r:zygote:s0 tclass=unix_stream_socket permissive=0 app=com.mivselltech.mobilesales2
2025-10-04 07:32:40.917 20088-20088 MIUIInput com.mivselltech.mobilesales2 I [MotionEvent] ViewRootImpl windowName 'com.mivselltech.mobilesales2/com.mivselltech.mobilesales2.AppPreferenceActivity', { action=ACTION_UP, id[0]=0, pointerCount=1, eventTime=851895824, downTime=851895773, phoneEventTime=07:32:40.915 } moveCount:0
2025-10-04 07:32:40.925 20088-20088 MobileSales com.mivselltech.mobilesales2 V Printer name is : [printer, SUN_SUP80M3, false]
2025-10-04 07:32:40.927 20088-20088 nativeloader com.mivselltech.mobilesales2 D Load /data/app/~~LhOYepA5G6U9SpQ3agOdQQ==/com.mivselltech.mobilesales2-8EZ2YvD5Hl_0puFLIlhbNg==/lib/arm64/libluajava.so using ns clns-7 from class loader (caller=/data/app/~~LhOYepA5G6U9SpQ3agOdQQ==/com.mivselltech.mobilesales2-8EZ2YvD5Hl_0puFLIlhbNg==/base.apk!classes4.dex): ok
2025-10-04 07:32:40.928 20088-20088 libc com.mivselltech.mobilesales2 A FORTIFY: strchr: prevented read past end of buffer
2025-10-04 07:32:40.928 20088-20088 libc com.mivselltech.mobilesales2 I handling signal: 6
2025-10-04 07:32:40.928 20088-20088 libc com.mivselltech.mobilesales2 A Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 20088 (ch.mobilesales2), pid 20088 (ch.mobilesales2)
2025-10-04 07:32:40.928 20088-20088 libc com.mivselltech.mobilesales2 I debuggerd_dispatch_pseudothread start. crashing tid: 20088
2025-10-04 07:32:40.945 20088-20088 libc com.mivselltech.mobilesales2 I crash_dump pid: 22226
2025-10-04 07:32:41.142 22228-22228 DEBUG pid-22228 A Cmdline: com.mivselltech.mobilesales2
My Android Studio - Android Studio Narwhal Drop | 2025.1.2 Патч 2 », и у меня установлены последние инструменты NDK.>
У меня есть интеграция LUA в моем приложении Android (в основном печатает на процедуры Bluetooth Printer). Я уже построил библиотеки Андролуа, и это работает нормально. Недавно Google отправил примечание, что я должен перестроить нативные библиотеки для поддержки 16K страниц памяти. Я пытаюсь это сделать.[code]git clone git://github.com/mkottman/AndroLua.git cd AndroLua $NDK/ndk-build < /code> Я сделал это, и он создал для меня. Я помещаю библиотеки в Jnilibs моих проектов, но это не работает. Приложение сбои в данный момент или вызовов функций внутри библиотек.2025-10-04 07:56:57.052 27779-27779 MIUIInput com.mivselltech.mobilesales2 I [MotionEvent] ViewRootImpl windowName 'com.mivselltech.mobilesales2/com.mivselltech.mobilesales2.AppPreferenceActivity', { action=ACTION_DOWN, id[0]=0, pointerCount=1, eventTime=853351957, downTime=853351957, phoneEventTime=07:56:57.048 } moveCount:0 2025-10-04 07:56:57.102 27779-27779 MIUIInput com.mivselltech.mobilesales2 I [MotionEvent] ViewRootImpl windowName 'com.mivselltech.mobilesales2/com.mivselltech.mobilesales2.AppPreferenceActivity', { action=ACTION_UP, id[0]=0, pointerCount=1, eventTime=853352009, downTime=853351957, phoneEventTime=07:56:57.100 } moveCount:0 2025-10-04 07:56:57.110 27779-27779 MobileSales com.mivselltech.mobilesales2 V Printer name is : [printer, SUN_SUP80M3, false] 2025-10-04 07:56:57.111 27779-27779 nativeloader com.mivselltech.mobilesales2 D Load /data/app/~~QiTWuFLp6DMpzdfUi8fRsg==/com.mivselltech.mobilesales2-taVI8PQMJOrmYyKGeQLcMg==/lib/arm64/libluajava.so using ns clns-7 from class loader (caller=/data/app/~~QiTWuFLp6DMpzdfUi8fRsg==/com.mivselltech.mobilesales2-taVI8PQMJOrmYyKGeQLcMg==/base.apk!classes4.dex): ok 2025-10-04 07:56:57.136 27779-27779 MobileSales com.mivselltech.mobilesales2 V lua.LloadString: 0 < /code> И это похоже на вызов новой скомпилированной библиотеки выглядит как: < /p> 2025-10-04 07:32:40.892 20088-20088 FinalizerDaemon com.mivselltech.mobilesales2 W type=1400 audit(0.0:512168): avc: denied { getopt } for path="/dev/socket/usap_pool_primary" scontext=u:r:untrusted_app:s0:c147,c257,c512,c768 tcontext=u:r:zygote:s0 tclass=unix_stream_socket permissive=0 app=com.mivselltech.mobilesales2 2025-10-04 07:32:40.917 20088-20088 MIUIInput com.mivselltech.mobilesales2 I [MotionEvent] ViewRootImpl windowName 'com.mivselltech.mobilesales2/com.mivselltech.mobilesales2.AppPreferenceActivity', { action=ACTION_UP, id[0]=0, pointerCount=1, eventTime=851895824, downTime=851895773, phoneEventTime=07:32:40.915 } moveCount:0 2025-10-04 07:32:40.925 20088-20088 MobileSales com.mivselltech.mobilesales2 V Printer name is : [printer, SUN_SUP80M3, false] 2025-10-04 07:32:40.927 20088-20088 nativeloader com.mivselltech.mobilesales2 D Load /data/app/~~LhOYepA5G6U9SpQ3agOdQQ==/com.mivselltech.mobilesales2-8EZ2YvD5Hl_0puFLIlhbNg==/lib/arm64/libluajava.so using ns clns-7 from class loader (caller=/data/app/~~LhOYepA5G6U9SpQ3agOdQQ==/com.mivselltech.mobilesales2-8EZ2YvD5Hl_0puFLIlhbNg==/base.apk!classes4.dex): ok 2025-10-04 07:32:40.928 20088-20088 libc com.mivselltech.mobilesales2 A FORTIFY: strchr: prevented read past end of buffer 2025-10-04 07:32:40.928 20088-20088 libc com.mivselltech.mobilesales2 I handling signal: 6 2025-10-04 07:32:40.928 20088-20088 libc com.mivselltech.mobilesales2 A Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 20088 (ch.mobilesales2), pid 20088 (ch.mobilesales2) 2025-10-04 07:32:40.928 20088-20088 libc com.mivselltech.mobilesales2 I debuggerd_dispatch_pseudothread start. crashing tid: 20088 2025-10-04 07:32:40.945 20088-20088 libc com.mivselltech.mobilesales2 I crash_dump pid: 22226 2025-10-04 07:32:41.142 22228-22228 DEBUG pid-22228 A Cmdline: com.mivselltech.mobilesales2 [/code] My Android Studio - Android Studio Narwhal Drop | 2025.1.2 Патч 2 », и у меня установлены последние инструменты NDK.>