[Q] Centered Clock - Atrix 4G Q&A, Help & Troubleshooting

i found this http://forum.xda-developers.com/showthread.php?t=1174202
so i got a working adb set up, i thought.. using apk manager i pulled systemui, i extracted it, decompiled it, edited the file and compiled it all with no errors. then i sign it, and install it..
on install i get this
Code:
Please make your decision: 12
sudo: adb: command not found
Hit Enter to continue
867 KB/s (313989 bytes in 0.353s)
pkg: /data/local/tmp/repackaged-signed.apk
Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]
=(

help? =/
...

You have to either push it, flash it, or place it with root explorer. you cant install it.

Related

Change unknown caller picture

When a call comes in which is from an unknown nuumber or a contat that doesn't have a picture assigned to it you get a blue outline of a person, with a question mark in the middle by default. Is there way of changing this default image to something more interesting? Any ideas?
Thanks
Not too hard to do
I know its been awhile since you asked, but since I haven't found an answer anywhere else...
You need to open the (ROM).zip that you are using and edit an .apk and then use ADB to push it back to the phone.
I'm using Virtuous Unity 1.3.1. I've done it successfully on a few other ROMs too.
You'll need a graphics editor (I used MS Paint), Android SDK with adb, 7-Zip.
Here's how I did it...
As always, MAKE A BACKUP! Its not my fault if something goes wrong.
1 - Open the .zip copy of the ROM that you're using
2 - Extract a copy of /system/app/Phone.apk
3 - Open Phone.apk using 7-zip and copy the following files to your desktop (don't close the 7-Zip window):
-phone_default_270.png
-phone_default_300.png
-phone_default_incall_270.png
-phone_default_incall_300.png
4 - Find a picture that you want to use and resize it to 300x300 and 270x270. Save it as the above file names.
5 - Copy the 4 files back into the Phone.apk archive and exit 7-Zip
6 - Copy the new Phone.apk file into your adb directory (Android SDK, usually in the platform-tools folder)
7 - Connect your phone to your computer and ensure its in charge-only mode with USB debugging enabled
8 - Open a command prompt window, change to your adb directory, and run the following commands:
adb devices {to make sure the device is connected}
adb remount {sets it to read/write}
adb push Phone.apk /system/app/Phone.apk {replaces the Phone.apk file}
9 - Disconnect your device and reboot
10 - Enjoy!
-Kyle

[Q] SystemUI.apk without META_INF

I am trying to modify a few APKs in an updated ROM I just installed. I was able to modify these in a previous release but now I am having trouble with SystemUI.apk. The SystemUI.apk in the ROM has no META-INF. How does this work?
If I modify and replace, I loose my status bar. If I copy the original from the ROM back, my status bar does not return. The only way to get my status bar back is to restore from a full backup.
Any help in how to modify this, or just understand how it is working in the first place would be appreciated.
What are you using to decompile the apks? Are you getting any error messages when you try to recompile it?
Apktool 1.4.5174001. No errors or warnings on decompile. No errors and one translation warning on compile.
Have you placed the right 1.apk and 2.apk in your C:\Documents and Settings\"your user name"\apktools
Yup framework-res and twframework-res from this ROM. Even though it looks like its only using 1.apk.
Update:
It's not the decompiling tools at all. I tried copying the unmodified SystemUI.apk back to /system/app, verified ownership and permissions. When I rebooted the phone, the same thing happened. No notification bar.
IDK sorry try pulling a systemui from a stock updated rom and past all you modified on that one. Sorry I could not help more Ill try to work on mine when I get home see if I can figure anything else for you.
I got it to work, sort of. I took the ROM and placed my SystemUI.apk inside, then flashed. I'm still curious about this SystemUI not being signed but still working as long as its not replaced.
Update:
After I found that the above worked, I create my own update.zip with just the SystemUI.apk inside. This also worked! Is there some reason that it did? The only difference I can tell is that the file access and modify time stamps are set to 2008
Code:
[email protected]:/ $ stat /system/app/SystemUI.apk
stat /system/app/SystemUI.apk
File: /system/app/SystemUI.apk
Size: 1108265 Blocks: 2168 IO Block: 4096 regular file
Device: b318h/45848d Inode: 41066 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ UNKNOWN) Gid: ( 0/ UNKNOWN)
Access: 2008-08-01 12:00:00.000000000
Modify: 2008-08-01 12:00:00.000000000
Change: 2012-05-26 23:27:02.000000000
I'm glad it worked out for you.

[Q] Apktool problem

I want to decompile some system apps and I can't even get apktool to work. I installed java jre and jdk both and I get the following error in cmd:
Java is not recognized as an internal or external command
So I set my environmental system variables for Java on my windows xp computer as shown below:
View attachment 2825945
But I still get the same error as before! I need someone to please help me figure this out before I get even more frustrated!
Make sure you have installed apktool correctly
Windows:
Download The Following From Here
apktool1.5.2.tar.bz2
apktool-install-windows-r05-ibot.tar.bz2
Unzip both files with winrar and put the contents (there should be 3 files) in C:\Windows
if you have java jdk installed you should be able to type apktool and hit enter at the command prompt and if installed it will give you all the options for apkool
Linux:
Download apktool-install-linux-* file
Download apktool-* file
Unpack both to /usr/local/bin directory (you must have root permissions)
Mac OS X:
Download apktool-install-macos-* file
Download apktool-* file
Unpack both to /usr/local/bin directory (you must have root permissions)
did everything still not working
I Followed this guide here which is very similiar: http://androidforums.com/esteem-all-things-root/520917-guide-how-properly-decompile-recompile-apks-apktool.html
I stopped at installing framework because CMD would not let me be able to do so!
Any other advice?
I really need to get this working!
Thanks for your help!
JT1510365 said:
I Followed this guide here which is very similiar: http://androidforums.com/esteem-all-things-root/520917-guide-how-properly-decompile-recompile-apks-apktool.html
I stopped at installing framework because CMD would not let me be able to do so!
Any other advice?
I really need to get this working!
Thanks for your help!
Click to expand...
Click to collapse
what version of apktool are you using? maybe the apktool doesn't support it.. download de jar and the appt http://forum.xda-developers.com/showthread.php?t=1755243 , open the cmd window holding shift+ right button where the apktool is placed

GooglePlay Installation for Emulator (Marshmallow/Noughat)

Aug 28 (21 hours ago)
I have tried so many options/blogs/scripts to install GooglePlay for Emulator (running through Android Studio) but it never works. I have seen so many different errors
1. Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]
2. Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
3. No space left on /system
Why is it so hard to install GooglePlay on Emulator, can someone provide steps or GApps that work with Marshmallow/Noughat.
Here's the gist of what I have tried :
1. Copy GApps from http://opengapps.org/ [ Platform: x86_64; Android: 6 & 7; Variant: full ]
2. Extract the zipped file to temporary folder and then extract following apks from it to another folder
* gsfcore-all/nodpi/priv-app/GoogleServicesFramework/GoogleServicesFramework.apk
* gsflogin-all/nodpi/priv-app/GoogleLoginService/GoogleLoginService.apk
* gmscore-x86_64/nodpi/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk
* vending-all/nodpi/priv-app/Phonesky/Phonesky.apk
3. Try pushing these apks through this script
IMAGE_NAME=Nexus_5X_API_24 #Nexus_5X_API_23
emulator @${IMAGE_NAME} -no-boot-anim -writable-system &
adb wait-for-device
adb root
adb shell stop
adb remount
adb push PrebuiltGmsCore.apk /system/priv-app/
adb push GoogleServicesFramework.apk /system/priv-app/
adb push GoogleLoginService.apk /system/priv-app/
adb push Phonesky.apk /system/priv-app/
I would really appreciate any help !!
Hello and welcome to XDA Q&A section of the Forums.
In the .zip file you got from GApps, there should be a thing called "updater-script" located in the first folder then the subfolder of that and so on till you find it. In this script it tells your recovery what do you with the file rather than just smile at it . I guess you can say it is time for a human to do those steps manually instead (I guess you can say that).
If I helped, hit "thanks" .
Its not clear by your comments what you are suggesting, you mean to say that I should read this script "updater-script" and apply those steps manually ?
maqzee said:
Its not clear by your comments what you are suggesting, you mean to say that I should read this script "updater-script" and apply those steps manually ?
Click to expand...
Click to collapse
Yup! Use notepad++ to view it btw, good luck! At least it's not smali code.

After set chmod 644 system-app error

I had to make some changes to system-apps, I have a lot of problems with them.
What I have tried after the error: App stopped: I have copied z. B. SystemUI.apk (not changed) only from the phone to my laptop (Windows 7) and back to the phone and then I get the error: SystemUI stopped (I use Lineage OS on motorola g4)
I did it as described here: https://forum.xda-developers.com/showthread.php?t=1466183
(You put the file in /system/ so it IS there. Then you change the permissions. Now that the file has correct permissions, you put it in /system/app or /system/framework and let it overwrite the original, so the INSTANT it replaces the original one it already has the correct permissions. You HAVE to put it into /system/, otherwise you can't change to those permissions, but you need to do it before you overwrite the originals.)
BUT IT WILL NOT WORK I ALWAYS GET THE ERROR MESSAGE: APP STOPPED
Thank you for your help :crying:

Categories

Resources