[ROM][AOSP][F8131/F8132][PIE][9.0.0] TheExplorer - Sony Xperia X Performance ROMs, Kernels, Recoverie

I have build Android Pie (9.0.0) successfully for Xperia X Performance f8131from AOSP source.
Instructions:
extract
F8131: android-pie-f8131-160119.zip
F8132: My build was not bootibg!
For another build, please refer to https://forum.xda-developers.com/showpost.php?p=78359565&postcount=67
Connect phone in fastboot mode (vol-up & power)
flash boot, system, userdata
# fastboot flash boot boot.img
# fastboot flash system system.img
# fastboot flash userdata userdata.img
Download SW_BINARIES_FOR_XPERIA_ANDROID_9.0_2.3.2_V4_TONE-1.ZIP/URL]
Unpack SW_BINARIES_FOR_XPERIA_ANDROID_9.0_2.3.2_V4_TONE-1.ZIP to obtain the vendor image.
Connect the device to your computer in Fastboot mode, by pressing volume up while inserting the USB cable. When the device is in Fastboot mode, the LED on the device will be illuminated in blue.
Flash the vendor image by entering the following commands in a terminal window:
# fastboot flash oem SW_binaries_for_Xperia_Android_9.0_2.3.2_V4_tone.img
Works: everything
Bugs:
Build from SE AOSP, kernel sources link: [URL="https://github.com/sonyxperiadev/kernel"]Sony kernel sources
Link for building from AOSP: Building from AOSP
Links:
Android Pie (9.0.0),Software binaries
XDA:DevDB Information
TheExplorer, ROM for the Sony Xperia X Performance
Contributors
NielDK
ROM OS Version: 9.x Pie
ROM Kernel: Linux 4.x
Based On: AOSP
Version Information
Status: No Longer Updated
Current Beta Version: 9.0.0_r21
Created 2018-10-08
Last Updated 2019-02-06

OpenGAPPS
ROM is without Gapps, you must flash it if you need it.
Since /data is not manageable from TWRP, it cant handle encryption.
You will need to flash arm64 nano version for Android Pie (9.0) from https://opengapps.org/ and push it to device from PC terminal (command promt in Windows). You wont be able to access the file if you simply copy it from PC to device.
1. Boot device in TWRP
2. FORMAT data (not wipe)
3. Reboot recovery (no restart of system!!)
2. In shell/command prompt on PC
adb push open_gapps-arm64-9.0-nano-20181011.zip /sdcard/
3. flash open_gapps-arm64-9.0-nano-20181011.zip from TWRP
4. reboot
You can make /data available by formatting /data from TWRP, but you will loose all data. Remember a backup!
And, you will need to do this every boot!

Releases
R16: November security patches released
R21: December security patches released

Hi, what's about DRM? Have you installed drm fix?

grzegorz.u said:
Hi, what's about DRM? Have you installed drm fix?
Click to expand...
Click to collapse
No, AOSP is different code base (kernel) than stock Sony (Thanks God), so a DRM fix is not needed (not usable)

Hello
Thank you.Will you continue to maintain and fix bugs?Such as fingerprint

Hi
Thank you! I love the new rom.
Is there any way I can install GApps via TWRP? TWRP keeps failing to mount /data, even though it says decryption is successful.

NielDK said:
I have build Android Pie (9.0.0_r10) successfully for Xperia X Performance (f8131) from AOSP source.
Instructions:
extract android-pie-081017.zip ,
Connect phone in fastboot mode (vol-up & power)
flash boot, system, userdata
# fastboot flash boot boot.img
# fastboot flash system system.img
# fastboot flash userdata userdata.img
Download SW_BINARIES_FOR_XPERIA_ANDROID_9.0.6.3_R1_V1_TONE_BETA.ZIP
Unpack SW_BINARIES_FOR_XPERIA_ANDROID_9.0.6.3_R1_V1_TONE_BETA.ZIP to obtain the vendor image.
Connect the device to your computer in Fastboot mode, by pressing volume up while inserting the USB cable. When the device is in Fastboot mode, the LED on the device will be illuminated in blue.
Flash the vendor image by entering the following commands in a terminal window:
# fastboot flash oem SW_binaries_for_Xperia_Android_9.0.6.3_r1_v1_tone_beta.img
Works: everything
Bugs: Adding fingerprint crashes device
Build from SE AOSP, kernel sources link: Sony kernel sources
Link for building from AOSP: Building from AOSP
Links:
Android Pie (9.0.0_r10),Software binaries
XDA:DevDB Information
TheExplorer, ROM for the Sony Xperia X Performance
Contributors
NielDK
ROM OS Version: 9.x Pie
ROM Kernel: Linux 4.x
Based On: AOSP
Version Information
Status: Beta
Current Beta Version: 9.0.0_r10
Created 2018-10-08
Last Updated 2018-10-10
Click to expand...
Click to collapse
dude, do i need to flash gapps too? or this rom allready included gapps? btw thanks for your hard work!

Sdcrad said:
Thank you.Will you continue to maintain and fix bugs?Such as fingerprint
Click to expand...
Click to collapse
Yes, I will keep it updated and investigate any issues

pine5508 said:
Thank you! I love the new rom.
Is there any way I can install GApps via TWRP? TWRP keeps failing to mount /data, even though it says decryption is successful.
Click to expand...
Click to collapse
Yes, you can (and need to, if you want Google apps)
1. Boot device in TWRP
2. In shell/command prompt on PC
adb push open_gapps-arm64-9.0-nano-20181011.zip /sdcard/
3. flash open_gapps-arm64-9.0-nano-20181011.zip from TWRP
4. reboot

What's about rooting this rom? Have you already tried?

grzegorz.u said:
What's about rooting this rom? Have you already tried?
Click to expand...
Click to collapse
Of course, flash Magisk from TWRP

Any chance of a build for F8132
First, thank you for building this! I got inspired by you and tried to do the work myself and build for F8132, but after like 3 hours.. the build failed complaining about this:
Code:
FAILED: out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/classes.dex
/bin/bash -c "(rm -rf out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ ) && (mkdir -p out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ ) && (find out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex/ -maxdepth 1 -name "classes*.dex" | sort | xargs -I{} cp -f {} out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ ) && (find out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ -name "classes*.dex" | sort | sed 's/^/--dex=/' | xargs out/host/linux-x86/bin/hiddenapi --light-greylist=out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt --dark-greylist=out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt --blacklist=out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt )"
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] No DEX files specified
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] Command: out/host/linux-x86/bin/hiddenapi --light-greylist=out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt --dark-greylist=out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt --blacklist=out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] Usage: hiddenapi [options]...
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47]
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --dex=<filename>: specify dex file whose members' access flags are to be set.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] At least one --dex parameter must be specified.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47]
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --light-greylist=<filename>:
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --dark-greylist=<filename>:
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --blacklist=<filename>: text files with signatures of methods/fields to be marked
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] greylisted/blacklisted respectively. At least one list must be provided.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47]
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --print-hidden-api: dump a list of marked methods/fields to the standard output.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] There is no indication which API category they belong to.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47]
[ 6% 969/15007] build out/target/product/dora/obj/ETC/sepolicy.recovery_intermediates/sepolicy
out/host/linux-x86/bin/checkpolicy: loading policy configuration from out/target/product/dora/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf
out/host/linux-x86/bin/checkpolicy: policy configuration loaded
out/host/linux-x86/bin/checkpolicy: writing binary representation (version 30) to out/target/product/dora/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp
[ 6% 971/15007] target C++: statsd <= out/target/product/dora/obj/EXECUTABLES/statsd_intermediates/proto/frameworks/base/cmds/statsd/src/statsd_config.pb.cpp
ninja: build stopped: subcommand failed.
13:42:49 ninja failed with: exit status 1
This goes beyond my skills at the point, I'd appreciate any pointers you might have. Or you have the time, a build for F8132 please

aravindg said:
First, thank you for building this! I got inspired by you and tried to do the work myself and build for F8132, but after like 3 hours.. the build failed complaining about this:
Code:
FAILED: out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/classes.dex
/bin/bash -c "(rm -rf out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ ) && (mkdir -p out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ ) && (find out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex/ -maxdepth 1 -name "classes*.dex" | sort | xargs -I{} cp -f {} out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ ) && (find out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ -name "classes*.dex" | sort | sed 's/^/--dex=/' | xargs out/host/linux-x86/bin/hiddenapi --light-greylist=out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt --dark-greylist=out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt --blacklist=out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt )"
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] No DEX files specified
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] Command: out/host/linux-x86/bin/hiddenapi --light-greylist=out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt --dark-greylist=out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt --blacklist=out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] Usage: hiddenapi [options]...
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47]
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --dex=<filename>: specify dex file whose members' access flags are to be set.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] At least one --dex parameter must be specified.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47]
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --light-greylist=<filename>:
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --dark-greylist=<filename>:
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --blacklist=<filename>: text files with signatures of methods/fields to be marked
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] greylisted/blacklisted respectively. At least one list must be provided.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47]
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --print-hidden-api: dump a list of marked methods/fields to the standard output.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] There is no indication which API category they belong to.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47]
[ 6% 969/15007] build out/target/product/dora/obj/ETC/sepolicy.recovery_intermediates/sepolicy
out/host/linux-x86/bin/checkpolicy: loading policy configuration from out/target/product/dora/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf
out/host/linux-x86/bin/checkpolicy: policy configuration loaded
out/host/linux-x86/bin/checkpolicy: writing binary representation (version 30) to out/target/product/dora/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp
[ 6% 971/15007] target C++: statsd <= out/target/product/dora/obj/EXECUTABLES/statsd_intermediates/proto/frameworks/base/cmds/statsd/src/statsd_config.pb.cpp
ninja: build stopped: subcommand failed.
13:42:49 ninja failed with: exit status 1
This goes beyond my skills at the point, I'd appreciate any pointers you might have. Or you have the time, a build for F8132 please
Click to expand...
Click to collapse
I tried to build it a few times. Every time it took much more time than 3 hours and finally there were some errors. I will not try again.

Please make it for Dual Sim cards (F8132) I think android Pie will save battery. I really want stock, natural android instead of modified one.
Thanks beforehand.

Just to be clear, and answer your question.
Iam not going to make a build for dualsim version. I dont have that device.

good, volte support please
good, volte support please

can it be flashed to a locked bootloader phone?

No, like any other custom ROM, you need unlocked boot loader.
gaki25252 said:
can it be flashed to a locked bootloader phone?
Click to expand...
Click to collapse

I can build for F8132, did you modify the source before you could build successfully?

Related

"Welcome" Screen of ROM Fails to Respond to Touch

I rooted my SGH-T999, running Android 4.3, flashing TWRP recovery w/ Odin.
The rooting was successful.
Now, on to the part where I ran into trouble.
Problem: I can't successfully install any ROMs for Android M or later.
NOTE: I need Android M or later to have more control over individual apps' permissions.
I tried to flash Pac-ROM through TWRP, like so:
(from TWRP home menu)
1. Wipe>Swipe to Factory Reset
2. Go Back to Home Menu
3. Install>Select pac_d2tmo_MM.Beta.Official_20160920-165602.zip>Swipe to confirm Flash
Note: The first time I tried to flash Pac-ROM, I wasn't aware of GApps. So, I didn't flash it.
4. Reboot
The phone booted to the "Welcome/Language Selection" screen, but I couldn't select a language.
It seems that the UI elements belonging to the "Welcome" screen fail to respond to touch, while other UI elements respond normally (as demonstrated at the end of the video at the URL below).
All attempts to re-flash, since, have included the additional step off adding the GApps zip (for ARM, Android 6.0) to the "ZIP Queue".
However, all attempts end the same way.
I've documented the process in the video @ the following URL: youtu.be/EZTwaURkRSs
Another strange behavior (that isn't apparent in the video) is that, immediately after being shown on the display, the "Welcome" screen looks fine for a few hundred milliseconds or so before the screen is drawn with a yellowish-hue. As if blue-light filtering kicks in (even when the system clock is mid-day).
I also tried to flash a different ROM (Oct-OS OCT-M-R3) on a few of the attempts, but again I observed the same exact behavior ("Welcome" screen's yellowish hue and lack of response to touch).
It doesn't seem to be a hardware issue, because touch does work, just not on the "Welcome" screen.
I'm fairly certain I've selected the correct ROM for the model.
So, what did I mess up?
I am facing similar issue.. i was on carbon rom 7.1.2 and then i thought of downgrading to octos M for xposed and cm theme engine and same thing happened as you faced with both roms (pac and oct os r3) .. i restored my backup of carbon rom 7.1.2 and my screen went black (sod) and i had to flash stock (4.4.2) os to get my phone working again
andynoob said:
I am facing similar issue.. i was on carbon rom 7.1.2 and then i thought of downgrading to octos M for xposed and cm theme engine and same thing happened as you faced with both roms (pac and oct os r3) .. i restored my backup of carbon rom 7.1.2 and my screen went black (sod) and i had to flash stock (4.4.2) os to get my phone working again
Click to expand...
Click to collapse
Do you mean that you were able to flash a ROM successfully, after flashing stock (4.4.2)?
Or, you were ONLY able to flash stock (4.4.2) successfully?
Thank you for the reply,
Gerald
I just restored my twrp backup of stock os .. Had urgent work so couldn't try to flash those ROMs again.. will try them next week
UPDATE:
So, I successfully restored my stock backup.
With the stock setup I experienced no problems.
Since my original post, I've alternated between restoring stock backup and flashing ROMs.
I tried flashing Oct-OS and Pac-ROM, again and again.
I also tried to install LineageOS, as well.
I am able to install CyanogenMod 12.1, but this doesn't meet my requirement of android version 6 or later.
Installation of any of the custom ROMs has resulted in the same behavior demonstrated in the video (youtu.be/EZTwaURkRSs):
- after boot, device fails to respond to touch input
- however, device does accept touch input on some UI objects. so, I don't think it's a screen/hardware issue
How can I debug further?
I'd like to try to capture some sort of boot log, but adb is "offline" during boot process.
And, since I can't make it past the "language selection/welcome" screen, I can't get to settings and enable USB debugging.
UPDATE:
I managed to enable ADB during boot, by using the ADB shell while the device was in recovery mode.
Code:
[email protected] ~ $ adb push ~/.android/adbkey.pub /data/misc/adb/
[email protected] ~ $ adb shell
~# cd /data/misc/adb/
/data/misc/adb# cat adbkey.pub > adb_keys
/data/misc/adb# cd /
~# mkdir /system2
~# mount -o rw /dev/block/mmcblk0p14 /system2 ## NOTE: for this command, had to figure out which partition was the system partition; here it was /dev/block/mmcblk0p14
~# echo "persist.service.adb.enable=1" >> default.prop
~# echo "persist.service.debuggable=1" >> default.prop
~# echo "persist.sys.usb.config=mtp,adb" >> default.prop
~# echo "persist.service.adb.enable=1" >> /system2/build.prop
~# echo "persist.service.debuggable=1" >> /system2/build.prop
~# echo "persist.sys.usb.config=mtp,adb" >> /system2/build.prop
~# ## now press Ctrl-D to exit the ADB shell
NOTE: thanks to @ErnestChia for the following post forum.xda-developers.com/showpost.php?p=63829295&postcount=27
So, I was able to get a logcat during the SetupWizard.
There were 3 lines, related to the SystemUI, that were repeated over and over.
Code:
W BroadcastQueue: Timeout of broadcast BroadcastRecord{51dfd23 u-1 android.intent.action.TIME_TICK} - [email protected], started 10010ms ago
W BroadcastQueue: Receiver during timeout: BroadcastFilter{a4079bf u0 ReceiverList{4b103de 730 com.android.systemui/10018/u0 remote:448f719}}
I ActivityManager: Skipping duplicate ANR: ProcessRecord{768d889 730:com.android.systemui/u0a18} Broadcast of Intent { act=android.intent.action.TIME_TICK flg=0x50000014 (has extras) }
All I've gathered is that SystemUI isn't responding.
Which seems to have started during boot, with the following output.
Code:
W ActivityManager: Timeout executing service: ServiceRecord{dd2251a u0 com.android.systemui/.ImageWallpaper}
E ActivityManager: ANR in com.android.systemui
E ActivityManager: Reason: executing service com.android.systemui/.ImageWallpaper
E ActivityManager: 4.1% 730/com.android.systemui: 2.2% user + 1.8% kernel / faults: 1246 minor 2 major
SystemUI Stack Trace
Code:
Cmd line: com.android.systemui
Build fingerprint: 'samsung/d2tmo/d2tmo:4.3/JSS15J/T999UVUEMJC:user/release-keys'
ABI: 'arm'
Build type: optimized
Zygote loaded classes=3986 post zygote classes=991
Intern table: 46441 strong; 62 weak
JNI: CheckJNI is off; globals=427 (plus 368 weak)
Libraries: /system/lib/libandroid.so /system/lib/libcompiler_rt.so /system/lib/libjavacrypto.so /system/lib/libjnigraphics.so /system/lib/libmedia_jni.so /system/lib/libsoundpool.so /system/lib/libwebviewchromium_loader.so libjavacore.so (8)
Heap: 5% free, 12MB/13MB; 84371 objects
Dumping cumulative Gc timings
Total number of allocations 84371
Total bytes allocated 12MB
Total bytes freed 0B
Free memory 813KB
Free memory until GC 813KB
Free memory until OOME 179MB
Total memory 13MB
Max memory 192MB
Zygote space size 1972KB
Total mutator paused time: 0
Total time waiting for GC to complete: 0
Total GC count: 0
Total GC time: 0
Total blocking GC count: 0
Total blocking GC time: 0
...
"main" prio=5 tid=1 Native
| group="main" sCount=1 dsCount=0 obj=0x745992a0 self=0xb77f9b30
| sysTid=730 nice=0 cgrp=default sched=0/0 handle=0xb6efab44
| state=S schedstat=( 0 0 0 ) utm=64 stm=14 core=1 HZ=100
| stack=0xbe5d0000-0xbe5d2000 stackSize=8MB
| held mutexes=
native: #00 pc 0004290c /system/lib/libc.so (__ioctl+8)
native: #01 pc 00049391 /system/lib/libc.so (ioctl+14)
native: #02 pc 0001e8c9 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+132)
native: #03 pc 0001eefb /system/lib/libbinder.so (android::IPCThreadState::waitForResponse(android::Parcel*, int*)+38)
native: #04 pc 0001f0b1 /system/lib/libbinder.so (android::IPCThreadState::transact(int, unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+124)
native: #05 pc 0001a0b3 /system/lib/libbinder.so (android::BpBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+30)
native: #06 pc 00089471 /system/lib/libandroid_runtime.so (???)
native: #07 pc 00db9189 /data/dalvik-cache/arm/[email protected]@boot.oat (Java_android_os_BinderProxy_transactNative__ILandroid_os_Parcel_2Landroid_os_Parcel_2I+140)
at android.os.BinderProxy.transactNative(Native method)
at android.os.BinderProxy.transact(Binder.java:503)
at android.hardware.ICameraService$Stub$Proxy.getCameraCharacteristics(ICameraService.java:421)
at java.lang.reflect.Method.invoke!(Native method)
at android.hardware.camera2.utils.Decorator.invoke(Decorator.java:80)
at java.lang.reflect.Proxy.invoke(Proxy.java:393)
at android.hardware.ICameraService.getCameraCharacteristics(ICameraService.java:-2)
at android.hardware.camera2.CameraManager.getOrCreateDeviceIdListLocked(CameraManager.java:635)
at android.hardware.camera2.CameraManager.getCameraIdList(CameraManager.java:99)
- locked <0x0da89d30> (a java.lang.Object)
at com.android.systemui.statusbar.policy.FlashlightController.getCameraId(FlashlightController.java:126)
at com.android.systemui.statusbar.policy.FlashlightController.<init>(FlashlightController.java:62)
at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:1087)
at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3285)
at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:3281)
at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:619)
at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:800)
at com.android.systemui.statusbar.SystemBars.createStatusBarFromConfig(SystemBars.java:106)
at com.android.systemui.statusbar.SystemBars.onNoService(SystemBars.java:58)
at com.android.systemui.statusbar.ServiceMonitor.startService(ServiceMonitor.java:230)
at com.android.systemui.statusbar.ServiceMonitor.-wrap5(ServiceMonitor.java:-1)
at com.android.systemui.statusbar.ServiceMonitor$1.handleMessage(ServiceMonitor.java:73)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5466)
at java.lang.reflect.Method.invoke!(Native method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
i solved this issue by flashing the pac rom 6.0 from at&t . (Flash only the rom )
Do you have a copy of carbon ROM or Pac man for the d2tmo?

[ROM][UNOFFICIAL] LineageOS 14.1 for SM-T113NU

This is a custom ROM build to run on Samsung Galaxy Tab E (SM-T113NU).
This work was based on Remilia Scarlet/Nguyễn Diệp Quỳnh code for SM-G360H phone (which uses Spredtrum sc8830, just like this tablet)
Working
Wi-FI
Bluetooth (file transfer tested only)
Sound
Rotation
Not working:
Camera
Offline charging
Prerequisites:
TWRP version 3.0.2 (https://drive.google.com/file/d/1Hcc1T1-iUEo1ATpPf_Kcu3vXqGR3Boq_/view)
Galaxy Tab E SM-T113NU (reported by some users that works on T116 models, but this is not guaranteed)
Download links and source:
Please check my github (pstglia, repository local_manifests, branch T113NU_COM_A_MAO_NO_BOLSO)
Download link for compiled ROM can be found on README file.
All repositories are mapped on local manifest (core33g.xml )
branch used for all repositories is "T113NU_COM_A_MAO_NO_BOLSO"
Latest Image build:
https://drive.google.com/file/d/1xEq9lttRw752KqIwXnk5ccUFmLJe4BSJ/view
Source links:
# Local manifest
https://github.com/pstglia/local_manifests/tree/T113NU_COM_A_MAO_NO_BOLSO
# Framework-native
https://github.com/pstglia/frameworks-native/tree/T113NU_COM_A_MAO_NO_BOLSO
# Kernel
https://github.com/pstglia/linux/tree/T113NU_COM_A_MAO_NO_BOLSO
# device/vendor
https://github.com/pstglia/android_device_samsung_scx35-common/tree/T113NU_COM_A_MAO_NO_BOLSO
https://github.com/pstglia/android_vendor_samsung_scx30g-common/tree/T113NU_COM_A_MAO_NO_BOLSO
https://github.com/pstglia/android_device_samsung_scx30g-common/tree/T113NU_COM_A_MAO_NO_BOLSO
https://github.com/pstglia/android_vendor_samsung_core33g/tree/T113NU_COM_A_MAO_NO_BOLSO
https://github.com/pstglia/android_device_samsung_core33g/tree/T113NU_COM_A_MAO_NO_BOLSO
# frameworks/base (the commit that hacks camera count return to 0 is here)
https://github.com/pstglia/platform_frameworks_base/tree/T113NU_COM_A_MAO_NO_BOLSO
Credits:
The LineageOS Team
Remilia Scarlet/Nguyễn Diệp Quỳnh for SM-G360H work
Fabio Júnior Chaves da Silva (lend his device, even knowing it might become a paperweight)
(My first post on xda, so used one of your posts as reference )
Anyone i forgot to mention
Note 1:
This version of TWRP does not populate ro.build.product, blocking a generated package to be installed
So, if you compile from source "brunch core33g", you can apply the following workaround for you generated installation package:
Unpack generated package into a blank directory
Code:
mkdir /tmp/lineage-pkg
cd /tmp/lineage-pkg
last_gen_pkg=$(ls -tr ${OUT}/lineage-14.1-????????-UNOFFICIAL-core33g.zip | tail -1)
jar xvf ${last_gen_pkg}
Edit META-INF/com/google/android/updater-script and replace this:
Code:
getprop("ro.build.product") == "core33gdx"
by this:
Code:
getprop("ro.build.product") != "core33gdx"
Create a new "patched" package
Code:
cd /tmp/lineage-pkg
jar cvf lineage-14.1-patched-UNOFFICIAL-core33g.zip *
Note 2:
If you face a bootloop, you can try formatting your efs partition as described bellow (AT YOUR OWN RISK!)
https://forum.xda-developers.com/showpost.php?p=79995765&postcount=42
Version Information:
ROM OS Version: Android 7.1.2 Nougat
Kernel Version: Linux 3.10.17
What do you need to get a working camera? I have an actual Samsung SM-T113NU
pstglia said:
This is a custom ROM build to run on Samsung Galaxy Tab E (SM-T113NU).
This work was based on Remilia Scarlet/Nguyễn Diệp Quỳnh code for SM-G360H phone (which uses Spredtrum sc8830, just like this tablet)
Working
Wi-FI
Bluetooth (file transfer tested only)
Sound
Rotation
Not working:
Camera
Prerequisites:
TWRP version 3.0.2
Galaxy Tab E SM-T113NU (similar models were not tested)
Download links and source:
Please check my github (pstglia, repository local_manifests, branch T113NU_COM_A_MAO_NO_BOLSO)
Download link for compiled ROM can be found on README file.
All repositories are mapped on local manifest (core33g.xml )
branch used for all repositories is "T113NU_COM_A_MAO_NO_BOLSO"
Will update this thread with links when my user reaches the required points (new on xda)
Credits:
The LineageOS Team
Remilia Scarlet/Nguyễn Diệp Quỳnh for SM-G360H work
Fabio Júnior Chaves da Silva (lend his device, even knowing it might become a paperweight)
stephenpump (My first post on xda, so used one of your posts as reference )
Anyone i forgot to mention
Note:
This version of TWRP does not populate ro.build.product, blocking a generated package to be installed
So, if you compile from source "brunch core33g", you can apply the following workaround for you generated installation package:
Unpack generated package into a blank directory
Code:
mkdir /tmp/lineage-pkg
cd /tmp/lineage-pkg
last_gen_pkg=$(ls -tr ${OUT}/lineage-14.1-????????-UNOFFICIAL-core33g.zip | tail -1)
jar xvf ${last_gen_pkg}
Edit META-INF/com/google/android/updater-script and replace this:
Code:
getprop("ro.build.product") == "core33gdx"
by this:
Code:
getprop("ro.build.product") != "core33gdx"
Create a new "patched" package
Code:
cd /tmp/lineage-pkg
jar cvf lineage-14.1-patched-UNOFFICIAL-core33g.zip *
Version Information:
ROM OS Version: Android 7.1.2 Nougat
Kernel Version: Linux 3.10.17
Click to expand...
Click to collapse
MrLinDowsMac said:
What do you need to get a working camera? I have an actual Samsung SM-T113NU
Click to expand...
Click to collapse
Hi,
1) I'd need spare time to find a way to make it work.
2) more knowledge would be needed. To build this image, I had basically to adapt Samsung kernel to met 7.1 requirements (I basically cherry-picked commits from remilia15 - SM-G360H) and some other minor changes.
Camera probably requires advanced coding, which is a bit far from my current skills. Enabling it causes crashes during components startup (see bellow):
Code:
04-19 22:37:01.036 227 769 I SprdCameraHardware: getPropertyAtv:0
04-19 22:37:01.036 227 769 I SprdCameraHardware: getNumberOfCameras:2
04-19 22:37:01.036 227 769 I CameraService: disconnect: Disconnected client for camera 0 for PID 227
04-19 22:37:01.036 227 769 E CameraService: initializeShimMetadata: Error initializing shim metadata: Status(-8): '3: connectHelper:928: Illegal argument to HAL module for camera "0"'
04-19 22:37:01.038 585 585 E System : ******************************************
04-19 22:37:01.038 227 909 E isp-video: ISP_RAW: id:0x00, 00927 line, ispserver_thread : ISP_TOOL:isp-video server version 1.0
04-19 22:37:01.039 227 909 E isp-video: ISP_RAW: id:0x00, 00965 line, ispserver_thread : ISP_TOOL:log server waiting client dail in...
04-19 22:37:01.040 585 585 E System : ************ Failure starting system services
04-19 22:37:01.040 585 585 E System : java.lang.RuntimeException: Failed to boot service com.android.server.retaildemo.RetailDemoModeService: onBootPhase threw an exception during phase 600
04-19 22:37:01.040 585 585 E System : at com.android.server.SystemServiceManager.startBootPhase(SystemServiceManager.java:145)
04-19 22:37:01.040 585 585 E System : at com.android.server.SystemServer$2.run(SystemServer.java:1538)
04-19 22:37:01.040 585 585 E System : at com.android.server.am.ActivityManagerService.systemReady(ActivityManagerService.java:13591)
04-19 22:37:01.040 585 585 E System : at com.android.server.SystemServer.startOtherServices(SystemServer.java:1466)
04-19 22:37:01.040 585 585 E System : at com.android.server.SystemServer.run(SystemServer.java:368)
04-19 22:37:01.040 585 585 E System : at com.android.server.SystemServer.main(SystemServer.java:237)
04-19 22:37:01.040 585 585 E System : at java.lang.reflect.Method.invoke(Native Method)
04-19 22:37:01.040 585 585 E System : at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
04-19 22:37:01.040 585 585 E System : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
04-19 22:37:01.040 585 585 E System : Caused by: java.lang.IllegalArgumentException: connectHelper:928: Illegal argument to HAL module for camera "0"
04-19 22:37:01.040 585 585 E System : at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:694)
04-19 22:37:01.040 585 585 E System : at android.hardware.camera2.CameraManager.getOrCreateDeviceIdListLocked(CameraManager.java:778)
04-19 22:37:01.040 585 585 E System : at android.hardware.camera2.CameraManager.getCameraIdList(CameraManager.java:140)
04-19 22:37:01.040 585 585 E System : at com.android.server.retaildemo.RetailDemoModeService.getCameraIdsWithFlash(RetailDemoModeService.java:492)
04-19 22:37:01.040 585 585 E System : at com.android.server.retaildemo.RetailDemoModeService.onBootPhase(RetailDemoModeService.java:569)
04-19 22:37:01.040 585 585 E System : at com.android.server.SystemServiceManager.startBootPhase(SystemServiceManager.java:143)
04-19 22:37:01.040 585 585 E System : ... 8 more
04-19 22:37:01.040 585 585 E System : Caused by: android.os.ServiceSpecificException: connectHelper:928: Illegal argument to HAL module for camera "0"
04-19 22:37:01.040 585 585 E System : at android.os.Parcel.readException(Parcel.java:1706)
04-19 22:37:01.040 585 585 E System : at android.os.Parcel.readException(Parcel.java:1645)
04-19 22:37:01.040 585 585 E System : at android.hardware.ICameraService$Stub$Proxy.getCameraCharacteristics(ICameraService.java:404)
04-19 22:37:01.040 585 585 E System : at android.hardware.camera2.CameraManager.getOrCreateDeviceIdListLocked(CameraManager.java:765)
Maybe sources under hardware/sprd/libcamera should be changed in order to make it work...
3) A device to test. The one I was using was borrowed from a friend, but already returned.
In any case, all source code I changed is available on github (check for pstglia on github - repository "local_manifests" maps all the changes (except platform_frameworks_base, which requires the last 2 commits from branch "T113NU_COM_A_MAO_NO_BOLSO".
Muito obrigado pela ROM
Falei com vc lá pelo YouTube e agradeço novamente pela rom. O tablet ficou novo em folha. Continue com seu ótimo trabalho ?
Heyyy, how you've made this custom rom?
I'm trying to build that for my sm-t280, and all instructions doesn't ever exist. if you gimme instructions to build, you'll doing a huge help.
email: [email protected]
pstglia said:
This is a custom ROM build to run on Samsung Galaxy Tab E (SM-T113NU).
This work was based on Remilia Scarlet/Nguyễn Diệp Quỳnh code for SM-G360H phone (which uses Spredtrum sc8830, just like this tablet)
Working
Wi-FI
Bluetooth (file transfer tested only)
Sound
Rotation
Not working:
Camera
Prerequisites:
TWRP version 3.0.2
Galaxy Tab E SM-T113NU (similar models were not tested)
Download links and source:
Please check my github (pstglia, repository local_manifests, branch T113NU_COM_A_MAO_NO_BOLSO)
Download link for compiled ROM can be found on README file.
All repositories are mapped on local manifest (core33g.xml )
branch used for all repositories is "T113NU_COM_A_MAO_NO_BOLSO"
Will update this thread with links when my user reaches the required points (new on xda)
Credits:
The LineageOS Team
Remilia Scarlet/Nguyễn Diệp Quỳnh for SM-G360H work
Fabio Júnior Chaves da Silva (lend his device, even knowing it might become a paperweight)
stephenpump (My first post on xda, so used one of your posts as reference )
Anyone i forgot to mention
Note:
This version of TWRP does not populate ro.build.product, blocking a generated package to be installed
So, if you compile from source "brunch core33g", you can apply the following workaround for you generated installation package:
Unpack generated package into a blank directory
Code:
mkdir /tmp/lineage-pkg
cd /tmp/lineage-pkg
last_gen_pkg=$(ls -tr ${OUT}/lineage-14.1-????????-UNOFFICIAL-core33g.zip | tail -1)
jar xvf ${last_gen_pkg}
Edit META-INF/com/google/android/updater-script and replace this:
Code:
getprop("ro.build.product") == "core33gdx"
by this:
Code:
getprop("ro.build.product") != "core33gdx"
Create a new "patched" package
Code:
cd /tmp/lineage-pkg
jar cvf lineage-14.1-patched-UNOFFICIAL-core33g.zip *
Version Information:
ROM OS Version: Android 7.1.2 Nougat
Kernel Version: Linux 3.10.17
Click to expand...
Click to collapse
YggH said:
I'm trying to build that for my sm-t280, and all instructions doesn't ever exist. if you gimme instructions to build, you'll doing a huge help.
email: [email protected]
Click to expand...
Click to collapse
Hi,
Tried to write a simplified procedure to compile the custom ROM for T113NU. See the 8 steps bellow:
I) Assuming you already have a build environment set up (see [1] as reference), download lineage sources using repo commands (repo init, repo sync)
Note: Use branch cm-14.1 (nougat)
II) After syncing, download core33g.xml from my github ( repo local_manifests, branch T113NU_COM_A_MAO_NO_BOLSO) and copy to .repo/local_manifests (create it if doesn't exists)
III) execute "repo sync" again. The files/sources I modified will be downloaded and updated on source tree
IV) Edit vendor/cm/vendorsetup.sh and add this lunch combo:
Code:
add_lunch_combo lineage_core33g-userdebug
This will allow you to select a target compatible with T113NU when running "brunch"
V) As pointed previous posts, camera was avoiding Android to start. To allow booting, cameras were disabled (forced returned number of cameras to 0).
So, for T113NU, commit "0acc7879a9794aacdff85ef1563807d051114917 - frameworks/base - HACK - Disable cameras" will be needed. This commit is on my github, repository platform_frameworks_base, branch T113NU_COM_A_MAO_NO_BOLSO)
VI) Before compiling, export these environment variables:
Code:
export USE_CCACHE=1
ccache -M 50G
export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4G"
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4G"
export LC_ALL=C
I suggest you to include these on a file in your home dir (ex: ~/.android_profile) and include it every time you want to create a new build:
Code:
source ~/.android_profile
VII) Include build/envsetup.sh to config Android environment
Code:
source build/envsetup.sh
VIII) Compile the ISO using brunch (select lineage_core33g-userdebug option)
This should do it.
For your device (T280) you'll probably want to replace kernel by the one provided by samsung opensource.
Download it from Samsung Opensource Release Center (see [2]) and unpack it to kernel/samsung/core33g (clean previous files first)
Also:
A) After unpacking, cd to kernel/samsung/core33g and execute a "make mrproper" to remove any temp files under the source tree;
B) cd to kernel/samsung/core33g/arch/arm/configs and rename/copy one of the config files there to "cyanogen_core33g_defconfig" (select one that matches your device - in my case was goyavewifi-dt_hw04_defconfig)
C) You'll probably will need commits to make your kernel compatible with Android 7.1. Try cherry-picking the commits I used, starting from 8c97f3624701f53843b7b2da40185cdcd1c7a422
Play around with config/fw files and have lots of pacience. Creating a working image is not always a funny (consumes lots of time and requires much pacience, logging/debugging )
Good luck!
[1] - https wiki DOT lineageos DOT org/devices /bacon/buildcon/build
[2] - opensource DOT samsung DOT com
ps: Does your device uses Spreadtrum SOC, right?
ps2: Except for kernel, most of changes were minor. Most of this commits were based on remilia15 work. Kudos for who really deserve it!
@sasi2006166 @dhruvpatel_9880 Also works with T116!!
MegaStormBR said:
@[email protected]_9880 Also works with T116!!
Click to expand...
Click to collapse
I will try it today ?
@pstglia Thank you soo much For This ROM..I will try this ROM Today on my SM-T116NY.
Going to fix camera gimme sources
---------- Post added at 10:04 AM ---------- Previous post was at 09:58 AM ----------
Also pm me on Telegram @sasi2006166
pstglia said:
This is a custom ROM build to run on Samsung Galaxy Tab E (SM-T113NU).
This work was based on Remilia Scarlet/Nguyễn Diệp Quỳnh code for SM-G360H phone (which uses Spredtrum sc8830, just like this tablet)
Working
Wi-FI
Bluetooth (file transfer tested only)
Sound
Rotation
Not working:
Camera
Prerequisites:
TWRP version 3.0.2
Galaxy Tab E SM-T113NU (similar models were not tested)
Download links and source:
Please check my github (pstglia, repository local_manifests, branch T113NU_COM_A_MAO_NO_BOLSO)
Download link for compiled ROM can be found on README file.
All repositories are mapped on local manifest (core33g.xml )
branch used for all repositories is "T113NU_COM_A_MAO_NO_BOLSO"
Will update this thread with links when my user reaches the required points (new on xda)
Credits:
The LineageOS Team
Remilia Scarlet/Nguyễn Diệp Quỳnh for SM-G360H work
Fabio Júnior Chaves da Silva (lend his device, even knowing it might become a paperweight)
stephenpump (My first post on xda, so used one of your posts as reference )
Anyone i forgot to mention
Note:
This version of TWRP does not populate ro.build.product, blocking a generated package to be installed
So, if you compile from source "brunch core33g", you can apply the following workaround for you generated installation package:
Unpack generated package into a blank directory
Code:
mkdir /tmp/lineage-pkg
cd /tmp/lineage-pkg
last_gen_pkg=$(ls -tr ${OUT}/lineage-14.1-????????-UNOFFICIAL-core33g.zip | tail -1)
jar xvf ${last_gen_pkg}
Edit META-INF/com/google/android/updater-script and replace this:
Code:
getprop("ro.build.product") == "core33gdx"
by this:
Code:
getprop("ro.build.product") != "core33gdx"
Create a new "patched" package
Code:
cd /tmp/lineage-pkg
jar cvf lineage-14.1-patched-UNOFFICIAL-core33g.zip *
Version Information:
ROM OS Version: Android 7.1.2 Nougat
Kernel Version: Linux 3.10.17
Click to expand...
Click to collapse
Bro I installed twrp 3.0.2 and Wiped Data, Chache,Dalvik and system..And I flashed the ROM.. It showed "Unknown Command [log]" BUT FLASHING WAS SUCCESSFUL..So I Botted the tab and now it's showing the Lineage OS boot animation from 15 mins..Ik it takes a hell lot of time for the first boot but 15 mins?!??
I'll update if something happens..
Shreyas.ĒXĒ said:
Bro I installed twrp 3.0.2 and Wiped Data, Chache,Dalvik and system..And I flashed the ROM.. It showed "Unknown Command [log]" BUT FLASHING WAS SUCCESSFUL..So I Botted the tab and now it's showing the Lineage OS boot animation from 15 mins..Ik it takes a hell lot of time for the first boot but 15 mins?!
I'll update if something happens..
Click to expand...
Click to collapse
Hi
5 minutes is the maximum time. 15 minutes can be threated as a bootloop.
Some users reported this on youtube (for T113NU models).
Try pluging USB and check if you have adb connection. If so, check logcat/dmesg
sasi2006166 said:
Going to fix camera gimme sources
---------- Post added at 10:04 AM ---------- Previous post was at 09:58 AM ----------
Also pm me on Telegram @sasi2006166
Click to expand...
Click to collapse
Hi, this manifest has all the repositories changed (except framework-native, which also can be pushed from my github, branch T113NU_COM_A_MAO_NO_BOLSO)
# Local manifest
https://github.com/pstglia/local_manifests/tree/T113NU_COM_A_MAO_NO_BOLSO
# Framework-Native
https://github.com/pstglia/frameworks-native/tree/T113NU_COM_A_MAO_NO_BOLSO
pstglia said:
Hi
5 minutes is the maximum time. 15 minutes can be threated as a bootloop.
Some users reported this on youtube (for T113NU models).
Try pluging USB and check if you have adb connection. If so, check logcat/dmesg
Click to expand...
Click to collapse
I took a Logcat file.But I am not able to attach it to this post it's showing"Bad Request"I think you are right my Tab is Bootlooped..Any solutions??
Edit: I have uploaded a Google drive link for the logcat.log file..pls see it..
https://drive.google.com/file/d/15491N45mEhIb-MZU72ef83VESCEK_WGi/view?usp=drivesdk
Thanks for the rom! I am using this ROM whit gapps pico and works everything so good! !!
Enviado desde mi Nexus 5X mediante Tapatalk
dhruvpatel_9880 said:
I will try it today
Click to expand...
Click to collapse
Hey man, I think something is wrong, T116NY and T116BU are identical. Here's what I've done:
- Made a Nandroid backup
- Downloaded Opengapps 7.1 ARM Pico
- Downloaded the ROM
- Downloaded TWRP 3.0.2 from dl.twrp.me/goyave
- Wiped System, Data, Cache and Dalvik
- Flashed the ROM, OpenGApps, then TWRP, in this order.
You should try it this way.
---------- Post added at 08:51 PM ---------- Previous post was at 08:47 PM ----------
dhruvpatel_9880 said:
I will try it today
Click to expand...
Click to collapse
If it still doesn't work, check if your using the correct version of TWRP (3.0.2) Download it at the link I gave you.
---------- Post added at 08:57 PM ---------- Previous post was at 08:51 PM ----------
PS: I wasn't able to reply the private message
---------- Post added at 09:38 PM ---------- Previous post was at 08:57 PM ----------
When I flashed the ROM, I noticed that it was running on a lower resolution than the normal (480p instead of 720p). If anyone else have this issue, just go to build.prop and change lcd_density to stock value (In my case is 160). Hope this helps!
Shreyas.ĒXĒ said:
I took a Logcat file.But I am not able to attach it to this post it's showing"Bad Request"I think you are right my Tab is Bootlooped..Any solutions?
Edit: I have uploaded a Google drive link for the logcat.log file..pls see it..
https://drive.google.com/file/d/15491N45mEhIb-MZU72ef83VESCEK_WGi/view?usp=drivesdk
Click to expand...
Click to collapse
Hi,
Unfortunatelly couldn't get any clue by logcat output. Can you post dmesg as well?
@All
Anyone with experience in LineageOS ROMS could give a clue?
Some user with identical device models I had in hand (T113NU) reported the same issue. In these cases, logcat stops logging at the beginning and I couldn't figure out any related message on dmesg?
I'm discarding hw failure because stock ROM works in these cases (based on reports from users)
Regards
pstglia
This rom technically should work if the device code name is " goyave ".mine was sm-t116 and code name is "goyave3g".And working perfectly .
pstglia said:
Hi,
Unfortunatelly couldn't get any clue by logcat output. Can you post dmesg as well?
@All
Anyone with experience in LineageOS ROMS could give a clue?
Some user with identical device models I had in hand (T113NU) reported the same issue. In these cases, logcat stops logging at the beginning and I couldn't figure out any related message on dmesg?
I'm discarding hw failure because stock ROM works in these cases (based on reports from users)
Regards
pstglia
Click to expand...
Click to collapse
Sorry lol..I forgot to add dmesg..
I have given the LATEST logcat and Dmesg file in the link below..pls see it..
https://drive.google.com/folderview?id=1-8xJgzLeSE8TJxv5gh_ZXTLyXbB-0IcK
---------- Post added at 05:24 AM ---------- Previous post was at 05:21 AM ----------
MegaStormBR said:
Hey man, I think something is wrong, T116NY and T116BU are identical. Here's what I've done:
- Made a Nandroid backup
- Downloaded Opengapps 7.1 ARM Pico
- Downloaded the ROM
- Downloaded TWRP 3.0.2 from dl.twrp.me/goyave
- Wiped System, Data, Cache and Dalvik
- Flashed the ROM, OpenGApps, then TWRP, in this order.
You should try it this way.
---------- Post added at 08:51 PM ---------- Previous post was at 08:47 PM ----------
If it still doesn't work, check if your using the correct version of TWRP (3.0.2) Download it at the link I gave you.
---------- Post added at 08:57 PM ---------- Previous post was at 08:51 PM ----------
PS: I wasn't able to reply the private message
---------- Post added at 09:38 PM ---------- Previous post was at 08:57 PM ----------
When I flashed the ROM, I noticed that it was running on a lower resolution than the normal (480p instead of 720p). If anyone else have this issue, just go to build.prop and change lcd_density to stock value (In my case is 160). Hope this helps!
Click to expand...
Click to collapse
Bro I tried your method but still It's Bootlooping(stuck on Lineage OS boot animation)
P.s: I have already installed Twrp version (3.0.2)..
Shreyas.ĒXĒ said:
Sorry lol..I forgot to add dmesg..
I have given the LATEST logcat and Dmesg file in the link below..pls see it..
https://drive.google.com/folderview?id=1-8xJgzLeSE8TJxv5gh_ZXTLyXbB-0IcK
---------- Post added at 05:24 AM ---------- Previous post was at 05:21 AM ----------
Bro I tried your method but still It's Bootlooping(stuck on Lineage OS boot animation)
P.s: I have already installed Twrp version (3.0.2)..
Click to expand...
Click to collapse
Huh, thats weird. T116BU working.

[EOL][SODP][ROM][AOSP][XZ2, XZ2C, XZ3] SonyAOSP 12.1

Central project page
[EOL][SODP][ROM][AOSP][XZ2, XZ2C, XZ3] SonyAOSP 12.1 [Alpha]
The Sony Open Devices Project is always happy about volunteers (coding, testing, etc) :) Also mainlining your favorite snapdragon powered xperia device into the mainline kernel is possible and we will be glad to help you! Official site...
forum.xda-developers.com
09.02.2022
android-12.0.0_r28 (February security patchlevel)
OEMv1c support
Click to expand...
Click to collapse
14.02.2022
hotfix for the bootloop
Click to expand...
Click to collapse
30.03.2022
android-12.1.0_r1 (March security patchlevel)
Click to expand...
Click to collapse
MartinX3 said:
30.03.2022
Click to expand...
Click to collapse
a question why you don't upload photos of the user interface, and what options are available, I currently have the Xperia XZ2 Compact, and I'm thinking of changing the rom for this one based on Android 12.1
Carljaynp03 said:
a question why you don't upload photos of the user interface, and what options are available, I currently have the Xperia XZ2 Compact, and I'm thinking of changing the rom for this one based on Android 12.1
Click to expand...
Click to collapse
It's 90% aosp.
Please report any bug in the linked issue tracker.
MartinX3 said:
It's 90% aosp.
Please report any bug in the linked issue tracker.
Click to expand...
Click to collapse
any direct contact number for more information I am new in the world of custom roms, I want help, I can contribute with the work done please
Carljaynp03 said:
any direct contact number for more information I am new in the world of custom roms, I want help, I can contribute with the work done please
Click to expand...
Click to collapse
Thank you, please follow the link in the first post.
There it is also in the first post.
12.04.2022
android-12.1.0_r3 (April security patchlevel)
Click to expand...
Click to collapse
Bug....the touch does not work and it seems to reboot intermittently
Mint rhfo said:
Bug....the touch does not work and it seems to reboot intermittently
Click to expand...
Click to collapse
Bug....report?
MartinX3 said:
Bug....report?
Click to expand...
Click to collapse
Yeah! It's Bug report!
Mint rhfo said:
Yeah! It's Bug report!
Click to expand...
Click to collapse
I don't see a valid bug report according to the instructions.
Or you claim that I'm god and know everything.
But maybe I'm god, who knows.
Hello,
Android Custom Rom noob here. Just picked up a XPERIA zx2 Compact and wanted to use this guide to flash a more current Android on the phone (came with Android10).
I followed some guides and was able to unlock my bootloader and enable USB Debugging. I used adb platform tools to boot the device in fastboot mode and flashed the files as described in the instructions.
Errors encountered:
fastboot flash oem _a SW_binaries_for_Xperia_Android_12_4.19_v1c_tama.img
fastboot: error: cannot load '_a': No such file or directory
I changed the command to: fastboot flash oem_a SW_binaries_for_Xperia_Android_12_4.19_v1c_tama.img
Sadly, the device reboots after a few seconds showing the sony logo. Reboots about three times and then says corrupted image, then shuts down. What am I doing wrong?
Thanks for your help guys!
BigWoodFarmer said:
Hello,
Android Custom Rom noob here. Just picked up a XPERIA zx2 Compact and wanted to use this guide to flash a more current Android on the phone (came with Android10).
I followed some guides and was able to unlock my bootloader and enable USB Debugging. I used adb platform tools to boot the device in fastboot mode and flashed the files as described in the instructions.
Errors encountered:
fastboot flash oem _a SW_binaries_for_Xperia_Android_12_4.19_v1c_tama.img
fastboot: error: cannot load '_a': No such file or directory
I changed the command to: fastboot flash oem_a SW_binaries_for_Xperia_Android_12_4.19_v1c_tama.img
Sadly, the device reboots after a few seconds showing the sony logo. Reboots about three times and then says corrupted image, then shuts down. What am I doing wrong?
Thanks for your help guys!
Click to expand...
Click to collapse
Hey,
I'm sorry and fixed the type.
There was a wrong whitespace character in the manual.
It's `oem_a`, that's correct.
Did you flash everything and wiped the userdata before?
Because other XZ2C owners were able to post logs.
Also it is mandatory to run the latest stock firmware on both slots once before in the lifetime of your phone.
Hi,
Thank you for your fast reply. I flashed everything and wiped as described with "fastboot -w"
I am unsure what you mean by both slots, you mean Firmware and Software Content Erase? I used EMMA to flash: H8324 52.1.A.0.618 Customized_UK 1313-5469 R3C User-Live COM on the device.
Some other questions I had:
a) Do I need Magisk for root on the device?
b) can I use another Version the twrp 3.4.0.0.? If I install this to my recovery partition, I can't use it when booting since the screen seems frozen.
sry for asking some dumb questions in my last post. I was now able to install this Android 12 Version. I think the problem was, that i didn't wipe the device before the deployment.
Thanks again for all your work on this.
*EDIT*
Can you suggest a twrp version I should use? I cannot start 3.4-0-0 (2020-06-14_21-07-37) anymore using fastboot boot
**EDIT #2**
I received the following error: "there is an internal problem with your device, contact manufacturer". I will attach output of logcat -b all
BigWoodFarmer said:
sry for asking some dumb questions in my last post. I was now able to install this Android 12 Version. I think the problem was, that i didn't wipe the device before the deployment.
Thanks again for all your work on this.
*EDIT*
Can you suggest a twrp version I should use? I cannot start 3.4-0-0 (2020-06-14_21-07-37) anymore using fastboot boot
**EDIT #2**
I received the following error: "there is an internal problem with your device, contact manufacturer". I will attach output of logcat -b all
Click to expand...
Click to collapse
Nice that you achieve to flash it.
The camera is currently not implemented because of the russian invasion in the ukraine.
Code:
04-12 19:02:48.363 0 0 I init : starting service 'vendor.camera-provider-2-4'...
04-12 19:02:48.451 3114 3114 I [email protected]: [email protected] legacy service is starting.
04-12 19:02:48.452 3114 3114 D ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
04-12 19:02:48.453 3114 3114 D hw-ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
04-12 19:02:48.452 0 0 I binder : 3114:3114 ioctl 40046210 7ff5fbfc44 returned -22
04-12 19:02:48.453 0 0 I binder : 3114:3114 ioctl 40046210 7ff5fbfc24 returned -22
04-12 19:02:48.489 3114 3114 E [email protected]: Could not load camera HAL module: -2 (No such file or directory)
04-12 19:02:48.489 3114 3114 E [email protected]_64: getProviderImpl: camera provider init failed!
04-12 19:02:48.490 3114 3114 D RefBase : RefBase: Explicit destruction, weak count = 0 (in 0xb400007a624ceaa0)
04-12 19:02:48.491 3114 3114 W RefBase : CallStack::getCurrentInternal not linked, returning null
04-12 19:02:48.491 3114 3114 W RefBase : CallStack::logStackInternal not linked
04-12 19:02:48.492 3114 3114 E HidlServiceManagement: Could not find instance 'legacy/0' in library [email protected] Keeping library open.
04-12 19:02:48.493 3114 3114 E LegacySupport: Could not get passthrough implementation for [email protected]::ICameraProvider/legacy/0.
04-12 19:02:48.501 0 0 I init : Service 'vendor.camera-provider-2-4' (pid 3114) exited with status 1
04-12 19:02:48.501 0 0 I init : Sending signal 9 to service 'vendor.camera-provider-2-4' (pid 3114) process group...
04-12 19:02:48.501 0 0 I libprocessgroup: Successfully killed process cgroup uid 1047 pid 3114 in 0ms
04-12 19:02:48.504 0 0 E init : process with updatable components 'vendor.camera-provider-2-4' exited 4 times in 4 minutes
04-12 19:02:48.513 0 0 I init : processing action (sys.init.updatable_crashing=1) from (/system/etc/init/flags_health_check.rc:10)
04-12 19:02:48.514 0 0 I init : starting service 'exec 29 (/system/bin/flags_health_check UPDATABLE_CRASHING)'...
04-12 19:02:48.541 0 0 I init : SVC_EXEC service 'exec 29 (/system/bin/flags_health_check UPDATABLE_CRASHING)' pid 3115 (uid 1000 gid 1000+0 context default) started; waiting...
04-12 19:02:48.564 3115 3115 I flags_health_check: ServerConfigurableFlagsReset reset_mode value: 1
04-12 19:02:48.565 3115 3115 I flags_health_check: ServerConfigurableFlagsReset updatable crashing detected, resetting flags.
Please subscribe to
[Tama][XZ2C][AOSP12][4.19] Apollo camera provider init failed (every 5secs) · Issue #751 · sonyxperiadev/bug_tracker
Platform: Tama Device: XZ2C (apollo) Kernel version: 4.19.188-ge73c1a837c4f-dirty Android version: AOSP12 Software binaries version: 12_4.19_v1c_tama Previously working on n/a (latest official Sony...
github.com
[Tama][4.19][AOSP12] Device reboots for no clear reason any time it is not idle · Issue #755 · sonyxperiadev/bug_tracker
Platform: Tama Device: Apollo Kernel version: 4.19 Android version: AOSP12 Software binaries version: 12_4.19_v1c_tama Previously working on n/a Description The device reboots after a few minutes o...
github.com
[TAMA][12][4.19] Bootloop · Issue #748 · sonyxperiadev/bug_tracker
Platform: Tama Device: Apollo Kernel version: 4.19 Android version: 12 Software binaries version: v1c Previously working on Stock Description Bootloop and no ADB logs available. The device was flas...
github.com
and firstly this will get fixed: https://github.com/sonyxperiadev/bug_tracker/issues/770
20.05.2022
android-12.1.0_r5 (May security patchlevel)
Click to expand...
Click to collapse
Because of problems with the ftp server the new release is on google drive.
Click to expand...
Click to collapse
Hello, what changes between this rom and the stock based roms ?

How To Guide Mapping Out The G20's Internals

NOKIA G20 ALL ADB SHELL COMMANDS
=========================================
Hello Friends, Welcome To.... My Book~! xD
=====================
Spoiler: HOW TO SEE ALL FOLDERS AND PROGRAMS ON YOUR ANDROID DEVICE
This is a map for NOKIA G20 using the ADB Shell
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
To Get here,
Open Command Prompt.
type:
adb shell
then:
ls
This lists the files and folders you can access through the ADB Shell.
Spoiler: SHOW
acct
apex
bin
bugreports
cache
config
d
data
data_mirror
debug_ramdisk
default.prop
dev
etc
init
init.environ.rc
linkerconfig
lost+found
metadata
mnt
odm
oem
postinstall
proc
product
sdcard
storage
sys
system
system_ext
vendor
wt_custom
We can switch to any "Directory" or "Folder" listed above by typing the command "cd"... followed by the folder name.
Now we can learn what each system does by typing the system name, followed by --help -help or -h
We can Read A File by using the command "cat" followed by the File Name.
Spoiler: G20 INTERNALS
Spoiler: ACCT
Spoiler: SHOW TEXT FOR COPYING
cgroup.clone_children
cgroup.procs
cgroup.sane_behavior
cpuacct.stat
cpuacct.usage
cpuacct.usage_all
cpuacct.usage_percpu
cpuacct.usage_percpu_sys
cpuacct.usage_percpu_user
cpuacct.usage_sys
cpuacct.usage_user
notify_on_release
release_agent
tasks
uid
uid_0
uid_1000
uid_1001
uid_1002
uid_10056
uid_10057
uid_10059
uid_10061
uid_10063
uid_10064
uid_10070
uid_10071
uid_10072
uid_10074
uid_10088
uid_10091
uid_10093
uid_1010
uid_10100
uid_10108
uid_10109
uid_10110
uid_10111
uid_10112
uid_10113
uid_10114
uid_10115
uid_10116
uid_10117
uid_10118
uid_10119
uid_10120
uid_10121
uid_10122
uid_10123
uid_10125
uid_10127
uid_10129
uid_1013
uid_10130
uid_10132
uid_10133
uid_10134
uid_10135
uid_10136
uid_10137
uid_10139
uid_10140
uid_10141
uid_10145
uid_10146
uid_10148
uid_10154
uid_10155
uid_10158
uid_10159
uid_10162
uid_10163
uid_10165
uid_10167
uid_10168
uid_10169
uid_1017
uid_10170
uid_10173
uid_10174
uid_10176
uid_10177
uid_10178
uid_10180
uid_10181
uid_10182
uid_10183
uid_10185
uid_10186
uid_10187
uid_10189
uid_1019
uid_10190
uid_1021
uid_1027
uid_1036
uid_1037
uid_1040
uid_1041
uid_1046
uid_1047
uid_1053
uid_1058
uid_1066
uid_1067
uid_1068
uid_1069
uid_1072
uid_1073
uid_1076
uid_2000
uid_9999
Spoiler: ACCT KNOWLEDGE
ACCT is the CPU Accounting Controller Folder~!
https://www.kernel.org/doc/Documentation/cgroup-v1/cpuacct.txt
Spoiler: APEX
Permission denied
Spoiler: BIN
Spoiler: SHOW TEXT FOR COPYING
AudioSetParam
abb
acpi
am
apexd
app_process
app_process32
app_process64
appops
appwidget
atrace
audioserver
auditctl
awk
badblocks
base64
basename
batterywarning
bc
bcc
blank_screen
blkid
blockdev
bmgr
boot_logo_updater
bootanimation
bootstat
bootstrap
boringssl_self_test32
boringssl_self_test64
bpfloader
bu
bugreport
bugreportz
bunzip2
bzcat
bzip2
cal
camerapostalgo
cameraserver
cat
charger
chattr
chcon
chgrp
chmod
chown
chroot
chrt
cksum
clatd
clear
cmd
cmp
comm
content
cp
cpio
cppreopts.sh
crash_dump32
crash_dump64
credstore
cut
dalvikvm
date
dd
debuggerd
defrag.f2fs
device_config
devmem
dex2oat
df
diff
dirname
disable-verity
dmctl
dmesg
dnsmasq
dos2unix
dpm
drmserver
du
dump.f2fs
dumpstate
dumpsys
e2freefrag
e2fsck
e2fsdroid
echo
egrep
enable-verity
env
expand
expr
fallocate
false
fgrep
file
find
flags_health_check
flock
fmt
free
fsck.f2fs
fsck_msdos
fsverity_init
fsync
gatekeeperd
getconf
getenforce
getevent
getprop
gpuservice
grep
groups
gsi_tool
gsid
gunzip
gzip
head
heapprofd
hid
hostname
hw
hwclock
hwservicemanager
i2cdetect
i2cdump
i2cget
i2cset
iconv
id
idmap2
idmap2d
ifconfig
ime
incident
incident-helper-cmd
incident_helper
incidentd
init
inotifyd
input
insmod
install
installd
ionice
iorap.cmd.compiler
iorap.cmd.maintenance
iorap.inode2filename
iorap.prefetcherd
iorapd
iorenice
ip
ip-wrapper-1.0
ip6tables
ip6tables-restore
ip6tables-save
ip6tables-wrapper-1.0
iptables
iptables-restore
iptables-save
iptables-wrapper-1.0
keystore
keystore_cli_v2
kill
killall
kpoc_charger
lbs_dbg
lcdc_screen_cap
ld.mc
ldd
librank
linker
linker64
linker_asan
linker_asan64
linkerconfig
lmkd
ln
load_policy
locksettings
log
logcat
logd
logname
logwrapper
losetup
lpdump
lpdumpd
ls
lsattr
lshal
lsmod
lsof
lspci
lsusb
make_f2fs
md5sum
mdnsd
mediaextractor
mediametrics
mediaserver
microcom
mifunctiontest
migrate_legacy_obb_data.sh
mini-keyctl
mkdir
mke2fs
mkfifo
mkfs.ext2
mkfs.ext3
mkfs.ext4
mknod
mkswap
mktemp
modinfo
modprobe
monkey
more
mount
mountpoint
move_widevine_data.sh
mtk_plpath_utils
mtpd
mv
nc
ndc
ndc-wrapper-1.0
netcat
netd
netstat
netutils-wrapper-1.0
newfs_msdos
nice
nl
nohup
notify_traceur.sh
nproc
nsenter
od
oem-iptables-init.sh
otapreopt
otapreopt_chroot
otapreopt_script
otapreopt_slot
paste
patch
perfetto
pgrep
pidof
ping
ping6
pkill
pm
pmap
pppd
preloads_copy.sh
preloads_copy_ext.sh
preopt2cachename
printenv
printf
procrank
ps
pwd
racoon
readelf
readlink
realpath
reboot
recovery-persist
recovery-refresh
renice
requestsync
resize.f2fs
resize2fs
restorecon
rm
rmdir
rmmod
rss_hwm_reset
run-as
runcon
schedtest
screencap
screenrecord
sdcard
secdiscard
secilc
sed
sendevent
sensorservice
seq
service
servicemanager
set-verity-state
setenforce
setprop
setsid
settings
sgdisk
sh
sha1sum
sha224sum
sha256sum
sha384sum
sha512sum
showmap
simpleperf
simpleperf_app_runner
sleep
sload_f2fs
sm
snapshotctl
sort
split
ss
start
stat
stop
storaged
strings
stty
surfaceflinger
svc
swapoff
swapon
sync
sysctl
tac
tail
tar
taskset
tc
tc-wrapper-1.0
tcpdump
tee
telecom
terservice
test
thermald
time
timeout
tombstoned
toolbox
top
touch
toybox
tr
traced
traced_perf
traced_probes
trigger_perfetto
true
truncate
tty
tune2fs
tzdatacheck
ueventd
uiautomator
ulimit
umount
uname
uncrypt
uniq
unix2dos
unlink
unshare
unzip
update_engine
update_verifier
uptime
usbd
usleep
uudecode
uuencode
uuidgen
vdc
viewcompiler
vmstat
vold
vold_prepare_subdirs
vr
vtservice
wait_for_keymaster
watch
watchdogd
wc
which
whoami
wificond
wm
xargs
xxd
yes
zcat
zipinfo
ziptool
Spoiler: ALL BIN PROGRAMS BREAK DOWN
This is the beginning, the rest will be added in the comments below, in alphabetical order, as the site only allows 20 image attachments at a time.
Spoiler: AUDIOSETPARAM
AudioSetParam
Spoiler: AUDIOSETPARAM COMMANDS
please enter command... example: 'GET_XXX_ENABLE', 'SET_XXX_ENABLE=0', 'SET_XXX_ENABLE=1', and '0' for exit
Spoiler: AUDIOSETPARAM KNOWLEDGE
Audio HAL | Android Open Source Project
source.android.com
Spoiler: ABB
abb
Spoiler: ABB KNOWLEDGE
Currently unsure what this command is used for. It does nothing when typed.
Here's some research on the ABB company
ABB Finland powers up with Nokia Lumia
ABB Finland has deployed more than 2200 Nokia Lumia smartphones to its employees and the count is still rising. The company, one of the world’s biggest suppliers of power and robotics technologies, employs around 6600 people in Finland across 30 locations. They create everything from huge...
blogs.windows.com
ABB - Wikipedia
en.wikipedia.org
Spoiler: ACPI
acpi
Spoiler: ACPI COMMANDS
usage: acpi [-abctV]
Show status of power sources and thermal devices.
-a Show power adapters
-b Show batteries
-c Show cooling device state
-t Show temperatures
-V Show everything
Spoiler: ACPI KNOWLEDGE
Preexisting ACPI Specifications | Unified Extensible Firmware Interface Forum
Spoiler: AM
am
Spoiler: SHELL VIDEO
The commands are too large to screenshot, here is a video that you may peruse and pause at your own convience.
This is the only command like this... I'M NOT LAZY
Spoiler: AM COMMANDS
help
Prints this help text.
Spoiler: START ACTIVITY
start-activity
Spoiler: START ACTIVITY COMMANDS
[-D] [-N] [-W] [-P <FILE>] [--start-profiler <FILE>]
[--sampling INTERVAL] [--streaming] [-R COUNT] [-S]
[--track-allocation] [--user <USER_ID> | current] <INTENT>
Starts an Activity.
Spoiler: OPTIONS
Spoiler: -D
-D
enable debugging
Spoiler: -N
-N
enable native debugging
Spoiler: -W
-W
wait for launch to complete
Spoiler: --START-PROFILER
--start-profiler <FILE>
start profiler and send results to <FILE>
Spoiler: --SAMPLING INTERVAL
--sampling INTERVAL
use sample profiling with INTERVAL microseconds between samples
(use with --start-profiler)
Spoiler: --STREAMING
--streaming
stream the profiling output to the specified file
(use with --start-profiler)
Spoiler: STREAMING-IDLE
-P <FILE>-
like --streaming above, but profiling stops when app goes idle
Spoiler: --ATTACH-AGENT
--attach-agent <agent>
attach the given agent before binding
Spoiler: ATTACH-AGENT-BIND
--attach-agent-bind <agent>
attach the given agent during binding
Spoiler: -R
-R
repeat the activity launch <COUNT> times.
Prior to each repeat, the top activity will be finished.
Spoiler: -S
-S
force stop the target app before starting the activity
Spoiler: --TRACK-ALLOCATION
--track-allocation
enable tracking of object allocations
Spoiler: --USER
--user <USER_ID> | current
Specify which user to run as.. if not specified then run as the current user.
Spoiler: --WINDOWINGMODE
--windowingMode <WINDOWING_MODE>
The windowing mode to launch the activity into.
Spoiler: --ACTIVITYTYPE
--activityType <ACTIVITY_TYPE>
The activity type to launch the activity as.
Spoiler: --DISPLAY
--display <DISPLAY_ID>
The display to launch the activity into.
Spoiler: START-SERVICE
start-service [--user <USER_ID> | current] <INTENT>
Start a Service.
Spoiler: OPTIONS
--user <USER_ID> | current
Specify which user to run as; if not specified then run as the current user.
Spoiler: START-FOREGROUND-SERVICE
start-foreground-service [--user <USER_ID> | current] <INTENT>
Start a foreground Service.
Spoiler: OPTIONS
--user <USER_ID> | current
Specify which user to run as; if not specified then run as current user.
Spoiler: STOP-SERVICE
stop-service [--user <USER_ID> | current] <INTENT>
Stop a Service.
Spoiler: OPTIONS
--user <USER_ID> | current
Specify which user to run as; if not specified then run as current user.
Spoiler: BROADCAST
broadcast [--user <USER_ID> | all | current] <INTENT>
Send a broadcast Intent.
Spoiler: OPTIONS
--user <USER_ID> | all | current
Specify which user to send to; if not specified then send to all users.
--receiver-permission <PERMISSION>
Require receiver to hold permission.
--allow-background-activity-starts
The receiver may start activities, even if in the background.
Spoiler: INSTRUMENT
instrument [-r] [-e <NAME> <VALUE>] [-p <FILE>] [-w]
[--user <USER_ID> | current]
[--no-hidden-api-checks [--no-test-api-access]]
[--no-isolated-storage]
[--no-window-animation] [--abi <ABI>] <COMPONENT>
Start an Instrumentation. Typically this target <COMPONENT>
is in the form <TEST_PACKAGE>/<RUNNER_CLASS>
or only <TEST_PACKAGE> if there is only one instrumentation.
Spoiler: OPTIONS
Spoiler: -R: PRINT RAW RESULTS
-r
print raw results (otherwise decode REPORT_KEY_STREAMRESULT).
Use with [-e perf true] to generate raw output for performance measurements.
Spoiler: -E: SET ARGUMENT NAME TO VALUE
-e <NAME> <VALUE>
set argument <NAME> to <VALUE>
For test runners, a common form is [-e <testrunner_flag> <value>[,<value>...]]
Spoiler: -P: WRITE PROFILING DATA
-p <FILE>
Write profiling data to <FILE>
Spoiler: MACHINE READABLE OUTPUT
-m
Write output as protobuf to stdout (machine readable)
Spoiler: MACHINE READBLE OUTPUT FILE PATH
-f <Optional PATH/TO/FILE>
Write output as protobuf to a file (machine readable). If path is not specified..
Then default directory and file name will be used:
/sdcard/instrument-logs/log-yyyyMMdd-hhmmss-SSS.instrumentation_data_proto
Spoiler: WAIT
-w
wait for instrumentation to finish before returning. Required for test runners.
Spoiler: USER
--user <USER_ID> | current
Specify user instrumentation runs in; current user if not specified.
Spoiler: DISABLE HIDDEN API RESTRICTIONS
--no-hidden-api-checks
disable restrictions on use of hidden API.
Spoiler: BAN ALL API TEST ACCESS
--no-test-api-access
do not allow access to test APIs, if hidden API checks are enabled.
Spoiler: MOUNT FULL EXTERNAL STORAGE, NO SANDBOX
--no-isolated-storage
don't use isolated storage sandbox and mount full external storage
Spoiler: TURN OFF WINDOW ANIMATIONS
--no-window-animation
turn off window animations while running.
Spoiler: LAUCH PROCESS ABI
--abi <ABI>
Launch the instrumented process with the selected ABI. This assumes that the process supports the selected ABI.
Spoiler: TRACE-IPC TRANSACTIONS
trace-ipc [start|stop] [--dump-file <FILE>]
Trace IPC transactions.
Spoiler: OPTIONS
start
start tracing IPC transactions.
stop
stop tracing IPC transactions and dump the results to file.
--dump-file <FILE>
Specify the file the trace should be dumped to.
Spoiler: START PROFILER
profile start [--user <USER_ID> current] [--sampling INTERVAL | --streaming] <PROCESS> <FILE>
Start profiler on a process. The given <PROCESS> argument may be either a process name or pid.
Spoiler: OPTIONS
--user <USER_ID> | current
When supplying a process name, specify user of process to profile; uses current user if not specified.
--sampling INTERVAL
use sample profiling with INTERVAL microseconds between samples.
--streaming
stream the profiling output to the specified file.
Spoiler: STOP PROFILER
profile stop [--user <USER_ID> current] <PROCESS>
Stop profiler on a process. The given <PROCESS> argument may be either a process name or pid.
Spoiler: OPTIONS
--user <USER_ID> | current: When supplying a process name, specify user of process to profile; uses current user, if not specified.
Spoiler: DUMPHEAP
dumpheap [--user <USER_ID> current] [-n] [-g] <PROCESS> <FILE>
Dump the heap of a process.
The given <PROCESS> argument may be either a process name or pid.
Spoiler: OPTIONS
-n: dump native heap instead of managed heap
-g: force GC before dumping the heap
--user <USER_ID> | current: When supplying a process name, specify user of process to dump; uses current user if not specified.
Spoiler: SET-DEBUG-APP
set-debug-app [-w] [--persistent] <PACKAGE>
Set application <PACKAGE> to debug.
Spoiler: OPTIONS
-w: wait for debugger when application starts
--persistent: retain this value
Spoiler: CLEAR-DEBUG-APP
clear-debug-app
Clear the previously set-debug-app.
Spoiler: SET-WATCH-HEAP
set-watch-heap <PROCESS> <MEM-LIMIT>
Start monitoring pss size of <PROCESS>, if it is at or above <HEAP-LIMIT> then a heap dump is collected for the user to report.
Spoiler: CLEAR-WATCH-HEAP
clear-watch-heap
Clear the previously set-watch-heap.
Spoiler: CLEAR-EXIT-INFO
clear-exit-info [--user <USER_ID> | all | current] [package]
Clear the process exit-info for given package
Spoiler: BUG-REPORT
bug-report [--progress | --telephony]
Request bug report generation; will launch a notification when done to select where it should be delivered.
Spoiler: OPTIONS
--progress: will launch a notification right away to show its progress.
--telephony: will dump only telephony sections.
Spoiler: FORCE-STOP
force-stop [--user <USER_ID> | all | current] <PACKAGE>
Completely stop the given application package.
Spoiler: CRASH
crash [--user <USER_ID>] <PACKAGE|PID>
Induce a VM crash in the specified package or process
Spoiler: KILL
kill [--user <USER_ID> | all | current] <PACKAGE>
Kill all background processes associated with the given application.
Spoiler: KILL-ALL
kill-all
Kill all processes that are safe to kill (cached, etc).
Spoiler: MAKE-UID-IDLE
make-uid-idle [--user <USER_ID> | all | current] <PACKAGE>
If the given application's uid is in the background and waiting to become idle (not allowing background services), do that now.
Spoiler: MONITOR
monitor [--gdb <port>]
Start monitoring for crashes or ANRs.
Spoiler: OPTIONS
--gdb: start gdbserv on the given port at crash/ANR
Spoiler: WATCH-UIDS
watch-uids [--oom <uid>]
Start watching for and reporting uid state changes.
Spoiler: OOM
--oom: specify a uid for which to report detailed change messages.
Spoiler: HANG
hang [--allow-restart]
Hang the system.
Spoiler: ALLOW-RESTART
--allow-restart: allow watchdog to perform normal system restart
Spoiler: RESTART
restart
Restart the user-space system.
Spoiler: IDLE-MAINTENANCE
idle-maintenance
Perform idle maintenance now.
screen-compat [on|off] <PACKAGE>
Control screen compatibility mode of <PACKAGE>.
package-importance <PACKAGE>
Print current importance of <PACKAGE>.
to-uri [INTENT]
Print the given Intent specification as a URI.
to-intent-uri [INTENT]
Print the given Intent specification as an intent: URI.
to-app-uri [INTENT]
Print the given Intent specification as an android-app: URI.
switch-user <USER_ID>
Switch to put USER_ID in the foreground, starting
execution of that user if it is currently stopped.
get-current-user
Returns id of the current foreground user.
start-user [-w] <USER_ID>
Start USER_ID in background if it is currently stopped;
use switch-user if you want to start the user in foreground.
-w: wait for start-user to complete and the user to be unlocked.
unlock-user <USER_ID> [TOKEN_HEX]
Attempt to unlock the given user using the given authorization token.
stop-user [-w] [-f] <USER_ID>
Stop execution of USER_ID, not allowing it to run any
code until a later explicit start or switch to it.
-w: wait for stop-user to complete.
-f: force stop even if there are related users that cannot be stopped.
is-user-stopped <USER_ID>
Returns whether <USER_ID> has been stopped or not.
get-started-user-state <USER_ID>
Gets the current state of the given started user.
track-associations
Enable association tracking.
untrack-associations
Disable and clear association tracking.
get-uid-state <UID>
Gets the process state of an app given its <UID>.
attach-agent <PROCESS> <FILE>
Attach an agent to the specified <PROCESS>, which may be either a process name or a PID.
get-config [--days N] [--device] [--proto] [--display <DISPLAY_ID>]
Retrieve the configuration and any recent configurations of the device.
--days: also return last N days of configurations that have been seen.
--device: also output global device configuration info.
--proto: return result as a proto; does not include --days info.
--display: Specify for which display to run the command; if not
specified then run for the default display.
supports-multiwindow
Returns true if the device supports multiwindow.
supports-split-screen-multi-window
Returns true if the device supports split screen multiwindow.
suppress-resize-config-changes <true|false>
Suppresses configuration changes due to user resizing an activity/task.
set-inactive [--user <USER_ID>] <PACKAGE> true|false
Sets the inactive state of an app.
get-inactive [--user <USER_ID>] <PACKAGE>
Returns the inactive state of an app.
set-standby-bucket [--user <USER_ID>] <PACKAGE> active|working_set|frequent|rare
Puts an app in the standby bucket.
get-standby-bucket [--user <USER_ID>] <PACKAGE>
Returns the standby bucket of an app.
send-trim-memory [--user <USER_ID>] <PROCESS>
[HIDDEN|RUNNING_MODERATE|BACKGROUND|RUNNING_LOW|MODERATE|RUNNING_CRITICAL|COMPLETE]
Send a memory trim event to a <PROCESS>. May also supply a raw trim int level.
display [COMMAND] [...]: sub-commands for operating on displays.
move-stack <STACK_ID> <DISPLAY_ID>
Move <STACK_ID> from its current display to <DISPLAY_ID>.
stack [COMMAND] [...]: sub-commands for operating on activity stacks.
move-task <TASK_ID> <STACK_ID> [true|false]
Move <TASK_ID> from its current stack to the top (true) or
bottom (false) of <STACK_ID>.
resize-docked-stack <LEFT,TOP,RIGHT,BOTTOM> [<TASK_LEFT,TASK_TOP,TASK_RIGHT,TASK_BOTTOM>]
Change docked stack to <LEFT,TOP,RIGHT,BOTTOM>
and supplying temporary different task bounds indicated by
<TASK_LEFT,TOP,RIGHT,BOTTOM>
move-top-activity-to-pinned-stack: <STACK_ID> <LEFT,TOP,RIGHT,BOTTOM>
Moves the top activity from
<STACK_ID> to the pinned stack using <LEFT,TOP,RIGHT,BOTTOM> for the
bounds of the pinned stack.
positiontask <TASK_ID> <STACK_ID> <POSITION>
Place <TASK_ID> in <STACK_ID> at <POSITION>
list
List all of the activity stacks and their sizes.
info <WINDOWING_MODE> <ACTIVITY_TYPE>
Display the information about activity stack in <WINDOWING_MODE> and <ACTIVITY_TYPE>.
remove <STACK_ID>
Remove stack <STACK_ID>.
task [COMMAND] [...]: sub-commands for operating on activity tasks.
lock <TASK_ID>
Bring <TASK_ID> to the front and don't allow other tasks to run.
lock stop
End the current task lock.
resizeable <TASK_ID> [0|1|2|3]
Change resizeable mode of <TASK_ID> to one of the following:
0: unresizeable
1: crop_windows
2: resizeable
3: resizeable_and_pipable
resize <TASK_ID> <LEFT,TOP,RIGHT,BOTTOM>
Makes sure <TASK_ID> is in a stack with the specified bounds.
Forces the task to be resizeable and creates a stack if no existing stack
has the specified bounds.
update-appinfo <USER_ID> <PACKAGE_NAME> [<PACKAGE_NAME>...]
Update the ApplicationInfo objects of the listed packages for <USER_ID>
without restarting any processes.
write
Write all pending state to storage.
compat [COMMAND] [...]: sub-commands for toggling app-compat changes.
enable|disable|reset <CHANGE_ID|CHANGE_NAME> <PACKAGE_NAME>
Toggles a change either by id or by name for <PACKAGE_NAME>.
It kills <PACKAGE_NAME> (to allow the toggle to take effect).
enable-all|disable-all <targetSdkVersion> <PACKAGE_NAME
Toggles all changes that are gated by <targetSdkVersion>.
reset-all <PACKAGE_NAME>
Removes all existing overrides for all changes for
<PACKAGE_NAME> (back to default behaviour).
It kills <PACKAGE_NAME> (to allow the toggle to take effect).
<INTENT> specifications include these flags and arguments:
[-a <ACTION>] [-d <DATA_URI>] [-t <MIME_TYPE>] [-i <IDENTIFIER>]
[-c <CATEGORY> [-c <CATEGORY>] ...]
[-n <COMPONENT_NAME>]
[-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...]
[--esn <EXTRA_KEY> ...]
[--ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE> ...]
[--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...]
[--el <EXTRA_KEY> <EXTRA_LONG_VALUE> ...]
[--ef <EXTRA_KEY> <EXTRA_FLOAT_VALUE> ...]
[--eu <EXTRA_KEY> <EXTRA_URI_VALUE> ...]
[--ecn <EXTRA_KEY> <EXTRA_COMPONENT_NAME_VALUE>]
[--eia <EXTRA_KEY> <EXTRA_INT_VALUE>[,<EXTRA_INT_VALUE...]]
(mutiple extras passed as Integer[])
[--eial <EXTRA_KEY> <EXTRA_INT_VALUE>[,<EXTRA_INT_VALUE...]]
(mutiple extras passed as List<Integer>)
[--ela <EXTRA_KEY> <EXTRA_LONG_VALUE>[,<EXTRA_LONG_VALUE...]]
(mutiple extras passed as Long[])
[--elal <EXTRA_KEY> <EXTRA_LONG_VALUE>[,<EXTRA_LONG_VALUE...]]
(mutiple extras passed as List<Long>)
[--efa <EXTRA_KEY> <EXTRA_FLOAT_VALUE>[,<EXTRA_FLOAT_VALUE...]]
(mutiple extras passed as Float[])
[--efal <EXTRA_KEY> <EXTRA_FLOAT_VALUE>[,<EXTRA_FLOAT_VALUE...]]
(mutiple extras passed as List<Float>)
[--esa <EXTRA_KEY> <EXTRA_STRING_VALUE>[,<EXTRA_STRING_VALUE...]]
(mutiple extras passed as String[]; to embed a comma into a string,
escape it using "\,")
[--esal <EXTRA_KEY> <EXTRA_STRING_VALUE>[,<EXTRA_STRING_VALUE...]]
(mutiple extras passed as List<String>; to embed a comma into a string,
escape it using "\,")
[-f <FLAG>]
[--grant-read-uri-permission] [--grant-write-uri-permission]
[--grant-persistable-uri-permission] [--grant-prefix-uri-permission]
[--debug-log-resolution] [--exclude-stopped-packages]
[--include-stopped-packages]
[--activity-brought-to-front] [--activity-clear-top]
[--activity-clear-when-task-reset] [--activity-exclude-from-recents]
[--activity-launched-from-history] [--activity-multiple-task]
[--activity-no-animation] [--activity-no-history]
[--activity-no-user-action] [--activity-previous-is-top]
[--activity-reorder-to-front] [--activity-reset-task-if-needed]
[--activity-single-top] [--activity-clear-task]
[--activity-task-on-home] [--activity-match-external]
[--receiver-registered-only] [--receiver-replace-pending]
[--receiver-foreground] [--receiver-no-abort]
[--receiver-include-background]
[--selector]
[<URI> | <PACKAGE> | <COMPONENT>]
Spoiler: AM KNOWLEDGE
Instrumentation Tests | Android Open Source Project
source.android.com
Testing Multiple Users | Android Open Source Project
source.android.com
Spoiler: BIN KNOWLEDGE
bin is the folder that holds the OEM's installed systems and programs~! We can Use These In The ADB Shell~!
/bin definition by The Linux Information Project (LINFO)
Spoiler: BUGREPORTS
Will only exist if a report has been generated.
Spoiler: CACHE
Permission denied
Spoiler: CONFIG
Permission denied
Spoiler: D
No such file or directory
Spoiler: DATA
Permission denied
Spoiler: DATA_MIRROR
Permission denied
Spoiler: DEBUG_RAMDISK
Is an empty, Readable, Folder.
Spoiler: DEFAULT.PROP
inaccessible or not found
Spoiler: DEV
Spoiler: SHOW TEXT FOR COPYING
CAM_CAL_DRV
MAINAF
MTK_SMI
MT_pmic_adc_cali
RT_Monitor
Vcodec
Vcodec2
__properties__
aal_als
aed0
aed1
alarm
als_ps
ashmem
ashmemc59e461e-bb88-4c52-acb2-aff0c4fa47f8
atf_log
atf_raw_buf
binder
binderfs
blkio
block
boringssl
btif
bus
camera-dpe
camera-fdvt
camera-isp
ccci_aud
ccci_bip
ccci_c2k_agps
ccci_c2k_ppp
ccci_ccb_ctrl
ccci_ccb_dhl
ccci_ccb_md_monitor
ccci_ccb_meta
ccci_fs
ccci_imsa
ccci_imsc
ccci_imsdc
ccci_imsem
ccci_imsm
ccci_imsv
ccci_ioctl0
ccci_ioctl1
ccci_ioctl2
ccci_ioctl3
ccci_ioctl4
ccci_ipc_1220_0
ccci_ipc_2
ccci_ipc_4
ccci_ipc_5
ccci_ipc_9
ccci_it
ccci_lb_it
ccci_md1_sta
ccci_md2_sta
ccci_md3_sta
ccci_md_log_ctrl
ccci_mdl_monitor
ccci_mdx_sta
ccci_monitor
ccci_raw_audio
ccci_raw_dhl
ccci_raw_mdm
ccci_raw_netd
ccci_raw_usb
ccci_rpc
ccci_ss_xcap
ccci_woa
ccu
cg2_bpf
cgroup_info
console
cpu_dma_latency
cpu_loading
cpu_variant:arm
cpu_variant:arm64
cpuctl
cpuset
device-mapper
dri
event-log-tags
fd
flashlight
fm
fpsensor
freezer
fscklogs
full
fuse
fw_log_bt
fw_log_gps
fw_log_wifi
fw_log_wmt
gpiochip0
gps_emi
graphics
gsensor
gyroscope
gz_kree
hardwareinfo
hw_random
hwbinder
iio:device0
iio:device1
iio:device2
input
ion
kd_camera_hw
kmsg
loop-control
m_acc_misc
m_als_misc
m_gyro_misc
m_ps_misc
m_situ_misc
m_step_c_misc
mdp_sync
memcg
memory_bandwidth
mmcblk0rpmb
mmp
mobicore
mobicore-user
mtk_cmdq
mtk_disp
mtk_disp_mgr
mtp_usb
nanohub
nanohub_comms
net
network_latency
network_throughput
null
ppp
ptmx
pts
pvr_sync
radio
random
rfkill
rpmb0
rtc0
scp
sec
sensorlist
sia81xx_tuning_if
snd
socket
sspm
st21nfc
stderr
stdin
stdout
stpbt
stpgps
stpwmt
stune
touch
tpd_em_log
tty
ttyC0
ttyC1
ttyC2
ttyC3
ttyC5
ttyC6
ttyGS0
ttyGS1
ttyGS2
ttyGS3
ttyS0
ttyS1
tun
uhid
uinput
urandom
usb-ffs
usb_accessory
vndbinder
vsock
watchdog
watchdog0
wlan
wmtWifi
wmtdetect
zero
Spoiler: WHAT IS IT?
Currently I am unable to view what any of these files are, I will work out a fix. This is some study information on the Dev block in Linux Filesystem Hierarchy
https://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/dev
Spoiler: ETC
Spoiler: SHOW TEXT FOR COPYING
NOTICE.xml.gz
a2dp_audio_policy_configuration.xml
a2dp_in_audio_policy_configuration.xml
aiworks_night_config_ronin.xml
aiworks_night_config_ronin2.xml
ams_aal_config.xml
apns-conf.xml
audio_effects.conf
audio_policy_configuration.xml
audio_policy_configuration_bluetooth_legacy_hal.xml
audio_policy_configuration_stub.xml
audio_policy_engine_configuration.xml
audio_policy_engine_default_stream_volumes.xml
audio_policy_engine_product_strategies.xml
audio_policy_engine_stream_volumes.xml
audio_policy_volumes.xml
bluetooth
bluetooth_audio_policy_configuration.xml
boot-image.bprof
boot-image.prof
bpf
cgroups.json
clatd.conf
compatconfig
default_volume_tables.xml
dirty-image-objects
event-log-tags
fonts.xml
fonts_cust.xml
fs_config_dirs
fs_config_files
fstab.postinstall
gps_debug.conf
graphic_ll_cfg.json
group
hearing_aid_audio_policy_configuration.xml
hosts
init
ixitdata.xml
media_profiles_V1_0.dtd
mke2fs.conf
mkshrc
morpho_ronin.xml
morpho_ronin2.xml
mtklog-config.prop
nfcee_access.xml
passwd
permissions
ppp
preloaded-classes
prop.default
protolog.conf.json.gz
public.libraries-mtk.txt
public.libraries-trustonic.txt
public.libraries.txt
r_submix_audio_policy_configuration.xml
resolution_tuner_app_list.xml
sanitizer.libraries.txt
seccomp_policy
security
selinux
sensors
spotify.preload
sysconfig
task_profiles.json
ueventd.rc
updatable-bcp-packages.txt
usb_audio_policy_configuration.xml
vintf
vndkcorevariant.libraries.txt
white_balance_data.txt
xtables.lock
Spoiler: ETC KNOWLEDGE
Linux directory structure explained:/etc folder - Linux.com
ETC is a folder which contain all your system configuration files in it. Then why the etc name? “etc” is an English word which means etcetera i.e in layman words it is “and so on”. The naming convention of this folder is having some interesting history. The history /etc folder in Linux/Unix In...
www.linux.com
Spoiler: INIT
Permission denied
Spoiler: INIT.ENVIRON.RC
inaccessible or not found
Spoiler: LINKERCONFIG
Permission denied
Spoiler: LOST+FOUND
Permission denied
Spoiler: METADATA
Permission denied
Spoiler: MNT
Spoiler: SHOW TEXT FOR COPYING
androidwritable
appfuse
asec
cd-rom
elabel
expand
hmd_custom_amx
installer
media_rw
obb
pass_through
product
runtime
sdcard
secure
user
vendor
Spoiler: ODM
Spoiler: SHOW TEXT FOR COPYING
AMX
empty
etc
FD
lost+found
TKDN
Spoiler: OEM
Doesn't seem to list anything, seems like it can take commands only
Spoiler: POSTINSTALL
Permission denied
Spoiler: PROC
Spoiler: SHOW TEXT FOR COPYING
1
10
100
102
103
104
105
106
107
108
109
11
110
112
1130
114
116
117
11720
118
12
120
1234
1263
13
1375
14143
145
15
1530
1554
1555
1556
1561
1582
16
16402
1696
17
1714
1722
1734
1752
1779
18
1890
190
191
192
193
194
195
196
19631
197
1976
198
199
2
200
201
202
203
205
206
20750
208
209
2096
21
210
211
212
213
214
215
216
217
2173
218
219
22
220
221
222
2227
223
224
225
226
2268
227
228
229
23
230
231
232
233
234
23411
235
236
237
2370
238
239
240
241
242
243
244
245
2463
247
24753
248
24800
24820
24846
249
2498
250
252
253
25357
254
25471
255
25530
25581
256
2566
257
259
2592
26
260
261
262
2625
26313
264
26448
265
266
2665
267
268
2685
27
270
2708
271
272
273
27305
2736
274
27496
275
2753
276
277
278
2780
279
28
280
2802
281
282
284
2840
285
28558
286
287
288
289
290
291
292
293
294
295
296
298
29803
299
3
300
301
302
3066
31
311
313
314
31629
31747
31752
31811
32
321
322
32261
323
324
325
32552
32589
326
327
328
329
33
330
331
332
333
340
341
342
343
344
346
347
3474
348
349
352
3528
354
3549
36
366
367
368
369
37
370
371
372
373
374
376
377
378
38
386
387
388
389
392
393
394
395
396
4
404
405
407
41
414
415
42
422
423
427
428
43
432
433
437
438
440
441
4414
444
447
448
451
46
461
463
469
47
470
48
480
481
482
4822
483
484
485
486
487
488
489
490
491
492
493
4932
494
495
496
497
498
4989
499
500
501
5014
502
503
504
505
506
507
508
509
51
510
511
512
5124
513
514
515
516
517
518
519
52
520
521
522
523
524
525
526
527
528
529
53
530
531
532
5324
533
534
535
536
5364
537
538
5382
539
540
541
542
543
5439
544
545
546
547
548
549
55
550
551
552
553
56
563
564
5660
5684
57
570
5718
575
576
577
578
5782
5818
5819
582
583
5834
584
585
586
587
588
589
5891
59
590
591
592
5925
5926
593
594
595
596
597
598
599
5994
60
600
601
602
603
604
605
606
607
6075
608
61
610
611
6110
612
614
615
617
619
62
620
6204
622
624
625
63
64
6441
6477
65
6564
66
6613
67
6733
68
6889
69
692
693
695
696
6997
70
705
706
707
71
7196
72
7244
7299
73
74
741
742
743
744
745
746
748
749
75
750
751
752
753
754
755
756
757
76
763
764
765
766
767
768
7688
77
778
78
783
784
785
787
789
7893
79
790
793
794
795
797
798
8
80
8024
81
810
812
813
815
82
822
8258
827
828
829
83
831
8318
8319
832
834
8349
835
836
837
838
84
840
842
843
846
848
849
85
850
851
8540
8554
8568
8581
8582
8583
8587
8598
86
8611
8648
8649
8653
8660
8675
8677
8678
8693
8694
8695
87
88
8832
8865
8869
89
9
90
9032
91
9134
92
93
94
95
96
97
971
973
976
977
978
979
98
980
985
99
aed
asound
atf_log
bat_per_pt
battery_status
bcctlmt
blocktag
bootdevice
bootprof
buddyinfo
bus
ccci_dump
ccci_log
cgroups
chipone_selftest
clkmgr
cmdline
cmdq_test
config.gz
consoles
cpu_loading
cpufreq
cpuhvfs
cpuinfo
crypto
ddr_info
devapc_dbg
device-tree
devices
diskstats
disp
displowpower
dispsys
dpe
driver
dynamic_debug
eem
execdomains
fb
fbconfig
filesystems
fm
fs
ged
gpufreq
gpulog
icn85xx_tool
interrupts
iomem
ion
ioports
irq
isp_p2
kallsyms
key-users
keys
kmsg
kpagecgroup
kpagecount
kpageflags
leakage
loadavg
locks
m4u
m4u_dbg
mcdi
mdpm
meminfo
misc
mobile_tm
modules
mounts
msdc_debug
msdc_help
mtk_battery_cmd
mtk_cmdq_debug
mtk_jpeg
mtk_lpm
mtk_pm_qos
mtkcooler
mtkfb
mtktz
mtprintk
net
pagetypeinfo
partitions
pbm
perfmgr
picachu
pl_lk
ppm
pressure
pvr
rid
sched_debug
schedstat
scp_dvfs
sd_tray_gpio_value
sdcard_intr_gpio_value
secboot_fuse_reg
self
serial_num
softirqs
stat
swaps
sys
sysrq-trigger
tee_sanity
thermlmt
thread-self
timer_list
tmem0
touchscreen
ttpct
tty
udi
uid_concurrent_active_time
uid_concurrent_policy_time
uid_cputime
uid_io
uid_procstat
uid_time_in_state
upower
uptime
version
vmallocinfo
vmstat
wmt_tm
zoneinfo
Spoiler: PRODUCT
Spoiler: SHOW TEXT FOR COPYING
app
bin
build.prop
etc
framework
lost+found
overlay
priv-app
usr
Spoiler: SDCARD
Spoiler: SHOW TEXT FOR COPYING
Alarms
Android
Audiobooks
CarrierConfig
DCIM
Documents
Download
Movies
Music
Notifications
Pictures
Podcasts
Recordings
Ringtones
Spoiler: STORAGE
Spoiler: SHOW TEXT FOR COPYING
emulated
self
Spoiler: SYS
Spoiler: SHOW TEXT FOR COPYING
block
bootinfo
bus
chipone-tddi
class
dcm
dev
devices
firmware
fs
kernel
module
power
Spoiler: SYSTEM
Spoiler: SHOW TEXT FOR COPYING
apex
app
bin
build.prop
claro
etc
flex
fonts
framework
lib
lib64
media
operator
preload_apps
priv-app
product
ro.prop
russia
rw.prop
skuid
system_ext
telcel
usp
usr
vendor
Spoiler: SYSTEM_EXT
Spoiler: SHOW TEXT FOR COPYING
app
build.prop
etc
framework
lib
lib64
priv-app
Spoiler: VENDOR
Spoiler: SHOW TEXT FOR COPYING
app
bin
build.prop
data
default.prop
etc
firmware
framework
lib
lib64
lost+found
odm
overlay
res
ro.prop
rw.prop
ueventd.rc
Spoiler: WT_CUSTOM
Permission denied
Sorry for all the colors. Idk why but it helped me at the time to study and I removed some of the obnoxious ones.
There's 398 systems in the binary folder. I am unable to add All Of the explanations to the main BIN spoiler tree, so I am going to branch that out here in the comments. That being said...
Spoiler: IMAGE
The following messages will pickup Mapping out the G20's system Binaries, in alphabetical order, from where I left off in the picture above.​
Spoiler: ALL BIN SYSTEMS CONTINUED PART 1 (A-B)
Spoiler: APEXD
apexd
inaccessible or not found
Spoiler: APEX KNOWLEDGE
What’s the deal with APEX then?​Well with all the information we get, APEX file format is Google’s approach for Project Mainline.
Android Pony Express (APEX) is a new package type that’s similar to an APK. Instead of housing an Android application, however, APEX is home to a native or class library, pre-compiled code that can be called by Android apps, Hardware Abstraction Layers (HAL), and the Android Run-time (ART). Like the APK, APEX packages can be served to users over traditional package installation methods in Android: the Google Play Store/package manager or ADB.
this will be used in the install flow for lower-level system modules. This format facilitates the updates of system components that don’t fit into the standard Android application model. Some example components are native services and libraries, hardware abstraction layers (HALs), runtime (ART), and class libraries.
APEX — Android’s new file format
Android Pony EXpress (APEX) what’s new in the security game?
saketupadhyay.medium.com
APEX File Format | Android Open Source Project
source.android.com
Spoiler: APP_PROCESS
app_process
app_process32
app_process64
Error changing dalvik-cache ownership : Permission denied
Aborted
Spoiler: APPOPS
appops
Spoiler: APPOPS COMMANDS
help
Print this help text.
Spoiler: START
start [--user <USER_ID>] [--attribution <ATTRIBUTION_TAG>] <PACKAGE | UID> <OP>
Starts a given operation for a particular application.
Spoiler: STOP
stop [--user <USER_ID>] [--attribution <ATTRIBUTION_TAG>] <PACKAGE | UID> <OP>
Stops a given operation for a particular application.
Spoiler: SET
set [--user <USER_ID>] <[--uid] PACKAGE | UID> <OP> <MODE>
Set the mode for a particular application and operation.
Spoiler: GET
get [--user <USER_ID>] [--attribution <ATTRIBUTION_TAG>] <PACKAGE | UID> [<OP>]
Return the mode for a particular application and optional operation.
Spoiler: QUERY-OP
query-op [--user <USER_ID>] <OP> [<MODE>]
Print all packages that currently have the given op in the given mode.
Spoiler: RESET
reset [--user <USER_ID>] [<PACKAGE>]
Reset the given application or all applications to default modes.
Spoiler: WRITE-SETTINGS
write-settings
Immediately write pending changes to storage.
Spoiler: READ-SETTINGS
read-settings
Read the last written settings, replacing current state in RAM.
Spoiler: OPTIONS
Spoiler: PACKAGE
<PACKAGE> an Android package name or its UID if prefixed by --uid
Spoiler: OP
<OP> an AppOps operation.
Spoiler: MODE
<MODE> one of allow, ignore, deny, or default
Spoiler: USER_ID
<USER_ID> the user id under which the package is installed. If --user is not specified, the current user is assumed.
Spoiler: APPOPS KNOWLEGE
AppOps
www.appops.org
Spoiler: APPWIDGET
appwidget
Spoiler: APPWIDGET COMMANDS
usage:
adb shell appwidget [subcommand] [options]
Spoiler: GRANTBIND
usage:
adb shell appwidget grantbind --package <PACKAGE> [--user <USER_ID> | current]
Spoiler: PACKAGE
<PACKAGE> an Android package name.
Spoiler: USER_ID
<USER_ID> The user id under which the package is installed.
Spoiler: EXAMPLE
adb shell grantbind --package foo.bar.baz --user current
Grant the "foo.bar.baz" package to bind app widgets for the current user.
Spoiler: REVOKEBIND
usage:
adb shell appwidget revokebind --package <PACKAGE> [--user <USER_ID> | current]
Spoiler: PACKAGE
<PACKAGE> an Android package name.
Spoiler: USER_ID
<USER_ID> The user id under which the package is installed.
Spoiler: EXAMPLE
adb shell revokebind --package foo.bar.baz --user current
Revoke the permission to bind app widgets from the "foo.bar.baz" package.
Spoiler: APPWIDGET KNOWLEDGE
Create a simple widget | Android Developers
App Widgets are miniature application views that can be embedded in other applications (such as the home screen) and receive periodic updates. These views are referred to as Widgets in the user interface, and you can publish one with a widget provider…
developer.android.com
AppWidgetProvider Class (Android.Appwidget)
A convenience class to aid in implementing an AppWidget provider.
docs.microsoft.com
Spoiler: ATRACE
atrace
Spoiler: ATRACE COMMANDS
usage: atrace [options] [categories...]
Spoiler: OPTIONS INCLUDE
Spoiler: -A
-a appname
enable app-level tracing for a comma separated list of cmdlines; * is a wildcard matching any process
Spoiler: -B
-b N
use a trace buffer size of N KB
Spoiler: -C
-c
trace into a circular buffer
Spoiler: -F
-f filename
use the categories written in a file as space-separated values in a line
Spoiler: -K
-k fname,...
trace the listed kernel functions
Spoiler: -N
-n
ignore signals
Spoiler: -S
-s N
sleep for N seconds before tracing [default 0]
Spoiler: -T
-t N
trace for N seconds [default 5]
Spoiler: -Z
-z
compress the trace dump
Spoiler: --ASYNC_START
--async_start
start circular trace and return immediately
Spoiler: --ASYNC_DUMP
--async_dump
dump the current contents of circular trace buffer
Spoiler: --ASYNC_STOP
--async_stop
stop tracing and dump the current contents of circular trace buffer
Spoiler: --STREAM
--stream
stream trace to stdout as it enters the trace buffer
Note: this can take significant CPU time, and is best used for measuring things that are not affected by CPU performance, like pagecache usage.
Spoiler: --LIST
--list_categories
list the available tracing categories
Spoiler: -O
-o filename
write the trace to the specified file instead of stdout.
Spoiler: PRINTS THIS
capturing trace... done
TRACE:
# tracer: nop
#
# entries-in-buffer/entries-written: 2/2 #P:8
# enabled events:
# kernel time now: 34793.070936
# UTC time: 2022-03-17 09:33:02.523448
# android time: 2022-03-17 04:33:02.523448
#
# _-----=> irqs-off
# / _----=> need-resched
# | / _---=> hardirq/softirq
# || / _--=> preempt-depth
# ||| / delay
# TASK-PID TGID CPU# |||| TIMESTAMP FUNCTION
# | | | | |||| | |
atrace-24473 (24473) [000] .... 78794.431008: tracing_mark_write: trace_event_clock_sync: parent_ts=34788.132812
atrace-24473 (24473) [000] .... 78794.431023: tracing_mark_write: trace_event_clock_sync: realtime_ts=1647509577521
Spoiler: ATRACE KNOWLEGE
https://developer.android.com/reference/android/os/Trace
ATrace: Android system and app trace events - Perfetto Tracing Docs
perfetto.dev
Spoiler: AUDIOSERVER
audioserver
inaccessible or not found
Spoiler: AUDITCTL
auditctl
inaccessible or not found
Spoiler: AWK
awk
Spoiler: AWK COMMANDS
usage:
awk [-F fs] [-v var=value] [-f progfile | 'prog'] [file ...]
Spoiler: AWK KNOWLEDGE
AWK - Wikipedia
en.wikipedia.org
Spoiler: BADBLOCKS
badblocks
Spoiler: BADBLOCKS COMMANDS
Usage:
badblocks [-b block_size] [-i input_file] [-o output_file] [-svwnfBX]
[-c blocks_at_once] [-d delay_factor_between_reads] [-e max_bad_blocks]
[-p num_passes] [-t test_pattern [-t test_pattern [...]]]
device [last_block [first_block]]
Spoiler: BADBLOCKS KNOWLEDGE
badblocks - Wikipedia
en.wikipedia.org
Spoiler: BASE64
base64
Spoiler: BASE64 COMMANDS
usage: base64 [-di] [-w COLUMNS] [FILE...]
Encode or decode in base64.
-d Decode
-i Ignore non-alphabetic characters
-w Wrap output at COLUMNS (default 76 or 0 for no wrap)
Spoiler: BASE64 KNOWLEDGE
https://developer.android.com/reference/android/util/Base64
Spoiler: BASENAME
basename
Spoiler: BASENAME COMMANDS
usage:
basename [-a] [-s SUFFIX] NAME... | NAME [SUFFIX]
Return non-directory portion of a pathname, removing suffix.
Spoiler: OPTIONS
-a All arguments are names
-s SUFFIX Remove suffix (implies -a)
Spoiler: BASENAME KNOWLEDGE
basename - Wikipedia
en.wikipedia.org
Spoiler: THE LINGUISTICS BEHIND SUFFIX
Suffix - Wikipedia
en.wikipedia.org
Morpheme - Wikipedia
en.wikipedia.org
Affix - Wikipedia
en.wikipedia.org
Spoiler: BATTERYWARNING
batterywarning
inaccessible or not found
Spoiler: BC
bc
Spoiler: SHELL PICTURES CONTINUED
Spoiler: BC COMMANDS
usage: bc [options] [file...]
bc is a command-line, arbitrary-precision calculator with a Turing-complete
language. For details, use `man bc`.
This bc is compatible with both the GNU bc and the POSIX bc spec. See the GNU bc
manual (https://www.gnu.org/software/bc/manual/bc.html) and bc spec
(http://pubs.opengroup.org/onlinepubs/9699919799/utilities/bc.html)
for details.
This bc has three differences to the GNU bc:
1) Arrays can be passed to the builtin "length" function to get the number of
elements currently in the array. The following example prints "1":
a[0] = 0
length(a[])
2) The precedence of the boolean "not" operator (!) is equal to that of the
unary minus (-), or negation, operator. This still allows POSIX-compliant
scripts to work while somewhat preserving expected behavior (versus C) and
making parsing easier.
3) This bc has many more extensions than the GNU bc does. For details, see the
man page.
Options:
-e expr --expression=expr
Run "expr" and quit. If multiple expressions or files (see below) are
given, they are all run before executing from stdin.
-f file --file=file
Run the bc code in "file" and exit. See above as well.
-g --global-stacks
Turn scale, ibase, and obase into stacks. This makes the value of each be
be restored on returning from functions. See the man page for more
details.
-h --help
Print this usage message and exit.
-i --interactive
Force interactive mode.
-l --mathlib
Use predefined math routines:
s(expr) = sine of expr in radians
c(expr) = cosine of expr in radians
a(expr) = arctangent of expr, returning radians
l(expr) = natural log of expr
e(expr) = raises e to the power of expr
j(n, x) = Bessel function of integer order n of x
-P --no-prompt
Disable the prompt in interactive mode.
-q --quiet
Don't print version and copyright.
-s --standard
Error if any non-POSIX extensions are used.
-w --warn
Warn if any non-POSIX extensions are used.
-v --version
Print version information and copyright and exit.
Spoiler: BC KNOWLEDGE
GITHUB REPO
GitHub - gavinhoward/bc: An implementation of the POSIX bc calculator with GNU extensions and dc, moved away from GitHub. Finished, but well-maintained.
An implementation of the POSIX bc calculator with GNU extensions and dc, moved away from GitHub. Finished, but well-maintained. - GitHub - gavinhoward/bc: An implementation of the POSIX bc calculat...
github.com
WHAT IS "TURING COMPLETENESS"
Turing completeness - Wikipedia
en.wikipedia.org
Spoiler: BCC
bcc
Spoiler: BCC COMMANDS
USAGE:
bcc [subcommand] [options] <input bitcode files>
Spoiler: OPTIONS
Spoiler: -C
-C
Alias for -mtriple
Spoiler: -O
-O=<char>
Optimization level. [-O0, -O1, -O2, or -O3]
(default: -O3)
Spoiler: -AARCH64-NEON-SYNTAX
-aarch64-neon-syntax
Choose style of NEON code to emit from AArch64 backend
Spoiler: OPTIONS
Spoiler: GENERIC
=generic
Emit generic NEON assembly
Spoiler: APPLE
=apple
Emit Apple-style NEON assembly
Spoiler: -BCLIB
-bclib=<bclib>
Specify the bclib filename
Spoiler: -BCLIB_RELAXED
-bclib_relaxed=<bclib_relaxed>
Specify the bclib filename optimized for relaxed precision floating point maths
Spoiler: -BOUNDS-CHECKING-SINGLE-TRAP
-bounds-checking-single-trap
Use one trap block per function
Spoiler: -BUILD-CHECKSUM
-build-checksum=<checksum>
Embed a checksum of this compiler invocation for cache invalidation at a later time
Spoiler: -COLOR
-color
use colored syntax highlighting (default=autodetect)
Spoiler: -EMBEDRSINFO
-embedRSInfo
Embed RS Info into the object file instead of generating a separate .o.info file
Spoiler: -EMIT-LLVM
-emit-llvm
Emit an LLVM-IR version of the generated program
Spoiler: -ENABLE-IMPLICIT-NULL-CHECKS
-enable-implicit-null-checks
Fold null checks into faulting memory operations
Spoiler: -ENABLE-LOAD-PRE
-enable-load-pre
description left blank by author
Spoiler: -ENABLE-NAME-COMPRESSION
-enable-name-compression
Enable name string compression
Spoiler: -ENABLE--OBJC-ARC-OPTS
-enable-objc-arc-opts
enable/disable all ARC Optimizations
Spoiler: -ENABLE-SCOPED-NOALIAS
-enable-scoped-noalias
description left blank by author
Spoiler: -ENABLE-TBAA
-enable-tbaa
description left blank by author
Spoiler: -EXHAUSTIVE-REGISTER-SEARCH
-exhaustive-register-search
Exhaustive Search for registers bypassing the depth and interference cutoffs of last chance recoloring
Spoiler: -EXPENSIVE-COMBINES
-expensive-combines
Enable expensive instruction combines
Spoiler: -FPIC
-fPIC
Generate fully relocatable, position independent code
Spoiler: -FILTER-PRINT-FUNCS
-filter-print-funcs=<function names>
Only print IR for functions whose name match this for all print-[before|after][-all] options
Spoiler: -IMP-NULL-CHECK-PAGE-SIZE
-imp-null-check-page-size=<int>
The page size of the target in bytes
Spoiler: -INTERNALIZE-PUBLIC-API-FILE
-internalize-public-api-file=<filename>
A file containing list of symbol names to preserve
Spoiler: -INTERNALIZE-PUBLIC-API-LIST
-internalize-public-api-list=<list>
A list of symbol names to preserve
Spoiler: -INVOKE
-invoke=<string>
Invocable functions
Spoiler: -JOIN-LIVEINTERVALS
-join-liveintervals
Coalesce copies (default=true)
Spoiler: -LIMIT-FLOAT-PRECISION
-limit-float-precision=<uint>
Generate low-precision inline sequences for some float libcalls
Spoiler: -LOAD
-load=<pluginfilename>
Load the specified plugin
Spoiler: -MERGE
-merge=<string>
Lists of kernels to merge (as source-and-slot pairs) and names for the final merged kernels
Spoiler: -MTRIPLE
-mtriple=<triple>
Specify the target triple (default: aarch64-none-linux-gnueabi)
Spoiler: -NO-DISCRIIMINATORS
-no-discriminators
Disable generation of discriminator information.
Spoiler: -O
-o=<filename>
Specify the output filename
Spoiler: -OUTPUT_PATH
-output_path=<output path>
Specify the output path
Spoiler: -PLUGIN
-plugin=<pluginfilename>
Load the specified vendor plugin. Use this instead of the -load option
Spoiler: -PRINT-AFTER-ALL
-print-after-all
Print IR after each pass
Spoiler: -PRINT-BEFORE-ALL
-print-before-all
Print IR before each pass
Spoiler: -PRINT-MACHINEINSTRS
-print-machineinstrs=<pass-name>
Print machine instrs
Spoiler: -REGALLOC
-regalloc
[
Spoiler: OPTIONS
Register allocator to use
Spoiler: =DEFAULT
=default
pick register allocator based on -O option
Spoiler: =PBQP
=pbqp
PBQP register allocator
Spoiler: =GREEDY
=greedy
greedy register allocator
Spoiler: =FAST
=fast
fast register allocator
Spoiler: =BASIC
=basic
basic register allocator
-rewrite-map-file=<filename> - Symbol Rewrite Map
-rng-seed=<seed> - Seed for the random number generator
-rs-debug-ctx - Enable build to work with a RenderScript debug context
-rs-global-info - Embed information about global variables in the code
-rs-global-info-skip-constant - Skip embedding information about constant global variables in the code
-sample-profile-check-record-coverage=<N> - Emit a warning if less than N% of records in the input profile are matched to the IR.
-sample-profile-check-sample-coverage=<N> - Emit a warning if less than N% of samples in the input profile are matched to the IR.
-sample-profile-inline-hot-threshold=<N> - Inlined functions that account for more than N% of all samples collected in the parent function, will be inlined again.
-sample-profile-max-propagate-iterations=<uint> - Maximum number of iterations to go through when propagating sample block/edge weights through the CFG.
-stackmap-version=<int> - Specify the stackmap encoding version (default = 1)
-static-func
/-full-module-prefix - Use full module build paths in the profile counter names for static functions.
-stats - Enable statistics output from program (available with Asserts)
-stats-json - Display statistics as json data
-summary-file=<string> - The summary file to use for function importing.
-threads=<int> -
-time-passes - Time each pass, printing elapsed time for each on exit
-verify-debug-info -
-verify-dom-info - Verify dominator info (time consuming)
-verify-loop-info - Verify loop info (time consuming)
-verify-machine-dom-info - Verify machine dominator info (time consuming)
-verify-regalloc - Verify during register allocation
-verify-region-info - Verify region info (time consuming)
-verify-scev - Verify ScalarEvolution's backedge taken counts (slow)
-verify-scev-maps - Verify no dangling value in ScalarEvolution's ExprValueMap (slow)
-vp-counters-per-site=<number> - The average number of profile counters allocated per value profiling site.
-vp-static-alloc - Do static counter allocation for value profiler
Generic Options:
-help - Display available options (-help-hidden for more)
-help-list - Display list of available options (-help-list-hidden for more)
-version - Display the version of this program
Spoiler: BLANK_SCREEN
blank_screen
inaccessible or not found
Spoiler: BLKID
blkid
inaccessible or not found
Spoiler: BLOCKDEV
blockdev
Spoiler: BLOCKDEV COMMANDS
usage: blockdev --OPTION... BLOCKDEV...
Call ioctl(s) on each listed block device
--setro Set read only
--setrw Set read write
--getro Get read only
--getss Get sector size
--getbsz Get block size
--setbsz BYTES Set block size
--getsz Get device size in 512-byte sectors
--getsize Get device size in sectors (deprecated)
--getsize64 Get device size in bytes
--getra Get readahead in 512-byte sectors
--setra SECTORS Set readahead
--flushbufs Flush buffers
--rereadpt Reread partition table
Spoiler: BLOCKDEV KNOWLEDGE
blockdev(8) - Linux manual page
What is "IOCTL"
ioctl(2) - Linux manual page
Spoiler: BMGR
bmgr
Spoiler: SHELL PICTURES CONTINUED
Spoiler: BACKUP MANAGER COMMANDS
usage: bmgr [--user <userId>] [backup|restore|list|transport|run]
bmgr backup PACKAGE
bmgr enable BOOL
bmgr enabled
bmgr list transports [-c]
bmgr list sets
bmgr transport WHICH|-c WHICH_COMPONENT
bmgr restore TOKEN
bmgr restore TOKEN PACKAGE...
bmgr run
bmgr wipe TRANSPORT PACKAGE
bmgr fullbackup PACKAGE...
bmgr backupnow [--monitor|--monitor-verbose] --all|PACKAGE...
bmgr cancel backups
bmgr init TRANSPORT...
bmgr activate BOOL
bmgr activated
bmgr autorestore BOOL
The '--user' option specifies the user on which the operation is run.
It must be the first argument before the operation.
The default value is 0 which is the system user.
The 'backup' command schedules a backup pass for the named package.
Note that the backup pass will effectively be a no-op if the package
does not actually have changed data to store.
The 'enable' command enables or disables the entire backup mechanism.
If the argument is 'true' it will be enabled, otherwise it will be
disabled. When disabled, neither backup or restore operations will
be performed.
The 'enabled' command reports the current enabled/disabled state of
the backup mechanism.
The 'list transports' command reports the names of the backup transports
BackupManager is currently bound to. These names can be passed as arguments
to the 'transport' and 'wipe' commands. The currently active transport
is indicated with a '*' character. If -c flag is used, all available
transport components on the device are listed. These can be used with
the component variant of 'transport' command.
The 'list sets' command reports the token and name of each restore set
available to the device via the currently active transport.
The 'transport' command designates the named transport as the currently
active one. This setting is persistent across reboots. If -c flag is
specified, the following string is treated as a component name.
The 'restore' command when given just a restore token initiates a full-system
restore operation from the currently active transport. It will deliver
the restore set designated by the TOKEN argument to each application
that had contributed data to that restore set.
The 'restore' command when given a token and one or more package names
initiates a restore operation of just those given packages from the restore
set designated by the TOKEN argument. It is effectively the same as the
'restore' operation supplying only a token, but applies a filter to the
set of applications to be restored.
The 'run' command causes any scheduled backup operation to be initiated
immediately, without the usual waiting period for batching together
data changes.
The 'wipe' command causes all backed-up data for the given package to be
erased from the given transport's storage. The next backup operation
that the given application performs will rewrite its entire data set.
Transport names to use here are those reported by 'list transports'.
The 'fullbackup' command induces a full-data stream backup for one or more
packages. The data is sent via the currently active transport.
The 'backupnow' command runs an immediate backup for one or more packages.
--all flag runs backup for all eligible packages.
--monitor flag prints monitor events.
--monitor-verbose flag prints monitor events with all keys.
For each package it will run key/value or full data backup
depending on the package's manifest declarations.
The data is sent via the currently active transport.
The 'cancel backups' command cancels all running backups.
The 'init' command initializes the given transports, wiping all data
from their backing data stores.
The 'activate' command activates or deactivates the backup service.
If the argument is 'true' it will be activated, otherwise it will be
deactivated. When deactivated, the service will not be running and no
operations can be performed until activation.
The 'activated' command reports the current activated/deactivated
state of the backup mechanism.
The 'autorestore' command enables or disables automatic restore when
a new package is installed.
Spoiler: BOOT_LOGO_UPDATER
boot_logo_updater
inaccessible or not found
Spoiler: BOOTANIMATION
bootanimation
inaccessible or not found
Spoiler: BOOTSTAT
bootstat
inaccessible or not found
Spoiler: BOOTSTRAP
bootstrap is a folder, opening it produces
Spoiler: THIS
linker
linker64
linker_asan
linker_asan64
Which when ran, Produces
Spoiler: THIS
Spoiler: BORINGSSL_SELF_TEST32
boringssl_self_test32
inaccessible or not found
Spoiler: BORINGSSL_SELF_TEST64
boringssl_self_test64
inaccessible or not found
Spoiler: BPFLOADER
bpfloader
inaccessible or not found
Spoiler: BU
bu
Spoiler: BU COMMANDS
backup [-user USER_ID] [-f FILE] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared]
[-all] [-system|-nosystem] [-keyvalue|-nokeyvalue] [PACKAGE...]
write an archive of the device's data to FILE [default=backup.adb]
package list optional if -all/-shared are supplied
-user: user ID for which to perform the operation (default - system user)
-apk/-noapk: do/don't back up .apk files (default -noapk)
-obb/-noobb: do/don't back up .obb files (default -noobb)
-shared|-noshared: do/don't back up shared storage (default -noshared)
-all: back up all installed applications
-system|-nosystem: include system apps in -all (default -system)
-keyvalue|-nokeyvalue: include apps that perform key/value backups.
(default -nokeyvalue)
restore [-user USER_ID] FILE restore device contents from FILE
-user: user ID for which to perform the operation (default - system user)
Spoiler: BUGREPORT
bugreport
Floods you with a TREMENDOUS amount of information.
Spoiler: VISUAL EXAMPLE
The video shown was not sped up, only trimmed.
Spoiler: BUGREPORTZ
bugreportz
Spoiler: BUGREPORTZ COMMANDS
usage: bugreportz [-h | -v]
-h: to display this help message
-p: display progress
-v: to display the version
or no arguments to generate a zipped bugreport
Spoiler: BUNZIP2, BZCAT, BZIP2
bunzip2
bzcat
bzip2
Spoiler: BUNZIP COMMANDS
bunzip2: I won't read compressed data from a terminal.
bunzip2: For help, type: `bunzip2 --help'.
1|RNN_sprout:/bin $ bunzip2 --help
bzip2, a block-sorting file compressor. Version 1.0.6, 6-Sept-2010.
usage: bunzip2 [flags and input files in any order]
-h --help print this message
-d --decompress force decompression
-z --compress force compression
-k --keep keep (don't delete) input files
-f --force overwrite existing output files
-t --test test compressed file integrity
-c --stdout output to standard out
-q --quiet suppress noncritical error messages
-v --verbose be verbose (a 2nd -v gives more)
-L --license display software version & license
-V --version display software version & license
-s --small use less memory (at most 2500k)
-1 .. -9 set block size to 100k .. 900k
--fast alias for -1
--best alias for -9
If invoked as `bzip2', default action is to compress.
as `bunzip2', default action is to decompress.
as `bzcat', default action is to decompress to stdout.
If no file names are given, bzip2 compresses or decompresses
from standard input to standard output. You can combine
short flags, so `-v -4' means the same as -v4 or -4v, &c.
Spoiler: ALL BIN SYSTEMS CONTINUED PART 2 (C-D)
Spoiler: CAL
cal
Displays a literal calendar~!
Spoiler: CAL COMMANDS
usage: cal [[MONTH] YEAR]
Print a calendar.
With one argument, prints all months of the specified year.
With two arguments, prints calendar for month and year.
-h Don't highlight today
Spoiler: SHOW TEXT
March 2022
Su Mo Tu We Th Fr Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Spoiler: CAMERAPOSTALGO
camerapostalgo
inaccessible or not found
Spoiler: CAMERASERVER
cameraserver
inaccessible or not found
Spoiler: CAT
cat
Spoiler: CAT COMMANDS
usage: cat [-etuv] [FILE...]
Copy (concatenate) files to stdout. If no files listed, copy from stdin.
Filename "-" is a synonym for stdin.
-e Mark each newline with $
-t Show tabs as ^I
-u Copy one byte at a time (slow)
-v Display nonprinting characters as escape sequences with M-x for
high ascii characters (>127), and ^x for other nonprinting chars
Spoiler: VISUAL EXAMPLE
Spoiler: CHARGER
charger
inaccessible or not found
Spoiler: CHATTR
chattr
Spoiler: CHATTR COMMANDS
usage: chattr [-R] [-+=AacDdijsStTu] [-p PROJID] [-v VERSION] [FILE...]
Change file attributes on a Linux file system.
-R Recurse
-p Set the file's project number
-v Set the file's version/generation number
Operators:
'-' Remove attributes
'+' Add attributes
'=' Set attributes
Attributes:
A No atime a Append only
C No COW c Compression
D Synchronous dir updates d No dump
E Encrypted e Extents
F Case-insensitive (casefold)
I Indexed directory i Immutable
j Journal data
N Inline data in inode
P Project hierarchy
S Synchronous file updates s Secure delete
T Top of dir hierarchy t No tail-merging
u Allow undelete
V Verity
Spoiler: CHATTR KNOWLEDGE
chattr command in Linux with examples - GeeksforGeeks
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
www.geeksforgeeks.org
Spoiler: CHCON
chcon
Spoiler: CHCON COMMANDS
usage: chcon [-hRv] CONTEXT FILE...
Change the SELinux security context of listed file.
-h Change symlinks instead of what they point to
-R Recurse into subdirectories
-v Verbose
Spoiler: CHCON LIST
ls -lZ
DISPLAYS THIS:
dr-xr-xr-x 93 root root ubject_r:cgroup:s0 0 2022-07-28 00:54 acct
drwxr-xr-x 46 root root ubject_r:apex_mnt_dir:s0 920 2022-07-28 00:54 apex
lrw-r--r-- 1 root root ubject_r:rootfs:s0 11 2008-12-31 18:00 bin -> /system/bin
lrw-r--r-- 1 root root ubject_r:rootfs:s0 50 2008-12-31 18:00 bugreports -> /data/user_de/0/com.android.shell/files/bugreports
l????????? ? ? ? ? ? ? cache -> ?
drwxr-xr-x 5 root root ubject_r:configfs:s0 0 2022-07-28 00:54 config
lrw-r--r-- 1 root root ubject_r:rootfs:s0 17 2008-12-31 18:00 d -> /sys/kernel/debug
drwxrwx--x 48 system system ubject_r:system_data_root_file:s0 4096 2022-07-28 00:54 data
d????????? ? ? ? ? ? ? data_mirror
drwxr-xr-x 2 root root ubject_r:tmpfs:s0 4096 2008-12-31 18:00 debug_ramdisk
lrw------- 1 root root ubject_r:rootfs:s0 23 2008-12-31 18:00 default.prop -> system/etc/prop.default
drwxr-xr-x 25 root root ubject_r:device:s0 3780 2022-07-28 00:54 dev
lrw-r--r-- 1 root root ubject_r:rootfs:s0 11 2008-12-31 18:00 etc -> /system/etc
l????????? ? ? ? ? ? ? init -> ?
-????????? ? ? ? ? ? ? init.environ.rc
d????????? ? ? ? ? ? ? linkerconfig
drwx------ 2 root root ubject_r:rootfs:s0 16384 2008-12-31 18:00 lost+found
d????????? ? ? ? ? ? ? metadata
drwxr-xr-x 18 root system ubject_r:tmpfs:s0 380 2022-07-28 00:54 mnt
drwxr-xr-x 8 root root ubject_r:vendor_file:s0 4096 2008-12-31 18:00 odm
drwxr-xr-x 2 root root ubject_remfs:s0 4096 2008-12-31 18:00 oem
d????????? ? ? ? ? ? ? postinstall
dr-xr-xr-x 615 root root ubject_rroc:s0 0 1969-12-31 18:00 proc
drwxr-xr-x 10 root root ubject_r:system_file:s0 4096 2008-12-31 18:00 product
lrw-r--r-- 1 root root ubject_r:rootfs:s0 21 2008-12-31 18:00 sdcard -> /storage/self/primary
drwx--x--- 4 shell everybody ubject_r:mnt_user_file:s0 80 2022-07-28 00:54 storage
dr-xr-xr-x 14 root root ubject_r:sysfs:s0 0 2022-07-28 00:54 sys
drwxr-xr-x 22 root root ubject_r:system_file:s0 4096 2008-12-31 18:00 system
lrw-r--r-- 1 root root ubject_r:system_file:s0 18 2008-12-31 18:00 system_ext -> /system/system_ext
drwxr-xr-x 13 root shell ubject_r:vendor_file:s0 4096 2008-12-31 18:00 vendor
d????????? ? ? ? ? ? ? wt_custom
Spoiler: CHCON KNOWLEDGE
15 SELinux chcon Command Examples to Change Security Context
In SELinux, one of the frequent task that you may do is to change the security context of an object. For this, you’ll use chcon command. chcon stands for Change Context. This command is used to change the SELinux security context of a file. This tutorial explains the following chcon command...
www.thegeekstuff.com
Spoiler: CHGRP
chgrp
Spoiler: CHGRP COMMANDS
usage: chgrp/chown [-RHLP] [-fvh] GROUP FILE...
Change group of one or more files.
-f Suppress most error messages
-h Change symlinks instead of what they point to
-R Recurse into subdirectories (implies -h)
-H With -R change target of symlink, follow command line symlinks
-L With -R change target of symlink, follow all symlinks
-P With -R change symlink, do not follow symlinks (default)
-v Verbose
Spoiler: CHGRP KNOWLEDGE
chgrp - Unix, Linux Command
chgrp Unix Linux Command - chgrp - To change group ownership.
www.tutorialspoint.com
Spoiler: CHMOD
chmod
Spoiler: CHMOD COMMANDS
chmod: Need 2 arguments (see "chmod --help")
1|RNN_sprout:/bin $ chmod --help
usage: chmod [-R] MODE FILE...
Change mode of listed file (recursively with -R).
MODE can be (comma-separated) stanzas: [ugoa][+-=][rwxstXugo]
Stanzas are applied in order: For each category (u = user,
g = group, o = other, a = all three, if none specified default is a),
set (+), clear (-), or copy (=), r = read, w = write, x = execute.
s = u+s = suid, g+s = sgid, o+s = sticky. (+t is an alias for o+s).
suid/sgid: execute as the user/group who owns the file.
sticky: can't delete files you don't own out of this directory
X = x for directories or if any category already has x set.
Or MODE can be an octal value up to 7777 ug uuugggooo top +
bit 1 = o+x, bit 1<<8 = u+w, 1<<11 = g+1 sstrwxrwxrwx bottom
Examples:
chmod u+w file - allow owner of "file" to write to it.
chmod 744 file - user can read/write/execute, everyone else read only
Spoiler: CHMOD KNOWLEDGE
chmod command in Linux with examples
In this tutorial, we show how to use the chmod command in Linux through command line examples and frequently used options.
linuxconfig.org
Spoiler: CHOWN
chown
Spoiler: CHOWN COMMANDS
usage: chgrp/chown [-RHLP] [-fvh] GROUP FILE...
Change group of one or more files.
-f Suppress most error messages
-h Change symlinks instead of what they point to
-R Recurse into subdirectories (implies -h)
-H With -R change target of symlink, follow command line symlinks
-L With -R change target of symlink, follow all symlinks
-P With -R change symlink, do not follow symlinks (default)
-v Verbose
Spoiler: CHOWN KNOWLEDGE
How to Use the chown Command on Linux
Files and directories in Linux systems all belong to someone. You can change their ownership with the chown command. We show you how.
www.howtogeek.com
Spoiler: CHROOT
chroot
Spoiler: CHROOT COMMANDS
usage: chroot NEWROOT [COMMAND [ARG...]]
Run command within a new root directory. If no command, run /bin/sh.
Spoiler: CHROOT KNOWLEDGE
chroot - ArchWiki
wiki.archlinux.org
Spoiler: CHRT
chrt
Spoiler: CHRT COMMANDS
usage: chrt [-Rmofrbi] {-p PID [PRIORITY] | [PRIORITY COMMAND...]}
Get/set a process' real-time scheduling policy and priority.
-p Set/query given pid (instead of running COMMAND)
-R Set SCHED_RESET_ON_FORK
-m Show min/max priorities available
Set policy (default -r):
-o SCHED_OTHER -f SCHED_FIFO -r SCHED_RR
-b SCHED_BATCH -i SCHED_IDLE
Spoiler: CHRT KNOWLEDGE
chrt command in Linux with examples - GeeksforGeeks
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
www.geeksforgeeks.org
Spoiler: CKSUM
cksum
Spoiler: CKSUM COMMANDS
usage: cksum [-IPLN] [FILE...]
For each file, output crc32 checksum value, length and name of file.
If no files listed, copy from stdin. Filename "-" is a synonym for stdin.
-H Hexadecimal checksum (defaults to decimal)
-L Little endian (defaults to big endian)
-P Pre-inversion
-I Skip post-inversion
-N Do not include length in CRC calculation (or output)
Spoiler: CLATD
clatd
inaccessible or not found
Spoiler: CLEAR
clear
clears the shell's screen. cls does not work in shell so we use this instead
Spoiler: CMD
cmd
Spoiler: CMD-L
Currently running services:
DockObserver
HMDEnterpriseService
SurfaceFlinger
accessibility
account
activity
activity_task
adb
alarm
android.hardware.light.ILights/default
android.hardware.power.IPower/default
android.hardware.vibrator.IVibrator/default
android.os.UpdateEngineService
android.security.identity
android.security.keystore
anrmanager
app_binding
app_integrity
app_prediction
appops
appwidget
audio
auth
autoboot
autofill
backup
battery
batteryproperties
batterystats
binder_calls_stats
biometric
blob_store
bluetooth_manager
bugreport
cacheinfo
carrier_config
clipboard
color_display
com.wos.android.face.IFaceDaemon
companiondevice
connectivity
connmetrics
consumer_ir
content
country_detector
cpuinfo
crossprofileapps
dataloader_manager
dbinfo
device_config
device_identifiers
device_policy
deviceidle
devicestoragemonitor
diskstats
display
dreams
drm.drmManager
dropbox
dynamic_system
emergency_affordance
ethernet
external_vibrator_service
file_integrity
fingerprint
gfxinfo
gpu
graphicsstats
hardware_properties
imms
imtksms
incidentcompanion
incremental
input
input_method
inputflinger
ions
iphonesubinfo
iphonesubinfoEx
ipsec
isms
isub
isubstub
jobscheduler
launcherapps
lights
location
lock_settings
looper_stats
manager
media.VTS
media.audio_flinger
media.audio_policy
media.camera
media.camera.proxy
media.extractor
media.metrics
media.player
media.resource_manager
media_projection
media_resource_monitor
media_router
media_session
meminfo
midi
mount
mtkIms
mtk_telecom
mtkconnmetrics
mtksimphonebook
mwis
netd_listener
netpolicy
netstats
network_management
network_score
network_stack
network_time_update_service
network_watchlist
nfc
nfc.st_ext
nfc_settings
notification
oem_lock
otadexopt
overlay
package
package_native
permission
permissionmgr
permrecords
persistent_data_block
phone
phoneEx
pinner
platform_compat
platform_compat_native
power
power_hal_mgr_service
print
processinfo
procstats
recovery
restrictions
role
rollback
runtime
scheduling_policy
search
search_engine_service
sec_key_att_app_id_provider
secure_element
sensor_privacy
sensorservice
serial
servicediscovery
settings
shortcut
simphonebook
slice
soundtrigger
soundtrigger_middleware
stats
statscompanion
statsmanager
statusbar
storaged
storaged_pri
storagestats
system_config
system_update
telecom
telephony.mtkregistry
telephony.registry
telephony_ims
testharness
tethering
textclassification
textservices
thermalservice
time_detector
time_zone_detector
trust
uimode
updatelock
uri_grants
usagestats
usb
user
vibrator
voiceinteraction
vow_bridge
wallpaper
webviewupdate
wifi
wifinl80211
wifip2p
wifiscanner
window
wos.face
Spoiler: COMM
comm
Spoiler: COMM COMMANDS
usage: comm [-123] FILE1 FILE2
Read FILE1 and FILE2, which should be ordered, and produce three text
columns as output: lines only in FILE1; lines only in FILE2; and lines
in both files. Filename "-" is a synonym for stdin.
-1 Suppress the output column of lines unique to FILE1
-2 Suppress the output column of lines unique to FILE2
-3 Suppress the output column of lines duplicated in FILE1 and FILE2
Spoiler: CONTENT
content
Spoiler: CONTENT COMMANDS
usage: adb shell content [subcommand] [options]
usage: adb shell content insert --uri <URI> [--user <USER_ID>] --bind <BINDING> [--bind <BINDING>...] [--extra <BINDING>...]
<URI> a content provider URI.
<BINDING> binds a typed value to a column and is formatted:
<COLUMN_NAME>:<TYPE>:<COLUMN_VALUE> where:
<TYPE> specifies data type such as:
b - boolean, s - string, i - integer, l - long, f - float, d - double, n - null
Note: Omit the value for passing an empty string, e.g column:s:
Example:
# Add "new_setting" secure setting with value "new_value".
adb shell content insert --uri content://settings/secure --bind name:s:new_setting --bind value:s:new_value
usage: adb shell content update --uri <URI> [--user <USER_ID>] [--where <WHERE>] [--extra <BINDING>...]
<WHERE> is a SQL style where clause in quotes (You have to escape single quotes - see example below).
Example:
# Change "new_setting" secure setting to "newer_value".
adb shell content update --uri content://settings/secure --bind value:s:newer_value --where "name='new_setting'"
usage: adb shell content delete --uri <URI> [--user <USER_ID>] --bind <BINDING> [--bind <BINDING>...] [--where <WHERE>] [--extra <BINDING>...]
Example:
# Remove "new_setting" secure setting.
adb shell content delete --uri content://settings/secure --where "name='new_setting'"
usage: adb shell content query --uri <URI> [--user <USER_ID>] [--projection <PROJECTION>] [--where <WHERE>] [--sort <SORT_ORDER>] [--extra <BINDING>...]
<PROJECTION> is a list of colon separated column names and is formatted:
<COLUMN_NAME>[:<COLUMN_NAME>...]
<SORT_ORDER> is the order in which rows in the result should be sorted.
Example:
# Select "name" and "value" columns from secure settings where "name" is equal to "new_setting" and sort the result by name in ascending order.
adb shell content query --uri content://settings/secure --projection name:value --where "name='new_setting'" --sort "name ASC"
usage: adb shell content call --uri <URI> --method <METHOD> [--arg <ARG>]
[--extra <BINDING> ...]
<METHOD> is the name of a provider-defined method
<ARG> is an optional string argument
<BINDING> is like --bind above, typed data of the form <KEY>:{b,s,i,l,f,d}:<VAL>
usage: adb shell content read --uri <URI> [--user <USER_ID>]
Example:
adb shell 'content read --uri content://settings/system/ringtone_cache' > host.ogg
usage: adb shell content write --uri <URI> [--user <USER_ID>]
Example:
adb shell 'content write --uri content://settings/system/ringtone_cache' < host.ogg
usage: adb shell content gettype --uri <URI> [--user <USER_ID>]
Example:
adb shell content gettype --uri content://media/internal/audio/media/
[ERROR] Unsupported operation: null
Spoiler: CONTENT KNOWLEDGE
Content provider basics | Android Developers
developer.android.com
WHAT IS A URI
URI: The Uniform Resource Identifier Explained
With the Uniform Resource Identifier, various resources on the Internet can be identified. For this to happen, each URI follows a predefined syntax.
www.ionos.com
Spoiler: CP
cp
Spoiler: CP COMMANDS
usage: cp [--preserve=motcxa] [-adfHiLlnPpRrsTv] SOURCE... DEST
Copy files from SOURCE to DEST. If more than one SOURCE, DEST must
be a directory.
-v Verbose
-T DEST always treated as file, max 2 arguments
-s Symlink instead of copy
-r Synonym for -R
-R Recurse into subdirectories (DEST must be a directory)
-p Preserve timestamps, ownership, and mode
-P Do not follow symlinks [default]
-n No clobber (don't overwrite DEST)
-l Hard link instead of copy
-L Follow all symlinks
-i Interactive, prompt before overwriting existing DEST
-H Follow symlinks listed on command line
-f Delete destination files we can't write to
-F Delete any existing destination file first (--remove-destination)
-d Don't dereference symlinks
-D Create leading dirs under DEST (--parents)
-a Same as -dpr
--preserve takes either a comma separated list of attributes, or the first
letter(s) of:
mode - permissions (ignore umask for rwx, copy suid and sticky bit)
ownership - user and group
timestamps - file creation, modification, and access times.
context - security context
xattr - extended attributes
all - all of the above
Spoiler: CPIO
cpio
Spoiler: CPIO COMMANDS
usage: cpio -{o|t|i|p DEST} [-v] [--verbose] [-F FILE] [--no-preserve-owner]
[ignored: -mdu -H newc]
Copy files into and out of a "newc" format cpio archive.
-F FILE Use archive FILE instead of stdin/stdout
-p DEST Copy-pass mode, copy stdin file list to directory DEST
-i Extract from archive into file system (stdin=archive)
-o Create archive (stdin=list of files, stdout=archive)
-t Test files (list only, stdin=archive, stdout=list of files)
-v Verbose
--no-preserve-owner (don't set ownership during extract)
--trailer Add legacy trailer (prevents concatenation)
Spoiler: CPIO KNOWLEDGE
10+ cpio command examples in Linux [Cheat Sheet] | GoLinuxCloud
cpio reads the name of files from the standard input to perform the operation. So, cpio command is mostly used with ls or find command to select the files for
www.golinuxcloud.com
Spoiler: CPPREOPTS.SH
cppreopts.sh
inaccessible or not found
Spoiler: CRASH_DUMP32
crash_dump32
not sure what it did. did not halt shell
Spoiler: CRASH_DUMP64
crash_dump64
did nothing, did not halt shell
Spoiler: CREDSTORE
credstore
inaccessible or not found
Spoiler: CUT
cut
Spoiler: CUT COMMANDS
usage: cut [-Ds] [-bcfF LIST] [-dO DELIM] [FILE...]
Print selected parts of lines from each FILE to standard output.
Each selection LIST is comma separated, either numbers (counting from 1)
or dash separated ranges (inclusive, with X- meaning to end of line and -X
from start). By default selection ranges are sorted and collated, use -D
to prevent that.
-b Select bytes
-c Select UTF-8 characters
-C Select unicode columns
-d Use DELIM (default is TAB for -f, run of whitespace for -F)
-D Don't sort/collate selections or match -fF lines without delimiter
-f Select fields (words) separated by single DELIM character
-F Select fields separated by DELIM regex
-O Output delimiter (default one space for -F, input delim for -f)
-s Skip lines without delimiters
Spoiler: DALVIKVM
dalvikvm
Spoiler: SHELL PICTURES CONTINUED
Spoiler: DALVIKVM COMMANDS
dalvikvm: [options] class [argument ...]
The following standard options are supported:
-classpath classpath (-cp classpath)
-Dproperty=value
-verbose:tag[,tag...] (currently valid tags: 'agents', 'class',
'collector', 'compiler', 'deopt', 'dex', 'gc', 'heap', 'image',
'interpreter', 'jdwp', 'jit', 'jni', 'monitor', 'oat', 'profiler',
'signals', 'simulator', 'startup', 'systrace-locks',
'third-party-jni', 'threads', 'verifier', 'verifier-debug')
-showversion
-help
-agentpath:library_path=options (Experimental feature, requires
-Xexperimental:agent, some features might not be supported)
The following extended options are supported:
-Xbootclasspath:bootclasspath
-Xcheck:tag (e.g. 'jni')
-XmsN (min heap, must be multiple of 1K, >= 1MB)
-XmxN (max heap, must be multiple of 1K, >= 2MB)
-XssN (stack size)
-Xint
The following Dalvik options are supported:
-Xzygote
-Xjnitrace:substring (eg NativeClass or nativeMethod)
-Xgc:[no]preverify
-Xgc:[no]postverify
-XX:HeapGrowthLimit=N
-XX:HeapMinFree=N
-XX:HeapMaxFree=N
-XX:NonMovingSpaceCapacity=N
-XX:HeapTargetUtilization=doublevalue
-XX:ForegroundHeapGrowthMultiplier=doublevalue
-XX:LowMemoryMode
-Xprofile:{threadcpuclock,wallclock,dualclock}
-Xjitthreshold:integervalue
The following unique to ART options are supported:
-Xgc:[no]preverify_rosalloc
-Xgc:[no]postsweepingverify_rosalloc
-Xgc:[no]postverify_rosalloc
-Xgc:[no]presweepingverify
-Xgc:[no]generational_cc
-Ximage:filename
-Xbootclasspath-locations:bootclasspath
(override the dex locations of the -Xbootclasspath files)
-XX:+DisableExplicitGC
-XXarallelGCThreads=integervalue
-XX:ConcGCThreads=integervalue
-XX:FinalizerTimeoutMs=integervalue
-XX:MaxSpinsBeforeThinLockInflation=integervalue
-XX:LongPauseLogThreshold=integervalue
-XX:LongGCLogThreshold=integervalue
-XX:ThreadSuspendTimeout=integervalue
-XXumpGCPerformanceOnShutdown
-XXumpJITInfoOnShutdown
-XX:IgnoreMaxFootprint
-XX:UseTLAB
-XX:BackgroundGC=none
-XX:LargeObjectSpace={disabled,map,freelist}
-XX:LargeObjectThreshold=N
-XX:StopForNativeAllocs=N
-XXumpNativeStackOnSigQuit=booleanvalue
-XX:MadviseRandomAccess:booleanvalue
-XX:SlowDebug={false,true}
-Xmethod-trace
-Xmethod-trace-file:filename
-Xmethod-trace-file-size:integervalue
-Xps-min-save-period-ms:integervalue
-Xps-save-resolved-classes-delay-ms:integervalue
-Xps-hot-startup-method-samples:integervalue
-Xps-min-methods-to-save:integervalue
-Xps-min-classes-to-save:integervalue
-Xps-min-notification-before-wake:integervalue
-Xps-max-notification-before-wake:integervalue
-Xps-profile-path:file-path
-Xcompiler:filename
-Xcompiler-option dex2oat-option
-Ximage-compiler-option dex2oat-option
-Xusejit:booleanvalue
-Xjitinitialsize:N
-Xjitmaxsize:N
-Xjitwarmupthreshold:integervalue
-Xjitosrthreshold:integervalue
-Xjitprithreadweight:integervalue
-X[no]relocate
-X[no]dex2oat (Whether to invoke dex2oat on the application)
-X[no]image-dex2oat (Whether to create and use a boot image)
-Xno-dex-file-fallback (Don't fall back to dex files without oat files)
-Xplugin:<library.so> (Load a runtime plugin, requires -Xexperimental:runtime-plugins)
-Xexperimental:runtime-plugins(Enable new and experimental agent support)
-Xexperimental:agents(Enable new and experimental agent support)
-Xopaque-jni-ids:{true,false,swapable}(Use opauque integers for jni ids, yes, no or punt for later)
The following previously supported Dalvik options are ignored:
-ea[:<package name>... |:<class name>]
-da[:<package name>... |:<class name>]
(-enableassertions, -disableassertions)
-esa
-dsa
(-enablesystemassertions, -disablesystemassertions)
-Xverify:{none,remote,all,softfail}
-Xrs
-Xintortable, -Xint:fast, -Xint:jit
-Xdexopt:{none,verified,all,full}
-Xnoquithandler
-Xjniopts:{warnonly,forcecopy}
-Xjnigreflimit:integervalue
-Xgc:[no]precise
-Xgc:[no]verifycardtable
-X[no]genregmap
-Xverifyopt:[no]checkmon
-Xcheckdexsum
-Xincludeselectedop
-Xjitop:hexopvalue[-endvalue][,hexopvalue[-endvalue]]*
-Xincludeselectedmethod
-Xjitblocking
-Xjitmethod:signature[,signature]* (eg Ljava/lang/String\;replace)
-Xjitclass:classname[,classname]*
-Xjitcodecachesize:N
-Xjitoffsetffset[,offset]
-Xjitconfig:filename
-Xjitcheckcg
-Xjitverbose
-Xjitprofile
-Xjitdisableopt
-Xjitsuspendpoll
-XX:mainThreadStackSize=N
Spoiler: DALVIKVM KNOWLEDGE
Android Dalvik VM - eLinux.org
elinux.org
Controlling the Embedded VM
Spoiler: DATE
date
Spoiler: DATE COMMANDS
usage: date [-u] [-r FILE] [-d DATE] [+DISPLAY_FORMAT] [-D SET_FORMAT] [SET]
Set/get the current date/time. With no SET shows the current date.
-d Show DATE instead of current time (convert date format)
-D +FORMAT for SET or -d (instead of MMDDhhmm[[CC]YY][.ss])
-r Use modification time of FILE instead of current date
-u Use UTC instead of current timezone
Supported input formats:
MMDDhhmm[[CC]YY][.ss] POSIX
@UNIXTIME[.FRACTION] seconds since midnight 1970-01-01
YYYY-MM-DD [hh:mm[:ss]] ISO 8601
hh:mm[:ss] 24-hour time today
All input formats can be preceded by TZ="id" to set the input time zone
separately from the output time zone. Otherwise $TZ sets both.
+FORMAT specifies display format string using strftime(3) syntax:
%% literal % %n newline %t tab
%S seconds (00-60) %M minute (00-59) %m month (01-12)
%H hour (0-23) %I hour (01-12) %p AM/PM
%y short year (00-99) %Y year %C century
%a short weekday name %A weekday name %u day of week (1-7, 1=mon)
%b short month name %B month name %Z timezone name
%j day of year (001-366) %d day of month (01-31) %e day of month ( 1-31)
%N nanosec (output only)
%U Week of year (0-53 start sunday) %W Week of year (0-53 start monday)
%V Week of year (1-53 start monday, week < 4 days not part of this year)
%F "%Y-%m-%d" %R "%H:%M" %T "%H:%M:%S" %z numeric timezone
%D "%m/%d/%y" %r "%I:%M:%S %p" %h "%b" %s unix epoch time
%x locale date %X locale time %c locale date/time
Spoiler: ALL BIN SYSTEMS CONTINUED PART 3 (D-E)
Spoiler: DD
dd
Spoiler: DD COMMANDS
usage: dd [if=FILE] [of=FILE] [ibs=N] [obs=N] [iflag=FLAGS] [oflag=FLAGS]
[bs=N] [count=N] [seek=N] [skip=N]
[conv=notrunc|noerror|sync|fsync] [status=noxfer|none]
Copy/convert files.
if=FILE Read from FILE instead of stdin
of=FILE Write to FILE instead of stdout
bs=N Read and write N bytes at a time
ibs=N Input block size
obs=N Output block size
count=N Copy only N input blocks
skip=N Skip N input blocks
seek=N Skip N output blocks
iflag=FLAGS Set input flags
oflag=FLAGS Set output flags
conv=notrunc Don't truncate output file
conv=noerror Continue after read errors
conv=sync Pad blocks with zeros
conv=fsync Physically write data out before finishing
status=noxfer Don't show transfer rate
status=none Don't show transfer rate or records in/out
FLAGS is a comma-separated list of:
count_bytes (iflag) interpret count=N in bytes, not blocks
seek_bytes (oflag) interpret seek=N in bytes, not blocks
skip_bytes (iflag) interpret skip=N in bytes, not blocks
Numbers may be suffixed by c (*1), w (*2), b (*512), kD (*1000), k (*1024),
MD (*1000*1000), M (*1024*1024), GD (*1000*1000*1000) or G (*1024*1024*1024).
Spoiler: DD KNOWLEDGE
Android Forensics: imaging android filesystem using ADB and DD
Let's starting a series of article related to digital forensic focused on mobile devices. In this first post i'd like to share some thoughts about image acquisition on android devices. On android devices we can perform two kind of image acquisition: Live acquisition: performed on a running...
andreafortuna.org
Spoiler: DEBUGGERD
debuggerd
Spoiler: DEBUGGERD COMMANDS
usage: debuggerd [-bj] PID
-b, --backtrace just a backtrace rather than a full tombstone
-j collect java traces
Spoiler: DEBUGGERD KNOWLEDGE
Debugging Native Android Platform Code | Android Open Source Project
source.android.com
Spoiler: DEFRAG.F2FS
defrag.f2fs
inaccessible or not found
Spoiler: DEVICE_CONFIG
device_config
Spoiler: DEVICE_CONFIG COMMANDS
Device Config (device_config) commands:
help
Print this help text.
get NAMESPACE KEY
Retrieve the current value of KEY from the given NAMESPACE.
put NAMESPACE KEY VALUE [default]
Change the contents of KEY to VALUE for the given NAMESPACE.
{default} to set as the default value.
delete NAMESPACE KEY
Delete the entry for KEY for the given NAMESPACE.
list [NAMESPACE]
Print all keys and values defined, optionally for the given NAMESPACE.
reset RESET_MODE [NAMESPACE]
Reset all flag values, optionally for a NAMESPACE, according to RESET_MODE.
RESET_MODE is one of {untrusted_defaults, untrusted_clear, trusted_defaults}
NAMESPACE limits which flags are reset if provided, otherwise all flags are reset
Spoiler: DEVICE CONFIG LIST
activity_manager_native_boot/offload_queue_enabled=false
app_compat/hidden_api_access_log_sampling_rate=0
app_compat/hidden_api_access_statslog_sampling_rate=0
autofill/augmented_autofill_mode=1
autofill/smart_suggestion_supported_modes=1
configuration/flag=false
connectivity/data_stall_consecutive_dns_timeout_threshold=5
connectivity/dhcp_init_reboot_enabled=false
connectivity/dhcp_init_reboot_version=0
connectivity/dhcp_ip_conflict_detect_version=0
connectivity/dhcp_ipv6_only_preferred_version=0
connectivity/dhcp_rapid_commit_enabled=false
connectivity/dhcp_rapid_commit_version=1
connectivity/dhcp_restart_configuration_delay=1000
connectivity/dhcp_server_decline_version=0
connectivity/ip_reachability_mcast_resolicit_version=999999999
connectivity/ipclient_garp_na_roaming_version=999999999
content_capture/enable_contentcapture=false
content_capture/service_explicitly_enabled=default
device_personalization_services/Captions__enable=false
device_personalization_services/Captions__enable_clearcut_logging=true
device_personalization_services/Captions__enable_punctuations=true
device_personalization_services/Captions__enable_setting_page=false
device_personalization_services/Captions__enable_westworld_logging=false
device_personalization_services/Captions__enable_zero_day=false
device_personalization_services/Captions__manifest_url_template=https://storage.googleapis.com/captions/%{NAMESPACE}_%{VERSION}_manifest.json
device_personalization_services/Captions__model_version_v1=20190613
device_personalization_services/Captions__model_version_v1_2=20200112
device_personalization_services/Captions__speech_threshold=0.2
device_personalization_services/Captions__surface_sound_events=true
device_personalization_services/Captions__visibility_playing_duration_millis=5000
device_personalization_services/Captions__visibility_stopped_duration_millis=1500
device_personalization_services/Overview__enable_lens=false
device_personalization_services/VisualCortex__enable=true
device_personalization_services/VisualCortex__enable_whitelist_packages=true
exo/app_streaming_allowed_components=
exo/app_streaming_blocked_components=
exo/app_streaming_task_navigation_allowed_components=
exo/app_streaming_task_navigation_blocked_components=
exo/include_default_browser_in_allowed_task_navigation_components=false
exo/log_exo_metrics=false
exo/tile_is_available=false
exo/use_encrypted_transport=false
intelligence_bubbles/intelligence_bubbles_webref_superpacks_manifest_url_template=https://gstatic.com/matchmaker/demo/bubbles/20051000/2/en-us/superpacks_manifest.zip
intelligence_bubbles/intelligence_bubbles_webref_superpacks_manifest_version=20051000
launcher/ENABLE_SMARTSPACE_ENHANCED=false
location/adas_settings_allowlist=
netd_native/dns_event_subsample_map=default:6 0:400 2:110 4:110 7:110
netd_native/doh=1
netd_native/doh_session_resumption=0
netd_native/dot_async_handshake=0
netd_native/dot_connect_timeout_ms=127000
netd_native/dot_maxtries=3
netd_native/dot_query_timeout_ms=-1
netd_native/dot_validation_latency_factor=3
netd_native/dot_validation_latency_offset_ms=100
netd_native/keep_listening_udp=0
netd_native/max_queries_global=2147483647
netd_native/parallel_lookup=0
netd_native/parallel_lookup_sleep_time=2
netd_native/retransmission_time_interval=5000
netd_native/retry_count=2
netd_native/sort_nameservers=0
notification_assistant/generate_actions=false
notification_assistant/generate_replies=false
odad/binary_transparency_log_signature_verification_key=
odad/enable_sample_param=false
privacy/location_access_check_enabled=true
privacy/location_accuracy_enabled=false
privacy/permissions_hub_enabled=false
runtime_native/use_app_image_startup_cache=true
runtime_native_boot/disable_lock_profiling=false
runtime_native_boot/iorap_blacklisted_packages=
runtime_native_boot/iorap_perfetto_enable=false
runtime_native_boot/iorap_readahead_enable=false
runtime_native_boot/iorapd_options=
settings_stats/GlobalFeature__boolean_whitelist=Cgd3aWZpX29uCgxibHVldG9vdGhfb24KC21vYmlsZV9kYXRhChBhaXJwbGFuZV9tb2RlX29uCglhdXRvX3RpbWUKDmF1dG9fdGltZV96b25lCglsb3dfcG93ZXIKFWFkZF91c2Vyc193aGVuX2xvY2tlZAoYd2lmaV9zY2FuX2Fsd2F5c19lbmFibGVkChdibGVfc2Nhbl9hbHdheXNfZW5hYmxlZAoPd2ZjX2ltc19lbmFibGVkCgxkYXRhX3JvYW1pbmcKEHZvbHRlX3Z0X2VuYWJsZWQKHGRldmVsb3BtZW50X3NldHRpbmdzX2VuYWJsZWQKI2FkYXB0aXZlX2JhdHRlcnlfbWFuYWdlbWVudF9lbmFibGVkChphdXRvbWF0aWNfcG93ZXJfc2F2ZXJfbW9kZQoUbm90aWZpY2F0aW9uX2J1YmJsZXMKEmRldmljZV9wcm92aXNpb25lZAoSc3lzdWlfZGVtb19hbGxvd2VkChtub3RpZmljYXRpb25fc25vb3plX29wdGlvbnMKDWF3YXJlX2FsbG93ZWQKFGhkbWlfY29udHJvbF9lbmFibGVkChRhcHBseV9yYW1waW5nX3JpbmdlcgoWd2luZG93X2FuaW1hdGlvbl9zY2FsZQoadHJhbnNpdGlvbl9hbmltYXRpb25fc2NhbGUKF2FuaW1hdG9yX2R1cmF0aW9uX3NjYWxl
settings_stats/GlobalFeature__float_whitelist=
settings_stats/GlobalFeature__integer_whitelist=Chdsb3dfcG93ZXJfdHJpZ2dlcl9sZXZlbAoMd2ZjX2ltc19tb2RlChdwcmVmZXJyZWRfbmV0d29ya19tb2RlMQobcHJlZmVycmVkX25ldHdvcmtfbW9kZTFfaW50Cgh6ZW5fbW9kZQoLbW9kZV9yaW5nZXIKF3Bvd2VyX2J1dHRvbl9sb25nX3ByZXNz
settings_stats/GlobalFeature__string_whitelist=ChR6ZW5fbW9kZV9jb25maWdfZXRhZw
settings_stats/SecureFeature__boolean_whitelist=CihjYW1lcmFfZG91YmxlX3RhcF9wb3dlcl9nZXN0dXJlX2Rpc2FibGVkCgxkb3plX2VuYWJsZWQKHmxvY2tfc2NyZWVuX3Nob3dfbm90aWZpY2F0aW9ucwonbG9ja19zY3JlZW5fYWxsb3dfcHJpdmF0ZV9ub3RpZmljYXRpb25zChdpbnN0YWxsX25vbl9tYXJrZXRfYXBwcwoVYWNjZXNzaWJpbGl0eV9lbmFibGVkCiBhY2Nlc3NpYmlsaXR5X2NhcHRpb25pbmdfZW5hYmxlZAoxYWNjZXNzaWJpbGl0eV9tYWduaWZpY2F0aW9uX2ZvbGxvd190eXBpbmdfZW5hYmxlZAorYWNjZXNzaWJpbGl0eV9kaXNwbGF5X21hZ25pZmljYXRpb25fZW5hYmxlZAoaaGlnaF90ZXh0X2NvbnRyYXN0X2VuYWJsZWQKHGluY2FsbF9wb3dlcl9idXR0b25fYmVoYXZpb3IKK2hpZGVfcm90YXRpb25fbG9ja190b2dnbGVfZm9yX2FjY2Vzc2liaWxpdHkKDnNwZWFrX3Bhc3N3b3JkCitlbmFibGVfYWNjZXNzaWJpbGl0eV9nbG9iYWxfZ2VzdHVyZV9lbmFibGVkCidhY2Nlc3NpYmlsaXR5X2Rpc3BsYXlfaW52ZXJzaW9uX2VuYWJsZWQKKGFjY2Vzc2liaWxpdHlfZGlzcGxheV9kYWx0b25pemVyX2VuYWJsZWQKGGFzc2lzdF9zdHJ1Y3R1cmVfZW5hYmxlZAoZYXNzaXN0X3NjcmVlbnNob3RfZW5hYmxlZAoOYmFja3VwX2VuYWJsZWQKE2JhY2t1cF9hdXRvX3Jlc3RvcmUKFm5mY19wYXltZW50X2ZvcmVncm91bmQKFXNwZWxsX2NoZWNrZXJfZW5hYmxlZAoOZG96ZV9hbHdheXNfb24KFWRvemVfcHVsc2Vfb25fcGlja191cAoYZG96ZV9wdWxzZV9vbl9kb3VibGVfdGFwCht1c2VyX2Z1bGxfZGF0YV9iYWNrdXBfYXdhcmUKF2JhY2t1cF9lbmFibGVkX2NhbGxfbG9nChZiYWNrdXBfc2V0dGluZ3Nfb3B0X2luChduaWdodF9kaXNwbGF5X2FjdGl2YXRlZAoWYXNzaXN0X2dlc3R1cmVfZW5hYmxlZAolYXNzaXN0X2dlc3R1cmVfc2lsZW5jZV9hbGVydHNfZW5hYmxlZAobYXNzaXN0X2dlc3R1cmVfd2FrZV9lbmFibGVkCh1hc3Npc3RfZ2VzdHVyZV9zZXR1cF9jb21wbGV0ZQoOYWRhcHRpdmVfc2xlZXAKLmJhY2t1cF9lbmFibGVkOmNvbS5hbmRyb2lkLnByb3ZpZGVycy50ZWxlcGhvbnkKHWRpc3BsYXlfd2hpdGVfYmFsYW5jZV9lbmFibGVkChJzZWVuX3R1bmVyX3dhcm5pbmcKE3VzZXJfc2V0dXBfY29tcGxldGUKEGNvbnRyb2xzX2VuYWJsZWQKDWF3YXJlX2VuYWJsZWQKGWRvemVfd2FrZV9kaXNwbGF5X2dlc3R1cmUKDHNraXBfZ2VzdHVyZQoPc2lsZW5jZV9nZXN0dXJlCgt0YXBfZ2VzdHVyZQocbm90aWZpY2F0aW9uX2hpc3RvcnlfZW5hYmxlZAoZYWRhcHRpdmVfY2hhcmdpbmdfZW5hYmxlZAoecmVkdWNlX2JyaWdodF9jb2xvcnNfYWN0aXZhdGVkCh5mYWNlX3VubG9ja19kaXNtaXNzZXNfa2V5Z3VhcmQKCnNtYXJ0c3BhY2UKE3FzX21lZGlhX3Jlc3VtcHRpb24KEnFzX21lZGlhX3JlY29tbWVuZAoXY29udGVudF9jYXB0dXJlX2VuYWJsZWQKIGFjY2Vzc2liaWxpdHlfbGFyZ2VfcG9pbnRlcl9pY29uCh5yZWR1Y2VfYnJpZ2h0X2NvbG9yc19hY3RpdmF0ZWQ
settings_stats/SecureFeature__float_whitelist=Chphc3Npc3RfZ2VzdHVyZV9zZW5zaXRpdml0eQ
settings_stats/SecureFeature__integer_whitelist=Chpsb2NhdGlvbl9wcm92aWRlcnNfYWxsb3dlZAoSbG9uZ19wcmVzc190aW1lb3V0CiBhY2Nlc3NpYmlsaXR5X2Rpc3BsYXlfZGFsdG9uaXplcgoebG9ja19zY3JlZW5fbG9ja19hZnRlcl90aW1lb3V0ChB0dHNfZGVmYXVsdF9yYXRlChduaWdodF9kaXNwbGF5X2F1dG9fbW9kZQoPbmF2aWdhdGlvbl9tb2RlCg11aV9uaWdodF9tb2RlCh9uaWdodF9kaXNwbGF5X2NvbG9yX3RlbXBlcmF0dXJlCh1uaWdodF9kaXNwbGF5X2N1c3RvbV9lbmRfdGltZQofbmlnaHRfZGlzcGxheV9jdXN0b21fc3RhcnRfdGltZQoWc2tpcF9nZXN0dXJlX2RpcmVjdGlvbgoacmVkdWNlX2JyaWdodF9jb2xvcnNfbGV2ZWwKK3JlZHVjZV9icmlnaHRfY29sb3JzX3BlcnNpc3RfYWNyb3NzX3JlYm9vdHMKJmFjY2Vzc2liaWxpdHlfbWFnbmlmaWNhdGlvbl9jYXBhYmlsaXR5ChFjYW1lcmFfYXV0b3JvdGF0ZQoWdWlfdHJhbnNsYXRpb25fZW5hYmxlZAoWZm9udF93ZWlnaHRfYWRqdXN0bWVudAoWZGlzcGxheV9kZW5zaXR5X2ZvcmNlZA
settings_stats/SecureFeature__string_whitelist=Ch5lbmFibGVkX2FjY2Vzc2liaWxpdHlfc2VydmljZXMKCWFzc2lzdGFudAoaZGlhbGVyX2RlZmF1bHRfYXBwbGljYXRpb24KF3Ntc19kZWZhdWx0X2FwcGxpY2F0aW9uChRkZWZhdWx0X2lucHV0X21ldGhvZAoWZW5hYmxlZF9wcmludF9zZXJ2aWNlcwoeZW5hYmxlZF9ub3RpZmljYXRpb25fbGlzdGVuZXJzCitlbmFibGVkX25vdGlmaWNhdGlvbl9wb2xpY3lfYWNjZXNzX3BhY2thZ2VzCh5lbmFibGVkX25vdGlmaWNhdGlvbl9hc3Npc3RhbnQKIWxvY2F0aW9uX3Byb3ZpZGVyc19hbGxvd2VkX3N0cmluZwokdGhlbWVfY3VzdG9taXphdGlvbl9vdmVybGF5X3BhY2thZ2VzCh1sb2NrX3NjcmVlbl9jdXN0b21fY2xvY2tfZmFjZQoOaWNvbl9ibGFja2xpc3QKDnN5c3VpX3FzX3RpbGVz
settings_stats/SystemFeature__boolean_whitelist=ChZzY3JlZW5fYnJpZ2h0bmVzc19tb2RlChZhY2NlbGVyb21ldGVyX3JvdGF0aW9uCgp2aWJyYXRlX29uChR2aWJyYXRlX3doZW5fcmluZ2luZwoUYXBwbHlfcmFtcGluZ19yaW5nZXIKF2hhcHRpY19mZWVkYmFja19lbmFibGVkChhub3RpZmljYXRpb25fbGlnaHRfcHVsc2UKE2xvY2tfdG9fYXBwX2VuYWJsZWQKF2xvY2tfdG9fYXBwX2V4aXRfbG9ja2VkCglkdG1mX3RvbmUKGWxvY2tzY3JlZW5fc291bmRzX2VuYWJsZWQKF2NoYXJnaW5nX3NvdW5kc19lbmFibGVkChVzb3VuZF9lZmZlY3RzX2VuYWJsZWQKF2hhcHRpY19mZWVkYmFja19lbmFibGVkCg1zaG93X3Bhc3N3b3JkCh9zdGF0dXNfYmFyX3Nob3dfYmF0dGVyeV9wZXJjZW50ChFwZWFrX3JlZnJlc2hfcmF0ZQ
settings_stats/SystemFeature__float_whitelist=ChpzY3JlZW5fYXV0b19icmlnaHRuZXNzX2FkagoKZm9udF9zY2FsZQ
settings_stats/SystemFeature__integer_whitelist=ChFzY3JlZW5fYnJpZ2h0bmVzcwoUdm9sdW1lX211c2ljX3NwZWFrZXIKFHZvbHVtZV9hbGFybV9zcGVha2VyChN2b2x1bWVfcmluZ19zcGVha2VyChJzY3JlZW5fb2ZmX3RpbWVvdXQKCnRpbWVfMTJfMjQKDXBvaW50ZXJfc3BlZWQKEmRpc3BsYXlfY29sb3JfbW9kZQoZYWxhcm1fdmlicmF0aW9uX2ludGVuc2l0eQoZbWVkaWFfdmlicmF0aW9uX2ludGVuc2l0eQogbm90aWZpY2F0aW9uX3ZpYnJhdGlvbl9pbnRlbnNpdHkKGHJpbmdfdmlicmF0aW9uX2ludGVuc2l0eQoZaGFwdGljX2ZlZWRiYWNrX2ludGVuc2l0eQ
settings_stats/SystemFeature__string_whitelist=
statsd_java/include_certificate_hash=false
storage_native_boot/fuse_enabled=1
system_scheduler/EnableFastMetricsCollection__dummy_flag=true
systemui/apply_sharing_app_limits_in_sysui=true
systemui/enable_screenshot_corner_flow=false
systemui/enable_screenshot_scrolling=false
systemui/nas_generate_actions=true
systemui/nas_generate_replies=true
systemui/nas_max_messages_to_extract=5
systemui/nas_max_suggestions=3
systemui/predict_using_people_service_share=true
systemui/share_sheet_direct_share_timeout=1500
systemui/ssin_edit_choices_before_sending=false
systemui/ssin_enabled=true
systemui/ssin_max_num_actions=-1
systemui/ssin_max_squeeze_remeasure_attempts=3
systemui/ssin_min_num_system_generated_replies=0
systemui/ssin_requires_targeting_p=true
systemui/ssin_show_in_heads_up=true
telephony/ramping_ringer_duration=10000
telephony/ramping_ringer_enabled=false
telephony/ramping_ringer_vibration_duration=5000
textclassifier/generate_links_max_text_length=10000
textclassifier/manifest_download_max_attempts=3
textclassifier/manifest_download_required_network_type=UNMETERED
textclassifier/manifest_url_actions_suggestions_de-ch=https://www.gstatic.com/android/text_classifier/actions/q/v103/de_CH.model.manifest
textclassifier/manifest_url_actions_suggestions_de-li=https://www.gstatic.com/android/text_classifier/actions/q/v103/de_CH.model.manifest
textclassifier/manifest_url_actions_suggestions_de=https://www.gstatic.com/android/text_classifier/actions/q/v103/de.model.manifest
textclassifier/manifest_url_actions_suggestions_en=https://www.gstatic.com/android/text_classifier/actions/q/v104/en.model.manifest
textclassifier/manifest_url_actions_suggestions_es=https://www.gstatic.com/android/text_classifier/actions/q/v103/es.model.manifest
textclassifier/manifest_url_actions_suggestions_fr=https://www.gstatic.com/android/text_classifier/actions/q/v103/fr.model.manifest
textclassifier/manifest_url_actions_suggestions_it=https://www.gstatic.com/android/text_classifier/actions/q/v103/it.model.manifest
textclassifier/manifest_url_actions_suggestions_ja=https://www.gstatic.com/android/text_classifier/actions/q/v103/ja.model.manifest
textclassifier/manifest_url_actions_suggestions_ko=https://www.gstatic.com/android/text_classifier/actions/q/v103/ko.model.manifest
textclassifier/manifest_url_actions_suggestions_pt-br=https://www.gstatic.com/android/text_classifier/actions/q/v103/pt_BR.model.manifest
textclassifier/manifest_url_actions_suggestions_universal=https://www.gstatic.com/android/text_classifier/actions/q/v103/default.model.manifest
textclassifier/manifest_url_actions_suggestions_zh-hant=
textclassifier/manifest_url_actions_suggestions_zh=
textclassifier/manifest_url_annotator_ar=https://www.gstatic.com/android/text_classifier/s/v902/ar.fb.manifest
textclassifier/manifest_url_annotator_da=https://www.gstatic.com/android/text_classifier/s/v902/da.fb.manifest
textclassifier/manifest_url_annotator_de=https://www.gstatic.com/android/text_classifier/s/v902/de.fb.manifest
textclassifier/manifest_url_annotator_en=https://www.gstatic.com/android/text_classifier/s/v902/en.fb.manifest
textclassifier/manifest_url_annotator_es=https://www.gstatic.com/android/text_classifier/s/v902/es.fb.manifest
textclassifier/manifest_url_annotator_fr=https://www.gstatic.com/android/text_classifier/s/v902/fr.fb.manifest
textclassifier/manifest_url_annotator_it=https://www.gstatic.com/android/text_classifier/s/v902/it.fb.manifest
textclassifier/manifest_url_annotator_ja=https://www.gstatic.com/android/text_classifier/s/v902/ja.fb.manifest
textclassifier/manifest_url_annotator_ko=https://www.gstatic.com/android/text_classifier/s/v902/ko.fb.manifest
textclassifier/manifest_url_annotator_nb=https://www.gstatic.com/android/text_classifier/s/v902/no.fb.manifest
textclassifier/manifest_url_annotator_nl=https://www.gstatic.com/android/text_classifier/s/v902/nl.fb.manifest
textclassifier/manifest_url_annotator_nn=https://www.gstatic.com/android/text_classifier/s/v902/no.fb.manifest
textclassifier/manifest_url_annotator_no=https://www.gstatic.com/android/text_classifier/s/v902/no.fb.manifest
textclassifier/manifest_url_annotator_pl=https://www.gstatic.com/android/text_classifier/s/v902/pl.fb.manifest
textclassifier/manifest_url_annotator_pt=https://www.gstatic.com/android/text_classifier/s/v902/pt.fb.manifest
textclassifier/manifest_url_annotator_ru=https://www.gstatic.com/android/text_classifier/s/v902/ru.fb.manifest
textclassifier/manifest_url_annotator_sv=https://www.gstatic.com/android/text_classifier/s/v902/sv.fb.manifest
textclassifier/manifest_url_annotator_th=https://www.gstatic.com/android/text_classifier/s/v902/th.fb.manifest
textclassifier/manifest_url_annotator_tr=https://www.gstatic.com/android/text_classifier/s/v902/tr.fb.manifest
textclassifier/manifest_url_annotator_universal=https://www.gstatic.com/android/text_classifier/s/v902/universal.fb.manifest
textclassifier/manifest_url_annotator_zh=https://www.gstatic.com/android/text_classifier/s/v902/zh.fb.manifest
textclassifier/manifest_url_lang_id_universal=https://www.gstatic.com/android/text_classifier/langid/q/v1/model.smfb.manifest
textclassifier/model_download_backoff_delay_in_millis=3600000
textclassifier/model_download_manager_enabled=true
textclassifier/model_download_worker_max_attempts=5
textclassifier/model_url_blocklist=
textclassifier/textclassifier_service_package_override=
wallpaper_content/G_WALLPAPER_GALLERY=false
wifi/abnormal_connection_failure_bugreport_enabled=true
wifi/abnormal_disconnection_bugreport_enabled=false
wifi/assoc_rejection_count_min=8
wifi/assoc_rejection_high_thr_percent=40
wifi/assoc_timeout_count_min=8
wifi/assoc_timeout_high_thr_percent=40
wifi/auth_failure_count_min=8
wifi/auth_failure_high_thr_percent=40
wifi/bug_report_min_window_ms=144000000
wifi/connection_failure_count_min=16
wifi/connection_failure_disconnection_count_min=6
wifi/connection_failure_disconnection_high_thr_percent=20
wifi/connection_failure_high_thr_percent=80
wifi/disconnection_nonlocal_count_min=5
wifi/disconnection_nonlocal_high_thr_percent=20
wifi/health_monitor_fw_alert_valid_time_ms=-1
wifi/health_monitor_min_num_connection_attempt=5
wifi/health_monitor_min_rssi_thr_dbm=-60
wifi/health_monitor_ratio_thr_numerator=8
wifi/health_monitor_rssi_poll_valid_time_ms=2700
wifi/health_monitor_short_connection_duration_thr_ms=20000
wifi/nonstationary_scan_rssi_valid_time_ms=5000
wifi/report_bug_report_threshold_extra_ratio=2
wifi/short_connection_nonlocal_count_min=3
wifi/short_connection_nonlocal_high_thr_percent=15
wifi/stationary_scan_rssi_valid_time_ms=30000
window_manager/system_gesture_exclusion_log_debounce_millis=1500
Spoiler: DEVICE_CONFIG KNOWLEDGE
Time Overview | Android Open Source Project
source.android.com
Boot Image Profiles | Android Open Source Project
source.android.com
Adding a New Device | Android Open Source Project
source.android.com
FUSE Passthrough | Android Open Source Project
source.android.com
Spoiler: DEVMEM
devmem
Spoiler: DEVMEM COMMANDS
usage: devmem ADDR [WIDTH [DATA]]
Read/write physical address via /dev/mem.
WIDTH is 1, 2, 4, or 8 bytes (default 4).
Spoiler: DEVMEM KNOWLEDGE
Accessing physical addresses through devmem
Catalog 1. Write in front 2.devmem use 3. application layer 4. kernel layer 1. Write in front Recently, when debugging, physical memory needs to be accessed at the user level, and it is found that the application layer can use devmem tools to access physical addresses. Looking at the source...
programmer.group
Spoiler: DEX2OAT
dex2oat
inaccessible or not found
Spoiler: DF
df
Spoiler: DF COMMANDS
usage: df [-HPkhi] [-t type] [FILE...]
The "disk free" command shows total/used/available disk space for
each filesystem listed on the command line, or all currently mounted
filesystems.
-a Show all (including /proc and friends)
-P The SUSv3 "Pedantic" option
-k Sets units back to 1024 bytes (the default without -P)
-h Human readable (K=1024)
-H Human readable (k=1000)
-i Show inodes instead of blocks
-t type Display only filesystems of this type
Pedantic provides a slightly less useful output format dictated by Posix,
and sets the units to 512 bytes instead of the default 1024 bytes.
Spoiler: PRODUCES THIS TEXT
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/block/dm-8 1650112 1645120 0 100% /
tmpfs 1958332 2016 1956316 1% /dev
tmpfs 1958332 0 1958332 0% /mnt
/dev/block/dm-9 432920 431604 0 100% /vendor
/dev/block/dm-10 1741652 1736440 0 100% /product
/dev/block/dm-11 146720 146280 0 100% /odm
tmpfs 1958332 0 1958332 0% /apex
/dev/block/mmcblk0p51 6800 40 6424 1% /mnt/elabel
/dev/block/dm-13 111117644 11761032 99209156 11% /data
/dev/block/dm-12 5720 5692 0 100% /apex/[email protected]
/dev/block/dm-14 712 684 16 98% /apex/[email protected]
/dev/block/dm-15 6132 6104 0 100% /apex/[email protected]
/dev/block/dm-16 18900 18872 0 100% /apex/[email protected]
/dev/block/dm-17 4376 4344 0 100% /apex/[email protected]
/dev/block/dm-18 11408 11376 0 100% /apex/[email protected]
/dev/block/dm-19 692 664 16 98% /apex/[email protected]
/dev/block/dm-20 3824 3796 0 100% /apex/[email protected]
/dev/block/dm-21 7936 7908 0 100% /apex/[email protected]
/dev/block/dm-22 12796 12768 0 100% /apex/[email protected]
/dev/block/dm-23 1856 1828 0 100% /apex/[email protected]
/dev/block/dm-24 6468 6436 0 100% /apex/[email protected]
/dev/block/dm-25 4940 4912 0 100% /apex/[email protected]
/dev/block/dm-26 2764 2736 0 100% /apex/[email protected]
/dev/block/dm-27 844 816 12 99% /apex/[email protected]
/dev/block/dm-28 8500 8468 0 100% /apex/[email protected]
/dev/block/loop22 85004 84972 0 100% /apex/[email protected]
/dev/block/loop23 232 92 136 41% /apex/[email protected]
/dev/block/loop24 24640 24608 0 100% /apex/[email protected]
/dev/block/loop25 111160 111132 0 100% /apex/[email protected]
/dev/block/loop26 5112 5076 0 100% /apex/[email protected]
/dev/fuse 111117644 11761032 99209156 11% /storage/emulated
Spoiler: DIFF
diff
Spoiler: DIFF COMMANDS
usage: diff [-abBdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2
-a Treat all files as text
-b Ignore changes in the amount of whitespace
-B Ignore changes whose lines are all blank
-d Try hard to find a smaller set of changes
-i Ignore case differences
-L Use LABEL instead of the filename in the unified header
-N Treat absent files as empty
-q Output only whether files differ
-r Recurse
-S Start with FILE when comparing directories
-T Make tabs line up by prefixing a tab when necessary
-s Report when two files are the same
-t Expand tabs to spaces in output
-u Unified diff
-U Output LINES lines of context
-w Ignore all whitespace
--color Colored output
--strip-trailing-cr Strip trailing '\r's from input lines
Spoiler: DIRNAME
dirname
Spoiler: DIRNAME COMMANDS
usage: dirname PATH...
Show directory portion of path.
Spoiler: DISABLE-VERITY
disable-verity
verity cannot be disabled/enabled - USER build
Spoiler: DISABLE-VERITY KNOWLEDGE
An Introduction to dm-verity on Android | Kynetics - Technical Notes
Learn about Android's implementation of verified boot - dm-verity.
www.kynetics.com
Spoiler: DMCTL
dmctl
Spoiler: DMCTL COMMANDS
usage: dmctl <command> [command options]
dmctl -f file
commands:
create <dm-name> [-ro] <targets...>
delete <dm-name>
list <devices | targets> [-v]
getpath <dm-name>
info <dm-name>
status <dm-name>
resume <dm-name>
suspend <dm-name>
table <dm-name>
help
-f file reads command and all parameters from named file
Target syntax:
<target_type> <start_sector> <num_sectors> [target_data]
Spoiler: DMCTL KNOWLEDGE
dmctl(8) [netbsd man page]
dmctl works with the device-mapper kernel driver. It can send and receive information and commands from the dm driver. version Print driver and lib version. targets List available kernel targets. create Create device with [dm devi
www.unix.com
Spoiler: DMESG
dmesg
Spoiler: DMESG COMMANDS
usage: dmesg [-Cc] [-r|-t|-T] [-n LEVEL] [-s SIZE] [-w]
Print or control the kernel ring buffer.
-C Clear ring buffer without printing
-c Clear ring buffer after printing
-n Set kernel logging LEVEL (1-9)
-r Raw output (with <level markers>)
-S Use syslog(2) rather than /dev/kmsg
-s Show the last SIZE many bytes
-T Human readable timestamps
-t Don't print timestamps
-w Keep waiting for more output (aka --follow)
Spoiler: DMESG KNOWLEDGE
What is dmesg in Linux, And How Do I Use It?
dmesg, the handy kernel log message, can be used for troubleshooting many issues with a Linux computer system. Learn more about what it is, how it works and how to access it in this article.
linuxconfig.org
Spoiler: DNSMASQ
dnsmasq
inaccessible or not found
Spoiler: DOS2UNIX
dos2unix
Spoiler: DOS2UNIX COMMANDS
usage: dos2unix [FILE...]
Convert newline format from dos "\r\n" to unix "\n".
If no files listed copy from stdin, "-" is a synonym for stdin.
Spoiler: DOS2UNIX KNOWLEDGE
DOS to Unix: Commands and Examples {6 Methods Explained}
6 ways to convert a DOS to Unix file by removing the r line ending or replacing it with just line feeds. Convert DOS to Unix and vice versa.
phoenixnap.com
Spoiler: DPM
dpm
Spoiler: DPM COMMANDS
usage: dpm [subcommand] [options]
usage: dpm set-active-admin [ --user <USER_ID> | current ] <COMPONENT>
usage: dpm set-device-owner [ --user <USER_ID> | current *EXPERIMENTAL* ] [ --name <NAME> ] <COMPONENT>
usage: dpm set-profile-owner [ --user <USER_ID> | current ] [ --name <NAME> ] <COMPONENT>
usage: dpm remove-active-admin [ --user <USER_ID> | current ] [ --name <NAME> ] <COMPONENT>
dpm set-active-admin: Sets the given component as active admin for an existing user.
dpm set-device-owner: Sets the given component as active admin, and its package as device owner.
dpm set-profile-owner: Sets the given component as active admin and profile owner for an existing user.
dpm remove-active-admin: Disables an active admin, the admin must have declared android:testOnly in the application in its manifest. This will also remove device and profile owners.
dpm clear-freeze-period-record: clears framework-maintained record of past freeze periods that the device went through. For use during feature development to prevent triggering restriction on setting freeze periods.
dpm force-network-logs: makes all network logs available to the DPC and triggers DeviceAdminReceiver.onNetworkLogsAvailable() if needed.
dpm force-security-logs: makes all security logs available to the DPC and triggers DeviceAdminReceiver.onSecurityLogsAvailable() if needed.
usage: dpm mark-profile-owner-on-organization-owned-device: [ --user <USER_ID> | current ] <COMPONENT>
Spoiler: DPM KNOWLEDGE
adbcommand.com - adbcommand Resources and Information.
adbcommand.com is your first and best source for all of the information you’re looking for. From general topics to more of what you would expect to find here, adbcommand.com has it all. We hope you find what you are searching for!
adbcommand.com
https://developer.android.com/reference/android/app/admin/DevicePolicyManager
Spoiler: DRMSERVER
drmserver
inaccessible or not found
Spoiler: DU
du
Spoiler: DU COMMANDS
usage: du [-d N] [-askxHLlmc] [FILE...]
Show disk usage, space consumed by files and directories.
Size in:
-k 1024 byte blocks (default)
-K 512 byte blocks (posix)
-m Megabytes
-h Human readable (e.g., 1K 243M 2G)
What to show:
-a All files, not just directories
-H Follow symlinks on cmdline
-L Follow all symlinks
-s Only total size of each argument
-x Don't leave this filesystem
-c Cumulative total
-d N Only depth < N
-l Disable hardlink filter
Spoiler: DUMP.F2FS
dump.f2fs
inaccessible or not found
Spoiler: DUMPSTATE
dumpstate
inaccessible or not found
Spoiler: DUMPSYS
dumpsys
Spoiler: DUMPSYS COMMANDS
usage: dumpsys
To dump all services.
or:
dumpsys [-t TIMEOUT] [--priority LEVEL] [--pid] [--help | -l | --skip SERVICES | SERVICE [ARGS]]
--help: shows this help
-l: only list services, do not dump them
-t TIMEOUT_SEC: TIMEOUT to use in seconds instead of default 10 seconds
-T TIMEOUT_MS: TIMEOUT to use in milliseconds instead of default 10 seconds
--pid: dump PID instead of usual dump
--proto: filter services that support dumping data in proto format. Dumps
will be in proto format.
--priority LEVEL: filter services based on specified priority
LEVEL must be one of CRITICAL | HIGH | NORMAL
--skip SERVICES: dumps all services but SERVICES (comma-separated list)
SERVICE [ARGS]: dumps only service SERVICE, optionally passing ARGS to it
Spoiler: DUMPSYS VISUAL
Currently unsure what this is Actually doing, will update later when I know~!
Spoiler: E2FREEFRAG
e2freefrag
usage: e2freefrag [-c chunksize in kb] [-h] device_name
Spoiler: E2FSCK
e2fsck
inaccessible or not found
Spoiler: E2FSDROID
e2fsdroid
inaccessible or not found
Spoiler: ECHO
echo
typical echo command
Spoiler: EGREP
egrep
Spoiler: EGREP COMMANDS
usage: grep [-EFrivwcloqsHbhn] [-ABC NUM] [-m MAX] [-e REGEX]... [-MS PATTERN]... [-f REGFILE] [FILE]...
Show lines matching regular expressions. If no -e, first argument is
regular expression to match. With no files (or "-" filename) read stdin.
Returns 0 if matched, 1 if no match found, 2 for command errors.
-e Regex to match. (May be repeated.)
-f File listing regular expressions to match.
file search:
-r Recurse into subdirectories (defaults FILE to ".")
-R Recurse into subdirectories and symlinks to directories
-M Match filename pattern (--include)
-S Skip filename pattern (--exclude)
--exclude-dir=PATTERN Skip directory pattern
-I Ignore binary files
match type:
-A Show NUM lines after -B Show NUM lines before match
-C NUM lines context (A+B) -E extended regex syntax
-F fixed (literal match) -a always text (not binary)
-i case insensitive -m match MAX many lines
-v invert match -w whole word (implies -E)
-x whole line -z input NUL terminated
display modes: (default: matched line)
-c count of matching lines -l show only matching filenames
-o only matching part -q quiet (errors only)
-s silent (no error msg) -Z output NUL terminated
output prefix (default: filename if checking more than 1 file)
-H force filename -b byte offset of match
-h hide filename -n line number of match
Spoiler: REGEX EXAMPLES
For the time being, I do not quite understand. Here is further study material.
Regular Expression (Regex) Tutorial
www3.ntu.edu.sg
Spoiler: ENABLE-VERITY
enable-verity
verity cannot be disabled/enabled - USER build
Spoiler: ENV
env
Spoiler: ENV COMMANDS
usage: env [-i] [-u NAME] [NAME=VALUE...] [COMMAND...]
Set the environment for command invocation, or list environment variables.
-i Clear existing environment
-u NAME Remove NAME from the environment
-0 Use null instead of newline in output
Spoiler: PRODUCES THIS TEXT
ANDROID_DATA=/data
ANDROID_ART_ROOT=/apex/com.android.art
HOME=/
ANDROID_TZDATA_ROOT=/apex/com.android.tzdata
SYSTEMSERVERCLASSPATH=/system/framework/com.android.location.provider.jar:/system/framework/services.jar:/system/framework/ethernet-service.jar:/apex/com.android.permission/javalib/service-permission.jar:/apex/com.android.wifi/javalib/service-wifi.jar:/apex/com.android.ipsec/javalib/android.net.ipsec.ike.jar
TERM=xterm-256color
ANDROID_SOCKET_adbd=18
ANDROID_STORAGE=/storage
EXTERNAL_STORAGE=/sdcard
DOWNLOAD_CACHE=/data/cache
LOGNAME=shell
ANDROID_ASSETS=/system/app
DEX2OATBOOTCLASSPATH=/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/core-icu4j.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/framework-atb-backward-compatibility.jar:/system/framework/mediatek-telephony-base.jar:/system/framework/mediatek-telephony-common.jar:/system/framework/mediatek-common.jar:/system/framework/mediatek-framework.jar:/system/framework/mediatek-ims-common.jar:/system/framework/mediatek-ims-base.jar:/system/framework/mediatek-telecom-common.jar
BOOTCLASSPATH=/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/core-icu4j.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/framework-atb-backward-compatibility.jar:/system/framework/mediatek-telephony-base.jar:/system/framework/mediatek-telephony-common.jar:/system/framework/mediatek-common.jar:/system/framework/mediatek-framework.jar:/system/framework/mediatek-ims-common.jar:/system/framework/mediatek-ims-base.jar:/system/framework/mediatek-telecom-common.jar:/apex/com.android.conscrypt/javalib/conscrypt.jar:/apex/com.android.media/javalib/updatable-media.jar:/apex/com.android.mediaprovider/javalib/framework-mediaprovider.jar:/apex/com.android.os.statsd/javalib/framework-statsd.jar:/apex/com.android.permission/javalib/framework-permission.jar:/apex/com.android.sdkext/javalib/framework-sdkextensions.jar:/apex/com.android.wifi/javalib/framework-wifi.jar:/apex/com.android.tethering/javalib/framework-tethering.jar
SHELL=/bin/sh
ANDROID_BOOTLOGO=1
ASEC_MOUNTPOINT=/mnt/asec
HOSTNAME=RNN_sprout
USER=shell
TMPDIR=/data/local/tmp
PATH=/product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin
ANDROID_ROOT=/system
ANDROID_I18N_ROOT=/apex/com.android.i18n
Spoiler: EXPAND
expand
Spoiler: EXPAND COMMANDS
usage: expand [-t TABLIST] [FILE...]
Expand tabs to spaces according to tabstops.
-t TABLIST
Specify tab stops, either a single number instead of the default 8,
or a comma separated list of increasing numbers representing tabstop
positions (absolute, not increments) with each additional tab beyond
that becoming one space.
Spoiler: EXPR
expr
Spoiler: EXPR COMMANDS
usage: expr ARG1 OPERATOR ARG2...
Evaluate expression and print result. For example, "expr 1 + 2".
The supported operators are (grouped from highest to lowest priority):
( ) : * / % + - != <= < >= > = & |
Each constant and operator must be a separate command line argument.
All operators are infix, meaning they expect a constant (or expression
that resolves to a constant) on each side of the operator. Operators of
the same priority (within each group above) are evaluated left to right.
Parentheses may be used (as separate arguments) to elevate the priority
of expressions.
Calling expr from a command shell requires a lot of \( or '*' escaping
to avoid interpreting shell control characters.
The & and | operators are logical (not bitwise) and may operate on
strings (a blank string is "false"). Comparison operators may also
operate on strings (alphabetical sort).
Constants may be strings or integers. Comparison, logical, and regex
operators may operate on strings (a blank string is "false"), other
operators require integers.
Spoiler: ALL BIN SYSTEMS CONTINUED PART 4 (F-G)
Spoiler: FALLOCATE
fallocate
Spoiler: FILE SYSTEM ALLOCATE COMMANDS
usage: fallocate [-l size] [-o offset] file
Tell the filesystem to allocate space for a file
Spoiler: FALSE
false
does nothing, does not halt shell
Spoiler: FGREP
fgrep
Same as "EGREP"
Spoiler: FILE
file
Spoiler: FILE COMMANDS
usage: file [-bhLs] [FILE...]
Examine the given files and describe their content types.
-b Brief (no filename)
-h Don't follow symlinks (default)
-L Follow symlinks
-s Show block/char device contents
Spoiler: FIND
find
Spoiler: FIND COMMANDS
usage: find [-HL] [DIR...] [<options>]
Search directories for matching files.
Default: search ".", match all, -print matches.
-H Follow command line symlinks -L Follow all symlinks
Match filters:
-name PATTERN filename with wildcards (-iname case insensitive)
-path PATTERN path name with wildcards (-ipath case insensitive)
-user UNAME belongs to user UNAME -nouser user ID not known
-group GROUP belongs to group GROUP -nogroup group ID not known
-perm [-/]MODE permissions (-=min /=any) -prune ignore dir contents
-size N[c] 512 byte blocks (c=bytes) -xdev only this filesystem
-links N hardlink count -atime N accessed N units ago
-ctime N created N units ago -mtime N modified N units ago
-newer FILE newer mtime than FILE -mindepth N at least N dirs down
-depth ignore contents of dir -maxdepth N at most N dirs down
-inum N inode number N -empty empty files and dirs
-type [bcdflps] type is (block, char, dir, file, symlink, pipe, socket)
-true always true -false always false
-context PATTERN security context
-newerXY FILE X=acm time > FILE's Y=acm time (Y=t: FILE is literal time)
Numbers N may be prefixed by a - (less than) or + (greater than). Units for
-Xtime are d (days, default), h (hours), m (minutes), or s (seconds).
Combine matches with:
!, -a, -o, ( ) not, and, or, group expressions
Actions:
-print Print match with newline -print0 Print match with null
-exec Run command with path -execdir Run command in file's dir
-ok Ask before exec -okdir Ask before execdir
-delete Remove matching file/dir -printf FORMAT Print using format string
Commands substitute "{}" with matched file. End with ";" to run each file,
or "+" (next argument after "{}") to collect and run with multiple files.
-printf FORMAT characters are \ escapes and:
%b 512 byte blocks used
%f basename %g textual gid %G numeric gid
%i decimal inode %l target of symlink %m octal mode
%M ls format type/mode %p path to file %P path to file minus DIR
%s size in bytes %[email protected] mod time as unixtime
%u username %U numeric uid %Z security context
Spoiler: PRINTED THIS
./AudioSetParam
./abb
./acpi
./am
find: './apexd': Permission denied
./app_process
./app_process32
./app_process64
./appops
./appwidget
./atrace
find: './audioserver': Permission denied
find: './auditctl': Permission denied
./awk
./badblocks
./base64
./basename
find: './batterywarning': Permission denied
./bc
./bcc
find: './blank_screen': Permission denied
find: './blkid': Permission denied
./blockdev
./bmgr
find: './boot_logo_updater': Permission denied
find: './bootanimation': Permission denied
find: './bootstat': Permission denied
./bootstrap
./bootstrap/linker_asan
./bootstrap/linker_asan64
./bootstrap/linker64
./bootstrap/linker
find: './boringssl_self_test32': Permission denied
find: './boringssl_self_test64': Permission denied
find: './bpfloader': Permission denied
./bu
./bugreport
./bugreportz
./bunzip2
./bzcat
./bzip2
./cal
find: './camerapostalgo': Permission denied
find: './cameraserver': Permission denied
./cat
find: './charger': Permission denied
./chattr
./chcon
./chgrp
./chmod
./chown
./chroot
./chrt
./cksum
find: './clatd': Permission denied
./clear
./cmd
./cmp
./comm
./content
./cp
./cpio
find: './cppreopts.sh': Permission denied
./crash_dump32
./crash_dump64
find: './credstore': Permission denied
./cut
./dalvikvm
./date
./dd
./debuggerd
./defrag.f2fs
./device_config
./devmem
find: './dex2oat': Permission denied
./df
./diff
./dirname
./disable-verity
./dmctl
./dmesg
find: './dnsmasq': Permission denied
./dos2unix
./dpm
find: './drmserver': Permission denied
./du
./dump.f2fs
find: './dumpstate': Permission denied
./dumpsys
./e2freefrag
find: './e2fsck': Permission denied
find: './e2fsdroid': Permission denied
./echo
./egrep
./enable-verity
./env
./expand
./expr
./fallocate
./false
./fgrep
./file
./find
find: './flags_health_check': Permission denied
./flock
./fmt
./free
find: './fsck.f2fs': Permission denied
find: './fsck_msdos': Permission denied
find: './fsverity_init': Permission denied
./fsync
find: './gatekeeperd': Permission denied
./getconf
./getenforce
./getevent
./getprop
find: './gpuservice': Permission denied
./grep
./groups
./gsi_tool
find: './gsid': Permission denied
./gunzip
./gzip
./head
find: './heapprofd': Permission denied
./hid
./hostname
./hw
find: './hw/[email protected]': Permission denied
find: './hw/[email protected]': Permission denied
./hwclock
find: './hwservicemanager': Permission denied
./i2cdetect
./i2cdump
./i2cget
./i2cset
./iconv
./id
find: './idmap2': Permission denied
find: './idmap2d': Permission denied
./ifconfig
./ime
./incident
./incident-helper-cmd
find: './incident_helper': Permission denied
find: './incidentd': Permission denied
find: './init': Permission denied
./inotifyd
./input
./insmod
./install
find: './installd': Permission denied
./ionice
./iorap.cmd.compiler
./iorap.cmd.maintenance
find: './iorap.inode2filename': Permission denied
find: './iorap.prefetcherd': Permission denied
find: './iorapd': Permission denied
./iorenice
./ip
./ip-wrapper-1.0
./ip6tables
./ip6tables-restore
./ip6tables-save
./ip6tables-wrapper-1.0
./iptables
./iptables-restore
./iptables-save
./iptables-wrapper-1.0
find: './keystore': Permission denied
./keystore_cli_v2
./kill
./killall
find: './kpoc_charger': Permission denied
find: './lbs_dbg': Permission denied
./lcdc_screen_cap
./ld.mc
./ldd
./librank
./linker
./linker64
./linker_asan
./linker_asan64
find: './linkerconfig': Permission denied
find: './lmkd': Permission denied
./ln
./load_policy
./locksettings
./log
./logcat
find: './logd': Permission denied
./logname
./logwrapper
./losetup
./lpdump
find: './lpdumpd': Permission denied
./ls
./lsattr
./lshal
./lsmod
./lsof
./lspci
./lsusb
find: './make_f2fs': Permission denied
./md5sum
find: './mdnsd': Permission denied
find: './mediaextractor': Permission denied
find: './mediametrics': Permission denied
find: './mediaserver': Permission denied
./microcom
./mifunctiontest
find: './migrate_legacy_obb_data.sh': Permission denied
./mini-keyctl
./mkdir
find: './mke2fs': Permission denied
./mkfifo
./mkfs.ext2
./mkfs.ext3
./mkfs.ext4
./mknod
./mkswap
./mktemp
./modinfo
./modprobe
./monkey
./more
./mount
./mountpoint
./move_widevine_data.sh
find: './mtk_plpath_utils': Permission denied
find: './mtpd': Permission denied
./mv
./nc
./ndc
./ndc-wrapper-1.0
./netcat
find: './netd': Permission denied
./netstat
./nice
find: './netutils-wrapper-1.0': Permission denied
./newfs_msdos
./nl
./nohup
find: './notify_traceur.sh': Permission denied
./nproc
./nsenter
./od
./oem-iptables-init.sh
./otapreopt
find: './otapreopt_chroot': Permission denied
./otapreopt_script
find: './otapreopt_slot': Permission denied
./paste
./patch
./perfetto
./pgrep
./pidof
./ping
./ping6
./pkill
./pm
./pmap
find: './pppd': Permission denied
find: './preloads_copy.sh': Permission denied
find: './preloads_copy_ext.sh': Permission denied
find: './preopt2cachename': Permission denied
./printenv
./printf
./procrank
./ps
./pwd
find: './racoon': Permission denied
./readelf
./readlink
./realpath
./reboot
find: './recovery-persist': Permission denied
find: './recovery-refresh': Permission denied
./renice
./requestsync
find: './resize.f2fs': Permission denied
find: './resize2fs': Permission denied
./restorecon
./rm
./rmdir
./rmmod
find: './rss_hwm_reset': Permission denied
./run-as
./runcon
./schedtest
./screencap
./screenrecord
find: './sdcard': Permission denied
./secdiscard
./secilc
./sed
./sendevent
./sensorservice
./seq
./service
find: './servicemanager': Permission denied
./set-verity-state
./setenforce
./setprop
./setsid
./settings
find: './sgdisk': Permission denied
./sh
./sha1sum
./sha224sum
./sha256sum
./sha384sum
./sha512sum
./showmap
./simpleperf
./simpleperf_app_runner
./sleep
find: './sload_f2fs': Permission denied
./sm
find: './snapshotctl': Permission denied
./sort
./split
./ss
./start
./stat
./stop
find: './storaged': Permission denied
./strings
./stty
find: './surfaceflinger': Permission denied
./svc
./swapoff
./swapon
./sync
./sysctl
./tac
./tail
./tar
./taskset
./tc
./tc-wrapper-1.0
find: './tcpdump': Permission denied
./tee
./telecom
find: './terservice': Permission denied
./test
find: './thermald': Permission denied
./time
./timeout
find: './tombstoned': Permission denied
./toolbox
./top
./touch
./toybox
./tr
find: './traced': Permission denied
find: './traced_perf': Permission denied
find: './traced_probes': Permission denied
./trigger_perfetto
./true
./truncate
./tty
find: './tune2fs': Permission denied
./tzdatacheck
./ueventd
./uiautomator
./ulimit
./umount
./uname
find: './uncrypt': Permission denied
./uniq
./unix2dos
./unlink
./unshare
./unzip
find: './update_engine': Permission denied
find: './update_verifier': Permission denied
./uptime
find: './usbd': Permission denied
./usleep
./uudecode
./uuencode
./uuidgen
find: './vdc': Permission denied
find: './viewcompiler': Permission denied
./vmstat
find: './vold': Permission denied
find: './vold_prepare_subdirs': Permission denied
./vr
find: './vtservice': Permission denied
find: './wait_for_keymaster': Permission denied
./watch
find: './watchdogd': Permission denied
./wc
./which
./whoami
find: './wificond': Permission denied
./wm
./xargs
./xxd
./yes
./zcat
./zipinfo
./ziptool
Spoiler: FLAGS_HEALTH_CHECK
flags_health_check
inaccessible or not found
Spoiler: FLOCK
Spoiler: FILE LOCK COMMANDS
usage: flock [-sxun] fd
Manage advisory file locks.
-s Shared lock
-x Exclusive lock (default)
-u Unlock
-n Non-blocking: fail rather than wait for the lock
Spoiler: FMT
fmt
Spoiler: FMT COMMANDS
usage: fmt [-w WIDTH] [FILE...]
Reformat input to wordwrap at a given line length, preserving existing
indentation level, writing to stdout.
-w WIDTH Maximum characters per line (default 75)
Spoiler: FREE
free
Spoiler: FREE COMMANDS
usage: free [-bkmgt]
Display the total, free and used amount of physical memory and swap space.
-bkmgt Output units (default is bytes)
-h Human readable (K=1024)
Spoiler: FSCK.F2FS
fsck.f2fs
inaccessible or not found
Spoiler: FSCK_MSDOS
fsck_msdos
inaccessible or not found
Spoiler: FSVERITY_INIT
fsverity_init
inaccessible or not found
Spoiler: FSYNC
fsync
Spoiler: FILE SYNC COMMANDS
usage: fsync [-d] [FILE...]
Synchronize a file's in-core state with storage device.
-d Avoid syncing metadata
Spoiler: FSYNC KNOWLEDGE
fsync(2) - Linux man page
fsync() transfers ("flushes") all modified in-core data of (i.e., modified buffer cache pages for) the file referred to by the file descriptor fd to the ...
linux.die.net
Spoiler: GATEKEEPERD
gatekeeprd
inaccessible or not found
Spoiler: GETENFORCE
getenforce
Spoiler: GETENFORCE COMMANDS
usage: getenforce
Shows whether SELinux is disabled, enforcing, or permissive.
Spoiler: GETENFORCE KNOWLEDGE
SELinux/Tutorials/Permissive versus enforcing - Gentoo Wiki
wiki.gentoo.org
Spoiler: GETEVENT
getevent
Spoiler: GETEVENT COMMANDS
Usage: getevent [-t] [-n] [-s switchmask] [-S] [-v [mask]] [-d] [-p] [-i] [-l] [-q] [-c count] [-r] [device]
-t: show time stamps
-n: don't print newlines
-s: print switch states for given bits
-S: print all switch states
-v: verbosity mask (errs=1, dev=2, name=4, info=8, vers=16, pos. events=32, props=64)
-d: show HID descriptor, if available
-p: show possible events (errs, dev, name, pos. events)
-i: show all device info and possible events
-l: label event types and names in plain text
-q: quiet (clear verbosity mask)
-c: print given number of events then exit
-r: print rate events are received
Spoiler: GETPROP
getprop
Spoiler: GETPROP COMMADS
usage: getprop [-TZ] [NAME [DEFAULT]]
Gets an Android system property, or lists them all.
-T Show property types instead of values
-Z Show property contexts instead of values
Spoiler: GETPROP KNOWLEDGE
An example of getprop in action:
Install Android 11 GSI for App Testing | Android Developers
In this codelab, you will install Android 11 Generic System Image (GSI) to Android 9 (Pie) devices. After that, you can develop and validate your application with the new OS!
developer.android.com
Spoiler: ALL BIN SYSTEMS CONTINUED PART 5 (G-I)
Spoiler: GPUSERVICE
gpuservice
inaccessible or not found
Spoiler: GREP
grep
Spoiler: GREP COMMANDS
usage: grep [-EFrivwcloqsHbhn] [-ABC NUM] [-m MAX] [-e REGEX]... [-MS PATTERN]... [-f REGFILE] [FILE]...
Show lines matching regular expressions. If no -e, first argument is
regular expression to match. With no files (or "-" filename) read stdin.
Returns 0 if matched, 1 if no match found, 2 for command errors.
-e Regex to match. (May be repeated.)
-f File listing regular expressions to match.
file search:
-r Recurse into subdirectories (defaults FILE to ".")
-R Recurse into subdirectories and symlinks to directories
-M Match filename pattern (--include)
-S Skip filename pattern (--exclude)
--exclude-dir=PATTERN Skip directory pattern
-I Ignore binary files
match type:
-A Show NUM lines after -B Show NUM lines before match
-C NUM lines context (A+B) -E extended regex syntax
-F fixed (literal match) -a always text (not binary)
-i case insensitive -m match MAX many lines
-v invert match -w whole word (implies -E)
-x whole line -z input NUL terminated
display modes: (default: matched line)
-c count of matching lines -l show only matching filenames
-o only matching part -q quiet (errors only)
-s silent (no error msg) -Z output NUL terminated
output prefix (default: filename if checking more than 1 file)
-H force filename -b byte offset of match
-h hide filename -n line number of match
Spoiler: GROUPS
groups
Print the groups a user is in.
Spoiler: GROUPS LIST
shell input log adb sdcard_rw sdcard_r ext_data_rw ext_obb_rw net_bt_admin net_bt inet net_bw_stats readproc uhid
Spoiler: GSI_TOOL
gsi_tool
Spoiler: GSI_TOOL COMMANDS
gsi_tool - command-line tool for installing GSI images.
Usage:
gsi_tool <disable|install|wipe|status> [options]
disable Disable the currently installed GSI.
enable [-s, --single-boot]
[-d, --dsuslot slotname]
Enable a previously disabled GSI.
install Install a new GSI. Specify the image size with
--gsi-size and the desired userdata size with
--userdata-size (the latter defaults to 8GiB)
--wipe (remove old gsi userdata first)
wipe Completely remove a GSI and its associated data
wipe-data Ensure the GSI's userdata will be formatted
cancel Cancel the installation
status Show status
Spoiler: GSITOOL ANDROID.COM SOURCE
Generic system images | Android Open Source Project
source.android.com
Spoiler: GSID
gsid
inaccessible or not found
Spoiler: GUNZIP
gunzip
Spoiler: GUNZIP COMMANDS
usage: gunzip [-cfk] [FILE...]
Decompress files. With no files, decompresses stdin to stdout.
On success, the input files are removed and replaced by new
files without the .gz suffix.
-c Output to stdout (act as zcat)
-f Force: allow read from tty
-k Keep input files (default is to remove)
Spoiler: GZIP
gzip
Spoiler: GZIP COMMANDS
usage: gzip [-19cdfk] [FILE...]
Compress files. With no files, compresses stdin to stdout.
On success, the input files are removed and replaced by new
files with the .gz suffix.
-c Output to stdout
-d Decompress (act as gunzip)
-f Force: allow overwrite of output file
-k Keep input files (default is to remove)
-# Compression level 1-9 (1:fastest, 6:default, 9:best)
Spoiler: HEAD
head
Spoiler: HEAD COMMANDS
usage: head [-n NUM] [FILE...]
Copy first lines from files to stdout. If no files listed, copy from
stdin. Filename "-" is a synonym for stdin.
-n Number of lines to copy
-c Number of bytes to copy
-q Never print headers
-v Always print headers
Spoiler: HEAPPROFD
heapprofd
inaccessible or not found
Spoiler: HID
hid
does nothing, does not halt shell
Spoiler: HOSTNAME
hostname
Spoiler: HOSTNAME COMMANDS
usage: hostname [-bdsf] [-F FILENAME] [newname]
Get/set the current hostname.
-b Set hostname to 'localhost' if otherwise unset
-d Show DNS domain name (no host)
-f Show fully-qualified name (host+domain, FQDN)
-F Set hostname to contents of FILENAME
-s Show short host name (no domain)
Spoiler: HW
hw
Is a folder
[email protected] [email protected]
Both say "inaccessible or not found"
Spoiler: HWCLOCK
hwclock
Spoiler: HWCLOCK COMMANDS
usage: hwclock [-rswtluf]
Get/set the hardware clock.
-f FILE Use specified device file instead of /dev/rtc (--rtc)
-l Hardware clock uses localtime (--localtime)
-r Show hardware clock time (--show)
-s Set system time from hardware clock (--hctosys)
-t Set the system time based on the current timezone (--systz)
-u Hardware clock uses UTC (--utc)
-w Set hardware clock from system time (--systohc)
Spoiler: HWSERVICEMANAGER
hwservicemanager
inaccessible or not found
Spoiler: I2CDETECT
i2cdetect
Spoiler: I2CDETECT COMMANDS
usage: i2cdetect [-ary] BUS [FIRST LAST]
usage: i2cdetect -F BUS
usage: i2cdetect -l
Detect i2c devices.
-a All addresses (0x00-0x7f rather than 0x03-0x77)
-F Show functionality
-l List all buses
-r Probe with SMBus Read Byte
-y Answer "yes" to confirmation prompts (for script use)
Spoiler: I2CDUMP
i2cdump
Spoiler: I2CDUMP COMMANDS
usage: i2cdump [-fy] BUS CHIP
Dump i2c registers.
-f Force access to busy devices
-y Answer "yes" to confirmation prompts (for script use)
Spoiler: I2CGET
i2cget
Spoiler: I2CGET COMMANDS
usage: i2cget [-fy] BUS CHIP ADDR
Read an i2c register.
-f Force access to busy devices
-y Answer "yes" to confirmation prompts (for script use)
Spoiler: I2CSET
i2cset
Spoiler: I2CSET COMMANDS
i2cset: Need 4 arguments (see "i2cset --help")
1|RNN_sprout:/bin $ i2cset --help
usage: i2cset [-fy] BUS CHIP ADDR VALUE... MODE
Write an i2c register. MODE is b for byte, w for 16-bit word, i for I2C block.
-f Force access to busy devices
-y Answer "yes" to confirmation prompts (for script use)
Spoiler: ICONV
iconv
Spoiler: ICONV COMMANDS
usage: iconv [-f FROM] [-t TO] [FILE...]
Convert character encoding of files.
-c Omit invalid chars
-f Convert from (default UTF-8)
-t Convert to (default UTF-8)
Spoiler: ID
id
Spoiler: ID COMMANDS
usage: id [-GZgnru] [USER...]
Print user and group ID.
-G Show all group IDs
-Z Show only security context
-g Show only the effective group ID
-n Print names instead of numeric IDs (to be used with -Ggu)
-r Show real ID instead of effective ID
-u Show only the effective user ID
Spoiler: ID KNOWLEDGE
IDs present on the G20
uid=2000(shell) gid=2000(shell) groups=2000(shell),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),1078(ext_data_rw),1079(ext_obb_rw),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats),3009(readproc),3011(uhid) context=u:r:shell:s0
How to Use the chown Command on Linux
Files and directories in Linux systems all belong to someone. You can change their ownership with the chown command. We show you how.
www.howtogeek.com
Spoiler: IDMAP
idmap
inaccessible or not found
Spoiler: IDMAP2
idmap2
inaccessible or not found
Spoiler: IDMAP2D
idmap2d
inaccessible or not found
Spoiler: IFCONFIG
ifconfig
Spoiler: IFCONFIG COMMANDS
usage: ifconfig [-aS] [INTERFACE [ACTION...]]
Display or configure network interface.
With no arguments, display active interfaces. First argument is interface
to operate on, one argument by itself displays that interface.
-a All interfaces displayed, not just active ones
-S Short view, one line per interface
Standard ACTIONs to perform on an INTERFACE:
ADDR[/MASK] - set IPv4 address (1.2.3.4/5) and activate interface
add|del ADDR[/LEN] - add/remove IPv6 address (1111::8888/128)
up|down - activate or deactivate interface
Advanced ACTIONs (default values usually suffice):
default - remove IPv4 address
netmask ADDR - set IPv4 netmask via 255.255.255.0 instead of /24
txqueuelen LEN - number of buffered packets before output blocks
mtu LEN - size of outgoing packets (Maximum Transmission Unit)
broadcast ADDR - Set broadcast address
pointopoint ADDR - PPP and PPPOE use this instead of "route add default gw"
hw TYPE ADDR - set hardware (mac) address (type = ether|infiniband)
Flags you can set on an interface (or -remove by prefixing with -):
arp - don't use Address Resolution Protocol to map LAN routes
promisc - don't discard packets that aren't to this LAN hardware address
multicast - force interface into multicast mode if the driver doesn't
allmulti - promisc for multicast packets
Spoiler: IME
ime
Spoiler: IME COMMANDS
ime <command>:
list [-a] [-s]
prints all enabled input methods.
-a: see all input methods
-s: only a single summary line of each
enable [--user <USER_ID>] <ID>
allows the given input method ID to be used.
--user <USER_ID>: Specify which user to enable. Assumes the current user if not specified.
disable [--user <USER_ID>] <ID>
disallows the given input method ID to be used.
--user <USER_ID>: Specify which user to disable. Assumes the current user if not specified.
set [--user <USER_ID>] <ID>
switches to the given input method ID.
--user <USER_ID>: Specify which user to enable. Assumes the current user if not specified.
reset [--user <USER_ID>]
reset currently selected/enabled IMEs to the default ones as if the device is initially booted w
ith the current locale.
--user <USER_ID>: Specify which user to reset. Assumes the current user if not specified.
Spoiler: INCIDENT
incident
Spoiler: INCIDENT COMMANDS
usage: incident OPTIONS [SECTION...]
Takes an incident report.
OPTIONS
-l list available sections
-p privacy spec, LOCAL, EXPLICIT or AUTOMATIC. Default AUTOMATIC.
-r REASON human readable description of why the report is taken.
-z gzip the incident report, i.e. pipe the output through gzip.
and one of these destinations:
-b (default) print the report to stdout (in proto format)
-d send the report into dropbox
-u print a full report to stdout for dumpstate to zip as a bug
report. SECTION is ignored. Should only be called by dumpstate.
-s PKG/CLS send broadcast to the broadcast receiver.
SECTION the field numbers of the incident report fields to include
Spoiler: DOES THIS
Spoiler: INCIDENT-HELPER-CMD
incidient-helper-cmd
Spoiler: TEXT
This command is not designed to be run manually.
Usage:
run [sectionName]
Spoiler: INCIDENT_HELPER
incident_helper
inaccessible or not found
Spoiler: INCIDENTD
incidentd
inaccessible or not found
Spoiler: INIT
init
inaccessible or not found
Spoiler: INOTIFYD
inotifyd
Spoiler: INOTIFYD COMMANDS
usage: inotifyd PROG FILE[:MASK] ...
When a filesystem event matching MASK occurs to a FILE, run PROG as:
PROG EVENTS FILE [DIRFILE]
If PROG is "-" events are sent to stdout.
This file is:
a accessed c modified e metadata change w closed (writable)
r opened D deleted M moved 0 closed (unwritable)
u unmounted o overflow x unwatchable
A file in this directory is:
m moved in y moved out n created d deleted
When x event happens for all FILEs, inotifyd exits (after waiting for PROG).
Spoiler: INPUT
input
Spoiler: INPUT COMMANDS
Usage: input [<source>] [-d DISPLAY_ID] <command> [<arg>...]
The sources are:
dpad
keyboard
mouse
touchpad
gamepad
touchnavigation
joystick
touchscreen
stylus
trackball
-d: specify the display ID.
(Default: -1 for key event, 0 for motion event if not specified.)
The commands and default sources are:
text <string> (Default: touchscreen)
keyevent [--longpress] <key code number or name> ... (Default: keyboard)
tap <x> <y> (Default: touchscreen)
swipe <x1> <y1> <x2> <y2> [duration(ms)] (Default: touchscreen)
draganddrop <x1> <y1> <x2> <y2> [duration(ms)] (Default: touchscreen)
press (Default: trackball)
roll <dx> <dy> (Default: trackball)
motionevent <DOWN|UP|MOVE> <x> <y> (Default: touchscreen)
Spoiler: ALL BIN SYSTEMS CONTINUED PART 6 (I-L)
Spoiler: INSMOD
insmod
Spoiler: INSMOD COMMANDS
usage: insmod MODULE [MODULE_OPTIONS]
Load the module named MODULE passing options if given.
Spoiler: INSTALL
install
Spoiler: INSTALL COMMANDS
usage: install [-dDpsv] [-o USER] [-g GROUP] [-m MODE] [SOURCE...] DEST
Copy files and set attributes.
-d Act like mkdir -p
-D Create leading directories for DEST
-g Make copy belong to GROUP
-m Set permissions to MODE
-o Make copy belong to USER
-p Preserve timestamps
-s Call "strip -p"
-v Verbose
Spoiler: INSTALLD
installd
inaccessible or not found
Spoiler: IONICE
ionice
Spoiler: IONICE COMMANDS
usage: ionice [-t] [-c CLASS] [-n LEVEL] [COMMAND...|-p PID]
Change the I/O scheduling priority of a process. With no arguments
(or just -p), display process' existing I/O class/priority.
-c CLASS = 1-3: 1(realtime), 2(best-effort, default), 3(when-idle)
-n LEVEL = 0-7: (0 is highest priority, default = 5)
-p Affect existing PID instead of spawning new child
-t Ignore failure to set I/O priority
System default iopriority is generally -c 2 -n 4.
Spoiler: IORAP.CMD.COMPILER
iorap.cmd.compiler
Spoiler: IORAP.CMD.COMPILER COMMANDS
Usage: iorap.cmd.compiler [--output-proto=output.pb] input1.pb [input2.pb ...]
Request a compilation of multiple inputs (format: PerfettoTraceProto).
The result is a TraceFile, representing a merged compiled trace with inodes resolved.
Optional flags:
--help,-h Print this Usage.
--blacklist-filter,-bf Specify regex acting as a blacklist filter.
Filepaths matching this regex are removed from the output file.
--output-text,-ot Output ascii text instead of protobuf (default off).
--output-proto $,-op $ TraceFile tracebuffer output file (default stdout).
--inode-textcache $,-it $ Resolve inode->filename from textcache (disables diskscan).
--verbose,-v Set verbosity (default off).
--wait,-w Wait for key stroke before continuing (default off).
--timestamp_limit_ns,-tl Set the limit timestamp in nanoseconds for the compiled trace. The order and size of the timestamp should match that of the input trace files. If not specified at all, All ofthe timestamps are set to max.
Spoiler: IORAPD
iorapd
inaccessible or not found
Spoiler: IORENICE
iorenice
Spoiler: IORENICE COMMANDS
usage: iorenice PID [CLASS] [PRIORITY]
Display or change I/O priority of existing process. CLASS can be
"rt" for realtime, "be" for best effort, "idle" for only when idle, or
"none" to leave it alone. PRIORITY can be 0-7 (0 is highest, default 4).
Spoiler: IP
ip
Spoiler: IP COMMANDS
Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }
ip [ -force ] -batch filename
where OBJECT := { link | address | addrlabel | route | rule | neigh | ntable |
tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm |
netns | l2tp | fou | macsec | tcp_metrics | token | netconf | ila |
vrf | sr }
OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |
-h[uman-readable] | -iec |
-f[amily] { inet | inet6 | ipx | dnet | mpls | bridge | link } |
-4 | -6 | -I | -D | -B | -0 |
-l[oops] { maximum-addr-flush-attempts } | -br[ief] |
-o[neline] | -t[imestamp] | -ts[hort] | -b[atch] [filename] |
-rc[vbuf] [size] | -n[etns] name | -a[ll] | -c[olor]}
Spoiler: IP-WRAPPER-1.0
ip-wrapper-1.0
inaccessible or not found
Spoiler: IP6TABLES
ip6tables
Spoiler: SHELL PICTURES CONTINUED
Spoiler: IP6TABLES COMMANDS
ip6tables v1.8.4
Usage: ip6tables -[ACD] chain rule-specification [options]
ip6tables -I chain [rulenum] rule-specification [options]
ip6tables -R chain rulenum rule-specification [options]
ip6tables -D chain rulenum [options]
ip6tables -[LS] [chain [rulenum]] [options]
ip6tables -[FZ] [chain] [options]
ip6tables -[NX] chain
ip6tables -E old-chain-name new-chain-name
ip6tables -P chain target [options]
ip6tables -h (print this help information)
Commands:
Either long or short options are allowed.
--append -A chain Append to chain
--check -C chain Check for the existence of a rule
--delete -D chain Delete matching rule from chain
--delete -D chain rulenum
Delete rule rulenum (1 = first) from chain
--insert -I chain [rulenum]
Insert in chain as rulenum (default 1=first)
--replace -R chain rulenum
Replace rule rulenum (1 = first) in chain
--list -L [chain [rulenum]]
List the rules in a chain or all chains
--list-rules -S [chain [rulenum]]
Print the rules in a chain or all chains
--flush -F [chain] Delete all rules in chain or all chains
--zero -Z [chain [rulenum]]
Zero counters in chain or all chains
--new -N chain Create a new user-defined chain
--delete-chain
-X [chain] Delete a user-defined chain
--policy -P chain target
Change policy on chain to target
--rename-chain
-E old-chain new-chain
Change chain name, (moving any references)
Options:
--ipv4 -4 Error (line is ignored by ip6tables-restore)
--ipv6 -6 Nothing (line is ignored by iptables-restore)
[!] --protocol -p proto protocol: by number or name, eg. `tcp'
[!] --source -s address[/mask][,...]
source specification
[!] --destination -d address[/mask][,...]
destination specification
[!] --in-interface -i input name[+]
network interface name ([+] for wildcard)
--jump -j target
target for rule (may load target extension)
--goto -g chain
jump to chain with no return
--match -m match
extended match (may load extension)
--numeric -n numeric output of addresses and ports
[!] --out-interface -o output name[+]
network interface name ([+] for wildcard)
--table -t table table to manipulate (default: `filter')
--verbose -v verbose mode
--wait -w [seconds] maximum wait to acquire xtables lock before give up
--wait-interval -W [usecs] wait time to try to acquire xtables lock
interval to wait for xtables lock
default is 1 second
--line-numbers print line numbers when listing
--exact -x expand numbers (display exact values)
--modprobe=<command> try to insert modules using this command
--set-counters PKTS BYTES set the counter during insert/append
[!] --version -V print package version.
Spoiler: IP6TABLES-RESTORE
ip6tables-restore
Spoiler: IP6TABLES-RESTORE COMMANDS
Usage: ip6tables-restore [-c] [-v] [-V] [-t] [-h] [-n] [-w secs] [-W usecs] [-T table] [-M command] [file]
[ --counters ]
[ --verbose ]
[ --version]
[ --test ]
[ --help ]
[ --noflush ]
[ --wait=<seconds>
[ --wait-interval=<usecs>
[ --table=<TABLE> ]
[ --modprobe=<command> ]
Spoiler: IP6TABLES-SAVE
ip6tables-save
Failed to list table names in /proc/net/ip6_tables_names: Permission denied
Spoiler: IP6TABLES-WRAPPER-1.0
ip6tables-wrapper-1.0
inaccessible or not found
Spoiler: IPTABLES
iptables
Spoiler: SHELL PICTURES CONTINUED
Spoiler: IPTABLES COMMANDS
Usage: iptables -[ACD] chain rule-specification [options]
iptables -I chain [rulenum] rule-specification [options]
iptables -R chain rulenum rule-specification [options]
iptables -D chain rulenum [options]
iptables -[LS] [chain [rulenum]] [options]
iptables -[FZ] [chain] [options]
iptables -[NX] chain
iptables -E old-chain-name new-chain-name
iptables -P chain target [options]
iptables -h (print this help information)
Commands:
Either long or short options are allowed.
--append -A chain Append to chain
--check -C chain Check for the existence of a rule
--delete -D chain Delete matching rule from chain
--delete -D chain rulenum
Delete rule rulenum (1 = first) from chain
--insert -I chain [rulenum]
Insert in chain as rulenum (default 1=first)
--replace -R chain rulenum
Replace rule rulenum (1 = first) in chain
--list -L [chain [rulenum]]
List the rules in a chain or all chains
--list-rules -S [chain [rulenum]]
Print the rules in a chain or all chains
--flush -F [chain] Delete all rules in chain or all chains
--zero -Z [chain [rulenum]]
Zero counters in chain or all chains
--new -N chain Create a new user-defined chain
--delete-chain
-X [chain] Delete a user-defined chain
--policy -P chain target
Change policy on chain to target
--rename-chain
-E old-chain new-chain
Change chain name, (moving any references)
Options:
--ipv4 -4 Nothing (line is ignored by ip6tables-restore)
--ipv6 -6 Error (line is ignored by iptables-restore)
[!] --protocol -p proto protocol: by number or name, eg. `tcp'
[!] --source -s address[/mask][...]
source specification
[!] --destination -d address[/mask][...]
destination specification
[!] --in-interface -i input name[+]
network interface name ([+] for wildcard)
--jump -j target
target for rule (may load target extension)
--goto -g chain
jump to chain with no return
--match -m match
extended match (may load extension)
--numeric -n numeric output of addresses and ports
[!] --out-interface -o output name[+]
network interface name ([+] for wildcard)
--table -t table table to manipulate (default: `filter')
--verbose -v verbose mode
--wait -w [seconds] maximum wait to acquire xtables lock before give up
--wait-interval -W [usecs] wait time to try to acquire xtables lock
default is 1 second
--line-numbers print line numbers when listing
--exact -x expand numbers (display exact values)
[!] --fragment -f match second or further fragments only
--modprobe=<command> try to insert modules using this command
--set-counters PKTS BYTES set the counter during insert/append
[!] --version -V print package version.
Spoiler: IPTABLES-RESTORE
iptables-restore
Spoiler: IPTABLES-RESTORE COMMANDS
Usage: iptables-restore [-c] [-v] [-V] [-t] [-h] [-n] [-w secs] [-W usecs] [-T table] [-M command] [file]
[ --counters ]
[ --verbose ]
[ --version]
[ --test ]
[ --help ]
[ --noflush ]
[ --wait=<seconds>
[ --wait-interval=<usecs>
[ --table=<TABLE> ]
[ --modprobe=<command> ]
Spoiler: IPTABLES-SAVE
iptables-save
Failed to list table names in /proc/net/ip_tables_names: Permission denied
Look at manual page `iptables-save.8' for more information.
Spoiler: IPTABLES-WRAPPER-1.0
iptables-wrapper-1.0
inaccessible or not found
Spoiler: KEYSTORE
keystore
inaccessible or not found
Spoiler: KEYSTORE_CLI_V2
keystore_cli_v2
Spoiler: KEYSTORE_CLI_V2 COMMANDS
Commands: brillo-platform-test [--prefix=<test_name_prefix>] [--test_for_0_3]
list-brillo-tests
add-entropy --input=<entropy> [--seclevel=software|strongbox|tee(default)]
generate --name=<key_name> [--seclevel=software|strongbox|tee(default)]
get-chars --name=<key_name>
export --name=<key_name>
delete --name=<key_name>
delete-all
exists --name=<key_name>
list [--prefix=<key_name_prefix>]
list-apps-with-keys
sign-verify --name=<key_name>
[en|de]crypt --name=<key_name> --in=<file> --out=<file>
[--seclevel=software|strongbox|tee(default)]
confirmation --prompt_text=<PromptText> --extra_data=<hex>
--locale=<locale> [--ui_options=<list_of_ints>]
--cancel_after=<seconds>
Spoiler: KILL
kill
Spoiler: KILL COMMANDS
usage: kill [-s signame | -signum | -signame] { job | pid | pgrp } ...
kill -l [exit_status ...]
Spoiler: KILLALL
killall
Spoiler: KILLALL COMMANDS
usage: killall [-l] [-iqv] [-SIGNAL|-s SIGNAL] PROCESS_NAME...
Send a signal (default: TERM) to all processes with the given names.
-i Ask for confirmation before killing
-l Print list of all available signals
-q Don't print any warnings or error messages
-s Send SIGNAL instead of SIGTERM
-v Report if the signal was successfully sent
-w Wait until all signaled processes are dead
Spoiler: KPOC_CHARGER
kpoc_charger
inaccessible or not found
Spoiler: LBS_DBG
lbs_dbg
inaccessible or not found
Spoiler: LCDC_SCREEN_CAP
lcdc_screen_cap
did not halt shell, not immediately evident what it did
Spoiler: LD.MC
ld.mc
Spoiler: SHELL PICTURES CONTINUED
Spoiler: LD.MC COMMANDS
OVERVIEW: MCLinker
USAGE: ld.mc [options] <inputs>
DYNAMIC OPTIONS:
--allow-multiple-definition
Allow multiple definitions
-Bgroup Info the dynamic linker to lookup only inside the group
-Bsymbolic Bind references within the shared library
--dynamic-linker=<value>
Set the name of the dynamic linker
--enable-new-dtags Enable use of DT_RUNPATH and DT_FLAGS
--entry=<value> Use the explicit symbol as the entrance of your program
--no-undefined Do not allow unresolved references
-soname=<value> Set internal name of shared library
--spare-dynamic-tags <value>
Set the number of spare dyanmic tags (DT_NULL)
-z <value> Extensions for GNU ld compatibility
OPTIMIZATION OPTIONS:
--gc-sections Enable garbage collection of unused input sections
--icf-iterations <value>
Set number of iterations to do ICF
--icf=<value> Identical Code Folding
--ld-generated-unwind-info
Request creation of unwind info for linker generated code sections like PLT
--no-gc-sections Disable garbage collection of unused input sections
--no-ld-generated-unwind-info
Don't create unwind info for linker generated sections to save size
--no-print-gc-sections Do not list sections removed by garbage collection
--no-print-icf-sections Do not list sections folded by ICF
--print-gc-sections List all sections removed by garbage collection
--print-icf-sections List all sections folded by ICF
OUTPUT OPTIONS:
-Bdynamic Link against dynamic library
-Bstatic Link against static library
--discard-all Discard all local symbols
--discard-debug Discard all temporary local symbols
--eh-frame-hdr Request creation of .eh_frame_hdr section and PT_GNU_EH_FRAME segment
--exclude-libs <value> Allow linking together mismatched input files
--export-dynamic Export all dynamic symbols
--format=<value> Specify the binary format for input object files that follow this option on the command line
--hash-style=<value> Set the type of linker's hash table(s)
--nmagic Do not page align data
--no-export-dynamic Not export all dynamic symbols
--no-warn-mismatch Allow linking together mismatched input files
--oformat=<value> Output format
--omagic Do not page align data, do not make text readonly
-o <value> Output filename
-pie Emit a position-independent executable file
--relocatable Generate relocatable output
-shared Create a shared library
--strip-all Omit all symbol information from the output file
--strip-debug Omit debugger symbol information from the output file
POSITIONAL OPTIONS:
--add-needed Deprecated
--as-needed Add the dynamic libraries mentioned to DT_NEEDED where there is a non-weak undefined symbol reference from
--copy-dt-needed-entries
Add the dynamic libraries mentioned to DT_NEEDED
--end-group Stop recording a group of archives
--library=<value> Add the archive or object file specified by namespec to the list of files to link
--no-add-needed Deprecated
--no-as-needed Turn off the effect of the --as-needed
--no-copy-dt-needed-entries
Turn off the effect of the --copy-dt-needed-entries
--no-whole-archive Turn off the effect of the --whole-archive option
--script=<value> Use the given file as the linker script
--start-group Start to record a group of archives
--whole-archive Include every object file in the archive in the link
PREFERENCE OPTIONS:
--color=<value> Surround the result strings with the marker
--error-limit=<value> Set the maximum limit of errors
--fatal-warnings Turn all warnings into errors
-help Display available options (to standard output)
--no-fatal-warnings Do not turn all warnings into errors
--trace Print the names of the input files as ld processes them
--verbose=<value> Set linker diagnostic output level
--version Display MCLinker version
--warn-shared-textrel Warn if there is a text relocation in the output shared object
--warning-limit=<value> Set the maximum limit of warnings
SCRIPT OPTIONS:
--defsym=<value> Define a symbol
--portable=<value> Use a portable function for the symbol
--section-start=<value> Locate a output section at the given absolute address
-Tbss=<value> Set the address of the bss segment
-Tdata=<value> Set the address of the data segment
-Ttext=<value> Set the address of the text segment
--wrap=<value> Use a wrap function for the symbol
SEARCHPATH OPTIONS:
--library-path=<value> Add the given directory to the list of search paths
-nostdlib Only search lib dirs explicitly specified on cmdline
-rpath=<value> Add a directory to the runtime library search path
--sysroot=<value> Use the given directory as the location of the sysroot
SYMBOL OPTIONS:
-d Define common symbol
--undefined=<value> Force symbol to be undefined in the output file
TARGET OPTIONS:
--fix-cortex-a53-835769 Enable fix for cortex a53 erratum 835769
--fix-cortex-a53-843419 Enable fix for cortex a53 erratum 843419
--gpsize=<value> Set the maximum size of objects to be optimized using GP
-march=<value> Architecture to generate code for
-mcpu=<value> Set a specific cpu type
-mtriple=<value> Override target triple for module
-m <value> Set GNU linker emulation
--stub-group-size=<value>
Set the group size to place stubs between sections
Spoiler: ALL BIN SYSTEMS CONTINUED PART 7 (L)
Spoiler: LDD
ldd
Spoiler: LDD COMMANDS
usage: ldd FILE
file: No 'h' with 'L' (see "file --help")
Spoiler: LIBRANK
librank
Spoiler: LIBRANK COMMANDS
Usage: librank [ -P | -L ] [ -v | -r | -p | -u | -s | -h ]
Sort options:
-v Sort processes by VSS.
-r Sort processes by RSS.
-p Sort processes by PSS.
-u Sort processes by USS.
-s Sort processes by swap.
(Default sort order is PSS.)
-a Show all mappings, including stack, heap and anon.
-P /path Limit libraries displayed to those in path.
-R Reverse sort order (default is descending).
-m [r][w][x] Only list pages that exactly match permissions
-c Only show cached (storage backed) pages
-C Only show non-cached (ram/swap backed) pages
-k Only show pages collapsed by KSM
-h Display this help screen.
Spoiler: PRINTED THIS
RSStot VSS RSS PSS USS Name/PID
Spoiler: LINKER
linker
Spoiler: LINKER COMMANDS
Usage: linker [--list] PROGRAM [ARGS-FOR-PROGRAM...]
linker [--list] path.zip!/PROGRAM [ARGS-FOR-PROGRAM...]
A helper program for linking dynamic executables. Typically, the kernel loads
this program because it's the PT_INTERP of a dynamic executable.
This program can also be run directly to load and run a dynamic executable. The
executable can be inside a zip file if it's stored uncompressed and at a
page-aligned offset.
The --list option gives behavior equivalent to ldd(1) on other systems.
Spoiler: LINKER KNOWLEDGE
Introduction of Compiler Design - GeeksforGeeks
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
www.geeksforgeeks.org
Linker - GeeksforGeeks
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
www.geeksforgeeks.org
Linker Namespace | Android Open Source Project
source.android.com
Spoiler: LINKER64
linker64
Spoiler: LINKER64 COMMANDS
Usage: linker64 [--list] PROGRAM [ARGS-FOR-PROGRAM...]
linker64 [--list] path.zip!/PROGRAM [ARGS-FOR-PROGRAM...]
A helper program for linking dynamic executables. Typically, the kernel loads
this program because it's the PT_INTERP of a dynamic executable.
This program can also be run directly to load and run a dynamic executable. The
executable can be inside a zip file if it's stored uncompressed and at a
page-aligned offset.
The --list option gives behavior equivalent to ldd(1) on other systems.
Spoiler: LINKER_ASAN
linker_asan
Spoiler: LINKER_ASAN COMMANDS
Usage: linker_asan [--list] PROGRAM [ARGS-FOR-PROGRAM...]
linker_asan [--list] path.zip!/PROGRAM [ARGS-FOR-PROGRAM...]
A helper program for linking dynamic executables. Typically, the kernel loads
this program because it's the PT_INTERP of a dynamic executable.
This program can also be run directly to load and run a dynamic executable. The
executable can be inside a zip file if it's stored uncompressed and at a
page-aligned offset.
The --list option gives behavior equivalent to ldd(1) on other systems.
Spoiler: LINKER_ASAN64
linker_asan64
Spoiler: LINKER_ASAN64 COMMANDS
Usage: linker_asan64 [--list] PROGRAM [ARGS-FOR-PROGRAM...]
linker_asan64 [--list] path.zip!/PROGRAM [ARGS-FOR-PROGRAM...]
A helper program for linking dynamic executables. Typically, the kernel loads
this program because it's the PT_INTERP of a dynamic executable.
This program can also be run directly to load and run a dynamic executable. The
executable can be inside a zip file if it's stored uncompressed and at a
page-aligned offset.
The --list option gives behavior equivalent to ldd(1) on other systems.
Spoiler: LINKERCONFIG
linkerconfig
inaccessible or not found
Spoiler: LMKD
lmkd
inaccessible or not found
Spoiler: LN
ln
Spoiler: LN COMMANDS
usage: ln [-sfnv] [-t DIR] [FROM...] TO
Create a link between FROM and TO.
One/two/many arguments work like "mv" or "cp".
-s Create a symbolic link
-f Force the creation of the link, even if TO already exists
-n Symlink at TO treated as file
-r Create relative symlink from -> to
-t Create links in DIR
-T TO always treated as file, max 2 arguments
-v Verbose
Spoiler: LOAD_POLICY
load_policy
Spoiler: LOAD_POLICY COMMANDS
usage: load_policy FILE
Load the specified SELinux policy file.
Spoiler: LOCKSETTINGS
locksettings
Spoiler: LOCKSETTINGS COMMANDS
usage: locksettings set-pattern [--old OLD_CREDENTIAL] NEW_PATTERN
locksettings set-pin [--old OLD_CREDENTIAL] NEW_PIN
locksettings set-password [--old OLD_CREDENTIAL] NEW_PASSWORD
locksettings clear [--old OLD_CREDENTIAL]
locksettings verify [--old OLD_CREDENTIAL]
locksettings set-disabled DISABLED
locksettings get-disabled
flags:
--user USER_ID: specify the user, default value is current user
locksettings set-pattern: sets a pattern
A pattern is specified by a non-separated list of numbers that index the cell
on the pattern in a 1-based manner in left to right and top to bottom order,
i.e. the top-left cell is indexed with 1, whereas the bottom-right cell
is indexed with 9. Example: 1234
locksettings set-pin: sets a PIN
locksettings set-password: sets a password
locksettings clear: clears the unlock credential
locksettings verify: verifies the credential and unlocks the user
locksettings set-disabled: sets whether the lock screen should be disabled
locksettings get-disabled: retrieves whether the lock screen is disabled
Spoiler: LOG
log
Spoiler: LOG COMMANDS
usage: log [-p PRI] [-t TAG] MESSAGE...
Logs message to logcat.
-p Use the given priority instead of INFO:
d: DEBUG e: ERROR f: FATAL i: INFO v: VERBOSE w: WARN s: SILENT
-t Use the given tag instead of "log"
Spoiler: LOGCAT
logcat
floods screen with lots of info
Spoiler: LOGD
logd
inaccessible or not found
Spoiler: LOGNAME
logname
Spoiler: LOGNAME COMMANDS
usage: logname
Print the current user name.
THE CURRENT USERNAME IS:
shell
Spoiler: LOGWRAPPER
logwrapper
Spoiler: LOGWRAPPER COMMANDS
Usage: logwrapper [-a] [-d] [-k] BINARY [ARGS ...]
Forks and executes BINARY ARGS, redirecting stdout and stderr to
the Android logging system. Tag is set to BINARY, priority is
always LOG_INFO.
-a: Causes logwrapper to do abbreviated logging.
This logs up to the first 4K and last 4K of the command
being run, and logs the output when the command exits
-d: Causes logwrapper to SIGSEGV when BINARY terminates
fault address is set to the status of wait()
-k: Causes logwrapper to log to the kernel log instead of
the Android system log
Spoiler: LOSETUP
losetup
Spoiler: LOSETUP COMMANDS
usage: losetup [-cdrs] [-o OFFSET] [-S SIZE] {-d DEVICE...|-j FILE|-af|{DEVICE FILE}}
Associate a loopback device with a file, or show current file (if any)
associated with a loop device.
Instead of a device:
-a Iterate through all loopback devices
-f Find first unused loop device (may create one)
-j FILE Iterate through all loopback devices associated with FILE
existing:
-c Check capacity (file size changed)
-d DEV Detach loopback device
-D Detach all loopback devices
new:
-s Show device name (alias --show)
-o OFF Start association at offset OFF into FILE
-r Read only
-S SIZE Limit SIZE of loopback association (alias --sizelimit)
Spoiler: LPDUMP
lpdump
Spoiler: LPDUMP COMMANDS
lpdump - command-line tool for dumping Android Logical Partition images.
Usage:
lpdump [-s <SLOT#>|--slot=<SLOT#>] [-j|--json] [FILE|DEVICE]
Options:
-s, --slot=N Slot number or suffix.
-j, --json Print in JSON format.
-d, --dump-metadata-size
Print the space reserved for metadata to stdout
in bytes.
-a, --all Dump all slots (not available in JSON mode).
Spoiler: PRINTS THIS
Slot 1:
Metadata version: 10.2
Metadata size: 1264 bytes
Metadata max size: 65536 bytes
Metadata slot count: 3
Header flags: virtual_ab_device
Partition table:
------------------------
Name: product_b
Group: main_b
Attributes: readonly,updated
Extents:
0 .. 3230439 linear super 2048
3230440 .. 3539863 linear super 7767304
------------------------
Name: vendor_b
Group: main_b
Attributes: readonly,updated
Extents:
0 .. 880751 linear super 3233792
880752 .. 880967 linear super 7767088
880968 .. 880975 linear super 8076728
------------------------
Name: odm_b
Group: main_b
Attributes: readonly,updated
Extents:
0 .. 298447 linear super 4116480
------------------------
Name: system_b
Group: main_b
Attributes: readonly,updated
Extents:
0 .. 3201423 linear super 4485120
3201424 .. 3202727 linear super 3232488
3202728 .. 3204663 linear super 4114544
3204664 .. 3274855 linear super 4414928
3274856 .. 3355399 linear super 7686544
3355400 .. 3355599 linear super 8076736
------------------------
Name: product_b-cow
Group: cow
Attributes: none
Extents:
0 .. 201039 linear super 8076936
------------------------
Name: vendor_b-cow
Group: cow
Attributes: none
Extents:
0 .. 633871 linear super 8277976
------------------------
Name: odm_b-cow
Group: cow
Attributes: none
Extents:
0 .. 6615 linear super 8911848
------------------------
Name: system_b-cow
Group: cow
Attributes: none
Extents:
0 .. 2103783 linear super 8918464
------------------------
Super partition layout:
------------------------
super: 2048 .. 3232488: product_b (3230440 sectors)
super: 3232488 .. 3233792: system_b (1304 sectors)
super: 3233792 .. 4114544: vendor_b (880752 sectors)
super: 4114544 .. 4116480: system_b (1936 sectors)
super: 4116480 .. 4414928: odm_b (298448 sectors)
super: 4414928 .. 4485120: system_b (70192 sectors)
super: 4485120 .. 7686544: system_b (3201424 sectors)
super: 7686544 .. 7767088: system_b (80544 sectors)
super: 7767088 .. 7767304: vendor_b (216 sectors)
super: 7767304 .. 8076728: product_b (309424 sectors)
super: 8076728 .. 8076736: vendor_b (8 sectors)
super: 8076736 .. 8076936: system_b (200 sectors)
super: 8076936 .. 8277976: product_b-cow (201040 sectors)
super: 8277976 .. 8911848: vendor_b-cow (633872 sectors)
super: 8911848 .. 8918464: odm_b-cow (6616 sectors)
super: 8918464 .. 11022248: system_b-cow (2103784 sectors)
------------------------
Block device table:
------------------------
Partition name: super
First sector: 2048
Size: 6442450944 bytes
Flags: none
------------------------
Group table:
------------------------
Name: default
Maximum size: 0 bytes
Flags: none
------------------------
Name: main_b
Maximum size: 6440353792 bytes
Flags: none
------------------------
Name: cow
Maximum size: 0 bytes
Flags: none
------------------------
Spoiler: LPDUMP INFO
OTA for A/B Devices with Dynamic Partitions | Android Open Source Project
source.android.com
""""You can use the lpdump tool (source code under system/extras/partition_tools) to dump the metadata on your device. For example:
lpdump --slot 0 /dev/block/bootdevice/by-name/super
lpdump --slot 1 /dev/block/bootdevice/by-name/super""""
Spoiler: LPDUMPD
lpdumpd
inaccessible or not found
Spoiler: LS
ls
lists the files and folders in the current directory
Spoiler: LSATTR
lsattr
Spoiler: LSATTR COMMANDS
usage: lsattr [-Radlpv] [FILE...]
List file attributes on a Linux file system.
Flag letters are defined in chattr help.
-R Recursively list attributes of directories and their contents
-a List all files in directories, including files that start with '.'
-d List directories like other files, rather than listing their contents
-l List long flag names
-p List the file's project number
-v List the file's version/generation number
Spoiler: PRINTS THIS
--------------e----- ./AudioSetParam
--------------e----- ./abb
--------------e----- ./acpi
--------------e----- ./am
lsattr: ./apexd: Permission denied
--------------e----- ./app_process
--------------e----- ./app_process32
--------------e----- ./app_process64
--------------e----- ./appops
--------------e----- ./appwidget
--------------e----- ./atrace
lsattr: ./audioserver: Permission denied
lsattr: ./auditctl: Permission denied
--------------e----- ./awk
--------------e----- ./badblocks
--------------e----- ./base64
--------------e----- ./basename
lsattr: ./batterywarning: Permission denied
--------------e----- ./bc
--------------e----- ./bcc
lsattr: ./blank_screen: Permission denied
lsattr: ./blkid: Permission denied
--------------e----- ./blockdev
--------------e----- ./bmgr
lsattr: ./boot_logo_updater: Permission denied
lsattr: ./bootanimation: Permission denied
lsattr: ./bootstat: Permission denied
--------------e----- ./bootstrap
lsattr: ./boringssl_self_test32: Permission denied
lsattr: ./boringssl_self_test64: Permission denied
lsattr: ./bpfloader: Permission denied
--------------e----- ./bu
--------------e----- ./bugreport
--------------e----- ./bugreportz
--------------e----- ./bunzip2
--------------e----- ./bzcat
--------------e----- ./bzip2
--------------e----- ./cal
lsattr: ./camerapostalgo: Permission denied
lsattr: ./cameraserver: Permission denied
--------------e----- ./cat
lsattr: ./charger: Permission denied
--------------e----- ./chattr
--------------e----- ./chcon
--------------e----- ./chgrp
--------------e----- ./chmod
--------------e----- ./chown
--------------e----- ./chroot
--------------e----- ./chrt
--------------e----- ./cksum
lsattr: ./clatd: Permission denied
--------------e----- ./clear
--------------e----- ./cmd
--------------e----- ./cmp
--------------e----- ./comm
--------------e----- ./content
--------------e----- ./cp
--------------e----- ./cpio
lsattr: ./cppreopts.sh: Permission denied
--------------e----- ./crash_dump32
--------------e----- ./crash_dump64
lsattr: ./credstore: Permission denied
--------------e----- ./cut
--------------e----- ./dalvikvm
--------------e----- ./date
--------------e----- ./dd
--------------e----- ./debuggerd
lsattr: reading './defrag.f2fs': Permission denied
--------------e----- ./device_config
--------------e----- ./devmem
lsattr: ./dex2oat: Permission denied
--------------e----- ./df
--------------e----- ./diff
--------------e----- ./dirname
--------------e----- ./disable-verity
--------------e----- ./dmctl
--------------e----- ./dmesg
lsattr: ./dnsmasq: Permission denied
--------------e----- ./dos2unix
--------------e----- ./dpm
lsattr: ./drmserver: Permission denied
--------------e----- ./du
lsattr: reading './dump.f2fs': Permission denied
lsattr: ./dumpstate: Permission denied
--------------e----- ./dumpsys
--------------e----- ./e2freefrag
lsattr: ./e2fsck: Permission denied
lsattr: ./e2fsdroid: Permission denied
--------------e----- ./echo
--------------e----- ./egrep
--------------e----- ./enable-verity
--------------e----- ./env
--------------e----- ./expand
--------------e----- ./expr
--------------e----- ./fallocate
--------------e----- ./false
--------------e----- ./fgrep
--------------e----- ./file
--------------e----- ./find
lsattr: ./flags_health_check: Permission denied
--------------e----- ./flock
--------------e----- ./fmt
--------------e----- ./free
lsattr: ./fsck.f2fs: Permission denied
lsattr: ./fsck_msdos: Permission denied
lsattr: ./fsverity_init: Permission denied
--------------e----- ./fsync
lsattr: ./gatekeeperd: Permission denied
--------------e----- ./getconf
--------------e----- ./getenforce
--------------e----- ./getevent
--------------e----- ./getprop
lsattr: ./gpuservice: Permission denied
--------------e----- ./grep
--------------e----- ./groups
--------------e----- ./gsi_tool
lsattr: ./gsid: Permission denied
--------------e----- ./gunzip
--------------e----- ./gzip
--------------e----- ./head
lsattr: ./heapprofd: Permission denied
--------------e----- ./hid
--------------e----- ./hostname
--------------e----- ./hw
--------------e----- ./hwclock
lsattr: ./hwservicemanager: Permission denied
--------------e----- ./i2cdetect
--------------e----- ./i2cdump
--------------e----- ./i2cget
--------------e----- ./i2cset
--------------e----- ./iconv
--------------e----- ./id
lsattr: ./idmap2: Permission denied
lsattr: ./idmap2d: Permission denied
--------------e----- ./ifconfig
--------------e----- ./ime
--------------e----- ./incident
--------------e----- ./incident-helper-cmd
lsattr: ./incident_helper: Permission denied
lsattr: ./incidentd: Permission denied
lsattr: ./init: Permission denied
--------------e----- ./inotifyd
--------------e----- ./input
--------------e----- ./insmod
--------------e----- ./install
lsattr: ./installd: Permission denied
--------------e----- ./ionice
--------------e----- ./iorap.cmd.compiler
--------------e----- ./iorap.cmd.maintenance
lsattr: ./iorap.inode2filename: Permission denied
lsattr: ./iorap.prefetcherd: Permission denied
lsattr: ./iorapd: Permission denied
--------------e----- ./iorenice
--------------e----- ./ip
lsattr: reading './ip-wrapper-1.0': Permission denied
--------------e----- ./ip6tables
--------------e----- ./ip6tables-restore
--------------e----- ./ip6tables-save
lsattr: reading './ip6tables-wrapper-1.0': Permission denied
--------------e----- ./iptables
--------------e----- ./iptables-restore
--------------e----- ./iptables-save
lsattr: reading './iptables-wrapper-1.0': Permission denied
lsattr: ./keystore: Permission denied
--------------e----- ./keystore_cli_v2
--------------e----- ./kill
--------------e----- ./killall
lsattr: ./kpoc_charger: Permission denied
lsattr: ./lbs_dbg: Permission denied
--------------e----- ./lcdc_screen_cap
--------------e----- ./ld.mc
--------------e----- ./ldd
--------------e----- ./librank
--------------e----- ./linker
--------------e----- ./linker64
--------------e----- ./linker_asan
--------------e----- ./linker_asan64
lsattr: ./linkerconfig: Permission denied
lsattr: ./lmkd: Permission denied
--------------e----- ./ln
--------------e----- ./load_policy
--------------e----- ./locksettings
--------------e----- ./log
--------------e----- ./logcat
lsattr: ./logd: Permission denied
--------------e----- ./logname
--------------e----- ./logwrapper
--------------e----- ./losetup
--------------e----- ./lpdump
lsattr: ./lpdumpd: Permission denied
--------------e----- ./ls
--------------e----- ./lsattr
--------------e----- ./lshal
--------------e----- ./lsmod
--------------e----- ./lsof
--------------e----- ./lspci
--------------e----- ./lsusb
lsattr: ./make_f2fs: Permission denied
--------------e----- ./md5sum
lsattr: ./mdnsd: Permission denied
lsattr: ./mediaextractor: Permission denied
lsattr: ./mediametrics: Permission denied
lsattr: ./mediaserver: Permission denied
--------------e----- ./microcom
--------------e----- ./mifunctiontest
lsattr: ./migrate_legacy_obb_data.sh: Permission denied
--------------e----- ./mini-keyctl
--------------e----- ./mkdir
lsattr: ./mke2fs: Permission denied
--------------e----- ./mkfifo
lsattr: reading './mkfs.ext2': Permission denied
lsattr: reading './mkfs.ext3': Permission denied
lsattr: reading './mkfs.ext4': Permission denied
--------------e----- ./mknod
--------------e----- ./mkswap
--------------e----- ./mktemp
--------------e----- ./modinfo
--------------e----- ./modprobe
--------------e----- ./monkey
--------------e----- ./more
--------------e----- ./mount
--------------e----- ./mountpoint
--------------e----- ./move_widevine_data.sh
lsattr: ./mtk_plpath_utils: Permission denied
lsattr: ./mtpd: Permission denied
--------------e----- ./mv
--------------e----- ./nc
--------------e----- ./ndc
lsattr: reading './ndc-wrapper-1.0': Permission denied
--------------e----- ./netcat
lsattr: ./netd: Permission denied
--------------e----- ./netstat
--------------e----- ./nice
lsattr: ./netutils-wrapper-1.0: Permission denied
--------------e----- ./newfs_msdos
--------------e----- ./nl
--------------e----- ./nohup
lsattr: ./notify_traceur.sh: Permission denied
--------------e----- ./nproc
--------------e----- ./nsenter
--------------e----- ./od
--------------e----- ./oem-iptables-init.sh
--------------e----- ./otapreopt
lsattr: ./otapreopt_chroot: Permission denied
--------------e----- ./otapreopt_script
lsattr: ./otapreopt_slot: Permission denied
--------------e----- ./paste
--------------e----- ./patch
--------------e----- ./perfetto
--------------e----- ./pgrep
--------------e----- ./pidof
--------------e----- ./ping
--------------e----- ./ping6
--------------e----- ./pkill
--------------e----- ./pm
--------------e----- ./pmap
lsattr: ./pppd: Permission denied
lsattr: ./preloads_copy.sh: Permission denied
lsattr: ./preloads_copy_ext.sh: Permission denied
lsattr: ./preopt2cachename: Permission denied
--------------e----- ./printenv
--------------e----- ./printf
--------------e----- ./procrank
--------------e----- ./ps
--------------e----- ./pwd
lsattr: ./racoon: Permission denied
--------------e----- ./readelf
--------------e----- ./readlink
--------------e----- ./realpath
--------------e----- ./reboot
lsattr: ./recovery-persist: Permission denied
lsattr: ./recovery-refresh: Permission denied
--------------e----- ./renice
--------------e----- ./requestsync
lsattr: ./resize.f2fs: Permission denied
lsattr: ./resize2fs: Permission denied
--------------e----- ./restorecon
--------------e----- ./rm
--------------e----- ./rmdir
--------------e----- ./rmmod
lsattr: ./rss_hwm_reset: Permission denied
--------------e----- ./run-as
--------------e----- ./runcon
--------------e----- ./schedtest
--------------e----- ./screencap
--------------e----- ./screenrecord
lsattr: ./sdcard: Permission denied
--------------e----- ./secdiscard
lsattr: reading './secilc': Permission denied
--------------e----- ./sed
--------------e----- ./sendevent
--------------e----- ./sensorservice
--------------e----- ./seq
--------------e----- ./service
lsattr: ./servicemanager: Permission denied
--------------e----- ./set-verity-state
--------------e----- ./setenforce
--------------e----- ./setprop
--------------e----- ./setsid
--------------e----- ./settings
lsattr: ./sgdisk: Permission denied
--------------e----- ./sh
--------------e----- ./sha1sum
--------------e----- ./sha224sum
--------------e----- ./sha256sum
--------------e----- ./sha384sum
--------------e----- ./sha512sum
--------------e----- ./showmap
--------------e----- ./simpleperf
--------------e----- ./simpleperf_app_runner
--------------e----- ./sleep
lsattr: ./sload_f2fs: Permission denied
--------------e----- ./sm
lsattr: ./snapshotctl: Permission denied
--------------e----- ./sort
--------------e----- ./split
--------------e----- ./ss
--------------e----- ./start
--------------e----- ./stat
--------------e----- ./stop
lsattr: ./storaged: Permission denied
--------------e----- ./strings
--------------e----- ./stty
lsattr: ./surfaceflinger: Permission denied
--------------e----- ./svc
--------------e----- ./swapoff
--------------e----- ./swapon
--------------e----- ./sync
--------------e----- ./sysctl
--------------e----- ./tac
--------------e----- ./tail
--------------e----- ./tar
--------------e----- ./taskset
--------------e----- ./tc
lsattr: reading './tc-wrapper-1.0': Permission denied
lsattr: ./tcpdump: Permission denied
--------------e----- ./tee
--------------e----- ./telecom
lsattr: ./terservice: Permission denied
--------------e----- ./test
lsattr: ./thermald: Permission denied
--------------e----- ./time
--------------e----- ./timeout
lsattr: ./tombstoned: Permission denied
--------------e----- ./toolbox
--------------e----- ./top
--------------e----- ./touch
--------------e----- ./toybox
--------------e----- ./tr
lsattr: ./traced: Permission denied
lsattr: ./traced_perf: Permission denied
lsattr: ./traced_probes: Permission denied
--------------e----- ./trigger_perfetto
--------------e----- ./true
--------------e----- ./truncate
--------------e----- ./tty
lsattr: ./tune2fs: Permission denied
--------------e----- ./tzdatacheck
lsattr: reading './ueventd': Permission denied
--------------e----- ./uiautomator
--------------e----- ./ulimit
--------------e----- ./umount
--------------e----- ./uname
lsattr: ./uncrypt: Permission denied
--------------e----- ./uniq
--------------e----- ./unix2dos
--------------e----- ./unlink
--------------e----- ./unshare
--------------e----- ./unzip
lsattr: ./update_engine: Permission denied
lsattr: ./update_verifier: Permission denied
--------------e----- ./uptime
lsattr: ./usbd: Permission denied
--------------e----- ./usleep
--------------e----- ./uudecode
--------------e----- ./uuencode
--------------e----- ./uuidgen
lsattr: ./vdc: Permission denied
lsattr: ./viewcompiler: Permission denied
--------------e----- ./vmstat
lsattr: ./vold: Permission denied
lsattr: ./vold_prepare_subdirs: Permission denied
--------------e----- ./vr
lsattr: ./vtservice: Permission denied
lsattr: ./wait_for_keymaster: Permission denied
--------------e----- ./watch
lsattr: ./watchdogd: Permission denied
--------------e----- ./wc
--------------e----- ./which
--------------e----- ./whoami
lsattr: ./wificond: Permission denied
--------------e----- ./wm
--------------e----- ./xargs
--------------e----- ./xxd
--------------e----- ./yes
--------------e----- ./zcat
--------------e----- ./zipinfo
--------------e----- ./ziptool
Spoiler: LSHAL
lshal
Spoiler: SHELL PICTURES CONTINUED
Spoiler: LSHAL COMMANDS
lshal: List and debug HALs.
commands:
list List HALs.
debug Debug a specified HAL.
help Print help message.
wait Wait for HAL to start if it is not already started.
If no command is specified, `list` is the default.
list:
lshal
lshal list
List all hals with default ordering and columns (`lshal list -Vliepc`)
lshal list [-h|--help]
-h, --help: Print help message for list (`lshal help list`)
lshal
[OPTIONS...]
-i, --interface: print the instance name column
-l, --released: print the 'is released?' column
(Y=released, N=unreleased, ?=unknown)
-t, --transport: print the transport mode column
-r, --arch: print the bitness column
-s, --hash: print hash of the interface
-p, --pid: print the server PID, or server cmdline if -m is set
-a, --address: print the server object address column
-c, --clients: print the client PIDs, or client cmdlines if -m is set
-e, --threads: print currently used/available threads
(note, available threads created lazily)
-m, --cmdline: print cmdline instead of PIDs
-d[=<arg>], --debug[=<arg>]: Emit debug info from
IBase::debug with empty options. Cannot be used with --neat.
Writes to specified file if 'arg' is provided, otherwise stdout.
-V, --vintf: print VINTF info. This column contains a comma-separated list of:
- DM: if the HAL is in the device manifest
- DC: if the HAL is in the device compatibility matrix
- FM: if the HAL is in the framework manifest
- FC: if the HAL is in the framework compatibility matrix
- X: if the HAL is in none of the above lists
-S, --service-status: print service status column. Possible values are:
- alive: alive and running hwbinder service;
- registered;dead: registered to hwservicemanager but is not responsive;
- declared: only declared in VINTF manifest but is not registered to hwservicemanager;
- N/A: no information for passthrough HALs.
--init-vintf: form a skeleton HAL manifest to specified file,
or stdout if no file specified.
--init-vintf-partition=<arg>: Specify the partition of the HAL manifest
generated by --init-vintf.
Valid values are 'system', 'vendor', and 'odm'. Default is 'vendor'.
--sort=<arg>: sort by a column. 'arg' can be (i|interface) or (p|pid).
--neat: output is machine parsable (no explanatory text).
Cannot be used with --debug.
--types=<arg>: comma-separated list of one or more sections.
The output is restricted to the selected section(s). Valid options
are: (b|binderized), (c|passthrough_clients), (l|passthrough_libs), (v|vintf), and (z|lazy).
Default is `bcl`.
debug:
lshal debug [-E] <interface> [options [options [...]]]
Print debug information of a specified interface.
-E: excludes debug output if HAL is actually a subclass.
<interface>: Format is `[email protected]::IFoo/default`.
If instance name is missing `default` is used.
options: space separated options to IBase::debug.
help:
lshal -h
lshal --help
lshal help
Print this help message
lshal help list
Print help message for list
lshal help debug
Print help message for debug
lshal help help
Print help message for help
lshal help wait
Print help message for wait
wait:
lshal wait <interface/instance>
For a HAL that is on the device, wait for the HAL to start.
This will not start a HAL unless it is configured as a lazy HAL.
<interface>: Format is `[email protected]::IFoo/default`.
If instance name is missing `default` is used.
Spoiler: PRINTS THIS
RNN_sprout:/ $ lshal listWarning: Skipping "android.frameworks.cameraservice.s - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com
Spoiler: ALL BIN SYSTEMS CONTINUED PART 8 (L-M)
Spoiler: LSMOD
lsmod
Spoiler: LSMOD COMMANDS
usage: lsmod
Display the currently loaded modules, their sizes and their dependencies.
Spoiler: PRINTS THIS
Display the currently loaded modules, their sizes and their dependencies.
Module Size Used by
wlan_drv_gen4m 1945600 0
wmt_chrdev_wifi 24576 1 wlan_drv_gen4m
gps_drv 61440 0
fmradio_drv 172032 0
bt_drv 36864 1
wmt_drv 1138688 6 wlan_drv_gen4m,wmt_chrdev_wifi,gps_drv,fmradio_drv,bt_drv
fpsgo 811008 0
trace_mmstat 16384 0
mt6357_accdet 36864 0
Spoiler: LSMOD KNOWLEDGE
How to Use lsmod in Linux (With a Practical Example)
The Linux Kernel is a mystery to most, but it need not be! Welcome to the exciting world of lsmod, a tool that lets you peek at what modules the Kernel is using, and more!
www.howtogeek.com
Spoiler: LSOF
lsof
Spoiler: LSOF COMMANDS
usage: lsof [-lt] [-p PID1,PID2,...] [FILE...]
List all open files belonging to all active processes, or processes using
listed FILE(s).
-l list uids numerically
-p for given comma-separated pids only (default all pids)
-t terse (pid only) output
Spoiler: PRINTS THIS
Spoiler: LSPCI
lspci
Spoiler: LSPCI COMMANDS
usage: lspci [-ekm]
List PCI devices.
-e Print all 6 digits in class
-k Print kernel driver
-m Machine parseable format
Spoiler: LSUSB
lsusb
List USB hosts/devices.
Spoiler: MAKE_F2FS
make_f2fs
inaccessible or not found
Spoiler: MD5SUM
md5sum
Spoiler: MD5SUM COMMANDS
usage: md5sum [-bcs] [FILE]...
Calculate md5 hash for each input file, reading from stdin if none.
Output one hash (32 hex digits) for each input file, followed by filename.
-b Brief (hash only, no filename)
-c Check each line of each FILE is the same hash+filename we'd output
-s No output, exit status 0 if all hashes match, 1 otherwise
Spoiler: MDNSD
mdnsd
inaccessible or not found
Spoiler: MEDIAEXTRACTOR
mediaextractor
inaccessible or not found
Spoiler: MEDIAMETRICS
mediametrics
inaccessible or not found
Spoiler: MEDIASERVER
mediaserver
inaccessible or not found
Spoiler: MICROCOM
microcom
Spoiler: MICROCOM COMMANDS
usage: microcom [-s SPEED] [-X] DEVICE
Simple serial console.
-s Set baud rate to SPEED
-X Ignore ^@ (send break) and ^] (exit)
Spoiler: MICROCOM KNOWLEDGE
GitHub - pengutronix/microcom: minimalistic terminal program for communicating with devices over a serial connection
minimalistic terminal program for communicating with devices over a serial connection - GitHub - pengutronix/microcom: minimalistic terminal program for communicating with devices over a serial con...
github.com
Ubuntu Manpage: microcom - A minimalistic terminal program
manpages.ubuntu.com
Spoiler: MIFUNCTIONTEST
mifunctiontest
Spoiler: MIGRATE_LEGACY_OBB_DATA.SH
migrate_legacy_obb_data.sh
inaccessible or not found
Spoiler: MINI-KEYCTL
mini-keyctl
Spoiler: MINI-KEYCTL COMMANDS
usage: mini-keyctl <action> [args,]
mini-keyctl add <type> <desc> <data> <keyring>
mini-keyctl padd <type> <desc> <keyring>
mini-keyctl unlink <key> <keyring>
mini-keyctl restrict_keyring <keyring>
mini-keyctl security <key>
Spoiler: MKDIR
mkdir
Spoiler: MKDIR COMMANDS
usage: mkdir [-vp] [-m MODE] [DIR...]
Create one or more directories.
-m Set permissions of directory to mode
-p Make parent directories as needed
-v Verbose
Spoiler: MKE2FS
mke2fs
inaccessible or not found
Spoiler: MKFIFO
mkfifo
Spoiler: MKFIFO COMMANDS
usage: mkfifo [-Z CONTEXT] [NAME...]
Create FIFOs (named pipes).
-Z Security context
Spoiler: MKFS.EXT2, MKFS.EXT3, MKFS.EXT4
mkfs.ext2
mkfs.ext3
mkfs.ext4
inaccessible or not found
Spoiler: MKNOD
mknod
Spoiler: MKNOD COMMANDS
usage: mknod [-m MODE] NAME TYPE [MAJOR MINOR]
Create a special file NAME with a given type. TYPE is b for block device,
c or u for character device, p for named pipe (which ignores MAJOR/MINOR).
-m Mode (file permissions) of new device, in octal or u+x format
Spoiler: MKSWAP
mkswap
Spoiler: MKSWAP COMMANDS
usage: mkswap [-L LABEL] DEVICE
Set up a Linux swap area on a device or file.
Spoiler: MKTEMP
mktemp
Spoiler: MKTEMP COMMANDS
usage: mktemp [-dqu] [-p DIR] [TEMPLATE]
Safely create a new file "DIR/TEMPLATE" and print its name.
-d Create directory instead of file (--directory)
-p Put new file in DIR (--tmpdir)
-q Quiet, no error messages
-t Prefer $TMPDIR > DIR > /tmp (default DIR > $TMPDIR > /tmp)
-u Don't create anything, just print what would be created
Each X in TEMPLATE is replaced with a random printable character. The
default TEMPLATE is tmp.XXXXXXXXXX.
Spoiler: MODINFO
modinfo
Spoiler: MODINFO COMMANDS
usage: modinfo [-0] [-b basedir] [-k kernel] [-F field] [module|file...]
Display module fields for modules specified by name or .ko path.
-F Only show the given field
-0 Separate fields with NUL rather than newline
-b Use <basedir> as root for /lib/modules/
-k Look in given directory under /lib/modules/
Spoiler: MODPROBE
modprobe
Spoiler: MODPROBE COMMANDS
Usage:
modprobe [-alrqvsDb] [-d DIR] [MODULE]+
modprobe [-alrqvsDb] [-d DIR] MODULE [symbol=value][...]
Options:
-b: Apply blocklist to module names too
-d: Load modules from DIR, option may be used multiple times
-D: Print dependencies for modules only, do not load -h: Print this help
-l: List modules matching pattern
-r: Remove MODULE (multiple modules may be specified)
-q: Quiet
-v: Verbose
Spoiler: MONKEY
monkey
Spoiler: MONKEY COMMANDS
usage: monkey [-p ALLOWED_PACKAGE [-p ALLOWED_PACKAGE] ...]
[-c MAIN_CATEGORY [-c MAIN_CATEGORY] ...]
[--ignore-crashes] [--ignore-timeouts]
[--ignore-security-exceptions]
[--monitor-native-crashes] [--ignore-native-crashes]
[--kill-process-after-error] [--hprof]
[--match-description TEXT]
[--pct-touch PERCENT] [--pct-motion PERCENT]
[--pct-trackball PERCENT] [--pct-syskeys PERCENT]
[--pct-nav PERCENT] [--pct-majornav PERCENT]
[--pct-appswitch PERCENT] [--pct-flip PERCENT]
[--pct-anyevent PERCENT] [--pct-pinchzoom PERCENT]
[--pct-permission PERCENT]
[--pkg-blacklist-file PACKAGE_BLACKLIST_FILE]
[--pkg-whitelist-file PACKAGE_WHITELIST_FILE]
[--wait-dbg] [--dbg-no-events]
[--setup scriptfile] [-f scriptfile [-f scriptfile] ...]
[--port port]
[-s SEED] [-v [-v] ...]
[--throttle MILLISEC] [--randomize-throttle]
[--profile-wait MILLISEC]
[--device-sleep-time MILLISEC]
[--randomize-script]
[--script-log]
[--bugreport]
[--periodic-bugreport]
[--permission-target-system]
COUNT
Spoiler: MORE
more
Spoiler: MORE COMMANDS
usage: more [FILE...]
View FILE(s) (or stdin) one screenfull at a time.
Spoiler: ALL BIN SYSTEMS CONTINUED PART 9 (M-P)
Spoiler: MOUNT
mount
Spoiler: MOUNT COMMANDS
usage: mount [-afFrsvw] [-t TYPE] [-o OPTION,] [[DEVICE] DIR]
Mount new filesystem(s) on directories. With no arguments, display existing
mounts.
-a Mount all entries in /etc/fstab (with -t, only entries of that TYPE)
-O Only mount -a entries that have this option
-f Fake it (don't actually mount)
-r Read only (same as -o ro)
-w Read/write (default, same as -o rw)
-t Specify filesystem type
-v Verbose
OPTIONS is a comma separated list of options, which can also be supplied
as --longopts.
Autodetects loopback mounts (a file on a directory) and bind mounts (file
on file, directory on directory), so you don't need to say --bind or --loop.
You can also "mount -a /path" to mount everything in /etc/fstab under /path,
even if it's noauto. DEVICE starting with UUID= is identified by blkid -U.
Spoiler: MOUNT KNOWLEDGE
mount(8): mount filesystem - Linux man page
mount -a [-t type] [-O optlist] (usually given in a bootscript) causes all filesystems mentioned in fstab (of the proper type and/or having or not having ...
linux.die.net
Spoiler: MOUNTPOINT
mountpoint
Spoiler: MOUNTPOINT COMMANDS
usage: mountpoint [-qd] DIR
mountpoint [-qx] DEVICE
Check whether the directory or device is a mountpoint.
-q Be quiet, return zero if directory is a mountpoint
-d Print major/minor device number of the directory
-x Print major/minor device number of the block device
Spoiler: MOUNTPOINT KNOWLEDGE
What Is Mount Point In Linux Install? – Systran Box
www.systranbox.com
Spoiler: MOVE_WIDEVINE_DATA.sh
move_widevine_data.sh
Spoiler: PRINTS THIS
SELinux: Loaded file_contexts
SELinux: Could not stat /data/vendor/mediadrm: Permission denied.
/system/bin/move_widevine_data.sh[29]: can't create /data/vendor/mediadrm/files_moved: Permission denied
Spoiler: MTK_PLPATH_UTILS
mtk_plpath_utils
inaccessible or not found
Spoiler: MTPD
mtpd
inaccessible or not found
Spoiler: MV
mv
Spoiler: MOVE COMMANDS
usage: mv [-finTv] SOURCE... DEST
-f Force copy by deleting destination file
-i Interactive, prompt before overwriting existing DEST
-n No clobber (don't overwrite DEST)
-T DEST always treated as file, max 2 arguments
-v Verbose
Spoiler: NC
nc
Spoiler: NETCAT COMMANDS
NC IS THE SHORTCUT FOR "NETCAT" YOU CAN USE EITHER NC OR NETCAT
usage: netcat [-46Ut] [-lL COMMAND...] [-u] [-wpq #] [-s addr] {IPADDR PORTNUM|-f FILENAME}
Forward stdin/stdout to a file or network connection.
-4 Force IPv4
-6 Force IPv6
-L Listen for multiple incoming connections (server mode)
-U Use a UNIX domain socket
-W SECONDS timeout for more data on an idle connection
-f Use FILENAME (ala /dev/ttyS0) instead of network
-l Listen for one incoming connection
-p Local port number
-q Quit SECONDS after EOF on stdin, even if stdout hasn't closed yet
-s Local source address
-t Allocate tty (must come before -l or -L)
-u Use UDP
-w SECONDS timeout to establish connection
Use "stty 115200 -F /dev/ttyS0 && stty raw -echo -ctlecho" with
netcat -f to connect to a serial port.
The command line after -l or -L is executed (as a child process) to handle
each incoming connection. If blank -l waits for a connection and forwards
it to stdin/stdout. If no -p specified, -l prints port it bound to and
backgrounds itself (returning immediately).
For a quick-and-dirty server, try something like:
netcat -s 127.0.0.1 -p 1234 -tL /bin/bash -l
Spoiler: NDC
ndc
Usage: ndc (<cmd> [arg ...])
Spoiler: NDC-WRAPPER-1.0
ndc-wrapper-1.0
inaccessible or not found
Spoiler: NETCAT
netcat
Spoiler: NETCAT COMMANDS
usage: netcat [-46Ut] [-lL COMMAND...] [-u] [-wpq #] [-s addr] {IPADDR PORTNUM|-f FILENAME}
Forward stdin/stdout to a file or network connection.
-4 Force IPv4
-6 Force IPv6
-L Listen for multiple incoming connections (server mode)
-U Use a UNIX domain socket
-W SECONDS timeout for more data on an idle connection
-f Use FILENAME (ala /dev/ttyS0) instead of network
-l Listen for one incoming connection
-p Local port number
-q Quit SECONDS after EOF on stdin, even if stdout hasn't closed yet
-s Local source address
-t Allocate tty (must come before -l or -L)
-u Use UDP
-w SECONDS timeout to establish connection
Use "stty 115200 -F /dev/ttyS0 && stty raw -echo -ctlecho" with
netcat -f to connect to a serial port.
The command line after -l or -L is executed (as a child process) to handle
each incoming connection. If blank -l waits for a connection and forwards
it to stdin/stdout. If no -p specified, -l prints port it bound to and
backgrounds itself (returning immediately).
For a quick-and-dirty server, try something like:
netcat -s 127.0.0.1 -p 1234 -tL /bin/bash -l
Spoiler: NETD
netd
inaccessible or not found
Spoiler: NETSTAT
netstat
Spoiler: NETSTAT COMMANDS
usage: netstat [-pWrxwutneal]
Display networking information. Default is netstat -tuwx
-r Routing table
-a All sockets (not just connected)
-l Listening server sockets
-t TCP sockets
-u UDP sockets
-w Raw sockets
-x Unix sockets
-e Extended info
-n Don't resolve names
-W Wide display
-p Show PID/program name of sockets
Spoiler: PRINTS THIS
Spoiler: NETUTILS-WRAPPER-1.0
netutils-wrapper-1.0
inaccessible or not found
Spoiler: NEWFS_MSDOS
newfs_msdos
Spoiler: NEWFS_MSDOS COMMANDS
usage: newfs_msdos [ -options ] special [disktype]
where the options are:
[email protected] Offset in device
-A Attempt to cluster align root directory
-B Bootstrap file
-C Create file
-F FAT type (12, 16, or 32)
-I Volume ID
-L Volume Label
-N Don't create filesystem, print params only
-O OEM string
-S Bytes per sector
-T Timestamp
-a Sectors per FAT
-b Block size
-c Sectors per cluster
-e Directory entries
-f Standard format floppies (160,180,320,360,640,720,1200,1232,1440,2880)
-h Drive heads
-i Info sector
-k Backup sector
-m Media descriptor
-n Number of FATs
-o Hidden sectors
-r Reserved sectors
-s File System size
-u Sectors per track
Spoiler: NICE
nice
Spoiler: NICE COMMANDS
usage: nice [-n PRIORITY] COMMAND...
Run a command line at an increased or decreased scheduling priority.
Higher numbers make a program yield more CPU time, from -20 (highest
priority) to 19 (lowest). By default processes inherit their parent's
niceness (usually 0). By default this command adds 10 to the parent's
priority. Only root can set a negative niceness level.
Spoiler: NL
nl
Spoiler: NL COMMANDS
usage: nl [-E] [-l #] [-b MODE] [-n STYLE] [-s SEPARATOR] [-v #] [-w WIDTH] [FILE...]
Number lines of input.
-E Use extended regex syntax (when doing -b pREGEX)
-b Which lines to number: a (all) t (non-empty, default) pREGEX (pattern)
-l Only count last of this many consecutive blank lines
-n Number STYLE: ln (left justified) rn (right justified) rz (zero pad)
-s Separator to use between number and line (instead of TAB)
-v Starting line number for each section (default 1)
-w Width of line numbers (default 6)
Spoiler: NOHUP
nohup
Spoiler: NOHUP COMMANDS
usage: nohup COMMAND...
Run a command that survives the end of its terminal.
Redirect tty on stdin to /dev/null, tty on stdout to "nohup.out".
Spoiler: NOTIFY_TRACEUR.SH
notify_traceur.sh
inaccessible or not found
Spoiler: NPROC
nproc
Spoiler: NPROC COMMANDS
usage: nproc [--all]
Print number of processors.
--all Show all processors, not just ones this task can run on
IT SHOWED 8 FOR THIS DEVICE
Spoiler: NSENTER
nsenter
Spoiler: NSENTER COMMANDS
usage: nsenter [-t pid] [-F] [-i] [-m] [-n] [-p] [-u] [-U] COMMAND...
Run COMMAND in an existing (set of) namespace(s).
-t PID to take namespaces from (--target)
-F don't fork, even if -p is used (--no-fork)
The namespaces to switch are:
-i SysV IPC: message queues, semaphores, shared memory (--ipc)
-m Mount/unmount tree (--mount)
-n Network address, sockets, routing, iptables (--net)
-p Process IDs and init, will fork unless -F is used (--pid)
-u Host and domain names (--uts)
-U UIDs, GIDs, capabilities (--user)
If -t isn't specified, each namespace argument must provide a path
to a namespace file, ala "-i=/proc/$PID/ns/ipc"
Spoiler: OD
od
Spoiler: OD COMMANDS
usage: od [-bcdosxv] [-j #] [-N #] [-w #] [-A doxn] [-t acdfoux[#]]
Dump data in octal/hex.
-A Address base (decimal, octal, hexadecimal, none)
-j Skip this many bytes of input
-N Stop dumping after this many bytes
-t Output type a(scii) c(har) d(ecimal) f(loat) o(ctal) u(nsigned) (he)x
plus optional size in bytes
aliases: -b=-t o1, -c=-t c, -d=-t u2, -o=-t o2, -s=-t d2, -x=-t x2
-v Don't collapse repeated lines together
-w Total line width in bytes (default 16)
Spoiler: OEM-IPTABLES-INIT.SH
oem-iptables-init.sh
No such file or directory
Spoiler: OTAPREOPT
otapreopt
does nothing but does not halt shell
Spoiler: OTAPREOPT_CHROOT
otapreopt_chroot
inaccessible or not found
Spoiler: OTAPREOPT_SCRIPT
otapreopt_script
Unknown target slot
Spoiler: OTAPREOPT_SLOT
otapreopt_slot
inaccessible or not found
Spoiler: PASTE
paste
Spoiler: PASTE COMMANDS
usage: paste [-s] [-d DELIMITERS] [FILE...]
Merge corresponding lines from each input file.
-d List of delimiter characters to separate fields with (default is \t)
-s Sequential mode: turn each input file into one line of output
Spoiler: PATCH
patch
Spoiler: PATCH COMMANDS
usage: patch [-d DIR] [-i PATCH] [-p DEPTH] [-F FUZZ] [-Rlsu] [--dry-run] [FILE [PATCH]]
Apply a unified diff to one or more files.
-d Modify files in DIR
-i Input patch file (default=stdin)
-l Loose match (ignore whitespace)
-p Number of '/' to strip from start of file paths (default=all)
-R Reverse patch
-s Silent except for errors
-u Ignored (only handles "unified" diffs)
--dry-run Don't change files, just confirm patch applies
This version of patch only handles unified diffs, and only modifies
a file when all hunks to that file apply. Patch prints failed hunks
to stderr, and exits with nonzero status if any hunks fail.
A file compared against /dev/null (or with a date <= the epoch) is
created/deleted as appropriate.
Spoiler: PERFETTO
perfetto
Spoiler: PERFETTO COMMANDS
268.634 perfetto_cmd.cc:187
Usage: perfetto
--background -d : Exits immediately and continues tracing in
background
--config -c : /path/to/trace/config/file or - for stdin
--out -o : /path/to/out/trace/file or - for stdout
--upload : Upload field trace (Android only)
--dropbox TAG : DEPRECATED: Use --upload instead
TAG should always be set to 'perfetto'
--no-guardrails : Ignore guardrails triggered when using --dropbox
(for testing).
--txt : Parse config as pbtxt. Not for production use.
Not a stable API.
--reset-guardrails : Resets the state of the guardails and exits
(for testing).
--query : Queries the service state and prints it as
human-readable text.
--query-raw : Like --query, but prints raw proto-encoded bytes
of tracing_service_state.proto.
--help -h
light configuration flags: (only when NOT using -c/--config)
--time -t : Trace duration N[s,m,h] (default: 10s)
--buffer -b : Ring buffer size N[mb,gb] (default: 32mb)
--size -s : Max file size N[mb,gb] (default: in-memory ring-buffer only)
ATRACE_CAT : Record ATRACE_CAT (e.g. wm)
FTRACE_GROUP/FTRACE_NAME : Record ftrace event (e.g. sched/sched_switch)
FTRACE_GROUP/* : Record all events in group (e.g. sched/*)
statsd-specific flags:
--alert-id : ID of the alert that triggered this trace.
--config-id : ID of the triggering config.
--config-uid : UID of app which registered the config.
--subscription-id : ID of the subscription that triggered this trace.
Detach mode. DISCOURAGED, read https://docs.perfetto.dev/#/detached-mode :
--detach=key : Detach from the tracing session with the given key.
--attach=key [--stop] : Re-attach to the session (optionally stop tracing once reattached).
--is_detached=key : Check if the session can be re-attached (0:Yes, 2:No, 1:Error).
Spoiler: ALL BIN SYSTEMS CONTINUED PART 10 (P-R)
Spoiler: PGREP
pgrep
Spoiler: PGREP COMMANDS
usage: pgrep [-clfnovx] [-d DELIM] [-L SIGNAL] [PATTERN] [-G GID,] [-g PGRP,] [-P PPID,] [-s SID,] [-t TERM,] [-U UID,] [-u EUID,]
Search for process(es). PATTERN is an extended regular expression checked
against command names.
-c Show only count of matches
-d Use DELIM instead of newline
-L Send SIGNAL instead of printing name
-l Show command name
-f Check full command line for PATTERN
-G Match real Group ID(s)
-g Match Process Group(s) (0 is current user)
-n Newest match only
-o Oldest match only
-P Match Parent Process ID(s)
-s Match Session ID(s) (0 for current)
-t Match Terminal(s)
-U Match real User ID(s)
-u Match effective User ID(s)
-v Negate the match
-x Match whole command (not substring)
Spoiler: PIDOF
pidof
Spoiler: PIDOF COMMANDS
usage: pidof [-s] [-o omitpid[,omitpid...]] [NAME]...
Print the PIDs of all processes with the given names.
-s Single shot, only return one pid
-o Omit PID(s)
-x Match shell scripts too
Spoiler: PING
ping
Spoiler: PING COMMANDS
Usage: ping [-aAbBdDfhLnOqrRUvV] [-c count] [-i interval] [-I interface]
[-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos]
[-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option]
[-w deadline] [-W timeout] [hop1 ...] destination
Spoiler: PING6
ping6
Spoiler: PING6 COMMANDS
Usage: ping6 [-aAbBdDfhLnOqrRUvV] [-c count] [-i interval] [-I interface]
[-l preload] [-m mark] [-M pmtudisc_option]
[-N nodeinfo_option] [-p pattern] [-Q tclass] [-s packetsize]
[-S sndbuf] [-t ttl] [-T timestamp_option] [-w deadline]
[-W timeout] destination
Spoiler: PKILL
pkill
Spoiler: PKILL COMMANDS
usage: pkill [-fnovx] [-SIGNAL|-l SIGNAL] [PATTERN] [-G GID,] [-g PGRP,] [-P PPID,] [-s SID,] [-t TERM,] [-U UID,] [-u EUID,]
-l Send SIGNAL (default SIGTERM)
-V Verbose
-f Check full command line for PATTERN
-G Match real Group ID(s)
-g Match Process Group(s) (0 is current user)
-n Newest match only
-o Oldest match only
-P Match Parent Process ID(s)
-s Match Session ID(s) (0 for current)
-t Match Terminal(s)
-U Match real User ID(s)
-u Match effective User ID(s)
-v Negate the match
-x Match whole command (not substring)
Spoiler: PM
pm
Spoiler: SHELL PICTURES CONTINUED
Spoiler: PACKAGE MANAGER COMMANDS
Package manager (package) commands:
help
Print this help text.
path [--user USER_ID] PACKAGE
Print the path to the .apk of the given PACKAGE.
dump PACKAGE
Print various system state associated with the given PACKAGE.
has-feature FEATURE_NAME [version]
Prints true and returns exit status 0 when system has a FEATURE_NAME,
otherwise prints false and returns exit status 1
list features
Prints all features of the system.
list instrumentation [-f] [TARGET-PACKAGE]
Prints all test packages; optionally only those targeting TARGET-PACKAGE
Options:
-f: dump the name of the .apk file containing the test package
list libraries
Prints all system libraries.
list packages [-f] [-d] [-e] [-s] [-3] [-i] [-l] [-u] [-U]
[--show-versioncode] [--apex-only] [--uid UID] [--user USER_ID] [FILTER]
Prints all packages; optionally only those whose name contains
the text in FILTER. Options are:
-f: see their associated file
-a: all known packages (but excluding APEXes)
-d: filter to only show disabled packages
-e: filter to only show enabled packages
-s: filter to only show system packages
-3: filter to only show third party packages
-i: see the installer for the packages
-l: ignored (used for compatibility with older releases)
-U: also show the package UID
-u: also include uninstalled packages
--show-versioncode: also show the version code
--apex-only: only show APEX packages
--uid UID: filter to only show packages with the given UID
--user USER_ID: only list packages belonging to the given user
list permission-groups
Prints all known permission groups.
list permissions [-g] [-f] [-d] [-u] [GROUP]
Prints all known permissions; optionally only those in GROUP. Options are:
-g: organize by group
-f: print all information
-s: short summary
-d: only list dangerous permissions
-u: list only the permissions users will see
list staged-sessions [--only-ready] [--only-sessionid] [--only-parent]
Prints all staged sessions.
--only-ready: show only staged sessions that are ready
--only-sessionid: show only sessionId of each session
--only-parent: hide all children sessions
list users
Prints all users.
resolve-activity [--brief] [--components] [--query-flags FLAGS]
[--user USER_ID] INTENT
Prints the activity that resolves to the given INTENT.
query-activities [--brief] [--components] [--query-flags FLAGS]
[--user USER_ID] INTENT
Prints all activities that can handle the given INTENT.
query-services [--brief] [--components] [--query-flags FLAGS]
[--user USER_ID] INTENT
Prints all services that can handle the given INTENT.
query-receivers [--brief] [--components] [--query-flags FLAGS]
[--user USER_ID] INTENT
Prints all broadcast receivers that can handle the given INTENT.
install [-rtfdgw] [-i PACKAGE] [--user USER_ID|all|current]
[-p INHERIT_PACKAGE] [--install-location 0/1/2]
[--install-reason 0/1/2/3/4] [--originating-uri URI]
[--referrer URI] [--abi ABI_NAME] [--force-sdk]
[--preload] [--instant] [--full] [--dont-kill]
[--enable-rollback]
[--force-uuid internal|UUID] [--pkg PACKAGE] [-S BYTES]
[--apex] [--wait TIMEOUT]
[PATH [SPLIT...]|-]
Install an application. Must provide the apk data to install, either as
file path(s) or '-' to read from stdin. Options are:
-R: disallow replacement of existing application
-t: allow test packages
-i: specify package name of installer owning the app
-f: install application on internal flash
-d: allow version code downgrade (debuggable packages only)
-p: partial application install (new split on top of existing pkg)
-g: grant all runtime permissions
-S: size in bytes of package, required for stdin
--user: install under the given user.
--dont-kill: installing a new feature split, don't kill running app
--restrict-permissions: don't whitelist restricted permissions at install
--originating-uri: set URI where app was downloaded from
--referrer: set URI that instigated the install of the app
--pkg: specify expected package name of app being installed
--abi: override the default ABI of the platform
--instant: cause the app to be installed as an ephemeral install app
--full: cause the app to be installed as a non-ephemeral full app
--install-location: force the install location:
0=auto, 1=internal only, 2=prefer external
--install-reason: indicates why the app is being installed:
0=unknown, 1=admin policy, 2=device restore,
3=device setup, 4=user request
--force-uuid: force install on to disk volume with given UUID
--apex: install an .apex file, not an .apk
--wait: when performing staged install, wait TIMEOUT milliseconds
for pre-reboot verification to complete. If TIMEOUT is not
specified it will wait for 60000 milliseconds.
install-existing [--user USER_ID|all|current]
[--instant] [--full] [--wait] [--restrict-permissions] PACKAGE
Installs an existing application for a new user. Options are:
--user: install for the given user.
--instant: install as an instant app
--full: install as a full app
--wait: wait until the package is installed
--restrict-permissions: don't whitelist restricted permissions
install-create [-lrtsfdg] [-i PACKAGE] [--user USER_ID|all|current]
[-p INHERIT_PACKAGE] [--install-location 0/1/2]
[--install-reason 0/1/2/3/4] [--originating-uri URI]
[--referrer URI] [--abi ABI_NAME] [--force-sdk]
[--preload] [--instant] [--full] [--dont-kill]
[--force-uuid internal|UUID] [--pkg PACKAGE] [--apex] [-S BYTES]
[--multi-package] [--staged]
Like "install", but starts an install session. Use "install-write"
to push data into the session, and "install-commit" to finish.
install-write [-S BYTES] SESSION_ID SPLIT_NAME [PATH|-]
Write an apk into the given install session. If the path is '-', data
will be read from stdin. Options are:
-S: size in bytes of package, required for stdin
install-remove SESSION_ID SPLIT...
Mark SPLIT(s) as removed in the given install session.
install-add-session MULTI_PACKAGE_SESSION_ID CHILD_SESSION_IDs
Add one or more session IDs to a multi-package session.
install-commit SESSION_ID
Commit the given active install session, installing the app.
install-abandon SESSION_ID
Delete the given active install session.
set-install-location LOCATION
Changes the default install location. NOTE this is only intended for debugging;
using this can cause applications to break and other undersireable behavior.
LOCATION is one of:
0 [auto]: Let system decide the best location
1 [internal]: Install on internal device storage
2 [external]: Install on external media
get-install-location
Returns the current install location: 0, 1 or 2 as per set-install-location.
move-package PACKAGE [internal|UUID]
move-primary-storage [internal|UUID]
uninstall [-k] [--user USER_ID] [--versionCode VERSION_CODE]
PACKAGE [SPLIT...]
Remove the given package name from the system. May remove an entire app
if no SPLIT names specified, otherwise will remove only the splits of the
given app. Options are:
-k: keep the data and cache directories around after package removal.
--user: remove the app from the given user.
--versionCode: only uninstall if the app has the given version code.
clear [--user USER_ID] PACKAGE
Deletes all data associated with a package.
enable [--user USER_ID] PACKAGE_OR_COMPONENT
disable [--user USER_ID] PACKAGE_OR_COMPONENT
disable-user [--user USER_ID] PACKAGE_OR_COMPONENT
disable-until-used [--user USER_ID] PACKAGE_OR_COMPONENT
default-state [--user USER_ID] PACKAGE_OR_COMPONENT
These commands change the enabled state of a given package or
component (written as "package/class").
hide [--user USER_ID] PACKAGE_OR_COMPONENT
unhide [--user USER_ID] PACKAGE_OR_COMPONENT
suspend [--user USER_ID] TARGET-PACKAGE
Suspends the specified package (as user).
unsuspend [--user USER_ID] TARGET-PACKAGE
Unsuspends the specified package (as user).
grant [--user USER_ID] PACKAGE PERMISSION
revoke [--user USER_ID] PACKAGE PERMISSION
These commands either grant or revoke permissions to apps. The permissions
must be declared as used in the app's manifest, be runtime permissions
(protection level dangerous), and the app targeting SDK greater than Lollipop MR1.
reset-permissions
Revert all runtime permissions to their default state.
set-permission-enforced PERMISSION [true|false]
get-privapp-permissions TARGET-PACKAGE
Prints all privileged permissions for a package.
get-privapp-deny-permissions TARGET-PACKAGE
Prints all privileged permissions that are denied for a package.
get-oem-permissions TARGET-PACKAGE
Prints all OEM permissions for a package.
set-app-link [--user USER_ID] PACKAGE {always|ask|never|undefined}
get-app-link [--user USER_ID] PACKAGE
trim-caches DESIRED_FREE_SPACE [internal|UUID]
Trim cache files to reach the given free space.
list users
Lists the current users.
create-user [--profileOf USER_ID] [--managed] [--restricted] [--ephemeral]
[--guest] [--pre-create-only] [--user-type USER_TYPE] USER_NAME
Create a new user with the given USER_NAME, printing the new user identifier
of the user.
USER_TYPE is the name of a user type, e.g. android.os.usertype.profile.MANAGED.
If not specified, the default user type is android.os.usertype.full.SECONDARY.
--managed is shorthand for '--user-type android.os.usertype.profile.MANAGED'.
--restricted is shorthand for '--user-type android.os.usertype.full.RESTRICTED'.
--guest is shorthand for '--user-type android.os.usertype.full.GUEST'.
remove-user USER_ID
Remove the user with the given USER_IDENTIFIER, deleting all data
associated with that user
set-user-restriction [--user USER_ID] RESTRICTION VALUE
get-max-users
get-max-running-users
compile [-m MODE | -r REASON] [-f] [-c] [--split SPLIT_NAME]
[--reset] [--check-prof (true | false)] (-a | TARGET-PACKAGE)
Trigger compilation of TARGET-PACKAGE or all packages if "-a". Options are:
-a: compile all packages
-c: clear profile data before compiling
-f: force compilation even if not needed
-m: select compilation mode
MODE is one of the dex2oat compiler filters:
assume-verified
extract
verify
quicken
space-profile
space
speed-profile
speed
everything
-r: select compilation reason
REASON is one of:
first-boot
boot
install
bg-dexopt
ab-ota
inactive
shared
--reset: restore package to its post-install state
--check-prof (true | false): look at profiles when doing dexopt?
--secondary-dex: compile app secondary dex files
--split SPLIT: compile only the given split name
--compile-layouts: compile layout resources for faster inflation
force-dex-opt PACKAGE
Force immediate execution of dex opt for the given PACKAGE.
bg-dexopt-job
Execute the background optimizations immediately.
Note that the command only runs the background optimizer logic. It may
overlap with the actual job but the job scheduler will not be able to
cancel it. It will also run even if the device is not in the idle
maintenance mode.
reconcile-secondary-dex-files TARGET-PACKAGE
Reconciles the package secondary dex files with the generated oat files.
dump-profiles TARGET-PACKAGE
Dumps method/class profile files to
/data/misc/profman/TARGET-PACKAGE.txt
snapshot-profile TARGET-PACKAGE [--code-path path]
Take a snapshot of the package profiles to
/data/misc/profman/TARGET-PACKAGE[-code-path].prof
If TARGET-PACKAGE=android it will take a snapshot of the boot image
set-home-activity [--user USER_ID] TARGET-COMPONENT
Set the default home activity (aka launcher).
TARGET-COMPONENT can be a package name (com.package.my) or a full
component (com.package.my/component.name). However, only the package name
matters: the actual component used will be determined automatically from
the package.
set-installer PACKAGE INSTALLER
Set installer package name
get-instantapp-resolver
Return the name of the component that is the current instant app installer.
set-harmful-app-warning [--user <USER_ID>] <PACKAGE> [<WARNING>]
Mark the app as harmful with the given warning message.
get-harmful-app-warning [--user <USER_ID>] <PACKAGE>
Return the harmful app warning message for the given app, if present
uninstall-system-updates [<PACKAGE>]
Removes updates to the given system application and falls back to its
/system version. Does nothing if the given package is not a system app.
If no package is specified, removes updates to all system applications.
get-moduleinfo [--all | --installed] [module-name]
Displays module info. If module-name is specified only that info is shown
By default, without any argument only installed modules are shown.
--all: show all module info
--installed: show only installed modules
log-visibility [--enable|--disable] <PACKAGE>
Turns on debug logging when visibility is blocked for the given package.
--enable: turn on debug logging (default)
--disable: turn off debug logging
<INTENT> specifications include these flags and arguments:
[-a <ACTION>] [-d <DATA_URI>] [-t <MIME_TYPE>] [-i <IDENTIFIER>]
[-c <CATEGORY> [-c <CATEGORY>] ...]
[-n <COMPONENT_NAME>]
[-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...]
[--esn <EXTRA_KEY> ...]
[--ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE> ...]
[--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...]
[--el <EXTRA_KEY> <EXTRA_LONG_VALUE> ...]
[--ef <EXTRA_KEY> <EXTRA_FLOAT_VALUE> ...]
[--eu <EXTRA_KEY> <EXTRA_URI_VALUE> ...]
[--ecn <EXTRA_KEY> <EXTRA_COMPONENT_NAME_VALUE>]
[--eia <EXTRA_KEY> <EXTRA_INT_VALUE>[,<EXTRA_INT_VALUE...]]
(mutiple extras passed as Integer[])
[--eial <EXTRA_KEY> <EXTRA_INT_VALUE>[,<EXTRA_INT_VALUE...]]
(mutiple extras passed as List<Integer>)
[--ela <EXTRA_KEY> <EXTRA_LONG_VALUE>[,<EXTRA_LONG_VALUE...]]
(mutiple extras passed as Long[])
[--elal <EXTRA_KEY> <EXTRA_LONG_VALUE>[,<EXTRA_LONG_VALUE...]]
(mutiple extras passed as List<Long>)
[--efa <EXTRA_KEY> <EXTRA_FLOAT_VALUE>[,<EXTRA_FLOAT_VALUE...]]
(mutiple extras passed as Float[])
[--efal <EXTRA_KEY> <EXTRA_FLOAT_VALUE>[,<EXTRA_FLOAT_VALUE...]]
(mutiple extras passed as List<Float>)
[--esa <EXTRA_KEY> <EXTRA_STRING_VALUE>[,<EXTRA_STRING_VALUE...]]
(mutiple extras passed as String[]; to embed a comma into a string,
escape it using "\,")
[--esal <EXTRA_KEY> <EXTRA_STRING_VALUE>[,<EXTRA_STRING_VALUE...]]
(mutiple extras passed as List<String>; to embed a comma into a string,
escape it using "\,")
[-f <FLAG>]
[--grant-read-uri-permission] [--grant-write-uri-permission]
[--grant-persistable-uri-permission] [--grant-prefix-uri-permission]
[--debug-log-resolution] [--exclude-stopped-packages]
[--include-stopped-packages]
[--activity-brought-to-front] [--activity-clear-top]
[--activity-clear-when-task-reset] [--activity-exclude-from-recents]
[--activity-launched-from-history] [--activity-multiple-task]
[--activity-no-animation] [--activity-no-history]
[--activity-no-user-action] [--activity-previous-is-top]
[--activity-reorder-to-front] [--activity-reset-task-if-needed]
[--activity-single-top] [--activity-clear-task]
[--activity-task-on-home] [--activity-match-external]
[--receiver-registered-only] [--receiver-replace-pending]
[--receiver-foreground] [--receiver-no-abort]
[--receiver-include-background]
[--selector]
[<URI> | <PACKAGE> | <COMPONENT>]
Spoiler: PACKAGE MANAGER KNOWLEDGE
adbcommand.com - adbcommand Resources and Information.
adbcommand.com is your first and best source for all of the information you’re looking for. From general topics to more of what you would expect to find here, adbcommand.com has it all. We hope you find what you are searching for!
adbcommand.com
Difference between adb "install" command and "pm install" command?
What's the difference between installing an app using the install command and using the package manager's pm install command? Do they do the exact same job? Does one command actually call the other...
stackoverflow.com
Android Package Manager (pm) Cheat Sheet
How to use the Android Package Manager (pm)
cheatography.com
Installing an APK using pm command
I tried updating an APK using this code: Process process; process = Runtime.getRuntime().exec(new String[] {"su", "-c", "pm install -r -d"+MyApk.apk}); but it does not work. This works well when...
stackoverflow.com
Spoiler: PMAP
pmap
Spoiler: PMAP COMMANDS
usage: pmap [-xq] [pids...]
Report the memory map of a process or processes.
-x Show the extended format
-q Do not display some header/footer lines
Spoiler: PPPD
pppd
inaccessible or not found
Spoiler: PRELOADS_COPY.sh
preloads_copy.sh
inaccessible or not found
Spoiler: PRELOADS_COPY_EXT.sh
preloads_copy_ext.sh
inaccessible or not found
Spoiler: PREOPT2CACHENAME
preopt2cachename
inaccessible or not found
Spoiler: PRINTENV
printenv
Spoiler: PRINTENV COMMANDS
usage: printenv [-0] [env_var...]
Print environment variables.
-0 Use \0 as delimiter instead of \n
Spoiler: PRINTS THIS
ANDROID_DATA=/data
ANDROID_ART_ROOT=/apex/com.android.art
HOME=/
ANDROID_TZDATA_ROOT=/apex/com.android.tzdata
SYSTEMSERVERCLASSPATH=/system/framework/com.android.location.provider.jar:/system/framework/services.jar:/system/framework/ethernet-service.jar:/apex/com.android.permission/javalib/service-permission.jar:/apex/com.android.wifi/javalib/service-wifi.jar:/apex/com.android.ipsec/javalib/android.net.ipsec.ike.jar
TERM=xterm-256color
ANDROID_SOCKET_adbd=18
ANDROID_STORAGE=/storage
EXTERNAL_STORAGE=/sdcard
DOWNLOAD_CACHE=/data/cache
LOGNAME=shell
ANDROID_ASSETS=/system/app
DEX2OATBOOTCLASSPATH=/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/core-icu4j.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/framework-atb-backward-compatibility.jar:/system/framework/mediatek-telephony-base.jar:/system/framework/mediatek-telephony-common.jar:/system/framework/mediatek-common.jar:/system/framework/mediatek-framework.jar:/system/framework/mediatek-ims-common.jar:/system/framework/mediatek-ims-base.jar:/system/framework/mediatek-telecom-common.jar
BOOTCLASSPATH=/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/core-icu4j.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/framework-atb-backward-compatibility.jar:/system/framework/mediatek-telephony-base.jar:/system/framework/mediatek-telephony-common.jar:/system/framework/mediatek-common.jar:/system/framework/mediatek-framework.jar:/system/framework/mediatek-ims-common.jar:/system/framework/mediatek-ims-base.jar:/system/framework/mediatek-telecom-common.jar:/apex/com.android.conscrypt/javalib/conscrypt.jar:/apex/com.android.media/javalib/updatable-media.jar:/apex/com.android.mediaprovider/javalib/framework-mediaprovider.jar:/apex/com.android.os.statsd/javalib/framework-statsd.jar:/apex/com.android.permission/javalib/framework-permission.jar:/apex/com.android.sdkext/javalib/framework-sdkextensions.jar:/apex/com.android.wifi/javalib/framework-wifi.jar:/apex/com.android.tethering/javalib/framework-tethering.jar
SHELL=/bin/sh
ANDROID_BOOTLOGO=1
ASEC_MOUNTPOINT=/mnt/asec
HOSTNAME=RNN_sprout
USER=shell
TMPDIR=/data/local/tmp
PATH=/product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin
ANDROID_ROOT=/system
ANDROID_I18N_ROOT=/apex/com.android.i18n
Spoiler: PRINTF
printf
Spoiler: PRINTF COMMANDS
usage: printf FORMAT [ARGUMENT...]
Format and print ARGUMENT(s) according to FORMAT, using C printf syntax
(% escapes for cdeEfgGiosuxX, \ escapes for abefnrtv0 or \OCTAL or \xHEX).
Spoiler: PROCRANK
procrank
Spoiler: PROCRANK COMMADS
usage: printf FORMAT [ARGUMENT...]
Format and print ARGUMENT(s) according to FORMAT, using C printf syntax
(% escapes for cdeEfgGiosuxX, \ escapes for abefnrtv0 or \OCTAL or \xHEX).
ZRAM: 0K physical used for 1525156K in swap (2097148K total swap)
RAM: 3917560K total, 245192K free, 63824K buffers, 1382364K cached, 27672K shmem, 295508K slab
Usage: procrank [ -W ] [ -v | -r | -p | -u | -s | -h ]
-v Sort by VSS.
-r Sort by RSS.
-p Sort by PSS.
-u Sort by USS.
-s Sort by swap.
(Default sort order is PSS.)
-R Reverse sort order (default is descending).
-c Only show cached (storage backed) pages
-C Only show non-cached (ram/swap backed) pages
-k Only show pages collapsed by KSM
-w Display statistics for working set only.
-W Reset working set of all processes.
-o Show and sort by oom score against lowmemorykiller thresholds.
-h Display this help screen.
Spoiler: PS
ps
Spoiler: PS COMMANDS
usage: ps [-AadefLlnwZ] [-gG GROUP,] [-k FIELD,] [-o FIELD,] [-p PID,] [-t TTY,] [-uU USER,]
List processes.
Which processes to show (-gGuUpPt selections may be comma separated lists):
-A All -a Has terminal not session leader
-d All but session leaders -e Synonym for -A
-g In GROUPs -G In real GROUPs (before sgid)
-p PIDs (--pid) -P Parent PIDs (--ppid)
-s In session IDs -t Attached to selected TTYs
-T Show threads also -u Owned by selected USERs
-U Real USERs (before suid)
Output modifiers:
-k Sort FIELDs (-FIELD to reverse) -M Measure/pad future field widths
-n Show numeric USER and GROUP -w Wide output (don't truncate fields)
Which FIELDs to show. (-o HELP for list, default = -o PID,TTY,TIME,CMD)
-f Full listing (-o USER:12=UID,PID,PPID,C,STIME,TTY,TIME,ARGS=CMD)
-l Long listing (-o F,S,UID,PID,PPID,C,PRI,NI,ADDR,SZ,WCHAN,TTY,TIME,CMD)
-o Output FIELDs instead of defaults, each with optional :size and =title
-O Add FIELDS to defaults
-Z Include LABEL
Spoiler: PWD
pwd
unsure
Spoiler: RACOON
racoon
inaccessible or not found
Spoiler: READELF
readelf
Spoiler: READELF COMMANDS
usage: readelf [-adhlnSsW] [-p SECTION] [-x SECTION] [file...]
Displays information about ELF files.
-a Equivalent to -dhlnSs
-d Show dynamic section
-h Show ELF header
-l Show program headers
-n Show notes
-p S Dump strings found in named/numbered section
-S Show section headers
-s Show symbol tables (.dynsym and .symtab)
-W Don't truncate fields (default in toybox)
-x S Hex dump of named/numbered section
--dyn-syms Show just .dynsym symbol table
Spoiler: ALL BIN SYSTEMS CONTINUED PART 11 (R-S)
Spoiler: READLINK
readlink
Spoiler: READLINK COMMANDS
usage: readlink FILE...
With no options, show what symlink points to, return error if not symlink.
Options for producing canonical paths (all symlinks/./.. resolved):
-e Canonical path to existing entry (fail if missing)
-f Full path (fail if directory missing)
-m Ignore missing entries, show where it would be
-n No trailing newline
-q Quiet (no output, just error code)
Spoiler: REALPATH
realpath
Spoiler: REALPATH COMMANDS
usage: realpath FILE...
Display the canonical absolute pathname
Spoiler: REBOOT
reboot
Just typing "Reboot" Resets the Phone, and Closes the Shell
Spoiler: REBOOT COMMANDS
usage: reboot [-p] [rebootcommand]
Spoiler: RECOVERY-PERSIST
recovery-persist
says inaccessible, but I think may be for the "rebootcommand" under "reboot"
Spoiler: RECOVERY-REFRESH
recovery-refresh
says inaccessible, but I think may be for the "rebootcommand" under "reboot"
Spoiler: RENICE
renice
Spoiler: RENICE COMMANDS
usage: renice [-gpu] -n INCREMENT ID...
Spoiler: REQUESTSYNC
requestsync
Spoiler: REQUESTSYNC COMMANDS
Usage:
requestsync [options]
With no options, a sync will be requested for all account and all sync
authorities with no extras.
Basic options:
-h|--help: Display this message
-n|--account-name <ACCOUNT-NAME>
-t|--account-type <ACCOUNT-TYPE>
-a|--authority <AUTHORITY>
App-standby related options
-f|--foreground (cause WORKING_SET, FREQUENT sync adapters to run immediately)
-F|--top (cause even RARE sync adapters to run immediately)
ContentResolver extra options:
--is|--ignore-settings: Add SYNC_EXTRAS_IGNORE_SETTINGS
--ib|--ignore-backoff: Add SYNC_EXTRAS_IGNORE_BACKOFF
--dd|--discard-deletions: Add SYNC_EXTRAS_DISCARD_LOCAL_DELETIONS
--nr|--no-retry: Add SYNC_EXTRAS_DO_NOT_RETRY
--ex|--expedited: Add SYNC_EXTRAS_EXPEDITED
-i|--initialize: Add SYNC_EXTRAS_INITIALIZE
--m|--manual: Add SYNC_EXTRAS_MANUAL
--od|--override-deletions: Add SYNC_EXTRAS_OVERRIDE_TOO_MANY_DELETIONS
-u|--upload-only: Add SYNC_EXTRAS_UPLOAD
--rc|--require-charging: Add SYNC_EXTRAS_REQUIRE_CHARGING
Custom extra options:
-e|--es|--extra-string <KEY> <VALUE>
--esn|--extra-string-null <KEY>
--ei|--extra-int <KEY> <VALUE>
--el|--extra-long <KEY> <VALUE>
--ef|--extra-float <KEY> <VALUE>
--ed|--extra-double <KEY> <VALUE>
--ez|--extra-bool <KEY> <VALUE>
requestsync add-periodic INTERVAL-SECOND [options]
requestsync remove-periodic [options]
Mandatory options:
-n|--account-name <ACCOUNT-NAME>
-t|--account-type <ACCOUNT-TYPE>
-a|--authority <AUTHORITY>
Also takes the above extra options.
Spoiler: RESIZE.F2FS
resize.f2fs
inaccessible or not found
Spoiler: RESIZE2FS
resize2fs
inaccessible or not found
Spoiler: RESTORECON
restorecon
Spoiler: RESTORECON COMMANDS
usage: restorecon [-D] [-F] [-R] [-n] [-v] FILE...
Restores the default security contexts for the given files.
-D Apply to /data/data too
-F Force reset
-R Recurse into directories
-n Don't make any changes; useful with -v to see what would change
-v Verbose
Spoiler: RM
rm
Spoiler: RM COMMANDS
usage: rm [-fiRrv] FILE...
Remove each argument from the filesystem.
-f Force: remove without confirmation, no error if it doesn't exist
-i Interactive: prompt for confirmation
-rR Recursive: remove directory contents
-v Verbose
Spoiler: RM KNOWLEDGE
Learn How to Use the rm Command
Delete files or directories in Linux
pimylifeup.com
Spoiler: RMDIR
rmdir
Spoiler: RMDIR COMMANDS
usage: rmdir [-p] [DIR...]
Remove one or more directories.
-p Remove path
--ignore-fail-on-non-empty Ignore failures caused by non-empty directories
Spoiler: RMMOD
rmmod
Spoiler: RMMOD COMMANDS
usage: rmmod [-wf] [MODULE]
Unload the module named MODULE from the Linux kernel.
-f Force unload of a module
-w Wait until the module is no longer used
Spoiler: RSS_HWM_RESET
rss_hwm_reset
inaccessible or not found
Spoiler: RUN-AS
run-as
Spoiler: RUN-AS COMMANDS
run-as: usage: run-as <package-name> [--user <uid>] <command> [<args>]
Spoiler: RUNCON
runcon
Spoiler: RUNCON COMMANDS
usage: runcon CONTEXT COMMAND [ARGS...]
Run a command in a specified security context.
Spoiler: SCHEDTEST
schedtest
Spoiler: SCREENCAP
screencap
Spoiler: SCREENCAP COMMANDS
usage: screencap [-hp] [-d display-id] [FILENAME]
-h: this message
-p: save the file as a png.
-d: specify the physical display ID to capture (default: 0)
see "dumpsys SurfaceFlinger --display-id" for valid display IDs.
If FILENAME ends with .png it will be saved as a png.
If FILENAME is not given, the results will be printed to stdout.
Spoiler: SCREENRECORD
screenrecord
Spoiler: SCREENRECORD COMMANDS
Usage: screenrecord [options] <filename>
Android screenrecord v1.3. Records the device's display to a .mp4 file.
Options:
--size WIDTHxHEIGHT
Set the video size, e.g. "1280x720". Default is the device's main
display resolution (if supported), 1280x720 if not. For best results,
use a size supported by the AVC encoder.
--bit-rate RATE
Set the video bit rate, in bits per second. Value may be specified as
bits or megabits, e.g. '4000000' is equivalent to '4M'. Default 20Mbps.
--bugreport
Add additional information, such as a timestamp overlay, that is helpful
in videos captured to illustrate bugs.
--time-limit TIME
Set the maximum recording time, in seconds. Default / maximum is 180.
--display-id ID
specify the physical display ID to record. Default is the primary display.
see "dumpsys SurfaceFlinger --display-id" for valid display IDs.
--verbose
Display interesting information on stdout.
--help
Show this message.
Recording continues until Ctrl-C is hit or the time limit is reached.
Spoiler: SDCARD
sdcard
inaccessible or not found
Spoiler: SECDISCARD
secdiscard
Spoiler: SECDISCARD COMMANDS
Usage: secdiscard [--no-unlink] -- <absolute path> ...
Spoiler: SECILC
secilc
can't execute: Permission denied
Spoiler: SED
sed
Spoiler: SHELL PICTURES CONTINUED
Spoiler: SED COMMANDS
usage: sed [-inrzE] [-e SCRIPT]...|SCRIPT [-f SCRIPT_FILE]... [FILE...]
Stream editor. Apply one or more editing SCRIPTs to each line of input
(from FILE or stdin) producing output (by default to stdout).
-e Add SCRIPT to list
-f Add contents of SCRIPT_FILE to list
-i Edit each file in place (-iEXT keeps backup file with extension EXT)
-n No default output (use the p command to output matched lines)
-r Use extended regular expression syntax
-E POSIX alias for -r
-s Treat input files separately (implied by -i)
-z Use \0 rather than \n as the input line separator
A SCRIPT is a series of one or more COMMANDs separated by newlines or
semicolons. All -e SCRIPTs are concatenated together as if separated
by newlines, followed by all lines from -f SCRIPT_FILEs, in order.
If no -e or -f SCRIPTs are specified, the first argument is the SCRIPT.
Each COMMAND may be preceded by an address which limits the command to
apply only to the specified line(s). Commands without an address apply to
every line. Addresses are of the form:
[ADDRESS[,ADDRESS]][!]COMMAND
The ADDRESS may be a decimal line number (starting at 1), a /regular
expression/ within a pair of forward slashes, or the character "$" which
matches the last line of input. (In -s or -i mode this matches the last
line of each file, otherwise just the last line of the last file.) A single
address matches one line, a pair of comma separated addresses match
everything from the first address to the second address (inclusive). If
both addresses are regular expressions, more than one range of lines in
each file can match. The second address can be +N to end N lines later.
REGULAR EXPRESSIONS in sed are started and ended by the same character
(traditionally / but anything except a backslash or a newline works).
Backslashes may be used to escape the delimiter if it occurs in the
regex, and for the usual printf escapes (\abcefnrtv and octal, hex,
and unicode). An empty regex repeats the previous one. ADDRESS regexes
(above) require the first delimiter to be escaped with a backslash when
it isn't a forward slash (to distinguish it from the COMMANDs below).
Sed mostly operates on individual lines one at a time. It reads each line,
processes it, and either writes it to the output or discards it before
reading the next line. Sed can remember one additional line in a separate
buffer (using the h, H, g, G, and x commands), and can read the next line
of input early (using the n and N command), but other than that command
scripts operate on individual lines of text.
Each COMMAND starts with a single character. The following commands take
no arguments:
! Run this command when the test _didn't_ match.
{ Start a new command block, continuing until a corresponding "}".
Command blocks may nest. If the block has an address, commands within
the block are only run for lines within the block's address range.
} End command block (this command cannot have an address)
d Delete this line and move on to the next one
(ignores remaining COMMANDs)
D Delete one line of input and restart command SCRIPT (same as "d"
unless you've glued lines together with "N" or similar)
g Get remembered line (overwriting current line)
G Get remembered line (appending to current line)
h Remember this line (overwriting remembered line)
H Remember this line (appending to remembered line, if any)
l Print line, escaping \abfrtv (but not newline), octal escaping other
nonprintable characters, wrapping lines to terminal width with a
backslash, and appending $ to actual end of line.
n Print default output and read next line, replacing current line
(If no next line available, quit processing script)
N Append next line of input to this line, separated by a newline
(This advances the line counter for address matching and "=", if no
next line available quit processing script without default output)
p Print this line
P Print this line up to first newline (from "N")
q Quit (print default output, no more commands processed or lines read)
x Exchange this line with remembered line (overwrite in both directions)
= Print the current line number (followed by a newline)
The following commands (may) take an argument. The "text" arguments (to
the "a", "b", and "c" commands) may end with an unescaped "\" to append
the next line (for which leading whitespace is not skipped), and also
treat ";" as a literal character (use "\;" instead).
a [text] Append text to output before attempting to read next line
b [label] Branch, jumps to :label (or with no label, to end of SCRIPT)
c [text] Delete line, output text at end of matching address range
(ignores remaining COMMANDs)
i [text] Print text
r [file] Append contents of file to output before attempting to read
next line.
s/S/R/F Search for regex S, replace matched text with R using flags F.
The first character after the "s" (anything but newline or
backslash) is the delimiter, escape with \ to use normally.
The replacement text may contain "&" to substitute the matched
text (escape it with backslash for a literal &), or \1 through
\9 to substitute a parenthetical subexpression in the regex.
You can also use the normal backslash escapes such as \n and
a backslash at the end of the line appends the next line.
The flags are:
[0-9] A number, substitute only that occurrence of pattern
g Global, substitute all occurrences of pattern
i Ignore case when matching
p Print the line if match was found and replaced
w [file] Write (append) line to file if match replaced
t [label] Test, jump to :label only if an "s" command found a match in
this line since last test (replacing with same text counts)
T [label] Test false, jump only if "s" hasn't found a match.
w [file] Write (append) line to file
y/old/new/ Change each character in 'old' to corresponding character
in 'new' (with standard backslash escapes, delimiter can be
any repeated character except \ or \n)
: [label] Labeled target for jump commands
# Comment, ignore rest of this line of SCRIPT
Deviations from POSIX: allow extended regular expressions with -r,
editing in place with -i, separate with -s, NUL-separated input with -z,
printf escapes in text, line continuations, semicolons after all commands,
2-address anywhere an address is allowed, "T" command, multiline
continuations for [abc], \; to end [abc] argument before end of line.
Spoiler: ALL BIN SYSTEMS CONTINUED PART 12 (S)
Spoiler: SENDEVENT
sendevent
Spoiler: SENDEVENT COMMANDS
usage: sendevent DEVICE TYPE CODE VALUE
Sends a Linux input event.
Spoiler: SENSORSERVICE
sensorservice
halts the shell
Spoiler: SEQ
seq
Spoiler: SEQ COMMANDS
usage: seq [-w|-f fmt_str] [-s sep_str] [first] [increment] last
Count from first to last, by increment. Omitted arguments default
to 1. Two arguments are used as first and last. Arguments can be
negative or floating point.
-f Use fmt_str as a printf-style floating point format string
-s Use sep_str as separator, default is a newline character
-w Pad to equal width with leading zeroes
Spoiler: SERVICE
service
Spoiler: SERVICE COMMANDS
Usage: service [-h|-?]
service list
service check SERVICE
service call SERVICE CODE [i32 N | i64 N | f N | d N | s16 STR | null | fd f | nfd n | afd f ] ...
Options:
i32: Write the 32-bit integer N into the send parcel.
i64: Write the 64-bit integer N into the send parcel.
f: Write the 32-bit single-precision number N into the send parcel.
d: Write the 64-bit double-precision number N into the send parcel.
s16: Write the UTF-16 string STR into the send parcel.
null: Write a null binder into the send parcel.
fd: Write a file descriptor for the file f to the send parcel.
nfd: Write file descriptor n to the send parcel.
afd: Write an ashmem file descriptor for a region containing the data from file f to the send parcel.
Spoiler: SERVICEMANAGER
servicemanager
inaccessible or not found
Spoiler: SET-VERITY-STATE
set-verity-state
Spoiler: SET-VERITY-STATE COMMANDS
usage: set-verity-state [1|0]
Spoiler: SETENFORCE
setenforce
Spoiler: SETENFORCE COMMANDS
usage: setenforce [enforcing|permissive|1|0]
Sets whether SELinux is enforcing (1) or permissive (0).
Spoiler: SETENFORCE KNOWLEDGE
SELinux/Tutorials/Permissive versus enforcing - Gentoo Wiki
wiki.gentoo.org
Spoiler: SETPROP
setprop
Spoiler: SETPROP COMMANDS
usage: setprop NAME VALUE
Sets an Android system property.
Spoiler: SETSID
setsid
Spoiler: SETID COMMANDS
usage: setsid [-cdw] command [args...]
Run process in a new session.
-d Detach from tty
-c Control tty (become foreground process & receive keyboard signals)
-w Wait for child (and exit with its status)
Spoiler: SETTINGS
settings
Spoiler: SETTINGS COMMANDS
help
Print this help text.
get [--user <USER_ID> | current] NAMESPACE KEY
Retrieve the current value of KEY.
put [--user <USER_ID> | current] NAMESPACE KEY VALUE [TAG] [default]
Change the contents of KEY to VALUE.
TAG to associate with the setting.
{default} to set as the default, case-insensitive only for global/secure namespace
delete [--user <USER_ID> | current] NAMESPACE KEY
Delete the entry for KEY.
reset [--user <USER_ID> | current] NAMESPACE {PACKAGE_NAME | RESET_MODE}
Reset the global/secure table for a package with mode.
RESET_MODE is one of {untrusted_defaults, untrusted_clear, trusted_defaults}, case-insensitive
list [--user <USER_ID> | current] NAMESPACE
Print all defined keys.
NAMESPACE is one of {system, secure, global}, case-insensitive
Spoiler: SGDISK
sgdisk
Spoiler: SH
sh
Spoiler: SHA1SUM, SHA224SUM, SHA256SUM, SHA512SUM
sha1sum
sha224sum
sha256sum
sha512sum
Spoiler: SHA?SUM COMMANDS
usage: sha?sum [-bcs] [FILE]...
Calculate sha hash for each input file, reading from stdin if none. Output
one hash (40 hex digits for sha1, 56 for sha224, 64 for sha256, 96 for sha384,
and 128 for sha512) for each input file, followed by filename.
-b Brief (hash only, no filename)
-c Check each line of each FILE is the same hash+filename we'd output
-s No output, exit status 0 if all hashes match, 1 otherwise
Spoiler: SHOWMAP
showmap
Spoiler: SHOWMAP COMMANDS
showmap [-aqtv] [-f FILE] PID
-a addresses (show virtual memory map)
-q quiet (don't show error if map could not be read)
-t terse (show only items with private pages)
-v verbose (don't coalesce maps with the same name)
-f FILE (read from input from FILE instead of PID)
Spoiler: SIMPLEPERF
simpleperf
Spoiler: SIMPLEPERF COMMANDS
Usage: simpleperf [common options] subcommand [args_for_subcommand]
common options:
-h/--help Print this help information.
--log <severity> Set the minimum severity of logging. Possible severities
include verbose, debug, warning, info, error, fatal.
Default is info.
--log-to-android-buffer Write log to android log buffer instead of stderr.
--version Print version of simpleperf.
subcommands:
api-collect Collect recording data generated by app api
api-prepare Prepare recording via app api
debug-unwind Debug/test offline unwinding.
dump dump perf record file
help print help information for simpleperf
inject convert etm instruction tracing data into instr ranges
kmem collect kernel memory allocation information
list list available event types
record record sampling info in perf.data
report report sampling information in perf.data
report-sample report raw sample information in perf.data
stat gather performance counter information
trace-sched Trace system-wide process runtime events.
Spoiler: SIMPLEPERF_APP_RUNNER
simpleperf_app_runner
Spoiler: SIMPLEPERF_APP_RUNNER COMMANDS
simpleperf_app_runner: usage: simpleperf_app_runner package_name simpleperf_cmd simpleperf_cmd_args...
Spoiler: SLEEP
sleep
Spoiler: SLEEP COMMANDS
usage: sleep DURATION
Wait before exiting.
DURATION can be a decimal fraction. An optional suffix can be "m"
(minutes), "h" (hours), "d" (days), or "s" (seconds, the default).
Spoiler: SLOAD_F2FS
sload_f2fs
inaccessible or not found
Spoiler: SM
sm
Spoiler: SM COMMANDS
usage: sm list-disks [adoptable]
sm list-volumes [public|private|emulated|stub|all]
sm has-adoptable
sm get-primary-storage-uuid
sm set-force-adoptable [on|off|default]
sm set-virtual-disk [true|false]
sm partition DISK [public|private|mixed] [ratio]
sm mount VOLUME
sm unmount VOLUME
sm format VOLUME
sm benchmark VOLUME
sm idle-maint [run|abort]
sm fstrim
sm forget [UUID|all]
sm set-emulate-fbe [true|false]
sm set-isolated-storage [on|off|default]
sm start-checkpoint <num-retries>
sm supports-checkpoint
Spoiler: SM KNOWLEDGE
sm(1) [suse man page]
The INN storage manager is the subsystem that stores and keeps track of all of the articles and what storage backend they're in. All stored articles are assigned a storage API token. sm is a command-line interface to that sto
www.unix.com
Spoiler: SNAPSHOTCTL
snapshotctl
inaccessible or not found
Spoiler: ALL BIN SYSTEMS CONTINUED PART 13 (S-T)
Spoiler: SORT
sort
Spoiler: SORT COMMANDS
usage: sort [-Mbcdfginrsuz] [FILE...] [-k#[,#[x]] [-t X]] [-o FILE]
Sort all lines of text from input files (or stdin) to stdout.
-M Month sort (jan, feb, etc)
-V Version numbers (name-1.234-rc6.5b.tgz)
-b Ignore leading blanks (or trailing blanks in second part of key)
-c Check whether input is sorted
-d Dictionary order (use alphanumeric and whitespace chars only)
-f Force uppercase (case insensitive sort)
-g General numeric sort (double precision with nan and inf)
-i Ignore nonprinting characters
-k Sort by "key" (see below)
-n Numeric order (instead of alphabetical)
-o Output to FILE instead of stdout
-r Reverse
-s Skip fallback sort (only sort with keys)
-t Use a key separator other than whitespace
-u Unique lines only
-x Hexadecimal numerical sort
-z Zero (null) terminated lines
Sorting by key looks at a subset of the words on each line. -k2 uses the
second word to the end of the line, -k2,2 looks at only the second word,
-k2,4 looks from the start of the second to the end of the fourth word.
-k2.4,5 starts from the fourth character of the second word, to the end
of the fifth word. Specifying multiple keys uses the later keys as tie
breakers, in order. A type specifier appended to a sort key (such as -2,2n)
applies only to sorting that key.
Spoiler: SPLIT
split
Spoiler: SPLIT COMMANDS
usage: split [-a SUFFIX_LEN] [-b BYTES] [-l LINES] [INPUT [OUTPUT]]
Copy INPUT (or stdin) data to a series of OUTPUT (or "x") files with
alphabetically increasing suffix (aa, ab, ac... az, ba, bb...).
-a Suffix length (default 2)
-b BYTES/file (10, 10k, 10m, 10g...)
-l LINES/file (default 1000)
Spoiler: SS
ss
Spoiler: SS COMMANDS
Usage: ss [ OPTIONS ]
ss [ OPTIONS ] [ FILTER ]
-h, --help this message
-V, --version output version information
-n, --numeric don't resolve service names
-r, --resolve resolve host names
-a, --all display all sockets
-l, --listening display listening sockets
-o, --options show timer information
-e, --extended show detailed socket information
-m, --memory show socket memory usage
-p, --processes show process using socket
-i, --info show internal TCP information
-s, --summary show socket usage summary
-b, --bpf show bpf filter socket information
-E, --events continually display sockets as they are destroyed
-Z, --context display process SELinux security contexts
-z, --contexts display process and socket SELinux security contexts
-N, --net switch to the specified network namespace name
-4, --ipv4 display only IP version 4 sockets
-6, --ipv6 display only IP version 6 sockets
-0, --packet display PACKET sockets
-t, --tcp display only TCP sockets
-S, --sctp display only SCTP sockets
-u, --udp display only UDP sockets
-d, --dccp display only DCCP sockets
-w, --raw display only RAW sockets
-x, --unix display only Unix domain sockets
-f, --family=FAMILY display sockets of type FAMILY
FAMILY := {inet|inet6|link|unix|netlink|help}
-K, --kill forcibly close sockets, display what was closed
-H, --no-header Suppress header line
-A, --query=QUERY, --socket=QUERY
QUERY := {all|inet|tcp|udp|raw|unix|unix_dgram|unix_stream|unix_seqpacket|packet|netlink}[,QUERY]
-D, --diag=FILE Dump raw information about TCP sockets to FILE
-F, --filter=FILE read filter information from FILE
FILTER := [ state STATE-FILTER ] [ EXPRESSION ]
STATE-FILTER := {all|connected|synchronized|bucket|big|TCP-STATES}
TCP-STATES := {established|syn-sent|syn-recv|fin-wait-{1,2}|time-wait|closed|close-wait|last-ack|listening|closing}
connected := {established|syn-sent|syn-recv|fin-wait-{1,2}|time-wait|close-wait|last-ack|closing}
synchronized := {established|syn-recv|fin-wait-{1,2}|time-wait|close-wait|last-ack|closing}
bucket := {syn-recv|time-wait}
big := {established|syn-sent|fin-wait-{1,2}|closed|close-wait|last-ack|listening|closing}
Spoiler: START
start
"Must be root"
Spoiler: STOP
stop
"Must be root"
Spoiler: STORAGED
storaged
inaccessible or not found
Spoiler: STRINGS
strings
Spoiler: STRINGS COMMANDS
usage: strings [-fo] [-t oxd] [-n LEN] [FILE...]
Display printable strings in a binary file
-f Show filename
-n At least LEN characters form a string (default 4)
-o Show offset (ala -t d)
-t Show offset type (o=octal, d=decimal, x=hexadecimal)
Spoiler: STRINGS KNOWLEDGE
strings(1) - Linux man page
strings is mainly useful for determining the contents of non-text files.
linux.die.net
How to Discover Hidden Fastboot Commands
There are many hidden fastboot commands on your device. In order to find them, we will need to dump the bootloader and examine the contents!
www.xda-developers.com
Spoiler: STTY
stty
Spoiler: STTY COMMANDS
usage: stty [-ag] [-F device] SETTING...
Get/set terminal configuration.
-F Open device instead of stdin
-a Show all current settings (default differences from "sane")
-g Show all current settings usable as input to stty
Special characters (syntax ^c or undef): intr quit erase kill eof eol eol2
swtch start stop susp rprnt werase lnext discard
Control/input/output/local settings as shown by -a, '-' prefix to disable
Combo settings: cooked/raw, evenp/oddp/parity, nl, ek, sane
N set input and output speed (ispeed N or ospeed N for just one)
cols N set number of columns
rows N set number of rows
line N set line discipline
min N set minimum chars per read
time N set read timeout
speed show speed only
size show size only
Spoiler: SURFACEFLINGER
surfaceflinger
inaccessible or not found
Spoiler: SVC
svc
Spoiler: SVC COMMANDS
Available commands:
help Show information about the subcommands
power Control the power manager
usb Control Usb state
nfc Control NFC functions
bluetooth Control Bluetooth service
system-server System server process related command
Spoiler: SWAPOFF
swapoff
Spoiler: SWAPOFF COMMANDS
usage: swapoff swapregion
Disable swapping on a given swapregion.
Spoiler: SWAPON
swapon
Spoiler: SWAPON COMMANDS
usage: swapon [-d] [-p priority] filename
Enable swapping on a given device/file.
-d Discard freed SSD pages
-p Priority (highest priority areas allocated first)
Spoiler: SYNC
sync
Spoiler: SYNC COMMANDS
usage: sync
Write pending cached data to disk (synchronize), blocking until done.
Spoiler: SYSCTL
sysctl
Spoiler: SYSCTL COMMANDS
usage: sysctl [-aAeNnqw] [-p [FILE] | KEY[=VALUE]...]
Read/write system control data (under /proc/sys).
-a,A Show all values
-e Don't warn about unknown keys
-N Don't print key values
-n Don't print key names
-p Read values from FILE (default /etc/sysctl.conf)
-q Don't show value after write
-w Only write values (object to reading)
Spoiler: TAC
tac
Spoiler: TAC COMMANDS
usage: tac [FILE...]
Output lines in reverse order.
Spoiler: TAIL
tail
Spoiler: TAIL COMMANDS
usage: tail [-n|c NUMBER] [-f] [FILE...]
Copy last lines from files to stdout. If no files listed, copy from
stdin. Filename "-" is a synonym for stdin.
-n Output the last NUMBER lines (default 10), +X counts from start
-c Output the last NUMBER bytes, +NUMBER counts from start
-f Follow FILE(s), waiting for more data to be appended
Spoiler: TAR
tar
Spoiler: TAR COMMANDS
usage: tar [-cxt] [-fvohmjkOS] [-XTCf NAME] [FILE...]
Create, extract, or list files in a .tar (or compressed t?z) file.
Options:
c Create x Extract t Test (list)
f tar FILE (default -) C Change to DIR first v Verbose display
o Ignore owner h Follow symlinks m Ignore mtime
J xz compression j bzip2 compression z gzip compression
O Extract to stdout X exclude names in FILE T include names in FILE
--exclude FILENAME to exclude --full-time Show seconds with -tv
--mode MODE Adjust modes --mtime TIME Override timestamps
--owner NAME Set file owner to NAME --group NAME Set file group to NAME
--sparse Record sparse files
--restrict All archive contents must extract under one subdirctory
--numeric-owner Save/use/display uid and gid, not user/group name
--no-recursion Don't store directory contents
Spoiler: TASKSET
taskset
Spoiler: TASKSET COMMANDS
usage: taskset [-ap] [mask] [PID | cmd [args...]]
Launch a new task which may only run on certain processors, or change
the processor affinity of an existing PID.
Mask is a hex string where each bit represents a processor the process
is allowed to run on. PID without a mask displays existing affinity.
-p Set/get the affinity of given PID instead of a new command
-a Set/get the affinity of all threads of the PID
Spoiler: TC
tc
Spoiler: TC COMMANDS
Usage: tc [ OPTIONS ] OBJECT { COMMAND | help }
tc [-force] -batch filename
where OBJECT := { qdisc | class | filter | action | monitor | exec }
OPTIONS := { -s[tatistics] | -d[etails] | -r[aw] | -p[retty] | -b[atch] [filename] | -n[etns] name |
-nm | -nam[es] | { -cf | -conf } path }
Spoiler: TC-WRAPPER-1.0
tc-wrapper-1.0
inaccessible or not found
Spoiler: TCPDUMP
tcpdump
inaccessible or not found
Spoiler: TEE
tee
Spoiler: TEE COMMANDS
usage: tee [-ai] [FILE...]
Copy stdin to each listed file, and also to stdout.
Filename "-" is a synonym for stdout.
-a Append to files
-i Ignore SIGINT
Spoiler: TELECOM
telecom
Spoiler: TELECOM COMMANDS
usage: telecom [subcommand] [options]
usage: telecom set-phone-account-enabled <COMPONENT> <ID> <USER_SN>
usage: telecom set-phone-account-disabled <COMPONENT> <ID> <USER_SN>
usage: telecom register-phone-account <COMPONENT> <ID> <USER_SN> <LABEL>
usage: telecom register-sim-phone-account [-e] <COMPONENT> <ID> <USER_SN> <LABEL>: registers a PhoneAccount with CAPABILITY_SIM_SUBSCRIPTION and optionally CAPABILITY_PLACE_EMERGENCY_CALLS if "-e" is provided
usage: telecom set-user-selected-outgoing-phone-account [-e] <COMPONENT> <ID> <USER_SN>
usage: telecom set-test-call-redirection-app <PACKAGE>
usage: telecom set-test-call-screening-app <PACKAGE>
usage: telecom set-phone-acct-suggestion-component <COMPONENT>
usage: telecom add-or-remove-call-companion-app <PACKAGE> <1/0>
usage: telecom register-sim-phone-account <COMPONENT> <ID> <USER_SN> <LABEL> <ADDRESS>
usage: telecom unregister-phone-account <COMPONENT> <ID> <USER_SN>
usage: telecom set-default-dialer <PACKAGE>
usage: telecom get-default-dialer
usage: telecom get-system-dialer
usage: telecom wait-on-handlers
usage: telecom set-sim-count <COUNT>
usage: telecom get-sim-config
usage: telecom get-max-phones
usage: telecom stop-block-suppression: Stop suppressing the blocked number provider after a call to emergency services.
usage: telecom set-emer-phone-account-filter <PACKAGE>
telecom set-phone-account-enabled: Enables the given phone account, if it has already been registered with Telecom.
telecom set-phone-account-disabled: Disables the given phone account, if it has already been registered with telecom.
telecom set-default-dialer: Sets the override default dialer to the given component; this will override whatever the dialer role is set to.
telecom get-default-dialer: Displays the current default dialer.
telecom get-system-dialer: Displays the current system dialer.
telecom set-system-dialer: Set the override system dialer to the given component. To remove the override, send "default"
telecom wait-on-handlers: Wait until all handlers finish their work.
telecom set-sim-count: Set num SIMs (2 for DSDS, 1 for single SIM. This may restart the device.
telecom get-sim-config: Get the mSIM config string. "DSDS" for DSDS mode, or "" for single SIM
telecom get-max-phones: Get the max supported phones from the modem.
telecom set-test-emergency-phone-account-package-filter <PACKAGE>: sets a package name that will be used for test emergency calls. To clear, send an empty package name. Real emergency calls will still be placed over Telephony.
Spoiler: TERSERVICE
terservice
inaccessible or not found
Spoiler: TEST
test
Spoiler: THERMALD
thermald
inaccessible or not found
Spoiler: TIME
time
0m00.75s user 0m00.53s system
Spoiler: ALL BIN SYSTEMS CONTINUED PART 14 (T-V)
Spoiler: TIMEOUT
timeout
Spoiler: TIMEOUT COMMANDS
usage: timeout [-k DURATION] [-s SIGNAL] DURATION COMMAND...
Run command line as a child process, sending child a signal if the
command doesn't exit soon enough.
DURATION can be a decimal fraction. An optional suffix can be "m"
(minutes), "h" (hours), "d" (days), or "s" (seconds, the default).
-s Send specified signal (default TERM)
-k Send KILL signal if child still running this long after first signal
-v Verbose
--foreground Don't create new process group
--preserve-status Exit with the child's exit status
Spoiler: TOMBSTONED
tombstoned
inaccessible or not found
Spoiler: TOOLBOX
toolbox
getprop modprobe setprop start stop toolbox
Spoiler: GETPROP
getprop - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com
Spoiler: MODPROBE
No modules given.
Usage:
modprobe [-alrqvsDb] [-d DIR] [MODULE]+
modprobe [-alrqvsDb] [-d DIR] MODULE [symbol=value][...]
Options:
-b: Apply blocklist to module names too
-d: Load modules from DIR, option may be used multiple times
-D: Print dependencies for modules only, do not load -h: Print this help
-l: List modules matching pattern
-r: Remove MODULE (multiple modules may be specified)
-q: Quiet
-v: Verbose
Spoiler: SETPROP
usage: setprop NAME VALUE
Spoiler: TOOLBOX KNOWLEDGE
Android toolbox - eLinux.org
elinux.org
Spoiler: TOP
top
Spoiler: TOP COMMANDS
usage: top [-Hbq] [-k FIELD,] [-o FIELD,] [-s SORT] [-n NUMBER] [-m LINES] [-d SECONDS] [-p PID,] [-u USER,]
Show process activity in real time.
-H Show threads
-k Fallback sort FIELDS (default -S,-%CPU,-ETIME,-PID)
-o Show FIELDS (def PID,USER,PR,NI,VIRT,RES,SHR,S,%CPU,%MEM,TIME+,CMDLINE)
-O Add FIELDS (replacing PR,NI,VIRT,RES,SHR,S from default)
-s Sort by field number (1-X, default 9)
-b Batch mode (no tty)
-d Delay SECONDS between each cycle (default 3)
-m Maximum number of tasks to show
-n Exit after NUMBER iterations
-p Show these PIDs
-u Show these USERs
-q Quiet (no header lines)
Cursor LEFT/RIGHT to change sort, UP/DOWN move list, space to force
update, R to reverse sort, Q to exit.
Spoiler: TOUCH
touch
Spoiler: TOUCH COMMANDS
usage: touch [-amch] [-d DATE] [-t TIME] [-r FILE] FILE...
Update the access and modification times of each FILE to the current time.
-a Change access time
-m Change modification time
-c Don't create file
-h Change symlink
-d Set time to DATE (in YYYY-MM-DDThh:mm:SS[.frac][tz] format)
-t Set time to TIME (in [[CC]YY]MMDDhhmm[.ss][frac] format)
-r Set time same as reference FILE
Spoiler: TOYBOX
toybox
Spoiler: TOYBOX COMMANDS
usage: toybox [--long | --help | --version | [command] [arguments...]]
With no arguments, shows available commands. First argument is
name of a command to run, followed by any arguments to that command.
--long Show path to each command
To install command symlinks with paths, try:
for i in $(/bin/toybox --long); do ln -s /bin/toybox $i; done
or all in one directory:
for i in $(./toybox); do ln -s toybox $i; done; PATH=$PWD:$PATH
Most toybox commands also understand the following arguments:
--help Show command help (only)
--version Show toybox version (only)
The filename "-" means stdin/stdout, and "--" stops argument parsing.
Numerical arguments accept a single letter suffix for
kilo, mega, giga, tera, peta, and exabytes, plus an additional
"d" to indicate decimal 1000's instead of 1024.
Durations can be decimal fractions and accept minute ("m"), hour ("h"),
or day ("d") suffixes (so 0.1m = 6s).
Spoiler: TOYBOX KNOWLEDGE
toybox news
Spoiler: TR
tr
Spoiler: TR COMMANDS
usage: tr [-cds] SET1 [SET2]
Translate, squeeze, or delete characters from stdin, writing to stdout
-c/-C Take complement of SET1
-d Delete input characters coded SET1
-s Squeeze multiple output characters of SET2 into one character
Spoiler: TRACED
traced
inaccessible or not found
Spoiler: TRACED_PERF
traced_perf
inaccessible or not found
Spoiler: TRACED_PROBES
traced_probes
inaccessible or not found
Spoiler: TRIGGER_PERFETTO
trigger_perfetto
Spoiler: TRIGGER_PERFETTO COMMANDS
Usage: trigger_perfetto TRIGGER...
-h|--help Show this message
Spoiler: TRUE
true
Spoiler: TRUNCATE
truncate
Spoiler: TRUNCATE COMMANDS
usage: truncate [-c] -s SIZE file...
Set length of file(s), extending sparsely if necessary.
-c Don't create file if it doesn't exist
-s New size (with optional prefix and suffix)
SIZE prefix: + add, - subtract, < shrink to, > expand to,
/ multiple rounding down, % multiple rounding up
SIZE suffix: k=1024, m=1024^2, g=1024^3, t=1024^4, p=1024^5, e=1024^6
Spoiler: TTY
tty
Spoiler: TTY COMMANDS
usage: tty [-s]
Show filename of terminal connected to stdin.
Prints "not a tty" and exits with nonzero status if no terminal
is connected to stdin.
-s Silent, exit code only
Spoiler: TUNE2FS
tune2fs
inaccessible or not found
Spoiler: TZDATACHECK
tzdatacheck
Spoiler: TZDATACHECK
Usage: tzdatacheck BASE_TZ_DIR DATA_TZ_DIR
Checks whether any timezone update distro in DATA_TZ_DIR is compatible with the
current Android release and better than or the same as base timezone rules in
BASE_TZ_DIR. If the timezone rules in BASE_TZ_DIR are a higher version than the
one in DATA_TZ_DIR the DATA_TZ_DIR is renamed and then deleted.
Spoiler: UEVENTD
ueventd
inaccessible or not found
Spoiler: UIAUTOMATER
uiautomater
inaccessible or not found
Spoiler: ULIMIT
ulimit
usage: ulimit [-acdefHilmnpqrSstv] [value]
Spoiler: UMOUNT
umount
Spoiler: UMOUNT COMMANDS
usage: umount [-a [-t TYPE[,TYPE...]]] [-vrfD] [DIR...]
Unmount the listed filesystems.
-a Unmount all mounts in /proc/mounts instead of command line list
-D Don't free loopback device(s)
-f Force unmount
-l Lazy unmount (detach from filesystem now, close when last user does)
-n Don't use /proc/mounts
-r Remount read only if unmounting fails
-t Restrict "all" to mounts of TYPE (or use "noTYPE" to skip)
-v Verbose
Spoiler: UNAME
uname
Spoiler: UNAME COMMANDS
usage: uname [-asnrvm]
Print system information.
-s System name
-n Network (domain) name
-r Kernel Release number
-v Kernel Version
-m Machine (hardware) name
-a All of the above
Spoiler: UNCRYPT
uncrypt
Spoiler: UNIQ
uniq
Spoiler: UNIX2DOS
unix2dos
Spoiler: UNLINK
unlink
inaccessible or not found
Spoiler: UNSHARE
unshare
Spoiler: UNSHARE COMMANDS
usage: unshare [-imnpuUr] COMMAND...
Create new container namespace(s) for this process and its children, so
some attribute is not shared with the parent process.
-f Fork command in the background (--fork)
-i SysV IPC (message queues, semaphores, shared memory) (--ipc)
-m Mount/unmount tree (--mount)
-n Network address, sockets, routing, iptables (--net)
-p Process IDs and init (--pid)
-r Become root (map current euid/egid to 0/0, implies -U) (--map-root-user)
-u Host and domain names (--uts)
-U UIDs, GIDs, capabilities (--user)
A namespace allows a set of processes to have a different view of the
system than other sets of processes.
Spoiler: UNZIP
unzip
Spoiler: UNZIP COMMANDS
usage: unzip [-d DIR] [-lnopqv] ZIP [FILE...] [-x FILE...]
Extract FILEs from ZIP archive. Default is all files. Both the include and
exclude (-x) lists use shell glob patterns.
-d DIR Extract into DIR
-l List contents (-lq excludes archive name, -lv is verbose)
-n Never overwrite files (default: prompt)
-o Always overwrite files
-p Pipe to stdout
-q Quiet
-v List contents verbosely
-x FILE Exclude files
Spoiler: UPDATE_ENGINE
update_engine
inaccessible or not found
Spoiler: UPDATE_VERIFIER
update_verifier
inaccessible or not found
Spoiler: UPTIME
uptime
Spoiler: UPTIME COMMANDS
usage: uptime [-ps]
Tell the current time, how long the system has been running, the number
of users, and the system load averages for the past 1, 5 and 15 minutes.
-p Pretty (human readable) uptime
-s Since when has the system been up?
Spoiler: USBD
usbd
inaccessible or not found
Spoiler: USLEEP
usleep
Spoiler: USLEEP COMMANDS
usage: usleep MICROSECONDS
Pause for MICROSECONDS microseconds.
Spoiler: UUDECODE
uudecode
Spoiler: UUDECODE COMMANDS
usage: uudecode [-o OUTFILE] [INFILE]
Decode file from stdin (or INFILE).
-o Write to OUTFILE instead of filename in header
Spoiler: UUIDGEN
uuidgen
Spoiler: UUIDGEN COMMANDS
usage: uuidgen
Create and print a new RFC4122 random UUID.
Spoiler: VDC
vdc
inaccessible or not found
Spoiler: VIEWCOMPILER
viewcompiler
inaccessible or not found
Spoiler: VMSTAT
vmstat
Spoiler: VMSTAT COMMANDS
usage: vmstat [-n] [DELAY [COUNT]]
Print virtual memory statistics, repeating each DELAY seconds, COUNT times.
(With no DELAY, prints one line. With no COUNT, repeats until killed.)
Show processes running and blocked, kilobytes swapped, free, buffered, and
cached, kilobytes swapped in and out per second, file disk blocks input and
output per second, interrupts and context switches per second, percent
of CPU time spent running user code, system code, idle, and awaiting I/O.
First line is since system started, later lines are since last line.
-n Display the header only once
Spoiler: VOLD
vold
inaccessible or not found
Spoiler: VOLD_PREPARE_SUBDIRS
vold_prepare_subdirs
inaccessible or not found
Spoiler: ALL BIN SYSTEMS CONTINUED PART 15 (V-Z)
Spoiler: VR
vr
Spoiler: VR COMMANDS
usage: vr [subcommand]
usage: vr set-persistent-vr-mode-enabled [true|false]
usage: vr set-display-props [width] [height] [dpi]
usage: vr enable-virtual-display [true|false]
Error: Could not access the Vr Manager. Is the system running?
Spoiler: VTSERVICE
vtservice
inaccessible or not found
Spoiler: WAIT_FOR_KEYMASTER
wait_for_keymaster
inaccessible or not found
Spoiler: WATCH
watch
Spoiler: WATCH COMMANDS
usage: watch [-teb] [-n SEC] PROG ARGS
Run PROG every -n seconds, showing output. Hit q to quit.
-n Loop period in seconds (default 2)
-t Don't print header
-e Exit on error
-b Beep on command error
-x Exec command directly (vs "sh -c")
Spoiler: WATCHDOGD
watchdogd
inaccessible or not found
Spoiler: WC
wc
Spoiler: WC COMMANDS
usage: wc -lwcm [FILE...]
Count lines, words, and characters in input.
-l Show lines
-w Show words
-c Show bytes
-m Show characters
By default outputs lines, words, bytes, and filename for each
argument (or from stdin if none). Displays only either bytes
or characters.
Spoiler: WHICH
which
Spoiler: WHICH COMMANDS
usage: which [-a] filename ...
Search $PATH for executable files matching filename(s).
-a Show all matches
Spoiler: WHOAMI
whoami
Spoiler: WHOAMI COMMANDS
usage: logname
Print the current user name.
Spoiler: WIFICOND
wificond
inaccessible or not found
Spoiler: WM
wm
Spoiler: WM COMMANDS
Window manager (window) commands:
help
Print this help text.
size [reset|WxH|WdpxHdp] [-d DISPLAY_ID]
Return or override display size.
width and height in pixels unless suffixed with 'dp'.
density [reset|DENSITY] [-d DISPLAY_ID]
Return or override display density.
folded-area [reset|LEFT,TOP,RIGHT,BOTTOM]
Return or override folded area.
scaling [off|auto] [-d DISPLAY_ID]
Set display scaling mode.
dismiss-keyguard
Dismiss the keyguard, prompting user for auth if necessary.
set-user-rotation [free|lock] [-d DISPLAY_ID] [rotation]
Set user rotation mode and user rotation.
dump-visible-window-views
Dumps the encoded view hierarchies of visible windows
set-fix-to-user-rotation [-d DISPLAY_ID] [enabled|disabled]
Spoiler: XARGS
xargs
Spoiler: XARGS COMMANDS
usage: xargs [-0prt] [-s NUM] [-n NUM] [-E STR] COMMAND...
Run command line one or more times, appending arguments from stdin.
If COMMAND exits with 255, don't launch another even if arguments remain.
-0 Each argument is NULL terminated, no whitespace or quote processing
-E Stop at line matching string
-n Max number of arguments per command
-o Open tty for COMMAND's stdin (default /dev/null)
-p Prompt for y/n from tty before running each command
-r Don't run command with empty input (otherwise always run command once)
-s Size in bytes per command line
-t Trace, print command line to stderr
Spoiler: XXD
xxd
Spoiler: XXD COMMANDS
usage: xxd [-c n] [-g n] [-i] [-l n] [-o n] [-p] [-r] [-s n] [file]
Hexdump a file to stdout. If no file is listed, copy from stdin.
Filename "-" is a synonym for stdin.
-c n Show n bytes per line (default 16)
-g n Group bytes by adding a ' ' every n bytes (default 2)
-i Include file output format (comma-separated hex byte literals)
-l n Limit of n bytes before stopping (default is no limit)
-o n Add n to display offset
-p Plain hexdump (30 bytes/line, no grouping)
-r Reverse operation: turn a hexdump into a binary file
-s n Skip to offset n
Spoiler: YES
yes
Spoiler: YES COMMANDS
usage: yes [args...]
Repeatedly output line until killed. If no args, output 'y'.
Spoiler: ZCAT
zcat
Spoiler: ZCAT COMMANDS
usage: zcat [FILE...]
Decompress files to stdout. Like `gzip -dc`.
-f Force: allow read from tty
Spoiler: ZIPINFO
zipinfo
Spoiler: ZIPINFO COMMANDS
usage: zipinfo [-1] ZIP [FILE...] [-x FILE...]
Show information about FILEs from ZIP archive. Default is all files.
Both the include and exclude (-x) lists use shell glob patterns.
-1 Show filenames only, one per line
-x FILE Exclude files
Spoiler: ZIPTOOL
ziptool
run as ziptool with unzip or zipinfo as the first argument, or symlink
The Bin Folder Has Been Purged, and the basic --help commands put up for each system that allowed us to do so. We Will Investigate All the "Inaccessible" options, in the future.
I am unable to access the options in the dev folder for the time being, for reasons presently, i can only speculate on, so the next comments will Pick up mapping out the "ETC" Folder and contents~! This will involve the use of the "cat" System we learned from the BIN folder~! and "unzip" xD
-----this comment is mostly a place holder to be able to have at least one more space for the Bin Chapters
jenneh said:
-----this comment is mostly a place holder to be able to have at least one more space for the Binary Chapters
Click to expand...
Click to collapse
You wouldn't require any placeholders. If you require a post to be inserted at any location in your thread for your own personal use, just advise the moderators team (e.g. via the report function), and we're happy to support you and to provide you with an additional reserved post.
Regards
Oswald Boelcke
Senior Moderator
Spoiler: ALL ETC CONTENT PART 1 (A2DP - AIWORKS)
Spoiler: NOTICE.XML.GZ
NOTICE.xml.gz
Spoiler: A2DP_AUDIO_POLICY_CONFIGURATION.XML
a2dp_audio_policy_configuration.xml
Spoiler: TEXT
<?xml version="1.0" encoding="UTF-8"?>
<!-- A2dp Audio HAL Audio Policy Configuration file -->
<module name="a2dp" halVersion="2.0">
<mixPorts>
<mixPort name="a2dp output" role="source"/>
<mixPort name="a2dp input" role="sink">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="44100,48000"
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
</mixPort>
</mixPorts>
<devicePorts>
<devicePort tagName="BT A2DP Out" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP" role="sink">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="44100"
channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</devicePort>
<devicePort tagName="BT A2DP Headphones" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES" role="sink">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="44100"
channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</devicePort>
<devicePort tagName="BT A2DP Speaker" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER" role="sink">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="44100"
channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</devicePort>
<devicePort tagName="BT A2DP In" type="AUDIO_DEVICE_IN_BLUETOOTH_A2DP" role="source">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="44100,48000"
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
</devicePort>
</devicePorts>
<routes>
<route type="mix" sink="BT A2DP Out"
sources="a2dp output"/>
<route type="mix" sink="BT A2DP Headphones"
sources="a2dp output"/>
<route type="mix" sink="BT A2DP Speaker"
sources="a2dp output"/>
<route type="mix" sink="a2dp input"
sources="BT A2DP In"/>
</routes>
</module>
Spoiler: A2DP_IN_AUDIO_POLICY_CONFIGURATION.XML
a2dp_in_audio_policy_configuration.xml
Spoiler: TEXT
<?xml version="1.0" encoding="UTF-8"?>
<!-- Bluetooth Input Audio HAL Audio Policy Configuration file -->
<module name="a2dp" halVersion="2.0">
<mixPorts>
<mixPort name="a2dp input" role="sink">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="44100,48000"
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
</mixPort>
</mixPorts>
<devicePorts>
<devicePort tagName="BT A2DP In" type="AUDIO_DEVICE_IN_BLUETOOTH_A2DP" role="source">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="44100,48000"
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
</devicePort>
</devicePorts>
<routes>
<route type="mix" sink="a2dp input"
sources="BT A2DP In"/>
</routes>
</module>
Spoiler: AIWORKS_NIGHT_CONFIG_RONIN.XML
aiworks_night_config_ronin.xml
Spoiler: SHOW MORE SHELL PHOTOS
Spoiler: TEXT
WE WILL DECRYPT THE TOP TEXT IN DUE TIME, AND LEARN HOW TO MAKE THE SHELL SHOW THE CHARACTERS BELOW~!
<Config>
<ExpConfig id="0">
<!-- 项目识别码 -->
<productName>"HMD_RONIN_MAIN"</productName>
<!-- 曝光参数限定:
曝光时间,ISO,数字增益:adb shell dumpsys media.camera获取,可能和实际的不一致所以还是以具体为准。示例:
android.sensor.info.exposureTimeRange (f0003): int64[2]
[16534 400000000 ]
android.sensor.info.sensitivityRange (f0001): int32[2]
[100 1600 ]
android.control.postRawSensitivityBoostRange (10027): int32[2]
[100 3199 ]
-->
<maxExp>140000000</maxExp>
<minExp>100000</minExp>
<maxSensitity>4800</maxSensitity>
<minSensitity>100</minSensitity>
<maxDgain>120</maxDgain>
<minDgain>100</minDgain>
<!-- smooth曝光策略
"Ytarget":一幅画面的目标亮度,LOWLIGHT算法用,计算preview平均亮度,小于Ytarget把亮度提到Ytarget,大于Ytarget认为足够亮不需要提亮操作
"lowLightMeanYthr":LOWLIGHT_HDR算法提亮用,低亮部分平均亮度的threshold,统计得出低亮的平均亮度
"lowLighYtarget":LOWLIGHT_HDR算法提亮用,表示要把低亮的平均亮度提到此目标亮度,小于lowLighYtarget把亮度提到lowLighYtarget,大于lowLighYtarget认为足够亮不需要提亮操作
"highLightMeanYthr":LOWLIGHT_HDR算法欠曝用,高亮部分平均亮度的threshold,统计得出高亮部分的平均亮度
"highLighYtarget":LOWLIGHT_HDR算法欠曝用,表示要把高亮降到此目标亮度
-->
<Ytarget>95</Ytarget>
<lowLightMeanYthr>80</lowLightMeanYthr>
<lowLighYtarget>80</lowLighYtarget>
<highLightMeanYthr>220</highLightMeanYthr>
<highLighYtarget>60</highLighYtarget>
<!--
histHighLightLevel/histLowLightLevel定义预览直方图高亮/低亮,并计算出高亮和低亮的占比,根据这两个占比走不同的算法
if (histHightlightPercent < histHightLightPercentAlgo && lowlightPercent > histLowLightPercentAlgo) {
histAlgo = CaptureType.LOWLIGHT;
} else if (histHightlight255Percent < histHightLight255PercentAlgo) {
histAlgo = CaptureType.LOWLIGHT;
} else if (mMeanHistY > Ytarget && histHightlight255Percent < highLight255RealPercentAlgo) {
histAlgo = CaptureType.LOWLIGHT;
} else {
histAlgo = CaptureType.LOWLIGHT_HDR;
}
-->
<histHighLightLevel>220</histHighLightLevel>
<histLowLightLevel>70</histLowLightLevel>
<histHightLightPercentAlgo>0.001</histHightLightPercentAlgo>
<histLowLightPercentAlgo>0.90</histLowLightPercentAlgo>
<histHightLight255PercentAlgo>0.0005</histHightLight255PercentAlgo>
<highLight255Thr>251</highLight255Thr>
<highLight255RealPercentAlgo>0.02</highLight255RealPercentAlgo>
<!-- 曝光策略
"HfpsBrightenTimes":高帧率场景基准提亮倍数
"LfpsBrightenTimes":低帧率场景基准提亮倍数
"minBrightenTimes":所有场景的最低提亮倍数
"brighten_rate":提亮倍数变化的曲率,值越大,较亮场景提亮的倍数越小
"darkenTimes": 欠曝的变暗基准倍数
"darken_rate": 欠曝倍数的变化曲率,值越大,高光平均亮度低的场景欠曝倍数越小
"ExpISO_ratio": 基础曝光时间和ISO的比例
"darkenExpISO_ratio": 欠曝时,倍数用来减少曝光和ISO的比例,如0.8,则曝光时间欠曝0.8倍数,ISO欠曝0.2倍数
"darkenMinISO":欠曝取图的最小ISO,区分于minSensitity,增加欠曝的可调空间
"Lfps_HightlightThr": 高光占比阈值,用于避免高光多的场景提亮过大
"Lfps_ExptimeThr": 判定高帧率和低帧率场景的曝光时间阈值
"balanceISPExp": 是否需要平衡ISP gain和曝光时间的极限值补充
"balanceISOExp": 是否需要平衡ISO和曝光时间的极限值补充
"dGainReduce": dGain按固定比例缩减,但不小于minDgain
"lowlightAdaptiveExpThredhold": Lowlight但高光占比超过该数值,采用曝光自适应
"lowlightAdaptiveExpTimes": Lowlight自适应曝光最高提亮倍数
"faceDarkTimes": 逆光场景人脸压暗参数
-->
<HfpsBrightenTimes>1.9</HfpsBrightenTimes>
<LfpsBrightenTimes>1.95</LfpsBrightenTimes>
<minBrightenTimes>1.85</minBrightenTimes>
<brighten_rate>0.6</brighten_rate>
<darkenTimes>3</darkenTimes>
<darken_rate>0.6</darken_rate>
<ExpISO_ratio>1.6</ExpISO_ratio>
<darkenExpISO_ratio>0.2</darkenExpISO_ratio>
<darkenMinISO>100</darkenMinISO>
<Lfps_HightlightThr>0.045</Lfps_HightlightThr>
<Lfps_ExptimeThr>35000000</Lfps_ExptimeThr>
<balanceISPExp>true</balanceISPExp>
<balanceISOExp>true</balanceISOExp>
<dGainReduce>1</dGainReduce>
<lowlightAdaptiveExpThredhold>-1</lowlightAdaptiveExpThredhold>
<lowlightAdaptiveExpTimes>2</lowlightAdaptiveExpTimes>
<faceDarkTimes>0.1</faceDarkTimes>
<!-- ISP 图像增强部分 -->
<noiseReductionMode>-1</noiseReductionMode>
<edgeMode>-1</edgeMode>
<sharpness>-1</sharpness>
<saturation>-1</saturation>
<contrast>-1</contrast>
<mfnr>1</mfnr>
<mfnr_minExp>0</mfnr_minExp>
</ExpConfig>
<ExpConfig id="3">
<!-- 项目识别码 -->
<productName>"HMD_RONIN_WIDE"</productName>
<!-- 曝光参数限定:
曝光时间,ISO,数字增益:adb shell dumpsys media.camera获取,可能和实际的不一致所以还是以具体为准。示例:
android.sensor.info.exposureTimeRange (f0003): int64[2]
[16534 400000000 ]
android.sensor.info.sensitivityRange (f0001): int32[2]
[100 1600 ]
android.control.postRawSensitivityBoostRange (10027): int32[2]
[100 3199 ]
-->
<maxExp>200000000</maxExp>
<minExp>100000</minExp>
<maxSensitity>2800</maxSensitity>
<minSensitity>100</minSensitity>
<maxDgain>120</maxDgain>
<minDgain>100</minDgain>
<!-- smooth曝光策略
"Ytarget":一幅画面的目标亮度,LOWLIGHT算法用,计算preview平均亮度,小于Ytarget把亮度提到Ytarget,大于Ytarget认为足够亮不需要提亮操作
"lowLightMeanYthr":LOWLIGHT_HDR算法提亮用,低亮部分平均亮度的threshold,统计得出低亮的平均亮度
"lowLighYtarget":LOWLIGHT_HDR算法提亮用,表示要把低亮的平均亮度提到此目标亮度,小于lowLighYtarget把亮度提到lowLighYtarget,大于lowLighYtarget认为足够亮不需要提亮操作
"highLightMeanYthr":LOWLIGHT_HDR算法欠曝用,高亮部分平均亮度的threshold,统计得出高亮部分的平均亮度
"highLighYtarget":LOWLIGHT_HDR算法欠曝用,表示要把高亮降到此目标亮度
-->
<Ytarget>90</Ytarget>
<lowLightMeanYthr>80</lowLightMeanYthr>
<lowLighYtarget>80</lowLighYtarget>
<highLightMeanYthr>220</highLightMeanYthr>
<highLighYtarget>60</highLighYtarget>
<!--
histHighLightLevel/histLowLightLevel定义预览直方图高亮/低亮,并计算出高亮和低亮的占比,根据这两个占比走不同的算法
if (histHightlightPercent < histHightLightPercentAlgo && lowlightPercent > histLowLightPercentAlgo) {
histAlgo = CaptureType.LOWLIGHT;
} else if (histHightlight255Percent < histHightLight255PercentAlgo) {
histAlgo = CaptureType.LOWLIGHT;
} else if (mMeanHistY > Ytarget && histHightlight255Percent < highLight255RealPercentAlgo) {
histAlgo = CaptureType.LOWLIGHT;
} else {
histAlgo = CaptureType.LOWLIGHT_HDR;
}
-->
<histHighLightLevel>220</histHighLightLevel>
<histLowLightLevel>70</histLowLightLevel>
<histHightLightPercentAlgo>0.001</histHightLightPercentAlgo>
<histLowLightPercentAlgo>0.90</histLowLightPercentAlgo>
<histHightLight255PercentAlgo>0.0005</histHightLight255PercentAlgo>
<highLight255Thr>251</highLight255Thr>
<highLight255RealPercentAlgo>0.02</highLight255RealPercentAlgo>
<!-- 曝光策略
"HfpsBrightenTimes":高帧率场景基准提亮倍数
"LfpsBrightenTimes":低帧率场景基准提亮倍数
"minBrightenTimes":所有场景的最低提亮倍数
"brighten_rate":提亮倍数变化的曲率,值越大,较亮场景提亮的倍数越小
"darkenTimes": 欠曝的变暗基准倍数
"darken_rate": 欠曝倍数的变化曲率,值越大,高光平均亮度低的场景欠曝倍数越小
"ExpISO_ratio": 基础曝光时间和ISO的比例
"darkenExpISO_ratio": 欠曝时,倍数用来减少曝光和ISO的比例,如0.8,则曝光时间欠曝0.8倍数,ISO欠曝0.2倍数
"darkenMinISO":欠曝取图的最小ISO,区分于minSensitity,增加欠曝的可调空间
"Lfps_HightlightThr": 高光占比阈值,用于避免高光多的场景提亮过大
"Lfps_ExptimeThr": 判定高帧率和低帧率场景的曝光时间阈值
"balanceISPExp": 是否需要平衡ISP gain和曝光时间的极限值补充
"balanceISOExp": 是否需要平衡ISO和曝光时间的极限值补充
"dGainReduce": dGain按固定比例缩减,但不小于minDgain
"lowlightAdaptiveExpThredhold": Lowlight但高光占比超过该数值,采用曝光自适应
"lowlightAdaptiveExpTimes": Lowlight自适应曝光最高提亮倍数
"faceDarkTimes": 逆光场景人脸压暗参数
-->
<HfpsBrightenTimes>1.8</HfpsBrightenTimes>
<LfpsBrightenTimes>1.9</LfpsBrightenTimes>
<minBrightenTimes>1.7</minBrightenTimes>
<brighten_rate>0.7</brighten_rate>
<darkenTimes>2.5</darkenTimes>
<darken_rate>1.1</darken_rate>
<ExpISO_ratio>1.6</ExpISO_ratio>
<darkenExpISO_ratio>0.2</darkenExpISO_ratio>
<darkenMinISO>100</darkenMinISO>
<Lfps_HightlightThr>0.035</Lfps_HightlightThr>
<Lfps_ExptimeThr>35000000</Lfps_ExptimeThr>
<balanceISPExp>true</balanceISPExp>
<balanceISOExp>true</balanceISOExp>
<dGainReduce>1</dGainReduce>
<lowlightAdaptiveExpThredhold>-1</lowlightAdaptiveExpThredhold>
<lowlightAdaptiveExpTimes>2</lowlightAdaptiveExpTimes>
<faceDarkTimes>0.1</faceDarkTimes>
<!-- ISP 图像增强部分 -->
<noiseReductionMode>-1</noiseReductionMode>
<edgeMode>-1</edgeMode>
<sharpness>-1</sharpness>
<saturation>-1</saturation>
<contrast>-1</contrast>
<mfnr>1</mfnr>
<mfnr_minExp>0</mfnr_minExp>
</ExpConfig>
<!-- 夜景算法配置参数 -->
<!-- iso分段: 从小往大搜索,当前iso<=iso velue时,使用该分段的参数 -->
<!-- night_exposure_time: 1为标准提亮帧、-1为标准欠爆帧,默认首个提亮帧为baseIndex -->
<!-- night_exposure_iso: 1为标准提亮帧、-1为标准欠爆帧 -->
<!-- night_lnrLevel: chrom降噪强度,取值范围 1-10 -->
<!-- night_nrLevel: luma降噪强度,取值范围 1-10 -->
<!-- night_tmoLevel: 亮度等级,取值范围 1-10 -->
<!-- night_ceLevel: 对比度强度,取值范围 0.0f-1.0f -->
<!-- night_spLevel: 锐化强度,取值范围 0.0f-1.0f -->
<NightParam id="0">
<night_iso value="200">
<night_exposure_time>1;-0.35;-1</night_exposure_time>
<night_exposure_iso>1;-0.1;-1</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>4</night_tmoLevel>
</night_iso>
<night_iso value="400">
<night_exposure_time>1;-0.23;-1.1</night_exposure_time>
<night_exposure_iso>1;-0.1;-1</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>2</night_tmoLevel>
</night_iso>
<night_iso value="1000">
<night_exposure_time>1;-0.23;-1.2</night_exposure_time>
<night_exposure_iso>1;-0.1;-1</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>0</night_tmoLevel>
</night_iso>
<night_iso value="1800">
<night_exposure_time>1;-0.3;-1.2</night_exposure_time>
<night_exposure_iso>1;-0.1;-1</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0.1</night_spLevel>
<night_tmoLevel>0</night_tmoLevel>
</night_iso>
<night_iso value="3300">
<night_exposure_time>1;-0.35;-1.4</night_exposure_time>
<night_exposure_iso>1;-0.1;-0.9</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0.2</night_spLevel>
<night_tmoLevel>0</night_tmoLevel>
</night_iso>
<night_iso value="4400">
<night_exposure_time>1;-0.5;-2.0</night_exposure_time>
<night_exposure_iso>1;-0.1;-0.8</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0.2</night_spLevel>
<night_tmoLevel>0</night_tmoLevel>
</night_iso>
<night_iso value="6000">
<night_exposure_time>1;-0.7;-2.1</night_exposure_time>
<night_exposure_iso>1;-0.1;-0.75</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0.2</night_spLevel>
<night_tmoLevel>0</night_tmoLevel>
</night_iso>
<night_iso value="7200">
<night_exposure_time>1;-0.9;-2.1</night_exposure_time>
<night_exposure_iso>1;-0.1;-0.7</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0.2</night_spLevel>
<night_tmoLevel>0</night_tmoLevel>
</night_iso>
</NightParam>
<NightParam id="3">
<night_iso value="200">
<night_exposure_time>1;-0.35;-1</night_exposure_time>
<night_exposure_iso>1;-0.1;-1</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>4</night_tmoLevel>
</night_iso>
<night_iso value="400">
<night_exposure_time>1;-0.25;-1.1</night_exposure_time>
<night_exposure_iso>1;-0.1;-1</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>3</night_tmoLevel>
</night_iso>
<night_iso value="1000">
<night_exposure_time>1;-0.25;-1.1</night_exposure_time>
<night_exposure_iso>1;-0.1;-1</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>2</night_tmoLevel>
</night_iso>
<night_iso value="1800">
<night_exposure_time>1;-0.35;-1.2</night_exposure_time>
<night_exposure_iso>1;-0.1;-1</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>0</night_tmoLevel>
</night_iso>
<night_iso value="2400">
<night_exposure_time>1;-0.45;-1.4</night_exposure_time>
<night_exposure_iso>1;-0.1;-0.9</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>2</night_tmoLevel>
</night_iso>
<night_iso value="4400">
<night_exposure_time>1;-0.55;-2.0</night_exposure_time>
<night_exposure_iso>1;-0.1;-0.8</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>3</night_tmoLevel>
</night_iso>
<night_iso value="6000">
<night_exposure_time>1;-0.7;-2.1</night_exposure_time>
<night_exposure_iso>1;-0.1;-0.75</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>0</night_tmoLevel>
</night_iso>
<night_iso value="7200">
<night_exposure_time>1;-0.9;-2.1</night_exposure_time>
<night_exposure_iso>1;-0.1;-0.7</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>3</night_tmoLevel>
</night_iso>
</NightParam>
Spoiler: PASTEBIN OF GOOGLE TRANSLATION
aiworks_night_config_ronin.xml - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com
Spoiler: AIWORKS_NIGHT_CONFIG_RONIN2.XML
aiworks_night_config_ronin2.xml
Spoiler: SHOW MORE SHELL PHOTOS
Spoiler: TEXT
<Config>
<ExpConfig id="0">
<!-- 项目识别码 -->
<productName>"HMD_RONIN_MAIN"</productName>
<!-- 曝光参数限定:
曝光时间,ISO,数字增益:adb shell dumpsys media.camera获取,可能和实际的不一致所以还是以具体为准。示例:
android.sensor.info.exposureTimeRange (f0003): int64[2]
[16534 400000000 ]
android.sensor.info.sensitivityRange (f0001): int32[2]
[100 1600 ]
android.control.postRawSensitivityBoostRange (10027): int32[2]
[100 3199 ]
-->
<maxExp>140000000</maxExp>
<minExp>100000</minExp>
<maxSensitity>5600</maxSensitity>
<minSensitity>100</minSensitity>
<maxDgain>120</maxDgain>
<minDgain>100</minDgain>
<!-- smooth曝光策略
"Ytarget":一幅画面的目标亮度,LOWLIGHT算法用,计算preview平均亮度,小于Ytarget把亮度提到Ytarget,大于Ytarget认为足够亮不需要提亮操作
"lowLightMeanYthr":LOWLIGHT_HDR算法提亮用,低亮部分平均亮度的threshold,统计得出低亮的平均亮度
"lowLighYtarget":LOWLIGHT_HDR算法提亮用,表示要把低亮的平均亮度提到此目标亮度,小于lowLighYtarget把亮度提到lowLighYtarget,大于lowLighYtarget认为足够亮不需要提亮操作
"highLightMeanYthr":LOWLIGHT_HDR算法欠曝用,高亮部分平均亮度的threshold,统计得出高亮部分的平均亮度
"highLighYtarget":LOWLIGHT_HDR算法欠曝用,表示要把高亮降到此目标亮度
-->
<Ytarget>95</Ytarget>
<lowLightMeanYthr>80</lowLightMeanYthr>
<lowLighYtarget>80</lowLighYtarget>
<highLightMeanYthr>220</highLightMeanYthr>
<highLighYtarget>60</highLighYtarget>
<!--
histHighLightLevel/histLowLightLevel定义预览直方图高亮/低亮,并计算出高亮和低亮的占比,根据这两个占比走不同的算法
if (histHightlightPercent < histHightLightPercentAlgo && lowlightPercent > histLowLightPercentAlgo) {
histAlgo = CaptureType.LOWLIGHT;
} else if (histHightlight255Percent < histHightLight255PercentAlgo) {
histAlgo = CaptureType.LOWLIGHT;
} else if (mMeanHistY > Ytarget && histHightlight255Percent < highLight255RealPercentAlgo) {
histAlgo = CaptureType.LOWLIGHT;
} else {
histAlgo = CaptureType.LOWLIGHT_HDR;
}
-->
<histHighLightLevel>220</histHighLightLevel>
<histLowLightLevel>70</histLowLightLevel>
<histHightLightPercentAlgo>0.001</histHightLightPercentAlgo>
<histLowLightPercentAlgo>0.90</histLowLightPercentAlgo>
<histHightLight255PercentAlgo>0.0005</histHightLight255PercentAlgo>
<highLight255Thr>251</highLight255Thr>
<highLight255RealPercentAlgo>0.02</highLight255RealPercentAlgo>
<!-- 曝光策略
"HfpsBrightenTimes":高帧率场景基准提亮倍数
"LfpsBrightenTimes":低帧率场景基准提亮倍数
"minBrightenTimes":所有场景的最低提亮倍数
"brighten_rate":提亮倍数变化的曲率,值越大,较亮场景提亮的倍数越小
"darkenTimes": 欠曝的变暗基准倍数
"darken_rate": 欠曝倍数的变化曲率,值越大,高光平均亮度低的场景欠曝倍数越小
"ExpISO_ratio": 基础曝光时间和ISO的比例
"darkenExpISO_ratio": 欠曝时,倍数用来减少曝光和ISO的比例,如0.8,则曝光时间欠曝0.8倍数,ISO欠曝0.2倍数
"darkenMinISO":欠曝取图的最小ISO,区分于minSensitity,增加欠曝的可调空间
"Lfps_HightlightThr": 高光占比阈值,用于避免高光多的场景提亮过大
"Lfps_ExptimeThr": 判定高帧率和低帧率场景的曝光时间阈值
"balanceISPExp": 是否需要平衡ISP gain和曝光时间的极限值补充
"balanceISOExp": 是否需要平衡ISO和曝光时间的极限值补充
"dGainReduce": dGain按固定比例缩减,但不小于minDgain
"lowlightAdaptiveExpThredhold": Lowlight但高光占比超过该数值,采用曝光自适应
"lowlightAdaptiveExpTimes": Lowlight自适应曝光最高提亮倍数
"faceDarkTimes": 逆光场景人脸压暗参数
-->
<HfpsBrightenTimes>1.9</HfpsBrightenTimes>
<LfpsBrightenTimes>1.95</LfpsBrightenTimes>
<minBrightenTimes>1.85</minBrightenTimes>
<brighten_rate>0.6</brighten_rate>
<darkenTimes>3.2</darkenTimes>
<darken_rate>0.6</darken_rate>
<ExpISO_ratio>1.6</ExpISO_ratio>
<darkenExpISO_ratio>0.2</darkenExpISO_ratio>
<darkenMinISO>100</darkenMinISO>
<Lfps_HightlightThr>0.045</Lfps_HightlightThr>
<Lfps_ExptimeThr>35000000</Lfps_ExptimeThr>
<balanceISPExp>true</balanceISPExp>
<balanceISOExp>true</balanceISOExp>
<dGainReduce>1</dGainReduce>
<lowlightAdaptiveExpThredhold>-1</lowlightAdaptiveExpThredhold>
<lowlightAdaptiveExpTimes>2</lowlightAdaptiveExpTimes>
<faceDarkTimes>0.1</faceDarkTimes>
<!-- ISP 图像增强部分 -->
<noiseReductionMode>-1</noiseReductionMode>
<edgeMode>-1</edgeMode>
<sharpness>-1</sharpness>
<saturation>-1</saturation>
<contrast>-1</contrast>
<mfnr>1</mfnr>
<mfnr_minExp>0</mfnr_minExp>
</ExpConfig>
<ExpConfig id="3">
<!-- 项目识别码 -->
<productName>"HMD_RONIN_WIDE"</productName>
<!-- 曝光参数限定:
曝光时间,ISO,数字增益:adb shell dumpsys media.camera获取,可能和实际的不一致所以还是以具体为准。示例:
android.sensor.info.exposureTimeRange (f0003): int64[2]
[16534 400000000 ]
android.sensor.info.sensitivityRange (f0001): int32[2]
[100 1600 ]
android.control.postRawSensitivityBoostRange (10027): int32[2]
[100 3199 ]
-->
<maxExp>200000000</maxExp>
<minExp>100000</minExp>
<maxSensitity>3200</maxSensitity>
<minSensitity>100</minSensitity>
<maxDgain>120</maxDgain>
<minDgain>100</minDgain>
<!-- smooth曝光策略
"Ytarget":一幅画面的目标亮度,LOWLIGHT算法用,计算preview平均亮度,小于Ytarget把亮度提到Ytarget,大于Ytarget认为足够亮不需要提亮操作
"lowLightMeanYthr":LOWLIGHT_HDR算法提亮用,低亮部分平均亮度的threshold,统计得出低亮的平均亮度
"lowLighYtarget":LOWLIGHT_HDR算法提亮用,表示要把低亮的平均亮度提到此目标亮度,小于lowLighYtarget把亮度提到lowLighYtarget,大于lowLighYtarget认为足够亮不需要提亮操作
"highLightMeanYthr":LOWLIGHT_HDR算法欠曝用,高亮部分平均亮度的threshold,统计得出高亮部分的平均亮度
"highLighYtarget":LOWLIGHT_HDR算法欠曝用,表示要把高亮降到此目标亮度
-->
<Ytarget>90</Ytarget>
<lowLightMeanYthr>80</lowLightMeanYthr>
<lowLighYtarget>86</lowLighYtarget>
<highLightMeanYthr>220</highLightMeanYthr>
<highLighYtarget>60</highLighYtarget>
<!--
histHighLightLevel/histLowLightLevel定义预览直方图高亮/低亮,并计算出高亮和低亮的占比,根据这两个占比走不同的算法
if (histHightlightPercent < histHightLightPercentAlgo && lowlightPercent > histLowLightPercentAlgo) {
histAlgo = CaptureType.LOWLIGHT;
} else if (histHightlight255Percent < histHightLight255PercentAlgo) {
histAlgo = CaptureType.LOWLIGHT;
} else if (mMeanHistY > Ytarget && histHightlight255Percent < highLight255RealPercentAlgo) {
histAlgo = CaptureType.LOWLIGHT;
} else {
histAlgo = CaptureType.LOWLIGHT_HDR;
}
-->
<histHighLightLevel>220</histHighLightLevel>
<histLowLightLevel>70</histLowLightLevel>
<histHightLightPercentAlgo>0.001</histHightLightPercentAlgo>
<histLowLightPercentAlgo>0.90</histLowLightPercentAlgo>
<histHightLight255PercentAlgo>0.0005</histHightLight255PercentAlgo>
<highLight255Thr>251</highLight255Thr>
<highLight255RealPercentAlgo>0.02</highLight255RealPercentAlgo>
<!-- 曝光策略
"HfpsBrightenTimes":高帧率场景基准提亮倍数
"LfpsBrightenTimes":低帧率场景基准提亮倍数
"minBrightenTimes":所有场景的最低提亮倍数
"brighten_rate":提亮倍数变化的曲率,值越大,较亮场景提亮的倍数越小
"darkenTimes": 欠曝的变暗基准倍数
"darken_rate": 欠曝倍数的变化曲率,值越大,高光平均亮度低的场景欠曝倍数越小
"ExpISO_ratio": 基础曝光时间和ISO的比例
"darkenExpISO_ratio": 欠曝时,倍数用来减少曝光和ISO的比例,如0.8,则曝光时间欠曝0.8倍数,ISO欠曝0.2倍数
"darkenMinISO":欠曝取图的最小ISO,区分于minSensitity,增加欠曝的可调空间
"Lfps_HightlightThr": 高光占比阈值,用于避免高光多的场景提亮过大
"Lfps_ExptimeThr": 判定高帧率和低帧率场景的曝光时间阈值
"balanceISPExp": 是否需要平衡ISP gain和曝光时间的极限值补充
"balanceISOExp": 是否需要平衡ISO和曝光时间的极限值补充
"dGainReduce": dGain按固定比例缩减,但不小于minDgain
"lowlightAdaptiveExpThredhold": Lowlight但高光占比超过该数值,采用曝光自适应
"lowlightAdaptiveExpTimes": Lowlight自适应曝光最高提亮倍数
"faceDarkTimes": 逆光场景人脸压暗参数
-->
<HfpsBrightenTimes>1.8</HfpsBrightenTimes>
<LfpsBrightenTimes>1.9</LfpsBrightenTimes>
<minBrightenTimes>1.7</minBrightenTimes>
<brighten_rate>0.7</brighten_rate>
<darkenTimes>2.5</darkenTimes>
<darken_rate>1.1</darken_rate>
<ExpISO_ratio>1.6</ExpISO_ratio>
<darkenExpISO_ratio>0.2</darkenExpISO_ratio>
<darkenMinISO>100</darkenMinISO>
<Lfps_HightlightThr>0.035</Lfps_HightlightThr>
<Lfps_ExptimeThr>35000000</Lfps_ExptimeThr>
<balanceISPExp>true</balanceISPExp>
<balanceISOExp>true</balanceISOExp>
<dGainReduce>1</dGainReduce>
<lowlightAdaptiveExpThredhold>-1</lowlightAdaptiveExpThredhold>
<lowlightAdaptiveExpTimes>2</lowlightAdaptiveExpTimes>
<faceDarkTimes>0.1</faceDarkTimes>
<!-- ISP 图像增强部分 -->
<noiseReductionMode>-1</noiseReductionMode>
<edgeMode>-1</edgeMode>
<sharpness>-1</sharpness>
<saturation>-1</saturation>
<contrast>-1</contrast>
<mfnr>1</mfnr>
<mfnr_minExp>0</mfnr_minExp>
</ExpConfig>
<!-- 夜景算法配置参数 -->
<!-- iso分段: 从小往大搜索,当前iso<=iso velue时,使用该分段的参数 -->
<!-- night_exposure_time: 1为标准提亮帧、-1为标准欠爆帧,默认首个提亮帧为baseIndex -->
<!-- night_exposure_iso: 1为标准提亮帧、-1为标准欠爆帧 -->
<!-- night_lnrLevel: chrom降噪强度,取值范围 1-10 -->
<!-- night_nrLevel: luma降噪强度,取值范围 1-10 -->
<!-- night_tmoLevel: 亮度等级,取值范围 1-10 -->
<!-- night_ceLevel: 对比度强度,取值范围 0.0f-1.0f -->
<!-- night_spLevel: 锐化强度,取值范围 0.0f-1.0f -->
<NightParam id="0">
<night_iso value="200">
<night_exposure_time>1;-0.35;-1</night_exposure_time>
<night_exposure_iso>1;-0.1;-1</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>4</night_tmoLevel>
</night_iso>
<night_iso value="400">
<night_exposure_time>1;-0.25;-1.1</night_exposure_time>
<night_exposure_iso>1;-0.1;-1</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>3</night_tmoLevel>
</night_iso>
<night_iso value="1000">
<night_exposure_time>1;-0.25;-1.2</night_exposure_time>
<night_exposure_iso>1;-0.1;-1</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>0</night_tmoLevel>
</night_iso>
<night_iso value="1800">
<night_exposure_time>1;-0.35;-1.2</night_exposure_time>
<night_exposure_iso>1;-0.1;-1</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0.1</night_spLevel>
<night_tmoLevel>0</night_tmoLevel>
</night_iso>
<night_iso value="3300">
<night_exposure_time>1;-0.4;-1.4</night_exposure_time>
<night_exposure_iso>1;-0.1;-0.9</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0.2</night_spLevel>
<night_tmoLevel>0</night_tmoLevel>
</night_iso>
<night_iso value="4400">
<night_exposure_time>1;-0.5;-2.0</night_exposure_time>
<night_exposure_iso>1;-0.1;-0.8</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0.2</night_spLevel>
<night_tmoLevel>0</night_tmoLevel>
</night_iso>
<night_iso value="6000">
<night_exposure_time>1;-0.7;-2.1</night_exposure_time>
<night_exposure_iso>1;-0.1;-0.75</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0.2</night_spLevel>
<night_tmoLevel>0</night_tmoLevel>
</night_iso>
<night_iso value="7200">
<night_exposure_time>1;-0.9;-2.1</night_exposure_time>
<night_exposure_iso>1;-0.1;-0.7</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0.2</night_spLevel>
<night_tmoLevel>2</night_tmoLevel>
</night_iso>
</NightParam>
<NightParam id="3">
<night_iso value="200">
<night_exposure_time>1;-0.35;-1</night_exposure_time>
<night_exposure_iso>1;-0.1;-1</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>4</night_tmoLevel>
</night_iso>
<night_iso value="400">
<night_exposure_time>1;-0.25;-1.1</night_exposure_time>
<night_exposure_iso>1;-0.1;-1</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>3</night_tmoLevel>
</night_iso>
<night_iso value="1000">
<night_exposure_time>1;-0.25;-1.1</night_exposure_time>
<night_exposure_iso>1;-0.1;-1</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>2</night_tmoLevel>
</night_iso>
<night_iso value="1800">
<night_exposure_time>1;-0.35;-1.2</night_exposure_time>
<night_exposure_iso>1;-0.1;-1</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>0</night_tmoLevel>
</night_iso>
<night_iso value="2400">
<night_exposure_time>1;-0.45;-1.4</night_exposure_time>
<night_exposure_iso>1;-0.1;-0.9</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>2</night_tmoLevel>
</night_iso>
<night_iso value="4400">
<night_exposure_time>1;-0.55;-2.0</night_exposure_time>
<night_exposure_iso>1;-0.1;-0.8</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>3</night_tmoLevel>
</night_iso>
<night_iso value="6000">
<night_exposure_time>1;-0.7;-2.1</night_exposure_time>
<night_exposure_iso>1;-0.1;-0.75</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>0</night_tmoLevel>
</night_iso>
<night_iso value="7200">
<night_exposure_time>1;-0.9;-2.1</night_exposure_time>
<night_exposure_iso>1;-0.1;-0.7</night_exposure_iso>
<night_ceLevel>0</night_ceLevel>
<night_lnrLevel>0</night_lnrLevel>
<night_nrLevel>0</night_nrLevel>
<night_spLevel>0</night_spLevel>
<night_tmoLevel>3</night_tmoLevel>
</night_iso>
</NightParam>
Spoiler: PASTEBIN OF GOOGLE TRANSLATION
aiworks_night_config_ronin2.xml - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com

mi 10t pro

hi i wanted to know if my mi10t pro i can put twrp
bootloader open it
my model does not have expandable
You can safely boot TWRP through fastboot (that's boot only, you don't flash). That'll let you run TWRP once, then revert to the standard recovery when you next boot.
There may be a way to have TWRP stick in recovery now, but I've had no need to try it as booting works ok.
chisnz said:
Puoi avviare in sicurezza TWRP tramite fastboot (solo avvio, non flash). Ciò ti consentirà di eseguire TWRP una volta, quindi ripristinare il ripristino standard al prossimo avvio.
Potrebbe esserci un modo per avere la chiavetta TWRP in recovery ora, ma non ho avuto bisogno di provarlo poiché l'avvio funziona bene.
Click to expand...
Click to collapse
Unfortunately my cell phone a antirollback 1
i would like to put idonesia version it's possible
I've read that people have applied standard MIUI versions from TWRP by using the .zip format MIUI ROM. If you're staying with MIUI that's even more reason not to flash TWRP and leave the MIUI recovery, as this may be required to run stock MIUI versions.
chisnz said:
I've read that people have applied standard MIUI versions from TWRP by using the .zip format MIUI ROM. If you're staying with MIUI that's even more reason not to flash TWRP and leave the MIUI recovery, as this may be required to run stock MIUI versions.
Click to expand...
Click to collapse
Yes, certainly
question but if I load a more up-to-date rom but idonesia works or goes in brik
always with miflash_unlock
People have had various levels of success with Miflash. Yes, you must be unlocked to load anything non-standard. But if I can't use it for a standard ROM you could be forced down the booting TWRP and flashing a .zip version.
where do i find twrp for the mi note 10 t pro
rossi rosssinni said:
where do i find twrp for the mi note 10 t pro
Click to expand...
Click to collapse
https://androidfilehost.com/?w=files&flid=318203
NOSS8 said:
https://androidfilehost.com/?w=files&flid=318203
Click to expand...
Click to collapse
Il valore ARB di 1 significa che la protezione anti rollback è disabilitata. ???
rossi rosssinni said:
Unfortunately my cell phone a antirollback 1
i would like to put idonesia version it's possible
Click to expand...
Click to collapse
Use this tool: https://forum.xda-developers.com/t/flash-tool-guide-use-xiaomi-flash-tool.4262425/
If it is for call recording, flash a Xiaomi EU rom A11 or A12.
https://sourceforge.net/projects/xi...files/xiaomi.eu/MIUI-STABLE-RELEASES/MIUIv12/
https://sourceforge.net/projects/xi...files/xiaomi.eu/MIUI-STABLE-RELEASES/MIUIv13/
NOSS8 said:
Use this tool: https://forum.xda-developers.com/t/flash-tool-guide-use-xiaomi-flash-tool.4262425/
If it is for call recording, flash a Xiaomi EU rom A11 or A12.
https://sourceforge.net/projects/xi...files/xiaomi.eu/MIUI-STABLE-RELEASES/MIUIv12/
https://sourceforge.net/projects/xi...files/xiaomi.eu/MIUI-STABLE-RELEASES/MIUIv13/
Click to expand...
Click to collapse
con questo sistema elimino il
antiribaltamento 1
o rimane???
antirollback
check error 1
can i load rom 0
antirollback
check error 0
rossi rosssinni said:
antirollback
check error 1
can i load rom 0
antirollback
check error 0
Click to expand...
Click to collapse
Edit flash_all.bat
Remove these lines:
Code:
fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *venus" || echo Missmatching image and device
fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *venus" || exit /B 1
::check anti_version
if exist %~dp0images\anti_version.txt (for /f "delims==" %%a in (%~dp0images\anti_version.txt) do (set CURRENT_ANTI_VER=%%a))
if [%CURRENT_ANTI_VER%] EQU [] set CURRENT_ANTI_VER=0
for /f "tokens=2 delims=: " %%i in ('fastboot %* getvar anti 2^>^&1 ^| findstr /r /c:"anti:"') do (set version=%%i)
if [%version%] EQU [] set version=0
set anticheck="antirollback check pass"
if %version% GTR %CURRENT_ANTI_VER% set anticheck="Current device antirollback version is greater than this pakcage"
echo %anticheck% | findstr /r /c:"pass" || @ECHO "Antirollback check error" && exit /B 1
fastboot %* getvar crc 2>&1 | findstr /r /c:"^crc: 1" && if %errorlevel% equ 0 (
fastboot %* flash crclist %~dp0images\crclist.txt || @ECHO "Flash crclist error" && exit /B 1
fastboot %* flash sparsecrclist %~dp0images\sparsecrclist.txt || @ECHO "Flash sparsecrclist error" && exit /B 1
)
or use TWRP
once the all.but file has been modified
and loaded the new rom
anti-rollback check error has been eliminated forever
if I have to reload a new rom I have to modify the file all but
rossi rosssinni said:
once the all.but file has been modified
and loaded the new rom
anti-rollback check error has been eliminated forever
if I have to reload a new rom I have to modify the file all but
Click to expand...
Click to collapse
I've used it a few times with no problem.
Do not lock the bootloader = advantage in case of problem you can solve it. Disadvantage = the phone will no longer be certified.
Install a Xiaomi EU rom (see post #11) which are better than stock roms with call recorder and without antirollback problem.
flash a Xiaomi EU rom A11 or A12
A11 or A12 means miu 11 or mui 12 right ???
rossi rosssinni said:
flash a Xiaomi EU rom A11 or A12
A11 or A12 means miu 11 or mui 12 right ???
Click to expand...
Click to collapse
MIUI 12 Android 11 Stable recovery/weekly Fastboot zip // MIUI 13 Android 12 Fastboot zip
or caricoto rom eu
by mistake or closed the botoloader can I reopen it with me flash miflash_unlock ???
and selected CURRENT_ANTI_VER = # and always 1

Categories

Resources