[SOLVED!] Installation of Modded Settings.apk in LP 5.1 - Android Q&A, Help & Troubleshooting

hello,
Can someone help me why i cant install my modded settings.apk to lollipop 5.1?
i did not mod any XML files but edited 2 images from res and signed the apk and tried to install. no positive result.
Someone told me that settings.apk should not be signed.
someone help in this thing.
Thanks in advance

Settings must be signed with the platform key.

MasterAwesome said:
Settings must be signed with the platform key.
Click to expand...
Click to collapse
Can you please detail the step by step.?
When i tried it by signapk.jar I'am getting error while signing the apk after creating .keystore. When i Google'd it i got an info that it is already signed. What should i do to sign and install?

shmshd12 said:
Can you please detail the step by step.?
When i tried it by signapk.jar I'am getting error while signing the apk after creating .keystore. When i Google'd it i got an info that it is already signed. What should i do to sign and install?
Click to expand...
Click to collapse
You don't sign it at all. And you can't install it. You have to flash it with a zip in recovery.

zelendel said:
You don't sign it at all. And you can't install it. You have to flash it with a zip in recovery.
Click to expand...
Click to collapse
When i flashed the zip file it installed well in recovery but when i came to the system from recovery i couldn't find the settings apk installed.
Can you create a working signed zip file to flash in recovery for the attached apk.
Thnaks in Advance

There are plenty of tuts on how to do it yourself. The mount points are very different for each device so you will have to get a zip for your device that works and then just add your apk.

zelendel said:
There are plenty of tuts on how to do it yourself. The mount points are very different for each device so you will have to get a zip for your device that works and then just add your apk.
Click to expand...
Click to collapse
Now im confused on 1 simple thing.
should i add the apk in system/priv-app/settings or system/app/settings ??

shmshd12 said:
Now im confused on 1 simple thing.
should i add the apk in system/priv-app/settings or system/app/settings ??
Click to expand...
Click to collapse
Send me the apk i'll sign it install it using
Bash:
adb push ../Settings.apk /sdcard/
adb shell
su
mount -o remount,rw /system
rm pathToSettings.apk
cp /sdcard/Settings.apk pathToSettings.apk
chmod 0644 pathToSettings.apk
reboot

MasterAwesome said:
Send me the apk i'll sign it install it using
Bash:
adb push ../Settings.apk /sdcard/
adb shell
su
mount -o remount,rw /system
rm pathToSettings.apk
cp /sdcard/Settings.apk pathToSettings.apk
chmod 0644 pathToSettings.apk
reboot
Click to expand...
Click to collapse
Bro, here is the apk
the above mentioned apk is the wrong one!!!
please find the right apk from below attachment
thanks a lot
note that this is the settings.apk for hammerhead running LP 5.1

shmshd12 said:
Bro, here is the apk
the above mentioned apk is the wrong one!!!
please find the right apk from below attachment
thanks a lot
note that this is the settings.apk for hammerhead running LP 5.1
Click to expand...
Click to collapse
Aosp?

MasterAwesome said:
Aosp?
Click to expand...
Click to collapse
YES...EXTRACTED FROM GROGG'S rom 5.1

@MasterAwesome
Waiting for your signed settings.apk !!!
when will i get it ?

shmshd12 said:
@MasterAwesome
Waiting for your signed settings.apk !!!
when will i get it ?
Click to expand...
Click to collapse
Crap, I totally forgot about it... I was building something else. I'll upload it soon

Can someone else sign this or make a flashable zip?

shmshd12 said:
Can someone else sign this or make a flashable zip?
Click to expand...
Click to collapse
Relax and give him time. You would have had it by now had you done your own research and docent yourself.

zelendel said:
Relax and give him time. You would have had it by now had you done your own research and docent yourself.
Click to expand...
Click to collapse
I google'd a lot and I'm tired!!
That's the reason i started thread!!

shmshd12 said:
I google'd a lot and I'm tired!!
That's the reason i started thread!!
Click to expand...
Click to collapse
I think you mistake this for a support site. If you searched then you really didnt look very hard
http://forum.xda-developers.com/gal...tutorial-making-flashable-zips-edify-t1611615
That gives you everything you need to know to make it.

zelendel said:
I think you mistake this for a support site. If you searched then you really didnt look very hard
http://forum.xda-developers.com/galaxy-nexus/themes-apps/tutorial-making-flashable-zips-edify-t1611615
That gives you everything you need to know to make it.
Click to expand...
Click to collapse
Parsing error occurs while installing!!
So i need to sign the apk right?
In the above mentioned thread it only shows how to create a flashable zip or signed zip!!! I need to sign the apk!!

