Modding an Android App - help - Android Q&A, Help & Troubleshooting

Hi everyone!
I'm trying to modding an android app for the first time.
Before, this app worked on Android TV but with the last update, after the splash screen, it closes.
I decompiled the app and I found the points where to intervene to allow the app to start on android tv (skipper technicolor).
Code:
UiModeManager uiModeManager = (UiModeManager) getContext().getSystemService("uimode");
if (VERSION.SDK_INT < 8 || uiModeManager.getCurrentModeType() != 4) {
return false;
}
NexLog.m15032d("NexVideoRenderer", "Running on a TV Device");
return true;
But I don't know how to compile and sign the app to be able to try. I tried with android multitool but when I try to decompile the app I have many errors.
Can anyone help me?
thank you so much!

I just use regular old apktool, myself, but really in order to help I'd need to see the particular errors being thrown.
Also for signing, Venkat Kamesh has a really nice and easy to use tool for Windows called signapk.
Sent from my LG-Q710AL using Tapatalk

RealWelder said:
I just use regular old apktool, myself, but really in order to help I'd need to see the particular errors being thrown.
Also for signing, Venkat Kamesh has a really nice and easy to use tool for Windows called signapk.
Sent from my LG-Q710AL using Tapatalk
Click to expand...
Click to collapse
Hi RealWelder, thanks for reply.
I tried with Android multitool (the new version of apk tool) but the errors are on the framework.res.apk. Where I can find it?

specialdo said:
Hi RealWelder, thanks for reply.
I tried with Android multitool (the new version of apk tool) but the errors are on the framework.res.apk. Where I can find it?
Click to expand...
Click to collapse
Here's a link to my basic modding tools. (Adb, fastboot, apktool, smali, baksmali, etc.) There may be an instructions sheet I the zip. There should be multiple threads on here to show you how to use them. Good luck.
https://drive.google.com/file/d/1Ywa3SWd_420uO-nyi2-iqVWp1vu0V_D9/view?usp=drivesdk
Sent from my LG-Q710AL using Tapatalk

Related

Help me please!!

Hi xda community I'm going crazy for days because I do not understand why the application settings (CyanoGenMod7) that I modified with Apk Tool does not install on my device when the ROM is installed, I just changed some words in the language files but nothing else why the application is not installed, and what's the solution?
---blacksoul--- said:
Hi xda community I'm going crazy for days because I do not understand why the application settings (CyanoGenMod7) that I modified with Apk Tool does not install on my device when the ROM is installed, I just changed some words in the language files but nothing else why the application is not installed, and what's the solution?
Click to expand...
Click to collapse
What error message do you get?
My first thoughts: wrong signature, no signature, compiled as non-system APK
Sent from my Galaxy Nexus using Tapatalk 2
---blacksoul--- said:
Hi xda community I'm going crazy for days because I do not understand why the application settings (CyanoGenMod7) that I modified with Apk Tool does not install on my device when the ROM is installed, I just changed some words in the language files but nothing else why the application is not installed, and what's the solution?
Click to expand...
Click to collapse
Needs to be resigned.
I resolved Thank You very much

[NEED GUIDE] Resizing .apks

Hey guys, the title says it all. I did a google search but came up with a lot of unanswered xda threads. Does anybdoy know? If they do, could they post a guide? It would help a lot of people!
Bump, anyone?
This may or may not do the trick...I can't try because my Ubuntu is messed up! Here you go...http://forum.xda-developers.com/showthread.php?t=1491689
I'm working on installing it on my Windows PC.
Yes indeed, my tool is able to do resizing.
The point is I don't know what key to sign with xD
I will try and experiment tomorrow
Sent from my Galaxy Nexus using Tapatalk 2
Very cool I already have this tool and tried to resize but it gave me an error. mDroid, does it work on fedora?
THEindian said:
Very cool I already have this tool and tried to resize but it gave me an error. mDroid, does it work on fedora?
Click to expand...
Click to collapse
Wich error?
I'm not sure...
I can resize APKs for you, I just did one for invasion and that worked.
About fedora:
Open a terminal and type this (w/o quotes):
"python"
Tell me the output
"import gtk
import pygtk"
Give me the FULL output of your new-opened terminal.
Then try to launch the SAP file from my tool.
Sent from my Galaxy Nexus using Tapatalk 2

[Q] Edit .apk wirh winRAR possible?

Hey guys,
I was searching for a tool to edit an apk file and i found Apk Tool on xda but i think it's not
that much easy to work with this program. (for a n00b, like me.. )
I managed to open and edit te file with winRAR,
but is this program also capable of proper compiling the app again, ready to use?
I tried it and it worked well i think, but is this possible with any app or other kinds of changes?
If this is stupid or something, please tell me. I am not very experienced in these kinds of things.. (neither in english, sorry.. )
Somebody any ideas?
Thanks in advance!
bart1996 said:
Hey guys,
I was searching for a tool to edit an apk file and i found Apk Tool on xda but i think it's not
that much easy to work with this program. (for a n00b, like me.. )
I managed to open and edit te file with winRAR,
but is this program also capable of proper compiling the app again, ready to use?
I tried it and it worked well i think, but is this possible with any app or other kinds of changes?
If this is stupid or something, please tell me. I am not very experienced in these kinds of things.. (neither in english, sorry.. )
Somebody any ideas?
Thanks in advance!
Click to expand...
Click to collapse
It all depends on what you edit,obviously you didnt make a fatal change,so it must have been small,no its not possible to edit anything else as far as the manifest and xml files.You'll get a parsing error.
Diablo67 said:
It all depends on what you edit,obviously you didnt make a fatal change,so it must have been small,no its not possible to edit anything else as far as the manifest and xml files.You'll get a parsing error.
Click to expand...
Click to collapse
Okay, that's true i only changed those kinds of files and it wasn't a problem yet.
I changed somethings in an demo version of an app and now it recognizes it as the full version so winRAR can be pretty usefull for apk edit if you keep things simple like this..
bart1996 said:
Okay, that's true i only changed those kinds of files and it wasn't a problem yet.
I changed somethings in an demo version of an app and now it recognizes it as the full version so winRAR can be pretty usefull for apk edit if you keep things simple like this..
Click to expand...
Click to collapse
It only really works for editing images.
Admitting this is a nice way to get banned
Wayne Tech Nexus

