wenxuanjun / nolitter Goto Github PK
View Code? Open in Web Editor NEWPrevents apps from littering in storage.
License: GNU General Public License v3.0
Prevents apps from littering in storage.
License: GNU General Public License v3.0
快手会在/storage/emulated/0/Android/目录产生
.Android_(随机英文数字组合)文件夹
例如/storage/emulated/0/Android/.Android_f0fcd2bde58f4ae8/
/storage/emulated/0/Android/.Android_819ee91f8d8cc1bb/
[ 2023-02-26T18:18:16.441 10294: 2260: 2260 E/LSPosed-Bridge ] java.lang.RuntimeException: Unable to fetch the content, url: content://lantian.nolitter.provider/main/com.tencent.mm
at GN.beforeHookedMethod(SourceFile:494)
at de.robv.android.xposed.XposedBridge$AdditionalHookInfo.callback(Unknown Source:79)
at LSPHooker_.attach(Unknown Source:11)
at android.app.Instrumentation.newApplication(Instrumentation.java:1157)
at android.app.LoadedApk.makeApplication(LoadedApk.java:1223)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6431)
at android.app.ActivityThread.access$1300(ActivityThread.java:219)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
[ 2023-02-26T18:18:25.404 10274: 2447: 2447 E/LSPosed-Bridge ] java.lang.RuntimeException: Unable to fetch the content, url: content://lantian.nolitter.provider/main/com.tencent.mobileqq
at GN.beforeHookedMethod(SourceFile:494)
at de.robv.android.xposed.XposedBridge$AdditionalHookInfo.callback(Unknown Source:79)
at LSPHooker_.attach(Unknown Source:11)
at android.app.Instrumentation.newApplication(Instrumentation.java:1157)
at android.app.LoadedApk.makeApplication(LoadedApk.java:1223)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6431)
at android.app.ActivityThread.access$1300(ActivityThread.java:219)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
----part 3 start---- [ 2022-08-24T01:09:47.086 10229: 26544: 26544 I/LSPosed-Bridge ] Loading module lantian.nolitter from /data/app/~~xcEQwkxx6sbi4ourOADqjw==/lantian.nolitter-E0PEnGQaGzCbdLTRipPuUQ==/base.apk [ 2022-08-24T01:09:47.097 10229: 26544: 26544 I/LSPosed-Bridge ] Loading class lantian.nolitter.XposedHook [ 2022-08-24T01:09:47.166 10229: 26544: 26544 E/LSPosed-Bridge ] java.lang.RuntimeException: Unable to fetch the content at lantian.nolitter.XposedHook.f(Unknown Source:33) at EM.beforeHookedMethod(SourceFile:5) at de.robv.android.xposed.XposedBridge$AdditionalHookInfo.callback(Unknown Source:79) at LSPHooker_.attach(Unknown Source:11) at android.app.Instrumentation.newApplication(Instrumentation.java:1192) at android.app.LoadedApk.makeApplication(LoadedApk.java:1356) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6723) at android.app.ActivityThread.access$1500(ActivityThread.java:256) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2091) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7870) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) [ 2022-08-24T01:09:47.197 10202: 3799: 17804 I/LSPosed-Bridge ] scan for obsolete insert: /storage/emulated/0/autonavi/autonavi_heap_error_log.txt_tmp [ 2022-08-24T01:09:47.320 10202: 3799: 17824 I/LSPosed-Bridge ] scan for obsolete insert: /storage/emulated/0/.UTSystemConfig/Global/Alvin2.xml [ 2022-08-24T01:09:47.345 10202: 3799: 17824 I/LSPosed-Bridge ] scan for obsolete insert: /storage/emulated/0/.DataStorage/ContextData.xml [ 2022-08-24T01:09:47.507 10229: 26611: 26611 I/LSPosed-Bridge ] Loading module lantian.nolitter from /data/app/~~xcEQwkxx6sbi4ourOADqjw==/lantian.nolitter-E0PEnGQaGzCbdLTRipPuUQ==/base.apk [ 2022-08-24T01:09:47.514 10229: 26611: 26611 I/LSPosed-Bridge ] Loading class lantian.nolitter.XposedHook [ 2022-08-24T01:09:47.563 10229: 26611: 26611 E/LSPosed-Bridge ] java.lang.RuntimeException: Unable to fetch the content at lantian.nolitter.XposedHook.f(Unknown Source:33) at EM.beforeHookedMethod(SourceFile:5) at de.robv.android.xposed.XposedBridge$AdditionalHookInfo.callback(Unknown Source:79) at LSPHooker_.attach(Unknown Source:11) at android.app.Instrumentation.newApplication(Instrumentation.java:1192) at android.app.LoadedApk.makeApplication(LoadedApk.java:1356) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6723) at android.app.ActivityThread.access$1500(ActivityThread.java:256) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2091) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7870) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) [ 2022-08-24T01:09:48.354 10202: 3799: 26608 I/LSPosed-Bridge ] scan result: content://media/external_primary/file/2262 [ 2022-08-24T01:09:48.359 10202: 3799: 26610 I/LSPosed-Bridge ] scan result: content://media/external_primary/file/2263 [ 2022-08-24T01:09:48.663 10202: 3799: 17822 I/LSPosed-Bridge ] scan for obsolete insert: /storage/emulated/0/.UTSystemConfig/Global/Alvin2.xml [ 2022-08-24T01:09:48.674 10229: 26690: 26690 I/LSPosed-Bridge ] Loading module lantian.nolitter from /data/app/~~xcEQwkxx6sbi4ourOADqjw==/lantian.nolitter-E0PEnGQaGzCbdLTRipPuUQ==/base.apk [ 2022-08-24T01:09:48.682 10229: 26690: 26690 I/LSPosed-Bridge ] Loading class lantian.nolitter.XposedHook [ 2022-08-24T01:09:48.682 10202: 3799: 17787 I/LSPosed-Bridge ] scan for obsolete insert: /storage/emulated/0/.DataStorage/ContextData.xml [ 2022-08-24T01:09:48.754 10229: 26690: 26690 E/LSPosed-Bridge ] java.lang.RuntimeException: Unable to fetch the content at lantian.nolitter.XposedHook.f(Unknown Source:33) at EM.beforeHookedMethod(SourceFile:5) at de.robv.android.xposed.XposedBridge$AdditionalHookInfo.callback(Unknown Source:79) at LSPHooker_.attach(Unknown Source:11) at android.app.Instrumentation.newApplication(Instrumentation.java:1192) at android.app.LoadedApk.makeApplication(LoadedApk.java:1356) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6723) at android.app.ActivityThread.access$1500(ActivityThread.java:256) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2091) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7870) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) [ 2022-08-24T01:09:48.781 10202: 3799: 5453 I/LSPosed-Bridge ] scan for obsolete insert: /storage/emulated/0/autonavi/location/location_heap_error_log.txt_tmp [ 2022-08-24T01:09:48.912 10202: 3799: 5453 I/LSPosed-Bridge ] scan for obsolete insert: /storage/emulated/0/.UTSystemConfig/Global/Alvin2.xml [ 2022-08-24T01:09:48.956 10202: 3799: 17789 I/LSPosed-Bridge ] scan for obsolete insert: /storage/emulated/0/.DataStorage/ContextData.xml [ 2022-08-24T01:09:49.332 10229: 26915: 26915 I/LSPosed-Bridge ] Loading module lantian.nolitter from /data/app/~~xcEQwkxx6sbi4ourOADqjw==/lantian.nolitter-E0PEnGQaGzCbdLTRipPuUQ==/base.apk [ 2022-08-24T01:09:49.352 10229: 26915: 26915 I/LSPosed-Bridge ] Loading class lantian.nolitter.XposedHook [ 2022-08-24T01:09:49.421 10229: 26915: 26915 E/LSPosed-Bridge ] java.lang.RuntimeException: Unable to fetch the content at lantian.nolitter.XposedHook.f(Unknown Source:33) at EM.beforeHookedMethod(SourceFile:5) at de.robv.android.xposed.XposedBridge$AdditionalHookInfo.callback(Unknown Source:79) at LSPHooker_.attach(Unknown Source:11) at android.app.Instrumentation.newApplication(Instrumentation.java:1192) at android.app.LoadedApk.makeApplication(LoadedApk.java:1356) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6723) at android.app.ActivityThread.access$1500(ActivityThread.java:256) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2091) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7870) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) [ 2022-08-24T01:09:49.622 10229: 26611: 26965 I/LSPosed-Bridge ] Crash unexpectedly: android.database.sqlite.SQLiteException: Can't downgrade database from version 2 to 1 at android.database.sqlite.SQLiteOpenHelper.onDowngrade(SQLiteOpenHelper.java:540) at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:414) at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316) at akh.<init>(LPDbManager.java:39) at akg.<init>(DataManager.java:145) at ajo.handleMessage(RemoteHandler.java:112) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.os.HandlerThread.run(HandlerThread.java:67) [ 2022-08-24T01:09:49.926 10202: 3799: 26736 I/LSPosed-Bridge ] scan result: content://media/external_primary/file/2262 [ 2022-08-24T01:09:49.977 10202: 3799: 26738 I/LSPosed-Bridge ] scan result: content://media/external_primary/file/2263 [ 2022-08-24T01:09:50.014 10229: 27034: 27034 I/LSPosed-Bridge ] Loading module lantian.nolitter from /data/app/~~xcEQwkxx6sbi4ourOADqjw==/lantian.nolitter-E0PEnGQaGzCbdLTRipPuUQ==/base.apk [ 2022-08-24T01:09:50.023 10229: 27034: 27034 I/LSPosed-Bridge ] Loading class lantian.nolitter.XposedHook [ 2022-08-24T01:09:50.078 10229: 27034: 27034 E/LSPosed-Bridge ] java.lang.RuntimeException: Unable to fetch the content at lantian.nolitter.XposedHook.f(Unknown Source:33) at EM.beforeHookedMethod(SourceFile:5) at de.robv.android.xposed.XposedBridge$AdditionalHookInfo.callback(Unknown Source:79) at LSPHooker_.attach(Unknown Source:11) at android.app.Instrumentation.newApplication(Instrumentation.java:1192) at android.app.LoadedApk.makeApplication(LoadedApk.java:1356) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6723) at android.app.ActivityThread.access$1500(ActivityThread.java:256) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2091) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7870) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) [ 2022-08-24T01:09:50.162 10202: 3799: 17818 I/LSPosed-Bridge ] scan for obsolete insert: /storage/emulated/0/autonavi/support/rtbus.cfg [ 2022-08-24T01:09:50.184 10202: 3799: 17823 I/LSPosed-Bridge ] scan for obsolete insert: /storage/emulated/0/autonavi/support/taxi.cfg [ 2022-08-24T01:09:51.176 10202: 3799: 27113 I/LSPosed-Bridge ] scan result: content://media/external_primary/file/2228 [ 2022-08-24T01:09:51.197 10202: 3799: 27114 I/LSPosed-Bridge ] scan result: content://media/external_primary/file/2232
开启强力模式后,所有对 /sdcard
的访问都会被重定向至 /sdcard/Android/data/app.package.name/sdcard
。
但与此同时,应用对自身私有目录的访问会被重定向到 /sdcard/Android/data/app.package.name/sdcard/Android/data/app.package.name
下,变成套娃结果。
即使开启微信的强力模式,下载的文件仍不能重定向到/storage/emulated/0/Android/data/com.tencent.mm/sdcard/Android/data/com.tencent.mm/MicroMsg/Download/文件夹中,还是会保存在原来的/storage/emulated/0/Android/data/com.tencent.mm/MicroMsg/Download/文件夹,但是发送图片时就是完全无法读取picture与dcim文件夹
qq似乎无法访问dcim文件夹了,能否增加一个允许应用单独访问一些文件夹的功能
好游快爆实测侧漏。
RT,感谢!
预发行的版本还是会有侧漏的的情况出现,这个能修复不?
请问如果要使用是每次开机后都要到lsp里手动启动一下app才可以正常隔离吗,如果是这样那能否提供开机自启的功能。
如题。
以 QQ 为例,其接受到的好友文件均存放于 /sdcard/Android/data/com.tencent.mobileqq/Tencent/QQfile_recv
下,是否考虑在未来推出一个功能,以便将该目录下的读写请求重定向至 /sdcard/Download
或其公共目录的子文件夹(如 /sdcard/Download/QQ
)?
主页的 应用
与 对应用进行单独设置
被译为 General
和 Several commonly used settings
(顺便问一下 这个单独设置是啥?)
NoLitter/app/src/main/res/values/strings.xml
Lines 16 to 17 in e4acb40
NoLitter/app/src/main/res/values-zh/strings.xml
Lines 16 to 17 in e4acb40
有时开启模块无法重定向至Android/files文件下
比如微信会生成/storage/emulated/0/tencent/
而我把他在这个文件夹内生成的文件都重定向到/storage/emulated/0/微信/
即使开启强力模式,支付宝与淘宝仍能在根目录创建gs.fs0等文件夹和alipay文件夹
在应用设置中增加搜索应用的功能,另外现在新版的作用域选择哪些app呢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.