shmshd12 said:
Parsing error occurs while installing!!
So i need to sign the apk right?
In the above mentioned thread it only shows how to create a flashable zip or signed zip!!! I need to sign the apk!!
Click to expand...
Click to collapse
First off. No you should never sign a system APK. If you do it will conflict with the system Sig that all system apps use.
I told you once already. You cant install the apk that way. It has to be flashed in recovery.

zelendel said:
First off. No you should never sign a system APK. If you do it will conflict with the system Sig that all system apps use.
I told you once already. You cant install the apk that way. It has to be flashed in recovery.
Click to expand...
Click to collapse
but @MasterAwesome said that Settings must be signed with the platform key in the second post!! so are you telling that he is wrong?
I did a flashable zip by ZipMe app from playstore and flashed it...still the settings apk was not found in the app drawer!!!

Related

Deodexing help

Hi, i have problem deodexing miro sdsl v1.1. I use xUltimate-v2 3.3 app but every time pull proces stop and never finish to end. I try to putt phone to airplane mode, mount system from recovery... Anybody know what i doing wrong?
bataya said:
Hi, i have problem deodexing miro sdsl v1.1. I use xUltimate-v2 3.3 app but every time pull proces stop and never finish to end. I try to putt phone to airplane mode, mount system from recovery... Anybody know what i doing wrong?
Click to expand...
Click to collapse
You can try to not pull apps from phone but unpack files from flashable zip (/app and /framework folders).
tnx, i forgat that i can do that. Rom deodexed...
bataya said:
tnx, i forgat that i can do that. Rom deodexed...
Click to expand...
Click to collapse
That's why I love Android so much. You can do lots of things in so many ways.
Glad I could help.
Anybody try this mod http://forum.xda-developers.com/showthread.php?t=1174202 ?
I always stay without status bar after repacing SystemUI.apk.
bataya said:
Anybody try this mod http://forum.xda-developers.com/showthread.php?t=1174202 ?
I always stay without status bar after repacing SystemUI.apk.
Click to expand...
Click to collapse
I tried that with Zdune's patcher and it worked.
http://forum.xda-developers.com/showthread.php?t=1202866
hm... i dont see option in zune patcher to move notification widget down?
bataya said:
hm... i dont see option in zune patcher to move notification widget down?
Click to expand...
Click to collapse
Its miui isnt it?
Sent from my LG GT540 using xda premium
Noup, CM7 with notification widget moved down. I manage to deodex rom, decompile apk, edit xtml, compile apk, but i doing something wrong... dont know what.
bataya said:
hm... i dont see option in zune patcher to move notification widget down?
Click to expand...
Click to collapse
Sorry, I thought you were talking about center clock. Well try again, it is a tricky job, and is easy to make mistake in the process. In CM settings there is option bottom statusbar so the notification icons are down . I will also try to apply the tweak, if it works will share.
Well, seeing a thread with this name I thought to just join in rather than openning a new one well, I downloaded xUltimate, pulled and deodexed the apks and....now what ? I assume I have to switch the original system files with these new ones, but how ? Sorry for the nooby question
create 2 folder on sdcard, in first copy deodexed file from /system/app, in second from /system/framework then boot in recovery, mount system and sdcard run adb and replace file in /system/app and /system/framework. After that use adb to remove .odex files form /syste/app and /system/framework.
Code:
adb shell
su
cp /sdcard/(noame of the folder)/*.* /system/app/
cp /sdcard/name of the folder)/*.* /system/framework
rm /system/app/*.odex
rm /system/framework/*.odex
reboot
If i miss some command make somebody corect me.
bataya said:
create 2 folder on sdcard, in first copy deodexed file from /system/app, in second from /system/framework then boot in recovery, mount system and sdcard run adb and replace file in /system/app and /system/framework. After that use adb to remove .odex files form /syste/app and /system/framework.
Code:
adb shell
su
cp /sdcard/(noame of the folder)/*.* /system/app/
cp /sdcard/name of the folder)/*.* /system/framework
rm /system/app/*.odex
rm /system/framework/*.odex
reboot
If i miss some command make somebody corect me.
Click to expand...
Click to collapse
Thank you everything works, and my rom is finally fast AND themed Oh, and for anyone reading this: because I have a 150MB system partition I had errors while first trying the cp lines, so I had to first remove the odex files (rm lines) and then use the cp ones to transfer the deodexed files
np ;-)
Sent by tT!
hi guys
im a newbie at deodexing and i have no idea what to do
could some give me step by step instructions and a link to the xultimate.zip
i would really be grateful
thx in advance
mohnim said:
hi guys
im a newbie at deodexing and i have no idea what to do
could some give me step by step instructions and a link to the xultimate.zip
i would really be grateful
thx in advance
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=765270
google is helping always
When I type adb shell it says device not found, do I need to go to fastboot or should I enable USB debugging
Sent from my GT540 using XDA
mohnim said:
When I type adb shell it says device not found, do I need to go to fastboot or should I enable USB debugging
Sent from my GT540 using XDA
Click to expand...
Click to collapse
either USB debugging or recovery mode
i got another method dsixda's kitchen gimme the rom and il do it in no time
hi guys
i have now deodexed the rom i think
i want to apply ics statusbar layout by zdunex25 but his video tutorial and xda tutorial is confusing, so can anyone who has applied the ics statusbar help me out.
thx in advance

Problem regarding creation of ROM

Hello!
I currently have a new tablet called the PiPo M9 but the manufacturer only gives out ROM's with the 'img' extension instead of the usual .zip
and i can't seem to open them in any way, not by using winrar/7zip/daemon tools etc.
Anyone that could help me out?
igi0n said:
Hello!
I currently have a new tablet called the PiPo M9 but the manufacturer only gives out ROM's with the 'img' extension instead of the usual .zip
and i can't seem to open them in any way, not by using winrar/7zip/daemon tools etc.
Anyone that could help me out?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1806969
learn from here..
hottesthunkkush said:
http://forum.xda-developers.com/showthread.php?t=1806969
learn from here..
Click to expand...
Click to collapse
Tried that alread, did not work. The image file is some sort of weird sort of file
igi0n said:
Tried that alread, did not work. The image file is some sort of weird sort of file
Click to expand...
Click to collapse
your device is rooted??
hottesthunkkush said:
your device is rooted??
Click to expand...
Click to collapse
My device is rooted, yes.
igi0n said:
My device is rooted, yes.
Click to expand...
Click to collapse
install busybox..
https://play.google.com/store/apps/details?id=stericson.busybox&hl=en
and terminal emulator
https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en
in terminal emu type these
su
tar -c system/* >> sdcard/system.tar
you'll get the system files for cooking..
hottesthunkkush said:
install busybox..
https://play.google.com/store/apps/details?id=stericson.busybox&hl=en
and terminal emulator
https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en
in terminal emu type these
su
tar -c system/* >> sdcard/system.tar
you'll get the system files for cooking..
Click to expand...
Click to collapse
Thanks! Though i want to change the ROM before i flash it and that is why i asked the question: Why can't i extract the file that the manufacturer gave me? It doesn't seem to be a ext4 file, and not an yaffs aswell..

help!!!

i have made rom for my s duos using xda kitchenn but i get status 1 error when i flash the rom
i have searched a lot but i can't find satisfied answer
can any one help me solve this error?
i'm using this guide
http://forum.xda-developers.com/showthread.php?t=1801690
Vaibhav Chauhan said:
i have made rom for my s duos using xda kitchenn but i get status 1 error when i flash the rom
i have searched a lot but i can't find satisfied answer
can any one help me solve this error?
i'm using this guide
http://forum.xda-developers.com/showthread.php?t=1801690
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2230733
Status 1 Error:
"Well this is one of the most rarest error that a person can get...but with my experience I came to know that this occurs because you don't have correct permissions set. Use correct perms in updater-script and done "
Grab another rom that is the same base you are using and look at the META-INF/com/google/android folder which contains the updater script and binary to use as your reference points. Compare and contrast yours with that one.
es0tericcha0s said:
http://forum.xda-developers.com/showthread.php?t=2230733
Status 1 Error:
"Well this is one of the most rarest error that a person can get...but with my experience I came to know that this occurs because you don't have correct permissions set. Use correct perms in updater-script and done "
Grab another rom that is the same base you are using and look at the META-INF/com/google/android folder which contains the updater script and binary to use as your reference points. Compare and contrast yours with that one.
Click to expand...
Click to collapse
can i use another rom's updater script in my rom which has same base??
Should be able to. Wouldn't hurt to look at the differences though so then you can understand what things affect the install to help build knowledge.
es0tericcha0s said:
Should be able to. Wouldn't hurt to look at the differences though so then you can understand what things affect the install to help build knowledge.
Click to expand...
Click to collapse
i tried to replace updater script but not working
i also have tried to compare set perms but i am unable to find fault in it
@es0tericcha0s
please tell me what to do??
Sorry, that was my main idea. Are you getting the same error code? Did you unzip and re-zip the rom? If so, you should use an archive manager like 7zip to move the update script into the zip without needing to unzip the whole thing, otherwise you'll break the signature on the rom and have to re-sign it.
es0tericcha0s said:
Sorry, that was my main idea. Are you getting the same error code? Did you unzip and re-zip the rom? If so, you should use an archive manager like 7zip to move the update script into the zip without needing to unzip the whole thing, otherwise you'll break the signature on the rom and have to re-sign it.
Click to expand...
Click to collapse
actually i am using android kitchen to make the rom
and when i use the cosmic rom's updater script in it the status 1 error was solved
but it stuck on boot animation
@es0tericcha0s
my stuck on bootloops can you tell me how to logcat?
Vaibhav Chauhan said:
@es0tericcha0s
my stuck on bootloops can you tell me how to logcat?
Click to expand...
Click to collapse
Not all phones have adb access while in a bootloop. But to do so you would need adb set up on your computer, change directories to the adb folder (or if it's enabled globally, then where ever), and type:
adb logcat
You'll want to save it somewhere like:
http://pastebin.com/
and upload the link.
I am not skilled at reading logcats, so not sure if I can be of any more help after that.
If you don't have adb set up already, then just use this one: http://forum.xda-developers.com/showthread.php?t=2317790

GT-P5210 kitkat

From Sammobile new 4.4.2 P5210XXUBNH1
Luxor said:
From Sammobile new 4.4.2 P5210XXUBNH1
Click to expand...
Click to collapse
http://samsung-updates.com/device/
there is the download link i am downloading it right now.
will it work on my dutch tab 3 10.1?
damian312 said:
http://samsung-updates.com/device
there is the download link i am downloading it right now.
will it work on my dutch tab 3 10.1?
Click to expand...
Click to collapse
downloading now too, please report!
Downloading.
nowo said:
downloading now too, please report!
Click to expand...
Click to collapse
I am a little afraid to test it.
Do i have to flash through odin?
hey,
if you guys are hesitant, i'll test it. give me a couple of hours to get it and do the usual
@Restl3ss - dude OP look !
m
moonbutt74 said:
hey,
if you guys are hesitant, i'll test it. give me a couple of hours to get it and do the usual
@Restl3ss - dude OP look !
m
Click to expand...
Click to collapse
You are the man.
i wait for it
dead link bud!
RoninTPD said:
dead link bud!
Click to expand...
Click to collapse
http://samsung-updates.com/device/
not that hard to fix it:good:
Installing. can't wait to pull it apart.
CAG-man said:
Installing. can't wait to pull it apart.
Click to expand...
Click to collapse
cag,
when you are go can you pull the /system/vendor directory and post it?
also /system/bin/toolbox ?
my download just started , i can't wait !!
m
M,
I will do so.
Holy crap, finally!
damian312 said:
http://samsung-updates.com/device/
not that hard to fix it:good:
Click to expand...
Click to collapse
thanks!!:good:
CAG-man said:
Installing. can't wait to pull it apart.
Click to expand...
Click to collapse
Does it work?
The firmware works, but two things are proving to be very difficult.
one is extracting system.img, i dont know what's different, but the method i used for the 4.2 firmwares just crashes now.
two, and this is a big one
rooting it..
working on it
edit: super SU 1.9.4 zip from chainfire worked. No other method works though, the superuser apk will install but the binary doesn't stick
edit 2: successfully extracted the system image
notes
hey,
if the update with the t211 was any indication, be sure to only write boot.img and system.img
i am making a flashable zip and will post after i get it right and debloated and get the script correct.
realistically, sometime tomorrow, will update.
@Restl3ss okay so iam laughing at myself right now becuase i can not get the damned thing to write. i don't use windows
so no odin. i have tried dd writing the images but on boot i hang at logo and with no adb i can't get a visual on the problem.
i have a .zip put together to do the same and get the same. i have another zip set up ota style but can't script worth a damn.
can you whip up a script and post it?
an interesting note- in /sbin is a binary file named partlink. thoughts?
Restl3ss
@Restl3ss
okay so this is the joke
i am too poor to upload a large file to devhost. :laugh:
solution - i going to upload the otapackge for the firmware WITHOUT the system folder.
the package has the modified to unsecure boot.img and the updater script which just happens to be the
same one i am using for cm11 :laugh: :victory:
these are the instructions for converting, mounting and pulling the system image into an cwm flashable zip
to convert and mount sparse .img in terminal
simg2img system.img system.img.ext4
mount -o loop system.img.ext4 /a/directory
then nav to that directory in file browser, copy the contents of /system and insert in to package.
there is also a second step to correct issues with symlinks in vendor. drop that package into ota second
sorry for the inconvenience. it's in your folder with the patches.
but hey, i'm poor.
m
i'm running it right now and it seems very kitkatty
If i flash 4.4 can i still flash back to 4.2.2?
moonbutt74 said:
@Restl3ss
okay so this is the joke
i am too poor to upload a large file to devhost. :laugh:
solution - i going to upload the otapackge for the firmware WITHOUT the system folder.
the package has the modified to unsecure boot.img and the updater script which just happens to be the
same one i am using for cm11 :laugh: :victory:
these are the instructions for converting, mounting and pulling the system image into an cwm flashable zip
to convert and mount sparse .img in terminal
simg2img system.img system.img.ext4
mount -o loop system.img.ext4 /a/directory
then nav to that directory in file browser, copy the contents of /system and insert in to package.
there is also a second step to correct issues with symlinks in vendor. drop that package into ota second
sorry for the inconvenience. it's in your folder with the patches.
but hey, i'm poor.
m
i'm running it right now and it seems very kitkatty
Click to expand...
Click to collapse
got it system folder is properly extracted and what not, trying to deodex. About 10 apks are failing on every deodex attempt, can't figure out why. Gonna upload a 100% stock to xda anyway, deodexed + rooted will just have to come a bit later.

Signing of digital clock.apk for samsung 7582

Hi...
Can anyone please sign digital clock.apk for samsung 7582, I tried to sign that app but failed.
Help me please.
You don't need to sign it.You just need to enable Unknown Sources.
1.Go to Settings > Security.
2.Check Unknown Sources.
3.Put .apk in your SD card using an USB Cable.
4.Start FileManager, press the PHONE tab and navigate to the .apk then install it.
Edit:
It won't install on my device, where did you took that .apk from??
That what i am saying its not installing as normal app
Cozzmy13 said:
You don't need to sign it.You just need to enable Unknown Sources.
1.Go to Settings > Security.
2.Check Unknown Sources.
3.Put .apk in your SD card using an USB Cable.
4.Start FileManager, press the PHONE tab and navigate to the .apk then install it.
Edit:
It won't install on my device, where did you took that .apk from??
Click to expand...
Click to collapse
I have extracted from the stock fom of galaxy s duos 7562. but it is not installing on my phone, i tried to sign that app but failed.
techfision said:
Hi...
Can anyone please sign digital clock.apk for samsung 7582, I tried to sign that app but failed.
Help me please.
Click to expand...
Click to collapse
I signed it without getting errors, so I think it's signed now.
Have a nice day!
Have you tried installing the same app
GeekyDroid said:
I signed it without getting errors, so I think it's signed now.
Have a nice day!
Click to expand...
Click to collapse
Have you tried installing the same app? Is it Installing now>?
techfision said:
Have you tried installing the same app? Is it Installing now>?
Click to expand...
Click to collapse
No, I don't own this device. I just signed it for you as you failed, right? It's not tested.
still not working
GeekyDroid said:
No, I don't own this device. I just signed it for you as you failed, right? It's not tested.
Click to expand...
Click to collapse
I have tried this but not working..
techfision said:
I have tried this but not working..
Click to expand...
Click to collapse
Seems like you are trying to install a system application on normal way. This won't work! You have to copy the unsigned one to system/app and give rw-r-r permissions to it!
;(
GeekyDroid said:
Seems like you are trying to install a system application on normal way. This won't work! You have to copy the unsigned one to system/app and give rw-r-r permissions to it!
Click to expand...
Click to collapse
can u tell me how to do this as i have tried doing that but it wont worked.
techfision said:
can u tell me how to do this as i have tried doing that but it wont worked.
Click to expand...
Click to collapse
Okay. Step by step:
1.Download ES File Explorer from Google Playstore
2.Open it
3.Set it as a root explorer
4.Copy your DigitalClock.apk to system/app
5.Give it rw-r-r permissions
6.Reboot.
^ You can't really do that.
First get adb working and remount the system partition using:
Code:
adb shell mount -o remount,rw system
Then copy the apk to system/app and set the read/write permissions for it.
Then reboot.

Categories

Resources