mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 21:06:09 +00:00
feat: target Android 14 so Play Protect installs DroidDeck without a warning (#2683)
* fix(proot): ship proot in the APK and run it from the native library directory * fix(native): start rootfs programs through an APK-shipped exec loader where data files may not be executed * fix(audio): start PulseAudio through the system linker where data files may not be executed * feat: target Android 14 (SDK 34) so Play Protect installs DroidDeck without a warning * fix: ask for all-files access on Android 11+, reject unloadable ELFs before exec, keep checking the proot pack * fix: hand host scripts to the kernel, skip startup launch while all-files Settings is open * fix: run proot from its add-on pack through Android's linker, so the APK carries no proot * fix: declare high sampling rate sensors for controller gyro at target 34 * fix: offer the rootfs proot fallback only where Android lets proot exec its loader * test: install the runtime's proot pack in GameFileSync fixtures
This commit is contained in:
1 parent
6188c9ac0d
commit
dc98b6b96a
28 files changed
+601
-58
No files matched your search
@@ -59,6 +59,8 @@ class RuntimeInputsTest(unittest.TestCase):
|
||||
proot = {}
|
||||
for name, (pack, rel) in runtime.PACKED_FILES.items():
|
||||
proot[rel] = (self.root / runtime.outputs(self.root)[name]).read_bytes()
|
||||
for name, rel in runtime.PROOT_LOADER.items():
|
||||
proot[rel] = (self.root / runtime.outputs(self.root)[name]).read_bytes()
|
||||
self.pack('proot', proot)
|
||||
self.pack('butler', {'butler': b'butler', '7z.so': b'7z', 'libc7zip.so': b'c7zip', 'version': b'15.32.0'})
|
||||
for prefix, name in runtime.PACKED.items():
|
||||
@@ -84,6 +86,19 @@ class RuntimeInputsTest(unittest.TestCase):
|
||||
with self.assertRaisesRegex(ValueError, 'proot pack provides'):
|
||||
runtime.check_apk(apk, self.root)
|
||||
|
||||
def test_a_stale_proot_loader_in_the_pack_is_rejected(self):
|
||||
apk = self.current_apk(self.root / 'current.apk')
|
||||
loader = (self.root / 'app/src/main/jniLibs/arm64-v8a/libproot-loader.so').read_bytes()
|
||||
self.pack('proot', {'libproot.so': (self.root / 'app/src/main/jniLibs/arm64-v8a/libproot.so').read_bytes(),
|
||||
'libproot-loader.so': loader + b'older'})
|
||||
with self.assertRaisesRegex(ValueError, 'proot is missing or has a stale libproot-loader.so'):
|
||||
runtime.check_apk(apk, self.root)
|
||||
|
||||
def test_only_the_proot_loader_ships_in_the_apk(self):
|
||||
self.assertFalse(self.in_apk('lib/arm64-v8a/libproot.so'))
|
||||
self.assertTrue(self.in_apk('lib/arm64-v8a/libproot-loader.so'))
|
||||
runtime.check_apk(self.current_apk(self.root / 'current.apk'), self.root)
|
||||
|
||||
def test_missing_proot_cannot_be_attested(self):
|
||||
(self.root / 'app/src/main/jniLibs/arm64-v8a/libproot.so').unlink()
|
||||
with self.assertRaisesRegex(ValueError, 'libproot.so'):
|
||||
|
||||
Reference in new issue
Block a user