Adding and removing entires from settings.apk - Android Q&A, Help & Troubleshooting

I am in the process of making a custom rom for the Craig CMP738a and I want to remove all the useless options from the settings.apk. Things such as the bluetooth settings. I also want to change where it says "about phone" to "about tablet". Lastly, I wanna add a calibrate touchscreen option that points to the TSCalibation.apk. I already know how to use apk manager how to get the apk off the device. How do I change what I want to change. I have poked around in the decompiled apk, but so far I haven't been successful in changing anything.

sega dude said:
I am in the process of making a custom rom for the Craig CMP738a and I want to remove all the useless options from the settings.apk. Things such as the bluetooth settings. I also want to change where it says "about phone" to "about tablet". Lastly, I wanna add a calibrate touchscreen option that points to the TSCalibation.apk. I already know how to use apk manager how to get the apk off the device. How do I change what I want to change. I have poked around in the decompiled apk, but so far I haven't been successful in changing anything.
Click to expand...
Click to collapse
+1
............

Related

registry edit in kitchen question

Hi guys so i got a a US cellular ROM and used rstoyguy's blank kitchen from ppc. I took out all the unwanted programs that i dont need and i wanted to edit some registry, the thing is i couldn't find the hv files to edit. the reason for this is when i flash the phone using this ROM i edited and go to SMS/MMS and go to mms options i could get rid of USC in the servers tab. I know how to find it in the registry editor manually but what i want to do is to edit the registry in the actual rom so when i flash it to a phone the server tab in mms is already unlocked and doesn't show me USC. any ideas? or should i use another kitchen ?
In my GSM kitchen, I can inject registry changes in an .RGU file or .PROVXML file.
If your CDMA kitchen contains such files, you could look to inject your registry change that way.
Make sure to use a Text Editor that supports Unicode format as well.
HTH,
So my problem was the text editor. LOL i feel stupid now. thanks a bunch
Phone: Location Setting
Start-Phone-Menu-Options-Services-Location Settings-Get Settings
The location consent form has “US Cellular “ wording throughout the warning.
How do you edit this? I changed a lot of settings already but still no luck?
Why do you want to change that?
im just trying to make a generic rom. Without any trace of any other carrier. When you look at the USC ROM it seems to be one of the cleanest and easiest to modify, easy to understand. Once i finish this, this may help a lot of people who needs it. so please help me pls. Thats the only thing i need to take out. I found the registry in these files mxipupdate_oemoperators_104 and mxipupdate_oemoperators_106 but once i edit it just shows me a black box with scrolls on the side. I coudn't see the original consent like the once found in the registry. Instead it is blocked by another page. help thanks
motoyola said:
im just trying to make a generic rom. Without any trace of any other carrier. When you look at the USC ROM it seems to be one of the cleanest and easiest to modify, easy to understand. Once i finish this, this may help a lot of people who needs it. so please help me pls. Thats the only thing i need to take out. I found the registry in these files mxipupdate_oemoperators_104 and mxipupdate_oemoperators_106 but once i edit it just shows me a black box with scrolls on the side. I coudn't see the original consent like the once found in the registry. Instead it is blocked by another page. help thanks
Click to expand...
Click to collapse
Umm.. I think you are trying way too hard. Where do i get this page at on the phone?
it looks like this. how do you fix this?

[Q] Trying to modify 4.0.4 notification screen - Don't know names of items

I have a Verizon LG Lucid with stock 4.0.4 on it. Here:imgur.com/Igb4l you can see my notification screen with a nice red box drawn around the items I would like to disable. However, before I can disable such items I need to know what they are called. I have tried every combination of words I can think of to google search but not no avail.
So here's what I need to know:
1. What are these items called?
2. Are they contained within the software of LG, Verizon, or stock Android?
3. Where would be a good topic to begin researching now that I know what's what?
Edit: I think the key here lies within systemUI.apk. I will investigate that.
Edit: I learned a lot about APK's and modifying them. Currently all I've been able to do is make the status bar disappear. Maybe it isn't actually in systemui...
Edit: Success! I finally got the wifi notification bar to "go away" by setting its height to 0.0 in SystemUI>res>layout>wifi_onetouch_layout.xml as seen in a thread about hiding the music player. A few problems I ran into: I had to switch the aapt that comes with apktool with aapt from the android SDK to build without errors. After it was built I had to copy META -INF and AndroidManifest from the vanilla SystemUI.apk then zipalign it. I used a root file manager on the phone to move and rename everything.
Here's a nice screenshot of my progress: imgur.com/YA7bu

