[Q] problems replacing hosts file - Fascinate Q&A, Help & Troubleshooting

I've installed CM11 and I'm having a problem replacing the hosts file. I can delete the file that's in there. But if I try to copy another version into the directory /system/etc it either fails outright or only copies the first 8.0KB of the file.
I get this problem using ES File Explorer and File Manager (the built in app with cm11). I haven't tried to push it using adb yet.
If I try to edit the file that's 8k long and I add just one character and try to save it, I get a message that there is "No enough space" (yes, it says that exactly).
settings tells me that there is 361MB free on internal storage.
Anyone know why this is happening?
Thanks

@electric bill
Have you mounted the system as rw 1st?
{
"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"
}

hhp_211 said:
@electric bill
Have you mounted the system as rw 1st?
View attachment 2641422
View attachment 2641423
Click to expand...
Click to collapse
I did. I wouldn't be able to delete the file otherwise. Also of note, I edited the file mkshrc which is also in /system/etc. I added two characters to that file and it saved fine.

electric bill said:
I did. I wouldn't be able to delete the file otherwise. Also of note, I edited the file mkshrc which is also in /system/etc. I added two characters to that file and it saved fine.
Click to expand...
Click to collapse
No offense, i figured you had , but i still felt like i should ask... We all can be forgetful sometimes
That's definitely weird,, I'll keep my thinking cap on...

none taken. I've been guilty of missing the obvious....

electric bill said:
none taken. I've been guilty of missing the obvious....
Click to expand...
Click to collapse
Find a system app to sacrificially delete and try again?

hhp_211 said:
Find a system app to sacrificially delete and try again?
Click to expand...
Click to collapse
well now you're on to something! I moved /system/app/Magazines.apk to the sd card. that file (whatever it is) was 6.61MB. And guess what? when I tried to copy hosts into /system/etc it copied exactly 6.61MB of the file and then stopped.
Now why would /system be full?

why didn't you try AdAway to replace the hosts file?

electric bill said:
well now you're on to something! I moved /system/app/Magazines.apk to the sd card. that file (whatever it is) was 6.61MB. And guess what? when I tried to copy hosts into /system/etc it copied exactly 6.61MB of the file and then stopped.
Now why would /system be full?
Click to expand...
Click to collapse
It's part of the Google gapps bloat...
I know some of those full gapps packages have some enough to fill up system,,, and the pa_gapps runs scripts to determine if certain packages offer enough space to install,,,
Now as to the why it's not reporting properly is beyond me...
---------- Post added at 10:10 PM ---------- Previous post was at 09:45 PM ----------
skepticmisfit said:
why didn't you try AdAway to replace the hosts file?
Click to expand...
Click to collapse
In an odd and probably unrelated post about issues with adaway,,, i found out it has issues with 4.4 kitkat ROMs,,,
I found that when searching for a specific process and uid # causing full cpu usage and system hang in a ROM i was testing,,,
d4rken in the github adaway thread built a version that fixes the issue
Which can be read about and downloaded here::
https://github.com/dschuermann/ad-away/issues/492
.

skepticmisfit said:
why didn't you try AdAway to replace the hosts file?
Click to expand...
Click to collapse
I'm guessing it would have had the same problem.

I think I did install the full version of gapps. I wonder if there's a list of the packages with a description so I could go through and axe the ones I don't need?

