how to isntall system app - Xiaomi Redmi Note 7 Questions & Answers

Hello, I am developing an app and inside the app I need to access the voice call as one of the features. For that I need system privileges so my app is marked as system app in my manifest. I tried installing my app on emulator as system app and it worked there. the guide I used told me to sign the apk with platform key.
now I want to test the app on physical device but I am having trouble installing the app. i've spent last couple day to get my phone rooted and make adb work on redmi note 7. I am able to push the apk to sysytem/app but after reboot the app is not present on my phone. I figured maybe I need to use a different signing key in order to make It work with Xiaomi but I couldn't find any information on how to sign my apk. is the problem indeed because of the signing or do I need to do something else? if the problem is signing where can I find the keys? Can anyone help me out with this problem?

Mixplorer with root?

joke19 said:
Mixplorer with root?
Click to expand...
Click to collapse
I am using rooted adb and shell. the app is already pushed in system/app folder but it is not getting installed. tried priv-app folder as well same thing.

Related

Removing stock apps?

Coming from a Mt3g that I've ran exclusively with Cyanogen mod since I got it, I've become quite used to running a very slim, light phone, and getting this today with all this bloatware is driving me nuts. Anyone been successful getting these apps off theirs phones? I'm already rooted, and have astro installed, but didn't quite know what to remove.
Would prefer not having to use adb, as it doesn't work well with Win7
Use Root Manager and delete what u want. be careful what u delete tho.
how do u remove the icons of these crapps from the app menu?
After you delete them with root manager and re set the phone, they should be gone.
Yup. Granted I used ADB, but root manager will work too. Just make sure you delete the apk and the odex.
I deleted mine with root explorer .. worked fine for me...
Yep, I thought Astro had root access but I was wrong, snagged root explorer and cleaned my phone up rather nicely.
Any stock apps cause issues if removed?
try this thread. there are some u can remove and some you shouldn't remove.
http://forum.xda-developers.com/showthread.php?t=712546
Guys I know you can use root manager to delete the bloatware on this phone. How can you delete the .apk files using ADB? I searched but it doesn't seem to work. Any instructions on how its done.
http://www.careace.net/2010/05/12/how-to-remove-android-apps-through-adb/
Thanx but I thought you needed some type of recovery application. No?
Sent from my SAMSUNG-SGH-I897 using XDA App
I know this is a bit of a noob question. But I have been using root explorer to "move" apk and odec that I do not need. Is is that simple? There is no "uninstall" process, you just remove/delete the apk/odec?
That should be the same as rm -r in ADB and that's what I've been doing for the last couple of years. Proper or not, it does the trick
When I got the phone I think it had 4 pages of bloatware apps? I'm down to 2 and couldn't be happier.
I don't think the remount on root explorer works properly however, I had to remount between rw and ro with terminal.
ADB doesn't work well, I need to set up some sort of remote ssh so I can just run all of these commands from a shell on my desktop.

Got Sky go working on Tablet Z

Not sure if this is of interest to anyone but I managed to get Sky go working by side loading the apk and making one change to the build.prop.
change the following in build.prop
ro.product.model=SGP312
to
ro.product.model=C6603
You will also need to temporarily unroot device while using Sky go (You can remove and restore root without restarting tablet).
I used hide my root to hide the su binary and then uninstalled superuser.
jonathanp said:
Not sure if this is of interest to anyone but I managed to get Sky go working by side loading the apk and making one change to the build.prop.
change the following in build.prop
ro.product.model=SGP312
to
ro.product.model=C6603
You will also need to temporarily unroot device while using Sky go (You can remove and restore root without restarting tablet).
I used hide my root to hide the su binary and then uninstalled superuser.
Click to expand...
Click to collapse
Any chance of uploading an APK for those of us not so good at tweaking buildprops?
No idea how to make an apk I'm afraid but I could upload an update zip if you're running a recovery?
jonathanp said:
No idea how to make an apk I'm afraid but I could upload an update zip if you're running a recovery?
Click to expand...
Click to collapse
Yes please !
GretaLewd said:
Yes please !
Click to expand...
Click to collapse
Here are the update zips, sorry it took so long
Great, now all we need are some usernames and passwords for non sky customers!
Sent from my Nexus 7 using xda app-developers app
Cheers dude! Going to try tomorrow. Only issue is the damned account being locked to 2 devices now. I miss when it was 4 for free!
Wait a sec...what are the 2 zips for?
The sky go zip replaces the build.prop with a sky friendly version, the other zip puts the original build.prop back in place. You'll need a recovery to use the zips.
Btw the build.props the zips are based on are from a SGP312
Sent from my SGP312 using XDA Premium HD app
Thanks!!
Thank you!!!:good:

[Q] Unfortunately, Apps has stopped (Tried to install Android L APKS)

Hi,
I was trying to install the new Chrome APK manually through Root Browser from the Android L dump,
but now after putting in two files into the LIB folder all these apps started crashing.
Also : I have installed the Google Play Services 5.0 and the Google Now/Search Velvet APK but "OK GOOGLE" hotword doesn't work.
Using Google Launcher (NOT L version)
Unfortunately, Running has stopped. ( I don't have an app called Running )
Unfortunately, Root Browser has stopped working.
Unfortunately, Google Play Newsstand has stopped working.
Unfortunately, Google Search has stopped.
Spotify/Instagram/Textplus/Hangouts/Whatsapp force closes immediately after opening.
- I haven't tested to see if these are the only apps that stopped working.
These are the files that I placed into LIB folder :
Chrome.apk ( the L version )
libwebviewchromium_plat_support.so ( Not sure if I actually placed this file into the LIB folder )
libchrome.1985.65.so (When I placed this it asked me to rewrite the old one and I did without backing it up :crying: )
Now I cant change anything since Root Browser force closes. Is there any other app that I could use?
How do I fix this :crying:
Thanks
Moody7 said:
Hi,
I was trying to install the new Chrome APK manually through Root Browser from the Android L dump,
but now after putting in two files into the LIB folder all these apps started crashing.
Also : I have installed the Google Play Services 5.0 and the Google Now/Search Velvet APK but "OK GOOGLE" hotword doesn't work.
Using Google Launcher (NOT L version)
Unfortunately, Running has stopped. ( I don't have an app called Running )
Unfortunately, Root Browser has stopped working.
Unfortunately, Google Play Newsstand has stopped working.
Unfortunately, Google Search has stopped.
Spotify/Instagram/Textplus/Hangouts/Whatsapp force closes immediately after opening.
- I haven't tested to see if these are the only apps that stopped working.
These are the files that I placed into LIB folder :
Chrome.apk ( the L version )
libwebviewchromium_plat_support.so ( Not sure if I actually placed this file into the LIB folder )
libchrome.1985.65.so (When I placed this it asked me to rewrite the old one and I did without backing it up :crying: )
Now I cant change anything since Root Browser force closes. Is there any other app that I could use?
How do I fix this :crying:
Thanks
Click to expand...
Click to collapse
More than likely you'll have to adb delete then push the correct apks. Although since what's not working is apps I supposed you could delete what you placed in there with adb then just redownload from play store... Any way adb seems like the way to go. Look how adb commands to navigate to that folder then delete the file.
Sent from my SAMSUNG-SGH-I337 using XDA Premium 4 mobile app
drock212 said:
More than likely you'll have to adb delete then push the correct apks. Although since what's not working is apps I supposed you could delete what you placed in there with adb then just redownload from play store... Any way adb seems like the way to go. Look how adb commands to navigate to that folder then delete the file.
Sent from my SAMSUNG-SGH-I337 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Whats ADB?
Where can I get it and how to use it?
Thanks
Moody7 said:
Whats ADB?
Where can I get it and how to use it?
Thanks
Click to expand...
Click to collapse
Adb is like the windows command promt (cmd) but for android. You'll need to download the android SDK for this
Here http://developer.android.com/sdk/index.html
List of adb commands here http://developer.android.com/tools/help/adb.html
Also push command here http://stackoverflow.com/questions/...mand-to-push-a-file-on-device-without-sd-card
Great little XDA resource here http://forum.xda-developers.com/showthread.php?t=517874
If you don't feel comfortable with any of this you can always odin back to stock
Sent from my SAMSUNG-SGH-I337 using XDA Premium 4 mobile app
drock212 said:
Adb is like the windows command promt (cmd) but for android. You'll need to download the android SDK for this
Here http://developer.android.com/sdk/index.html
List of adb commands here http://developer.android.com/tools/help/adb.html
Also push command here http://stackoverflow.com/questions/...mand-to-push-a-file-on-device-without-sd-card
Great little XDA resource here http://forum.xda-developers.com/showthread.php?t=517874
If you don't feel comfortable with any of this you can always odin back to stock
Sent from my SAMSUNG-SGH-I337 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
If you want an easier, lighter adb download you can get Minimal ADB and Fastboot.
Sent from my SGH-I337 running GPE

Unable to convert apps to system (GalaxyA8 Sm-a800i)

Hey guys, i quite unfortunately own a galaxy a8 (a800i). It has almost no dev support. After rooting my phone, i tried converting an app to system(through limk2sd). It did but when i rebooted my phone the app disappeared! Had to manually locate the system files (yes they were there, including the apk) and delete them.
Again,tried it with titanium backup, didnt work out.
Also tried moving the folders manually and i took care to set the correct permissions, the app just wouldnt appear.
At last, after deleting all the system app data and files again, i finally placed the apk with correct permissions in the/system/app folder and rebooted my phone. The app was there but it was force closing.
I tried doing this with 4 different apps, to no avail.
I run stock firmware.
(please note- Although a800F and A800i have same hardware, a800i will not support the others custom recovery, root methods,kernels etc.)
Any devs who might be interested in this? Id be glad.
You need to create a folder with the same name as the apk and push the folder to system app.
Then put apk in the folder with same name
Sent from my SM-G903F using Tapatalk
LastStandingDroid said:
You need to create a folder with the same name as the apk and push the folder to system app.
Then put apk in the folder with same name
Sent from my SM-G903F using Tapatalk
Click to expand...
Click to collapse
Tried that too, been working on this since 2 days. Nothing seems to work. I have never encountered an error like this before on any other of my devices. All the pre installed system apps are odexed, and the one im trying is not, for obvious reasons. Do you think it has got something to do with the error?
abhinavparasher said:
Tried that too, been working on this since 2 days. Nothing seems to work. I have never encountered an error like this before on any other of my devices. All the pre installed system apps are odexed, and the one im trying is not, for obvious reasons. Do you think it has got something to do with the error?
Click to expand...
Click to collapse
Hmm missing Libs? Or the odex file itself?
Sent from my SM-G903F using Tapatalk
LastStandingDroid said:
Hmm missing Libs? Or the odex file itself?
Sent from my SM-G903F using Tapatalk
Click to expand...
Click to collapse
No, the lib and the .dex file of the user app im trying to move to system is intact, all im trying to ask is that do you think the system is not accepting the converted app because it has a .dex instead of the regular .odex file which is the case with all system apps?
This assumption might be wild, but considering that i have never faced such an issue before in 10-12 android devices that i have owned in the past, it might be of some use.
abhinavparasher said:
No, the lib and the .dex file of the user app im trying to move to system is intact, all im trying to ask is that do you think the system is not accepting the converted app because it has a .dex instead of the regular .odex file which is the case with all system apps?
This assumption might be wild, but considering that i have never faced such an issue before in 10-12 android devices that i have owned in the past, it might be of some use.
Click to expand...
Click to collapse
Has nothing do do with it, if it's a "user app" as long if the app has all needed files in correct folder it should run. it should be working if it doesn't it might be any issue that the app won't run while in system/app
Sent from my SM-G903F using Tapatalk
So for now, we havnt arrive to any conclusion. All apps break if they are converted to system apps. Tried to do it via TB/Link2sd/various other tools and manually. App components are present in /system/app including the apk and lib, but the app wont appear anywhere on the phone.
abhinavparasher said:
So for now, we havnt arrive to any conclusion. All apps break if they are converted to system apps. Tried to do it via TB/Link2sd/various other tools and manually. App components are present in /system/app including the apk and lib, but the app wont appear anywhere on the phone.
Click to expand...
Click to collapse
That's because it has to be placed inside a folder with the same name as the app
Like /system/app/viper/viper.apk
It can't be /system/app/viper/base.apk
Also libs should be in
System/app/viper/lib/arm/*****.so
Hope this issue helps
Sent from my SM-G903F using Tapatalk
i did try this before. tried it again. It doesnt work. I was extremely careful with directries, app names, libs and permissions.
Like ive said iv done this countless times before on other devices, and it has always worked.
Something else i would like to mention- Thought the app shortcut doesnt appear anywhere, whenever i open the apk file (on my sd card) it says "do you want to update the app" which means the app is actually already installed. I click yes and the app is installed, app icon returns.
I open application manager and open up this app's settings. I get the option of "Uninstall updates" instead of uninstall apps which proves the first time i moved to system, the app became a system app but it disappeared. If i click uninstall updates, the app disappears again. If i try to integrate update with link2sd the app disappears any ways.
There is just no reason for this to happen! So basically im stuck with a phone which barely got a root method, doesnt have a custom recovery, has a enforcing kernel, and doesnt allow me to move apps to /system.
Do you think it might be possible to "flash" the app zip file via a custom recovery? (if we get one for a800i lol)
abhinavparasher said:
i did try this before. tried it again. It doesnt work. I was extremely careful with directries, app names, libs and permissions.
Like ive said iv done this countless times before on other devices, and it has always worked.
Something else i would like to mention- Thought the app shortcut doesnt appear anywhere, whenever i open the apk file (on my sd card) it says "do you want to update the app" which means the app is actually already installed. I click yes and the app is installed, app icon returns.
I open application manager and open up this app's settings. I get the option of "Uninstall updates" instead of uninstall apps which proves the first time i moved to system, the app became a system app but it disappeared. If i click uninstall updates, the app disappears again. If i try to integrate update with link2sd the app disappears any ways.
There is just no reason for this to happen! So basically im stuck with a phone which barely got a root method, doesnt have a custom recovery, has a enforcing kernel, and doesnt allow me to move apps to /system.
Do you think it might be possible to "flash" the app zip file via a custom recovery? (if we get one for a800i lol)
Click to expand...
Click to collapse
Well to be honest I did face same issue with Samsung s health I'm not sure what causes it, can be system related or something.
Don't you have spacex kernel which is set to permissive?
Sent from my SM-G903F using Tapatalk
The only difference is that it happens with me for every app lol.
I did hear about it but im pretty sure its for a800F. Anything related to a800F causes a bootloop in a800i. Someone on the forum tried the spacex kernel. Do you think you can make it compatible somehow?
If nothing works i might just compile a kernel with always_enforce set to false. Then i should be able to change the policy to permissive with seteneforce 0 command.
abhinavparasher said:
The only difference is that it happens with me for every app lol.
I did hear about it but im pretty sure its for a800F. Anything related to a800F causes a bootloop in a800i. Someone on the forum tried the spacex kernel. Do you think you can make it compatible somehow?
If nothing works i might just compile a kernel with always_enforce set to false. Then i should be able to change the policy to permissive with seteneforce 0 command.
Click to expand...
Click to collapse
Are you the dude that's going to test twrp?
I have built a permissive kernel for this device also.
You are welcome to try it.
Sure il try that too. Permissive kernel is something that many of us need. Infact i was gonna make it. Thanks for the effort!
You can pass me the flashable tar file. In the meanwhile, il test the recovery and get back to you.
abhinavparasher said:
Sure il try that too. Permissive kernel is something that many of us need. Infact i was gonna make it. Thanks for the effort!
You can pass me the flashable tar file. In the meanwhile, il test the recovery and get back to you.
Click to expand...
Click to collapse
Here you go, flash with odin or extract the boot.img from the archive and flash with TWRP.
SM-A800I_A800IXXU2AOL2 _boot
ashyx said:
Here you go, flash with odin or extract the boot.img from the archive and flash with TWRP.
SM-A800I_A800IXXU2AOL2 _boot
Click to expand...
Click to collapse
The kernel works perfectly! Root+ selinux set to permissive. Flashed the boot.img with the twrp recovery provided by @ashyx . The recovery as well as the kernel work with no issue whatsoever. The problem with the wifi did not occur this time. Must be related to the old kernel i flashed, it somehow changed the build.prop everytime i flashed something (Including the recovery)
Anyways, now we know that the kernel as well as the recovery works as it should.
I think you should make the post official, recovery as well as root+selinux set to permissive.
Thanks!
abhinavparasher said:
The kernel works perfectly! Root+ selinux set to permissive. Flashed the boot.img with the twrp recovery provided by @ashyx . The recovery as well as the kernel work with no issue whatsoever. The problem with the wifi did not occur this time. Must be related to the old kernel i flashed, it somehow changed the build.prop everytime i flashed something (Including the recovery)
Anyways, now we know that the kernel as well as the recovery works as it should.
I think you should make the post official, recovery as well as root+selinux set to permissive.
Thanks!
Click to expand...
Click to collapse
Released on XDA in Development section: http://forum.xda-developers.com/sam.../kernel-permissive-ll-5-11-kernel-sm-t3312817
DONATE ME HERE IF YOU WANT TO BUY ME A BEER OR HIT THE THANKS BUTTON IF I HELPED YOU
:bump:
abhinavparasher said:
:bump:
Click to expand...
Click to collapse
Tried flashing your apps with twrp?
Sent from my SM-G903F using Tapatalk
LastStandingDroid said:
Tried flashing your apps with twrp?
Sent from my SM-G903F using Tapatalk
Click to expand...
Click to collapse
Yes, thats the only thing that works. This issue really garners my interest as i have never seen this happening before.

[SCRIPT] Debloat HTC 10

Although HTC 10 comes with less bloat than most other phones, it still has apps preinstalled that some of us probably will never use.
Some of those apps may even run at boot and consume RAM and CPU. For this purpose I made a small script that will remove those apps instead of doing it manually via ADB Shell.
This script is for Mac/OS X/macOS. I think it can also run on Linux but I'm not sure because I don't use Linux much.
For Windows, it can easily be ported to command line. If someone is willing to do it, PM me the script and I will add it to the repo.
Apps that the script removes:
Boost+
Google+ Sense Add-on
Instagram (placeholder app)
LinkedIn Sense Add-on
HTC Mail
Facebook (placeholder app)
Messenger (placeholder app)
News Republic
TouchPal Keyboard (SEE NOTE!)
Twitter Sense Add-on
Voice Recorder
Zoe
HTC Help
IceView Case support
HTC Speak
Transfer my stuff
Google Hangouts
Google Play Music
Basically what the script does:
Mount /system as RW
Delete above apps .apk and containing folder
Reboot after done.
DISCLAIMER: Although I don't see what could possibly go wrong by flashing this script, be sure to back up your ROM before flashing as I don't take any responsibility caused by this script. I have tested it on my HTC 10 and I didn't have any issues.
IMPORTANT NOTE: If you plan to remove TouchPal keyboard, make sure that you have an alternative already installed before or you won't be able to type any text. In case you're reading this after you already screwed up, download your prefered keyboards .apk file and install it via ADB. The script will stop before removing the keyboard and ask if you are sure you want to remove it.
How to:
Enable USB debugging
Connect your phone
Execute "adb shell" and then "su" and grant superuser access to adb shell
(OS X) make script executable (chmod a+x)
Run script
I am open for suggestions and merge requests, happy debloating
The script can be found HERE.
Hoping someone works on the windows version cause i suppose totally run this.
Thanks for sharing
Sent from my HTC 10 using XDA-Developers mobile app
All this can be manually removed simply by hitting uninstall with root access right? Not knocking the script, just asking honestly.
Sent from my SM-G900V using Tapatalk
Just double checking, but I take it that root is required?
Milano_II said:
All this can be manually removed simply by hitting uninstall with root access right? Not knocking the script, just asking honestly.
Sent from my SM-G900V using Tapatalk
Click to expand...
Click to collapse
Ive tried some apps for removal of system apps but it didn't work. And since I play around with ROMs reinstalling and uninstalling app by app takes just to much time.
Milamber said:
Just double checking, but I take it that root is required?
Click to expand...
Click to collapse
Yes, you need root because you need to remove apps from the read-only /system partition.
Got it. Thanks for the reply. I haven't had an htc phone since gingerbread and I mostly had Samsungs on Verizon so I never bothered rooting. I didn't get my 10 yet but I hope to root right away and get rid of things I think are bloat. Probably gonna need this script I guess we'll see. Thanks again!
Sent from my SM-G900V using Tapatalk
very nice, quick and easy one step to uninstall the stuff that is safe to, thank you!
razrlover said:
Hoping someone works on the windows version cause i suppose totally run this.
Thanks for sharing
Click to expand...
Click to collapse
if you like i can take a crack at it, simple batch script should work almost out of the box as long as you have adb set up
ibrokemypie said:
if you like i can take a crack at it, simple batch script should work almost out of the box as long as you have adb set up
Click to expand...
Click to collapse
will you make it for windows please?
@gillim74 @razrlover @dj_chapz
I have made a working copy for windows and added it to a fork of the gitlab repo here: https://github.com/ibrokemypie/htc_10_pme_debloat/blob/master/htc10_bloat_remover.cmd
I will maintain this as long as @dj_chapz does and will pull in any changes he makes.
I usually make changes after a firmware update if I notice any new bloat, but there shouldnt be much changes.
Also, this list is by personal preference, because some apps that I choose to leave others may want to remove or vice versa, so everyone should take the script as a base and edit to their likeing.
ibrokemypie said:
@gillim74 @razrlover @dj_chapz
I have made a working copy for windows and added it to a fork of the gitlab repo here: https://github.com/ibrokemypie/htc_10_pme_debloat/blob/master/htc10_bloat_remover.cmd
I will maintain this as long as @dj_chapz does and will pull in any changes he makes.
Click to expand...
Click to collapse
After running this (windows), and going into Settings > Apps, I get a Loading screen that never ends. Same thing in Titanium backup when it tries to build a db of the installed apps.
typhoonikan said:
After running this (windows), and going into Settings > Apps, I get a Loading screen that never ends. Same thing in Titanium backup when it tries to build a db of the installed apps.
Click to expand...
Click to collapse
which update are you running? still marshmallow or have you gone to nougat? custom rom? and have you tried restarting and perhaps clearing cache/dalvik?
Device or resource busy
Read-only file system
Read-only file system
tried it but all the apps had the above thing ^
nougat,
oh it did work o.o saw the apps for a second, thank you! could i just add the sense apks into the script and remove it the same way?
Dare I ask... why not make a shell script you run from the phone? I'll give it a shot. I wrote one that creates directories so I can use FolderSync to restore settings from the cloud.
Sent from my HTC6545LVW using XDA Labs
SovPanda said:
Device or resource busy
Read-only file system
Read-only file system
tried it but all the apps had the above thing ^
nougat,
oh it did work o.o saw the apps for a second, thank you! could i just add the sense apks into the script and remove it the same way?
Click to expand...
Click to collapse
Hi, did you use the Windows version? Thanks
spacecowboy618 said:
Hi, did you use the Windows version? Thanks
Click to expand...
Click to collapse
windows 10 <--
used the one he has listed to download in the original OP and works

Categories

Resources