[Q] How to change the list on press action or bg in Xperia U devices?

Hi guys, I'm fairly new to this but I wanted to know how I can change the list pressed animation style in Xperia U? I mean the white background glow on pressing and holding any list button in menus or tabs or buttons, for example see the following photo (attachments), how the background of the notification has turn to white (fading).
I thought there might be a. 9.png file for that, but when I started searching for in the drawable folder of framework-res.apk, I wasn't able to find it?
So I wanna know that am I searching wrongly or there is no such file and just a xml code which I'm not able to get my hands on because of lack of my knowledge of decompiling the apks. I tried decompiling it by apktool but it won't budge. Also to edit pngs I am using a simple technique (posted by a xda user, sorry for not recalling your name but thanks) that is to just open or extract the roms through 7zip and then just copy them back to the respective apk file. This seems to be working as I was able to create my own lockscreen. So please help me in finding where I'm going wrong.
Thanks in advanced...
You must decompile the framework-res.apk and then, search in /drawable-hdpi folder the image. Its name is notification-normal-bg.9.png or something like that. Edit it with photoshop, and, when you have all that you want, compile the framework-res.apk and change it in your phone. Do a backup before do anything.
Enviado desde mi ST25i usando XDA Premium HD app
Slash137 said:
You must decompile the framework-res.apk and then, search in /drawable-hdpi folder the image. Its name is notification-normal-bg.9.png or something like that. Edit it with photoshop, and, when you have all that you want, compile the framework-res.apk and change it in your phone. Do a backup before do anything.
Enviado desde mi ST25i usando XDA Premium HD app
Click to expand...
Click to collapse
First of all thanks for your advice, but as it turns out the Sony isn't using that file?? And also I just did it with my normal method (described before), so I guess it might be a problem that I'm not decompiling it, but as it turns out I don't know exactly how to. So can you suggest me a Guide or something like that through which I can learn to do it without any problems...?? Because last I time tried it, I got a failed app! Please help, thanks in advance...
divinemamgai said:
First of all thanks for your advice, but as it turns out the Sony isn't using that file?? And also I just did it with my normal method (described before), so I guess it might be a problem that I'm not decompiling it, but as it turns out I don't know exactly how to. So can you suggest me a Guide or something like that through which I can learn to do it without any problems...?? Because last I time tried it, I got a failed app! Please help, thanks in advance...
Click to expand...
Click to collapse
I have successfully figured out the first part of the problem, the sony uses the .png starting with semc... So I just searched for semc_list_.... And found what I was looking for. But still how to decompile system apps in Xperia based devices succesfully..? Please someone..?
divinemamgai said:
I have successfully figured out the first part of the problem, the sony uses the .png starting with semc... So I just searched for semc_list_.... And found what I was looking for. But still how to decompile system apps in Xperia based devices succesfully..? Please someone..?
Click to expand...
Click to collapse
You must use APKTool for decompile. When you got it it's so easy to use.
Slash137 said:
You must use APKTool for decompile. When you got it it's so easy to use.
Click to expand...
Click to collapse
Yeah buddy, it was pretty easy. And I figured out what I was doing wrong before, I wasn't including framework-res.apk and SemcGenericUxp.apk in the tool to help it compile the resources! Thanks.
divinemamgai said:
Yeah buddy, it was pretty easy. And I figured out what I was doing wrong before, I wasn't including framework-res.apk and SemcGenericUxp.apk in the tool to help it compile the resources! Thanks.
Click to expand...
Click to collapse
Can you suggest me a method of porting roms perfectly...?
divinemamgai said:
Can you suggest me a method of porting roms perfectly...?
Click to expand...
Click to collapse
Don't worry GOT.. IT....

[Q] Any similar application to "APK-Tool"/"APK-Manager" for Android ?

[Q] Any similar application to "APK-Tool"/"APK-Manager" for Android ?
Well, I would like to know if there's an app for Android which have some functions similar to the ones of APKTool and/or APKMultitool
In other word, I would like to edit apks using my Android device itself
An app for Unpacking and Repacking apks.
We need specific tools to decompile an APK and such tools don't exist on Android devices.
Oh No !
Primokorn said:
We need specific tools to decompile an APK and such tools don't exist on Android devices.
Click to expand...
Click to collapse
So sad
I could edit them by using Root Explorer to unpack and repack BUT this way seems unfair.
Thanks for your reply
Sent from Gallifrey using TARDIS

Categories

Resources