[Q] Fix DNS Facebook, we need an developer to help - Android Software Development

Hi everybody.
I'm come from Vietnam, where the Facebook is now banned.
We need someone to write a program to update the host file in /system/etc/ by just a touch.
Please copy the IP from http://armabloggin.com/2009/07/facebook-dns-block-fix/
to the host file (like AdFree program).
We cannot edit this file by Astro because it read-only. We don't know how to S-OFF our Android.
Thank you so much.

I thought that AdFree is for rooted phones only.

Here's the host file
I've modified the host file for you but I don't think you can get much further until you root your phone, giving yourself access to system/etc/ where the "hosts" file is for replacement.
Remove the .txt extension and replace it with your hosts file in /system/etc/ after rooting.
If your phone cannot be rooted at http://unrevoked.com/ have a look on the sub forum here for your phone.

As previously stated, changing any system file is impossible without root.
Why can't you use a one-click-rooting program? There are plenty around that work for quite a lot of phones. If that doesn't work there will be device specific guides available, unless it's a phone that can't be rooted (is there any?).

Sorry, I've already root the HTC Desire by Unrevoked.com and have RA-recovery.
I mean that I don't have S-OFF in my device.
I also used Astro to copy the host file to SD Card and edited it. But I cannot replace the host file to system/etc/.
So I need you help write a mini-soft like AdFree.

Have you tried using adb to push the hosts file (in recovery) or root explorer? No need to S-OFF.

I think a soft will easy to use for everyone, don't need experiment in adb, root or s-off.
Anyone developer can make it easy?
Sent from my HTC Desire using Tapatalk

I think the problem is that you didn't mounted the system partition. Try ES FileExplorer, it can work as root and can mount partitions
Sent from my GT-I5700 using XDA Premium App

Hi,I am vietnamese too,if you can't root your phone you can follow the full instruction on tinhte.vn forum.

I whipped this up for you.
It doesn't look great but it does the job. Put the 'hosts' file on your sdcard (not in any folder) that you want to move and rename it 'hosts.txt'. Then run the app and press the button. You'll probably need to reboot afterwards.
Enjoy.
This doesn't back up the hosts file on your phone so you may want to do that manually.
[YOU NEED ROOT ACCESS]

Thank you so much.
Meltus said:
I whipped this up for you.
It doesn't look great but it does the job. Put the 'hosts' file on your sdcard (not in any folder) that you want to move and rename it 'hosts.txt'. Then run the app and press the button. You'll probably need to reboot afterwards.
Enjoy.
This doesn't back up the hosts file on your phone so you may want to do that manually.
[YOU NEED ROOT ACCESS]
Click to expand...
Click to collapse
Dear Meltus,
Firstly, I thank you very much to write this apk for me. You're so kind.
But it's maybe something wrong!
I install your apk, put the hosts.txt in SDCard (in the root, not in any folder).
Then run the app and press the button, reboot afterwards.
I used Astro to view the hosts file. But this file is error. It has 0 byte and can be read.
Please fix it. Thank you so much, again.
P/S: Maybe you make an options to chose folder of hosts file.
Further, you can develop this apk to change any file of system by chose the source and destiny paths.

Related

[Q] Replacing build.prop?

