Need Help: How to replace a priv-app in ZUI 2.3? - Lenovo ZUK Z2 (Plus) Questions & Answers

I'm getting this problem on ZUK Edge, which literally has the Z2 ROM in it, so I'm posting my question here.
After switched to English, ZUI 2.3 is still showing download notification in Chinese, because \system\priv-app\DownloadProvider has the wrong messages in res\strings.xml. I corrected the messages and repacked the apk. I signed the apk with platform cert, also tried APK Editor, either way, after I replaced \system\priv-app\DownloadProvider\DownloadProvider.apk with the mod version (and changed permission to 644), the system stopped recongnizing DownloadProvider.apk as an application, Play Store can't download anything, in catLog I saw the error saying DownloadProvider is missing.
I cleared Dalvik cache but didn't help.
Any suggestion please? Thanks.

Ok I figured that out, I need to convert the odex file and pack the dex to the APK.

Related

Market missing alot of apps

I have noticed that with all builds available android market has alot of apps missing (such as google maps, etc)
I have found various vending.apk replacements for qvga models that fix this problem, but until now I have been unable to replace market.
I am currently using Gingerbones 5.25 odex version.
Does anyone know how to update market with the qvga patched version of market and make it work for an odex system.
Thanks
popart said:
I have noticed that with all builds available android market has alot of apps missing (such as google maps, etc)
I have found various vending.apk replacements for qvga models that fix this problem, but until now I have been unable to replace market.
I am currently using Gingerbones 5.25 odex version.
Does anyone know how to update market with the qvga patched version of market and make it work for an odex system.
Thanks
Click to expand...
Click to collapse
grab a file manager with root accessfor example file expert . go to settings clear market data and cache then using file explorer navigate to system apps folder delete vending apk and dex files and throw in the one from the link below then restart clear dalvik cache and you are ready to go.
the apk is not odexed but it works on odexed builds.
http://dl.dropbox.com/u/7688082/Vending.apk
also this is the new market after the facelift but itisn,t the latest version.....the latest version with qvga fix didnt work for me because it was patched with wildfire build.prop
Worked a charm, still havent got all apps (google maps is still missing) but when searching for "video" for example I get over 600 results.
Thanks a bunch
popart said:
Worked a charm, still havent got all apps (google maps is still missing) but when searching for "video" for example I get over 600 results.
Thanks a bunch
Click to expand...
Click to collapse
It's kind of strange as I can access google maps even on non patched markets there must be something wrong with your build. Maybe because gingerbones was stripped down a bit. Anyway there is patched G maps with worldwide navigation enabled floating in Android apps and games forum give it a go it works great for me.

[Q] Transformation Pack

Hey everyone I know theres a transformation pack out there to change the camera and keyboard and gmail etc. I was curious to know if there was and individual file for each that could be flashed then updated. Im on 4.1.2 and i want the updated keyboard but I cant update to the latest through the play store. Any ideas?
edit: i extracted the files and deleted the gmail .apk
hopefully this works.

[REQUEST] AOSP apps package Android L

I've been using the Android L port and I'm loving it. The only problem is that I hate all the official google apps. Plus the ROM only comes with Google photos. I really want to put something together once the ROM is more stable (although it really is good right now) that includes aosp style apps.
Does anyone know where I can get the apps? Can I just pull them from a custom ROM? Or can someone put together a zip that has a few aosp apps? I'm mainly thinking browser, gallery and a file manager, but suggestions are welcome.
EDIT: I was able to pull the apks out of another ROM, I chose the latest (7-20 at time of writing this) CM11 and put the files where they should be /system/app and I changed the permissions to match other files in the same location. Then I rebooted to recovery and wiped both caches. File manager (CM File Manager) and gallery worked fine, I can't figure out browser though. I found an app on the play store that was an AOSP Browser installer and tried that too, but browser keeps crashing on launch. So if anybody knows how to make AOSP browser install please enlighten me.
Thank you.

[TEST] Android 5.0 deodexed system G900FXXU1BNL2

