[SELinux] Devices Xperia - Android General

{
"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"
}
welcome to this new tutorial
such as changing the state of SELinux on xperia devices
Requirements:
- Devices Xperia
- Root Access
- Installed busybox
- Support init.d
- Root Explorer (optional)
Process:
1.- with root explorer locate the following directory /system file in search of build.prop
2.- add the following line so that we can afford to view the status of SELinux on our device
Code:
ro.build.selinux=1
3.- save changes
4.- reset your device and settings on the phone will appear to them the status of SELinux
- attached screenshot
5.- within the init.d folder create a script with the name 88SELinux and add the following code
Code:
#!/system/bin/sh
chmod 0644 /sys/fs/selinux/disable
setenforce 0
setprop ro.boot.selinux disable
echo 0 > /sys/fs/selinux/enforce
echo 0 > /sys/fs/selinux/disable
exit 0;
6.- 88SELinux file take permission octal 0755 can use root explorer and enter the number 0755 attached screenshot
7.- restart the terminal and the status of SELinux should appear as in the screenshot
8.- finally if you do not change the status of SELinux it is because their init.d support is not working

Good work bro lml

Related

Link2sd working on coby kyros mid 7015

yoooooooo!
i finaly figured it out after many sleepless nights (3) i got it to work its acualy simply
NOTE: YOU WILL HAVE TO DO THIS AFTER EVERY REBOOT
im running cm 6.1 froyo rooted with a 16 gb class 4 sd card with a 256 mb ext3 partition
1. first install link2sd
2. install gscript
3. install hot reboot <it costs money but im sure u can find it
4. make a new script in gscript (press menu)
5. name it someting (i named it mountfs)
6. mark "requires su"
7. paste "mount -t ext2 -o rw,loop /dev/block/vold/179:2 /data/sdext2" in the command box
8. save it
9. add it to your desktop for easy use (menu > add > shortcut > gscript > tap your script name)
10. add the hot reboot widget to your desktop
when you boot your phone up do this
1. tap the gscript on your desktop whait for it to close
2. tap on hot reboot
3. you should see your boot animation
4. ENJOY now you can start link2sd and enjoy all the free diskspace
{
"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"
}
see androidify is linked

[Tool] Statusbar SystemUI.apk replacer w/o rebooting phone

Statusbar Replacer
{
"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"
}
Hi xda users,
I want to share a batch script tool to replace your statusbar without
going to recovery or restarting your phone.
What does this do?
A: This will replace your statusbar in 5 secs. after you run replacer script, with your modded
SystemUI.apk in folder.
Extract folder inside rar archive
Place your SystemUI.apk
in the folder then connect phone to usb
then double click statusbar_replacer
Tested on Sense 4, please report if it works
on other roms to.
Usefull for
for themeing your statusbar icons, battery or
modding it with apktool if it runs or not.
How it works
1.adb mounts to sysrw
2.pushes new systemui
3.closes old systemui in memory
4.restarts new systemui(statusbar)
Requirements
Phone USB Drivers
USB Debugging on
Windows PC
Dont forget the thanks button.
Tried on my Motorola Razr i - didn't work. However after poking in the skies came to the following:
adb shell syswr - doesn't work you have to change permission manually, maybe it was an issue with Busybox
the rest looked for me as following:
adb shell
pkill -TERM -f com.android.systemui ()
exit
adb push SystemUI.apk /system/app/
adb shell
pkill -TERM -f com.android.systemui - don't ask why but tests revealed the second termination is a must =))
am startservice -n com.android.systemui/.SystemUIService
su
reboot recovery
+ change Permissions

[MOD] More space for recent apps of Keyboard Launcher