electric bill said:
I think I did install the full version of gapps. I wonder if there's a list of the packages with a description so I could go through and axe the ones I don't need?
Click to expand...
Click to collapse
[GAPPS][4.4.x/4.3.x] OFFICIAL 0-Day PA-GOOGLE APPS (All ROM's)
http://forum.xda-developers.com/showthread.php?t=2397942
.

Related

[REQUEST] Sense Navbar.. (might be one for you, Cryshop?)

Saw this Thread under the Desire forum..
I really like the way the Navbar is made on this rom..
I myself do not have the graphic-skille to make something like this, so hopefully someone else have??
http://forum.xda-developers.com/showthread.php?t=729172
lol, ok, I did a quick job by pulling graphic files from mytouch 3g slide sense. Just download the zip, unzip it, then replace these files with ones in com.htc.resources.apk/res/drawable-port-mdpi
Drawable-port-mdpi
I'm not sure how it's look, maybe you could post a screenshot
Yep, as it turns out, you don't even have to bother resizing some images... as it is with battery, navbar, lockscreen...system just resizes them automatically...
of course it's a good Idea to conserve space...
use adw launcher and search for espresso theme in market
cryshop said:
lol, ok, I did a quick job by pulling graphic files from mytouch 3g slide sense. Just download the zip, unzip it, then replace these files with ones in com.htc.resources.apk/res/drawable-port-mdpi
Drawable-port-mdpi
I'm not sure how it's look, maybe you could post a screenshot
Click to expand...
Click to collapse
Just tried to replace the files in the original .apk - putting it all in a zip-file (not signed since I'm on S-OFF) but it just brings me to bootloop
I'm not entirely sure, but I think running apk's still have to be signed...correct me If I'm wrong...
Dr.Romca said:
I'm not entirely sure, but I think running apk's still have to be signed...correct me If I'm wrong...
Click to expand...
Click to collapse
I've never signed framework apk files. What I did is :
1. Open apk file with winrar, leave it.
2. Open folder window that includes necessary files.
3. Drag and drop file from (2) to (1) for replacing or something else.
4. Push apk files back to /system/framework/
Benefits:
- No need to extract apk files.
- No need to re-zip.
- No need to sign.
cryshop said:
I've never signed framework apk files. What I did is :
1. Open apk file with winrar, leave it.
2. Open folder window that includes necessary files.
3. Drag and drop file from (2) to (1) for replacing or something else.
4. Push apk files back to /system/framework/
Benefits:
- No need to extract apk files.
- No need to re-zip.
- No need to sign.
Click to expand...
Click to collapse
That's what I did.. (Used TotalCommander instead) ..
EDIT: Now trying using WinRAR
Now it worked.. Only "bug" is now, that the indicator of which homescreen used is still a "bow"... Is there any way to either get rid of that or to edit it..?
{
"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"
}
Now it worked.. Only "bug" is now, that the indicator of which homescreen used is still a "bow"... Is there any way to either get rid of that or to edit it..?
Click to expand...
Click to collapse
Oops!
These pngs go to /system/app/Rosie.apk/res/drawable-mdpi/
cryshop said:
Oops!
These pngs go to /system/app/Rosie.apk/res/drawable-mdpi/
Click to expand...
Click to collapse
Hehe... I'll look into that
Used NinjaMorph to replace the files (Thanx to S-OFF) and NOW it looks nice ;D

[Sense][BatteryMOD]STOCK SENSE BAR WITH NO PERCENTAGE.

This is just a stock sense battery w/o the percentage. I only made this cause I worry about my phone battery A LOT and battery percentage makes it worse for me and I wondered if other people felt the same, so I'm sharing it here. It's really not much so don't criticize or talk crap about it. Just for those iffy people who HATE battery percentages. Enjoy!
Installation Process
- Unzip files into a folder called battery.
- Go into cmd enter " cd C:\AndroidSDK\tools "
- Then enter " adb pull /system/framework/framework-res.apk "
- Open the .apk file w/winRAR
- Go to res>drawable-hdpi
- Drag contents from the "Battery Folder" into drawable-hdpi
- Now, put framework-res.apk into SDK tools folder and " adb push framework-res.apk /system/framework "
- Enjoy
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I tried it on fusion 1.18 and it deleted all my accounts and wouldn't let me resync them...is this only compatible with sense 2.1?
kirkcody said:
I tried it on fusion 1.18 and it deleted all my accounts and wouldn't let me resync them...is this only compatible with sense 2.1?
Click to expand...
Click to collapse
O.O weird... I'm running the same and mines fine. Let me check real quick..
Thanks I'd really appreciate it, I feel the same way about battery percentages...yeah I used root explorer moved the apk to...wait I think I just moved it to system/framework...and didn't follow the rest ill try it again....sorry please repost zip
kirkcody said:
Thanks I'd really appreciate it, I feel the same way about battery percentages...yeah I used root explorer moved the apk to...wait I think I just moved it to system/framework...and didn't follow the rest ill try it again....sorry please repost zip
Click to expand...
Click to collapse
lol. just extract those .png files INTO A FOLDER.(Very Important) then move them to /system/framework/drawable-hdpi/ and reboot. =)
I found it but root explorer won't allow me to access the framework-res.apk...it won't allow me to paste them there, only options available for the framework apk are install,view and cancel when pressed.
kirkcody said:
I found it but root explorer won't allow me to access the framework-res.apk...it won't allow me to paste them there, only options available for the framework apk are install,view and cancel when pressed.
Click to expand...
Click to collapse
Same with me
Sent from my HTC Glacier using XDA Premium App
kirkcody said:
I found it but root explorer won't allow me to access the framework-res.apk...it won't allow me to paste them there, only options available for the framework apk are install,view and cancel when pressed.
Click to expand...
Click to collapse
I will post a new method. lol. darn. too many fails..
kirkcody said:
I tried it on fusion 1.18 and it deleted all my accounts and wouldn't let me resync them...is this only compatible with sense 2.1?
Click to expand...
Click to collapse
just restart and itll be fine
kinnyswaggg said:
I will post a new method. lol. darn. too many fails..
Click to expand...
Click to collapse
Uh need to unzip it and do that thats why
Sent from my WhiteHTCMyTouch4G using XDA Premium App

[PORT/MOD] SmartActions app Port 12/13/12 v0.2.4

The very first Smart Actions Port v0.1.2(12/13/12)
Ported from Droid Razr MAXX VRZ_XT912_6.7.2-180_DHD-16_M4-31_1FF
Requires ICS
Has not been tested on JB. (Should work)
All rooted devices should work.
Miui doesn't seem to work, you can try it
{
"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"
}
Install:
1. Download Here
2. Do a nandroid backup
3. Extract and run bat file in windows
4. Enjoy
Alternate method:
1. Open command prompt
2. Do a Nandroid backup
3. Extract zip
4. In Command Prompt explore to adb location and type:
Code:
adb remount
5. Then:
Code:
adb push [drag and drop system folder from extraction location] /system
ex.: adb push C:\Users\Joe-Acer\Desktop\SmartActions\bin\system /system
6. Reboot
Code:
adb reboot
Do not update from market, WILL BREAK IT
Known Bugs, Not working:
1. Location conditions
Code:
Change log:
v0.1.0:
Initial Release
v0.2.3
Released to Public
v0.2.4:
Fixed wallpaper (Only limited to RAZR wallpapers)
Added:
homescreen
LiveWallpapers.apk
MagicSmokeWallpapers.apk
NetworkLocation.apk
SocialShare.apk (not tested, more like public test)
How to use SmartActions:
PM me questions
If you want to integrate this into your rom be sure to PM and credit me.
Hmm what's this?
(First...)
from my E3D
tatnai said:
Hmm what's this?
(First...)
from my E3D
Click to expand...
Click to collapse
Heard of tasker, like that but more reliable, in my opinion anyway
How do I install this from my phone...
donbudafuko said:
How do I install this from my phone...
Click to expand...
Click to collapse
copy the files from bin/system to /system... need a root file explorer to copy the files... then reboot
Would it be possible to get some screenies?
Sent from my PG86100 using Tapatalk 2
Many people don't understand this.
Would be great if you do a "How To" w/Review video.
That would be great.
Looks very interesting thanks for this
Sent from my PG86100 using Tapatalk 2
joekp said:
copy the files from bin/system to /system... need a root file explorer to copy the files... then reboot
Click to expand...
Click to collapse
What root explorer do you use? I tried Astro and it did not let me write the files to the directories, gave me errors every time, and when I tried individually it said could not write also.... Going to look for another root explorer
Redneckhightech said:
What root explorer do you use? I tried Astro and it did not let me write the files to the directories, gave me errors every time, and when I tried individually it said could not write also.... Going to look for another root explorer
Click to expand...
Click to collapse
Esfilexplorer and go to settings and check all three checkmarks under root
joekp said:
Esfilexplorer and go to settings and check all three checkmarks under root
Click to expand...
Click to collapse
You may need to make sure that the permissions are set right. ES will change them. Just long press the files, go to properties, then change the permissions.
So we copy each of the files in the /system directory of the smartactions folders into their respective folders in the phones /system?
for instance there is a folder for the app, all of those files go into the /system/app folder of our phones?? etc...
Roxxas049 said:
So we copy each of the files in the /system directory of the smartactions folders into their respective folders in the phones /system?
for instance there is a folder for the app, all of those files go into the /system/app folder of our phones?? etc...
Click to expand...
Click to collapse
Yes
As soon as I set up a rule it force closes, and then continues to do so each time. I'm using a standard PA JB rom.
Roxxas049 said:
As soon as I set up a rule it force closes, and then continues to do so each time. I'm using a standard PA JB rom.
Click to expand...
Click to collapse
OP clearly states "requires ICS".
ZWYATT said:
OP clearly states "requires ICS".
Click to expand...
Click to collapse
To be fair, it also says "Has not been tested on JB. (Should work)".
ramjet73
ZWYATT said:
OP clearly states "requires ICS".
Click to expand...
Click to collapse
Check the play store for update
Roxxas049 said:
As soon as I set up a rule it force closes, and then continues to do so each time. I'm using a standard PA JB rom.
Click to expand...
Click to collapse
Check the play store for update might fix it
Update worked for me... No fc so far
there is another app in the play store that basically operates the same way. https://play.google.com/store/apps/details?id=AutomateIt.mainPackage&feature=search_result#?t=W251bGwsMSwxLDEsIkF1dG9tYXRlSXQubWFpblBhY2thZ2UiXQ.. its called automateit. Good job with the port.

I cannot uninstall system apps even after I ROOTED my android phone

Hi everyone
I managed to root my android phone yesterday (I checked with 2 root-checker apps). Now I'm having trouble removing pre-installed apps like Twitter and Yellow Pages which I never use. I tried few uninstall apps, and after granting them permission from SuperUS, they perform an uninstall (some apps do it forcefully) and give a message that the apps were deleted. The apps are not removed from my application list but when I click on it to run, they give an error message. But when I restart my phone, those apps I deleted start working again as if nothing happened.
What I'm I doing wrong? My phone is HTC One M8, android.
Thank you for any help
Did you unlock your bootloader?
Sent from my XT1528 using XDA Free mobile app
nobreak1970 said:
Did you unlock your bootloader?
Sent from my XT1528 using XDA Free mobile app
Click to expand...
Click to collapse
Yes, I did that before I rooted it.
I also tried using a File Explorer (rooted version) to uninstall those system app but couldn't find System files. I found a file called Root, but nothing is in the file.
Try app master
android-incredible said:
Try app master
Click to expand...
Click to collapse
I just tried it now but same problem. I select twitter to delete. It gives me a message that uninstall was successful. I check to see if it's listed on my home page, and it is although when I click on it, it gives an error message. However after restarting the phone, twitter somehow recovers and works again!!! Really strange. It's as if it wasn't uninstalled to begin with.
Does anyone know? I still can't solve it
Moon light said:
Does anyone know? I still can't solve it
Click to expand...
Click to collapse
Using Root Explorer, please show me what resides in the System/App folder.
#WhiteUIsMustDie, #EndDarkAppOppression
micmars said:
Using Root Explorer, please show me what resides in the System/App folder.
#WhiteUIsMustDie, #EndDarkAppOppression
Click to expand...
Click to collapse
I don't have a System or App folder folder!!! I don't know why that is. I've captured 2 images to show you:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I don't know why the images are not showing. Here are the links:
http://pasteboard.co/L8o1aCW.png
http://pasteboard.co/L8vqzIS.png
You need to remove read / write protection. You can do this most easily by flashing a modded kernel (boot.img) through fastboot. Alternatively, there's custom roms that have this already or you can mod a kernel module. There's a guide in the General section of your phone's forum. If you go that route, make sure that the module is compatible with the update you're on as the guide might be outdated.
es0tericcha0s said:
You need to remove read / write protection. You can do this most easily by flashing a modded kernel (boot.img) through fastboot. Alternatively, there's custom roms that have this already or you can mod a kernel module. There's a guide in the General section of your phone's forum. If you go that route, make sure that the module is compatible with the update you're on as the guide might be outdated.
Click to expand...
Click to collapse
Okay, I'll look into that as soon as I get a chance and I'll update the post. I hope it helps.

NoStorageRestrict (A11+)

{
"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"
}
This module removes the restriction when selecting folders (Downloads/Android) through the file manager on Android 11 and higher (also available as a Magisk module through Fox Module Manager)
2.0 Update
* Enabled Managed Mode on the DocumentsUI (make sure to apply the module to the Files/Documents app)
* This change allows selecting /data and /obb folders on the Android folder (where as before they were hidden)
### Note
The signature has changed on this version so you'll have to uninstall the previous version before updating
- [GitHub](https://github.com/Xposed-Modules-Repo/com.github.dan.nostoragerestrict)
- [Telegram](https://t.me/dnmgsk)
This works brilliantly - better than the Magisk module! Thank you!
Hey, thanks for this, first time poster here, tried installing this on my Xperia xz2c (lineage-19.1-20221111) but couldn't get it to work, folders remain inaccessible when trying to move files... Any way you could share a .zip of this to install via Magisk?
Gabieler said:
Hey, thanks for this, first time poster here, tried installing this on my Xperia xz2c (lineage-19.1-20221111) but couldn't get it to work, folders remain inaccessible when trying to move files... Any way you could share a .zip of this to install via Magisk?
Click to expand...
Click to collapse
Could you show a screenshot of that?
Thanks for getting back to me. Sure thing, here goes:
As you can see, the "data" folder and the "obb" folder are missing. By the way, the first time I tried to move stuff, immediately after installing the app, those folders were actually visible as intended, but once I quit the moving process and tried a second time (and from that moment on) this is what I get
Gabieler said:
Thanks for getting back to me. Sure thing, here goes:
View attachment 5759967
View attachment 5759971
As you can see, the "data" folder and the "obb" folder are missing. By the way, the first time I tried to move stuff, immediately after installing the app, those folders were actually visible as intended, but once I quit the moving process and tried a second time (and from that moment on) this is what I get
Click to expand...
Click to collapse
Oh, that's a different restriction (imposed by a different app)
My module is mainly to allow granting access to folders (downloads/Android) where it would normally tell you to create a new folder and not allow you to select that folder
The data/obb folders being hidden is a different thing
You could try this zip, tho it's a bit sloppily made, so i can't guarantee it'll work
DanGLES3 said:
Oh, that's a different restriction (imposed by a different app)
My module is mainly to allow granting access to folders (downloads/Android) where it would normally tell you to create a new folder and not allow you to select that folder
The data/obb folders being hidden is a different thing
You could try this zip, tho it's a bit sloppily made, so i can't guarantee it'll work
Click to expand...
Click to collapse
Ah I see. Makes sense. Thanks for the .zip, I'll test it out later!
The apk, in my redmi note 7 with cr droid android 12, doesn't work.
In my Samsung galaxy note 9 usino noble rom 2.8 oneui 4.1 Android 12 it work Great i have Access to media stored by all the app i have using xplore
DOOGEE S80 Android 11 LiR .... I have always used CX File explorer and it worked once I uninstalled\reinstalled it.....worked great, thanks for this.
2.0 Update released
* Enabled Managed Mode on the DocumentsUI (make sure to apply the module to the Files/Documents app)
This change allows selecting /data and /obb folders on the Android folder (where as before they were hidden)
Note
The signature has changed on this version so you'll have to uninstall the previous version before updating

Categories

Resources