Hey , I been browsing a way to find the solution to this problem seems like nobody has a solution, so hoping to figure it out here. So, my galaxy watch 4 has this small icon which means that the bluetooth has been disconnected from my phone. And the icon just stays at the screen which is annoying, I want this removed. I was thinking of sifting through the watches icon location and just replacing the icon to a transparent one. But the thing is I cannot seem to find the location to where all the icons are stored on the watch so if someone could point me to the right direction I appreciate it. Or if someone has a different way of removing this icon that would be nice. I have attached a picture below to see what I'm talking about.
If somebody can identify. Where this Icon is inside...
?
Here are 2 older Full Firmware packages.
Firmware and Combination Firmware and FOTA Delta and CSC change and...
Looks like it could be harder since Tizen... A Stock Firmware for netOdin/Odin not available yet... B Combination Firmware not available yet C FOTA Delta File for study I have...
forum.xda-developers.com
No idea if inside Watch Face... or deeper inside Android 11...
But I agree.
Ugly.
Best Regards
Icon is most likely located in the SystemUI for watch ....would need to be rooted to be able to replace though.
....would need to be rooted to be able to replace though.
Click to expand...
Click to collapse
Done.
I have rooted SM-R870 GVH2.
Again.
Where exactly is this Icon?
If I have time I will Google little bit. Because this Android s hi t...
Samsung have 1000000000000000000000000000000000000000000000000000 similar s h it...
Maybe Resources inside framework.apk...
?
Maybe somebody can deliver full anwser...
Thanx in advance.
Best Regards
adfree said:
Done.
I have rooted SM-R870 GVH2.
Again.
Where exactly is this Icon?
If I have time I will Google little bit. Because this Android s hi t...
Samsung have 1000000000000000000000000000000000000000000000000000 similar s h it...
Maybe Resources inside framework.apk...
?
Maybe somebody can deliver full anwser...
Thanx in advance.
Best Regards
Click to expand...
Click to collapse
You may be right that it is located in the framework apk.....been a while since I've played around with the system icons so unfortunately i can't add any solutions at this point
Attempt 1... to find this Pic... Icon...
Decompiled framework-res.apk
Code:
19.09.2022 21:47:27
Decompiling APK file...
/c "java -Xmx1024m -jar "D:\Android\apkSignMe\easy\Apktool\apktool-2.4.1-b05f19-11.20.2019.jar" d -f -o "D:\Android\apkSignMe\easy\1-Decompiled APKs\framework-res" "D:\Android\apkSignMe\2022\September\framework-res.apk""
I: Using Apktool 2.4.1-b05f19-SNAPSHOT on framework-res.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
------------------------------------------
Used older APK Easy Tool.
Now I need to click around...
adfree said:
Attempt 1... to find this Pic... Icon...
Decompiled framework-res.apk
Code:
19.09.2022 21:47:27
Decompiling APK file...
/c "java -Xmx1024m -jar "D:\Android\apkSignMe\easy\Apktool\apktool-2.4.1-b05f19-11.20.2019.jar" d -f -o "D:\Android\apkSignMe\easy\1-Decompiled APKs\framework-res" "D:\Android\apkSignMe\2022\September\framework-res.apk""
I: Using Apktool 2.4.1-b05f19-SNAPSHOT on framework-res.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
------------------------------------------
Used older APK Easy Tool.
Now I need to click around...
Click to expand...
Click to collapse
I have decompiled this apk and went through each file but to no luck could not find the icon I was looking for maybe its in another apk? If someone knows...
john1122233 said:
I have decompiled this apk and went through each file but to no luck could not find the icon I was looking for maybe its in another apk? If someone knows...
Click to expand...
Click to collapse
Check the SystemUI apk, in the "drawable" folder
louforgiveno said:
Check the SystemUI apk, in the "drawable" folder
Click to expand...
Click to collapse
Yep seems to be there just need to reinstall the apk thanks!
SecClockworkSystemUI.apk
Code:
basic_clock_comp_indi_disconnected.webp
Okidoki... Need some time for test...
Thanx for help in finding this ugly thing.
Best Regards
Tiny hint...
If I search with Total Commander for this text string through files from system...
Then I get 2 hits...
1 file we know allready...
Second:
Code:
\priv-app\SecClockworkSysUi\SecClockworkSysUi.apk
Best Regards
Few things prepared... few things not yet...
As only Browser installed for webp Pics... I have updated my old IrfanView with Plugins to search better through Pics...
Our Pic/Icon seems 52 x 52 Pixel...
Now I pull both APKs from my SM-R870... to have latest GVH2 crap...
As I have only looked into old FVD4 or EVA8...
Edit 1.
Now I have both APKs from SM-R870 GVH2...
Code:
D:\Android\ADB>adb pull /system/priv-app/SecClockworkSysUi/SecClockworkSysUi.apk
/system/priv-app/SecClockworkSysUi/SecClockworkSysUi.apk: 1 file pulled. 1.2 MB/s (20740955 bytes in 16.553s)
D:\Android\ADB>adb pull /system/priv-app/SecClockworkSystemUI/SecClockworkSystemUI.apk
/system/priv-app/SecClockworkSystemUI/SecClockworkSystemUI.apk: 1 file pulled. 1.3 MB/s (40685449 bytes in 29.148s)
Will decompile both and look...
Edit 2.
Hmmmm...
basic_clock_comp_indi_disconnected.webp is 1:1 same in both APKs:
Code:
SecClockworkSysUi.apk
SecClockworkSystemUI.apk
1 idea is to replace both APKs at once...
And inside file basic_clock_comp_indi_disconnected.webp 2 different Pics...
So IMHO easier to identify which APK really creates this ugly Icon...
Edit 3.
First problem... I can not compile...
Code:
W: fakeLogOpen(/dev/log_stats) failed
W: Failed to generate resource table for split ''
W: D:\Android\apkSignMe\easy\1-Decompiled APKs\SecClockworkSystemUI_GVH2\res\values\styles.xml:1660: error: Error: Color types not allowed (at 'android:disableChildrenWhenDisabled' with value '#8cfafafa').
W:
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [E:\Temp\brut_util_Jar_
SecClockworkSystemUI.apk
So first attempt with the other APK only...
Code:
D:\Android\ADB>adb push 8keyme8.zip /sdcard/Download
8keyme8.zip: 1 file pushed. 1.7 MB/s (8125270 bytes in 4.677s)
I am using Magisk Module to replace APK inside priv-app folder...
Edit 4.
Okidoki... first result...
Code:
D:\Android\ADB>adb shell screenrecord /sdcard/video.mp4
^C
D:\Android\ADB>adb pull /sdcard/video.mp4
/sdcard/video.mp4: 1 file pulled. 0.0 MB/s (361916 bytes in 8.996s)
Tiny progress...
A
Yes, basic_clock_comp_indi_disconnected.webp is correct file for this ugly Icon...
B
Because inside 2 APKs... and I have trouble with 1 APK to recompile...
Anyway. The recompiled APK is correct...
Code:
SecClockworkSysUi.apk
Just for fun replaced with:
basic_clock_comp_indi_donotdisturb.webp
Because same size 52 x 52 Pixel...
C
I have only replaced APK not the other crap... inside:
Code:
/system/priv-app/SecClockworkSysUi/
No idea if crash because this or because other problem like wrong Signature...
D
Result looks like this on my Screen... Look at attached Video...
Seems it craches... ever and ever again...
I am too lazy to check Logfiles for now...
Will do some checks if we can disable this APK for stupid test... or GW4 explode...
Best Regards
For next stupid test I need this Thread:
Watch4 ADB Commands - Disable/Enable/Uninstall/Restore system app, Install/pull Apps
Hello Everyone, I hope you all are good, So I see some on you wondering about how to uninstall, reinstall, install, pull, enable and disable apps for the watch, so I decided to make this thread to address these different scenarios, this is based...
forum.xda-developers.com
I will focus on SecClockworkSysUi.apk
Edit 1.
Code:
freshbl:/ $ pm path com.samsung.android.wearable.sysui
package:/system/priv-app/SecClockworkSysUi/SecClockworkSysUi.apk
freshbl:/ $ cd /system/priv-app/SecClockworkSysUi/
freshbl:/system/priv-app/SecClockworkSysUi $ ls -a1l
total 18164
drwxr-xr-x 3 root root 80 2022-09-21 03:13 .
drwxr-xr-x 112 root root 2240 2022-09-21 03:13 ..
-rw-r--r-- 1 root root 18574323 2022-09-21 03:12 SecClockworkSysUi.apk
drwxr-xr-x 3 root root 4096 2008-12-31 16:00 oat
freshbl:/system/priv-app/SecClockworkSysUi $ cd oat
freshbl:/system/priv-app/SecClockworkSysUi/oat $ ls -a1l
total 8
drwxr-xr-x 3 root root 4096 2008-12-31 16:00 .
drwxr-xr-x 3 root root 80 2022-09-21 03:13 ..
drwxr-xr-x 2 root root 4096 2008-12-31 16:00 arm
freshbl:/system/priv-app/SecClockworkSysUi/oat $ cd arm
freshbl:/system/priv-app/SecClockworkSysUi/oat/arm $ ls -a1l
total 25392
drwxr-xr-x 2 root root 4096 2008-12-31 16:00 .
drwxr-xr-x 3 root root 4096 2008-12-31 16:00 ..
-rw-r--r-- 1 root root 25933248 2008-12-31 16:00 SecClockworkSysUi.odex
-rw-r--r-- 1 root root 56086 2008-12-31 16:00 SecClockworkSysUi.vdex
freshbl:/system/priv-app/SecClockworkSysUi/oat/arm $
Edit 2.
Stupid Test...
OWN Risk!
Code:
freshbl:/system/priv-app/SecClockworkSysUi/oat/arm $ pm disable-user --user 0 com.samsung.android.wearable.sysui
Package com.samsung.android.wearable.sysui new state: disabled-user
Edit 3.
NOT try this.
Watch hangs on Samsung Logo and no WiFi to play with ADB...
So I have to go to Recovery... Fac Reset...
In second attempt I put all files into Magisk Module...
Same result...
This time I looked little bit into Log...
Code:
09-27 00:53:57.407 1000 539 2079 W system_server: Can't mmap dex file /system/priv-app/SecClockworkSysUi/SecClockworkSysUi.apk!classes.dex directly; please zipalign to 4 bytes. Falling back to extracting file.
09-27 00:53:57.551 1000 539 2079 E system_server: Dex checksum does not match for dex: /system/priv-app/SecClockworkSysUi/SecClockworkSysUi.apk.Expected: 2603995429, actual: 4161829172
Need some time to study... find solution how to modify correct System APKs...
Best Regards
Edit 1.
Tried with no decode classes.dex and resources.arsc...
But used 0 Byte file for:
Code:
basic_clock_comp_indi_disconnected.webp
Result is hang on Logo... so maybe not good idea...
Need FAC Reset via Recovery...
Maybe other way without Root...
Code:
settings put global setting_without_phone_connection_mode_on 1
settings put global setting_phone_connection_activation_state 1
settings put secure screensaver_enabled 0
Check:
Code:
settings list system
settings list secure
settings list global
Not fully tested... I am on Standalone Mode... DUK1...
adfree said:
Maybe other way without Root...
Code:
settings put global setting_without_phone_connection_mode_on 1
settings put global setting_phone_connection_activation_state 1
settings put secure screensaver_enabled 0
Check:
Code:
settings list system
settings list secure
settings list global
Not fully tested... I am on Standalone Mode... DUK1...
Click to expand...
Click to collapse
Not working...
I will try to spend some time again with GVI3...
Step 1 done...
Code:
D:\Android\ADBnew>adb pull /system/priv-app/SecClockworkSysUi/ .\gvi3
/system/priv-app/SecClockworkSysUi/: 3 files pulled, 0 skipped. 2.3 MB/s (46789130 bytes in 19.592s)
Maybe somebody can help me to find answer what is vdex and odex...
?
And how to modify if necessary in Android 11?
Code:
-rw-r--r-- 1 root root 18574323 2022-09-21 03:12 SecClockworkSysUi.apk
drwxr-xr-x 3 root root 4096 2008-12-31 16:00 oat
freshbl:/system/priv-app/SecClockworkSysUi $ cd oat
freshbl:/system/priv-app/SecClockworkSysUi/oat $ ls -a1l
total 8
drwxr-xr-x 3 root root 4096 2008-12-31 16:00 .
drwxr-xr-x 3 root root 80 2022-09-21 03:13 ..
drwxr-xr-x 2 root root 4096 2008-12-31 16:00 arm
freshbl:/system/priv-app/SecClockworkSysUi/oat $ cd arm
freshbl:/system/priv-app/SecClockworkSysUi/oat/arm $ ls -a1l
total 25392
drwxr-xr-x 2 root root 4096 2008-12-31 16:00 .
drwxr-xr-x 3 root root 4096 2008-12-31 16:00 ..
-rw-r--r-- 1 root root 25933248 2008-12-31 16:00 SecClockworkSysUi.odex
-rw-r--r-- 1 root root 56086 2008-12-31 16:00 SecClockworkSysUi.vdex
Thanx in advance.
Best Regards
Related
I've just installed the last porting of the cyanogen for my Magic 32a. I'm enjoining the idea behind the script fix_permissions. But, observing the structure of the files/folders in my /data/data/, I can see that it is not perfect.
It does chown the folders /data/data/NAME-OF-PACKAGE/ and the subfolders 'databases' and 'shared_prefs'.
Observing the typical contents of my /data/data/ I can see that some applications has further folders and some times also single files in /data/data/NAME-OF-PACKAGE/ that need a touch of chown.
For example:
/data/data/com.htc.android.mail/
drwxrwx--x 1 10021 10021 2048 Aug 18 09:00 app_config
drwxrwxrwx 1 10021 10021 2048 Aug 18 09:00 app_mail_eas
drwxrwx--x 1 10021 10021 2048 Aug 18 09:00 app_mail_temp
drwxrwx--x 1 10021 10021 2048 Aug 18 09:00 app_temp
-rw------- 1 10021 10021 1048576 Aug 18 09:00 bufferFileForMailAP
drwxrwx--x 1 10021 10021 2048 Aug 18 09:00 databases
drwxr-xr-x 1 1000 1000 2048 Aug 18 08:41 lib
drwxrwx--x 1 10021 10021 2048 Aug 18 09:00 shared_prefs
You can test on your system by yourself:
for APP in /data/data/* ; do echo -e "\n$APP" ; ls -l $APP ; done | more
I'm attaching an improved version that should fix the permissions on all the subfolders different than 'lib' and also on the single files.
I hope it works for you and that it can be included in the future firmwares.
UPDATE: in this thread, several users are making contributions to the original script (with a fast increasing version number ). There is also a report in the Cyanogen bug system: http://code.google.com/p/cyanogenmo...ID Type Status Priority Version Owner Summary
You should find there the last revision. Thanks to all for the contributions.
ankn said:
I've just installed the last porting of the cyanogen for my Magic 32a. I'm enjoining the idea behind the script fix_permissions. But, observing the structure of the files/folders in my /data/data/, I can see that it is not perfect.
It does chown the folders /data/data/NAME-OF-PACKAGE/ and the subfolders 'databases' and 'shared_prefs'.
Observing the typical contents of my /data/data/ I can see that some applications has further folders and some times also single files in /data/data/NAME-OF-PACKAGE/ that need a touch of chown.
For example:
/data/data/com.htc.android.mail/
drwxrwx--x 1 10021 10021 2048 Aug 18 09:00 app_config
drwxrwxrwx 1 10021 10021 2048 Aug 18 09:00 app_mail_eas
drwxrwx--x 1 10021 10021 2048 Aug 18 09:00 app_mail_temp
drwxrwx--x 1 10021 10021 2048 Aug 18 09:00 app_temp
-rw------- 1 10021 10021 1048576 Aug 18 09:00 bufferFileForMailAP
drwxrwx--x 1 10021 10021 2048 Aug 18 09:00 databases
drwxr-xr-x 1 1000 1000 2048 Aug 18 08:41 lib
drwxrwx--x 1 10021 10021 2048 Aug 18 09:00 shared_prefs
You can test on your system by yourself:
for APP in /data/data/* ; do echo -e "\n$APP" ; ls -l $APP ; done | more
I'm attaching an improved version that should fix the permissions on all the subfolders different than 'lib' and also on the single files.
I hope it works for you and that it can be included in the future firmwares.
Click to expand...
Click to collapse
Btw, I was wondering why we fix only userId and not also sharedUserId
as I'm quite sure I've seen them messed up sometimes after some of my to
ambitious experiments. Shouldn't be difficult to add support for that if there
is some evidence that it is a Good Thing(tm).
farmatito said:
Btw, I was wondering why we fix only userId and not also sharedUserId
Click to expand...
Click to collapse
I don't understand the meaning of the parameter "sharedUserId". Some packages in packages.xml use the parameter "UserId", others the "sharedUserId" one. What's the difference?
ankn said:
I don't understand the meaning of the parameter "sharedUserId". Some packages in packages.xml use the parameter "UserId", others the "sharedUserId" one. What's the difference?
Click to expand...
Click to collapse
shared user id is for the case when you have a program extended by another installable program in order to run in the same process:
http://developer.android.com/reference/android/R.attr.html#sharedUserId
Another improvement could be to fix the file modes as well. I have noticed that sometimes the user permissions on files and directories in /data/data get removed.
Then you get FCs with an sqlite error like below:
Code:
sqlite3_open_v2("/data/data/com.xta.foodmkt/databases/Hungry.db", &handle, 6, NULL) failed
The below commands fixes the access errors:
Code:
find /data/data -type d -exec busybox chmod u+rwx {} \;
find /data/data -type f -exec busybox chmod u+rw {} \;
farmatito said:
Btw, I was wondering why we fix only userId and not also sharedUserId
as I'm quite sure I've seen them messed up sometimes after some of my to
ambitious experiments. Shouldn't be difficult to add support for that if there
is some evidence that it is a Good Thing(tm).
Click to expand...
Click to collapse
I'm attaching another version with support to packages with sharedUserId; fixed the remount mechanism that doesn't work on the other firmware that I'm actually using (HoFo).
smeat said:
The below commands fixes the access errors:
Code:
find /data/data -type d -exec busybox chmod u+rwx {} \;
find /data/data -type f -exec busybox chmod u+rw {} \;
Click to expand...
Click to collapse
This code should fixes all the permission-related problems but it is too risky from the security point-of-view.
ankn said:
This code should fixes all the permission-related problems but it is too risky from the security point-of-view.
Click to expand...
Click to collapse
Why risky, if i understand it right:
directory: 700 (owner only can read, write or enter directory)
files: 600 (owner only can read or write file)
Where is the risk?
You can also use:
chmod 700 directory
chmod 600 files
farmatito said:
Why risky, if i understand it right:
directory: 700 (owner only can read, write or enter directory)
files: 600 (owner only can read or write file)
Where is the risk?
You can also use:
chmod 700 directory
chmod 600 files
Click to expand...
Click to collapse
It doesn't even go that far, it ADDS the owner to the permissions, not reset them to just the owner having permissions.
smeat said:
It doesn't even go that far, it ADDS the owner to the permissions, not reset them to just the owner having permissions.
Click to expand...
Click to collapse
This in my opinion is far more risky than doing
a chmod for the owner only at least in the case
that the permissions are messed up for whatever
reason as some insecure settings will not be corrected
that way, e.g.:
permissions are wrongly set to 666 or 777
than you do chmod +urwx file and the result
will continue to be an insecure setting 666 or
677 that doesn't enforce isolation between apps.
BTW, by looking at ls of /data/data it seems to
me that all folders have 755 permissions so
chmod 755 folder should be safe. For the deeper level:
Code:
/data/data/app 755
/data/data/app/files 700
/data/data/app/lib 755
/data/data/app/shared_prefs 771
but I have not the time right now to check all subfolders
to see if there are exceptions to this default settings.
smeat said:
It doesn't even go that far, it ADDS the owner to the permissions, not reset them to just the owner having permissions.
Click to expand...
Click to collapse
This is true. Sorry!
farmatito said:
This in my opinion is far more risky than doing
a chmod for the owner only at least in the case
that the permissions are messed up for whatever
reason as some insecure settings will not be corrected
that way, e.g.:
permissions are wrongly set to 666 or 777
than you do chmod +urwx file and the result
will continue to be an insecure setting 666 or
677 that doesn't enforce isolation between apps.
BTW, by looking at ls of /data/data it seems to
me that all folders have 755 permissions so
chmod 755 folder should be safe. For the deeper level:
Code:
/data/data/app 755
/data/data/app/files 700
/data/data/app/lib 755
/data/data/app/shared_prefs 771
but I have not the time right now to check all subfolders
to see if there are exceptions to this default settings.
Click to expand...
Click to collapse
fix_permissions is not about removing permissions and never has been from what I can tell. Currently it just goes through the /data/system/packages.xml and finds the listed owner of the /data/data files and then changes ownership of the files and directories.
I am talking about adding an additional chmod to make it so that file and directory owners are added as being able to read/write to the files they own. I have seen an issue were running something made it so that a ton of my application sqlite databases had file permissions of 060. When this happens you get the error I posted originally: sqlite3_open_v2("/data/data/com.xta.foodmkt/databases/Hungry.db", &handle, 6, NULL) failed. Even though the group write and read bit are set and the group is correct the error above happens. Adding the owner back as having read/write permissions fixes this error.
Again, adding permissions to only the user/owner of the files and directories does not open the files up to being written by other processes on the phone.
Again, adding permissions to only the user/owner of the files and directories does not open the files up to being written by other processes on the phone.
Click to expand...
Click to collapse
I know. I was trying to improve the concept of fix permission as you can not know
in advance how the permissions could have been messed up. So it would be better
to enforce some sane defaults rather than to add some hacks to fix a specific problem.
This obviously is only possible if there are some patterns in file and folder permissions of /data/data.
That is what i will try to find out.
farmatito said:
I know. I was trying to improve the concept of fix permission as you can not know
in advance how the permissions could have been messed up. So it would be better
to enforce some sane defaults rather than to add some hacks to fix a specific problem.
This obviously is only possible if there are some patterns in file and folder permissions of /data/data.
That is what i will try to find out.
Click to expand...
Click to collapse
Ahhh, sorry I misunderstood what you were getting at.
If you run:
Code:
find /data/data -type f -exec ls -l {} \;
Will tell you what all the files are currently set to.
A run of:
Code:
find /data/data -type d -exec ls -ld {} \;
Will list the current directory permissions.
What I can find is that any /sslcache directory is 700, /lib 755 and owned by 1000:1000, /database 771, /shared_prefs 771, But I have some apps with 700 directories for everything.
Here is a table for /data/data/app, format: directory/file, permissions, ownership
Directories:
/database 771 appuser:appgroup
/lib 755 1000:1000
/shared_prefs 771 appuser:appgroup
/sslcache 700 appuser:appgroup
/anythingelse 771 appuser:appgroup
Files:
/database/* 660 appuser:appgroup
/lib/* ??? ??????, never seen any files in these directories.
/sslcache/* 600 appuser:appgroup
/shared_prefs/* 660 appuser:appgroup
/anythingelse/* 660 appuser:appgroup
Does this align with what you are seeing? If so we can adjust the script to apply these permissions to the files and directories more selectively.
I was actually wondering about this very thing yesterday. Is there some reason why the initial script only changed the permissions of databases and shared_prefs?
I'm trying to think of a scenario in which you wouldn't just want a recursive chown, but especially in the case of wiping and then copying back data directories, having ALL the subdirectories owned by the app's uid seems preferable to having any of them owned by the wrong uid.
smeat said:
Ahhh, sorry I misunderstood what you were getting at.
If you run:
Code:
find /data/data -type f -exec ls -l {} \;
Will tell you what all the files are currently set to.
A run of:
Code:
find /data/data -type d -exec ls -ld {} \;
Will list the current directory permissions.
What I can find is that any /sslcache directory is 700, /lib 755 and owned by 1000:1000, /database 771, /shared_prefs 771, But I have some apps with 700 directories for everything.
Here is a table for /data/data/app, format: directory/file, permissions, ownership
Directories:
/database 771 appuser:appgroup
/lib 755 1000:1000
/shared_prefs 771 appuser:appgroup
/sslcache 770 appuser:appgroup
/anythingelse 771 appuser:appgroup
Files:
/database/* 660 appuser:appgroup
/lib/* ??? ??????, never seen any files in these directories.
/sslcache/* 600 appuser:appgroup
/shared_prefs/* 660 appuser:appgroup
/anythingelse/* 660 appuser:appgroup
Does this align with what you are seeing? If so we can adjust the script to apply these permissions to the files and directories more selectively.
Click to expand...
Click to collapse
So far this is what i've found:
Code:
/data/data/pkgdir uid/gid 755
/data/data/pkgdir/lib system/system 755
/data/data/pkgdir/databases uid/gid 771
/data/data/pkgdir/databases/*.db uid/gid 660
/data/data/pkgdir/shared_prefs uid/gid 771
/data/data/pkgdir/shared_prefs/*.xml uid/gid 660
/data/data/pkgdir/cache uid/gid 771
/data/data/pkgdir/cache/* uid/gid 771
The only differences are in the anythingelse part wher I have found
all possible combinations of permissions, but I suspect that these files
and dirs are setup by the apk at runtime as no reference could be found
for them in the apk package nor in the installd source code.
So i think it would be a big improvement to try to fix this standard dirs and their
contents with ownership and permissions as shown above.
This could save a lot of headaches to users and devs. Single apps with
exotic permissions could always be reinstalled or fixed manually.
In script 1.3 you should change:
cat /data/system/packages.xml | grep "^<package" | grep userId
to
cat /data/system/packages.xml | grep "^<package" | grep serId
as else no packages with sharedUserId will be found
farmatito said:
So far this is what i've found:
Code:
/data/data/pkgdir uid/gid 755
/data/data/pkgdir/lib system/system 755
/data/data/pkgdir/databases uid/gid 771
/data/data/pkgdir/databases/*.db uid/gid 660
/data/data/pkgdir/shared_prefs uid/gid 771
/data/data/pkgdir/shared_prefs/*.xml uid/gid 660
/data/data/pkgdir/cache uid/gid 771
/data/data/pkgdir/cache/* uid/gid 771
The only differences are in the anythingelse part wher I have found
all possible combinations of permissions, but I suspect that these files
and dirs are setup by the apk at runtime as no reference could be found
for them in the apk package nor in the installd source code.
So i think it would be a big improvement to try to fix this standard dirs and their
contents with ownership and permissions as shown above.
This could save a lot of headaches to users and devs. Single apps with
exotic permissions could always be reinstalled or fixed manually.
Click to expand...
Click to collapse
Yeah, I was assuming on the /anythingelse.
Alright here is my shot at this modification. Not much of a coder... so be gentle.
I created an issue for this on the code.google.com cyanogenmod site. thenefield posted some changes and I have integrated them into a new script.
smeat said:
I created an issue for this on the code.google.com cyanogenmod site. thenefield posted some changes and I have integrated them into a new script.
Click to expand...
Click to collapse
In your rewrite of the script, you forgot to apply the chown to the subfolders that are different than 'databases' and 'shared_prefs' as well as to the single files in the application-root. Look at my first post in this thread: these cases exist and we have to deal with them. In other words: you reverted my changes.
This thread is meant for ROM developers and the not the general public. Please don't comment asking questions unless you are a ROM developer planning on implementing this in your ROM.
I've taken the existing init.d framework and taken it to the next level.
Changes made:
Added a global scripts log directory so we can consolidate where we put our log files and help clean the system clean. It's located in /data/scriptlogs
Added logging to each init file which has its own individual logfile
Each init will set the following properties once it has completed. init.name_of_initfile.status & init.name_of_initfile.completed so we have record of its exit status and whether it finished running.
Wrote a shell script named bootstatus that will output a summary of the init scripts exist statuses.
If the phone is not booting or having issues you can verify init completed successfully by using bootstatus. If an init script failed it will tell you the location to the logfile containing a more descriptive log that should help explain why it failed. No more guessing game
Wrote a script to dump the stats from compcache. Previously this was done with rzscontrol, that no longer works on compcache 0.5 and up. The script is named ccstat
Lines to add to init.rc
Code:
start sysinit
on property:init.complete=1
class_start default
service sysinit /system/xbin/busybox run-parts /system/etc/init.d
disabled
oneshot
Output from bootstatus
Code:
# bootstatus
-----------------------------------------
| SCRIPT | STATUS | DETAILS
-----------------------------------------
sysctl PASS
firstboot PASS
a2sd PASS
userinit PASS
compcache PASS
linuxswap PASS
cpu PASS
virtualmem PASS
Properties that got set after init.d finished
Code:
[init.sysctl.complete]: [1]
[init.firstboot.complete]: [1]
[init.a2sd.complete]: [1]
[init.userinit.complete]: [1]
[init.compcache.complete]: [1]
[init.linuxswap.complete]: [1]
[init.complete]: [1]
[init.sysctl.status]: [PASS]
[init.firstboot.status]: [PASS]
[init.a2sd.status]: [PASS]
[init.linuxswap.status]: [PASS]
Output from ccstat
Code:
DiskSize: 32768 kB
NumReads: 245
NumWrites: 2063
FailedReads: 0
FailedWrites: 0
InvalidIO: 0
NotifyFree: 0
ZeroPages: 787
GoodCompress: 70 %
NoCompress: 4 %
PagesStored: 1276
PagesUsed: 457
OrigDataSize: 5104 kB
ComprDataSize: 1783 kB
MemUsedTotal: 1828 kB
Snapshot of the logs directory, /data/scriptlogs
Code:
# ls -l
-rw-rw-rw- root root 71 2010-02-02 20:43 09virtualmem.log
-rw-r--r-- root root 105 2010-02-02 13:48 06compcache.log
-rw-r--r-- root root 64 2010-02-02 20:42 08cpu.log
-rw-r--r-- root root 70 2010-02-02 20:30 07linuxswap.log
-rw-r--r-- root root 67 2010-02-02 13:48 05userinit.log
-rw-r--r-- root root 462 2010-02-02 13:48 04a2sd.log
-rw-r--r-- root root 66 2010-02-02 13:48 03firstboot.log
-rw-r--r-- root root 92 2010-02-02 13:48 01sysctl.log
-rw-r--r-- root root 102 2010-02-02 13:48 init.log
Snippet from a2sd logfile
Code:
04a2sd Starting: 13:48 02/02/2010
Running fsck on ext partition: Done
Mounting /system/sd Done
Clean old symlinks, create data directories:
------------------------
------------------------
Done
Copying /data/dalvik-cache contents to /system/sd/dalvik-cache
Removing /data/dalvik-cache directory
Binding /system/sd/dalvik-cache to /data/dalvik-cache: Done
Removing any .odex files in /system/sd/app: Done
Finished at 13:48 02/02/2010
Ok I finished up my changes and they are attached to this post now.
EDIT
Going to release in King's Eclair ROM and give it a test first. If mods want to delete this thread for now that's fine. I'll recreate later
Ok the files have been attached to the first post. Enjoy.
This should make the init process more stable and easier to debug from a user & developer standpoint.
Holy heck I wish I had found this before!!! You have answered so many questions for me about the new Eclair builds. Between this post and the King Eclair post in your sig you have answered many many ROM building questions I've had for weeks.
One last question -- Do you know if it matters where in init.rc I put start sysinit ?
EDIT: Well, I'm doing something wrong because it gave me init: invalid command 'start'
EDIT2: start sysinit needs to be added as a subcommand of 'on boot', cyanogen has it after setprop net.tcp.buffersize
Thanks again, fellow ROM builder
polyrhythmic said:
Holy heck I wish I had found this before!!! You have answered so many questions for me about the new Eclair builds. Between this post and the King Eclair post in your sig you have answered many many ROM building questions I've had for weeks.
One last question -- Do you know if it matters where in init.rc I put start sysinit ?
Thanks again, fellow ROM builder
Click to expand...
Click to collapse
No problem glad I could help. You can put the start sysinit right before the service definitions. Here is a larger snippit in init.rc so you can see where I placed it
Code:
setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
start sysinit
on property:init.complete=1
class_start default
## Daemon processes to be run by init.
##
service console /system/bin/sh
console
I'm seeing it all now... thanks again!
shafty023 said:
EDIT
Going to release in King's Eclair ROM and give it a test first. If mods want to delete this thread for now that's fine. I'll recreate later
Click to expand...
Click to collapse
And where i can find this script ?
Bladyle said:
And where i can find this script ?
Click to expand...
Click to collapse
FEBUARY....................7 months ago............
FEBUARY....................7 months ago............
Click to expand...
Click to collapse
so what
shafty023 said:
Ok the files have been attached to the first post. Enjoy.
This should make the init process more stable and easier to debug from a user & developer standpoint.
Click to expand...
Click to collapse
Ok, I'll admit it, for a lot of things, especially system administration, I prefer the command line.
Is there a reason why I would not use tar to do "full backup" of data (as opposed to TiBackup or the like)?
One advantage is that I can extract a tar on another box and, for example, check it in to a VC system.
Admittedly, busybox tar isn't the most full-featured implementation (no one-file-system option, for example), but I believe it does have an exclude-from-file option that works.
I may be wrong, but I don't think tar on our phones can save ownership and permissions (too lazy to try it out right now). I suppose it wouldn't be too hard to write a script to save any info that tar would not preserve into a properties file and then have a restore script that would read the properties file and chown and chmod every file after extracting.
xviiivx said:
I may be wrong, but I don't think tar on our phones can save ownership and permissions
Click to expand...
Click to collapse
busybox tar appears to work like "any" tar, at least for non-extended attributes (I don't know if the kernel supports xattrs )
Code:
$ tar tvf test.tar | head -n 10
drwxr-xr-x 0/0 0 2011-02-07 20:58 system/etc/
-rw-r--r-- 0/0 15346 2011-02-07 20:58 system/etc/apns-conf.xml
-rw-r--r-- 0/0 25 2011-02-07 20:58 system/etc/hosts
-rw-r--r-- 0/0 99026 2011-02-07 20:58 system/etc/NOTICE.html.gz
-r-xr-x--- 0/2000 1200 2011-02-07 20:58 system/etc/init.goldfish.sh
-rw-r--r-- 0/0 1707 2011-02-07 20:58 system/etc/vold.fstab
-rw-r--r-- 0/0 195 2011-02-07 20:58 system/etc/gps.conf
drwxr-xr-x 0/0 0 2011-02-07 20:58 system/etc/security/
-rw-r--r-- 0/0 91755 2011-02-07 20:58 system/etc/security/cacerts.bks
drwxr-xr-x 0/0 0 2011-02-07 20:58 system/etc/security/drm/
and does appear to preserve links as well
Code:
$ tar tvf test2.tar | head -n 10
lrwxrwxrwx 0/0 0 2011-03-15 12:09 etc -> /system/etc
These were created using busybox tar from /system/etc and of /etc, adb pull-ed, and extracted on another system (Cygwin, in this case).
If you look in the TitaniumBackup directory on the sdcard, each app has 3 files:
appname.apk.gz- I didn't check, but obviously is probably just a backup of the apk
appname.tar.gz (looks like a tar of the /data/data/app dir)
appname.properties- looks like it includes a huge chuck of data for the icon and some misc information, a lot of which appears to be... market information?
I don't know how important the third file is, but it looks like Titanium is using tar. You could download a junk app and try it with that app and see if it works.
Just a guess, but I bet untarring may not be enough, you'll probably have to run the command "pm install" on each apk.
Thanks Fubuya!
That leads me to two useful "conclusions"
tar probably works just fine
TiBackup files are likely extractable on a POSIX box
Yeah, on linux, one is just text and I extracted the other two just fine (tar -zxvf for one and gunzip for the other). It's probably just a matter of finding out if there are any extra tricks you need to know about. Looks like Tibackup has a forum here, if you run into problems maybe they'd be nice enough to translate what's happening on the backend of their backup process.
So I'm on rogers trying to change my CID. When I used the one click all it did was say it couldn't be found. All other batch installers just open up in command prompt and close again..... I have usb debugging turned on and I have it in charge only. My current RUU is 1.73. My boot loader is unlocked and I am rooted.
I've even tried the Linux tool and it all it did was say ./adb was not valid.
Sorry if If I'm being a complete idiot here but I want to start trying custom roms...
bobruels44 said:
So I'm on rogers trying to change my CID. When I used the one click all it did was say it couldn't be found. All other batch installers just open up in command prompt and close again..... I have usb debugging turned on and I have it in charge only. My current RUU is 1.73. My boot loader is unlocked and I am rooted.
I've even tried the Linux tool and it all it did was say ./adb was not valid.
Sorry if If I'm being a complete idiot here but I want to start trying custom roms...
Click to expand...
Click to collapse
For the Linux tool (which I wrote), you downloaded the file, extracted the archive, opened a terminal window IN the archive folder, typed "chmod +x toolbox.sh" <enter> and then "./toolbox.sh" <enter>?
If so, try going back to the terminal window and typing "chmod +x adb" <enter> and then "./toolbox.sh" <enter>
HTH,
Billy
Sent from my HTC One X using Tapatalk 2
yes that is what I did and all it did was say /adb is not a valid command...
I was in the correct directory as I could open the tool,
then when installing the drivers for example all it said was
\adb is not a recognized command
Almost done, please reboot your computer now....
bobruels44 said:
yes that is what I did and all it did was say /adb is not a valid command...
I was in the correct directory as I could open the tool,
then when installing the drivers for example all it said was
\adb is not a recognized command
Almost done, please reboot your computer now....
Click to expand...
Click to collapse
JeepFreak said:
If so, try going back to the terminal window and typing "chmod +x adb" <enter> and then "./toolbox.sh" <enter>
Click to expand...
Click to collapse
The above should work, but if not, try downloading the tool again and starting from the beginning. I made a small change that might help. Were you using the SuperCID script or the One XL Toolbox?
http://www.slicky.net/code/onexl/OneXL-Toolbox.tar.gz
http://www.slicky.net/code/onexl/SuperCID-OneXL.tar.gz
HTH,
Billy
Ive tried both actually.
Here is the error message from the tool box..
./adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
./adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
./adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
./adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
./adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
cp: cannot stat `tmp/mmcblk0p4': No such file or directory
xxd: tmp/mmcblk0p4: No such file or directory
grep: tmp/mmcblk0p4.txt: No such file or directory
grep: tmp/mmcblk0p4.txt: No such file or directory
grep: tmp/mmcblk0p4.txt: No such file or directory
We don't recognize your current CID. If you're sure that your
phone is the S4 version, HTC One XL, contact me on XDA and I
will see if I can get you going.
I am rooted and the bootloader is unlocked.....
Could it be because I'm still S-ON? I just kinda figured that everyone was still S-ON.....
Edit:
There is a HIGH chance I'm being an idiot and missing something stupid...
bobruels44 said:
Ive tried both actually.
Here is the error message from the tool box..
./adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
./adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
./adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
./adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
./adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
cp: cannot stat `tmp/mmcblk0p4': No such file or directory
xxd: tmp/mmcblk0p4: No such file or directory
grep: tmp/mmcblk0p4.txt: No such file or directory
grep: tmp/mmcblk0p4.txt: No such file or directory
grep: tmp/mmcblk0p4.txt: No such file or directory
We don't recognize your current CID. If you're sure that your
phone is the S4 version, HTC One XL, contact me on XDA and I
will see if I can get you going.
I am rooted and the bootloader is unlocked.....
Could it be because I'm still S-ON? I just kinda figured that everyone was still S-ON.....
Edit:
There is a HIGH chance I'm being an idiot and missing something stupid...
Click to expand...
Click to collapse
Hmmmm... type "ls -l" <enter> from a terminal in the toolbox directory. (That's "LS -L", but lower case, btw). Copy and paste the output here.
Billy
@ubuntu:~/Desktop/OneXL-Toolbox$ ls -l
total 2922
-rw-rw-r-- 1 casey casey 82 May 23 18:13 51-android.rules
-rwxrwxr-x 1 casey casey 159644 May 9 09:34 adb
-rw-rw-r-- 1 casey casey 42916 May 6 01:36 apstacon.conf
-rw-rw-r-- 1 casey casey 2005736 Dec 28 22:32 busybox
-rw-rw-r-- 1 casey casey 42940 May 6 01:36 hostapd_default.conf
-rw-rw-r-- 1 casey casey 136 May 25 20:41 README..txt
-rw-rw-r-- 1 casey casey 91980 May 7 22:23 su
-rw-rw-r-- 1 casey casey 570342 May 7 22:22 Superuser.apk
-rw-r--r-- 1 casey casey 12288 May 22 19:14 telephony.db
-rw-r--r-- 1 casey casey 12288 May 23 19:51 telephony.db.virgin
drwxrwxr-x 2 casey casey 1024 May 28 16:14 tmp
-rwxrwxr-x 1 casey casey 15101 May 29 08:48 toolbox.sh
-rwxrwxr-x 1 casey casey 9947 May 28 09:25 undo-toolbox.sh
-rw-rw-r-- 1 casey casey 4436 May 6 01:33 WCNSS_qcom_cfg_default.ini
-rw-rw-r-- 1 casey casey 351 May 23 10:50 wpa_supplicant.conf
Oh, you know what... I bet you need to install the ncurses library. Do you know how to do that? If not, what package manager do you use (rpm, yup, aptitude, etc)? Or what Linux distribution are you running?
Billy
Sent from my HTC One X using Tapatalk 2
I use ubuntu...
I'm not familiar with those... my knowledge of Linux is really based down to school uses where they get mad if you start installing software. However I am familiar with a command prompt so I'm only mostly useless
bobruels44 said:
I use ubuntu...
I'm not familiar with those... my knowledge of Linux is really based down to school uses where they get mad if you start installing software. However I am familiar with a command prompt so I'm only mostly useless
Click to expand...
Click to collapse
HAHA. Is it a 64 bit system? If so, try this:
"sudo apt-get install ia32-libs" <enter>
If not, LMK,
Billy
Download this Guide ...
Try downloading the Guide from the first post in the following link:
http://forum.xda-developers.com/showthread.php?t=1678308
Go to Step 2 on Page 10.
Peter
Here is a little tutorial for disabling LG RCT (Root Checker Tool), this currently has not much use for the avg. user since it does not impact performance as far as i know, but this might help other Developers. This Requires the System Partition to be writable, e.g. with SystemRW tool.
Required:
Unlocked Bootloader (Obviously)
SystemRW Mod
Disable DM-Verity (AVB) (Will be disabled by the SystemRW Mod)
Part 1:
1. adb shell, pm uninstall -k --user 0 com.lge.rctprovider
2. adb reboot bootloader, Fastboot erase rct
Reboot to System
3. adb shell, pm uninstall -k --user 0 com.lge.srtc
4. Edit /system_ext/etc/init/init.lge.system_ext.service.rc (copy to storage, rename to txt and remove that completely:
########################################
# LG RCT(Rooting Check Tool)
########################################
service rctd /system_ext/bin/rctd
class late_start
user root
group root
seclabel u:r:rctd:s0
)
5. Remove .txt extension and copy back to original place (Keep old permissions on file: rw-r--r--) and reboot
Now the RCT Service is stopped.
--------------------------------
Part 2:
1. Delete /system/system_ext/app/RctProvider Folder and /system/system_ext/bin/rctd file
2. Delete /mnt/Product/Persist-LG/RCT Folder
Done, how to check if it is disabled? "Adb shell", "su" and "getprop | grep rct". If it shows nothing as output that means the service is not running. After that check the service menu *#546368#*600# > SVC Menu > LG RCT (Has to say Disabled)
Credits to Th3-Hunter333 (ps3hacker3 on XDA) and Leronex (Leronex_1 on XDA)
how to do
怎么弄
Thanks a lot for the guide!
I don't have a linux workstation around and decided to edit the init.lge.system_ext.services.rc file and copy it back using Total Commander. Total Commander can remount the file system as r/w, but for whatever reason any file I create in /system/etc/init has "0" size. I tried to save init.lge.system_ext.services.rc under a different name in the same folder and it became empty. I can delete or create a new file but all my files have zero size.
I also tried to remount the /system as r/w using "mount -o rw,remount /" command from adb shell. It sort of works, I can change the permissions for files and folders but again, I can't edit files. I even tried vi editor from the adb shell (busybox vi ...) and while it doesn't complain about the r/o file I still can't add anything to it.
Here is a result of the "ls -la" command after I changed permissions to 777 for init.lge.system_ext.services.rc
-rw-r--r-- 1 root root 0 2008-12-31 16:00 init.lge.system.on_post_fs.rc
-rw-r--r-- 1 root root 429 2008-12-31 16:00 init.lge.system.on_post_fs_data.rc
-rw-r--r-- 1 root root 260 2008-12-31 16:00 init.lge.system.on_property.rc
-rwxrwxrwx 1 root root 0 2021-12-07 16:19 init.lge.system.services.rc
-rw-r--r-- 1 root root 4674 2008-12-31 16:00 installd.rc
-rw-r--r-- 1 root root 1104 2008-12-31 16:00 iorapd.rc
Just wondering if anyone have a solution to that. Thank you.
G0bl1n said:
Thanks a lot for the guide!
I don't have a linux workstation around and decided to edit the init.lge.system_ext.services.rc file and copy it back using Total Commander. Total Commander can remount the file system as r/w, but for whatever reason any file I create in /system/etc/init has "0" size. I tried to save init.lge.system_ext.services.rc under a different name in the same folder and it became empty. I can delete or create a new file but all my files have zero size.
I also tried to remount the /system as r/w using "mount -o rw,remount /" command from adb shell. It sort of works, I can change the permissions for files and folders but again, I can't edit files. I even tried vi editor from the adb shell (busybox vi ...) and while it doesn't complain about the r/o file I still can't add anything to it.
Here is a result of the "ls -la" command after I changed permissions to 777 for init.lge.system_ext.services.rc
-rw-r--r-- 1 root root 0 2008-12-31 16:00 init.lge.system.on_post_fs.rc
-rw-r--r-- 1 root root 429 2008-12-31 16:00 init.lge.system.on_post_fs_data.rc
-rw-r--r-- 1 root root 260 2008-12-31 16:00 init.lge.system.on_property.rc
-rwxrwxrwx 1 root root 0 2021-12-07 16:19 init.lge.system.services.rc
-rw-r--r-- 1 root root 4674 2008-12-31 16:00 installd.rc
-rw-r--r-- 1 root root 1104 2008-12-31 16:00 iorapd.rc
Just wondering if anyone have a solution to that. Thank you.
Click to expand...
Click to collapse
You didn't read the tutorial, the system NEEDS to be R/W before you do it.
Leronex_1 said:
You didn't read the tutorial, the system NEEDS to be R/W before you do it.
Click to expand...
Click to collapse
Oh I did read it, just was wondering if I can find a way around.
But from the file system perspective I don't understand how I can create an empty file or delete it but in the same time can't update the content.
What I did actually killed the RCT service, while it also killed a couple of other (useful) services listed in the services.rc. file. The phone works OK so far, I don't see anything strange though. I do have a copy of the original file and will copy it back once I have a linux setup on my PC.
Can someone upload the text for init.lge.system_ext.services.rc I accidentally deleted the whole thing when I saved.
I don't have com.lge.srtc
is it different on the verizon version?
Assasinx54 said:
Can someone upload the text for init.lge.system_ext.services.rc I accidentally deleted the whole thing when I saved.
Click to expand...
Click to collapse
here's mine
Code:
########################################
# CAPP_NFS
########################################
service nfsserversetup /system/bin/nfsserversetup
class late_start
user root
oneshot
########################################
# CAPP_MPROFILER
########################################
service lgprofd /system/bin/lgprofd
socket lgprofd stream 666
########################################
# CAPP_NFS
########################################
service nfskill /system/bin/nfskillprocess
disabled
oneshot
user root
on property:vold.decrypt=trigger_shutdown_framework
start nfskill
########################################
# bugreport is triggered by holding down volume down, volume up and power
########################################
service bugreport /system/bin/dumpstate -d -p -B -z \
-o /data/user_de/0/com.android.shell/files/bugreports/bugreport
class main
disabled
oneshot
keycodes 114 115 116
########################################
# LG RCT(Rooting Check Tool)
########################################
service rctd /system_ext/bin/rctd
class late_start
user root
group root
seclabel u:r:rctd:s0
########################################
# [email protected] fota
########################################
service uncrypt-fota /system/bin/uncrypt --fota
class main
socket uncrypt stream 600 system system
disabled
oneshot
service uncrypt-lcdoff /system/bin/uncrypt --lcdoff
class main
socket uncrypt stream 600 system system
disabled
oneshot
########################################
# LGP_DATA_DSQN
########################################
service dsqn /system_ext/bin/dsqn
disabled
user root
on property:persist.product.lge.data.dsqn=1
start dsqn
on property:persist.product.lge.data.dsqn=0
stop dsqn
########################################
# LGP_DATA_TCPIP_MPTCP
########################################
service socks /system_ext/bin/redsocks -c /system_ext/etc/redsocks.conf
disabled
user root
on property:product.lge.data.mptcp.enabled=1
start socks
on property:product.lge.data.mptcp.enabled=0
stop socks
service socks-v6 /system_ext/bin/redsocks-v6 -c /system_ext/etc/redsocks_v6.conf
disabled
user root
on property:product.lge.data.mptcp.enabled=1
start socks-v6
on property:product.lge.data.mptcp.enabled=0
stop socks-v6
########################################
# [email protected] ModemBSP
########################################
#LGE_CHANGE_S, Advanced MOCA, [email protected]
service moca_service /system_ext/bin/advanced_moca -s
class late_start
user root
group system sdcard_r sdcard_rw radio misc bluetooth
disabled
oneshot
socket Full.MOCA.port stream 660 system system
on property:persist.product.lge.service.moca.enable=1
start moca_service
on property:persist.product.lge.service.moca.enable=0
stop moca_service
#LGE_CHANGE_E, Advanced MOCA, [email protected]
Thanks dude I ended up reflashing the stock rom and rerooting. The problem was my device doesnt have R/W access. Im working with the guy that made the r/w script to get it working on the verizon v60
Assasinx54 said:
Thanks dude I ended up reflashing the stock rom and rerooting. The problem was my device doesnt have R/W access. Im working with the guy that made the r/w script to get it working on the verizon v60
Click to expand...
Click to collapse
are you getting
Code:
systemrw: Error! failed to create super_fixed.img file. Error code: 73
Yes error 73 is normal. I actually have created a better tutorial for this and I'll be updating it today.
I don't have a /system_ext
I do have a /system/etc/init
but I don't have init.lge.system_ext.service.rc
On v60_TMO that was crossflashed from v60_AM, I did the system_rw mod.
I was trying to follow the instructions here and ran the uninstall.sh from here, but that didn't work for me either.
*Edit: I found that the file for mine is /system/etc/init/init.lge.system.services.rc
I also don't have the directories from part 2, but part 1 seems to have *stopped the rct service.
deathglass said:
I don't have a /system_ext
I do have a /system/etc/init
but I don't have init.lge.system_ext.service.rc
On v60_TMO that was crossflashed from v60_AM, I did the system_rw mod.
I was trying to follow the instructions here and ran the uninstall.sh from here, but that didn't work for me either.
Click to expand...
Click to collapse
The uninstall.sh script in that repo is for removing the Magisk module. Does the Magisk module not work?
null-dev said:
The uninstall.sh script in that repo is for removing the Magisk module. Does the Magisk module not work?
Click to expand...
Click to collapse
I have no idea what the script was supposed to do (as far as rct goes), was just trying to follow the instructions. It said "Download and install the Magisk module (with a link to your disable magisk script), then reboot phone"
deathglass said:
I have no idea what the script was supposed to do, was just trying to follow the instructions.
Click to expand...
Click to collapse
The instructions say to install a Magisk module though, did you do that and it still didn't work?
null-dev said:
The instructions say to install a Magisk module though, did you do that and it still didn't work?
Click to expand...
Click to collapse
Oh, I didn't realize that magisk module meant through the Magisk app. I installed it and everything seems to be working, thank you.
Step-by-step worked for me, but local banking app still detecting root
dangtoi1993 said:
Step-by-step worked for me, but local banking app still detecting root
Click to expand...
Click to collapse
This is not how you bypass that
Leronex_1 said:
This is not how you bypass that
Click to expand...
Click to collapse
So there is anyway to pass safetynet while keeping root?
dangtoi1993 said:
So there is anyway to pass safetynet while keeping root?
Click to expand...
Click to collapse
Google "bypass safetynet root"