hi!
in order to test something, i need to replace the build.prop in root/system with a modified one. but trying to delete this file with astro manager displays an error message, and just copying the modified build.prop over the old one doesn't work too (nothing happens).
so my question is: how do you replace such a file?
thanks in advance for your help
are you serious!?!?!?
If the build.prop is located on the Android folder IT HAS TO BE A SYSTEM FILE !!!
if you mod the system files you could break android or the system just won't let you do it, you will need R and W privileges to do that.
edit the system files from your PC or just boot up in to windows mobile.
use some common scene next time.
hope it helps!
Sent from my HTC HD2 using XDA App
Do you use a cyanogen build?
yes and there is already a cyanogen rom posted with the proper build.prop fixed, so you won't have to edit anything, just search for it.
Sent from my HTC HD2 using XDA App
mmmh actually cyanogen made things easy to replace a system file, just copy your file into sdcard/android/root/system and reboot.
thanks for your help / posts. but unfortunately they're not helpful.
yes, i am serious! and yes, of course it's a system file. i know as well that modification might brick android.
there are reasons for modifying this file. some people seem to be able to, e.g. for chaning screen point density or modify the data passthrough.
so, please tell me, how can i edit/modify a system file from pc or windows mobile when its within the data.img-file?
thanks for any tips / hints on this.
use root explorer
Sichroteph said:
mmmh actually cyanogen made things easy to replace a system file, just copy your file into sdcard/android/root/system and reboot.
Click to expand...
Click to collapse
Thank you VERY much for your help - I finally got it to work by listening your instructions. It is simply different if you have HD2 and plus CM mod. That figures why it was going back all the time to 180 instead of changing it - because it runs from sd card and that's where it needs to be replaced as well ...
Droid Explorer

Editing system files in Android

