@Rex Tener, Thank a lot for your answer. I already gone through the stack 
overflow link suggested by you. But my question is Can we install any 
package with user build?

@Satish Patel, So the apks which does not access system partition can be 
install easily in User build. Right?


On Thursday, March 21, 2019 at 8:54:28 PM UTC+5:30, Rex Tener wrote:
>
> This is an intended behavior.  I think this answer in Stackoverflow might 
> have a workaround that would work for you.
>
>
> https://stackoverflow.com/questions/25477424/adb-shell-su-works-but-adb-root-does-not
>
> --
> Rex
>
> On Wed, Mar 20, 2019 at 9:11 AM radhika somaiya <somaiyar...@gmail.com 
> <javascript:>> wrote:
>
>> Hi Everyone,
>>
>> I learnt that android comes with three kind of build variants - user, 
>> userdebyg and eng
>>
>> However I am trying to install an .apk package in user type of build 
>> variant but somehow it's getting failed with following error : 
>>
>> "adb d cannot run as root in production builds"
>>
>> I want to know that is it necessary to use either userdebug or eng for 
>> installing apk application on command line or we can install any .apk with 
>> user build?
>>
>> Any help would be appreciated!
>>
>> Thank You,
>> Radhika Somaiya
>>
>> -- 
>> -- 
>> unsubscribe: android-porti...@googlegroups.com <javascript:>
>> website: http://groups.google.com/group/android-porting
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "android-porting" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to android-porti...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to