Possible to install LGE Alarm/Clock app on a Samsung phone?

Does anyone with experience on the subject know whether it is possible (or im-possible) to install LG's OE Alarm/Clock app on a Samsung phone? The donor phone is an LG Optimus Fuel LGL34C on KitKat 4.4.2. The recipient phone is a Samsung Galaxy Core Prime S820L (Tracphone) on KitKat 4.4.4 and I am loathe to leave behind the stopwatch/timer function (Alarm/Clock) on my old LG. I want to transfer it over but I'm finding that's that's easier said than done.
I have found a number of websites offering a pre-packaged version that's supposed to be that app (LGAlarmClock.apk, or something close to it) sourced from a package of OE LGE apps. Unfortunately, I can't find one that will install. When I tried to install them, most of them failed from the get-go saying there was a problem parsing the file. One of them attempted to run, appeared to run normally but ended with "App not installed," existing package yadda yadda yadda. But I note that they were all of substantially different file sizes and I can't be sure any of them were for KitKat (but I know at least one was sourced from Lollipop).
So when these all failed, next I tried the App Transfer app, which is supposed to compile an installable apk from the files currently on the source phone. But when I tried to install it on the target phone, it did the "App not installed" thing again.
Then I tried a couple of PC-based data and application transference applications. One of them transferred everything except the proprietary LGE stuff, which it ignored, to include Alarm/Clock.
After than I decided to take a shot at installing it manually, so I searched the source phone for all instances of what appeared to be related files. This is what I arrived at:
/system/cust/overlay/app/com.lge.clock.apk
/system/lib/liblgomx_clock.so
/system/priv-app/LGAlarmClock.apk
/system/priv-app/LGAlarmClock.odex
/system/priv-app/LGClockWidget.apk
/system/priv-app/LGClockWidget.odex
/data/data/com.sika524.android.quickshortcut/cache/thumbnails/com.lge.clock:2130837606.0
/data/data/com.sika524.android.quickshortcut/cache/thumbnails/com.lge.appwidget.clock:2130837534.0
/data/dalvik-cache/[email protected]@[email protected]
/data/dalvik-cache/[email protected]@[email protected]
/data/resource-cache/[email protected]@[email protected]@[email protected]
The first file on the list was a problem because the Samsung doesn't have a '/system/cust' directory, much less '/system/cust/overlay/app.' However, it does have a '/system/app,' which is chockablock with apk files, so I stuck the file 'com.lge.clock.apk' in there.
All the others had a matching directory structure, except the shortcut thumbnail caches, which I gather were the result of the shortcuts I made on the LG phone and not required for the Samsung anyway. So I moved them to a corresponding location on the Samsung and gave them all 644 permissions, same as they were on the source phone, and same as all the other files in the same directories on the target phone.
After copying the files over and rebooting, the new app shows up in the App Drawer, and in the installed apps. Some of the functions work. The Stopwatch works. The Timer function runs but when it counts down to zero, the alarm doesn't sound and it displays the error, "Unfortunately, Alarm/Clock has stopped." If I access the Timer settings and try to change the volume, I get "Unfortunately, Alarm/Clock has stopped." If I try to change the time setting in Alarms, I get that same error. Also the same error if I try to add a city under World Clock. It's like it lacks the ability to activate the alarm tone, or to manage whichever file that stores its configuration settings.
Since the only real "wild card" in my set-up was the lack of the proper directory structure for the 'com.lge.clock.apk' file, I created a matching structure (where none existed before) with a symlink in '/system/cust/overlay/app' pointing back to /system/app/com.lge.clock.apk. That didn't work either so I deleted the link and replaced it with a copy of the file.
Still nothing changed so I gave all the new files 777 permissions, just in case there was a permissions thing I was overlooking. Zip, zilch, nada, bupkis.
So I'm outta bullets. Anybody got a spare magazine? Is it even possible?
did you ever figure this out?
DrWu said:
Does anyone with experience on the subject know whether it is possible (or im-possible) to install LG's OE Alarm/Clock app on a Samsung phone? The donor phone is an LG Optimus Fuel LGL34C on KitKat 4.4.2. The recipient phone is a Samsung Galaxy Core Prime S820L (Tracphone) on KitKat 4.4.4 and I am loathe to leave behind the stopwatch/timer function (Alarm/Clock) on my old LG. I want to transfer it over but I'm finding that's that's easier said than done.
I have found a number of websites offering a pre-packaged version that's supposed to be that app (LGAlarmClock.apk, or something close to it) sourced from a package of OE LGE apps. Unfortunately, I can't find one that will install. When I tried to install them, most of them failed from the get-go saying there was a problem parsing the file. One of them attempted to run, appeared to run normally but ended with "App not installed," existing package yadda yadda yadda. But I note that they were all of substantially different file sizes and I can't be sure any of them were for KitKat (but I know at least one was sourced from Lollipop).
So when these all failed, next I tried the App Transfer app, which is supposed to compile an installable apk from the files currently on the source phone. But when I tried to install it on the target phone, it did the "App not installed" thing again.
Then I tried a couple of PC-based data and application transference applications. One of them transferred everything except the proprietary LGE stuff, which it ignored, to include Alarm/Clock.
After than I decided to take a shot at installing it manually, so I searched the source phone for all instances of what appeared to be related files. This is what I arrived at:
/system/cust/overlay/app/com.lge.clock.apk
/system/lib/liblgomx_clock.so
/system/priv-app/LGAlarmClock.apk
/system/priv-app/LGAlarmClock.odex
/system/priv-app/LGClockWidget.apk
/system/priv-app/LGClockWidget.odex
/data/data/com.sika524.android.quickshortcut/cache/thumbnails/com.lge.clock:2130837606.0
/data/data/com.sika524.android.quickshortcut/cache/thumbnails/com.lge.appwidget.clock:2130837534.0
/data/dalvik-cache/[email protected]@[email protected]
/data/dalvik-cache/[email protected]@[email protected]
/data/resource-cache/[email protected]@[email protected]@[email protected]
The first file on the list was a problem because the Samsung doesn't have a '/system/cust' directory, much less '/system/cust/overlay/app.' However, it does have a '/system/app,' which is chockablock with apk files, so I stuck the file 'com.lge.clock.apk' in there.
All the others had a matching directory structure, except the shortcut thumbnail caches, which I gather were the result of the shortcuts I made on the LG phone and not required for the Samsung anyway. So I moved them to a corresponding location on the Samsung and gave them all 644 permissions, same as they were on the source phone, and same as all the other files in the same directories on the target phone.
After copying the files over and rebooting, the new app shows up in the App Drawer, and in the installed apps. Some of the functions work. The Stopwatch works. The Timer function runs but when it counts down to zero, the alarm doesn't sound and it displays the error, "Unfortunately, Alarm/Clock has stopped." If I access the Timer settings and try to change the volume, I get "Unfortunately, Alarm/Clock has stopped." If I try to change the time setting in Alarms, I get that same error. Also the same error if I try to add a city under World Clock. It's like it lacks the ability to activate the alarm tone, or to manage whichever file that stores its configuration settings.
Since the only real "wild card" in my set-up was the lack of the proper directory structure for the 'com.lge.clock.apk' file, I created a matching structure (where none existed before) with a symlink in '/system/cust/overlay/app' pointing back to /system/app/com.lge.clock.apk. That didn't work either so I deleted the link and replaced it with a copy of the file.
Still nothing changed so I gave all the new files 777 permissions, just in case there was a permissions thing I was overlooking. Zip, zilch, nada, bupkis.
So I'm outta bullets. Anybody got a spare magazine? Is it even possible?
Click to expand...
Click to collapse
probably not supposed to say this out loud but yolo i wanna give a Beretta a blow job
>>be rooted
>>have latest Lucky Patcher
>rebuild apk componants ,permissions, and resighn
>>have xposed installed
>>get module APP SETTINGS
>>edit build.prop for debug_true flag and others like test-keys making all apps debugable*dont quote me
>>>force install or side load or dont
>>>debug app changing all resorces names to your host device
>>>build an entire rom around this one clock app to make it work for some reason..
whats up with this app anyways? whys it imperative you use it?
₥ike_grips said:
probably not supposed to say this out loud but yolo i wanna give a Beretta a blow job
>>be rooted
>>have latest Lucky Patcher
>rebuild apk componants ,permissions, and resighn
>>have xposed installed
>>get module APP SETTINGS
>>edit build.prop for debug_true flag and others like test-keys making all apps debugable*dont quote me
>>>force install or side load or dont
>>>debug app changing all resorces names to your host device
>>>build an entire rom around this one clock app to make it work for some reason..
whats up with this app anyways? whys it imperative you use it?
Click to expand...
Click to collapse
This is a very very important App to this day.
Here it is 2021 it's very imperitive. For one reason.
It has a PUZZLE option for the Alarm that forces you to complete in order to turn off the Alarm
So that I will ACTUALLY wake up on time and not be late for work.
And I wanna know if this has been solved or if the above mentioned is the only pain in the ass way to do it.
.I wanna put it on my Motorola
YOLO !

