.
Disclaimer
I'm not responsible for any damage, data loss, or otherwise negative results done to your phone. Always take backups. Be prepared to reflash firmware, or deal with a hard/soft bricked phone. This has been tested on my G955U without fail.
I don't know if this is the "right way" to do this, but it worked for me.
What's needed to edit default.prop value(s)
- Computer: adb setup and usb drivers installed & Notepad++ (or similar)
- Rooted S8+ or S8
- Android: Root capable file explorer (FX File Explorer, Root Explorer, ES File Explorer, etc)
- Familiar with adb commands (optional)
Prelude
using "setprop ro.adb.secure 0" didn't change the value of "getprop ro.adb.secure"
editing /default.prop didn't changed the value of "getprop ro.adb.secure" & /default.prop values reverted on restart
Some values can be changed or added with the setprop command as root. If you can't change a value with setprop, this is for you.
Instructions
Android:
1 - In your file explorer, navigate to the this folder:
Code:
/dev/__properties__
2 - Copy this file to your internal storage or sdcard
Code:
u:object_r:default_prop:s0
<Connected your phone to your computer via usb cable>
Computer:
3 - Open your phone's MTP storage and navigate to the folder you just copied the file to
4 - Copy the previous uobject file from your phone's MTP storage to your computer's local storage - anywhere you have write permissions (i.e. C:\Users\<username>\Documents or /home/<username>)
5 - Open the uobject file with Notepad++. You'll see a bunch or black squares (mostly 'NUL'), that's fine - don't mess with any of those
6 - search for the value you'd like to change. example: ro.adb.secure - search for either adb or secure
If you can't find your value, it's probably in another uobject file. you can try to find it yourself. If you ask nicely, I might find it for you
Using ro.adb.secure as an example, the entries are broken up like this: ([] = black text box)
[][][][]ro[][][][]adb[][][][]secure[][][][]1[][][][]ro.adb.secure[][][][]
{
"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"
}
7 - change the desired value. only change the value. in the above case I changed it from 1 to 0. save the uobject file
8 - copy the modified uobject file back to your internal storage or sd card
Android:
9 - copy the modified uobject file back to the /dev/__properties__ folder. if it asks you to overwrite - backup the original first.
10 - backup the original uobject file
11 - Rename the modified uobject file if needed. If you used Windows, it strips the : out of the filename. that's ok, change it back to the name from step 2
you can also edit the /default.prop to reflect the changes you made.
12 - profit
You can also use adb push/pull if you're comfortable with them
This method is not persistent
you will have to copy the modified uobject file back to /dev/__properties__ after a reboot
I've attached a pre-modified uobject file for G955U, with the following changed:
Code:
ro.secure=0
ro.adb.secure=0
ro.allow.mock.location=1
Give me a Thanks, if this helped you
reserved
On which case we need to change that settings?
Related
While I was searching for how to change the clock & notification colour in statusbar
there i got so many guide with lot of way....
I tried them tooo...
But soory to say that very few of them works for mee...actualy
those guide support few devices not for all...
Then one of my friend(Abhishek Kumar Singh) gave me a guide which is a perfect one..
but there also few changes to be done......as the guide is totally messed..
so Here I am going to make a guide for all those who want to change there clock & notification colour.
Requirements:-
1)ColorChange.jarv3.1 [Download]
2)Rootes Android Phone
3)Sdk Installed
4)Little knowedge on Messing with Cmd
Processsss/Working:-
1)Plug in your phone( make sure that usb debugging is ticked on)(Dont't mount the sdcard)
2) open command prompt from Pc..(To open=> click start->run->type cmd->ok)
3) Navigate to the android sdk platform tools folder..
4) Type this commands:
adb remount
adb pull /system/framework/services.jar services.jar
adb pull /system/framework/framework-res.apk framework-res.apk
5)Now extract the colorChangev3.7z & paste the extracted file colorChangev3.jar in platform tools folder
6)Now make a folder called 'framework' inside Platform tools folder & move the services.jar into that folder
7)Create a zip file of the framework folder and name it theme.zip
(steps 7 & 8 shuld be done correctly or u will get errors)
8)Type this commands....
java -Xmx512M -jar colorChangev3.jar theme.zip clock=FFb4ff00 date=FFffffff
(definetly 'FFb4ff00' denotes the clock colour & 'ffffffff' denotes the date colour)
9) When its done it will leave a theme-new.zip in platform tools folder,take the new service.jar file out
& put that in platform tools folder.
10) Its almost done....Now you can take the new services.jar make flashable zip & flash...If you don't know how to make flashable zip then do this.
11) Type this command in already opened cmd
Commands:
adb remount
adb push services.jar /system/framework/
adb push framework-res.apk /system/framework/framework-res.apk
adb shell reboot
That's all you are done now.......:good:
One think you should note that you shouldn't get any error while following this whole process otherwise it will not wrk....
Basically this above process doesn't harm your mobile...But if anything wrong happend with you..Then you can't blame me..
Credits
milrtime83 for his guide
Please Dont forget to Hit The Thanks Button.......... :good::good::good:
Reserve
{
"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"
}
Resreve
This will show you how to Decompile and Recompile SecPhone.apk (Deodexed) for Jellybean 4.1.1 and 4.1.2
Tools Needed:
This zip file: http://www.mediafire.com/?0b2ad2ow254ou3a
Java jdk and environment variables set correctly (if you don't know how, Google it)
Notepad++
7Zip
Decompile:
1. Download attached files and unzip folder to Desktop.
2. Place SecPhone.apk in Tools folder you just downloaded.
3. Hold Shift and right click inside of folder then click "Open command window here". Make sure no files are selected or it will not show.
5. Type apktool d SecPhone.apk and hit enter. This will create a folder called SecPhone.
6. You’re done you have decompiled the apk.
Recompile:
1. Hold Shift and right click inside of folder then click "Open command window here".
2. Type apktool b SecPhone nSecPhone.apk and hit enter. This will error and look something like 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"
}
3. Now look at the code. If you look you will see there are 3 errors like this: Desktop\Tools\SecPhone\res\values-es\strings.xml:195: error: (they might look slightly different with your apk).
4. The things you need to fix this are right here (values-es) refers to a folder in the apk Desktop\Tools\SecPhone\res\ and strings.xml refers to an xml file inside that folder. Also if you read the whole line you will see it is some sort of format error. So go to Desktop\Tools\SecPhone\res\values-es\strings.xml and open it with Notepad++.
5. Now refer back to the error log and you will see values-es\strings.xml:195 the 195 refers to the line in the file that is causing the error. Scroll to that line, it says something like "%1$d% del ciclotranscurrido. So what’s the error? Let’s find out. Copy the code between the "" in this case its throttle_time_frame_subtext.
6.Now go to Desktop\Tools\SecPhone\res\values\strings.xml and open that with Notepad++ and search for code you just copied throttle_time_frame_subtext and compare the two files. You can see the difference error code has this %1$d% and the correct code has %1$d٪ so correct the code and save the file. Now do this for all 3 errors.
7. Now with all errors fixed we can Recompile so type apktool b SecPhone nSecPhone.apk and press Enter. This time it will complete without errors.
8. Open original SecPhone.apk with 7zip and open new nSecPhone.apk with 7zip and copy META-INF and AndroidManifest.xml from originalapk to new apk. Rename new apk to SecPhone.apk and its ready to be flashed. Don't forget to Zipalign. DONE!
If this helps you please don't forget the thanks button
Reserved
Thanks for this mate.. I was wondering for a long time on this error
sent from here, there, somewhere!!
Thanks for your work!
Hey there,
i'd like to share a little application i made.
The problem:
I was annoyed by the uncomfortable use of MTP in Windows.
Especially when having more and more files in one folder like the camera folder.
Windows needs several minutes to get the complete filelist.
The solution:
i created a little application which pulls files from your android-device via adb.
the app checks all specified folders from the configuration-file and pulls all files which are not existing to the destination folder.
there is also an option to change the created/modified timestamp of images/videos by parsing the filename. this function may be useful for sorting your pictures/videos.
{
"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"
}
Setting up the app:
the app creates all necessary files on the first start.
after creating, it automatically opens the configuration-file for you to edit it.
there is a comment in every line to understand what the application will do.
there are a couple more of options, read the ini-file-comments to understand.
Requirements:
- Microsoft .Net Framework 4.0
- the ability to modify a textfile
- ADB-Debugging must be enabled on your device
- the internal path you want to sync from your android-device
if you don't know the path, install "es file explorer" or any other file-explorer and try to find out the path. see screenshot...
if you like this tool feel free to donate.
THX and have fun!
ignore the following files
View attachment 2383672
--- DOWNLOAD BELOW ---
It's a great idea but the tool does not really work well. I tried many different things now and it either didn't sync at all saying there were no files to copy or only copies the one given directory without subdirectories.
I hope it's not programmed that way since it'd be very un-useful for those who'd want to make a backup of their phone before flashing (as example me right now).
Good idea tho, really like it yet!
Hi, thanks for your work. I have a Zenfne 2 and this works for me, but i need to copy all the sdcard folder and subfolders. What i need to do?
Great no-nonsense tool!
Allow me to recommend two minor additions
1) For JPG and PNG file, examine the "DATE TAKEN" meta-tag, and use this for filestamp (by an option)
2) A flag for Traverse Subdirs.
(If not easy on the source side, it could be OK with the destination side, one could easily do a initial full copy in explorer)
ADD:
3) An option NOT to try to supply it's own ADB.exe, without a confirmation dialogue as this might be wrong compared to the version used on the system...
...And a tiny bug.
4) When "OpenAfterCopyOnly" is selected and multiple sync-sections is in use, it should ONLY open the destination folders for the dirs that got new files, not all destinations.
Thanks! Just used this to solve my issue. Phone rebooted within 2 minutes, so doing it straight didn't work for me. Good work!
People interested in this, might find this little tool PortableDevicesIncrementalCopy helpful too
It can do INCREMENTAL copies via MTP of the entire tree, so very handy and reasonably quick to keep a backup including all your images on your PC
https://eskerahn.dk/wordpress/?p=1668
Note it is not a MIRROR-function, so files deleted on the device will stay on the PC.
Not work on my pc. Error cannot write file.
Hello everyone!,
Here you'll find a guide on how to modify the kernel splash screen (the image that shows up before the bootanimation) of you Xperia Z1 on almost any kernel!
Requirements:
Download and extract these files into any directory you want: link
A photo editing program like gimp, photoshop, ...
Important info:
For the bootimg.zip file i will use the directory
Code:
c:\boot
And for the convert png to rle file I will use
Code:
c:\RLE
Code:
I am not responsible for any damage done to your phone!! Even though a broken kernel will not hard brick your device, be carefull!
Steps:
1: Copy the kernel you want to modify to
Code:
c:\boot
2: Press shift and right click, then press open command window here.
3: Type this in cmd:
Code:
bootimg.exe --unpack-bootimg bootname.img
4: You do not need the extracted files yet.
5: Open your image editor and create a splash screen to your liking BUT the size has to be exactly 1080x1920 And make sure to save it as a .png!!
6: After creating your splash screen, copy the .png file over to
Code:
c:\RLE\PNG-images
7: Now shift right click and press open command window here, then type:
Code:
PNG-2-RLE splashscreenname
8: Go to the
Code:
RLE-Images
folder and copy your .rle file over to
Code:
c:\boot\initrd
(there are already 2 rle files in the RLE-Images directory, you can ignore them!)
9: Remove the original
Code:
logo.rle
file and rename your custom file to
Code:
logo.rle
.
10: Now you should have your modded
Code:
logo.rle
file in the initrd directory!
11: Go back to
Code:
c:\boot
and shift right click and open command prompt, then type
Code:
bootimg.exe --repack-bootimg
.
12: Now you have 2 files in the
Code:
c:\boot
directory:
Code:
boot-new.img, boot-old.img
.
13: Now flash the boot-new.img file using fastboot!
14: Enjoy your new splash screen
Here are some images I already made:
1:
{
"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"
}
2:
3:
Enjoy,
noahvt
Mayby off question. Would it be possible to make a script instead of showing a splash screen, turning on the phone when you plug in power?.
Sent from my C6903 using XDA Free mobile app
My idea is based on this thread: https://www.asus.com/zentalk/in/thread-88789-1-1.html
I recovered the lost downloaded themes but previous backup of the *.zip themes files is required (fortunately I had a backup of the themes on my pc.)
Requirements:
1. Backup of the "*.zip themes files "
Example:
com.asus.themes.th12121212121.zip
com.asus.themes.th10101010101.zip
…etc
(the downloaded “*.zip themes files” are located in: /storage/emulated/0/.AsusTheme/themes)
2. Rooted device
3. BusyBox installed
4. Root explorer installed
5. GScript installed: https://forum.xda-developers.com/showthread.php?t=486486
6. SQLite Studio 2 for windows: https://www.softpedia.com/get/Internet/Servers/Database-Utils/SQLite-Studio.shtml
Step by step:
1. Install BusyBox, Root explorer and Gscript.
2. Open Root explorer, go to /data/data and create backup of the folder called “com.asus.themeapp” (simply copy entire folder to SD Card or Internal Memory and close Root explorer)
3. Go to Settings >Apps >"All" tab >Themes and clear the cache and data.
4. Go to main screen and simply open and close the Theme app. Press “recent screens” button and close all recent screens.
5. Open Root explorer, go to /data/data/com.asus.themeapp/databases and copy file “ThemeDatabase.db” to SDCard or InternalMemory.
6. Open Root explorer, go to /storage/emulated/0/.AsusTheme/theme and check if the *.zip themes files exist.
(If files exist go to step 7, If files not exist go to step 6A)
6A. If the folders called “.AsusTheme” and “themes” not exist, create it and go to step 6B.
6B. Copy all the *.zip themes files from your PC to /storage/emulated/0/.AsusTheme/theme
7. Download THIS ARCHIVE, uncompress and save the “theme.sh” file on your device.
8. Open Gscript, go to settings and configure the script patch folder(Library) and set the default profile to “SU”.
9. On Gscript search and run the script “themes.sh”
10. After script is finished connect your device to PC.
11. Go to \Internal storage\.AsusTheme\themes
12. Copy to PC the file called “themes.list.log”
13. Go to \InternalStorage\ or \SD Card\ and copy to PC the file called “ThemeDatabase.db”(is the copied file on the step 5)
14. Install and run SQLite Studio 2 for windows.
12. Go to File/Open Database and open the file “ThemeDatabase.db”
{
"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"
}
15. Go to Browse data and select “downloaded_list”
16. Press “New record”
17. Open the file “themes.list.log” with any txt editor.
18. On SQLite Studio edit the added record and insert the required data.
19. Now press again “New record” and insert the required data.
etc...etc...
NOTE: product_type= 0 and limited_time_offer_exp= 0 for all records
20. When you have added all the themes press “Save changes”
21. Now copy the modified file “ThemeDatabase.db” from your PC to your device and replace it in /data/data/com.asus.themeapp/databases
22. Open “Theme app” and your lost themes appear again .(the screenshot is an example)