[GUIDE] Export Your Kernel Adiutor Settings to init.d Script - Lenovo A6000/Plus Guides, News, & Discussion

Hi, there.
The reason I make this thread is just want to share some tips to export your Kernel Adiutor profile settings to make it as a script running via init.d on your device and also as a backup for reasons. Since I'm having some trouble with Kernel Adiutor such as fail to apply on boot on restart, reseting all of my tweaks for no reason after restart, switching from different ROMs, etc. that really grind my gears.
NOTE : I prefer doing this work on PC and using Notepad++ or other text editor since its more easier.
1. Make sure your device is already have working init.d
2. Open your Kernel Adiutor, make some tweaks and save it as a profile in Hamburger Menu - Profile
3. Go to /data/data/com.grarak.kerneladiutor/files/ and copy profiles.json to somewhere else
4. Open profiles.json in Text Editor and copy all of its contents to clipboard
5. Go to https://www.browserling.com/tools/json-to-text to convert .json to txt, just paste it on the text box provided and click convert!.
6. Copy the text inside the text box and create a new files, paste onto it.
7. From this point we will edit the lines and remove unused lines so pay attention to avoid deleting the useful one
8. As you can see there are lines begins with "command" and "path", delete all the lines that start with the "path".
9. After you done with that, next is ONLY delete the words "command" from all lines. you will see fewer lines of codes after all this step. Then don't forget to save it as file without extension ex. : 69mykernelsettings
10. If you want to make sure you did copy the correct code, just do quick cross-check from Kernel Adiutor - Profile and see Information and compare it to the profile you use with the file we just made.
11. Last step copy your file to /etc/init.d/ , dont forget to give it permissions rwxr-xr-x (0755) or it wont executed on boot.
Here are some screenshot example from my profile :
{
"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"
}
Maybe this method is so convensional and too much hassle but it works for me and if you have a better method feel free to share in this thread and give some feedback

Very helpful bro, thanks
Gonna do this

arundhiman said:
Very helpful bro, thanks
Gonna do this
Click to expand...
Click to collapse
but that didnt worked for me , i m using android q and there is just "init" folder not that init.d
Looking for a another simple method now

In android q and above service.d folder works as init.d, you could found that folder in adb magisk

Related

[Q] Assistance with nook tablet physical ''n'' button

I used the ota blocking root. The one with the video and all is well. I love my rooted Nikki and the smart minds of this community, so thanks to all. Moving on, I used the option in the computer. .bat file that gave the option of pressing the physical ''n" button key to back out to home. I don't like it because it doesn't allow me to pull up the option menus in some apps, which is important since the taskbar doesn't always show, like in emulators and I also miss the menu it pops up at home screen with the search etc.
So, i'm wondering if there is a way to return the "n" button to default without rerooting? Thanks to all who help.
Also, I can't open my keyboard setting to turn off the auto- correct feature. It's annoying. It force closes every time, even if I reboot.
This is the stock SystemUI, rename it to SystemUI.apk. Took it from the acclaim_update.zip
StockSystemUI.apk
~ Veronica
Would I just rename and drop it in the root folder from my pc?
Majinjin said:
Would I just rename and drop it in the root folder from my pc?
Click to expand...
Click to collapse
root folder? you mean to reroot? there is no need to reroot just rename the file copy it to your sdcard and then by suing ES file explorer or Root explorer Cut/move it to /system and paste it, then long press SystemUI.apk now if you used Root Explorer (not free) select permissions from the list and change it to 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"
}
Once done long press it again but now pick change owner from the list (scroll down is at the end of the list) and change:
Owner: 0 - root
Group: 0 - root
If you used ES file explorer (free) then long press SystemUI.apk and select properties from the list, change permissions same as in the pic i posted above.
Once done that cut/move it to /system/app folder
REBOOT to finish
~ Veronica
I will give it a try when I get some time to myself, thanks.

[REQUEST] Make apk with script