I have to do all editing from my phone, no laptop anymore. Any suggestions on a great app to edit system files, and something to repackage apks?
RIP Cotton Eye Jim
/b/rotherJudas said:
I have to do all editing from my phone, no laptop anymore. Any suggestions on a great app to edit system files, and something to repackage apks?
RIP Cotton Eye Jim
Click to expand...
Click to collapse
Root Explorers My Favorite,
But ES Explorer Is Pretty Good Also,
And That Ones Free!!
Sent from my HERO200 using XDA App
I've been using root explorer, but a lot of files show up as nonsense and symbols.
RIP Cotton Eye Jim
Any other suggestions guys?
/b/rotherJudas said:
Any other suggestions guys?
Click to expand...
Click to collapse
Try NinjaMorph!!
Sent from my HERO200 using XDA App
if you are okay with shell interface, Terminal Emulator is what I would recommend.
sorry guys, I'm trying to overwrite this file
\system\media\audio\notifications\22_on_time.ogg
but ES explorer say it cannot do it. I chose properties and see that the file is read only.
How can I do it ??
Ser
ginosergio said:
sorry guys, I'm trying to overwrite this file
\system\media\audio\notifications\22_on_time.ogg
but ES explorer say it cannot do it. I chose properties and see that the file is read only.
How can I do it ??
Ser
Click to expand...
Click to collapse
Are you rooted? If not, you cannot do it, because you need root access to do changes in /system directory. If, you can do it with e.g. one of the following apps:
Root explorer (paid)
Super Manager (free)
File Expert (free)
After starting, you need to mount (switch) r/w. Additionally, in both free apps, you need to enable root option in their settings before. Now can you can overwrite.
Yessss !! it works (yes, I'm rooted)
Thank you, MatDrOiD ! I used File Expert. Just 2 questions:
in file expert, when i go into options - mount - and choose "read and write" should I be already positioned browsing the "system" folder ??
I've done this way, but I suspect that "mount read and write" is a global option referring to system folders and can be enabled just when entering File expert ?
ginosergio said:
Yessss !! it works (yes, I'm rooted)
Thank you, MatDrOiD ! I used File Expert. Just 2 questions:
in file expert, when i go into options - mount - and choose "read and write" should I be already positioned browsing the "system" folder ??
I've done this way, but I suspect that "mount read and write" is a global option referring to system folders and can be enabled just when entering File expert ?
Click to expand...
Click to collapse
Only System files have to be Mounted as Read/Write to Edit them, other than that they can't be Modified!
*Sent on My*
Fast as its Ever Been....
"Sprint" Hero.... Running My, *ExEnHeroC* Rom, w/Kifno's Twist, Also The XDA-BLUE.apk!! "Page 10" of My Thread!!
http://forum.xda-developers.com/showthread.php?t=957867
http://www.megaupload.com/?d=WTMLMK6M
http://www.mediafire.com/?bb1axugm0bw7oro
http://m.youtube.com/index?desktop_uri=/&gl=US#/profile?user=PMGRANDS
ginosergio said:
Yessss !! it works (yes, I'm rooted)
Thank you, MatDrOiD ! I used File Expert. Just 2 questions:
in file expert, when i go into options - mount - and choose "read and write" should I be already positioned browsing the "system" folder ??
I've done this way, but I suspect that "mount read and write" is a global option referring to system folders and can be enabled just when entering File expert ?
Click to expand...
Click to collapse
I don't like to say it, but pressing thanks-button would be awesome!
You can also mount r/w while in root folder, does not matter. After closing file expert, you always have to enable root explorer function and mounting r/w again, when you start file expert the next time. At least i cannot find an option to enable it permantly. Which is understandable for me, because superuser rights can damage your phone (so this enable action works metaphorically as a little warning, imho).
Hi, I have a rooted an android tablet (Chuwi Hi12) and find the lowest brightness way too bright. Now I found the settings of brightness and want to lower the settings but the system won't save the file with the new settings. What am I doing wrong? Please help. Many thanks.
Jeanpierre
thanks
i think
/b/rotherJudas said:
I have to do all editing from my phone, no laptop anymore. Any suggestions on a great app to edit system files, and something to repackage apks?
RIP Cotton Eye Jim
Click to expand...
Click to collapse
root browser is the best one!:
I have question. With any root Explorer I can't overwrite ANY file on ANY app. Always pop up something like "can't overwrite" I'm rooted with Magisk, Pocophone F1 MIUI 10.3 by xiaomi.eu 9.1.17 (dev.)
Any solution?

Help with wpa_supplicant and Ad-Hoc Wireless

I am following the instructions as per the below thread to allow my Acer a500 see my Nokia N900 for tethering purposes.
http://forum.xda-developers.com/showthread.php?t=1033314
I have copied the wpa_supplicant file over the one thats already there.
Now when I open the Terminal Emulator to try ADB remount it comes with an error saying device not found.
I have the wifi turned off, I also have Root Explorer, but I found File Manager HD quite handy.
Now after trying the instructions I now dont have wifi - it comes with an error.
I have tried copying the stock wpa_supplicant file across, with no success.
Can someone please help.
to get AD-Hoc working you first need root and either root explorer (paid app but worth the money) or es file explorer (free but you have to enable root privaleges inside the app. its under the settings menu)
1. navigate to system/bin and copy wpa_supplicant
2. past this to your sd card as a backup
3. rename wpa_supplicant to wpa_supplicant.old
4. extract the file from the download and past it into the system/bin folder. (should be wpa_supplicant)
4. Long press on the file once copied
6. select Permissions and set to User: RWE, Group & Others:RE only
This is the easiest way to fix this... make sure in root explorer you set to rw at the top left in order to rename copy or past into this directory..
Good luck
this is the file .
View attachment wpa_supplicant.zip
Thanks for that, your a genius.
Now that my device can see my phone, I cannot see any web pages.
Is there something else I need to do?
That is very odd .. try rebooting the phone and the tablet..
also try on the tablet
go to settings / applications.. go to the web browser.. and clear cache and data..
is only thing i can think of ..
never had a issue other then my cell sometimes get hung on a cell tower and a reboot fixes this.. .
try connecting another wifi device to the phone to determine if its the tablet or phone..
I ended up changing the program I use to tether on my N900 and now works a treat.
Once again, thanks for your help
Thanks erica_renee . Worked right on point !
You are way too much girl....)))
So I guess THAT's why we should be nice to her!
Thsnks guys.
Now bring me my coffeee
erica_renee said:
Thsnks guys.
Now bring me my coffeee
Click to expand...
Click to collapse
I'll bring nothing, but the world
Works on Ideapad K1
Erica_renee, you are awsome!
I followed your instructions and BAM worked first time.
Thanks
You are Very welcome..
But i do want to point out They are not my instructions..Its been so very long ago i dont remember who to give the credit to.. I think someone from the Zoom Forum..
I just remembers how to do it and do not mind sharing what i have learned with anyone...
So i guess i should say thanks to everyone who is actually a developer or close.. for all the hard work they have done to make my tablet enjoyable to use..
erica_renee said:
to get AD-Hoc working you first need root and either root explorer (paid app but worth the money) or es file explorer (free but you have to enable root privaleges inside the app. its under the settings menu)
1. navigate to system/bin and copy wpa_supplicant
2. past this to your sd card as a backup
3. rename wpa_supplicant to wpa_supplicant.old
4. extract the file from the download and past it into the system/bin folder. (should be wpa_supplicant)
4. Long press on the file once copied
6. select Permissions and set to User: RWE, Group & Others:RE only
This is the easiest way to fix this... make sure in root explorer you set to rw at the top left in order to rename copy or past into this directory..
Good luck
Click to expand...
Click to collapse
I clicked the "Thanks" button but this one deserves more than that! Thank you so much GG, you've made my day!
Regards,
Bob
Ahhh!
Thanks.
Now I can use more than my phone while travelling.
erica_renee said:
to get AD-Hoc working you first need root and either root explorer (paid app but worth the money) or es file explorer (free but you have to enable root privaleges inside the app. its under the settings menu)
1. navigate to system/bin and copy wpa_supplicant
2. past this to your sd card as a backup
3. rename wpa_supplicant to wpa_supplicant.old
4. extract the file from the download and past it into the system/bin folder. (should be wpa_supplicant)
4. Long press on the file once copied
6. select Permissions and set to User: RWE, Group & Others:RE only
This is the easiest way to fix this... make sure in root explorer you set to rw at the top left in order to rename copy or past into this directory..
Good luck
Click to expand...
Click to collapse
I downloaded es file explorer and enabled root exploring as well as "Mount File System" (which is supposed to make the system writable) and with or without the mount file system, I cannot find the System file nor bin. I have the Samsung Galaxy Tab 8.9 Wifi Only. It's running Honeycomb 3.2. Any suggestions?
Not my credit
This fix is not from me.. I just re posted something that has been around since our tablet was released.. I would say give that person the credit. I am not sure who actually did it .. I think that file originally came from the ZOOM FORUM.
Anyway Just wanted to make sure that was POINTED OUT.I only know from what i have read for my own personal use.
Thanks All ... Erica Renee
Firecracker_RC said:
I downloaded es file explorer and enabled root exploring as well as "Mount File System" (which is supposed to make the system writable) and with or without the mount file system, I cannot find the System file nor bin. I have the Samsung Galaxy Tab 8.9 Wifi Only. It's running Honeycomb 3.2. Any suggestions?
Click to expand...
Click to collapse
Can anyone help me with this?
check you su. update the su root binaries . make sure busybox is installed and updated..
you can check the last two with root checker . a app on the market..
There iss also somewhere in the settings. that show a mount point . .something like /mnt/sdcard.
this should be just a / in there to have access to the system folder. I dont have es file explorer installed as i did not like it.. but i do remember having to change this defalt mount or folder option.. Astro file manager and some others also have this defalt . You can also keep going back and will take you there ..
Even though Titanium Backup says I have BusyBox, another app I tried to install said I did not and needed to install, so I went to the market to install and BusyBox says I need to perform Nand Unlock before installing BusyBox. Can you point me in the direction for doing that. I have the Galaxy Tab 8.9 Wifi Only. I see alot of stuff out there but not sure if it's right for my tab or if the instructions are universal to android users. How did you do Nand Unlock?