Title says everything - some of Z4T users should notice there is unnecessary image when you are using keybord... and I removed it for more spaces.
Before:
{
"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"
}
After:
Note: This needs root (How to root with unlocked bootloader)
Download
This apk is made for SGP771, but it may work on SGP712.
How to install:
Run this command within same folder you saved systemKeyboardLauncher.apk
Code:
adb push systemKeyboardLauncher.apk /data/local/tmp
adb shell
busybox mount -o remount,rw /system
dd if=/data/local/tmp/systemKeyboardLauncher.apk of=/system/priv-app/KeyboardLauncher/systemKeyboardLauncher.apk
chmod 644 /system/priv-app/KeyboardLauncher/systemKeyboardLauncher.apk
mv /system/priv-app/KeyboardLauncher/arm64 /system/priv-app/KeyboardLauncher/arm64OLD
mv /system/priv-app/KeyboardLauncher/systemKeyboardLauncher.apk /system/priv-app/KeyboardLauncher/KeyboardLauncher.apk
AndroPlus said:
Title says everything - some of Z4T users should notice there is unnecessary image when you are using keybord... and I removed it for more spaces.
Before:
View attachment 3434476
After:
View attachment 3434477
Note: This needs root (How to root with unlocked bootloader)
Download
This apk is made for SGP771, but it may work on SGP712.
How to install:
Run this command within same folder you saved systemKeyboardLauncher.apk
Code:
adb push systemKeyboardLauncher.apk /data/local/tmp
adb shell
busybox mount -o remount,rw /system
dd if=/data/local/tmp/systemKeyboardLauncher.apk of=/system/priv-app/KeyboardLauncher/systemKeyboardLauncher.apk
chmod 644 /system/priv-app/KeyboardLauncher/systemKeyboardLauncher.apk
mv /system/priv-app/KeyboardLauncher/arm64 /system/priv-app/KeyboardLauncher/arm64OLD
mv /system/priv-app/KeyboardLauncher/systemKeyboardLauncher.apk /system/priv-app/KeyboardLauncher/KeyboardLauncher.apk
Click to expand...
Click to collapse
thank you !!!
Is there anyway to make pc style keyboard work with Tablet Z2 or Tablet Z?

Action Launcher 3 supports swipe for Google Now integration (root users only)

I posted this over in the OnePlus 3 forum but was told this should be posted over here since it is not device speciric...
....
Action Launcher 3 now supports swiping right to access the Google Now page. I've gone ahead and gone through the process of enabling it on my OP3 and so far it's been flawless. Very happy to finally have this feature back.
To enable this feature you have to install Action Launcher 3 as a system app. To do this, you must do the following:
1) Download the Action Launcher APK from here: APK Mirror Link
2) Push the APK to your device by using ADB commands to type the following adb push action3.apk /sdcard/
3) Move the APK to system partition by typing the following...
adb shell
su
mount -o rw,remount /system
mv /sdcard/action3.apk /system/priv-app
chmod 644 /system/priv-app/action3.apk
mount -o ro,remount /system
exit
exit
4) Reboot (ADB reboot)
5) Once you reboot, Action Launcher 3 will be installed as a system app. Let the app update to 3.8.1 from the playstore.
6) Once Action Launcher is updated enable Google Now integration by going to Action Launcher Settings > Desktop> Google Now Integration (Alpha)
It should now be enabled. Swiping right on the home screen slides the Google Now page into frame, just like with the stock Google launcher.
Android Central's article about this
{
"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"
}

Android 8.1 Custom Init Scripts

Alright guys, I have a generic tablet with android 8.1it has an mtk armv7 processor... I'm trying to write a oneshot init that executes a shell script from /system/xbin but when I add it it doesn't seem to execute my script. Can someone help me with how to add it? The code I'm using is as follows:
# Run init.d scripts
service bsleep /system/bin/bsleep.sh
class late_start
seclabel u:r:shell:s0
user root
group root
oneshot
Click to expand...
Click to collapse
#!/system/bin/sh
(until [ "$(getprop sys.boot_completed)" == "1" ]; do
sleep 1
done
input keyevent SLEEP
Click to expand...
Click to collapse
If supported by kernel so-called init.d scripts must be located in directory /system//etc/init.d to get detected at boottime and run - scripts must be RWX. To push init.d scripts to this location elevated rights ( AKA ROOT permission ) is required.
On devices with non-rooted Android a workaround is possible: Using an App that emulates the Init.d function, e.g. Universal Init.d
{
"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"
}
Note: Universal Init.d app is no longer available in the Google Play Store. Please, download the Universal Init.d APK instead.

Categories

Resources