This is deodexed system part of G900FXXU1BNL2 ROM.
It's for chiefs and devs only and cannot be flashed directly.
Because i don't have S5 device, i cannot test it by myself. So, i'm asking qualified devs with S5 to try to make ROM based on this package and make a report if it can boot or even work.
Some important notes:
1) Because almost all APKs were originally odexed, all of them were required deodexing and then signing. So, original signatures are lost. I've used standard android development test certificate. Usually it's ok for system APK which never update from Play Store (only through ROM updates).
Thus, probably some APKs won't work correctly. You can delete such APK and replace it with one from Google Play store. Btw, Play Store is also resigned and may be won't work with Google servers (need to check).
Also, all resigned APKs won't be able to update in Play Store - so you need to replace such APKs with those from Play Store as well.
2) Following APKs i wasn't able to deodex without errors and not include in package:
Maps.apk
Music2.apk
DocumentService.apk
3) In Android 5.0 APKs having library, they are placed in lib folder of APK sub-folder. While deodexing, i've put these libs inside APKs. Probably, you need to extract these libs and put them all into /system/lib (same as all pre-5.0 ROMs).
4) I've placed APKs similar to pre-5.0 way (not every apk in its own folder). I hope it will work this way. If device won't be able to boot, then place them as in original system structure.
Those, who can build the ROM, please test it and tell me about result.
https://mega.co.nz/#!A4kynJpR!pobkpLuFBAUnhtnUwgJSa2KfT6S8apqWwYD5Asb83DU
Update 1:
- contains only modified parts of system, i.e.: only framework, app, priv-app dirs.
- app and priv-app dirs now have correct structure: each apk in its own dir and lib sub-dir.
- not re-signed, i.e. all apks contain original Samsung or Google certificate
- oops, i've forgot to delete Maps.apk, Music2.apk and DocumetService.apk - they were deodexed with errors and most likely won't work.
https://mega.co.nz/#!1l1BlSza!QN1fNyrU7qtwBu6xqkBRH85h3rL81Rvlc-JZv1OtMeE
Nice build
Sadly im just a normal rom builder with knowledge on v4.4 and below, idunno on v5.0 have to learn it to make good roms out of it
Procedures with 5.0 should be the same. The only difference i've found is placing apks in separate subfolder. I think, it required only for pre-odexed ROMs. So, just need to make an usual ROM, same as 4.4 and then check if it work.
sorg said:
Procedures with 5.0 should be the same. The only difference i've found is placing apks in separate subfolder. I think, it required only for pre-odexed ROMs. So, just need to make an usual ROM, same as 4.4 and then check if it work.
Click to expand...
Click to collapse
Very good than ill give it a try when home
But im not an advanced dev sadly dont expect much [emoji14]
I've tested it out, by putting all your deodexed apk's in their folders of my odexed XtreStoLite 2.0 TW Lollipop BETA ROM (and removed the 'arm' folders), also extracted out the lib files from your apk files, and put them in the 'lib' folder.
And replaced mine framework folder with your deodexed one...
But the phone doesn't boot up then.
So your deodexed files are probably not working.
edgarf28 said:
I've tested it out, by putting all your deodexed apk's in their folders of my odexed XtreStoLite 2.0 TW Lollipop BETA ROM (and removed the 'arm' folders), also extracted out the lib files from your apk files, and put them in the 'lib' folder.
And replaced mine framework folder with your deodexed one...
But the phone doesn't boot up then.
So your deodexed files are probably not working.
Click to expand...
Click to collapse
No log?
edgarf28 said:
I've tested it out, by putting all your deodexed apk's in their folders of my odexed XtreStoLite 2.0 TW Lollipop BETA ROM (and removed the 'arm' folders), also extracted out the lib files from your apk files, and put them in the 'lib' folder.
And replaced mine framework folder with your deodexed one...
But the phone doesn't boot up then.
So your deodexed files are probably not working.
Click to expand...
Click to collapse
logcat would be helpful.
Also you can try it step by step. At first, use odexed framework, and my deodexed APKs in subfolders (use my framework.apk and twframework.apk for certificate match).
Then try to put deodexed APKs into common folder (like 4.4 ROM).
If either of above will work, then try to replace the framework jar files.
It's not exactly because of wrong deodexing. May be you need to keep /arm/boot.* files in order to pass initial boot. And then may be OS will re-create new boot.
So, need to try different combination and look what you get in logcat. May be 5.0 requires some additional steps for deodexed ROMs.
Btw, after extracting libs, don't delete them from APKs.
Just checked CM12 ROM structure:
1) copy each APK in its separate folder (same as stock 5.0 ROM).
2) extract lib to separate lib folder (same as stock 5.0 ROM)
3) all arm folders should be deleted (including framework/arm)
http://www.xda-developers.com/android/deodex-lollipop-system-apps-with-ease/ ???
I've tried to replace some apps by deodexed singly (e.g. SamsungCamera3, SecMms_Candy, TeleService), of course with deleted corresponding arm folder
Unfortunately, none of them work (even completely unmodified), only FC ...
_alexndr said:
I've tried to replace some apps by deodexed singly (e.g. SamsungCamera3, SecMms_Candy, TeleService), of course with deleted corresponding arm folder
Unfortunately, none of them work (even completely unmodified), only FC ...
Click to expand...
Click to collapse
can you provide logcat? FC may be related to incompatible certificate.
sorg said:
can you provide logcat? FC may be related to incompatible certificate.
Click to expand...
Click to collapse
See attachment... logcat while I'm trying to run deodexed SamsungCamera3
_alexndr said:
See attachment... logcat while I'm trying to run deodexed SamsungCamera3
Click to expand...
Click to collapse
I don't see anything about SamsungCamera3 in logcat... If you get FC, then at least FC reason should be shown in logcat.
If it fc post the dumpstate_app_error.txt.gz from data/log rather than taking a log. Guaranteed to include all info
sorg said:
I don't see anything about SamsungCamera3 in logcat... If you get FC, then at least FC reason should be shown in logcat.
Click to expand...
Click to collapse
My mistake. I have not looked at sending and uploaded incomplete file. Now it should be ok
Goldie said:
If it fc post the dumpstate_app_error.txt.gz from data/log rather than taking a log. Guaranteed to include all info
Click to expand...
Click to collapse
This file is also attached
Assuming this permission is in manifest to start with it looks like some issue with actually reading the manifest?
12-12 09:09:30.688 6530 6530 E AndroidRuntime: Caused by: java.lang.SecurityException: Requires SET_ANIMATION_SCALE permission
Goldie said:
Assuming this permission is in manifest to start with it looks like some issue with actually reading the manifest?
12-12 09:09:30.688 6530 6530 E AndroidRuntime: Caused by: java.lang.SecurityException: Requires SET_ANIMATION_SCALE permission
Click to expand...
Click to collapse
While deodexing i didn't touch neither resources nor manifest, only injected dex then signed and then aligned. Probably, because re-signed apk uses different certificate (obviously, i don't have Samsung's private key), OS denies some system level access.
Usually, when i create custom ROM i resign all APKs which use Samsung certificate - thus all system APKs share the same signature and everything works.
Why do you resign all samsung apks? System apps do not require signing unless manifest is changed. Is this something you have always done?
Disabling signature checking may fix this then I guess or not resigning in the first place
Goldie said:
Why do you resign all samsung apks? System apps do not require signing unless manifest is changed. Is this something you have always done?
Disabling signature checking may fix this then I guess or not resigning in the first place
Click to expand...
Click to collapse
No problem, i will update pack with updated structure without resigning.
In my custom ROM i do many changes, sometimes including manifest change and adding additional system APKs imported from other devices or written by myself.
sorg said:
While deodexing i didn't touch neither resources nor manifest, only injected dex then signed and then aligned. Probably, because re-signed apk uses different certificate (obviously, i don't have Samsung's private key), OS denies some system level access.
Click to expand...
Click to collapse
Goldie said:
Why do you resign all samsung apks? System apps do not require signing unless manifest is changed. Is this something you have always done?
Disabling signature checking may fix this then I guess or not resigning in the first place
Click to expand...
Click to collapse
And... this was the cause :laugh:
I've put classes.dex from @sorg 's apk to original SamsungCamera3.apk and it works as deodexed !!!!!!
I will try to baksmali, then modify the code and smali again