I am a not developer and dont know how to create apk, so i have a request to any developer.
Can make apk with script file, i have ready script file to push in apk
simple apk with one button to run script and progress bar.
SU permission required too.
for future updating of the script that could be replaced only into a script file in the apk
If you can make that simple apk tell me, then i publish the script. Thanx
Can't you just use script manager?
Sent from my LT15a using XDA
yes i can but first must install script with update.zip
next run script with terminal or script manager or adb shell from PC
Apk is universal and simply way to use, and dont require install update.zip before (i think so)
so meybe any dev help me?
What exactly are you looking for? A apk that runs scripts you give to it or just a apk that runs the script your talking about?
If it's just an apk that runs several scripts, the method to get them onto your phone will be the same I.e. You will still need the update.zip or adb push.
If it's just for one script it only takes a few lines of code, take a look on the portal one of the devs published a video on how to create a root app.
Sent from my LT18i using XDA
ok so i add script to attachment
Script make nandroid backup CMW
example of another application:
this is content of example apk
{
"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"
}
i need to put script file in apk archive, example (or another folder in apk)
for future simple edit script without recompiling apk.
but i dont know how to compile this apk.
I'm still struggling with what exactly it is your looking for, if you code an apk yourself theirs more chances of bugs rather then say using a terminal emulator from a developer with a lot of experience. As for the progress bar, you would have to modify the script itself to report the current progress. Unless you want to get into dev then I would suggest you stick with terminal.
Else check this video from Adam, it gives you the basics and he also includes a link to his open source "shell" class.
http://www.xda-developers.com/android/how-to-build-an-android-app-part-2-writing-a-root-app-xda-tv/
The basics would be to get that app up and running yourself, make sure that it runs commands you give it. Then just have your script somewhere like "/sdcard/script.txt" and pass the parameters something like "su -c", "sh /sdcard/script.txt". That way you could always update /sdcard/script.txt and then just run your application.
It's easy to run scripts from in an app. But you need to code it not edit an excisting app
Are you wanting an app to automate cwm backups? ( my cwm autoinstaller does this )
I don't understand what you are after either lol.
Pvy
Sent from my TEAM Powered Arc S

[TOOL][8-26-12] Aroma App Package Creator v1.0

This thread will no longer be updated. Instead use the thread here:
http://forum.xda-developers.com/showthread.php?t=1859221
{
"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"
}
What Is It?
Aroma App Package Creator is an application for those who flash new rom's often and want an easy way to create a flashable zip to reinstall apps. This utilizes Aroma Installer for more customization, allowing you to choose which apps to be installed instead of installing all of them. I made this tool for myself after seeing strawmetal's Flashaholic Essential Packs and wanted a way to produce the same results without editing multiple config files for each "pack" I make. I hope everyone else will find it useful as well ​
How To Use: Click Steps For Screenshot
1) Download the aroma-app-package-creator.jnlp file and run by double clicking it
You must have Java 6 or higher for the application
You will have to accept a security warning. This is normal for all applications using Java Web Start
2) Click the + button under the Group Names list to create a new group
3) Add an app to a group by selecting the desired group, then click the + under the Apps list
If you don't select an apk file then there will be an empty folder in data folder of your created zip with the Apk's name where you should place the .apk manually
4) Choose your device from the Calibration drop down menu and then click create to build your zip
If your device isn't on the list of preloaded calibrations then choose CUSTOM and input the calibration data for your device. See below on how to get this data.
Send your device name and calibration data via email or pm and it will be added to the list of preloaded calibrations
5) Flash your zip like any other in recovery​
How To Get Calibration For Your Device
1) Download the calibration.zip from here
2) Run the zip in recovery like any other and when prompted to use alternative touch select no (usually using power button)
Nothing on your device is changed by running this tool.
3) Follow on screen instructions until your calibration data is displayed in a popup
When asked to tap the circle sometimes you may need to tap and hold for a few seconds or tap it multiple times. It should work eventually
You will get to test the calibration, if it is not good (not picking up finger, choppy, etc.) try running the tool again, but instead selecting yes for alternative touch
Downloads
aroma-app-package-creator.jnlp
calibration.zip​
Thanks To:
amarullz - For creating Aroma Installer
strawmetal - For the Flashaholic Essential Packs
This thread will no longer be updated. Instead use the thread here:
http://forum.xda-developers.com/showthread.php?t=1859221
This is going to make my life so much easier! Thank you for bringing this to the Amaze
This is a great addition for us. Thank you
sent from my NRGized Amaze,
powered by faux kernel v.17