Writing to external SD guide

Not sure if this has been covered already on the 7.7 forum, but it's a very useful guide.
This makes Titanium backup and other apps able to write to the external SD card.
Quoted from Thaloneus post on the 7+ forum.
Simple solution for external sdcard write access on Android 3.2...if you're rooted
I've found a simple solution for gaining write access to the external sdcard (/mnt/sdcard2) on Android 3.2. The sdcard is mounted r/w, but the owning group is media_rw which is linked to the WRITE_MEDIA_STORAGE permission. Unfortunately, this permission was not required for access to the external sdcard prior to 3.2 so most file management utilities do not request it when they run...meaning they only have read access to the card.
The simple solution, if you're rooted, is as follows:
1. Using a root-enabled file manager, navigate to /system/etc/permissions and make sure you have mounted the file system r/w.
2. Edit platform.xml and find the WRITE_EXTERNAL_STORAGE permission.
3. Add an additional group definition for this permission...<group gid="media_rw" />
4. Save the changes to the file.
5. Restart your tablet.
After this change, any apps that request the WRITE_EXTERNAL_STORAGE permission (which includes almost anything that access either of the sdcards) will gain group membership in both sdcard_rw AND media_rw, giving them r/w access to both sdcard filesystems.
Sent from my GT-P6800 using xda premium
Copy or use mine at your own risk
Has anyone else tried this? Don't wanna make a mistake.
Semper Fi!!!
Sent from GT-P6800
Worke flawlessly! Thank you!!!
Semper Fi!!!
Sent from GT-P6800
how did you use it ?
just copy/paste ?
Used root explorer in rw mode, copy & paste to
/etc/permissions/platform.xml
If you're using vauxhallastra's, don't forget to unzip it first.
Semper Fi!!!
Sent from GT-P6800
thx
did copy/paste , but.. i'm still not able to move apps to the external sd card
must forget something
followed the steps, tab is root
must be one of those days :-(
I used root explorer in RW mode. Did you do this as well as unzip the file.
Sent from my Transformer Prime TF201 using xda premium
great!!works flawlessly
Sent from my GT-P6800 using xda premium
OK, so I have done this and all seems to be working. However, someone above mentions moving apps to the card, can someone explain how that should be done?
palexr said:
OK, so I have done this and all seems to be working. However, someone above mentions moving apps to the card, can someone explain how that should be done?
Click to expand...
Click to collapse
This can be done for instance with Titanium Backup. Tested and works.
what app2sd apps that you used? i tried few..but seems not to work either
Sent from my GT-P6800 using xda premium
answer is in mine opinion: not
Some people said that it is possible to move apps to sd card with Titanium Backup.
But when you looked afterwards at the size of your SD card nothing changed.
root enabled file manager?
Hi. I know this may sound stupid but what constitutes a 'root enabled file' manager? I've used the file manager that the 7.7 comes with, Astro, and ES explorer and I can't seem to find /sysem/etc/permissions.
What am I doing wrong?
mrexperience said:
Hi. I know this may sound stupid but what constitutes a 'root enabled file' manager? I've used the file manager that the 7.7 comes with, Astro, and ES explorer and I can't seem to find /sysem/etc/permissions.
What am I doing wrong?
Click to expand...
Click to collapse
The default file manager won't let you browse root, and I've never used Astro, but ES definitely does. You have to check "Root Explorer" (and if you want to make any changes, "Mount File System" as writable) in the options. I also recommend checking "Up to Root" option so you can just use the Up button or Back softkey to go from /sdcard to / (root directory), but in any case the favorites button will give you quick access to the root directory from anywhere.
mrexperience said:
Hi. I know this may sound stupid but what constitutes a 'root enabled file' manager? I've used the file manager that the 7.7 comes with, Astro, and ES explorer and I can't seem to find /sysem/etc/permissions.
What am I doing wrong?
Click to expand...
Click to collapse
root enabled file managers will allow you to browse and edit the system config files which we are doing here. the fact that you cant find /system/etc/permission might be because they are file managers. perhaps the paid version of those apps will allow you root access.
Next question:
Once I copy and paste this bit of code into platform. Xls, how do I ensure that its'saved. I see no option for that and pressing the 'back' button doesn't do the trick.
I also tried to use the link given. This was extracted using my astro file manager. What do I do with this document then? Should i copy and paste it in /systems/etc/permissions/ ?
Sent from my GT-P6800 using Tapatalk
Figured it out. Thanks much.
In using ES explorer, you have to go to PREFERENCES first. Therein tick r/w and root. This will enable you to write on the system files.
I found that the Root explorer app didn't help me cause I couldn't save my copied and pasted amendment. Whereas it was easy to do with ES explorer. Hope this last bit helps anyone who needed spoon feeding like me.
Sent from my GT-P6800 using Tapatalk
is there any way to divert the folder \sdcard\Android\data to \sdcard\extStorages\sdcard\Android\data ... this will save me atleast 9GB in my internal memory and will put my sdcard in full use
vauxhallastra said:
Not sure if this has been covered already on the 7.7 forum, but it's a very useful guide.
This makes Titanium backup and other apps able to write to the external SD card.
Quoted from Thaloneus post on the 7+ forum.
Simple solution for external sdcard write access on Android 3.2...if you're rooted
I've found a simple solution for gaining write access to the external sdcard (/mnt/sdcard2) on Android 3.2. The sdcard is mounted r/w, but the owning group is media_rw which is linked to the WRITE_MEDIA_STORAGE permission. Unfortunately, this permission was not required for access to the external sdcard prior to 3.2 so most file management utilities do not request it when they run...meaning they only have read access to the card.
The simple solution, if you're rooted, is as follows:
1. Using a root-enabled file manager, navigate to /system/etc/permissions and make sure you have mounted the file system r/w.
2. Edit platform.xml and find the WRITE_EXTERNAL_STORAGE permission.
3. Add an additional group definition for this permission...<group gid="media_rw" />
4. Save the changes to the file.
5. Restart your tablet.
After this change, any apps that request the WRITE_EXTERNAL_STORAGE permission (which includes almost anything that access either of the sdcards) will gain group membership in both sdcard_rw AND media_rw, giving them r/w access to both sdcard filesystems.
Sent from my GT-P6800 using xda premium
Click to expand...
Click to collapse
can we use this method I mean the zip file with tab 10.1

[GUIDE] How to easily edit/modify .apk files! (Simple, Noob Friendly)

Hey Guys an' Girls!
Anyway, so when I first learnt how to decompile, modify then recompile .apks I found it was a rather slow process and figured out a far faster way.I searched google and xda many times and couldn't find my method anywhere. So without further ado, let's go through an easy, simple, step by step guide on how to modify .apk files!
Step 1 - Getting the .apk
Firstly, of course, you will need to obtain the .apk file that you want to edit. There are two methods to do this:
a) If you have the recovery flashable zip for the rom you are currently on, simply open it up, navigate to the file you want to edit (in my case system -> app -> settings.apk) and drag the .apk file onto your desktop.
b) Using root browser or a similar app on your device, navigate to the .apk you wish to edit and copy it onto your sdcard. Then connect to your computer and copy the file from your phone to the computer.
Step 2 - Editing/Modifying your .apk
Now is the important part. Install Winrar by clicking the link. http://www.win-rar.com/download.html?&L=0 Then open the .apk by right clicking the file -> open with -> WinRar. Now you can look around the .apk file. Find a file inside the .apk you wish to edit. (In my case I'm going to navigate to res -> mipmap-hdpi -> ic_launcher_settings.png). Just drag the file from the .apk and edit to your liking.
NOTE: It is recommended never to completely take everything out of the .apk and then put it all back in. Just do one file at a time.
Then when your finished, select the old file in the .apk and press the delete button. Now drag in the new edited file into where you found it. Easy!
Step 3 - Putting the new .apk back where it belongs
Now of course, your going to have to put it back on your device to see the changes in effect, there's no point having it on your computer! There are two ways to go about this:
a) Open up your rom and navigate to the place where you took your .apk file from. Click on the old .apk file and press the delete button. Now drag your new edited .apk file into the zip. Then connect your device to your computer and drag the rom onto the sdcard and flash it via recovery. Now reboot the system and see your change/s in effect!
b) Copy your new .apk file from your computer to your device. Then, using Root browser or a similar app, navigate to the old .apk file and look at the permisions. (eg. RW--r--) Now delete the old file and replace with the new, but make sure to set the permissions the same as they were before. Now Simply reboot and see your change/s in effect!
NOTE: For some .apk files (eg. Framework-res.apk) there might be missing folders inside the .apk (eg. Values).
Just hit the thanks button, he doesn't bite your finger!
This is an easy way to edit the images only(icons,wallpaper,etc),not XML files,Smali's and such.I do this using the kitchen,easy way if you theme alot.
Diablo67 said:
This is an easy way to edit the images only(icons,wallpaper,etc),not XML files,Smali's and such.I do this using the kitchen,easy way if you theme alot.
Click to expand...
Click to collapse
You don't have to use this guide just for images. That was just the example. You can use it for almost any file inside an .apk. I was just saying that SOME folders aren't there.
Can you guide me to how do i keep same apps of diff versions.
i tried to modify a 3rd party app e.g whatsapp and when i tried installing i got an error which said "the app is not signed", may u kindly assist!
tendyfish said:
i tried to modify a 3rd party app e.g whatsapp and when i tried installing i got an error which said "the app is not signed", may u kindly assist!
Click to expand...
Click to collapse
You also have this tool
Easy Apk Dissassembler
http://forum.xda-developers.com/showthread.php?p=14049173
How do I use a flashable to get rid of .apks??? ₩
On the app I have here it returns 20 results that it scrapes from a website. I only want it to return 3 or 4. How do I get in there and change that value?
I want to change values on touchwiz launcher on my note 3, to use it in 440 dpi. When I use it there is so much margin on all sides, and I need to reduce. I need to add a new icon row as well. Can I do that just by modifying the app?
Sent from my GT-I9505 using Tapatalk
are the .xml files encrypted or something? when i try to edit them, it is a bunch of strange characters
Hi,
I would like to modify the tinychat.apk so that i can find how to change my device info/platform from android to something else, like pc or whatever. I dont want to be identified as using an android device. Is this possible?
Regards.
ksaul said:
are the .xml files encrypted or something? when i try to edit them, it is a bunch of strange characters
Click to expand...
Click to collapse
Yes, depending on what tool you use to decompile the apk files it may or may not decrypt them. I use apktool and it decrypts them just fine.
I think this method is no longer working for 4.3+
Modify JAR files
littlejoelgriffo said:
Hey Guys an' Girls!
Anyway, so when I first learnt how to decompile, modify then recompile .apks I found it was a rather slow process and figured out a far faster way.I searched google and xda many times and couldn't find my method anywhere. So without further ado, let's go through an easy, simple, step by step guide on how to modify .apk files!
Step 1 - Getting the .apk
Firstly, of course, you will need to obtain the .apk file that you want to edit. There are two methods to do this:
a) If you have the recovery flashable zip for the rom you are currently on, simply open it up, navigate to the file you want to edit (in my case system -> app -> settings.apk) and drag the .apk file onto your desktop.
b) Using root browser or a similar app on your device, navigate to the .apk you wish to edit and copy it onto your sdcard. Then connect to your computer and copy the file from your phone to the computer.
Step 2 - Editing/Modifying your .apk
Now is the important part. Install Winrar by clicking the link. http://www.win-rar.com/download.html?&L=0 Then open the .apk by right clicking the file -> open with -> WinRar. Now you can look around the .apk file. Find a file inside the .apk you wish to edit. (In my case I'm going to navigate to res -> mipmap-hdpi -> ic_launcher_settings.png). Just drag the file from the .apk and edit to your liking.
NOTE: It is recommended never to completely take everything out of the .apk and then put it all back in. Just do one file at a time.
Then when your finished, select the old file in the .apk and press the delete button. Now drag in the new edited file into where you found it. Easy!
Step 3 - Putting the new .apk back where it belongs
Now of course, your going to have to put it back on your device to see the changes in effect, there's no point having it on your computer! There are two ways to go about this:
a) Open up your rom and navigate to the place where you took your .apk file from. Click on the old .apk file and press the delete button. Now drag your new edited .apk file into the zip. Then connect your device to your computer and drag the rom onto the sdcard and flash it via recovery. Now reboot the system and see your change/s in effect!
b) Copy your new .apk file from your computer to your device. Then, using Root browser or a similar app, navigate to the old .apk file and look at the permisions. (eg. RW--r--) Now delete the old file and replace with the new, but make sure to set the permissions the same as they were before. Now Simply reboot and see your change/s in effect!
NOTE: For some .apk files (eg. Framework-res.apk) there might be missing folders inside the .apk (eg. Values).
Click to expand...
Click to collapse
That's very helpful thank you for sharing. Is there a way to modify JAR files the same way?
gilbertgk said:
That's very helpful thank you for sharing. Is there a way to modify JAR files the same way?
Click to expand...
Click to collapse
rename the jar to apk..after done,rename it back to jar
zamzameir said:
rename the jar to apk..after done,rename it back to jar
Click to expand...
Click to collapse
Can this work on my note 3 4.3 not rooted?
gilbertgk said:
Can this work on my note 3 4.3 not rooted?
Click to expand...
Click to collapse
idk..but you can try n report back
littlejoelgriffo said:
Hey Guys an' Girls!
Anyway, so when I first learnt how to decompile, modify then recompile .apks I found it was a rather slow process and figured out a far faster way.I searched google and xda many times and couldn't find my method anywhere. So without further ado, let's go through an easy, simple, step by step guide on how to modify .apk files!
Step 1 - Getting the .apk
Firstly, of course, you will need to obtain the .apk file that you want to edit. There are two methods to do this:
a) If you have the recovery flashable zip for the rom you are currently on, simply open it up, navigate to the file you want to edit (in my case system -> app -> settings.apk) and drag the .apk file onto your desktop.
b) Using root browser or a similar app on your device, navigate to the .apk you wish to edit and copy it onto your sdcard. Then connect to your computer and copy the file from your phone to the computer.
Step 2 - Editing/Modifying your .apk
Now is the important part. Install Winrar by clicking the link. http://www.win-rar.com/download.html?&L=0 Then open the .apk by right clicking the file -> open with -> WinRar. Now you can look around the .apk file. Find a file inside the .apk you wish to edit. (In my case I'm going to navigate to res -> mipmap-hdpi -> ic_launcher_settings.png). Just drag the file from the .apk and edit to your liking.
NOTE: It is recommended never to completely take everything out of the .apk and then put it all back in. Just do one file at a time.
Then when your finished, select the old file in the .apk and press the delete button. Now drag in the new edited file into where you found it. Easy!
Step 3 - Putting the new .apk back where it belongs
Now of course, your going to have to put it back on your device to see the changes in effect, there's no point having it on your computer! There are two ways to go about this:
a) Open up your rom and navigate to the place where you took your .apk file from. Click on the old .apk file and press the delete button. Now drag your new edited .apk file into the zip. Then connect your device to your computer and drag the rom onto the sdcard and flash it via recovery. Now reboot the system and see your change/s in effect!
b) Copy your new .apk file from your computer to your device. Then, using Root browser or a similar app, navigate to the old .apk file and look at the permisions. (eg. RW--r--) Now delete the old file and replace with the new, but make sure to set the permissions the same as they were before. Now Simply reboot and see your change/s in effect!
NOTE: For some .apk files (eg. Framework-res.apk) there might be missing folders inside the .apk (eg. Values).
Click to expand...
Click to collapse
Thnax for great guide but,my gopro app has a update and I have changed the icon on it but the app store dosent show me the update button. How to fix so I can update?
What do I need to change in an app to substitute it for another app?
OK so I've installed a new ROM and it comes with a kernel setting app preinstalled. This app has been integrated into the system settings portion of the ROM. I want to replace this kernel settings app with one of my choice but I want to be able to integrate it into the system settings like the original app is. I tried disguising the new app by changing the name of the app and .apk files but that didn't work. Closest I got was being able to convert my app to system app but even though I changed the name, the app, when installed goes back to it's original name. Or what permissions or files do I need to change to allow the integration of my app into the settings interface. Thanks ahead of time, it's appreciated.

Categories

Resources