大家好 我是小谢丶
不废话了,切入主题。
我们来说如何通过反编译实现内外置储存卡切换吧。其实不难的。
首先 我们导入框架我手机只有一个框架也就是framework-res.apk,其他的系统像百度云就有一个framework yi什么什么的框架……也导入。
其次 我们反编译框架framework-res.apk,得到了一个文件夹 然后找到res/xml/storage_list.xml
我们可以看到 <?xml version="1.0" encoding="utf-8"?>
<StorageList
xmlns:android="http://schemas.android.com/apk/res/android">
<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_int_sd_card" android:primary="true" android:removable="true" android:emulated="false" android:mtpReserve="100" android:allowMassStorage="true" android:maxFileSize="4096" />
<storage android:mountPoint="/storage/sdcard1" android:storageDescription="@string/storage_ext_sd_card" android:primary="false" android:removable="true" android:emulated="false" android:mtpReserve="100" android:allowMassStorage="true" android:maxFileSize="4096" />
</StorageList>
我们可以看到storage0 or storage1 0就是我们的内置储存卡1就是我们的外置储存卡 然后我们又看到了 android:primary (首要的 ) 0是true. 1是false 聪明的你肯定会知道 把0的的true改成false. 把1的false改成true 这样就实现了外置储存卡为默认储存卡了。然后回编 替换该替换的。
本方法适合联想A788t 其他自测
我是小谢丶
我为自己代言。
不废话了,切入主题。
我们来说如何通过反编译实现内外置储存卡切换吧。其实不难的。
首先 我们导入框架我手机只有一个框架也就是framework-res.apk,其他的系统像百度云就有一个framework yi什么什么的框架……也导入。
其次 我们反编译框架framework-res.apk,得到了一个文件夹 然后找到res/xml/storage_list.xml
我们可以看到 <?xml version="1.0" encoding="utf-8"?>
<StorageList
xmlns:android="http://schemas.android.com/apk/res/android">
<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_int_sd_card" android:primary="true" android:removable="true" android:emulated="false" android:mtpReserve="100" android:allowMassStorage="true" android:maxFileSize="4096" />
<storage android:mountPoint="/storage/sdcard1" android:storageDescription="@string/storage_ext_sd_card" android:primary="false" android:removable="true" android:emulated="false" android:mtpReserve="100" android:allowMassStorage="true" android:maxFileSize="4096" />
</StorageList>
我们可以看到storage0 or storage1 0就是我们的内置储存卡1就是我们的外置储存卡 然后我们又看到了 android:primary (首要的 ) 0是true. 1是false 聪明的你肯定会知道 把0的的true改成false. 把1的false改成true 这样就实现了外置储存卡为默认储存卡了。然后回编 替换该替换的。
本方法适合联想A788t 其他自测
我是小谢丶
我为自己代言。