[Q] Modifying .apk - HTC Flyer, EVO View 4G

Hello guys. There's this problem that I have with TTR4 for Android, and that problem probably can be solved by modyfing one string in the app's config file (located in /System/App directory), but since it's inside the application file and I can only take a look at it using the Root Explorer - I can't make any changes to that file.
So, my question is: how can I unpack/decompile (dunno which variant is the correct one), change the string in that config file, and pack/compile the .apk back to its state? What tools do I need to do that?

Related

[Q] HTC One M7 Keylayout or AVRCP.kl

I have rooted my HTC One aka M7 and all is well except when I try to edit my keyboard layout which is located in:
/system/usr/keylayout
I can edit the file but when rebooting to test it, my changes have reverted back to stock.
I am familiar with editing the files as I have done this before on many phones and tablets.
I usually just use ES File Explorer with R/W (Read / Write) permissions turned on for the /system directory.
Very easy to do and have never had a problem before.
As a test, I have tried renaming the original file by adding a number 1 to the end of the file and then replacing the stock file with my edited version.
This has always worked but when I try this on the HTC One upon reboot the original file that has been renamed with a 1 at the end is now gone from the /system/usr/keylayout folder and the stock file is back and the edited version of the file is gone.
I know 'file permissions' are correct as I have set the file to what it was before any changes and I know I have R/W permisions for the /system folder set correctly because without it I can not even rename the stock file (adding the 1 on to the end of the file's name is not allowed unless R/W is set for the /system folder).
It is almost like there is a backup that is being replaced upon reboot to the /system/usr/keylayout folder.
If there is a backup, I can not find where the backup file is to edit/change it also.
I am trying to change the AVRCP.kl file but it its the same no matter which file I edit or rename, it always reverts back to stock file (both the name and the contents) after a reboot.
Anyone have any ideas? Anyone edited there keylayout on the HTC One aka M7 yet?
Thanks
Come on people, no one can answer this question?
I have the exact same problem except I have an M8. Something somewhere keeps reverting the kl file/folder on reboot.

[Q] [How to] edit the file CAR format inside an apk

Hi everyone,
I was unsigned an apk, and I have a file CAR format and want to edit text inside it (same as file SO format). But if I edited any character inside it and signed, that APK will be crashed.
So, How can I edit that file without crash problem?
Thank you so much.
Regards,

System app modification problem

Hi everyone,
I'm trying to modify Phone.apk 'smali' but am having some difficulties.
What I did so far:
1. Decompiled Phone.apk I pulled from my phone.
2. Modified smali file.
3. Buit it, unzipped, copied original META-INF folder and androidmanifest.xml from unmodified original Phone.apk to my modified Phone.apk
4. Zipped it and pushed to the phone. Got nothing but the "no service". :crying:
Other problems I encountered in the process:
1. When I unzip original Phone.apk and zip it again without modification, I get a different file size than the original no matter what compression method I use.
It worked but force closed on phone call end. (used 7zip). When I zipped (WinRar this time) with no compression (storage only) it worked.
2. I made a tiny modification in 'smali' by defining a new variable (to be sure I didn't mess something up with my mods), built it,
copied META-INF and androidmanifest.xml from the original, and zipped (no compression, storage only, winrar) and it showed 'no service' again.
The phone I used is Samsung Galaxy Advanced (I9070) with Gingerbread Stock ROM.
I tried the described procedure on Samsung Galaxy S (I9000) and it worked.
What am I doing wrong in the process? Please anyone help.

[Q] editing .so file

Howdy.
I'm trying to modify a .so file (libflashplayer.so), but have run into a few problems:
I first tried editing the file after it was installed from an .apk. This appears to work at first, but the edited file is quickly replaced with the original.
I then tried editing the file in the .apk package. This causes the package to fail to install (I'm guessing because the md5 in the certificates no longer matches)
Aldo tried moving a folder with the .so files from the .apk (com.adobe.flashplayer-1 which is what is created when the .apk installs correctly) directly into /data/app-lib/.The directory was created successfully but appears to be immediately deleted.
Is there a way to accomplish what I'm trying to do? If so how?
Other possibly relevant info:
My device is rooted
I did not write the code for anything in the .apk, I got it from a link on xda (pretty dubious i know but I couldn't find another option)
I'm using cyanogenmod 10.2 (based on android 4.2 I believe).
I'm editing the file with a hex editor to change a a few characters ("AND" to "WIN")

How can I modify "ramdisk.img > init" file?

Hi, recently I've dual-booted my computer with Android & Windows 10. But the android rom has shown too much ads so I've deleted the files causing to show the ads from the "system.img" and also "ramdisk.img" (downloaded from internet) and replaced the files with the original ones. Now the ads are not showing but I had built-in root access with SupperSU which I've lost after replacing "ramdisk.img". So I've extracted the original and the downloaded "ramdisk.img" and found an "init" file which doesn't have any file extensions and the "init" file is differing in size between the original & downloaded "ramdisk.img". So I think this file may be the cause to revoke root access. So need to change the file.
Does anyone knows which type of file is the "init" file and how can I edit it?

Categories

Resources