[MODULE] Enable Multi-User and Enable Adoptable Storage (LG) - Magisk

These are a couple of basic modules that I made up real quick so I didn't have to modify /system/build.prop. I created them mostly for personal use since I'm on the stock rom but if it is useful to you then then feel free to use them.
Enable Multi-User -- This enables it (useful for stock roms) and sets it up with a 3 user max. Tested on the T-Mobile LG G5 stock rom. The Users settings pane shows up and so does the pull down item. Switching users works as expected. I didn't go much beyond creating a user and making sure it switches.
Code:
fw.max_users=3
fw.show_multiuserui=1
Enable Adoptable Storage -- This enables the internal storage option for sd cards. Given the option toggled I'm almost positive this is a LG specific item however I'm noting it affects multiple LG phones. Tested on LG G5 stock rom with the option properly showing up. It has been tested for proper operation as well.
Code:
ro.lge.adoptable_storage=true
Some small amount of credit goes to dima-82 (https://forum.xda-developers.com/apps/magisk/module-disablemultuusermod-build-props-t3580674) for indirectly giving me the idea
Most of the credit goes to topjohnwu for creating Magisk and the mod template.

This looks like it would be extremely useful but can they work on other devices.

Related

[App] SwitchMe secure login manager needs GTAB testers please!

Hi everyone. Im one of the developers of SwitchMe, and app that allows multiple secure logins into separate installations of android on a single device. The pr is after the break.
I really need a few people to check into some issues people on the GTab have been experiencing. There are some warnings involved:
- testers must perform a full nandroid backup before using the app, it is not our responsibility if you start getting boot loops
- if you report results or bugs, please use the "Write to us" function in the app whenever possible, and always describe the issue in the header of the logs you send
- if you post here, bes sure to include your device type and rom
- if you have apps installed on sd, be sure to mention that as well
--------------------------------------------------------------------
SwitchMe is a unique application for root users that allows you to log in and out of multiple installations of Android just as you would on a desktop computer.
The technology behind SwitchMe saves all of your applications and data, protects it and stores it as a file in memory. You can then log out of an
account and log into a fresh installation of Android or another account with its own unique content.
You may create as many profiles as the memory is capable of holding. Some of these may require very little free memory because they contain few apps,
others will be larger as they contain many applications and lots of cache and data.
Why is this functionality useful?
Privacy - the most obvious benefit is that you can securely share one device among multiple users, which gives you privacy and peace of mind.
Testing - if you are a developer, you can use profiles as clean sandboxes to test your applications and their interaction with the system.
Gaming – with multiple installations of Android on a single device, you can now play online MMOs as different characters.
Speed - the games your kids play slow down your tablet, but with SwitchMe you can easily create profiles without games or instant messengers.
Battery life - when the battery is low but there are important emails or documents to edit later, switch to a profile which only contains these essentials.
These of course are only suggestions - there are plenty of other uses for the functionality SwitchMe offers.
Market link:
https://market.android.com/details?id=fahrbot.apps.switchme
The Lite version allows the creation of two profiles, enough to test on.
Screens:
i actually bought your pro version and i was able to use it, and i realized, when i try it hangs on boot, but after you clear cache after trying to switch profile, it will work pretty well, i also can confirm this works well on the nook color running cyanogen
gtab running vegan 7.1.0 gingerbread
and i have about 3 apps installed on sdcard
Thank you for the feedback. Were you wiping the cache partition through or the dalvic cache CWM?
when i switch it hung so i hard booted into Cwm recovery and wiped cahce and dalvik after rebooted it booted into 2nd profile, and worked from there, i was able to switch back in forth without it hanging on bootanimation,
for the nook color it works perfect havent really seen any issues rise since installed, only draw back when i purchased pro it was on wifes account not mine
side note wife has 23 applications installed on sdcard, on the nook color
Oo guess forgot to add functionality well i got a gtablet and nook color
the gtablet is mine and nook is wifes
But she likes to use the 10 screen so made a profile for her and her stuff, and when she uses my tablet ill use hers so i can add all my lil mods and apps so it doesnt conflict with her stuff as well we got a kid so we use it for her kid games and movies
Any issues to report?
SwitchMe 1.2 has been rolled out and now includes a lockscreen replacement:
1.2
Added lock screen for logging in and out
More stable Fast switch implementation
Reworked UI colors
Now, its very important that we get some feedback on how this big new feature works, so please read up on it in the help and post your thoughts!
1.2.2 - HOTFIX 2
Reworked widget on qHD+ displays
Fixed widget text on HC and ICS
Fast switch improved on older devices
Hi guys! I would really appreciate some feedback regarding the new lockscreen!
Anything at all guys?
Tried this app about a week ago sorry I didn't post back sooner. Running Beastly-Clemsyn rom (android 2.2) on gtablet, normal install to internal memory, no overclock. I tried to install twice but both times it froze my tablet immediately after installation. Couldn't do any testing or troubleshooting as I could not successfully install. This app is a great idea and I will keep trying to get it to work as new versions are released.
MOst likely there is no point unless your rom changes...
Thanks for the reply. I will likely change roms again soon and will definitely try this out again when I do.
OK, sorry but its just too dangerous to support data links - there would be boot loops everywhere!
By the way, some intit scripts would also make it incompatible!
1.4.3.7
Fixed device specific switch screen crashes and issues
Fixed UI bug in switch screen preferences
If anyohe had problems with superuser before, this should fix them. Please let me know if that is the case, its important we get some feedback here!
1.5.3.0
Enabled full support for MIPS and x86 architectures
Many root daemon code fixes and optimizations implemented
Any issues with the new build?
Anything to reprot?
1.5.3.8
Fixed issue switching profiles (One X and others)
Fixed rare crash on adding/ removing profiles
Fixed many device specific issues from user logs

[Ref] Google Nexus 5 tips & tricks with important info to know

Hello everyone, i see here to collect and post some known and maybe unknown tips and tricks with some important information, hoping this will be useful for noob users.
Any more tips, tricks and suggestions from users are always welcomed. And please feel free to make corrections for any wrong or missed information in this post
{
"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"
}
Preface:​
The Nexus 5 (codenamed Hammerhead) is a smartphone co-developed by Google and LG Electronics that runs the Android operating system. The successor to the Nexus 4, the device is the fifth smartphone in the Google Nexus series, a family of Android consumer devices marketed by Google and built by an original equipment manufacturer partner. The Nexus 5 was unveiled on 31 October 2013, and released in black and white colors (and lately in red) the same day for online purchase on Google Play, in selected countries.
The Nexus 5's hardware is similar to that of the LG G2, with a Snapdragon 800 system-on-chip (SoC), and a 4.95-inch 1080p display. The Nexus 5 is also the first device to feature version 4.4 of Android.
As of December 2013, a revised version of the Nexus 5 became available, featuring bigger speaker and microphone holes to allow louder audio, and better fitted buttons and SIM card tray.
Nexus 5 is the first Android device to ship with Android 4.4 "KitKat", which has a refreshed interface, improved performance, improved NFC support (such as the ability to emulate a smart card), a new "HDR+" camera shooting mode, native printing functionality, a screen recording utility, and other new and improved functionality.
The device also ships with Google Now Launcher, a redesigned home screen which allows users to quickly access Google Now on a dedicated page, and allows voice search to be activated on the home screen with a voice command.​
OTA 4.4.3 (KTU84M)
OTA 4.4.4 (KTU84P)​
Below is a quick list of all the changes that Google has made with the Android 4.4.3 update and which are clearly visible on the Nexus 5:
-A tweaked Dialer app with a colored Action bar.
-People’s app now placeholder images are now similar to that one used by Gmail.
-Fix for mm-qcamera-daemon bug. (not been fixed properly, as reported by some users).
-The ability to pause a download of additional files required by large games on the Play Store.
-The hissing sound while recording videos on the Nexus 5 is fixed. However, there is now a strange echo in the recorded audio.
-Fix for LTE connection dropping bug.
-Lot of other under-the-hood camera, Bluetooth and other system related bug-fixes.
-LED notifications are still not working for missed calls.
-Fixes of some security issues, small changes to the Chromium web browser and WebView (4.4.4)
Source​​
Questions & Answers​
Q1) Can i make a screen shot on stock firmware?
A Yes you can! user doesn’t need to root the device or employ third-party apps just to take a photo of what's happening on screen. Taking a screenshot is simple, just press the volume down and power buttons together. The device will quickly take a snapshot of the screen and you will find it in your notifications.
Q2) What is Barrel Roll?
A As part of Google's regular antics, it had introduced a "barrel roll" trick for desktop browsers. Type "do a barrel roll" as a search term, and Google would demonstrate the power of modern browsers by flipping everything around on your screen. Your Android device can also do a barrel roll if you speak out the same command. Again, It's great fun to show off.
Q3) How can i uninstall an app. without going to setting?
A Long-pressing on an app within the app drawer pops up a couple of menus along the top of the screen. App Info gives you the boring technical stuff about how much memory it's taking up, or you can fling it off the other way to uninstall it.
Q4) How can i go directly to the quick settings menu?
A expand notification bar by sliding two fingers.
Q5) How to control music from the lockscreen?
A If you’re using Play Music you’ll see music controls and full screen album art on the lockscreen. You can skip tracks and pause in here, but you can also now scrub (skip within a song) through tracks by holding one of the music controls to get the track preview to pop up and then dragging the circle to where you want to play.
Q6) How to add widgets to the lockscreen?
A If you just slide left on the lockscreen you’ll see the option to add widgets, so you can glance at your email, or see the latest tweets, without having to unlock your Nexus 5. Remember that you’ll have to enable widgets via Settings > Security > Enable widgets first.
Q7) What is inverted rendering?
A Inverted rendering is a posh way of saying it makes the pages black and turns the text white, so it looks like you're reading the internet from 1997. It also supposedly saves battery, plus is easier on the eyes if you're reading in the dark. It's under the browser's settings tab, within the accessibility area - and there's a contrast slider, too.
Q8) How can i reboot into safe mode?
A Safe mode, the savior of so many Windows PCs! If you are experiencing a problem with your N5 and you want to determine whether it is being caused by a third-party app, long-press the power button, then long-press the Power off option. Choose OK to reboot in safe mode, which completely disables all third-party apps on your device. If the problem goes away when you’re in safe mode, you should reboot your device and start removing recently installed apps until the problem goes away.
Q9) What does reset app. preferences means?
A Android gives you loads of different options for each installed app, and on the whole this is a very good thing. Sometimes it can be a bad thing, though: you may find your phone playing up because a crucial app has been disabled, or you've changed the notifications for something important like emails. In the apps drawer, you'll find Reset app preferences under the settings. This resets all your apps on a global level, returning actions and data settings to their original levels.
Q10) How to Use Emoji in the Android 4.4 KitKat Keyboard?
A Emoji, Japanese pictographs and smileys commonly used to convey letters and words in electronic messages, are becoming more mainstream for smartphone users. Historically, Android users had to download a separate app from the app store and add it as a keyboard “language” in order to use emoji. With Android 4.4 KitKat, Google has built emoji into the default Android keyboard, making it easy to communicate with these pictorial tools.
- Open Google Hangouts.
- Tap “Send a Message” within a conversation.
- Tap the Smiley Face button in the bottom-right hand corner of the numeric keyboard.
- Tap the Icons in the black bar at the top of the emoji keyboard to scroll through different types of emoji. Each section has several pages of emoji to choose from.
- Tap an Emoji to add it to your message, then click send to transmit that emoji to your contact.
Q11) I can not see messaging application?
A Hangouts application, which now supports text messaging, is used as the default text messaging application.
Q12) How to capture photos while recording?
A The Nexus 5, like nearly any device capable of capturing video, has little trouble capturing still images while recording video. Simply tap the screen while recording a video to capture a photo, which your smartphone will then instantly save in your photo gallery as the camera continues to record.
Q13) I can not see Developer Options in settings?
A Google hide this option, to enable it just go to settings---->about phone, tap 7 times on "build number" and it will be shown in settings.
Q14) What is ART runtime?
A Android uses something called Dalvik to run apps. Dalvik works by compiling an app each time it is running, which minimizes installation times and disk usage, but also makes apps slower to start up. In Android 4.4, there’s now an alternative – ART.
ART instead compiles all apps before execution, allowing them to start more quickly and get things done faster, it can also improve battery life. ART is still experimental. You can try enabling it in Developer Options. If any app doesn’t work, it’s easy to switch back to Dalvik again.
Q15) ADB can not recognize my N5. What should I do?
A Download and install Android SDK, if you already have it on your PC just update tools and platform-tools. you must have latest ADB version. If you do not want to install Android SDK, download attached file.
Q16) How can i make my N5 feel snappier?
A By speeding up (or disabling) the animated fade-in effects you see when switching between tasks, you’ll see a boost in performance and faster screen transitions. Start by unhiding “Developer options” as described above. Once in “Developer options,” scroll down to the “Window animation scale” and “Transition animation scale” options and set both to .5x. You can even turn each of these off and transitioning between apps and pages will be almost instant. If you ever want to go back, remember the defaults for both of these settings are 1x.
Q17) How can i improve my gaming graphics?
A If you are a hard-core gamer, you probably already know what 4x anti-aliasing is. First, enable Developer Options as described above, then go to Settings and click on Developer Options and enable Force 4x MSAA. Multisample anti-aliasing (MSAA) is a technique used to improve image quality. Since the N5 has a GPU capable of supporting MSAA, this setting should make your graphics look more detailed when you are playing advanced games. Keep in mind this will also cause your GPU to work harder and your device may get hotter and consume more power than normal. It’s also possible that all games may not support this.
Q18) I want to see "KitKat" on my screen, can i?
A Yes you can, go to settings---->about phone tap quickly 4-5 times on android version, then touch and hold, you will see the KitKat logo.
Q19) 2 new sensors on my Nexus 5??
A Android 4.4 supports two new types of sensors – step counters and step detectors. So far only two apps are optimized for the Nexus 5 Moves & Runtastic Pedometer.
Q20) How can i customize my LED notifications?
A A free app called Light Flow Lite allows you to take control of the colors of your notification LED. It also makes your N5 flash one color after another. This app allows you to set the notification color for over 250 applications and system events including missed calls, low battery, no signal, voice mail, calendar reminders, Gmail messages, email messages, SMS messages, MMS messages, Twitter notifications and more.
Q21) How can i put my N5 in fastboot/recovery mode?
A Turn off your phone, press and hold down Volume Down + Power button at the same time until fastboot (bootloader) mode (image of an Android with Start) appears then release the keys. Press volume up or down and select recovery by pressing power button. (For stock recovery, when you see an android logo with exclamation mark, press volume up to see the recovery menu).
Q22) How can i put my N5 in download mode (for LG flashtool)?
A Turn off your phone, hold volume up and plug your usb cable into pc while holding the volume button.
Q23) How to wirelessly charge my N5?
A In case you didn’t know already, the Nexus 5 comes equipped for charge wirelessly right out of the box. Consider purchasing a magnetic Wireless Charger to utilize the feature, and if bought, place the smartphone directly atop the device for wireless charging.
Q24) My N5 screen is turning on by itself, what is happening?
A It is caused by an application, usually by live wallpapers, try to find it and delete it, or install an antivirus app., there is a lot of antivirus apps available (avast, eset, ....). Personally i recommend Dr.Web Anti-virus, scan, delete, wipe cache and dalvik (optional).
Q25) sometimes i lose packet data, i reboot my N5 to enable packet data again?
A There is no need to turn your phone off and on to re-enable packet data, just long press on power button, enable airplane mode for 3-5 seconds then disable it.
Q26) I rooted my N5, what to do next?
A It is recommended to make a nandroid backup immediately.
Q27) I rooted my N5, made a nandroid backup, but i can not find my backup folder?
A If you used cwm recovery, with any root manager, enable root option, your backup folder is located in data/media/clockworkmod or mnt/shell/emulated/clockwordmod.
If you used TWRP, your backup is located in sdcard/twrp/backups/serial number.
Q28) The kernel does not support "Sweep2Wake" or "DoubleTap2Wake", is there a solution?
A change the kernel, or install intellicover application.
Q29) Do i need to wipe cache partition when flashing a new custom rom?
A No, there is no need to wipe cache, because when you wipe data/factory reset, cache is wiped automatically. i see to wipe cache and dalvik after flashing a new custom rom.
Q30) Do i need to wipe cache partition before flashing a new Kernel?
A No, there is no need to wipe cache, boot partition has nothing to do with cache.
Q31) What about my N5 storage?
A See @rootSU thread.
Q32) My N5 won't start, i can not get into fastboot mode, only i can get into download mode?
A Take a look here.
Q33) What is the easiest way to install driver?
A Take a look here.
Q34) How to install driver on window 8?
A See @efrant post.
Q35) How can i flash stock image on my N5?
A See @abaaaabbbb63 thread.
Q36) How to properly post a kernel bug (LAST_KMSG)?
A See @ciprianruse88 thread.
Q37) What is the best kernel/Rom for my N5?
A There is no something called "best kernel/Rom". You must try many kernels/Rom and decide what suit your rom and your need.
Q38) What is the difference between D820 & D821?
A Things are almost identical. You'll find the same spec sheet for the screen, processor, RAM, sensors, Wifi and everything else. All indications are that both the D820 and D821 run the exact same software build as well. The only tangible difference between the two models is mobile network bands. D820 for North America, D821 for the rest of the world.
Q39) What is the difference between CAF & AOSP?
A Actually, there are two main baselines for support of Qualcomm devices:
-CodeAurora (CAF) - These are Qualcomm's reference sources for their platform. This is what they provide to OEMs, and what nearly all OEMs base their software off of. As a result - nearly all non-Nexus devices are running kernels/display HALs/etc. that are derived from a CAF baseline.
-Google's software baseline, or AOSP - Usually when Google starts working on a new Android version, they'll fork from CAF at the beginning. Very often Google will be adding "new" features specific to the new Android version, while Qualcomm will continue with performance enhancements and bugfixes against the "old" baseline.
*So when a new Android revision comes out, you have two baselines: CAF which is usually "ahead" in performance but "behind" in features, and AOSP which is the opposite.
Starting with 4.3, CM started mixing code between CAF and AOSP. They put some CAF features/capabilities into their baselines for AOSP-supported devices (Nexus devices), and started putting AOSP patches into their baselines for CAF devices.
Beware when flashing custom kernels. A CAF based kernel is not compatible with AOSP based Rom and vice versa.​
Rooting:​
Rooting is often performed with the goal of overcoming limitations that carriers and hardware manufacturers put on some devices, resulting in the ability to alter or replace system applications and settings, run specialized apps that require administrator-level permissions, or perform other operations that are otherwise inaccessible to a normal Android user. Rooting is similar to jailbreaking devices running the Apple iOS operating system. On Android, rooting can also facilitate the complete removal and replacement of the device's operating system, usually with a more recent release of its current operating system. Rooting enables all the user-installed applications to run privileged commands that are typically unavailable to the devices in their stock configuration.
Legality: The Free Software Foundation Europe argues that it is legal to root or flash any device. According to the European Directive 1999/44/CE, replacing the original operating system with another does not void the statutory warranty that covers the hardware of the device for two years unless the seller can prove that the modification caused the defect.
On July 26, 2010, the United States announced a new exemption making it officially legal to root a device and run unauthorized third-party applications, as well as the ability to unlock any cell phone for use on multiple carriers.
Safety: I Have always said that the person should learn the Android OS before rooting. It is a good idea to have an idea of what rooting is doing and what it will affect. I would say spend your time really learning the OS which is not a small task. Then, if you still feel like it, go ahead and root. While rooting can help you learn many things about your device, it also can reap very bad consequences, such as:
-Bricking your phone (or in an easier way to explain, making your phone a pretty paper weight).
-Corrupting core files.
-Stopping OTA updates from going to your phone.
-Voiding phone warranty.
-Have your phone open to malicious software and applications that can do serious harm to your phone.
As you can see, it can reap very negative things. I have read/seen people who have literally had to buy brand new phones because they tried the latest and greatest rom. Rooting is essentially something that you must take at your own risk & caution. Generally, if you follow exactly the procedure of rooting made by developers, you will be more likely on the safe side.
Root process: See @Chromium thread.
What to do after rooting?: 1) make a nandroid backup via custom recovery 2) backup efs partition (save your IMEI and NV_DATA):
Install "terminal emulator" from play store, open it and type the following (enter after each line):
Code:
su
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst1 of=/sdcard/efs1.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst2 of=/sdcard/efs2.img
Then copy/move efs.img to a safe place on your pc.​
Problems can happen:​
-Stuck into a Bootloop: Bootloops are mainly caused by system files interfering with each others which cause instability and/or crash at the boot sequence. so what to do??
Long press on power button then press volume down together, boot into recovery, wipe cache and dalvik, reboot. If not, format data, reboot. if not restore your backup (supposing that you did a nandroid backup before). if you don't have a backup to restore, flash any custom rom from your sdcard after formatting system & data & cache. If you don't have a custom rom in your sdcard, push one from your pc using adb (supposed that you have adb file or sdk on your pc): boot into recovery, connect your phone to the computer open command prompt where your custom rom is present and write the following command then hit enter:
Code:
adb devices
adb push name_of_rom.zip /sdcard/
Then
Code:
adb reboot recovery
once done, go to your phone and install the rom.zip from recovery, reboot.
Or you can use "adb sideload" command: boot into recovery, choose "install zip from sideload", connect your phone to the computer open command prompt where your custom rom is present and write the following command then hit enter:
Code:
adb devices
adb sideload name_of_rom.zip
If none of above methods works, then flash stock image for your N5 using fastboot commands here.
-N5 is quietly dead: If your phone did not respond to anything, it won't turn on, can not boot into fastboot or download mode, black screen, try holding power button for 30 seconds, if not, you need another motherboard.​
N5 secret codes:​
*#*#4636#*#* Testing menu(Phone, Battery & Wifi Info, Usage Statistics).
*#06# MEID number(Display's your IMEI).
*#*#2432546#*#* Checkin(Manually check for System Updates).
*#*#8255#*#* For Google Talk service monitoring.
*#*#786#*#* Hard Reset(Wipes/Resets Data/Profile & internal storage!) (think before you do it! no warning, no go back).
*#*#1234#*#* or *#*#7873778#*#* Open superuser application.
*#123# then press dial. Shows you if you are in your home network or not (only across networks in USA/Canada).​
Recommendations:​
-Too loud wallpapers may sometimes disturb the look of your home screen and make the icons quite invisible, simple or a less-colored wallpapers are always suggested as to be the best choice. But your choice is what matters.
- Use only essential widgets on your home screen - each widget consumes memory and processing power which can slow down your phone.
- Uninstall apps that you don't use - after awhile your phone can get cluttered as some Apps are designed to always run in the background. If you rarely use an App, then uninstall it to free up memory and CPU resource.
- It is best to avoid task killers such as Advanced Task Killer. Android is designed to automatically pre-load certain applications, even if you don't load them yourself. If it starts to run low on memory, it will smartly unload the oldest running apps automatically. Manually killing tasks will only mean they get loaded in memory again. Task killers can make the phone slow, laggy, or drain battery life more quickly.
- Always use latest CWM or latest TWRP recoveries.
- Disable USB debugging when it is not in use. Leaving USB debugging enabled makes your phone vulnerable (e.g. lock pattern can be reset).
- Avoid putting your N5 in direct sunlight, it may affect touch screen & your battery performance.
- Learn how to use ADB & FASTBOOT commands instead of using toolkits, the last could not function properly.
- Check rom/kernel.zip md5 before flashing if it is convenient.
- Always update applications, if available, for better performance.
- Make a backup of your data, applications, contacts...always ready to restore from your computer.
- Read, read and read before you mess with your N5.
- Always be sure that you are flashing the right thing for your N5 variant.
- If you do not know what you are doing, so don't do it .​
Did you finish reading? Press Thanks button & consider Rating the Thread
Backup and Restore your applications and their data + your sdcard​
Backing up your apps and their data and sdcard is an essential process to keep them safe in case something goes wrong with your phone and need to be wiped.
In addition you need to make the backup when flashing new custom roms that need a factory reset before flashing.
There is a lot of apps available on play store that can do the job (Titanium, MyBackup, Helium,....).
But here i would like to show you how to backup and restore your N5 with a well known method (familiar to many users), using "adb" commands. This method is safe, easy, reliable and works on stock and rooted devices.
First you need to have Android SDK installed in your pc, or download the zip attached in first post.
Backup & Restore Apps and Data​
Backup:
Go to Settings>>>>Developer options and enable "usb debugging".
Connect your device to pc.
Open a cmd (shift + mouse right click) in "sdk platform" or in the folder downloaded from OP, and type (ENTER after each command):
Code:
adb devices
You must see your device serial number.
Code:
adb backup -apk -noshared -all -nosystem
Now look at your device and accept backup process.
Wait until finishing.
This will backup your apps and their data to the pc (a "backup.ab" file will be created).
Restore:
Go to Settings>>>>Developer options and enable "usb debugging".
Connect your device to pc.
Open a cmd (shift + mouse right click) in "sdk platform" or in the folder downloaded from OP (the backup.ab file must be there), and type (ENTER after each command):
Code:
adb devices
You must see your device serial number.
Code:
adb restore backup.ab
Now look at your device and accept restore process.
Wait until finishing.
This will restore your apps and their data to device.
Backup & Restore sdcard​
The following processes will backup and restore your whole sdcard, including obb folder, music, pictures, videos,......
Backup:
Go to Settings>>>>Developer options and enable "usb debugging".
Connect your device to pc.
Open a cmd (shift + mouse right click) in "sdk platform" or in the folder downloaded from OP, and type (ENTER after each command):
Code:
adb devices
You must see your device serial number.
Code:
adb pull /sdcard/ /sdcard/
This command will pull your sdcard (not move or cut) to "c" directory under "sdcard" folder.
This process will take time depending on the size of the sdcard, so be patient.
Restore:
Go to Settings>>>>Developer options and enable "usb debugging".
Connect your device to pc.
Open a cmd (shift + mouse right click) where the "sdcard" folder is located in your pc , and type (ENTER after each command):
Code:
adb devices
You must see your device serial number.
Code:
adb push sdcard /sdcard/
This command will push the "sdcard" to your device.
This process will take time depending on the size of the sdcard, so be patient.​
Battery Conservation Tips​
-Enable Auto Brightness: Brightness can lure a lot of battery if not changed intelligently with time to match the surroundings, KitKat in this case brought the “Auto Brightness” function which uses the light sensor within the device to detect the amount of light in the surroundings and then act upon the brightness level according to it. To enable, go to Settings > Device > Display > Brightness, and tick “Automatic Brightness“. And if you want to save more battery drain, set brightness manually at low level depending on the external amount of light.
-Remove Live Wallpapers: Using a live wallpaper is another battery sucking feature. If you turn out to be truly saving battery, make sure not to use any live wallpaper. A wallpaper with a black background uses less power than a wallpaper with a light-colored background.
-Disable Location and GPS services: Keeping GPS ON at all times, decreases your battery life, so its better to disable it while not in use. To disable, go to Settings > Personal > Location access > and switch it off - note that a nice new feature in the Settings menu can save a bit of battery life without sacrificing much at all. Go into the Location option in Settings, then choose ‘Battery Saving’ as your mode instead of ‘High Accuracy’-.
-Disable Wi-Fi or Mobile Data when not in use: Try to avoid situations when you keep your Wifi or Mobile Data ON even when the phone is set in standby.
-Manage Sync carefully: Keeping the Sync ON all the time is another reason for decreased battery life. Enable it anytime you want, manage your emails or services and again turn it off. For those who are on work and want real-time push notifications are advised not to follow this tip.
-Turn OFF Haptic Feedback and screen sounds: To save a little more on battery, its better to switch off the screen touch sounds and vibrations. To do so, go to Settings > Device > Sound and untick Dial pad touch tones, Touch sounds. Screen lock sound and Vibrate on touch.
-Turn OFF bluetooth and NFC: Disabling bluetooth and NFC when you are not using it, is another way to save battery juice.
-Follow the method of full charge and full discharge (almost): Don’t put your phone on charging when there is the battery remaining it for another few hours unless it’s very important. Charge it when your battery is about to get discharged and when you put it for charging, let it get charged totally.
-Set sleep time: Check the Sleep setting (under Display) and make sure it is set to 1 minute or less.
Keep calls short: This is obvious, but how many times have you heard people on their mobile phone say, "I think my battery’s dying," and then continue their conversation for several minutes? Sometimes, the dying battery is just an excuse to get off the phone (and a good one, at that), but if you really need to conserve the battery, limit your talk time.
-Turn OFF mobile network when not in range: Its very often that you lose the mobile network when you are travelling, so its advisable to turn OFF the mobile network by switching ON Airplane mode. Go to Settings > Wireless & Networks, tick Airplane Mode.
-Turn off unnecessary scanning of wifi services by going to Settings - > Wifi - > Bottom right three dots (menu) - > Advanced - > Uncheck scanning always available.
-Turn off unwanted background data by going to Settings - > Data usage - > and restrict background data for unwanted app.
-You should not have to turn off your phone to charge it. Most battery chargers deliver more than enough current to power your phone and charge it at the same time. Doing so will not lengthen the charge time, and leaving a phone on allows the user to be aware of its fuel gauge, so that you can remove it when the battery is full.
-When using a car charger, do not charge the battery when the inside temperature of your car is hot. Wait until the car has cooled before you plug in the phone.​
Really a helpful thread for beginners , good job the only thing I must back talk is " auto brightness saves battery " , set a low manual value saves more battery as Auto brightness ( my feeling )
Tapatalk Team SlimRoms
Tylog said:
Really a helpful thread for beginners , good job the only thing I must back talk is " auto brightness saves battery " , set a low manual value saves more battery as Auto brightness ( my feeling )
Tapatalk Team SlimRoms
Click to expand...
Click to collapse
thx mate, i mentioned also to set it manually for more battery saving :good:
No problem it's good to see people take some time and create such threads. I am sure it will help the one or other guy
Tapatalk Team SlimRoms
Nice! I just noticed this and I was like wait a minute this is new cause I've read all the stickies lol.
Sent from my SPH-D710 using XDA Premium 4 mobile app
Nice one, very helpfull for both newbies and the more advanced users :good:
Maybe you could include a small tutorial for making different logs like last_ksmg or Dmesg, especialy for the kernel devs to pinpoint and solve issues
gee2012 said:
Nice one, very helpfull for both newbies and the more advanced users :good:
Maybe you could include a small tutorial for making different logs like last_ksmg or Dmesg, especialy for the kernel devs to pinpoint and solve issues
Click to expand...
Click to collapse
Thank you mate. I included a link on "how to" post logs for last_ksmg
Sent from my Nexus 5 using XDA Premium 4 mobile app
Great thread. To add to recommendations.
If rooted, use bootlocker app to keep bootloader locked until you need it unlocked and use flashify or similar to keep stick recovery until you need otherwise. This will make your phone a lot less vulnerable to thieves.
Sent from my Nexus 5 using Tapatalk
I would like to add, move to 2G network when using Wifi or voice calls are more important and you ain't doing any related internet activities. Huge save in battery. If you are rooted use xposed and GravityBox to change it in one click.. Or use Tasker to automate such changes. Whatsapp and fb notification works well in 2g data network.
If rooted, use greenify to stop continuous background apps.. (facebook was one of the biggest battery hog due to this). People with lot of newsreader app can be beneficial
Use an anti theft app. If rooted use rooted mode. I prefer avast anti theft.. You can wipe, and lock if stolen, locate it.. It installs with random name, hides itself from application drawer .. On sim change, it sends out notification to pre set alternative number and you can take control of your phone again.. The user will not know anything..
I bought premium licence just to say thanks to avast because I got back my Nexus after 1 month being stolen.. That too without police help and it went 1500km away...(and in India, least help from police about tracing, they just take a formal complain and throw it afterwards..[emoji20]).. I was lucky that last user didn't knew how to flash factory image.. [emoji14]
Sent from my Nexus 5 using Tapatalk
New useful sticky thread! :good:
Explanations well detailed but I'd like to add my 2 cents on a couple of points:
• I'm not sure that Terminal commands are adapted to beginners to I suggest to add thsi zip flashable.
• Q25 you forgot to mention TWRP backups. (/sdcard/TWRP/Backups/Serial number/<HERE>
Primokorn said:
New useful sticky thread! :good:
Explanations well detailed but I'd like to add my 2 cents on a couple of points:
• I'm not sure that Terminal commands are adapted to beginners to I suggest to add thsi zip flashable.
• Q25 you forgot to mention TWRP backups. (/sdcard/TWRP/Backups/Serial number/<HERE>
Click to expand...
Click to collapse
If users who want to mod and flash are not able to use a terminal emulator, they also should not use adb also imo I think you may underestimate the interested user who wants to learn something.
gee2012 said:
If users who want to mod and flash are not able to use a terminal emulator, they also should not use adb also imo I think you may underestimate the interested user who wants to learn something.
Click to expand...
Click to collapse
lol No I don't. The flashable zip remains an alternative and avoids typos From my actual experience some folks don't like Terminal commands even if it works well.
Primokorn said:
New useful sticky thread! :good:
Explanations well detailed but I'd like to add my 2 cents on a couple of points:
• I'm not sure that Terminal commands are adapted to beginners to I suggest to add thsi zip flashable.
• Q25 you forgot to mention TWRP backups. (/sdcard/TWRP/Backups/Serial number/
Click to expand...
Click to collapse
I want that users avoid using tools, zips... as possible (not offending) for learning purpose. Just 2 simple commands in T. Emulator.
Question 25 is edited :thumbup:
Thnx my friend
Sent from my Nexus 5 using XDA Premium 4 mobile app
Web_E said:
I would like to add, move to 2G network when using Wifi or voice calls are more important and you ain't doing any related internet activities. Huge save in battery. If you are rooted use xposed and GravityBox to change it in one click.. Or use Tasker to automate such changes. Whatsapp and fb notification works well in 2g data network.
If rooted, use greenify to stop continuous background apps.. (facebook was one of the biggest battery hog due to this). People with lot of newsreader app can be beneficial
Use an anti theft app. If rooted use rooted mode. I prefer avast anti theft.. You can wipe, and lock if stolen, locate it.. It installs with random name, hides itself from application drawer .. On sim change, it sends out notification to pre set alternative number and you can take control of your phone again.. The user will not know anything..
I bought premium licence just to say thanks to avast because I got back my Nexus after 1 month being stolen.. That too without police help and it went 1500km away...(and in India, least help from police about tracing, they just take a formal complain and throw it afterwards..[emoji20]).. I was lucky that last user didn't knew how to flash factory image.. [emoji14]
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Some info are added.
Thank you
Sent from my Nexus 5 using XDA Premium 4 mobile app
@samersh72
In battery saving tips you forgot some points..
Here they are
=> Turn off unnecessary scanning of wifi services by going to Settings - > Wifi - > Bottom right three dots (menu) - > Advanced - > Uncheck scanning always available
=> Turn off unwanted background data by going to Settings - > Data usage - > Top right three dots - > Restrict background data
Sent from my Nexus 5 using Tapatalk
Mr hOaX said:
@samersh72
In battery saving tips you forgot some points..
Here they are
=> Turn off unnecessary scanning of wifi services by going to Settings - > Wifi - > Bottom right three dots (menu) - > Advanced - > Uncheck scanning always available
=> Turn off unwanted background data by going to Settings - > Data usage - > Top right three dots - > Restrict background data
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
info added :good:
Nice thread :good: ... Very useful, detailed and well put together.
@samersh72
Nice thread
Keep updating and adding more stuffs
I find it amusing that people post pictures of battery usage of an N5 on standby for 2 hours and its ellegedly dead.......I was repairing devices from 6:10am to 11:30(ish)PM!! and had 32%......maybe I have a SuperNexus!!!
Also, my 2¢.....there's no camera glitch. When you attribute time/date stamps to photos, it engages location and clock stand by. DERP!!! I own my own mobile repair business and deal with N5's all the time aside from my four, never once have I seen a battery drain in stand by with "no background processes running". Send your N5 to me, I'll replace the battery and root/mod it for cheaper than you paid for Photoshopping the "proof of camera battery drain"! Thanks for the awesome thread folks!!!

Huawei Private Space vs Samsung Secure Folders: how do they compare?

A few questions on Huawei Private Space vs Samsung Secure Folders
As per the subject, I’d like to understand how the two compare. I have a Samsung and am considering getting the Huawei P20 Pro. I have found a broad description of Private Space in this manual: https://www.devicemanuals.eu/wp-content/uploads/2018/04/P20-user-guide-EN.pdf
However, there are a few things I haven’t understood:
With Samsung Secure Folders, not all apps are immediately available: you have to manually select which ones you want to be made available and ‘reinstall’ them within Secure Folders. Does Private Space work the same way? Or does it immediately give you access to a ‘blank’ version of all your apps?
If it’s the latter,does Huawei provide an isolated sandbox like Samsung, or how do the two differ? The way I understand it, if you move Chrome to Secure Folders and then run it, you are not running the same executable file, but the one you have installed in the sandbox. With Huawei, are you running the same executable but then data is stored in a separate folder, eg the way a program is available to multiple users on the same PC?
Do the two offer a comparable level of protection and isolation, or is one of the two much better (if so, why?)? For example, if you download a file from a private space browser session, is it available outside of it? With the third-party app Parallel Space it is, for example https://play.google.com/store/apps/details?id=com.lbe.parallel.intl&hl=en_GB .
Does the Huawei thing work if you already have a work app to access work email set up as device administrator? This is what prevents Island from working on my Samsung, for example: https://play.google.com/store/apps/details?id=com.oasisfeng.island&hl=en_GB
Thanks!
SF vs PS
I used SF on Galaxy and since recently use PS on Mate 20 Pro, and a bit disappointed with PS, so looking for a better way of using it and see this thread which nobody seems to answer (?)
Both need to install selected apps, which is fine for me. However while SF is a space that can be used in parallel/concurrent with the normal space, PS is likely to create another user profile with encrypted data (true?), so it must be used exclusively.
However, switching from one mode to another is a pain with PS: needs long step (turn off screen then login, or long steps in setting); SF allows to be used in parallel (so same time) with main space (out of SF) and can quickly access the SF apps per task list. This is good, as we used the app in normal space but for certain data and apps we need to be in encrypted mode or protected with separated password/lock. PS can't do so, it must get out of PS to use normal mode and vice-versa, a pain for me, unless we have to install many more apps in PS as well, but then it will be redundance with normal space.
Another negative point with PS is app notification from PS, for instance, if we setup WhatsApp or another messenger in PS (or email? not tested) which use another account than the ones in main space. While we are in main space, the notification of new message in PS won't be shown so impossible to know that's there is new message. It's not a case with SF: notification still pass out of SF that we know to switch to SF to read, quickly, by task list for instance.
Data sharing or moving in out is not optimal from my viewpoint. Both work on main memory only, SF move in/out but limited number of files at a time, a pain if you have many files; PS... hum, the only way I find is thru obb folder, but this sounds to share and be visible to other users on this phones as well!!!! It is likely a Public folder rather than only for this user within both mode PS and non PS. Also, SF can be customised in setting to enable/disable clipboard between 2 areas while PS can't which is a pain too.
By the way, both SF and PS allow fingerprint to access this private space, but fingerprint is a joke for me (easily to hack) and I would not recommend it unless for temporarily use. I like the face recognisation (with eyes, a must, otherwise it's a weakness) mode of M20P, unfortunately this does not work in PS mode!
Samsung Secure Folder lacks multiple instance feature
Samsung's Secure Folder is more user friendly in term of ease of use than Stock android version of multiple user feature.
copying and moving files, opening app from the interface of main phone without logout and login another user like Stock android multiple user mode.
android's multiple user feature is shipped with some android devices, but others like Samsung just replace this feature with it's secure folder.
The biggest drawback of Samsung's Secure Folder is not possible to have multiple instance of it. you can only have one such Folder per phone.
every not fully trusted android app should run in an isolated space like Secure folder, and should offer some high level of control like, suspending(like power off), giving mock GPS, mock IMEI, IMSI etc.

Converting TAB A SM-T280 to a SAMSUNG J500f

Hi everyone one... I am looking forward to making my SM-T280 have a wee better features.
Have modded it with some extra features, but find peeps here are lazy, sor I will be accessing Russian help with a real firmware upgrade for such a great tablet. Will post more info soon.
Major change up
Seems that while waiting, I came up with a simple system file updates from three devices. Sinice the J1 is more compatible to the Table A 7.0 I spoofed the J1 build.prop settings to make Chrome layout look better, whIle system is forced in landscape mode. I also transfered over some system files, which were univereal that were not included in the basic 7.0 tablet.
So far, I have updated my bluetooth profiles and additional automobile connectivity presets, while updating wifi firmware from latest J3 phone firmware running LP. I also included a few J5 additions as well.
Now my tablet is being long term always on tested for stability.
Here is a list of added or enabled features that is on my Tab A 7.0.
FM Radio with recording
Full featured All share services
Samsung Video player with DNLA and pop out play functions
Screen Cast
Car mode with link functionality
Updated bluetooth profiles
Updated settings and system options... which I now forget what was missing, as I am now use to them.
Added missing frameworks and lib files.
Now working on a few lib files for virtual display and quick connect functionality.
An added note... wifi speeds and connectivity are much better now. Before updates I got 33mbps and delayed connections to my home network, now I get 38mbps and a fast connection when turned on.
keep it up !!!!!
dcap0187 said:
keep it up !!!!!
Click to expand...
Click to collapse
Will do... though it's been a wild ride with roller coaster events leaving me just about to kick the efforts all out the door.
Excuse the bad typing... explained at the bottom of this reply.
First of... 5.1.1 is an odd animal to get use to from 4.4 and 7.1 variants of android.
I did not realize that 5.1.1 was an abortion in the community efforts to mod and support. Most of the info I grabbed as I started was too outdated and hard to find good stuff was lost over time, server cleanup and lack of dev file space for continuing on for future builds.
So, after dumping xposed for 5.1.1 and going odex based stock, I am satisfied with hown far I have gotten.
Example... with xposed I was able to get private mode to function but... had not much reserved memory available in root storage. Even though the specs given on theach T280 state 1.5MB, which is wrong... it has plenty of room to hold more apk and .so files.
To keep speed and allow for optimum system storage use, I gave up xposed and dived into mixing 10 different stock firmwares from Samsung.
Here is a small list of known working stock firmwares, that allow transplanting apks and mostly library files over to our devices. J1, J2, J3, A3, A5, Note4, Tab S, Tab A series... both 2015 and 2016 models.
I found some custom ROMs that were odex and deodex factory firmwares, that had no disclaimer on useage.
To get missing quick settings features, I had kept an old SQL editor to patch the system db with all the useful toggles and removal of unnecessary ones.
Mirror link 100% functional, and 98% of all Accessibility features are available and operational. Finger Spen in all apps that support spen. Yes, that means the internal photo studio editor that plugs into gallery will fully function. Though I miss the 4.4 version on kitkat, as the later versions are simplified in options, like adding notes behind photos and quick file management features. WFD, Nearby, Ultra Power Saving, Side Key Panel, Full featured multi windows. Backdrop, Smart Face and Signature lock, Smart Cover, and Universal Switch are unlocked and functional.
Care Mode is 50% functional, as the tablet is not a phone, so Maps and Music are fully functional only. Bonus! Voice link via S6 S Voice. It's fully functional with out any issues that I can tell. The only issue is screen DPI to launch S Voice directly from the launcher. Found that the drawing function dumps when hour glass is extracted for screen write. I guess a simple resizing of the images within the apk will correct the FC. I am not a developer and do not mod apk files, even though from what I gather, is one of the simplist mods one can in customizations.
Since Drive Link is a UI to S Voice internals, just use Drive link to do most all of your S Voice needs. No modifications nended to S Voice apk.
Also Voice Wake is part of the package... which allows interaction between Drive Link on voice commands. Without it, you need to touch the mic to wake up S Voice when using Drive Link.
At this time... I need to find a proper WithTV package (note 4 has issues), a proper display.so lib, a way to enable gestures... I had it going in xposed with a few unknown files lost when over written while testing. Don't recall what rom I extracted from, so some day I may stumble upon it once again. I vaguely recall, the ROM was based from India, or TW. May have to look into touchwiz framework patch to get Smart Stay, Smart Pause and Smart Scroll functioning. It's not a priority as I never used them, and don't use S Browser.
SNote should work, since finger input for spen functions. Only if a developer would make an app to enable finger input as air touch enable. Example... double tap spen detatch/attach toggle. Then I can add Spen SDK and permissions to use my finger for Spen features. I had tested with stock settings menu, and it does have over 50% of the features hidden and S Pen is one of them, just no switch to detect input.
As for private mode... from what I gather, it may be that I need to flash my tablet with a clean fresh factory build and patch to enable private mode firstly. In my mad attempts to keep storage space from being consumed by uneccessary files, I recall deleting an odd file that happened to be a database file created by Private Mode. Once deleted private mode will no longer function. A factory wipe may recover, but in my case there is something changed that needed a full wipe and clean install.
I was not so keen with the Tab A setup UI, so I tested with various Phone models, the A5 and A3 setup UI is like stock but has a slightly better layout and added features that stock does not have.
I did not bother to try enabling Internet Calling and Messaging. Mostly because the last time a developer tried to do something like that, they ended up not being able to compile a working mod. So its all beyond me on diving into such a thing. There is more than just adding a dialer interface.
Well that's pretty much all I can recall in a nutshell. I am going to mess with correcting the Samsung keyboard issues from one of the framework files I am using. Its locked my popup symbols for multiple entry, which would be nice if I had a use for that feature. I have to tap away from the symold list to close the list and then type. Also even more annoying is the spelling and auto correct has greatly became touchy. It seems it wants to correct incorrectly on even the simplest words. Thus my writing looks bad, especially on long paragraphs like on this reply.
Quick update.... disabled chrome spell check and found Samsung keyboard easier to manage on spellchecking... though there is some issues still, so I will dive further.
Removed gesture service, since it requires light sensor, and included spen SDK for SNote to load, and talkback to allow voice interaction in accessibility features. Will try and fit in SNote and Voice Note, as the stock firmware is missing key lib files.
Sticking with A3 / A5 Settings2.apk as it is best all around.
Working on Qconnect, S6 Toolbar, and Personal mode.
Will not fix S6_SVoice.zip for direct useage, as it is only for drive link voice operation only. You can use a S4 SVoice as an option for direct useage. But not installed together. Both SVoice and TTS are huge installs, but a lot less than using all Google. Apps. In fact maps and Google play storeally and services are the only Google Apps I have outside of Chrome.
Ok, I got some of the keyboard spellchecking issues sorted out. Installed the latest open gapps, just to remove most of the Google updates stored on data/apps. Doing so cleans up space and removes some issues with conflicting .so files and apks. Found Chrome was in need of removal on its updates, and I manually copied it into system app folder for the system to make it into a system load when rebooted. Then Uninstalled the update that was chrome left in data/app folder.
Nown for the additional additions...
NOTE4
SVoice Note with voice to text and 3 recording types.
Face Lock functionality
Talkback
No go apps that will not be added... QuickConnect, S6 Toolbox, Smart Stay, Smart Pause, Smart Scroll, Private Mode, and Air Gesture. I gather framework will need adjusted, and systemui may have QuickConnect and Toolbox presets with disabled pointers to launch them.
I may try a few systemui for other devices, like I have with settings2.
Considering how much of the Samsung features I unlocked and added, the only feature I will miss and is worth the effort to attempt further, is QuickConnect. It is a pretty snazzy tool with some interesting features that make it a go to for sharing and connectivity.
When I create a twrp backup of my competed system, it can be restored over existing installation. A dirty flash if you so call it. Just wipe cache before rebooting. It will take about 10 minutea or more, depending on what has been installed.
You can remove some none stock apps as you see fit, as they are for ease of maintenance when flashing clean.
I added a few things to make the tablet more useful for my own use. One is S5 video player. Mainly because it is full featured, allowing pop out video, and built in DLNA to stream from my router media storage and TV box.
If some videos are not compatible, I use aDLNA to launch MX Player for decode that is not compatible to my hardware.
I kept the stock video player, so the additional S5 video player may be removed if one chooses.
One issue is the buttons in S5 Video are not dpi proper on the layout. So black boxes are shown without any context. You can play around to memorize what black box does what, or I'd you are familiar enough with phone style video player pretty 2016, it should not be so difficult.
I debloated the system as much as I could, though many call removing system files that are not required for operation as debloating. Debloating is removing memory consuming apps, not system needed apps. Most all Google Apps are heavy bloaters, in generating cache and data, let alone are bloated within themselves. I tend to stay away from multi platform apks. Especially when there is no need to have ARM8a compatibility in a ARM7 environment. Either figurethane out that Google or stop with your fake and loosely based facts on your betterment of newer platforms. Geezo, my 4.4.2 tablet uses less storage than 5.1.1. And yet it was stated that newer Android is smaller and more efficient. Right? BS... the true facts are right here in my hands
Enough rants... here are the facts. System partition has about 60MB free. Why leave over 500MB free and unused as empty storage? So now you have a maximized system storage for system apps that normally don't get updated. Leaving the updated or user installed apps to use internal or external storage.
Proof it will not cause issues, some custom ROMs will down size system partitions from 3GB to 1GB depending on how minimal the firmware foot print is. So instead of remapping the system partition, I just moved apps into the system.
I have about 900MB free on internal storage running a bunch of streaming apps and CoPilot. The biggest resource hogsite are Google play services, play store, and Samsung TTS with SVoice. Using Google TTS and Voice would greatly consume more valueable storage space.
The 16GB card is my backups and work space for rom stripping. I use a 64GB card for media and apps. There is a script to make External SD into Internal sdcard, so the storage is like what you would have with newer firmwares. Though it is not encrypted, but can be shared between other devices.
So I placed all the installed apps that are not or will never be updated in the system/app folder. Thus increasing my internal storage space by 60MB and more.
After a bit of testing, I found that Knox will keep private mode from functioning. So, some how during my tests, I must have finished my transfering system files after a fresh restore of stock firmware recovery. Thus a partially functioning personal mode. To me kids mode works fine, so if i shoud need to share, to someone who i dont trust with private data, i can give them kids mode all setup for them to never ask again. mwhahahaha! On the lighter side, you can just setup the guest profile and lockout photo apps and such.
tested my apps to sd script. all apps now allow moving to sd, as expected. YAY!
I released enough internal (sdcard) for 1.2gb free with curent unmoved apps installed. May balance it out further, if needed. Dont have much room to test with as my 64GB sd card has 54GB of music and another 8GB in other files. Will need to invest in a 128GB sd card for that.
Tweaked the build prop for faster responce... just a few wee edits actually. One is stupid simple, yet never seen anyone do it on small ram devices. will add a final additional set of tweaks for small enahancements.
This tablet is actually faster than the Note 8.0 it is replacing, though it is slower on cpu speed, and is not overclocked with a custom Boefla kernel.
still working on a small set of bugs... probably from my data from installs and configurations. Once I clear the internal data, it may recover properly, but i rather identify the issue, as I expect the restore file to be flashed dirty.
Gave up on testing systemUI swaps. Seems like samsung has made non adjustable ui schema on their platforms. I cant even drop or increase dpi on this tablet without breaking ui.
One thing i did like about A3 ui was its noticable zoom out feature with the lock screen image, and has different background, like the S5 phone.
Outside of that, once unlocked boom! Back to lockscreen with a ui crash.
Found one issue with A3/A5 settings... it has a different mapping for a sub menu item. Closes out, without allowing a setting. Seems like phone and tablets are perposely done so component features cannot be shared beteen them. Signature lock will show as an option but impossible to enable. To use face lock i must use a tab4 settings. It would be nice to combine all the features on the A3 settings ui to the tab4 setting ui, as it would alow so much more versatility. The tab 4 settings has audio pointing to a different audio schema which fc the setting ui once selected, since the devices do not share the same hardware. Also the motion section does it as well.
Most all the features are good between the two on our tablet. Not going back to original settings as it seems so limited.
Slowly making headway...
Found some nice mic and audio drivers... for the life of me, i thought it was cheap hardware making a bit of digital noise with stock system files and any oem or downloadable audio recorder. I went a head and scoured through build dates on stock driver files to find similarities with tab a stock, and any differences.
Because I only use the tab a to do file and os tests, as its the only thing i have, i cant keep backups or libraries of firmwares to gather what i need. Its mostly download search sort and copy what i need. Then delete and download another rom.
Out side of mystery system files, to patch the latest release for the 7.0 tab a6, i am pain stakingly playing with floating logcat, while launching and running apps.
Decided to remove some apks that i use for tools, and do some cleanup for a clean system build backup. It leaves around 400MB free for what ever you want to add to the system.
Found a nice option to try... once i do a backup, is to run virtual exposed. I dont like the modded xposed for samsung odex. It seems slow and a wee buggy.
I rooted this build with a passive kernel and the latest magisk.
I hope to have virtual xposed operational on this build as there are so many xposed modules available.
I did include the tools i use.. fake gps, os monitor, logcat extreme, termux, and csc features for samsung.
Still trying to sort out sip symbols staying active when more than one is listed, after initial touch on the symbol.
Voice note is also having one issue... will not type out words spoken when doing voice note dictation. I assume i am missing some system files outside of the lib folder location.
Will have to search for the proper firmware and find what differences are in the file structure and in vendor.
Have added smart selfie alarm for camera, and additional stylized images for bonus material.
As another bonus i included control screen, to keep the screen orientation proper on difficult apps. It has an option to stay in the notification pull down panel, and fits nicely. Just turn off samsung auto screen rotation before enabling the app.
One down two to go!
I found an Svoice that is fully functional on our tab a6 models. So, consider another bonus in the round of fixing wee issues.
This one allows the change of the wakeup command. It seems to work with any command you want to make it. Problem is if you bypass the initial setup, it defaults to Hi Galaxy. I think clearing out all the Svoice apks data and cache will allow changing the command, if you need to.
Still working on Voice Note not typing out text from voice input, and sip symbol key list staying on after initial touch.
It may be from a hidden accesibility function that is available with various setup ui apks.
Like there is another type of unlock scheme on some phones and th J3 version i am using. It very much like pattern unlock but more simpler. Also it can be setup to show direction, or not to show direction, to keep the lock screen blank. Also read out loud to where your direction has been entered.
Down to one last issue to correct
I figured out the main reason why voice note in the voice recorder fails to type out text during voice recording. The tab a6 does not have a proper audio mux and lpcm setup. I tried to configure media by seeing what can be done to add paths. I am not familiar with paths enough to compare and cross reference unknown values to replace from a different schema.
So, until someone who is following can do a proper patch to the media xml files in exec folder, the function will never happen.
I checked with SNote and it does allow all the importing functions, including video from rear camera.
While trying out the patch on my own, I did bump up the recording quality on the video encoding. At least i got something done out of the deal.
I also gave up on virtualxposed. I dont care to run a shell based setup, and most of the xposed modules i use do not play well with the shell.
So, it looks like i will devote my time into isolating the troubles with sip symbol shortcut overlay not clearing from the keyboard after initial symbol touch. It will clear on just a single symbol being shown, or if you touch away from the pop up symbol set.
One thing i did do is clear keyboard data and cache. I may have to reset the csc features xml additions i had set. I have other ideas, but i will tackle the simplest first.
I hope to post my dirty flash mod for peeps with the latest firmware to use on their Tab A6 7.0 tablets.
Since i had very little input on what most want or expect on a modded firmware, i made it for my needs, based on a full Samsung Experience, with minimal google bloat.
I will make a couple of scripts for peeps to run via terminal command or launch from smanager. Since my force installs to external sd card may get in the way of a clean flash with pushing restoration installations.
The scripts will enable or disable force to external sd, and toggle performance mode, and interactive mode (stock default).
All fixed!
Found my symbol key issue was with magnification gestures enabled.
Now that all correctable issues are resolved, I will finalize my small tweak options for user enabled optioms
All fixed!
Found my symbol key issue was with magnification gestures enabled.
Now that all correctable issues are resolved, I will finalize my small tweak options for user enabled options.
I will not have busybox installed, just Magisk rooted with passive kernel.
So, speed tweaks are user enabled after boot. Network tweaks are enabled via sysctl.conf within etc folier
All fixed!
Found my symbol key issue was with magnification gestures enabled.
Now that all correctable issues are resolved, I will finalize my small tweak options for user enabled options.
I will not have busybox installed, just Magisk rooted with passive kernel.
So, speed tweaks are user enabled after boot. Network tweaks are enabled via sysctl.conf within the system/etc folder.
Right now I am happy with over-riding system governor to Perfromance and WiFi congestion control to Reno. Both are the only options avaliable from what the kernel was built with.
There is a small battery increase, but mostly noticeable when comparing to low tasks and multi-tasking. Heavy usage and average use, will not show much difference. I have yet to see a reason to revert back.
This is a stock rom with as many features one can have for the hardware and what Samsung made available for cross compatibility. I have included a full featured accessibility package, along with voice and finger generated spen controls. Plus enabled internal editing of videos and photos. Plus I blocked media from scanning system media for images and songs.
There is too much to explain here, but I will try to compile a full list of features that are installed for a Samsung Experience.
Test image
Here is a TWRP backup of my system. It can be flashed dirty, though i recomend doing a backup of your system before flashing to revert back if needed.
Unzip the contents into your existing twrp backup folder. Run twrp to restore the image. Be sure to enable checking to gaurantee proper restore.
This has install to external set, and magisk root with permissive kernel (you may need to enable it with a utility or shell command). Minor tweaks are in build.prop, you can revert to original build.prop by renaming the backup by removal of the bk extension.
This is 98% completed... i have to update a few files and an app, as they were written over, by mistake.
You should have 200mb free in the system partition. Also a small handful of utiltiies that are no more than 25mb total. I removed google bloatware, and a few Samsung apps that are not required, or can be downloaded from Galaxy Apps or Google play.
Many will just say no need to change a thing... but before i post the final image, i will not bother with future maintanence. So, if any one finds something out side of known issues, given in my update history... (please read through carefully) i can attempt to make some additional changes before i finalize. Thank you.
https://mega.nz/#F!AzZB3SDT!HEtXvvWsk8F_SbgYz9BGzw
TWRP
I'm trying to flash a TWRP recovery image on my T280 using Odin 3.13 and twrp-3.2.3-0-_mone-gtexswifi.tar....but I keep getting a secure boot fail. What did you do to flash TWRP?
good morning
could you explain in detail how to install your rom?
the twrp backup folder where I find it? do i have to create it?
explain this passage to me please
gooberdude said:
Here is a TWRP backup of my system. It can be flashed dirty, though i recomend doing a backup of your system before flashing to revert back if needed.
Unzip the contents into your existing twrp backup folder. Run twrp to restore the image. Be sure to enable checking to gaurantee proper restore.
This has install to external set, and magisk root with permissive kernel (you may need to enable it with a utility or shell command). Minor tweaks are in build.prop, you can revert to original build.prop by renaming the backup by removal of the bk extension.
This is 98% completed... i have to update a few files and an app, as they were written over, by mistake.
You should have 200mb free in the system partition. Also a small handful of utiltiies that are no more than 25mb total. I removed google bloatware, and a few Samsung apps that are not required, or can be downloaded from Galaxy Apps or Google play.
Many will just say no need to change a thing... but before i post the final image, i will not bother with future maintanence. So, if any one finds something out side of known issues, given in my update history... (please read through carefully) i can attempt to make some additional changes before i finalize. Thank you.
https://mega.nz/#F!AzZB3SDT!HEtXvvWsk8F_SbgYz9BGzw
Click to expand...
Click to collapse
there are few stuff on your mega, including 2 finals , mod, and christmass rom. Which one to use?
it's people like you that make me love XDA
gooberdude said:
Here is a TWRP backup of my system. It can be flashed dirty, though i recomend doing a backup of your system before flashing to revert back if needed.
Unzip the contents into your existing twrp backup folder. Run twrp to restore the image. Be sure to enable checking to gaurantee proper restore.
This has install to external set, and magisk root with permissive kernel (you may need to enable it with a utility or shell command). Minor tweaks are in build.prop, you can revert to original build.prop by renaming the backup by removal of the bk extension.
This is 98% completed... i have to update a few files and an app, as they were written over, by mistake.
You should have 200mb free in the system partition. Also a small handful of utiltiies that are no more than 25mb total. I removed google bloatware, and a few Samsung apps that are not required, or can be downloaded from Galaxy Apps or Google play.
Many will just say no need to change a thing... but before i post the final image, i will not bother with future maintanence. So, if any one finds something out side of known issues, given in my update history... (please read through carefully) i can attempt to make some additional changes before i finalize. Thank you.
https://mega.nz/#F!AzZB3SDT!HEtXvvWsk8F_SbgYz9BGzw
Click to expand...
Click to collapse
Thank You!
Help to update - Some procedure to follow
EliteeSword said:
Thank You!
Click to expand...
Click to collapse
Hi! id like so much to update my Samsung A6 SM-T280 - 7 inches. I downloaded the files from Mega but i really dont know how to update Does anyone can help me with some procedure ?
I really appreciate the help!
Regards,
Daniel .
---------- Post added at 04:53 PM ---------- Previous post was at 04:49 PM ----------
Hi Gooberdude!
Id like so much to update my Samsung A6 SM-T280 - 7 inches. I downloaded the files from Mega but i really dont know how to update .Does anyone can help me with some procedure ?
I really appreciate the help!
Regards,
Daniel .

[MODULE] Automatic SQLite DB Optimizer

Automatically optimizes SQLite databases on boot, on schedule, every X days.
Just a quick and dirty adaptation of an old SQLite3 optimizer script from init.d days to a Magisk Module using a service.sh script instead, with an internal date offset mechanism to run the script every X days (default: 3 - which is plenty, and specifically to stop silliness).
Update And credit note: finally after a fair bit of digging, i think i located the original author of the original init.d version of the main vacuum code snippet ive repurposed (stolen) for this module. It appears to be from user @mcbyte_it (doesnt seem to be current or active) and from a post here. Although i only saw derivative reworkings of this script, and used only the main sqllite script function, i arrived at a different method of tracking last run date, when his is arguably more mainstream/concise. Im fairly certain this is the originator especially as the post also has a zipalign script that was also suggested to me to do....and which i have been fiddling with for months....
The script will wait until boot is completed AND then until avg CPU usage is under 30%, to minimise the risk of possible corruption.
Disclaimer: As always any use of any 3rd party script/software/advice is at the users discretion. All reasonable efforts have been made to make this as safe as possible, but the responsibility ultimately falls to the user whether to use and run the script.
What it does:​It:
Reindexes
Vacuums
Analyzes
all .db files under /data.
It runs a 1st run optimize after install (temp file optimsql_first_run on sdcard is used to enable this, and removed after first run), and then on schedule after that.
By default it logs just script progress to /storage/emulated/0/autosqlite.log, but you can choose to enable more detail in the log if you wish
​User Configurable Options:​The schedule and loglevel can be changed by an external file on sdcard:
Create a file named autosqlite_options on sdcard (/storage/emulated/0/)
Inside create the follow key=value pairs to suit your preference:
interval=x (where x is the number of days between script runs, for the love of god do not put 1 (this goes out especially to the kind of people who put every app on their Magisk magiskhide/deny list) there is no benefit and you just heighten the possibility of corruption)
loglevel=x (where x is either 1 (detailed logging) or 0 (basic logging - default))
Requirements:​This module requires a working SQLite3 binary. If your ROM does not provide one (you can check via typing sqlite3 into a terminal), you can choose to use my SQLite3UniversalBinaries module located here:
https://github.com/stylemessiah/SQLite3UniversalBinaries
Dont forget you need to download a named SQLite3UniversalBinaries.vx.x.zip file from the Releases page under Assets. Do not try installing the source code with Magisk Manager, it will not go as you expect
All the modules action takes place in the service.sh file, its commented reasonably well for those wanting to check how it works
* See... now theres something else to use with my SQLite3 Universal Binaries module other than the GPay SQlite Fix Module <- dont use that anymore, it makes me stabby. It is literally the last resort for getting Google Pay/Wallet to work ,
Please note: the included LICENSE only covers the module components provided by the excellent work of @Zackptg5 's Magisk Module Extended, which is available for here for module creators
https://github.com/Zackptg5/MMT-Extended/
All other work is credited above and no one may fork or re-present this module as their own for the purposes of trying to monetize this module or its content without all parties permission. The module comes specifically without an overall license for this intent.
Download:
Repo: https://github.com/stylemessiah/AutomaticSQLiteDBOptimizer
Release: https://github.com/stylemessiah/AutomaticSQLiteDBOptimizer/releases/latest
Powered by Ponkle
@73sydney Nice! If you're looking for newer sqlite3 binaries, I have a build script you can use to build it or you can just grab the precompiled ones at my repo: https://github.com/Zackptg5/Cross-Compiled-Binaries-Android
Zackptg5 said:
@73sydney Nice! If you're looking for newer sqlite3 binaries, I have a build script you can use to build it or you can just grab the precompiled ones at my repo: https://github.com/Zackptg5/Cross-Compiled-Binaries-Android
Click to expand...
Click to collapse
cheers man, i was trying not to pinch all your toys
i mean i could have done an androidacy and scraped your repo for just the files i needed
plus im lazy
73sydney said:
optimizes SQLite databases
Click to expand...
Click to collapse
Nice
how about no schedule, i want to execute it whenever i want
possible ?
loopypalm said:
Nice
how about no schedule, i want to execute it whenever i want
possible ?
Click to expand...
Click to collapse
I refer the gentleman to the name of the module and title of the thread:
"Automatic SQLite DB Optimizer"
the distinct lack of the word "manual" should be a clue
what are they teaching in school these days?
i made this to be automatic and made special note about the intervals because theres people who would abuse this and run it every day if they could, both designed to avoid misuse/abuse:
interval=x (where x is the number of days between script runs, for the love of god do not put 1 (this goes out especially to the kind of people who put every app on their Magisk magiskhide/deny list) there is no benefit and you just heighten the possibility of corruption)
im not really interested in making a manual version option unless you can convince me where there is a use case benefit, because all i see is potential for misuse/abuse that i specifically made this to avoid....
running it by default it runs every 3 days which is twice a week and probably still overkill, but trying to cover all bases
your other option is to ask me for permission (sadly because of abuse in the past from certain entities trying to monetize my and others work, my contributions are not GPL etc) to fork and alter the code yourself....
73sydney said:
I refer the gentleman to the name of the module and title of the thread:
"Automatic SQLite DB Optimizer"
the distinct lack of the word "manual" should be a clue
what are they teaching in school these days?
i made this to be automatic and made special note about the intervals because theres people who would abuse this and run it every day if they could, both designed to avoid misuse/abuse:
interval=x (where x is the number of days between script runs, for the love of god do not put 1 (this goes out especially to the kind of people who put every app on their Magisk magiskhide/deny list) there is no benefit and you just heighten the possibility of corruption)
im not really interested in making a manual version option unless you can convince me where there is a use case benefit, because all i see is potential for misuse/abuse that i specifically made this to avoid....
running it by default it runs every 3 days which is twice a week and probably still overkill, but trying to cover all bases
your other option is to ask me for permission (sadly because of abuse in the past from certain entities trying to monetize my and others work, my contributions are not GPL etc) to fork and alter the code yourself....
Click to expand...
Click to collapse
i was planing to use it once a week
categorizing me with people who do dumb stuff is an 'insult'
i asked a simple question man, don't jump to level 3 mind game please ...
loopypalm said:
i was planing to use it once a week
categorizing me with people who do dumb stuff is an 'insult'
i asked a simple question man, don't jump to level 3 mind game please ...
Click to expand...
Click to collapse
Im sorry, did you miss the double smileys intended to completely avoid any misunderstanding that i was being jovial. the other tip off that i wasnt burning you was taking the time to write several paragraphs
Can i suggest you just set the options file interval to 6 or 7 and let the module do what its described in the title as doing, it would make no functional difference, other than saving you a trip to terminal?
As i said, give me a valid reason for adding a manual option and ill gladly consider it, choosing a reason that fits completely within the actual parameters of the existing module doesnt really fit that offer...
ill go further to why i specifically didnt put in an option to run it manually (really folks are lucky i didnt block the option to run it every day) because you should understand what the sqlite vacuuming and other processes do:
* They copy the data from the db file to temp file before optimising it and writing it back, at any point in this theres the potential for corruption (sudden power loss, other processes accessing the file etc). Ideally any such corruption would be minimised by journaling but anyone who had used Linux for long enough knows not to count on such things.
* If any db is being written to, then the optimization process will NOT optimize that db...for the above possible corruption reasons. Hence why i not only put in a wait till boot completed function BUT also added a function to block the script from running unless avg cpu load over 5 minutes is less than 30%. all this to try and make things as safe as possible. So im not overly fond of a manual option which bypasses these safeties i specifically put there to hopefully safeguard people as best as possible. I dont want to get messages about how my module hosed someones apps.
Perhaps that better addresses my reasons?
As said, you can also ask me to fork the code, and ill even tell you how to add a manual function, but i personally wont be releasing such a version without a better reason than i want to do it every 7 days, when the script as it stands can do that AND at a far more predictably safe time and way than you manually likely can or will use it....
BTw, how is actually responding, even taking the time to do so and being jovial about it "level 3 mind games?", whatever the hell that even is?
73sydney said:
.
Click to expand...
Click to collapse
i was planing to make a recovery backup of "DATA" after the optimization of DB files ...
if you want better result add a comand to kill the coresponding app, then it would be more stable
or tell the people to use FlushRam or something like that before the proccess start, to make sure the result will be good, or make a 2nd module for advanced users ...
even with the condition you said some system apps stays working in the background and messing with their data can lead to corruption
i don't know you or your previous work and i don't have time to care for that
i just asked a simple question
answer with "NO, my module will not do that"
this will save your time and other people time
loopypalm said:
i was planing to make a recovery backup of "DATA" after the optimization of DB files ...
if you want better result add a comand to kill the coresponding app, then it would be more stable
or tell the people to use FlushRam or something like that before the proccess start, to make sure the result will be good, or make a 2nd module for advanced users ...
even with the condition you said some system apps stays working in the background and messing with their data can lead to corruption
i don't know you or your previous work and i don't have time to care for that
i just asked a simple question
answer with "NO, my module will not do that"
this will save your time and other people time
Click to expand...
Click to collapse
1) whether before or after backup, the files will eventually get optimized - if you want a more manual version use SD Maid or as offfered you can ask me how to alter the code as it sits and make your own version.
2) Im not ever releasing a script that kills anyones apps in the background, i would consider that suboptimal, and basically malware
3) I never said that some "system apps stays working in the background and messing with their data can lead to corruption". What i said was i designed the script to best avoid corruption by running only after boot completed and when avg CPU usage over 5 minutes was less than 30%. The sqlite3 itself generally wont allow access to a file in use. Im just adding what i think is a reasonable level of extra safety by deciding when the optimization routine starts to run, and that it isnt abused/misused by running multiple times in an unreasonable timeframe
4) How does
I refer the gentleman to the name of the module and title of the thread:
"Automatic SQLite DB Optimizer"
the distinct lack of the word "manual" should be a clue
not equal "NO, my module will not do that", only with some attempt at humour and a long explanation (soon followed by a more reasoned explanation) because i didnt want to appear dismissive. Yet it looks like you’d have preferred dismissive??
You seem impossible to please anyway someone tried to do it....
To be honest Im tired of this circular conversation. Everyone else knew from the word automatic in the title how things was going to work. Ive made suggestions of alternatives (SD Maid) and even offered to give you the info to change the script for yourself, and cant do more than that.... please choose one and lets move on, please?

Categories

Resources