Android x86 "Developer Options are not available for this user"

How do I fix this? I get "Developer Options are not available for this user" upon entering Developer Options. I can't access pull down menu and recents view.
I have access via debugging and root but don't want to reflash entire system. I suspect it's a bad configured profile, maybe I could create another Owner profile and delete the corrupted one??
I forgot to mention I can't install any apks either.
I believe it is something having to do with android startup wizard but it doesn't seem to exist on my ROM.
While I can't help with your issue having no experience in that department myself, I can clean the thread for you, OP.
Sorry I can't do more.

How to remove or change "POCOPHONEF1-" prefix in device name?

Hi,
I recently rooted this device for purpose of changing MAC address and removing the "POCOPHONEF1-" prefix in device name. I managed to change the MAC but I can't seem to find a solution for other problem. I tried editing build.prop, it didn't work.. I also installed root essentials and edited "Device Hostname" (which shows the exact thing that I want to change) it would then automatically reboot, but when I check back in root essentials, the Device Hostname is reverted to the default. Changing "Device Name" in Settings->About Phone still doesn't remove the prefix. Any suggestions?
Have you tried this?
https://www.google.com/amp/s/m.wikihow.tech/Change-the-Name-of-Your-Android-Phone?amp=1
Also try to check this thread
https://forum.xda-developers.com/pixel-2/help/how-to-change-device-t3742117/page2
mecoromeo said:
Have you tried this?
https://www.google.com/amp/s/m.wikihow.tech/Change-the-Name-of-Your-Android-Phone?amp=1
Also try to check this thread
https://forum.xda-developers.com/pixel-2/help/how-to-change-device-t3742117/page2
Click to expand...
Click to collapse
Yes, I tried both of them. net.devicename doesn't do anything for me. As for the second one, it only changes the name after the hypen (POCOPHONEF1-devicename) . What I want to get rid of is the POCOPHONEF1 before the hypen.
Hi. Any solution found for this? I also want to do same thing with my Xiaomi phone.
EDIT:
LOL. I forgot I already resolved this in the past. U can use the following apk for that: https://play.google.com/store/apps/details?id=com.bigos.hostnamechanger
Works with my phone, MIUI 11.

Categories

Resources