GAPPS for M STOCK PIT - RRO theme - Other Goodies - Troubadour Page ;)

Hi,
in attachments, find and try my 'special' button on Slimlp or another ROMs with RRO support, just charge it in Layer Manager (just fed up with the name of the little apk i let for now)
thanks.
just shared here for all my friends/followers on XDA.
more coming ....
Such a good idea mate.
I've got to hand it to you because you're doing great work here with RRO and community should love you're work. ?
Sample 'Legacy' flashy SPINNER
the post to see the review video about my test :
https://plus.google.com/+paymadman/posts/SzkyF3LtDSP
on the video, you can see i use Magpie theme, so my RRO apk have the good priorities to run with another theme, i think
in attachments, the sample apk. download, and decompile to see the code if needed.
thanks.
EDIT : new Legacy Spinner in attachments : call them 'pastel' or 'flashy'
thanks .
How to make RRO on Android Studio
thanks
modify GAPPS for M STOCK PIT
Source :
http://www.htcmania.com/archive/index.php/t-1125528.html
i force the script to install this gapps pack on my last tries on CM13 based ROM.
if you want to flash this, before , make sure you have enough space on system.
i saw that LatinIME apk and some other didnt disturb the roms when their are pushed on DATA/APP , at root of folder without their subfloder in system/app or system/priv-app, except for latinIME which you have to let in place the subfolder with libs on system/app/latinIME/lib....
sometimes, depends of M ROMs i tryied, i can have 110Mo free on system, and original open gapps said not enough space on system and stop, with my gapps modify, i can force install and use gapps minimal !
to force install of gapps, i change the end of space.sh script and reload in ZIP.
its known that i dont want to repit my system so i found some ways or research to use gapps again without repit.
the uploaded gapps modify :
gapps-6.0.x-20150112-minimal-edition-signed-space.shSCRIPTforceTO10.zip - 38.72 MB
thanks.
Hello i have flashed this gapps thank you. But i have problems with Google play services and now i have only 4 kb in my system space. It's possible not everything installed in my system. Excuse me for my poor english
petitburton said:
Hello i have flashed this gapps thank you. But i have problems with Google play services and now i have only 4 kb in my system space. It's possible not everything installed in my system. Excuse me for my poor english
Click to expand...
Click to collapse
Yes, surely you have. The thing is, even with apks broken during flash, the ROM boot . you need more space on system before flash. Count space free > 100mo on system partition.
Thank you for response what i making for to having more space.
Inbox, Google Maps and others show me the message Update Google Play services to work, This zip is 7.8.99 yet? if I update manually Google Play Services crash

Categories

Resources