HOW to enable Call Recording for Alpha [4.4.4][5.0.2]

Hi m8
Coz i need this feature on every my phone & now I try to find working solution on my Alpha runing Lollipop 502.In this time before custom roms apper this is good solution with working call recording.
Everywhere was this solution from our m8 from xda @ _alexndr,10ks for your effort alex
This mod work on every Samsung galaxy & every Alpha model.
How to:
Requirements: Rooted Samsung galaxy Alpha or any galaxy. Installed any root explorer allows you to edit system files (ES File Explorer is recommended).
Not more than 5 minutes from your time.
Steps:
1.Open “ES File Explorer”/root explorer and press on the top left icon.
2.Press Tools then choose Root Explorer.
{
"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"
}
3.Hit Mount R/W, change Path “/” and “/system” from RO to RW then press OK.
4.Once you press OK Superuser will ask for root permission hit GRANT.
5.Press the top left icon, hit Local, choose / Device.
6.Go to: system > csc
7.Find “others.xml” to take backup before modifying it.
8.Now open “others.xml” file with touching on it ,will give you new menu ,
you chouse open as text editor
9.Press on the top right icon (3 dot) and choose Edit.
10.Search the following lines (at the end of script):
FeatureSet> and </FeatureSet>
11.Create a new line and paste the following line (AS ONE LINE) BEFORE the previous lines (NO SPACES): this must lock like this
PHP:
<CscFeature_VoiceCall_ConfigRecording>RecordingAllowed</CscFeature_VoiceCall_ConfigRecording>
12.Hit the back button then press Yes to save the file.
13.Save the changes to “others.xml” file then Reboot, to apply the changes on your device.
Screen should look like this if you manage to do it right
I `m giving you link to download ready file for those which have already root to only input this ready file in root/system/csc/
How to
1.first download file
2.find it on your phone ,than copy it
3.browse to root/system/csc there is your original file others.xml ----rename it to others.xml.bak
than paste modified file ..
restart phone
try & you will se that you have manuel call recording option
FILE modified others.xml
taht is all fox
others.xml
Thanks man works perfectly in Galaxy Alpha 5.0
If it is too complicated for anyone you can do the same with just installing Xposed Framework and Wanam
hi
:good::good:
Hay
Sent from my SAMSUNG-SM-G850A using Tapatalk
There is no other way to save the file as mp3 or to save the file with the name of the caller and insert auto call recording features?
Thanks Hensk for your work:good:

Extract content from android backup

Hello everyone...
I find the phone with the non-working tuch ..
From the recoveri mode I managed to make a complete backup of the phone on sd and generated these 3 files:
userdata_20160101_000035.backup
userdata_20160101_000035.backup1
userdata_20160101_000035.backup2
is there a possibility to extract the content ???
I would be interested in contacts.
I state the phone is a Majestic
Thank you.
recovering contacts is not easy. you need SQLite Forensic Explorer to view the database file. the database is separated in many different tables, each table has a column "raw_contact_id" which contain always the unique id-no of contacts (one table contains phone nos, another table contains names, etc... you must query tables by id).
once you have extracted the backup, the file "contacts.db" is located "/data/data/com.android.providers.contacts/databases/"
from the backup I made, how do I extract the contacts.db file ??
remove the checksum(s) and merge the files. you need linux
don't be scared, i will explain you step by step. first step: do you have linux? if yes, press CTRL + ALT + T this is the terminal where you can do it. if no, please download unetbootin and prepare a bootable usb stick. you can run ubuntu on your pc without installing. don't hesitate to ask if you need help regarding unetbootin
scacco728 said:
finally I was able to understand something of the terminal in place ..
I move to the folder where the files are, I open the terminal I enter the commands and I generate this error .. why do you think ???
{
"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"
}
Click to expand...
Click to collapse
"dd" does not accept wildcards. press <TAB> instead of * for word completion. you must type the full file name. remove the stars in this example code.
edit: i will answer in this thread, because this are linux basics. so lets open a "beginner" thread here, and leave the other thread open for more advanced questions. finally, your goal is to extract contacts, what we should not discuss in main thread

Categories

Resources